/* ==========================================================================
   Shu Shu Unified Stylesheet
   Auto-generated from src/ui.js
   ========================================================================== */

/* ---- Global Styles ---- */

        @import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;600;700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&display=swap');
        
        * { box-sizing: border-box; }

        body { 
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif; 
            margin: 0; 
            padding: 0; 
            overflow-y: auto; 
            background-color: #1a0a0a; 
            color: #e0d0d0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }

        /* Background Image with Blur */
        .bg-image {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url('/viewbackground.webp');
            background-size: cover;
            background-position: center;
            filter: blur(3px) brightness(0.35) saturate(0.3);
            z-index: -2;
            transform: scale(1.02); /* Prevent blur edges */
        }
        .bg-image::after {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(135deg, rgba(20,20,20,0.85) 0%, rgba(30,25,25,0.8) 50%, rgba(20,20,20,0.9) 100%);
        }

        /* Sakura Animation Container */
        #sakura-container {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        .glass-card {
            background: rgba(25, 25, 25, 0.88);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(160, 80, 80, 0.18);
            border-radius: 12px;
            box-shadow: 0 4px 20px 0 rgba(160, 80, 80, 0.12);
            padding: 1rem;
            color: #e8d0d0;
        }

        button {
            background: rgba(160, 80, 80, 0.16);
            border: 1px solid rgba(160, 80, 80, 0.45);
            color: #aa6666;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
            text-shadow: none;
        }
        
        button:hover {
            transform: translateY(-2px);
            background: rgba(160, 80, 80, 0.24);
            box-shadow: 0 5px 15px rgba(160, 80, 80, 0.2);
        }

        button.danger {
            background: rgba(255, 60, 60, 0.12);
            border-color: rgba(255, 60, 60, 0.4);
            color: #bb7777;
        }

        input, select {
            width: 100%;
            padding: 8px 14px;
            margin-bottom: 0.5rem;
            border: 1px solid rgba(160, 80, 80, 0.25);
            background: rgba(0, 0, 0, 0.25);
            border-radius: 8px;
            font-family: inherit;
            box-sizing: border-box;
            transition: all 0.3s;
            outline: none;
            color: #e8d0d0;
            font-size: 0.85rem;
        }

        select {
            background-color: rgba(0, 0, 0, 0.25);
            color: #e8d0d0;
        }

        select option {
            background: #140808;
            color: #e8d0d0;
        }

        select option:checked {
            background: #8a4040;
            color: #f6eaea;
        }

        input:focus {
            background: rgba(0, 0, 0, 0.35);
            border-color: rgba(160, 80, 80, 0.55);
            box-shadow: 0 0 10px rgba(160, 80, 80, 0.2);
        }

        h1, h2, h3 { color: #aa6666; font-weight: 600; font-size: 1rem; }
        h1 { font-size: 1.15rem; }
        h2 { font-size: 1.05rem; }
        
        .sakura {
            position: absolute;
            background: linear-gradient(120deg, #8a4040 0%, #b07070 50%, #6a3030 100%);
            border-radius: 100% 0 100% 0;
            opacity: 0;
            box-shadow: 0 0 8px rgba(160, 80, 80, 0.35);
            animation: fall-sway linear infinite;
            will-change: transform, opacity;
            top: -10%;
        }

        @keyframes fall-sway {
            0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
            10% { opacity: 0.9; }
            25% { transform: translate3d(15px, 25vh, 0) rotate(45deg); }
            50% { transform: translate3d(-15px, 50vh, 0) rotate(90deg); }
            75% { transform: translate3d(15px, 75vh, 0) rotate(135deg); }
            100% { opacity: 0; transform: translate3d(0, 110vh, 0) rotate(360deg); }
        }

        /* --- High Fidelity Dropdown Styling --- */
        .strive-dropdown-container {
            position: relative;
            width: 100%;
            margin-bottom: 0.5rem;
        }

        .strive-dropdown-trigger {
            width: 100%;
            padding: 9px 16px;
            border: 1px solid rgba(160, 80, 80, 0.35);
            background: rgba(30, 10, 10, 0.9);
            border-radius: 8px;
            font-family: inherit;
            box-sizing: border-box;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            color: #aa6666;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 500;
            font-size: 0.85rem;
        }

        .strive-dropdown-trigger:hover {
            border-color: #aa6666;
            background: rgba(160, 80, 80, 0.12);
            box-shadow: 0 4px 12px rgba(160, 80, 80, 0.15);
        }

        .strive-dropdown-trigger::after {
            content: '';
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }

        .strive-dropdown-container.open {
            z-index: 2000;
        }

        .strive-dropdown-container.open .strive-dropdown-trigger {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            border-color: #aa6666;
            box-shadow: 0 2px 12px rgba(160, 80, 80, 0.2);
        }

        .strive-dropdown-container.open .strive-dropdown-trigger::after {
            transform: rotate(180deg);
        }

        .strive-dropdown-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(25, 10, 10, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid #8a4040;
            border-top: none;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
            max-height: 260px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            box-shadow: 0 8px 20px rgba(0,0,0,0.35);
            animation: dropdownFadeIn 0.2s ease-out;
        }

        @keyframes dropdownFadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .strive-dropdown-container.open .strive-dropdown-list {
            display: block;
        }

        .strive-dropdown-item {
            padding: 8px 16px;
            cursor: pointer;
            transition: background 0.2s;
            color: #c8a8a8;
            font-size: 0.85rem;
            border-bottom: 1px solid rgba(160, 80, 80, 0.12);
        }

        .strive-dropdown-item:last-child {
            border-bottom: none;
        }

        .strive-dropdown-item:hover {
            background: rgba(160, 80, 80, 0.14);
            color: #aa6666;
        }

        .strive-dropdown-item.selected {
            background: rgba(160, 80, 80, 0.2);
            font-weight: bold;
            color: #aa6666;
        }

        /* Custom Scrollbar for Dropdown */
        .strive-dropdown-list::-webkit-scrollbar {
            width: 8px;
        }
        .strive-dropdown-list::-webkit-scrollbar-track {
            background: rgba(160, 80, 80, 0.08);
        }
        .strive-dropdown-list::-webkit-scrollbar-thumb {
            background: rgba(160, 80, 80, 0.28);
            border-radius: 10px;
        }
        .strive-dropdown-list::-webkit-scrollbar-thumb:hover {
            background: rgba(160, 80, 80, 0.45);
        }
        
        @keyframes float-heart {
            0% { transform: translateY(0) scale(1); opacity: 0.8; }
            50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
            100% { transform: translateY(0) scale(1); opacity: 0.8; }
        }

        .hairpin-icon {
            height: 1.2em;
            vertical-align: middle;
            margin-bottom: 2px;
            filter: drop-shadow(0 2px 2px rgba(160, 80, 80, 0.4));
        }

        /* Discord Preview Styles */
        .discord-preview-box {
            display: none;
            background: #36393f;
            border-radius: 5px;
            padding: 10px 15px;
            margin-top: 15px;
            font-family: 'Whitney','Helvetica Neue', Helvetica, Arial, sans-serif;
            color: #dcddde;
            border-left: 4px solid #6441a5; /* Twitch Purple default */
            max-width: 500px;
        }
        .discord-preview-header { display: flex; align-items: center; margin-bottom: 8px; }
        .discord-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; }
        .discord-username { font-weight: 600; color: #fff; margin-right: 5px; }
        .discord-bot-tag { background: #5865f2; color: #fff; font-size: 0.625rem; padding: 1px 2px; border-radius: 3px; font-weight: 500; }
        .discord-embed-title { color: #00b0f4; font-weight: 600; margin-bottom: 4px; display: block; text-decoration: none; }
        .discord-embed-fields { display: flex; gap: 15px; margin: 8px 0; }
        .discord-field { flex: 1; }
        .discord-field-name { color: #8e9297; font-size: 0.75rem; font-weight: 700; margin-bottom: 2px; }
        .discord-field-value { color: #dcddde; font-size: 0.875rem; }
        .discord-embed-image { width: 100%; border-radius: 4px; margin-top: 10px; }
        
        /* Dashboard User Row & Delete Button */
        .user-row {
            position: relative; /* Anchor for absolute positioning if needed */
        }
        
        .btn-delete-convo {
            opacity: 0;
            transition: all 0.2s ease;
            cursor: pointer;
            background: rgba(25,10,10,0.92);
            border: 1px solid rgba(160,80,80,0.2);
            padding: 5px 12px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .user-row:hover .btn-delete-convo {
            opacity: 1;
        }

        .btn-delete-convo:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(220, 53, 69, 0.2);
            border-color: rgba(220, 53, 69, 0.3);
        }

        /* Navigation Bar */
        .nav-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            margin: 0 auto;
            padding: 0 12px;
            background: rgba(12, 12, 12, 0.85);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 0;
            border-bottom: 1px solid rgba(160, 80, 80, 0.18);
            box-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
            width: 100%;
            max-width: 100%;
            min-height: 42px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-home {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #997777;
            text-decoration: none;
            padding: 6px;
            border-radius: 8px;
            transition: all 0.2s;
            flex-shrink: 0;
            margin-right: 4px;
        }
        .nav-home:hover {
            color: #aa6666;
            background: rgba(160, 80, 80, 0.12);
        }

        .nav-brand {
            font-size: 0.72rem;
            font-weight: 700;
            color: #aa6666;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 0;
            opacity: 1;
            white-space: nowrap;
            flex-shrink: 0;
            text-transform: uppercase;
            text-shadow: 0 0 15px rgba(160, 80, 80, 0.35);
        }

        .nav-links {
            display: flex;
            gap: 2px;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
        }

        a.nav-link {
            color: #997777 !important;
            background: transparent !important;
            text-decoration: none !important;
            font-weight: 500;
            padding: 5px 8px;
            border-radius: 5px;
            transition: all 0.2s ease;
            border: 1px solid transparent;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 0.7rem;
            white-space: nowrap;
            position: relative;
        }

        a.nav-link:hover {
            transform: none;
            background: rgba(160, 80, 80, 0.12) !important;
            color: #aa6666 !important;
            box-shadow: none;
            border-color: rgba(160, 80, 80, 0.2);
        }

        a.nav-link.active {
            background: rgba(160, 80, 80, 0.18) !important;
            color: #aa6666 !important;
            box-shadow: inset 0 -2px 0 #8a4040;
            border-color: transparent;
        }

        .nav-sep {
            width: 1px;
            height: 20px;
            background: rgba(255, 255, 255, 0.08);
            margin: 0 3px;
            flex-shrink: 0;
        }

        a.nav-link.nav-premium {
            color: #cc8844 !important;
        }
        a.nav-link.nav-premium:hover {
            color: #ffaa55 !important;
            background: rgba(204, 136, 68, 0.12) !important;
            border-color: rgba(204, 136, 68, 0.2);
        }
        a.nav-link.nav-premium.active {
            color: #ffcc88 !important;
            box-shadow: inset 0 -2px 0 #cc8844;
            background: rgba(204, 136, 68, 0.15) !important;
        }

        a.nav-link.nav-gold {
            color: #aa6666 !important;
        }
        a.nav-link.nav-gold:hover {
            color: #c27a7a !important;
            background: rgba(160, 80, 80, 0.14) !important;
            border-color: rgba(160, 80, 80, 0.25);
        }
        a.nav-link.nav-gold.active {
            color: #c27a7a !important;
            box-shadow: inset 0 -2px 0 #8a4040;
            background: rgba(160, 80, 80, 0.18) !important;
        }

        a.nav-link.nav-logout {
            color: #665555 !important;
        }
        a.nav-link.nav-logout:hover {
            color: #bb7777 !important;
            background: rgba(160, 80, 80, 0.12) !important;
        }

        .nav-hamburger {
            display: none;
            background: none;
            border: none;
            color: #997777;
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .nav-hamburger:hover {
            color: #aa6666;
            background: rgba(160, 80, 80, 0.12);
        }
        .nav-hamburger svg { display: block; }

        @media (max-width: 768px) {
            .nav-bar {
                padding: 6px 10px;
                gap: 0;
            }
            .nav-top-row {
                display: flex;
                align-items: center;
                width: 100%;
                justify-content: space-between;
                gap: 6px;
            }
            .nav-hamburger {
                display: block;
            }
            .nav-brand {
                font-size: 0.68rem;
                overflow: hidden;
                text-overflow: ellipsis;
                min-width: 0;
            }
            .nav-collapse {
                display: none;
                width: 100%;
                flex-direction: column;
                gap: 4px;
                padding-top: 6px;
                border-top: 1px solid rgba(160, 80, 80, 0.15);
                margin-top: 6px;
                max-height: 70vh;
                overflow-y: auto;
            }
            .nav-collapse.open {
                display: flex;
            }
            .nav-links {
                justify-content: center;
                gap: 2px;
            }
            a.nav-link {
                padding: 5px 8px;
                font-size: 0.68rem;
            }
            .nav-sep {
                width: 100%;
                height: 1px;
                margin: 3px 0;
            }
            #navGuildSwitch {
                min-width: 0 !important;
                margin-left: 0 !important;
                width: 100%;
                margin-top: 4px;
            }
            #navGuildSwitch > div {
                white-space: normal !important;
                text-align: center;
            }
        }

        @media (min-width: 769px) {
            .nav-top-row {
                display: contents;
            }
            .nav-collapse {
                display: contents;
            }
        }

        /* Page Title */

        .neon-title-container {
            text-align: center;
            width: 100%;
            max-width: 1400px;
            margin: 6px auto 2px;
            padding: 0 12px;
            pointer-events: none;
        }

        .neon-title {
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
            font-size: 1.1rem;
            color: #aa6666;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-weight: 700;
            margin: 0;
            line-height: 1.2;
            text-align: center;
            text-shadow: 0 0 20px rgba(160, 80, 80, 0.35), 0 0 60px rgba(160, 80, 80, 0.15);
        }
        @media (max-width: 900px) {
            .neon-title { font-size: 0.92rem; letter-spacing: 1.5px; }
        }

        .top-heart {
            display: none;
        }
        
        .floating-heart {
            position: absolute;
            width: 32px;
            height: 32px;
            opacity: 0.8;
            animation: float-heart 3s ease-in-out infinite;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238a4040'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            filter: drop-shadow(0 0 8px rgba(160,80,80,0.35));
        }
        
        .stat-box {
            background: rgba(24,10,10,0.7);
            padding: 14px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid rgba(160, 80, 80, 0.25);
            transition: transform 0.3s;
        }
        .stat-box:hover { transform: translateY(-3px); }

        .container {
            margin: 0 auto 18px auto;
            width: 100%;
            max-width: 1400px;
            padding: 0 18px;
        }

        .edit-trigger {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1001;
            padding: 15px; /* Large trigger area */
            cursor: pointer;
        }

        .btn-edit-hidden {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            transition-delay: 0s;
        }

        .edit-trigger:hover .btn-edit-hidden {
            opacity: 1;
            visibility: visible;
            transition-delay: 0.5s;
        }

        /* ===== Tabbed Panel System ===== */
        .tab-bar {
            display: flex;
            gap: 2px;
            border-bottom: 1px solid rgba(160, 80, 80, 0.2);
            margin-bottom: 12px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .tab-bar::-webkit-scrollbar { display: none; }
        .tab-btn {
            padding: 7px 15px;
            background: transparent;
            border: none;
            color: #997777;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
            border-radius: 0;
            text-shadow: none;
            box-shadow: none;
            transform: none;
        }
        .tab-btn:hover {
            color: #aa6666;
            background: rgba(160, 80, 80, 0.1);
            transform: none;
            box-shadow: none;
        }
        .tab-btn.active {
            color: #aa6666;
            border-bottom-color: #8a4040;
            background: rgba(160, 80, 80, 0.12);
        }
        .tab-panel { display: none; }
        .tab-panel.active { display: block; }
        @media (max-width: 600px) {
            .tab-btn { padding: 6px 12px; font-size: 0.75rem; }
        }
    
        .md-btn:hover { background: #fee !important; transform: scale(1.05); }
        .message-bubble code { background: rgba(0,0,0,0.05); padding: 2px 4px; border-radius: 4px; font-family: monospace; font-size: 0.9em; }
        .message-bubble pre { background: rgba(0,0,0,0.05); padding: 10px; border-radius: 8px; overflow-x: auto; margin: 8px 0; }
        .message-bubble p { margin: 4px 0; }
        /* Premium Dropdown Styles */
        .strive-dropdown-container {
            position: relative;
            width: 100%;
            user-select: none;
        }
        .strive-dropdown-container.open {
            z-index: 2000;
        }
        .strive-dropdown-trigger {
            padding: 12px 15px;
            background: rgba(24,10,10,0.82);
            border: 1px solid rgba(160, 80, 80, 0.25);
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 600;
            color: #d0b3b3;
            transition: all 0.3s;
        }
        .strive-dropdown-trigger:hover {
            border-color: #8a4040;
            background: rgba(32, 12, 12, 0.9);
            box-shadow: 0 4px 12px rgba(160, 80, 80, 0.15);
        }
        .strive-dropdown-trigger::after {
            content: '▾';
            margin-left: 8px;
            font-size: 0.8rem;
            transition: transform 0.3s;
        }
        .strive-dropdown-container.open .strive-dropdown-trigger::after {
            transform: rotate(180deg);
        }
        .strive-dropdown-list {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            right: 0;
            background: rgba(24,10,10,0.96);
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            z-index: 1000;
            max-height: 250px;
            overflow-y: auto;
            display: none;
            border: 1px solid rgba(160, 80, 80, 0.2);
            animation: dropdownSlide 0.2s ease;
        }
        .strive-dropdown-container.open .strive-dropdown-list {
            display: block;
        }
        @keyframes dropdownSlide {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .strive-dropdown-item {
            padding: 12px 15px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
            color: #e2c7c7;
        }
        .strive-dropdown-item:hover {
            background: rgba(160, 80, 80, 0.12);
            color: #aa6666;
        }
        .strive-dropdown-item.selected {
            background: rgba(160, 80, 80, 0.18);
            color: #aa6666;
            font-weight: bold;
        }

        /* Multi-Select Channel Picker */
        .multi-select-container { position: relative; width: 100%; user-select: none; }
        .multi-select-trigger {
            padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(160,80,80,0.25);
            background: rgba(24,10,10,0.78); cursor: pointer; min-height: 42px;
            display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
            transition: all 0.3s;
        }
        .multi-select-trigger:hover { border-color: #8a4040; }
        .multi-select-container.open .multi-select-trigger { border-color: #8a4040; background: rgba(32,12,12,0.9); box-shadow: 0 0 10px rgba(160,80,80,0.2); }
        .multi-select-tag {
            background: rgba(160,80,80,0.18); color: #c27a7a; padding: 2px 8px; border-radius: 6px;
            font-size: 0.8rem; display: flex; align-items: center; gap: 4px; font-weight: 500;
        }
        .multi-select-tag .tag-x { cursor: pointer; opacity: 0.6; font-weight: bold; }
        .multi-select-tag .tag-x:hover { opacity: 1; }
        .multi-select-placeholder { color: #999; font-size: 0.9rem; }
        .multi-select-list {
            position: absolute; top: 100%; left: 0; right: 0; background: rgba(24,10,10,0.96);
            border: 1px solid rgba(160,80,80,0.22); border-radius: 8px; margin-top: 4px;
            max-height: 220px; overflow-y: auto; display: none; z-index: 2000;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        }
        .multi-select-container.open .multi-select-list { display: block; }
        .multi-select-search {
            width: 100%; padding: 8px 12px; border: none; border-bottom: 1px solid rgba(160,80,80,0.2);
            font-size: 0.85rem; outline: none; background: rgba(80,30,30,0.22); color: #e8d0d0;
        }
        .multi-select-item {
            padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 8px;
            font-size: 0.85rem; color: #e2c7c7; transition: background 0.15s;
        }
        .multi-select-item:hover { background: rgba(160,80,80,0.12); }
        .multi-select-item.checked { background: rgba(160,80,80,0.18); color: #c27a7a; font-weight: 500; }
        .multi-select-item .ms-check {
            width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(160,80,80,0.35);
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
            font-size: 10px; color: white; transition: all 0.15s;
        }
        .multi-select-item.checked .ms-check { background: #8a4040; border-color: #8a4040; }
        .ms-channel-hash { color: #999; font-size: 0.8rem; }

/* ---- page-login ---- */

        body.page-login .home-hero{ max-width: 720px; width: 90%; margin: 40px auto 0; text-align: center; }

        body.page-login .home-avatar{ width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(160,80,80,0.45); box-shadow: 0 0 30px rgba(160,80,80,0.35); margin-bottom: 16px; }

        body.page-login .home-tagline{ color: #997777; font-size: 1rem; margin: 8px 0 32px; line-height: 1.6; }

        body.page-login .home-features{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 32px; text-align: left; }

        @media (max-width: 600px) { body.page-login .home-features{ grid-template-columns: 1fr; }
 }
        body.page-login .home-feat{ background: rgba(30,10,10,0.6); border: 1px solid rgba(160,80,80,0.24); border-radius: 12px; padding: 16px; }

        body.page-login .home-feat h4{ color: #aa6666; margin: 0 0 4px; font-size: 0.95rem; }

        body.page-login .home-feat p{ color: #997777; margin: 0; font-size: 0.85rem; line-height: 1.4; }

        body.page-login .home-feat.premium-feat{ border-color: rgba(204,136,68,0.3); }

        body.page-login .home-feat.premium-feat h4{ color: #cc8844; }

        body.page-login .home-premium-label{ display: inline-block; font-size: 0.65rem; background: rgba(204,136,68,0.2); color: #cc8844; padding: 2px 8px; border-radius: 10px; font-weight: 700; letter-spacing: 0.5px; margin-left: 6px; vertical-align: middle; }

        body.page-login .home-login-btn{ display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: #5865F2; color: #fff; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.3s; border: none; box-shadow: 0 4px 15px rgba(88,101,242,0.4); }

        body.page-login .home-login-btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88,101,242,0.5); }

        body.page-login .home-divider{ width: 60px; height: 2px; background: rgba(160,80,80,0.35); margin: 28px auto; border-radius: 2px; }

        body.page-login .home-price-note{ color: #997777; font-size: 0.8rem; margin-top: 12px; }

    

/* ---- page-servers ---- */

        body.page-servers .server-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; max-width: 1400px; width: 90%; margin: 0 auto 32px; }

        body.page-servers .server-card{
            background: rgba(30, 10, 10, 0.75);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(160, 80, 80, 0.28);
            border-radius: 12px;
            padding: 16px;
            display: flex; align-items: center; gap: 12px;
            transition: all 0.3s;
            cursor: pointer;
            text-decoration: none;
            color: #e0d0d0;
        }

        body.page-servers .server-card:hover{ transform: translateY(-2px); border-color: #8a4040; box-shadow: 0 6px 20px rgba(160,80,80,0.3); }

        body.page-servers .server-card.has-bot{ border-color: rgba(30,215,96,0.35); }

        body.page-servers .server-card.has-bot:hover{ border-color: #1DB954; box-shadow: 0 6px 20px rgba(30,215,96,0.2); }

        body.page-servers .server-card.is-premium{ border-color: rgba(204,136,68,0.4); }

        body.page-servers .server-card.is-premium:hover{ border-color: #cc8844; box-shadow: 0 6px 20px rgba(204,136,68,0.2); }

        body.page-servers .server-icon{ width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

        body.page-servers .server-icon-placeholder{ width: 44px; height: 44px; border-radius: 50%; background: rgba(160,80,80,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: #c8a8a8; flex-shrink: 0; }

        body.page-servers .server-info{ flex: 1; min-width: 0; }

        body.page-servers .server-name{ font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        body.page-servers .server-badges{ display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

        body.page-servers .server-badge{ font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; display: inline-block; }

        body.page-servers .badge-active{ background: rgba(30,215,96,0.15); color: #1DB954; }

        body.page-servers .badge-premium{ background: rgba(204,136,68,0.15); color: #cc8844; }

        body.page-servers .badge-invite{ background: rgba(88,101,242,0.15); color: #5865F2; }

        body.page-servers .user-banner{ display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 24px; }

        body.page-servers .user-avatar{ width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(160,80,80,0.35); }

        body.page-servers .user-name{ font-weight: 700; color: #e0d0d0; font-size: 1rem; }

        body.page-servers .section-label{ color: #997777; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin: 24px auto 10px; max-width: 1400px; width: 90%; }

    

/* ---- page-dashboard ---- */

                    body.page-dashboard .row{ display: flex; gap: 8px; align-items: center; }

                    body.page-dashboard .dash-grid{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

                    @media (max-width: 1100px) { body.page-dashboard .dash-grid{ grid-template-columns: 1fr 1fr; }
 }
                    @media (max-width: 720px) { body.page-dashboard .dash-grid{ grid-template-columns: 1fr; }
 }
                    body.page-dashboard .dash-section{ background: rgba(20,8,8,0.55); border: 1px solid rgba(160,80,80,0.18); border-radius: 14px; padding: 16px; overflow-y: auto; }

                    body.page-dashboard .dash-section-title{ font-weight: 700; color: #aa6666; font-size: 0.92rem; margin: 0 0 12px; }

                    body.page-dashboard .streamer-item{ 
                        display: flex; 
                        justify-content: space-between; 
                        align-items: center; 
                        padding: 10px 12px; 
                        background: rgba(255,255,255,0.05); 
                        margin-bottom: 6px; 
                        border-radius: 10px;
                        transition: background 0.2s;
                        border: 1px solid rgba(160, 80, 80, 0.1);
                    }

                    body.page-dashboard .streamer-item:hover{ background: rgba(255,255,255,0.08); }

                    body.page-dashboard .field-group{ margin-bottom: 8px; }

                    body.page-dashboard .field-group label{ font-weight: 600; margin-bottom: 3px; display: block; color: #aa6666; font-size: 0.82rem; }

                    body.page-dashboard .field-group input{ margin-bottom: 0; }

                    body.page-dashboard .section-note{ font-style: italic; color: #666; font-size: 0.78rem; margin-top: 6px; }

                    body.page-dashboard .section-note a{ color: #aa6666; }

                    body.page-dashboard .app-table{ width: 100%; border-collapse: collapse; font-size: 0.85rem; }

                    body.page-dashboard .app-table th{ padding: 8px 10px; text-align: left; color: #aa6666; font-size: 0.8rem; background: rgba(160, 80, 80, 0.12); }

                    body.page-dashboard .app-table td{ padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }

                    body.page-dashboard .app-table tr:last-child td{ border-bottom: none; }

                    body.page-dashboard .mini-tab-bar{ display: flex; gap: 0; margin-bottom: 12px; }

                    body.page-dashboard .mini-tab-btn{ padding: 6px 14px; font-size: 0.78rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(160,80,80,0.15); color: #997777; cursor: pointer; font-weight: 600; transition: all 0.2s; }

                    body.page-dashboard .mini-tab-btn:first-child{ border-radius: 8px 0 0 8px; }

                    body.page-dashboard .mini-tab-btn:last-child{ border-radius: 0 8px 8px 0; }

                    body.page-dashboard .mini-tab-btn.active{ background: rgba(160,80,80,0.2); color: #cc8888; border-color: rgba(160,80,80,0.4); }

                    body.page-dashboard .mini-tab-panel{ display: none; }

                    body.page-dashboard .mini-tab-panel.active{ display: block; }

                

/* ---- page-creators ---- */

        @keyframes heartFloat1 { 0% { transform: translate(0,0) scale(1); opacity: 0.7; } 50% { transform: translate(-8px,-12px) scale(1.2); opacity: 1; } 100% { transform: translate(0,0) scale(1); opacity: 0.7; } }
        @keyframes heartFloat2 { 0% { transform: translate(0,0) scale(0.8); opacity: 0.5; } 50% { transform: translate(10px,-10px) scale(1.1); opacity: 0.9; } 100% { transform: translate(0,0) scale(0.8); opacity: 0.5; } }
        @keyframes heartFloat3 { 0% { transform: translate(0,0) scale(0.9); opacity: 0.6; } 50% { transform: translate(-5px,8px) scale(1.15); opacity: 1; } 100% { transform: translate(0,0) scale(0.9); opacity: 0.6; } }
        @keyframes heartPulse { 0% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.15); } 100% { transform: translate(-50%,-50%) scale(1); } }
        body.page-creators .heart-particle{ position: absolute; pointer-events: none; z-index: 4; font-size: 0.55rem; }

    

/* ---- page-marble ---- */

            body.page-marble *{ box-sizing: border-box; margin: 0; padding: 0; }

            body.page-marble{
                font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
                background: linear-gradient(135deg, #0d0015 0%, #1a0a2e 30%, #12001f 60%, #0a0012 100%);
                color: #fff;
                overflow: hidden;
                height: 100vh;
                width: 100vw;
            }


            /* ===== HEADER ===== */
            body.page-marble .race-header{
                position: fixed;
                top: 0; left: 0; right: 0;
                height: 50px;
                background: rgba(10, 0, 20, 0.85);
                backdrop-filter: blur(10px);
                border-bottom: 1px solid rgba(160, 80, 80, 0.3);
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 20px;
                z-index: 100;
            }

            body.page-marble .race-header .title{
                font-weight: 700;
                font-size: 1rem;
                color: #8a4040;
                text-shadow: 0 0 10px rgba(160, 80, 80, 0.5);
            }

            body.page-marble .race-header .prize{
                font-size: 0.85rem;
                color: #aa6666;
                text-shadow: 0 0 8px rgba(160, 80, 80, 0.4);
            }

            body.page-marble .race-header .timer{
                font-size: 0.85rem;
                color: rgba(255,255,255,0.7);
                font-weight: 600;
            }


            /* ===== MAIN LAYOUT ===== */
            body.page-marble .race-layout{
                display: flex;
                height: calc(100vh - 50px);
                margin-top: 50px;
            }


            /* ===== CANVAS AREA ===== */
            body.page-marble .canvas-container{
                flex: 1;
                position: relative;
                overflow: hidden;
            }

            body.page-marble #raceCanvas{
                display: block;
                width: 100%;
                height: 100%;
            }


            /* ===== SIDEBAR ===== */
            body.page-marble .race-sidebar{
                width: 260px;
                background: rgba(10, 0, 20, 0.9);
                backdrop-filter: blur(10px);
                border-left: 1px solid rgba(160, 80, 80, 0.2);
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            body.page-marble .sidebar-section{
                padding: 12px 15px;
                border-bottom: 1px solid rgba(160, 80, 80, 0.15);
            }

            body.page-marble .sidebar-section h3{
                font-size: 0.75rem;
                text-transform: uppercase;
                letter-spacing: 2px;
                color: #8a4040;
                margin-bottom: 10px;
                opacity: 0.8;
            }

            body.page-marble .race-stats{
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }

            body.page-marble .stat-mini{
                background: rgba(160, 80, 80, 0.08);
                border: 1px solid rgba(160, 80, 80, 0.15);
                border-radius: 8px;
                padding: 8px;
                text-align: center;
            }

            body.page-marble .stat-mini .val{ font-size: 1.1rem; font-weight: 700; color: #8a4040; }

            body.page-marble .stat-mini .lbl{ font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; }


            /* ===== LEADERBOARD ===== */
            body.page-marble .lb-container{
                flex: 1;
                overflow-y: auto;
                padding: 0 12px 12px;
            }

            body.page-marble .lb-entry{
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 5px 8px;
                border-radius: 6px;
                font-size: 0.78rem;
                margin-bottom: 2px;
                transition: background 0.2s;
            }

            body.page-marble .lb-entry:hover{ background: rgba(160, 80, 80, 0.1); }

            body.page-marble .lb-entry.finished{ background: rgba(160, 80, 80, 0.1); }

            body.page-marble .lb-pos{ font-weight: 700; min-width: 28px; text-align: center; }

            body.page-marble .lb-name{ flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

            body.page-marble .lb-status{ font-size: 0.7rem; }


            /* ===== CUSTOMIZE BUTTON ===== */
            body.page-marble .customize-section{ padding: 12px 15px; }

            body.page-marble .btn-customize{
                width: 100%;
                padding: 10px;
                border: none;
                border-radius: 10px;
                background: linear-gradient(135deg, #aa6666, #FFA500);
                color: #1a0a2e;
                font-weight: 700;
                font-size: 0.85rem;
                cursor: pointer;
                font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
                transition: transform 0.2s, box-shadow 0.2s;
            }

            body.page-marble .btn-customize:hover{
                transform: scale(1.03);
                box-shadow: 0 0 15px rgba(160, 80, 80, 0.4);
            }


            /* ===== OVERLAYS ===== */
            body.page-marble .overlay{
                position: fixed;
                top: 50px; left: 0; right: 0; bottom: 0;
                display: none;
                align-items: center;
                justify-content: center;
                background: rgba(0, 0, 0, 0.6);
                backdrop-filter: blur(4px);
                z-index: 200;
            }

            body.page-marble .overlay.visible{ display: flex; }

            body.page-marble .winner-card{
                background: radial-gradient(ellipse at center, rgba(50, 20, 80, 0.95), rgba(10, 0, 20, 0.98));
                border: 2px solid rgba(160, 80, 80, 0.5);
                border-radius: 24px;
                padding: 40px;
                text-align: center;
                max-width: 420px;
                box-shadow: 0 0 60px rgba(160, 80, 80, 0.2);
                position: relative;
                overflow: hidden;
                animation: winnerAppear 0.6s ease-out;
            }

            @keyframes winnerAppear {
                from { transform: scale(0.5); opacity: 0; }
                to { transform: scale(1); opacity: 1; }
            }

            /* ===== CUSTOMIZE POPUP ===== */
            body.page-marble .customize-popup{
                display: none;
                position: fixed;
                top: 50%; left: 50%;
                transform: translate(-50%, -50%);
                background: rgba(20, 5, 40, 0.97);
                border: 1px solid rgba(160, 80, 80, 0.4);
                border-radius: 16px;
                padding: 25px;
                z-index: 300;
                max-width: 500px;
                width: 90%;
                max-height: 80vh;
                overflow-y: auto;
                box-shadow: 0 0 40px rgba(160, 80, 80, 0.2);
            }

            body.page-marble .customize-popup.visible{ display: block; }

            body.page-marble .customize-popup h3{ color: #8a4040; margin-bottom: 15px; }

            body.page-marble .cust-group{ margin-bottom: 15px; }

            body.page-marble .cust-group label{ display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }

            body.page-marble .color-grid{
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }

            body.page-marble .color-swatch{
                width: 36px; height: 36px;
                border-radius: 50%;
                border: 2px solid rgba(255,255,255,0.2);
                cursor: pointer;
                transition: transform 0.2s, border-color 0.2s;
            }

            body.page-marble .color-swatch:hover,
body.page-marble .color-swatch.selected{
                transform: scale(1.2);
                border-color: #aa6666;
            }

            body.page-marble .option-list{ display: flex; flex-direction: column; gap: 6px; }

            body.page-marble .option-item{
                padding: 8px 12px;
                background: rgba(255,255,255,0.05);
                border: 1px solid rgba(255,255,255,0.1);
                border-radius: 8px;
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 0.85rem;
                transition: background 0.2s;
            }

            body.page-marble .option-item:hover{ background: rgba(160, 80, 80, 0.15); }

            body.page-marble .option-item.selected{ border-color: #aa6666; background: rgba(160, 80, 80, 0.1); }

            body.page-marble .option-price{ color: #aa6666; font-weight: 700; font-size: 0.75rem; }

            body.page-marble .cust-select{
                width: 100%;
                padding: 10px 12px;
                background: rgba(255,255,255,0.06);
                border: 1px solid rgba(255,255,255,0.15);
                border-radius: 10px;
                color: #fff;
                font-size: 0.85rem;
                font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
                cursor: pointer;
                appearance: none;
                -webkit-appearance: none;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23cc3333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: right 12px center;
                transition: border-color 0.2s, box-shadow 0.2s;
            }

            body.page-marble .cust-select:hover,
body.page-marble .cust-select:focus{
                border-color: rgba(160, 80, 80,0.4);
                box-shadow: 0 0 8px rgba(160, 80, 80,0.15);
                outline: none;
            }

            body.page-marble .cust-select option{
                background: #1a0a1e;
                color: #fff;
                padding: 8px;
            }


            body.page-marble .btn-checkout{
                width: 100%;
                padding: 12px;
                border: none;
                border-radius: 10px;
                background: linear-gradient(135deg, #8a4040, #6a3030);
                color: #fff;
                font-weight: 700;
                font-size: 1rem;
                cursor: pointer;
                font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
                margin-top: 15px;
                transition: transform 0.2s;
            }

            body.page-marble .btn-checkout:hover{ transform: scale(1.02); }


            body.page-marble .btn-close-popup{
                position: absolute;
                top: 10px; right: 15px;
                background: none;
                border: none;
                color: #fff;
                font-size: 1.5rem;
                cursor: pointer;
                opacity: 0.6;
            }

            body.page-marble .btn-close-popup:hover{ opacity: 1; }


            /* ===== RESPONSIVE ===== */
            @media (max-width: 768px) {
                body.page-marble .race-sidebar{ display: none; }

                body.page-marble .race-header .title{ font-size: 0.85rem; }

            }
        

/* ---- page-giveaway ---- */

                            body.page-giveaway .countdown-box{
                                font-size: 1.8rem;
                            font-weight: 800;
                            color: #fff;
                            text-shadow: 0 0 10px #8a4040, 0 0 20px #8a4040;
                            margin: 14px 0;
                            background: rgba(0,0,0,0.7);
                            padding: 14px;
                            border-radius: 14px;
                            display: inline-block;
                            border: 1px solid rgba(160, 80, 80,0.5);
                            backdrop-filter: blur(10px);
             }

                            body.page-giveaway .stat-card{
                                background: rgba(24,10,10,0.82);
                            border-radius: 14px;
                            padding: 14px;
                            text-align: center;
                            flex: 1;
                            min-width: 160px;
                            box-shadow: 0 6px 12px rgba(160, 80, 80, 0.1);
                            border: 1px solid rgba(160, 80, 80,0.3);
             }

                            body.page-giveaway .stat-value{font-size: 1.5rem; font-weight: bold; color: #8a4040; margin-bottom: 4px; }

                            body.page-giveaway .stat-label{font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #997777; font-weight: 700; }

                        

/* ---- page-giveaways ---- */

                                    body.page-giveaways .gw-layout{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: start; }

                                    @media (max-width: 1200px) { body.page-giveaways .gw-layout{ grid-template-columns: 1fr 1fr; }
 }
                                    @media (max-width: 760px) { body.page-giveaways .gw-layout{ grid-template-columns: 1fr; }
 }
                                    body.page-giveaways .gw-left{ display: flex; flex-direction: column; gap: 12px; }

                                    body.page-giveaways .gw-mid{ display: flex; flex-direction: column; gap: 12px; }

                                    body.page-giveaways .gw-right{ display: flex; flex-direction: column; gap: 12px; }

                                    body.page-giveaways .gw-left .glass-card,
body.page-giveaways .gw-mid .glass-card,
body.page-giveaways .gw-right .glass-card{ padding: 12px; }

                                    body.page-giveaways .gw-left .section-title,
body.page-giveaways .gw-mid .section-title,
body.page-giveaways .gw-right .section-title{ font-size: 0.9rem; margin: 0 0 7px; }

                                    body.page-giveaways .gw-field{ margin-top: 8px; }

                                    body.page-giveaways .gw-field label{ font-weight: bold; margin-bottom: 3px; display: block; color: #997777; font-size: 0.78rem; }

                                    body.page-giveaways .gw-field small{ color: #666; font-style: italic; display: block; margin-bottom: 4px; font-size: 0.72rem; }

                                    body.page-giveaways .row{ display: flex; gap: 8px; align-items: center; }

                                    body.page-giveaways .role-row{ display: flex; gap: 4px; margin-bottom: 4px; align-items: center; }

                                    body.page-giveaways .role-row input[type="number"]{ width: 56px; flex: 0 0 56px; padding: 4px 6px; font-size: 0.76rem; }

                                    body.page-giveaways .role-row .danger{ padding: 4px 8px; font-size: 0.72rem; }

                                    body.page-giveaways .role-row .strive-select-wrapper{ font-size: 0.76rem; }

                                    body.page-giveaways .role-scroll{ max-height: 200px; overflow-y: auto; padding-right: 4px; }

                                    body.page-giveaways .role-scroll::-webkit-scrollbar{ width: 4px; }

                                    body.page-giveaways .role-scroll::-webkit-scrollbar-thumb{ background: rgba(160,80,80,0.3); border-radius: 4px; }

                                

/* ---- page-profile ---- */

                                                    body.page-profile .scroll-container{
                                                        margin: 60px auto;
                                                    padding: 40px;
                                                    position: relative;
                                                    animation: scaleIn 0.6s ease-out;
            }

                                                    @keyframes scaleIn {
                                                        from {transform: scale(0.95); opacity: 0; }
                                                    to {transform: scale(1); opacity: 1; }
            }
                                                    body.page-profile .profile-header{
                                                        text-align: center;
                                                    margin-bottom: 40px;
            }

                                                    body.page-profile .profile-avatar{
                                                        width: 150px;
                                                    height: 150px;
                                                    border-radius: 50%;
                                                    border: 5px solid #8a4040;
                                                    box-shadow: 0 0 30px rgba(160, 80, 80, 0.4);
                                                    margin-bottom: 20px;
            }

                                                    body.page-profile .prestige-badge{
                                                        display: inline-block;
                                                    padding: 10px 25px;
                                                    background: linear-gradient(135deg, #6a3030 0%, #6a3030 100%);
                                                    color: white;
                                                    border-radius: 12px;
                                                    font-weight: 700;
                                                    letter-spacing: 1px;
                                                    box-shadow: 0 4px 15px rgba(160, 80, 80, 0.2);
                                                    margin-top: 10px;
            }

                                                    body.page-profile .stats-grid{
                                                        display: grid;
                                                    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                                                    gap: 20px;
                                                    margin-top: 40px;
            }

                                                    body.page-profile .stat-box{
                                                        background: rgba(24,10,10,0.76);
                                                    padding: 25px;
                                                    border-radius: 20px;
                                                    text-align: center;
                                                    border: 1px solid rgba(160, 80, 80,0.3);
                                                    transition: transform 0.3s;
            }

                                                    body.page-profile .stat-box:hover{transform: translateY(-5px); }

                                                    body.page-profile .stat-val{font-size: 2rem; font-weight: 800; color: #8a4040; display: block; }

                                                    body.page-profile .stat-lbl{font-size: 0.85rem; color: #997777; text-transform: uppercase; letter-spacing: 1px; }

                                                

/* ---- page-logs ---- */

                                                            body.page-logs .log-item{
                                                                padding: 10px 14px;
                                                            border-bottom: 1px solid rgba(160, 80, 80,0.2);
                                                            display: grid;
                                                            grid-template-columns: 90px 120px 1fr 80px;
                                                            align-items: center;
                                                            gap: 10px;
                                                            transition: all 0.2s ease;
                                                            background: rgba(255,255,255,0.15);
                                                            margin-bottom: 6px;
                                                            border-radius: 10px;
            }

                                                            body.page-logs .log-item:hover{
                                                                background: rgba(255,255,255,0.45);
                                                            transform: translateX(5px);
            }

                                                            body.page-logs .log-type{
                                                                font-weight: 800;
                                                            text-transform: uppercase;
                                                            font-size: 0.65rem;
                                                            padding: 4px 8px;
                                                            border-radius: 20px;
                                                            text-align: center;
                                                            letter-spacing: 0.5px;
                                                            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
                                                            white-space: nowrap;
                                                            overflow: hidden;
                                                            text-overflow: ellipsis;
                                                            max-width: 130px;
                                                            display: inline-block;
            }


                                                            body.page-logs .time-display{
                                                                font-family: 'Courier New', monospace;
                                                            font-size: 0.85rem;
                                                            color: #888;
                                                            font-weight: 600;
            }

                                                            body.page-logs .user-pill{
                                                                display: inline-flex;
                                                            align-items: center;
                                                            gap: 6px;
                                                            font-weight: 700;
                                                            color: #997777;
                                                            position: relative;
                                                            cursor: help;
            }

                                                            body.page-logs .user-id-tooltip{
                                                                visibility: hidden;
                                                            background-color: #333;
                                                            color: #fff;
                                                            text-align: center;
                                                            border-radius: 6px;
                                                            padding: 5px 10px;
                                                            position: absolute;
                                                            z-index: 1;
                                                            bottom: 125%;
                                                            left: 50%;
                                                            transform: translateX(-50%);
                                                            opacity: 0;
                                                            transition: opacity 0.3s;
                                                            font-size: 0.75rem;
                                                            font-weight: normal;
                                                            white-space: nowrap;
                                                            pointer-events: none;
            }

                                                            body.page-logs .user-pill:hover .user-id-tooltip{
                                                                visibility: visible;
                                                            opacity: 1;
            }

                                                            body.page-logs .log-action{
                                                                font-size: 1rem;
                                                            color: #666;
            }

                                                            body.page-logs .arrow-separator{
                                                                color: #8a4040;
                                                            margin: 0 8px;
                                                            font-weight: bold;
                                                            opacity: 0.6;
            }

                                                        

/* ---- page-settings ---- */

                                                                    body.page-settings .config-section{
                                                                        background: rgba(255, 255, 255, 0.1);
                                                                    border-radius: 10px;
                                                                    padding: 14px;
                                                                    margin-bottom: 12px;
                                                                    border: 1px solid rgba(255, 255, 255, 0.12);
                                                                    backdrop-filter: blur(5px);
            }

                                                                    body.page-settings .config-section:last-child{ margin-bottom: 0; }

                                                                    body.page-settings .config-title{
                                                                        color: #8a4040;
                                                                    font-size: 1.2rem;
                                                                    margin-top: 0;
                                                                    margin-bottom: 14px;
                                                                    border-bottom: 1px solid rgba(160, 80, 80, 0.2);
                                                                    padding-bottom: 8px;
                                                                    display: flex;
                                                                    align-items: center;
                                                                    gap: 8px;
            }

                                                                    body.page-settings .input-group{
                                                                        margin-bottom: 10px;
            }

                                                                    body.page-settings .input-group label{
                                                                        display: block;
                                                                    font-weight: bold;
                                                                    margin-bottom: 8px;
                                                                    color: #997777;
            }

                                                                    body.page-settings .input-desc{
                                                                        font-size: 0.85rem;
                                                                    color: #666;
                                                                    margin-bottom: 8px;
                                                                    font-style: italic;
            }

                                                                    body.page-settings input[type="text"],
body.page-settings input[type="number"]{
                                                                        width: 100%;
                                                                    padding: 12px;
                                                                    border-radius: 8px;
                                                                    border: 1px solid rgba(160, 80, 80, 0.3);
                                                                    background: rgba(255, 255, 255, 0.5);
                                                                    font-size: 1rem;
                                                                    color: #333;
                                                                    transition: all 0.3s;
            }

                                                                    body.page-settings input[type="text"]:focus,
body.page-settings input[type="number"]:focus{
                                                                        outline: none;
                                                                    border-color: #8a4040;
                                                                    background: rgba(255, 255, 255, 0.8);
                                                                    box-shadow: 0 0 10px rgba(160, 80, 80, 0.2);
            }

                                                                    body.page-settings .save-btn{
                                                                        background: linear-gradient(135deg, #8a4040 0%, #6a3030 100%);
                                                                    color: white;
                                                                    border: none;
                                                                    padding: 15px 30px;
                                                                    border-radius: 12px;
                                                                    font-size: 1.1rem;
                                                                    font-weight: bold;
                                                                    cursor: pointer;
                                                                    transition: transform 0.2s, box-shadow 0.2s;
                                                                    width: 100%;
                                                                    box-shadow: 0 4px 15px rgba(160, 80, 80, 0.3);
            }

                                                                    body.page-settings .save-btn:hover{
                                                                        transform: translateY(-2px);
                                                                    box-shadow: 0 6px 20px rgba(160, 80, 80, 0.4);
            }

                                                                    body.page-settings .save-btn:active{
                                                                        transform: translateY(1px);
            }

                                                                

/* ---- page-moderation ---- */

            /* Compact the header for moderation page */
            body.page-moderation .neon-title-container{ display: none; }

            body.page-moderation .nav-bar{ margin: 4px auto; padding: 4px 14px; box-shadow: none; border-radius: 8px; max-width: 98%; }

            body.page-moderation .nav-brand{ margin-bottom: 0; font-size: 0.68rem; }

            body.page-moderation a.nav-link{ padding: 4px 8px; font-size: 0.68rem; }

            body.page-moderation a.nav-link svg{ width: 12px; height: 12px; }


            body.page-moderation .mod-container{
                width: 98%;
                max-width: 1800px;
                margin: 5px auto;
                display: grid;
                grid-template-columns: 260px 1fr;
                gap: 12px;
                height: calc(100vh - 80px); /* Takes up nearly all height */
                min-height: 500px;
                background: rgba(20, 10, 10, 0.75);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border-radius: 12px;
                padding: 12px;
                border: 1px solid rgba(255, 255, 255, 0.2);
                box-shadow: 0 20px 50px rgba(0,0,0,0.25);
                box-sizing: border-box;
            }

            @media (max-width: 900px) { 
                body.page-moderation .mod-container{ grid-template-columns: 1fr; height: auto; }

                body.page-moderation .chat-panel{ height: 600px; }

            }

            /* Sidebar Styles */
            body.page-moderation .sidebar{
                display: flex;
                flex-direction: column;
                background: rgba(20, 9, 9, 0.96);
                backdrop-filter: none;
                border-radius: 12px;
                overflow: hidden;
                border: 1px solid rgba(160, 80, 80, 0.28);
                height: 100%;
            }

            body.page-moderation .sidebar ::-webkit-scrollbar{ width: 5px; }

            body.page-moderation .sidebar ::-webkit-scrollbar-thumb{ background: rgba(160,80,80,0.2); border-radius: 5px; }

            body.page-moderation .sidebar ::-webkit-scrollbar-thumb:hover{ background: rgba(160,80,80,0.35); }

            body.page-moderation .search-header{ padding: 12px; border-bottom: 1px solid rgba(160,80,80,0.2); }

            body.page-moderation .search-box{
                width: 100%;
                padding: 8px 12px;
                border: 1px solid rgba(160, 80, 80, 0.2);
                border-radius: 6px;
                background: rgba(18,8,8,0.92);
                color: #e0c7c7;
                font-family: inherit;
                font-size: 0.85rem;
            }

            body.page-moderation .search-box:focus{ outline: none; border-color: #8a4040; }


            /* User List Styles */
            body.page-moderation .user-list{ flex: 1; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: #8a4040 transparent; }

            body.page-moderation .user-row{
                display: flex;
                align-items: center;
                padding: 8px 10px;
                border-radius: 6px;
                cursor: pointer;
                transition: background 0.1s;
                margin-bottom: 2px;
                border: 1px solid transparent;
            }

            body.page-moderation .user-row:hover{ background: rgba(160, 80, 80, 0.2); }

            body.page-moderation .user-row.selected{ background: rgba(160, 80, 80, 0.15); border-color: transparent; }

            body.page-moderation .user-avatar-small{
                width: 32px;
                height: 32px;
                border-radius: 50%;
                margin-right: 10px;
                object-fit: cover;
                border: 1px solid rgba(160,80,80,0.2);
            }

            body.page-moderation .user-info{ flex: 1; overflow: hidden; }

            body.page-moderation .user-name{ font-weight: 700; color: #d6bbbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }

            body.page-moderation .user-handle{ font-size: 0.75rem; color: #9a7f7f; font-weight: 500; }


            body.page-moderation .sidebar-tabs{
                display: flex;
                gap: 8px;
                padding: 0 15px 15px 15px;
                border-bottom: 1px solid rgba(160,80,80,0.2);
            }

            body.page-moderation .sidebar-tabs .tab{
                flex: 1;
                text-align: center;
                padding: 8px;
                border: 1px solid transparent;
                background: transparent;
                border-radius: 8px;
                font-weight: 600;
                cursor: pointer;
                color: #a18383;
                font-size: 0.85rem;
            }

            body.page-moderation .sidebar-tabs .tab.active{
                background: rgba(138, 64, 64, 0.32);
                color: #f0dede;
                border-color: rgba(160, 80, 80, 0.45);
            }


            body.page-moderation .mod-container *,
body.page-moderation .mod-container *::before,
body.page-moderation .mod-container *::after{
                animation-duration: 0s !important;
                transition-duration: 0s !important;
            }


            /* Chat Panel Styles */
            body.page-moderation .chat-panel{
                display: flex;
                flex-direction: column;
                overflow: hidden;
                background: rgba(24, 10, 10, 0.9);
                backdrop-filter: blur(15px);
                border-radius: 12px;
                border: 1px solid rgba(160, 80, 80, 0.2);
                position: relative;
                height: 100%;
            }

            body.page-moderation .chat-header{ padding: 10px 16px; border-bottom: 1px solid rgba(160,80,80,0.2); display: flex; align-items: center; background: rgba(30,12,12,0.8); }

            body.page-moderation .social-cmd-btn{
                width: 100%; border: none; border-radius: 8px;
                background: transparent; cursor: pointer;
                font-size: 0.82rem; display: flex; align-items: center; gap: 10px;
                transition: all 0.15s; padding: 8px 14px; box-sizing: border-box;
                color: #997777; font-weight: 500; text-align: left;
            }

            body.page-moderation .social-cmd-btn:hover{ background: rgba(160, 80, 80,0.25); transform: none; }

            body.page-moderation .social-cmd-btn:active{ background: rgba(160, 80, 80,0.4); }

            body.page-moderation .social-cmd-btn.loading{ opacity: 0.5; pointer-events: none; }

            body.page-moderation .social-popup{
                display: none; position: absolute; top: 100%; right: 0; z-index: 200;
                background: rgba(24,10,10,0.96); backdrop-filter: blur(15px);
                border: 1px solid rgba(160, 80, 80,0.4); border-radius: 16px;
                box-shadow: 0 12px 40px rgba(0,0,0,0.35); padding: 10px 6px;
                width: 240px; max-height: 520px; overflow-y: auto;
            }

            body.page-moderation .social-popup.open{ display: block; animation: modalPop 0.2s ease-out; }

            body.page-moderation .social-popup-divider{ height: 1px; background: rgba(160, 80, 80,0.3); margin: 6px 8px; }

            body.page-moderation .social-popup-label{ font-size: 0.65rem; color: #aaa; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 14px 2px; }

            body.page-moderation .social-channel-row{ padding: 8px 14px; display: flex; align-items: center; gap: 8px; }

            body.page-moderation .social-channel-row label{ font-size: 0.72rem; color: #888; white-space: nowrap; font-weight: 600; }

            body.page-moderation .social-channel-row select{ font-size: 0.72rem; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(160, 80, 80,0.5); background: rgba(20,8,8,0.9); color: #e8d0d0; flex: 1; min-width: 0; }

            body.page-moderation .social-user-result:hover{ background: rgba(160, 80, 80,0.2); }

            body.page-moderation #interactionsBtn{
                padding: 6px 14px; font-size: 0.75rem; border-radius: 8px;
                background: linear-gradient(135deg, #8a4040 0%, #6a3030 100%);
                color: white; border: none; font-weight: 600; cursor: pointer; white-space: nowrap;
            }

            body.page-moderation #interactionsBtn:hover{ box-shadow: 0 4px 12px rgba(160, 80, 80,0.45); }

            body.page-moderation .chat-empty{ flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #999; opacity: 0.8; }

            body.page-moderation .chat-messages{ 
                flex: 1; 
                overflow-y: auto; 
                padding: 12px 16px; 
                display: flex; 
                flex-direction: column; 
                gap: 4px;
                background: rgba(18,8,8,0.45);
                overflow-x: hidden;
                scrollbar-width: thin;
                scrollbar-color: #8a4040 transparent;
            }


            body.page-moderation .message-bubble{
                max-width: 90%;
                padding: 6px 12px;
                border-radius: 8px;
                font-size: 0.85rem;
                line-height: 1.35;
                position: relative;
                box-shadow: 0 1px 3px rgba(0,0,0,0.05);
                word-wrap: break-word;
            }

            body.page-moderation .msg-sent{ align-self: flex-end; background: linear-gradient(135deg, #8a4040 0%, #6a3030 100%); color: #f3e6e6; border-bottom-right-radius: 5px; }

            body.page-moderation .msg-received{ align-self: flex-start; background: rgba(30,12,12,0.92); color: #dfc5c5; border-bottom-left-radius: 5px; }

            body.page-moderation .msg-time{ font-size: 0.6rem; opacity: 0.8; margin-top: 4px; text-align: right; }

            body.page-moderation .discord-emoji{ width: 1.5em; height: 1.5em; vertical-align: middle; display: inline; margin: 0 2px; object-fit: contain; }

            body.page-moderation .discord-mention{ background: rgba(88,101,242,0.15); color: #5865F2; padding: 0 4px; border-radius: 4px; font-weight: 600; font-size: 0.85em; }

            body.page-moderation .discord-mention.role{ color: #e67e22; background: rgba(230,126,34,0.15); }


            body.page-moderation .chat-input-area{ padding: 12px 16px; background: rgba(22,10,10,0.88); border-top: 1px solid rgba(160,80,80,0.2); }

            body.page-moderation .chat-input{
                width: 100%;
                padding: 12px;
                border: 1px solid rgba(160, 80, 80, 0.2);
                border-radius: 8px;
                background: rgba(18,8,8,0.92);
                color: #e0c7c7;
                font-family: inherit;
                resize: none; 
                overflow-y: hidden; 
                min-height: 44px;
                margin-bottom: 5px;
                box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
                transition: border-color 0.2s;
            }

            body.page-moderation .chat-input:focus{ border-color: #8a4040; outline: none; background: rgba(24,10,10,0.95); }


            body.page-moderation .status-indicator{ font-size: 0.85rem; margin-left: auto; color: #666; display: flex; align-items: center; gap: 8px; font-weight: 600; }

            body.page-moderation .dot{ width: 10px; height: 10px; background: #bbb; border-radius: 50%; }

            body.page-moderation .dot.online{ background: #2ecc71; box-shadow: 0 0 10px #2ecc71; }



                                /* Reply UI */
                                body.page-moderation .reply-preview{
                                    display: none;
                                background: rgba(0,0,0,0.05);
                                border-left: 3px solid #8a4040;
                                padding: 8px 15px;
                                margin-bottom: 15px;
                                border-radius: 8px;
                                position: relative;
                                font-size: 0.85rem;
                                animation: slideDown 0.2s ease-out;
        }

                                @keyframes slideDown {from {opacity: 0; transform: translateY(-10px); } to {opacity: 1; transform: translateY(0); } }
                                body.page-moderation .reply-cancel{
                                    position: absolute;
                                right: 8px;
                                top: 50%;
                                transform: translateY(-50%);
                                cursor: pointer;
                                opacity: 0.6;
                                transition: opacity 0.2s;
                                font-size: 1.2rem;
        }

                                body.page-moderation .reply-cancel:hover{opacity: 1; }

                                body.page-moderation .reply-meta{font - weight: bold; color: #8a4040; font-size: 0.75rem; margin-bottom: 2px; }

                                body.page-moderation .reply-text{white - space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.8; }


                                body.page-moderation .msg-sent .msg-actions{right: auto; left: 4px; flex-direction: row-reverse; }

                                body.page-moderation .message-bubble:hover .msg-actions,
body.page-moderation .msg-actions:hover{opacity: 1; visibility: visible; }


                                body.page-moderation .msg-actions{
                                    position: absolute;
                                right: 4px;
                                top: 4px;
                                display: flex;
                                gap: 5px;
                                opacity: 0;
                                visibility: hidden;
                                transition: all 0.2s;
                                z-index: 10;
                                background: rgba(24,10,10,0.92);
                                border: 1px solid rgba(160,80,80,0.3);
                                border-radius: 8px;
                                padding: 3px 6px;
                                box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }


                                /* Confirmation Modal */
                                body.page-moderation .confirm-backdrop{
                                    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
                                background: rgba(0,0,0,0.5);
                                display: none; justify-content: center; align-items: center; z-index: 2000;
                                backdrop-filter: blur(5px);
        }

                                body.page-moderation .confirm-box{
                                    background: rgba(24,10,10,0.95); padding: 25px; border-radius: 20px;
                                max-width: 400px; width: 90%; text-align: center;
                                box-shadow: 0 10px 40px rgba(0,0,0,0.2);
                                animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

                                @keyframes popIn {from {transform: scale(0.8); opacity: 0; } to {transform: scale(1); opacity: 1; } }
                                body.page-moderation .confirm-title{font - size: 1.2rem; font-weight: 700; color: #aa6666; margin-bottom: 10px; }

                                body.page-moderation .confirm-desc{font - size: 0.9rem; color: #666; margin-bottom: 20px; line-height: 1.5; }

                                body.page-moderation .confirm-actions{display: flex; justify-content: center; gap: 10px; }

                                body.page-moderation .confirm-btn{padding: 8px 20px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: transform 0.2s; border: none; }

                                body.page-moderation .confirm-btn:hover{transform: translateY(-2px); }

                                body.page-moderation .btn-cancel{background: #f0f0f0; color: #666; }

                                body.page-moderation .btn-confirm{background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); color: white; box-shadow: 0 4px 10px rgba(255, 117, 140, 0.4); }


                                body.page-moderation .action-btn{
                                    background: rgba(24,10,10,0.95);
                                border: 1px solid rgba(0,0,0,0.1);
                                padding: 5px 10px;
                                border-radius: 10px;
                                font-size: 0.75rem;
                                font-weight: 700;
                                cursor: pointer;
                                box-shadow: 0 4px 10px rgba(0,0,0,0.1);
                                white-space: nowrap;
                                display: flex;
                                align-items: center;
                                gap: 4px;
        }


                                body.page-moderation .btn-reply{color: #aa6666; border-color: rgba(160, 80, 80, 0.25); }

                                body.page-moderation .btn-delete{color: #dc3545; border-color: rgba(220, 53, 69, 0.2); }

                                body.page-moderation .action-btn:hover{background: rgba(40,16,16,0.9); transform: scale(1.05); }


                                /* Flyout Menu */
                                body.page-moderation .mod-flyout{
                                    position: absolute;
                                top: 55px;
                                right: 0;
                                background: rgba(24,10,10,0.97);
                                border: 1px solid rgba(160,80,80,0.22);
                                border-radius: 12px;
                                box-shadow: 0 10px 30px rgba(0,0,0,0.2);
                                display: none;
                                flex-direction: column;
                                width: 160px;
                                z-index: 100;
                                overflow: hidden;
                                animation: fadeIn 0.2s ease;
        }

                                @keyframes fadeIn {from {opacity: 0; transform: translateY(-5px); } to {opacity: 1; transform: translateY(0); } }
                                body.page-moderation .flyout-item{
                                    padding: 12px 15px;
                                font-size: 0.85rem;
                                font-weight: 600;
                                cursor: pointer;
                                transition: background 0.2s;
                                display: flex;
                                align-items: center;
                                gap: 10px;
                                color: #dfc5c5;
        }

                                body.page-moderation .flyout-item:hover{background: rgba(40,16,16,0.9); }

                                body.page-moderation .flyout-item.red{color: #dc3545; }

                                body.page-moderation .flyout-item.red:hover{background: #fff5f5; }


                                body.page-moderation .btn-warning{
                                    background: rgba(255, 193, 7, 0.15);
                                color: #856404;
                                border: 1px solid rgba(255, 193, 7, 0.2);
                                width: 34px;
                                height: 34px;
                                border-radius: 8px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                cursor: pointer;
                                font-size: 1rem;
                                transition: all 0.2s;
        }

                                body.page-moderation .btn-warning:hover{background: rgba(255, 193, 7, 0.3); transform: scale(1.05); }


                                /* Inline Send Button */
                                body.page-moderation .input-wrapper{position: relative; display: flex; align-items: flex-end; }

                                body.page-moderation .btn-inline-send{
                                    position: absolute;
                                right: 8px;
                                bottom: 8px;
                                width: 32px;
                                height: 32px;
                                background: linear-gradient(135deg, #8a4040 0%, #8a4040 100%);
                                color: white;
                                border: none;
                                border-radius: 50%;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                cursor: pointer;
                                transition: transform 0.2s;
                                box-shadow: 0 2px 5px rgba(160, 80, 80,0.35);
                                z-index: 5;
        }

                                body.page-moderation .btn-inline-send:hover{transform: scale(1.1); }

                                body.page-moderation .btn-inline-send:disabled{background: #ccc; box-shadow: none; cursor: not-allowed; }


                                /* Custom Modal */
                                body.page-moderation .modal-overlay{
                                    position: fixed;
                                top: 0; left: 0; width: 100%; height: 100%;
                                background: rgba(0,0,0,0.5);
                                display: none;
                                align-items: center;
                                justify-content: center;
                                z-index: 2000;
                                backdrop-filter: blur(5px);
        }

                                body.page-moderation .modal-content{
                                    background: rgba(24,10,10,0.95);
                                padding: 30px;
                                border-radius: 20px;
                                max-width: 450px;
                                width: 90%;
                                text-align: center;
                                box-shadow: 0 20px 50px rgba(0,0,0,0.3);
                                animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

                                @keyframes modalPop {from {transform: scale(0.8); opacity: 0; } to {transform: scale(1); opacity: 1; } }

                                body.page-moderation .md-toolbar{flex - wrap: wrap; margin-bottom: 8px !important; }

                                body.page-moderation .md-btn{width: 30px; min-width: 30px; max-width: 30px; height: 30px; padding: 0 !important; display: flex; align-items: center; justify-content: center; overflow: hidden; }


                                /* Moderation Flyout */
                                body.page-moderation .mod-flyout{
                                    position: absolute;
                                top: 55px;
                                right: 0;
                                background: rgba(24,10,10,0.96);
                                border: 1px solid rgba(160,80,80,0.22);
                                border-radius: 12px;
                                box-shadow: 0 10px 30px rgba(0,0,0,0.2);
                                display: none;
                                flex-direction: column;
                                width: 160px;
                                z-index: 100;
                                overflow: hidden;
                                animation: fadeIn 0.2s ease;
        }

                                @keyframes fadeIn {from {opacity: 0; transform: translateY(-5px); } to {opacity: 1; transform: translateY(0); } }
                                body.page-moderation .flyout-item{
                                    padding: 12px 15px;
                                font-size: 0.85rem;
                                font-weight: 600;
                                cursor: pointer;
                                transition: background 0.2s;
                                display: flex; align-items: center; gap: 10px; color: #dfc5c5;
        }

                                body.page-moderation .flyout-item:hover{background: rgba(40,16,16,0.9); }

                                body.page-moderation .flyout-item.red{color: #dc3545; }

                                body.page-moderation .flyout-item.red:hover{background: #fff5f5; }


                                body.page-moderation .btn-warning{
                                    background: rgba(255, 193, 7, 0.15);
                                color: #856404;
                                border: 1px solid rgba(255, 193, 7, 0.2);
                                width: 34px; height: 34px; border-radius: 8px;
                                display: flex; align-items: center; justify-content: center;
                                cursor: pointer; font-size: 1rem; transition: all 0.2s;
        }

                                body.page-moderation .btn-warning:hover{background: rgba(255, 193, 7, 0.3); transform: scale(1.05); }


                                /* Inline Send Button */
                                body.page-moderation .btn-send{
                                    padding: 8px 18px;
                                background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
                                color: white;
                                border: none;
                                border-radius: 12px;
                                font-weight: 600;
                                font-size: 0.85rem;
                                cursor: pointer;
                                transition: all 0.2s;
                                display: flex;
                                align-items: center;
                                gap: 6px;
                                box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
        }

                                body.page-moderation .btn-send:hover{transform: translateY(-1px); box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3); }

                                body.page-moderation .btn-send:active{transform: translateY(0); }

                                body.page-moderation .btn-send:disabled{background: #ccc; box-shadow: none; cursor: not-allowed; opacity: 0.6; }


                                body.page-moderation .md-toolbar{
                                    display: flex;
                                flex-wrap: wrap;
                                gap: 4px;
                                margin-bottom: 10px;
                                padding-bottom: 6px;
                                border-bottom: 1px solid rgba(0,0,0,0.03);
        }


                                body.page-moderation .md-btn{
                                    background: rgba(24,10,10,0.96);
                                border: 1px solid rgba(160,80,80,0.22);
                                border-radius: 6px;
                                padding: 0;
                                cursor: pointer;
                                font-size: 0.75rem;
                                font-weight: 600;
                                color: #dfc5c5;
                                transition: all 0.2s;
                                width: 30px;
                                min-width: 30px;
                                max-width: 30px;
                                height: 30px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                overflow: hidden;
                                box-sizing: border-box;
                                line-height: 1;
                                white-space: nowrap;
        }

                                body.page-moderation .md-btn:hover{
                                    background: rgba(40,16,16,0.9);
                                border-color: rgba(160,80,80,0.3);
                                color: #f1dcdc;
                                transform: translateY(-1px);
                                box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

                                body.page-moderation .md-btn:active{transform: translateY(0); }


                                /* Appeal Modal */
                                body.page-moderation .modal-overlay{
                                    position: fixed;
                                top: 0; left: 0; width: 100%; height: 100%;
                                background: rgba(0,0,0,0.5);
                                display: none; align-items: center; justify-content: center;
                                z-index: 2000; backdrop-filter: blur(5px);
        }

                                body.page-moderation .modal-content{
                                    background: rgba(24,10,10,0.95); padding: 30px; border-radius: 20px;
                                max-width: 450px; width: 90%; text-align: center;
                                box-shadow: 0 20px 50px rgba(0,0,0,0.3);
                                animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

                                @keyframes modalPop {from {transform: scale(0.8); opacity: 0; } to {transform: scale(1); opacity: 1; } }
                            

/* ---- page-appeal ---- */

                                                body.page-appeal .appeal-container{
                                                    max - width: 800px;
                                                margin: 40px auto;
                                                height: 80vh;
                                                display: flex;
                                                flex-direction: column;
        }

                                                body.page-appeal .chat-messages{
                                                    flex: 1;
                                                overflow-y: auto;
                                                padding: 25px;
                                                display: flex;
                                                flex-direction: column;
                                                gap: 15px;
                                                background: rgba(18,8,8,0.45);
                                                scrollbar-width: thin;
                                                scrollbar-color: #8a4040 transparent;
        }

                                                body.page-appeal .message-bubble{
                                                    max - width: 80%;
                                                padding: 12px 18px;
                                                border-radius: 20px;
                                                font-size: 0.95rem;
                                                line-height: 1.5;
                                                position: relative;
                                                box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

                                                body.page-appeal .msg-sent{align - self: flex-end; background: linear-gradient(135deg, #8a4040 0%, #6a3030 100%); color: #f3e6e6; border-bottom-right-radius: 5px; }

                                                body.page-appeal .msg-received{align - self: flex-start; background: rgba(30,12,12,0.92); color: #dfc5c5; border-bottom-left-radius: 5px; }

                                                body.page-appeal .msg-time{font - size: 0.7rem; opacity: 0.8; margin-top: 6px; text-align: right; }


                                                body.page-appeal #dmMessageInput{
                                                    resize: none;
                                                overflow-y: hidden;
                                                min-height: 44px;
                                                height: 44px;
                                                width: 100%;
                                                padding: 12px;
                                                border-radius: 15px;
                                                border: 1px solid rgba(160,80,80,0.35);
                                                background: rgba(24,10,10,0.86);
                                                font-family: inherit;
                                                color: #e8d0d0;
        }

                                            

/* ---- page-activity ---- */

        body.page-activity *,
body.page-activity *::before,
body.page-activity *::after{ box-sizing: border-box; margin: 0; padding: 0; }

        :root{
            --accent: #8a4040;
            --accent-light: #e8c252;
            --accent-muted: #6a3030;
            --accent-dim: #8B6914;
            --deep: #1a1a1a;
            --night: #222222;
            --surface: #2a2a2a;
            --gold: #aa6666;
            --glass: rgba(255,255,255,0.03);
            --glass-border: rgba(160,80,80,0.15);
            --card-radius: 18px;
            --text: #d4cccc;
            --text-muted: rgba(200,180,180,0.5);
            --text-dim: rgba(200,180,180,0.3);
        }

        html:has(body.page-activity),
body.page-activity{ height: 100%; overflow: hidden; }

        body.page-activity{
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
            color: var(--text);
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100vh;
            width: 100vw;
            background: var(--deep);
        }


        /* ═══ BACKGROUND ═══ */
        body.page-activity .bg-base{
            position: fixed; inset: 0; z-index: 0;
            background:
                radial-gradient(ellipse 80% 60% at 20% 80%, rgba(200,150,0,0.08) 0%, transparent 60%),
                radial-gradient(ellipse 70% 50% at 80% 20%, rgba(180,130,0,0.06) 0%, transparent 60%),
                radial-gradient(ellipse 100% 100% at 50% 50%, rgba(26,26,26,0.95) 0%, transparent 100%),
                linear-gradient(170deg, #1a1a1a 0%, #1e1e1e 25%, #222222 50%, #252525 75%, #1a1a1a 100%);
        }

        body.page-activity .bg-aurora{
            position: fixed; inset: 0; z-index: 0;
            background:
                radial-gradient(ellipse 120% 50% at 50% 0%, rgba(160,80,80,0.04) 0%, transparent 70%),
                radial-gradient(ellipse 80% 40% at 25% 100%, rgba(200,150,0,0.03) 0%, transparent 70%),
                radial-gradient(ellipse 60% 30% at 80% 60%, rgba(200,150,0,0.03) 0%, transparent 80%);
            animation: auroraShift 20s ease-in-out infinite alternate;
        }

        @keyframes auroraShift {
            0% { opacity: 0.5; filter: hue-rotate(0deg); }
            50% { opacity: 1; filter: hue-rotate(5deg); }
            100% { opacity: 0.6; filter: hue-rotate(-5deg); }
        }

        /* Floating particles */
        body.page-activity .particles{ position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

        body.page-activity .particle{
            position: absolute;
            border-radius: 50%;
            opacity: 0;
            animation: floatUp linear infinite;
        }

        @keyframes floatUp {
            0% { transform: translateY(100vh) scale(0); opacity: 0; }
            15% { opacity: 0.5; }
            85% { opacity: 0.3; }
            100% { transform: translateY(-10vh) scale(1); opacity: 0; }
        }

        /* Sakura petals */
        body.page-activity .petals{ position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }

        body.page-activity .petal{
            position: absolute; top: -40px;
            font-size: 16px; opacity: 0;
            animation: petalDrift linear infinite;
            filter: drop-shadow(0 0 6px rgba(160,80,80,0.2));
        }

        @keyframes petalDrift {
            0% { transform: translateY(-40px) rotate(0deg) translateX(0); opacity: 0; }
            8% { opacity: 0.4; }
            50% { transform: translateY(50vh) rotate(360deg) translateX(50px); opacity: 0.25; }
            100% { transform: translateY(105vh) rotate(720deg) translateX(-25px); opacity: 0; }
        }

        /* ═══ MAIN CONTAINER ═══ */
        body.page-activity .hub{
            position: relative; z-index: 10;
            width: 100%; max-width: 900px;
            height: 100vh;
            display: flex; flex-direction: column;
            overflow-y: auto; overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: rgba(160,80,80,0.15) transparent;
            padding: 0 8px;
        }

        body.page-activity .hub::-webkit-scrollbar{ width: 5px; }

        body.page-activity .hub::-webkit-scrollbar-thumb{ background: rgba(160,80,80,0.2); border-radius: 5px; }

        body.page-activity .hub::-webkit-scrollbar-thumb:hover{ background: rgba(160,80,80,0.35); }


        /* ═══ HEADER / BRANDING - Compact ═══ */
        body.page-activity .brand{
            text-align: center;
            padding: 10px 16px 6px;
            position: relative;
            flex-shrink: 0;
        }


        body.page-activity .brand-frame{
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            pointer-events: none;
        }

        body.page-activity .brand-frame svg{
            width: 140px; height: 85px;
            opacity: 0.04;
            filter: drop-shadow(0 0 20px rgba(160,80,80,0.1));
        }


        body.page-activity .logo-icon{
            font-size: 24px;
            margin-bottom: 2px;
            animation: gentleFloat 4s ease-in-out infinite;
            filter: drop-shadow(0 0 12px rgba(160,80,80,0.3))
                   drop-shadow(0 4px 20px rgba(200,150,0,0.15));
        }

        @keyframes gentleFloat {
            0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
            25% { transform: translateY(-3px) scale(1.02) rotate(-2deg); }
            50% { transform: translateY(-5px) scale(1.04) rotate(0deg); }
            75% { transform: translateY(-3px) scale(1.02) rotate(2deg); }
        }

        body.page-activity .logo-text{
            font-family: 'Ma Shan Zheng', cursive;
            font-size: 26px;
            line-height: 1.1;
            background: linear-gradient(135deg,
                #aa6666 0%, #e8c252 15%, #8a4040 35%,
                #6a3030 50%, #8a4040 65%, #e8c252 80%,
                #aa6666 100%
            );
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: logoShimmer 5s ease-in-out infinite;
            filter: drop-shadow(0 2px 15px rgba(160,80,80,0.08));
            margin-bottom: 3px;
        }

        @keyframes logoShimmer {
            0%, 100% { background-position: 0% 50%; }
            33% { background-position: 100% 0%; }
            66% { background-position: 50% 100%; }
        }

        body.page-activity .logo-sub{
            font-family: 'ZCOOL XiaoWei', serif;
            font-size: 10px;
            letter-spacing: 6px;
            text-transform: uppercase;
            color: var(--text-dim);
            font-weight: 300;
            margin-top: 2px;
        }


        body.page-activity .brand-line{
            width: 50px; height: 1px;
            margin: 4px auto 0;
            background: linear-gradient(90deg, transparent, rgba(160,80,80,0.25), rgba(200,150,0,0.15), transparent);
        }


        /* ═══ GRID LAYOUT ═══ */
        body.page-activity .hub-grid{
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            align-items: start;
        }

        body.page-activity .hub-grid .full-width{ grid-column: 1 / -1; }

        body.page-activity .left-col{ display: flex; flex-direction: column; gap: 6px; }

        body.page-activity .right-col{ display: flex; flex-direction: column; gap: 6px; }


        @media (max-width: 680px) {
            body.page-activity .hub-grid{ grid-template-columns: 1fr; }

            body.page-activity .brand{ padding: 8px 16px 4px; }

            body.page-activity .logo-text{ font-size: 22px; }

            body.page-activity .logo-icon{ font-size: 20px; }

        }

        /* ═══ LOADING STATE ═══ */
        body.page-activity #loadingSection{
            text-align: center;
            padding: 40px 24px;
        }

        body.page-activity .loader-wrap{
            width: 56px; height: 56px;
            margin: 0 auto 20px;
            position: relative;
        }

        body.page-activity .loader-ring{
            width: 56px; height: 56px;
            border: 2.5px solid rgba(160,80,80,0.08);
            border-top-color: var(--accent);
            border-right-color: var(--accent-muted);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        body.page-activity .loader-emoji{
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            font-size: 20px;
            animation: gentleFloat 2s ease-in-out infinite;
        }

        @keyframes spin { to { transform: rotate(360deg); } }
        body.page-activity .load-text{ font-size: 14px; color: var(--text-muted); font-weight: 600; }

        body.page-activity .load-detail{ font-size: 11px; color: var(--text-dim); margin-top: 6px; font-style: italic; }


        /* ═══ HUB CONTENT (shown after loading) ═══ */
        body.page-activity #hubContent{ display: none; flex: 1; padding: 0 4px 8px; }


        /* ─── Card Base - compact glass ─── */
        body.page-activity .card{
            background: var(--glass);
            border: 1px solid var(--glass-border);
            border-radius: 14px;
            padding: 10px 12px;
            margin-bottom: 0;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        body.page-activity .card:hover{
            border-color: rgba(160,80,80,0.25);
            box-shadow: 0 4px 24px rgba(160,80,80,0.06);
        }

        body.page-activity .card::before{
            content: '';
            position: absolute; top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(160,80,80,0.25), rgba(200,150,0,0.15), transparent);
            border-radius: var(--card-radius) var(--card-radius) 0 0;
        }

        body.page-activity .card-title{
            font-size: 10px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--text-muted);
            font-weight: 700;
            margin-bottom: 6px;
            display: flex; align-items: center; gap: 5px;
        }

        body.page-activity .card-title .icon{
            font-size: 14px;
            filter: drop-shadow(0 0 4px rgba(160,80,80,0.2));
        }

        body.page-activity .card-title .dot{
            width: 7px; height: 7px; border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--accent-dim));
            box-shadow: 0 0 10px rgba(160,80,80,0.3);
            animation: dotPulse 2.5s ease-in-out infinite;
        }

        @keyframes dotPulse {
            0%, 100% { opacity: 0.4; transform: scale(0.85); }
            50% { opacity: 1; transform: scale(1.15); }
        }

        /* ─── Upcoming Races ─── */
        body.page-activity .giveaway-item{
            display: flex; align-items: center; gap: 12px;
            padding: 10px 14px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(160,80,80,0.08);
            border-radius: 14px;
            margin-bottom: 6px;
            transition: all 0.25s ease;
        }

        body.page-activity .giveaway-item:hover{
            border-color: rgba(160,80,80,0.2);
            background: rgba(160,80,80,0.04);
            transform: translateX(2px);
        }

        body.page-activity .giveaway-item:last-child{ margin-bottom: 0; }

        body.page-activity .giveaway-icon{
            width: 38px; height: 38px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(160,80,80,0.1), rgba(200,150,0,0.08));
            display: flex; align-items: center; justify-content: center;
            font-size: 17px; flex-shrink: 0;
        }

        body.page-activity .giveaway-info{ flex: 1; min-width: 0; }

        body.page-activity .giveaway-name{
            font-size: 13px; font-weight: 600;
            color: var(--text);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        body.page-activity .giveaway-meta{
            font-size: 11px; color: var(--text-dim);
            margin-top: 3px;
            display: flex; gap: 10px; align-items: center;
        }

        body.page-activity .giveaway-countdown{
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
            font-size: 12px; font-weight: 700;
            color: var(--accent-light);
            padding: 5px 12px;
            background: rgba(160,80,80,0.06);
            border: 1px solid rgba(160,80,80,0.12);
            border-radius: 10px;
            white-space: nowrap;
            flex-shrink: 0;
        }


        /* ─── Marble Preview Card ─── */
        body.page-activity .marble-preview-wrap{
            display: flex; align-items: center; gap: 12px;
            padding: 2px 0;
        }

        body.page-activity .marble-canvas-wrap{
            width: 80px; height: 80px; flex-shrink: 0;
            position: relative;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(160,80,80,0.05) 0%, transparent 70%);
            box-shadow: 0 0 20px rgba(160,80,80,0.04);
        }

        body.page-activity .marble-canvas-wrap canvas{
            width: 100%; height: 100%;
            border-radius: 50%;
        }

        body.page-activity .marble-details{ flex: 1; }

        body.page-activity .marble-detail-row{
            display: flex; align-items: center; gap: 6px;
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 2px;
            padding: 1px 0;
        }

        body.page-activity .marble-detail-row .label{
            opacity: 0.5;
            width: 48px;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        body.page-activity .marble-detail-row .value{ font-weight: 700; color: var(--text); font-size: 12px; }


        /* ─── Stats Row ─── */
        body.page-activity .stats-row{
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-bottom: 0;
        }

        body.page-activity .stat-box{
            text-align: center;
            padding: 8px 4px 6px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(160,80,80,0.08);
            border-radius: 10px;
            transition: all 0.25s ease;
        }

        body.page-activity .stat-box:hover{
            background: rgba(160,80,80,0.04);
            border-color: rgba(160,80,80,0.18);
            transform: translateY(-2px);
        }

        body.page-activity .stat-val{
            font-size: 17px; font-weight: 800;
            background: linear-gradient(135deg, var(--accent-light), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        body.page-activity .stat-label{
            font-size: 9px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--text-dim);
            margin-top: 4px;
            font-weight: 600;
        }


        /* ─── Customize Section - Compact ─── */
        body.page-activity .cust-section{ margin-top: 2px; }

        body.page-activity .cust-group{
            margin-bottom: 6px;
        }

        body.page-activity .cust-group label{
            display: block;
            font-size: 11px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 8px;
            font-weight: 700;
        }

        body.page-activity .color-grid{
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 8px;
        }

        body.page-activity .color-swatch{
            aspect-ratio: 1;
            border-radius: 50%;
            cursor: pointer;
            border: 2.5px solid transparent;
            transition: all 0.25s ease;
            position: relative;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        body.page-activity .color-swatch:hover{ transform: scale(1.2); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

        body.page-activity .color-swatch.selected{
            border-color: var(--gold);
            box-shadow: 0 0 14px rgba(160,80,80,0.45), 0 2px 8px rgba(0,0,0,0.2);
            transform: scale(1.1);
        }

        body.page-activity .option-grid{
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
        }

        body.page-activity .option-pill{
            padding: 9px 10px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(160,80,80,0.08);
            border-radius: 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.25s ease;
            text-align: center;
            color: var(--text-muted);
        }

        body.page-activity .option-pill:hover{ background: rgba(160,80,80,0.06); border-color: rgba(160,80,80,0.2); transform: translateY(-1px); }

        body.page-activity .option-pill.selected{
            border-color: var(--gold);
            background: rgba(160,80,80,0.06);
            color: var(--gold);
            box-shadow: 0 0 12px rgba(160,80,80,0.1);
        }

        body.page-activity .hub-select{
            width: 100%;
            padding: 11px 14px;
            background: rgba(20,20,20,0.8);
            color: var(--text);
            border: 1px solid rgba(160,80,80,0.12);
            border-radius: 12px;
            font-size: 13px;
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
            font-weight: 500;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b22222' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            transition: all 0.25s ease;
        }

        body.page-activity .hub-select:hover{ border-color: rgba(160,80,80,0.25); background: rgba(28,28,28,0.9); }

        body.page-activity .hub-select:focus{ border-color: var(--gold); outline: none; box-shadow: 0 0 10px rgba(160,80,80,0.15); }

        body.page-activity .hub-select option{ background: #222; color: var(--text); }


        body.page-activity .btn-save{
            width: 100%;
            padding: 13px;
            border: none;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--accent), #6a3030, var(--accent-dim));
            color: #fff;
            font-weight: 800;
            font-size: 13px;
            cursor: pointer;
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
            letter-spacing: 0.5px;
            transition: all 0.25s ease;
            box-shadow: 0 4px 20px rgba(160,80,80,0.15), 0 1px 3px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
        }

        body.page-activity .btn-save::after{
            content: '';
            position: absolute; inset: 0;
            background: linear-gradient(135deg, transparent, rgba(255,255,255,0.08), transparent);
            opacity: 0;
            transition: opacity 0.25s;
        }

        body.page-activity .btn-save:hover{ transform: translateY(-2px); box-shadow: 0 6px 28px rgba(160,80,80,0.2), 0 2px 6px rgba(0,0,0,0.2); }

        body.page-activity .btn-save:hover::after{ opacity: 1; }

        body.page-activity .btn-save:active{ transform: translateY(0); box-shadow: 0 2px 12px rgba(160,80,80,0.15); }


        /* ─── Premium Gate - Elegant ─── */
        body.page-activity .premium-gate{
            text-align: center;
            padding: 10px 10px;
        }

        body.page-activity .premium-gate .crown{
            font-size: 28px; margin-bottom: 6px;
            filter: drop-shadow(0 0 12px rgba(160,80,80,0.3));
            animation: gentleFloat 3s ease-in-out infinite;
        }

        body.page-activity .premium-gate h3{
            font-family: 'Ma Shan Zheng', cursive;
            font-size: 20px;
            background: linear-gradient(135deg, #8a4040, #b07070, #8a4040);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 3px;
        }

        body.page-activity .premium-gate .price{
            font-size: 10px;
            color: var(--text-dim);
            margin-bottom: 10px;
            font-weight: 500;
        }

        body.page-activity .premium-gate .perks{
            text-align: left;
            padding: 10px 14px;
            background: rgba(160,80,80,0.02);
            border: 1px solid rgba(160,80,80,0.06);
            border-radius: 12px;
            margin-bottom: 10px;
            font-size: 11px;
            color: var(--text-muted);
            line-height: 1.8;
        }

        body.page-activity .btn-subscribe{
            width: 100%;
            padding: 13px;
            border: none;
            border-radius: 14px;
            background: linear-gradient(135deg, #8a4040, #b07070, #8a4040);
            background-size: 200% 200%;
            animation: goldShift 3s ease-in-out infinite;
            color: #1a1a1a;
            font-weight: 800;
            font-size: 13px;
            cursor: pointer;
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
            transition: all 0.25s ease;
            box-shadow: 0 4px 20px rgba(160,80,80,0.15);
        }

        @keyframes goldShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        body.page-activity .btn-subscribe:hover{ transform: translateY(-2px); box-shadow: 0 6px 28px rgba(160,80,80,0.25); }


        body.page-activity .premium-badge{
            display: inline-flex; align-items: center; gap: 6px;
            padding: 6px 14px;
            background: rgba(160,80,80,0.06);
            border: 1px solid rgba(160,80,80,0.15);
            border-radius: 20px;
            font-size: 10px; font-weight: 800;
            color: var(--gold);
            letter-spacing: 1.5px;
            margin-bottom: 14px;
        }

        body.page-activity .manage-link{
            font-size: 10px;
            color: var(--text-dim);
            cursor: pointer;
            margin-left: 8px;
            transition: color 0.2s;
        }

        body.page-activity .manage-link:hover{ color: var(--text-muted); }


        /* ─── No Race State ─── */
        body.page-activity .no-race-quiet{
            text-align: center;
            padding: 20px 24px;
        }

        body.page-activity .no-race-quiet .moon{
            font-size: 32px; margin-bottom: 10px; opacity: 0.5;
            animation: gentleFloat 5s ease-in-out infinite;
        }

        body.page-activity .no-race-quiet p{
            font-size: 13px;
            color: var(--text-dim);
            line-height: 1.8;
        }


        /* ─── Error ─── */
        body.page-activity .error-card{
            background: rgba(160,80,80,0.06);
            border: 1px solid rgba(160,80,80,0.15);
            border-radius: 18px;
            padding: 28px;
            text-align: center;
        }

        body.page-activity .error-card .icon{ font-size: 32px; margin-bottom: 12px; }

        body.page-activity .error-card .title{ color: var(--accent-light); font-weight: 700; margin-bottom: 6px; font-size: 14px; }

        body.page-activity .error-card .msg{ color: var(--text-dim); font-size: 12px; }


        /* ─── Toast ─── */
        body.page-activity .toast{
            position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
            padding: 12px 24px;
            background: rgba(26,26,26,0.95);
            border: 1px solid rgba(160,80,80,0.2);
            border-radius: 14px;
            font-size: 13px; font-weight: 700;
            color: var(--accent-light);
            z-index: 100;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        }

        body.page-activity .toast.show{ transform: translateX(-50%) translateY(0); }


        /* ─── Race Notification Banner ─── */
        body.page-activity .race-notif{
            display: none;
            position: fixed; top: 0; left: 0; right: 0;
            z-index: 500;
            padding: 0;
            animation: notifSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes notifSlideIn {
            from { transform: translateY(-100%); }
            to { transform: translateY(0); }
        }
        body.page-activity .race-notif-inner{
            display: flex; align-items: center; gap: 12px;
            padding: 14px 18px;
            background: linear-gradient(135deg, rgba(160,80,80,0.95), rgba(200,150,0,0.9), rgba(100,20,20,0.85));
            cursor: pointer;
            transition: filter 0.2s;
            position: relative;
            overflow: hidden;
        }

        body.page-activity .race-notif-inner:hover{ filter: brightness(1.1); }

        body.page-activity .race-notif-inner::before{
            content: '';
            position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
            background-size: 200% 100%;
            animation: notifShimmer 2s ease-in-out infinite;
        }

        @keyframes notifShimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        body.page-activity .race-notif-icon{
            font-size: 26px;
            animation: notifBounce 0.6s ease-in-out infinite alternate;
            position: relative; z-index: 1;
        }

        @keyframes notifBounce {
            from { transform: scale(1); }
            to { transform: scale(1.15); }
        }
        body.page-activity .race-notif-text{
            flex: 1; position: relative; z-index: 1;
        }

        body.page-activity .race-notif-text .notif-title{
            font-size: 14px; font-weight: 800;
            color: #fff;
            text-shadow: 0 1px 4px rgba(0,0,0,0.3);
        }

        body.page-activity .race-notif-text .notif-sub{
            font-size: 11px;
            color: rgba(255,255,255,0.85);
            margin-top: 2px;
        }

        body.page-activity .race-notif-arrow{
            font-size: 18px; color: #fff; opacity: 0.8;
            position: relative; z-index: 1;
            animation: notifArrow 1s ease-in-out infinite;
        }

        @keyframes notifArrow {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(5px); }
        }
    

/* ---- page-bot-manager ---- */

        body.page-bot-manager .manager-container{ max-width: 1400px; width: 95%; margin: 20px auto; }

        body.page-bot-manager .manager-header{ text-align: center; margin-bottom: 30px; }

        body.page-bot-manager .manager-header h2{ font-size: 1.8rem; color: #aa6666; margin-bottom: 8px; }

        body.page-bot-manager .manager-header p{ color: #997777; font-size: 0.95rem; }

        body.page-bot-manager .guild-table{ width: 100%; border-collapse: collapse; background: rgba(26,16,16,0.74); border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px); }

        body.page-bot-manager .guild-table thead{ background: rgba(130,85,85,0.08); }

        body.page-bot-manager .guild-table th{ padding: 14px 16px; text-align: left; color: #b88383; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid rgba(130,85,85,0.16); }

        body.page-bot-manager .guild-table td{ padding: 12px 16px; border-bottom: 1px solid rgba(130,85,85,0.05); color: #c7b7b7; font-size: 0.9rem; vertical-align: middle; }

        body.page-bot-manager .guild-table tr:hover td{ background: rgba(130,85,85,0.04); }

        body.page-bot-manager .guild-icon{ width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-right: 10px; vertical-align: middle; background: #333; }

        body.page-bot-manager .guild-name-cell{ display: flex; align-items: center; gap: 10px; }

        body.page-bot-manager .btn-leave{ padding: 6px 16px; border-radius: 8px; border: 1px solid rgba(255,60,60,0.4); background: rgba(255,30,30,0.1); color: #bb7777; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif; }

        body.page-bot-manager .btn-leave:hover{ background: rgba(255,30,30,0.25); border-color: #bb7777; transform: translateY(-1px); }

        body.page-bot-manager .btn-leave:disabled{ opacity: 0.4; cursor: not-allowed; transform: none; }

        body.page-bot-manager .btn-leave.leaving{ background: rgba(255,165,0,0.15); color: #ffa500; border-color: rgba(255,165,0,0.4); }

        body.page-bot-manager .guild-count{ display: inline-block; padding: 4px 12px; background: rgba(130,85,85,0.09); border: 1px solid rgba(130,85,85,0.22); border-radius: 20px; color: #b88383; font-size: 0.85rem; font-weight: 600; margin-top: 10px; }

        body.page-bot-manager .premium-badge-sm{ display: inline-block; padding: 2px 8px; border-radius: 10px; background: rgba(74,222,128,0.15); color: #4ade80; font-size: 0.7rem; font-weight: 600; border: 1px solid rgba(74,222,128,0.3); cursor: pointer; transition: all 0.2s; }

        body.page-bot-manager .premium-badge-sm:hover{ background: rgba(74,222,128,0.3); }

        body.page-bot-manager .no-premium{ color: #666; font-size: 0.75rem; cursor: pointer; padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(100,100,100,0.3); background: rgba(60,60,60,0.2); transition: all 0.2s; display: inline-block; }

        body.page-bot-manager .no-premium:hover{ border-color: rgba(74,222,128,0.4); color: #888; }

        body.page-bot-manager .status-dot{ display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

        body.page-bot-manager .status-dot.online{ background: #4ade80; }

        body.page-bot-manager .loading-spinner{ display: flex; justify-content: center; align-items: center; padding: 60px; color: #997777; }

        body.page-bot-manager .loading-spinner::after{ content: ''; width: 30px; height: 30px; border: 3px solid rgba(160,80,80,0.2); border-top-color: #aa6666; border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 12px; }

        @keyframes spin { to { transform: rotate(360deg); } }
        body.page-bot-manager .refresh-btn{ padding: 8px 20px; border-radius: 10px; border: 1px solid rgba(130,85,85,0.28); background: rgba(130,85,85,0.1); color: #b88383; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif; margin-left: 10px; }

        body.page-bot-manager .refresh-btn:hover{ background: rgba(130,85,85,0.16); }

        body.page-bot-manager .global-card{ margin-bottom: 18px; background: rgba(26,16,16,0.74); border: 1px solid rgba(130,85,85,0.14); border-radius: 12px; padding: 16px; }

        body.page-bot-manager .global-grid{ display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }

        body.page-bot-manager .global-field label{ display: block; color: #b88383; font-size: 0.8rem; margin-bottom: 6px; }

        body.page-bot-manager .global-field input{ width: 100%; padding: 10px; border-radius: 8px; border: 1px solid rgba(130,85,85,0.2); background: rgba(0,0,0,0.2); color: #e8d0d0; }

        body.page-bot-manager .rr-row{ display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; margin-bottom: 8px; }

        body.page-bot-manager .rr-row button{ border: 1px solid rgba(255,60,60,0.4); background: rgba(255,30,30,0.1); color: #bb7777; border-radius: 8px; cursor: pointer; padding: 0 12px; }

        body.page-bot-manager .global-actions{ margin-top: 12px; display: flex; gap: 10px; align-items: center; }

        body.page-bot-manager .global-actions button{ padding: 9px 14px; border-radius: 8px; border: 1px solid rgba(130,85,85,0.3); background: rgba(130,85,85,0.12); color: #b88383; font-weight: 600; cursor: pointer; }

        body.page-bot-manager .global-status{ color: #997777; font-size: 0.82rem; }

    

/* ---- page-pricing ---- */

        body.page-pricing .pricing-container{
            max-width: 900px;
            width: 95%;
            margin: 14px auto;
            padding: 0 10px;
        }

        body.page-pricing .pricing-header{
            text-align: center;
            margin-bottom: 24px;
        }

        body.page-pricing .pricing-header h2{
            font-size: 1.3rem;
            color: #8a4040;
            margin-bottom: 6px;
        }

        body.page-pricing .pricing-header p{
            color: #997777;
            font-size: 0.9rem;
        }

        body.page-pricing .pricing-cards{
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 24px;
        }

        @media (max-width: 700px) {
            body.page-pricing .pricing-cards{ grid-template-columns: 1fr; }

        }
        body.page-pricing .pricing-card{
            background: rgba(40,10,10,0.7);
            border: 1px solid rgba(160,80,80,0.12);
            border-radius: 12px;
            padding: 16px;
            position: relative;
            backdrop-filter: blur(10px);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        body.page-pricing .pricing-card:hover{
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(160,80,80,0.1);
        }

        body.page-pricing .pricing-card.premium{
            border-color: rgba(160,80,80,0.35);
            background: linear-gradient(135deg, rgba(40,10,10,0.9), rgba(30,15,5,0.9));
        }

        body.page-pricing .pricing-card.premium::before{
            content: 'RECOMMENDED';
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #aa6666, #6a3030);
            color: #fff;
            padding: 4px 16px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1px;
        }

        body.page-pricing .card-title{
            font-size: 1.3rem;
            font-weight: 700;
            color: #e8d0d0;
            margin-bottom: 8px;
        }

        body.page-pricing .card-price{
            font-size: 2.5rem;
            font-weight: 700;
            color: #8a4040;
            margin-bottom: 4px;
        }

        body.page-pricing .card-price span{
            font-size: 1rem;
            color: #997777;
            font-weight: 400;
        }

        body.page-pricing .card-price.free{
            color: #4ade80;
        }

        body.page-pricing .features-list{
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }

        body.page-pricing .features-list li{
            padding: 8px 0;
            color: #c8b0b0;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        body.page-pricing .features-list li .check{
            color: #4ade80;
            font-weight: 700;
            font-size: 1.1rem;
        }

        body.page-pricing .features-list li .cross{
            color: #666;
            font-weight: 700;
            font-size: 1.1rem;
        }

        body.page-pricing .features-list li.disabled{
            color: #665555;
        }

        body.page-pricing .subscribe-btn{
            display: block;
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 12px;
            font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            text-decoration: none;
        }

        body.page-pricing .subscribe-btn.primary{
            background: linear-gradient(135deg, #aa6666, #6a3030);
            color: #fff;
            box-shadow: 0 4px 15px rgba(160,80,80,0.25);
        }

        body.page-pricing .subscribe-btn.primary:hover{
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(160,80,80,0.35);
        }

        body.page-pricing .subscribe-btn.secondary{
            background: rgba(160,80,80,0.08);
            color: #8a4040;
            border: 1px solid rgba(160,80,80,0.25);
        }

        body.page-pricing .subscribe-btn.active{
            background: rgba(74,222,128,0.15);
            color: #4ade80;
            border: 1px solid rgba(74,222,128,0.3);
            cursor: default;
        }

        body.page-pricing .premium-badge{
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            background: linear-gradient(135deg, rgba(160,80,80,0.15), rgba(204,170,0,0.15));
            border: 1px solid rgba(160,80,80,0.3);
            border-radius: 20px;
            color: #8a4040;
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 16px;
        }

        body.page-pricing .faq-section{
            margin-top: 40px;
        }

        body.page-pricing .faq-item{
            background: rgba(40,10,10,0.5);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 12px;
            border: 1px solid rgba(160,80,80,0.08);
        }

        body.page-pricing .faq-item h4{
            color: #8a4040;
            margin: 0 0 8px 0;
            font-size: 1rem;
        }

        body.page-pricing .faq-item p{
            color: #997777;
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.5;
        }

    

/* ---- page-server-config ---- */

        body.page-server-config .config-header{ margin-bottom: 16px; }

        body.page-server-config .config-header h2{ color: #c0a0a0; font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }

        body.page-server-config .config-header .guild-name{ color: #997777; font-size: 0.82rem; font-weight: 600; }

        body.page-server-config .premium-badge{ display: inline-block; background: linear-gradient(135deg, #8a4040, #6a3030); color: white; padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; margin-left: 8px; vertical-align: middle; }

        body.page-server-config .no-premium-banner{ background: rgba(160, 80, 80, 0.1); border: 1px solid rgba(160, 80, 80, 0.3); border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 30px; color: #997777; }

        body.page-server-config .no-premium-banner a{ color: #8a4040; font-weight: bold; text-decoration: underline; }

        body.page-server-config .feature-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0 auto 16px; }

        body.page-server-config .feature-card{ background: rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 12px; border: 1px solid rgba(160,80,80,0.12); transition: all 0.25s ease; display: flex; align-items: center; gap: 10px; cursor: default; }

        body.page-server-config .feature-card.enabled{ border-color: rgba(160,80,80,0.28); }

        body.page-server-config .feature-card.disabled{ opacity: 0.5; }

        body.page-server-config .feature-card:hover{ background: rgba(255,255,255,0.09); border-color: rgba(160,80,80,0.35); }

        body.page-server-config .feature-header{ display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

        body.page-server-config .feature-icon{ flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(160,80,80,0.1); color: #8a4040; }

        body.page-server-config .feature-icon svg{ width: 16px; height: 16px; }

        body.page-server-config .feature-card.disabled .feature-icon{ background: rgba(100,100,100,0.1); color: #666; }

        body.page-server-config .feature-info{ flex: 1; min-width: 0; }

        body.page-server-config .feature-label{ margin: 0; font-size: 0.82rem; font-weight: 700; color: #c0a0a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit; }

        body.page-server-config .feature-card.disabled .feature-label{ color: #777; }

        body.page-server-config .feature-desc{ display: none; }

        body.page-server-config .toggle-switch{ position: relative; flex-shrink: 0; width: 40px; height: 22px; }

        body.page-server-config .toggle-switch input{ opacity: 0; width: 0; height: 0; }

        body.page-server-config .toggle-slider{ position: absolute; inset: 0; background: rgba(80,80,80,0.6); border-radius: 22px; cursor: pointer; transition: all 0.25s ease; }

        body.page-server-config .toggle-slider::before{ content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: rgba(24,10,10,0.95); border-radius: 50%; transition: all 0.25s ease; }

        body.page-server-config .toggle-switch input:checked + .toggle-slider{ background: linear-gradient(135deg, #8a4040, #6a3030); }

        body.page-server-config .toggle-switch input:checked + .toggle-slider::before{ transform: translateX(18px); }

        body.page-server-config .feature-status{ display: none; }

        body.page-server-config .status-dot{ width: 6px; height: 6px; border-radius: 50%; }

        body.page-server-config .status-dot.active{ background: #8a4040; }

        body.page-server-config .status-dot.inactive{ background: #555; }

        body.page-server-config .status-text{ font-size: 0.72rem; font-weight: 600; color: #997777; }

        body.page-server-config .save-section{ text-align: left; margin-top: 16px; }

        body.page-server-config .save-config-btn{ background: linear-gradient(135deg, #8a4040 0%, #6a3030 100%); color: white; border: none; padding: 10px 28px; border-radius: 8px; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }

        body.page-server-config .save-config-btn:hover{ background: linear-gradient(135deg, #9a5050, #7a3a3a); }

        body.page-server-config .save-config-btn:disabled{ opacity: 0.5; cursor: not-allowed; }

        body.page-server-config .toast{ position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: rgba(30, 10, 10, 0.9); color: #a06a6a; padding: 14px 30px; border-radius: 12px; border: 1px solid rgba(160, 80, 80, 0.4); font-weight: 600; z-index: 9999; opacity: 0; transition: all 0.4s ease; backdrop-filter: blur(10px); }

        body.page-server-config .toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }

        body.page-server-config .bulk-controls{ display: flex; gap: 8px; justify-content: flex-start; margin-bottom: 12px; }

        body.page-server-config .bulk-btn{ background: rgba(255,255,255,0.07); color: #997777; border: 1px solid rgba(160,80,80,0.2); padding: 5px 14px; border-radius: 8px; cursor: pointer; font-size: 0.78rem; font-weight: 600; transition: all 0.2s; }

        body.page-server-config .bulk-btn:hover{ background: rgba(160,80,80,0.15); border-color: rgba(160,80,80,0.4); color: #aa6666; }

        @media (max-width: 500px) { body.page-server-config .feature-grid{ grid-template-columns: 1fr; }
 }
    

/* ---- page-guild-war ---- */

        body.page-guild-war .gw-toolbar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; position:relative; z-index:10; }

        body.page-guild-war .gw-btn{ border:1px solid rgba(160,80,80,0.35); background:rgba(40,25,25,0.85); color:#e8baba; border-radius:10px; padding:8px 12px; cursor:pointer; font-weight:600; font-size:0.82rem; transition:background 0.15s; }

        body.page-guild-war .gw-btn:hover{ background:rgba(60,35,35,0.9); }

        body.page-guild-war .gw-btn.primary{ background:linear-gradient(135deg,#8a4040,#6a3030); color:#fff; border:none; }

        body.page-guild-war .gw-btn.primary:hover{ background:linear-gradient(135deg,#9a5050,#7a3a3a); }

        body.page-guild-war .gw-meta{ color:#e8baba; font-size:0.9rem; margin-bottom:12px; }

        body.page-guild-war .gw-day-tabs{ display:flex; gap:0; margin-bottom:12px; border-bottom:2px solid rgba(160,80,80,0.2); }

        body.page-guild-war .gw-day-tab{ border:none; background:transparent; color:#997777; border-bottom:2px solid transparent; margin-bottom:-2px; padding:8px 20px; cursor:pointer; font-weight:600; font-size:0.85rem; transition:all 0.15s; }

        body.page-guild-war .gw-day-tab:hover{ color:#e8baba; border-bottom-color:rgba(160,80,80,0.5); }

        body.page-guild-war .gw-day-tab.active{ color:#f0d39a; border-bottom-color:#f0d39a; }

        body.page-guild-war .gw-board{ display:grid; grid-template-columns: 210px repeat(3, 1fr); grid-template-rows: auto auto; gap:10px; width:100%; min-width:0; position:relative; z-index:1; }

        body.page-guild-war .gw-col{ border:1px solid rgba(160,80,80,0.2); border-radius:12px; background:rgba(22,11,11,0.65); min-height:120px; padding:0; display:flex; flex-direction:column; overflow:hidden; backdrop-filter:blur(6px); }

        body.page-guild-war .gw-col[data-type="unassigned"]{ grid-column:1; grid-row:1 / 3; }

        body.page-guild-war .gw-col-header{ display:flex; justify-content:space-between; align-items:center; padding:7px 10px; border-bottom:1px solid rgba(160,80,80,0.15); }

        body.page-guild-war .gw-col-header h3{ margin:0; font-size:0.78rem; font-weight:700; display:flex; align-items:center; gap:5px; }

        body.page-guild-war .gw-col-count{ font-size:0.68rem; font-weight:700; padding:2px 7px; border-radius:9px; }

        /* Column accent colors */
        body.page-guild-war .gw-col[data-type="unassigned"] .gw-col-header{ background:rgba(100,100,120,0.12); }

        body.page-guild-war .gw-col[data-type="unassigned"] .gw-col-header h3{ color:#b0aac0; }

        body.page-guild-war .gw-col[data-type="unassigned"] .gw-col-count{ color:#9992b0; background:rgba(120,110,160,0.15); }

        body.page-guild-war .gw-col[data-type="offense_ns"] .gw-col-header,
body.page-guild-war .gw-col[data-type="offense_tree"] .gw-col-header,
body.page-guild-war .gw-col[data-type="flexible"] .gw-col-header,
body.page-guild-war .gw-col[data-type="dive_kill"] .gw-col-header{ background:rgba(180,60,60,0.1); }

        body.page-guild-war .gw-col[data-type="offense_ns"] .gw-col-header h3,
body.page-guild-war .gw-col[data-type="offense_tree"] .gw-col-header h3,
body.page-guild-war .gw-col[data-type="flexible"] .gw-col-header h3,
body.page-guild-war .gw-col[data-type="dive_kill"] .gw-col-header h3{ color:#f0a0a0; }

        body.page-guild-war .gw-col[data-type="offense_ns"] .gw-col-count,
body.page-guild-war .gw-col[data-type="offense_tree"] .gw-col-count,
body.page-guild-war .gw-col[data-type="flexible"] .gw-col-count,
body.page-guild-war .gw-col[data-type="dive_kill"] .gw-col-count{ color:#e08080; background:rgba(200,70,70,0.15); }

        body.page-guild-war .gw-col[data-type="defensive_peel"] .gw-col-header,
body.page-guild-war .gw-col[data-type="defensive_focus"] .gw-col-header{ background:rgba(60,130,180,0.1); }

        body.page-guild-war .gw-col[data-type="defensive_peel"] .gw-col-header h3,
body.page-guild-war .gw-col[data-type="defensive_focus"] .gw-col-header h3{ color:#90c8e8; }

        body.page-guild-war .gw-col[data-type="defensive_peel"] .gw-col-count,
body.page-guild-war .gw-col[data-type="defensive_focus"] .gw-col-count{ color:#70b0d0; background:rgba(60,140,200,0.15); }

        body.page-guild-war .gw-drop{ flex:1; min-height:50px; border:none; border-radius:0; padding:5px 6px; display:flex; flex-direction:column; align-content:flex-start; gap:3px; overflow-y:auto; max-height:calc(50vh - 80px); scrollbar-width:thin; scrollbar-color:rgba(160,80,80,0.3) transparent; }

        body.page-guild-war .gw-col[data-type="unassigned"] .gw-drop{ max-height:calc(100vh - 280px); }

        body.page-guild-war .gw-drop::-webkit-scrollbar{ width:4px; }

        body.page-guild-war .gw-drop::-webkit-scrollbar-track{ background:transparent; }

        body.page-guild-war .gw-drop::-webkit-scrollbar-thumb{ background:rgba(160,80,80,0.3); border-radius:4px; }

        body.page-guild-war .gw-drop.drag-over{ background:rgba(240,211,154,0.06); }


        /* Compact card */
        body.page-guild-war .gw-card{ display:flex; align-items:center; gap:6px; border:1px solid rgba(160,80,80,0.15); border-radius:8px; padding:5px 7px; background:rgba(35,18,18,0.8); cursor:grab; transition:all 0.15s; width:100%; flex-shrink:0; user-select:none; position:relative; }

        body.page-guild-war .gw-card:hover{ border-color:rgba(160,80,80,0.4); background:rgba(48,26,26,0.9); box-shadow:0 2px 6px rgba(0,0,0,0.25); }

        body.page-guild-war .gw-card:active{ cursor:grabbing; }

        body.page-guild-war .gw-card-num{ font-size:0.65rem; font-weight:700; color:#665555; min-width:13px; text-align:center; flex-shrink:0; font-variant-numeric:tabular-nums; }

        body.page-guild-war .gw-card-avatar{ width:26px; height:26px; border-radius:50%; object-fit:cover; border:2px solid rgba(160,80,80,0.3); flex-shrink:0; }

        body.page-guild-war .gw-card-avatar-placeholder{ width:26px; height:26px; border-radius:50%; background:rgba(160,80,80,0.15); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:0.6rem; color:#997777; }

        body.page-guild-war .gw-card-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }

        body.page-guild-war .gw-card-name{ font-weight:600; color:#e8baba; font-size:0.78rem; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

        body.page-guild-war .gw-card-ign{ font-size:0.68rem; color:#a08888; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

        body.page-guild-war .gw-card-meta{ display:flex; align-items:center; gap:4px; margin-top:1px; }

        body.page-guild-war .gw-card-right{ display:flex; align-items:center; flex-shrink:0; }

        body.page-guild-war .gw-weapon-badge{ display:inline-flex; align-items:center; padding:1px 5px; border-radius:4px; background:rgba(160,80,80,0.1); border:1px solid rgba(160,80,80,0.2); color:#c0a0a0; font-size:0.6rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:140px; }

        body.page-guild-war .gw-attend-dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }

        body.page-guild-war .gw-attend-full{ background:#57F287; box-shadow:0 0 5px rgba(87,242,135,0.5); }

        body.page-guild-war .gw-attend-partial{ background:#FEE75C; box-shadow:0 0 5px rgba(254,231,92,0.5); }

        body.page-guild-war .gw-attend-none{ background:#ff6b6b; box-shadow:0 0 5px rgba(255,107,107,0.5); }

        body.page-guild-war .gw-subtext-badge{ font-size:0.56rem; font-weight:700; padding:1px 5px; border-radius:4px; color:#f0d39a; background:rgba(240,211,154,0.12); border:1px solid rgba(240,211,154,0.25); white-space:nowrap; }

        body.page-guild-war .gw-btn.lock{ background:rgba(200,60,60,0.2); border-color:rgba(200,60,60,0.4); color:#f0a0a0; }

        body.page-guild-war .gw-btn.lock:hover{ background:rgba(200,60,60,0.35); }

        body.page-guild-war .gw-btn.lock.locked{ background:rgba(60,180,80,0.2); border-color:rgba(60,180,80,0.4); color:#90e8a0; }

        body.page-guild-war .gw-btn.lock.locked:hover{ background:rgba(60,180,80,0.35); }


        /* Two-panel layout: board + sidebar */
        body.page-guild-war .gw-layout{ display:flex; gap:16px; align-items:flex-start; }

        body.page-guild-war .gw-main{ flex:1; min-width:0; }

        body.page-guild-war .gw-sidebar{ width:260px; flex-shrink:0; display:flex; flex-direction:column; gap:12px; position:sticky; top:16px; max-height:calc(100vh - 120px); overflow-y:auto; }

        body.page-guild-war .gw-sidebar-card{ padding:12px; border:1px solid rgba(160,80,80,0.25); border-radius:10px; background:rgba(30,15,15,0.6); }

        body.page-guild-war .gw-sidebar-card h4{ margin:0 0 6px; color:#e8baba; font-size:0.82rem; font-weight:700; }

        body.page-guild-war .gw-sidebar-card p{ margin:0 0 8px; font-size:0.75rem; color:#c0a0a0; line-height:1.4; }

        @media (max-width: 1100px) {
            body.page-guild-war .gw-layout{ flex-direction:column; }

            body.page-guild-war .gw-sidebar{ width:100%; position:static; max-height:none; flex-direction:row; flex-wrap:wrap; }

            body.page-guild-war .gw-sidebar-card{ flex:1; min-width:220px; }

        }

        /* Detail tooltip (anchored near card) */
        body.page-guild-war .gw-detail-overlay{ display:none; position:fixed; inset:0; z-index:499; }

        body.page-guild-war .gw-detail-overlay.open{ display:block; }

        body.page-guild-war .gw-detail-panel{ position:fixed; z-index:500; background:rgba(24,12,12,0.98); border:1px solid rgba(160,80,80,0.5); border-radius:10px; padding:14px 16px; width:280px; box-shadow:0 6px 28px rgba(0,0,0,0.7); }

        body.page-guild-war .gw-detail-close{ position:absolute; top:6px; right:8px; background:none; border:none; color:#997777; font-size:1rem; cursor:pointer; padding:2px 6px; border-radius:4px; line-height:1; }

        body.page-guild-war .gw-detail-close:hover{ color:#e8baba; background:rgba(160,80,80,0.15); }

        body.page-guild-war .gw-detail-header{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }

        body.page-guild-war .gw-detail-header img{ width:36px; height:36px; border-radius:50%; border:2px solid #8a4040; object-fit:cover; }

        body.page-guild-war .gw-detail-header-text h3{ margin:0; color:#e8baba; font-size:0.95rem; }

        body.page-guild-war .gw-detail-header-text .gw-detail-ign{ color:#f0d39a; font-size:0.8rem; font-weight:600; }

        body.page-guild-war .gw-detail-row{ display:flex; justify-content:space-between; align-items:center; padding:4px 0; border-bottom:1px solid rgba(160,80,80,0.1); font-size:0.78rem; }

        body.page-guild-war .gw-detail-row:last-child{ border-bottom:none; }

        body.page-guild-war .gw-detail-label{ color:#997777; font-weight:600; }

        body.page-guild-war .gw-detail-value{ color:#e8baba; }

        body.page-guild-war .gw-detail-actions{ margin-top:10px; display:flex; flex-wrap:wrap; gap:4px; }


        body.page-guild-war .gw-subtext-btn{ font-size:0.78rem; background:rgba(40,25,25,0.9); border:1px solid rgba(160,80,80,0.4); border-radius:6px; padding:6px 12px; color:#e8baba; cursor:pointer; text-align:left; transition:background 0.2s; }

        body.page-guild-war .gw-subtext-btn:hover{ background:rgba(60,45,20,0.9); }


        body.page-guild-war .gw-drop-empty{ font-size:0.72rem; color:#665555; padding:10px 6px; text-align:center; font-style:italic; }

        @media (max-width: 700px) {
            body.page-guild-war .gw-board{ grid-template-columns: 1fr; grid-template-rows: unset; }

            body.page-guild-war .gw-col[data-type="unassigned"]{ grid-column:unset; grid-row:unset; }

            body.page-guild-war .gw-drop,
body.page-guild-war .gw-col[data-type="unassigned"] .gw-drop{ max-height:260px; }

        }
        @media (min-width: 701px) and (max-width: 1050px) {
            body.page-guild-war .gw-board{ grid-template-columns: 170px repeat(2, 1fr); }

            body.page-guild-war .gw-drop{ max-height:calc(33vh - 40px); }

            body.page-guild-war .gw-col[data-type="unassigned"] .gw-drop{ max-height:calc(66vh - 120px); }

        }
    

/* ---- page-guild-war-access ---- */

        body.page-guild-war-access .access-card{
            max-width: 400px;
            margin: 80px auto 0;
            padding: 2rem;
            background: rgba(30, 15, 15, 0.85);
            border: 1px solid rgba(160, 80, 80, 0.35);
            border-radius: 16px;
            backdrop-filter: blur(12px);
            text-align: center;
        }

        body.page-guild-war-access .access-card h2{
            color: #f0d39a;
            margin: 0 0 6px;
            font-size: 1.5rem;
        }

        body.page-guild-war-access .access-card .subtitle{
            color: #c0a0a0;
            font-size: 0.85rem;
            margin-bottom: 20px;
        }

        body.page-guild-war-access .access-card input[type="password"]{
            width: 100%;
            padding: 12px 14px;
            border-radius: 10px;
            border: 1px solid rgba(160, 80, 80, 0.4);
            background: rgba(255, 255, 255, 0.08);
            color: #e8baba;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.3s;
        }

        body.page-guild-war-access .access-card input[type="password"]:focus{
            border-color: #f0d39a;
        }

        body.page-guild-war-access .access-card button{
            margin-top: 14px;
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #8a4040, #6a3030);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        body.page-guild-war-access .access-card button:hover{
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(160, 80, 80, 0.4);
        }

        body.page-guild-war-access .access-error{
            color: #ff6b6b;
            font-size: 0.85rem;
            margin-top: 12px;
            font-weight: 600;
        }

    

/* ---- page-chat-monitor ---- */

  /* Full-viewport layout: nav + title + content fills screen, chat scrolls internally */
  body.page-chat-monitor{ overflow: hidden; height: 100vh; display: flex; flex-direction: column; }

  body.page-chat-monitor .nav-bar{ flex-shrink: 0; }

  body.page-chat-monitor .neon-title-container{ flex-shrink: 0; padding: 0.3rem 0 0; margin: 0; }

  body.page-chat-monitor .neon-title-container .neon-title{ font-size: 0.95rem; margin: 0; }

  body.page-chat-monitor .cm-wrap{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    flex: 1;
    min-height: 0;
    padding: 0 1rem 0.5rem;
    margin: 0 auto;
  }

  /* Stream tab row */
  body.page-chat-monitor .cm-tabs{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 0 8px;
    flex-shrink: 0;
  }

  body.page-chat-monitor .stream-tab{
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(160,80,80,0.3);
    background: rgba(100,40,40,0.15);
    color: #c08080;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
    font-family: inherit;
  }

  body.page-chat-monitor .stream-tab.active{ background: rgba(160,80,80,0.3); border-color: #8a4040; color: #f0d0d0; }

  body.page-chat-monitor .stream-tab .dot{
    display: inline-block; width: 7px; height: 7px;
    border-radius: 50%; background: #5a3a3a; margin-right: 6px; vertical-align: middle;
    transition: background 0.3s;
  }

  body.page-chat-monitor .stream-tab.live .dot{ background: #22c55e; box-shadow: 0 0 5px #22c55e; }


  /* Two-column layout */
  body.page-chat-monitor .cm-body{
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 12px;
  }

  body.page-chat-monitor .cm-glass{
    background: rgba(25,15,15,0.82);
    border: 1px solid rgba(160,80,80,0.18);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Chat column */
  body.page-chat-monitor .chat-col{
    flex: 1;
    min-width: 0;
  }

  /* Queue column */
  body.page-chat-monitor .queue-col{
    width: 300px;
    flex-shrink: 0;
  }


  body.page-chat-monitor .col-header{
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #997777;
    border-bottom: 1px solid rgba(160,80,80,0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body.page-chat-monitor .col-header .col-label{ color: #c08080; font-size: 0.85rem; }

  body.page-chat-monitor .live-badge{
    background: #16a34a; color: #fff;
    font-size: 0.62rem; font-weight: 700;
    padding: 1px 7px; border-radius: 10px;
    letter-spacing: 0.06em; display: none;
  }


  /* Chat feed */
  body.page-chat-monitor #chat-feed{
    flex: 1; overflow-y: auto;
    padding: 8px 12px;
    display: flex; flex-direction: column; gap: 1px;
  }

  body.page-chat-monitor #chat-feed::-webkit-scrollbar{ width: 4px; }

  body.page-chat-monitor #chat-feed::-webkit-scrollbar-thumb{ background: rgba(160,80,80,0.2); border-radius: 2px; }

  body.page-chat-monitor .msg-row{
    display: flex; gap: 8px; align-items: flex-start;
    padding: 5px 8px; border-radius: 8px;
    transition: background 0.12s; cursor: pointer;
  }

  body.page-chat-monitor .msg-row:hover{ background: rgba(160,80,80,0.08); }

  body.page-chat-monitor .msg-row.selected{ background: rgba(160,80,80,0.16); border-left: 2px solid #8a4040; }

  body.page-chat-monitor .msg-time{ color: #5a4040; font-size: 0.67rem; min-width: 38px; flex-shrink: 0; padding-top: 2px; font-variant-numeric: tabular-nums; }

  body.page-chat-monitor .msg-chatter{ font-weight: 700; font-size: 0.78rem; flex-shrink: 0; min-width: 80px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c08080; }

  body.page-chat-monitor .msg-text{ font-size: 0.8rem; color: #d4c4c4; line-height: 1.4; word-break: break-word; }


  /* Reply bar */
  body.page-chat-monitor .reply-bar{
    border-top: 1px solid rgba(160,80,80,0.15);
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 7px; flex-shrink: 0;
  }

  body.page-chat-monitor .vtag{
    font-size: 0.58rem; padding: 1px 5px; border-radius: 4px; cursor: pointer;
    background: rgba(120,60,60,0.15); border: 1px solid rgba(160,80,80,0.25);
    color: #c09090; font-family: monospace; transition: all 0.15s;
  }

  body.page-chat-monitor .vtag:hover{ background: rgba(160,80,80,0.3); color: #e0c0c0; border-color: #8a4040; }

  body.page-chat-monitor #reply-context{
    display: none; font-size: 0.72rem; color: #997777;
    background: rgba(160,80,80,0.07);
    border-left: 2px solid #8a4040;
    padding: 4px 10px; border-radius: 0 6px 6px 0;
  }

  body.page-chat-monitor #reply-context strong{ color: #c08080; }

  body.page-chat-monitor .reply-input-row{ display: flex; gap: 6px; align-items: center; }

  body.page-chat-monitor .reply-input-row input{ flex: 1; min-width: 0; }

  body.page-chat-monitor .reply-input-row select{ flex: 0 0 auto; max-width: 90px; }

  body.page-chat-monitor #reply-input{
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(160,80,80,0.25); border-radius: 10px;
    padding: 8px 13px; color: #e0d0d0; font-size: 0.82rem;
    outline: none; font-family: inherit;
  }

  body.page-chat-monitor #reply-input:focus{ border-color: #8a4040; background: rgba(160,80,80,0.07); }

  body.page-chat-monitor #reply-input::placeholder{ color: #5a4a4a; }

  body.page-chat-monitor #send-btn{
    padding: 8px 16px;
    background: linear-gradient(135deg, #6a3030, #8a4040);
    border: none; border-radius: 10px;
    color: #fff; font-weight: 700; font-size: 0.78rem;
    cursor: pointer; white-space: nowrap; transition: opacity 0.15s;
  }

  body.page-chat-monitor #send-btn:hover{ opacity: 0.85; }

  body.page-chat-monitor #send-btn:disabled{ opacity: 0.4; cursor: default; }


  /* Queue column internals */
  body.page-chat-monitor #queue-list{
    flex: 0 1 42%;
    max-height: 42%;
    min-height: 50px;
    overflow-y: auto;
    padding: 6px 10px;
    display: flex; flex-direction: column;
  }

  body.page-chat-monitor #queue-list::-webkit-scrollbar{ width: 4px; }

  body.page-chat-monitor #queue-list::-webkit-scrollbar-thumb{ background: rgba(160,80,80,0.18); border-radius: 2px; }

  body.page-chat-monitor .q-item{
    display: flex; align-items: flex-start; gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.77rem;
  }

  body.page-chat-monitor .q-num{ color: #5a3030; font-size: 0.67rem; min-width: 18px; flex-shrink: 0; padding-top: 2px; }

  body.page-chat-monitor .q-text{ flex: 1; color: #d0b8b8; line-height: 1.4; word-break: break-word; }

  body.page-chat-monitor .q-replyto{ font-size: 0.67rem; color: #7a5a5a; font-style: italic; margin-bottom: 2px; }

  body.page-chat-monitor .q-skip{
    padding: 2px 8px; font-size: 0.67rem;
    background: rgba(100,10,10,0.4); border: 1px solid rgba(160,30,30,0.5);
    border-radius: 4px; color: #ff8080;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
  }

  body.page-chat-monitor .q-skip:hover{ background: rgba(140,20,20,0.5); }

  body.page-chat-monitor .queue-footer{
    border-top: 1px solid rgba(160,80,80,0.1);
    padding: 8px 10px; flex-shrink: 0;
  }

  body.page-chat-monitor #skip-all-btn{
    width: 100%; padding: 6px 0;
    background: rgba(100,10,10,0.35); border: 1px solid rgba(160,30,30,0.45);
    border-radius: 6px; color: #ff8080;
    font-size: 0.75rem; font-weight: 700;
    cursor: pointer;
  }

  body.page-chat-monitor #skip-all-btn:hover{ background: rgba(140,20,20,0.45); }


  /* TTS History section */
  body.page-chat-monitor .history-divider{
    border-top: 1px solid rgba(160,80,80,0.15);
    padding: 8px 14px 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7a5a5a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body.page-chat-monitor .history-divider .col-label{ color: #997777; font-size: 0.82rem; }

  body.page-chat-monitor #history-list{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 10px 8px;
    display: flex; flex-direction: column; gap: 0;
  }

  body.page-chat-monitor #history-list::-webkit-scrollbar{ width: 4px; }

  body.page-chat-monitor #history-list::-webkit-scrollbar-thumb{ background: rgba(160,80,80,0.12); border-radius: 2px; }

  body.page-chat-monitor .h-item{
    display: flex; align-items: flex-start; gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.74rem;
    opacity: 0.75;
  }

  body.page-chat-monitor .h-item:first-child{ opacity: 1; }

  body.page-chat-monitor .h-time{ color: #4a3030; font-size: 0.63rem; min-width: 38px; flex-shrink: 0; padding-top: 2px; font-variant-numeric: tabular-nums; }

  body.page-chat-monitor .h-text{ flex: 1; color: #b8a0a0; line-height: 1.35; word-break: break-word; }

  body.page-chat-monitor .h-replyto{ font-size: 0.63rem; color: #6a4a4a; font-style: italic; margin-bottom: 2px; }

  body.page-chat-monitor .h-sender{ display: flex; align-items: center; gap: 4px; font-size: 0.62rem; color: #7a5a5a; margin-top: 3px; }

  body.page-chat-monitor .h-avatar{ width: 14px; height: 14px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

  body.page-chat-monitor .h-manual-badge{ background: rgba(234,88,12,0.22); border: 1px solid rgba(234,88,12,0.45); color: #fb923c; font-size: 0.55rem; font-weight: 700; padding: 0 4px; border-radius: 3px; letter-spacing: 0.05em; }

  body.page-chat-monitor .show-manual-label{ font-size: 0.68rem; color: #7a4a7a; display: flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }

  body.page-chat-monitor .show-manual-label input{ margin: 0; cursor: pointer; accent-color: #c490e0; }


  body.page-chat-monitor .no-streams-msg{
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: #5a4a4a; font-size: 0.9rem; font-style: italic;
  }

  body.page-chat-monitor .empty-notice{
    color: #5a4040; font-size: 0.78rem;
    text-align: center; padding: 24px 0; font-style: italic;
  }



/* ---- page-stream-stats ---- */

body.page-stream-stats{ color: #e8d0d0; font-family: 'Segoe UI', sans-serif; }

body.page-stream-stats .ss-wrap{ max-width: 1400px; margin: 14px auto; padding: 0 14px; width: 100%; }

body.page-stream-stats .ss-top{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

@media (max-width: 800px) { body.page-stream-stats .ss-top{ grid-template-columns: 1fr; }
 }
body.page-stream-stats .ss-panel{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 12px; padding: 14px; }

body.page-stream-stats .ss-panel h3{ color: #cc7777; margin: 0 0 10px; font-size: .92rem; display: flex; align-items: center; gap: 6px; }

body.page-stream-stats .shu-stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

body.page-stream-stats .shu-stat{ text-align: center; padding: 10px 6px; background: rgba(0,0,0,.15); border-radius: 8px; }

body.page-stream-stats .shu-stat .val{ font-size: 1.4rem; font-weight: 800; color: #cc7777; }

body.page-stream-stats .shu-stat .lbl{ font-size: .72rem; color: #aa8888; margin-top: 3px; }

body.page-stream-stats .streamers-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

body.page-stream-stats .str-card{ background: rgba(0,0,0,.15); border-radius: 8px; padding: 10px 12px; }

body.page-stream-stats .str-card h4{ margin: 0 0 6px; color: #e8d0d0; font-size: .88rem; }

body.page-stream-stats .str-row{ display: flex; justify-content: space-between; font-size: .78rem; padding: 3px 0; }

body.page-stream-stats .str-row .lbl{ color: #aa8888; }
 body.page-stream-stats .str-row .v{ color: #e8d0d0; font-weight: 600; }


/* Live feed + summaries 2-col layout */
body.page-stream-stats .ss-bottom{ display: grid; grid-template-columns: 340px 1fr; gap: 14px; }

@media (max-width: 860px) { body.page-stream-stats .ss-bottom{ grid-template-columns: 1fr; }
 }

/* Live chat feed */
body.page-stream-stats .live-feed{ max-height: 500px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }

body.page-stream-stats .feed-msg{ padding: 5px 8px; background: rgba(0,0,0,.12); border-radius: 6px; font-size: .78rem; line-height: 1.35; }

body.page-stream-stats .feed-msg .chatter{ color: #cc7777; font-weight: 600; }

body.page-stream-stats .feed-msg .text{ color: #d8c0c0; }

body.page-stream-stats .feed-msg .meta{ color: #886666; font-size: .68rem; }

body.page-stream-stats .feed-paused{ text-align: center; padding: 6px; font-size: .72rem; color: #aa8888; background: rgba(140,60,60,.1); border-radius: 6px; cursor: pointer; }


/* Stream recap list */
body.page-stream-stats .recap-list{ display: flex; flex-direction: column; gap: 8px; }

body.page-stream-stats .recap-entry{ background: rgba(0,0,0,.12); border: 1px solid rgba(140,60,60,.15); border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color .2s; }

body.page-stream-stats .recap-entry:hover{ border-color: rgba(140,60,60,.4); }

body.page-stream-stats .recap-header{ display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }

body.page-stream-stats .recap-header .date{ color: #cc7777; font-weight: 700; font-size: .85rem; }

body.page-stream-stats .recap-header .streamer{ color: #aa8888; font-size: .78rem; }

body.page-stream-stats .recap-header .arrow{ color: #886666; font-size: .72rem; transition: transform .2s; }

body.page-stream-stats .recap-entry.open .recap-header .arrow{ transform: rotate(90deg); }

body.page-stream-stats .recap-detail{ display: none; padding: 0 14px 12px; }

body.page-stream-stats .recap-entry.open .recap-detail{ display: block; }

body.page-stream-stats .recap-stats{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }

body.page-stream-stats .recap-stats span{ font-size: .75rem; padding: 3px 8px; background: rgba(140,60,60,.1); border-radius: 6px; color: #cc9999; }

body.page-stream-stats .recap-body{ font-size: .82rem; color: #e8c0d0; line-height: 1.5; font-style: italic; }

body.page-stream-stats .no-data{ text-align: center; padding: 24px; color: #886666; font-size: .85rem; }

body.page-stream-stats .loading{ text-align: center; padding: 40px; color: #aa8888; }



/* ---- page-shop ---- */

body.page-shop{ color: #e8d0d0; font-family: 'Segoe UI', sans-serif; }

body.page-shop .shop-wrap{ max-width: 1300px; margin: 14px auto; padding: 0 14px; width: 100%; }

body.page-shop .shop-layout{ display: grid; grid-template-columns: 1fr 340px; gap: 14px; }

@media (max-width: 860px) { body.page-shop .shop-layout{ grid-template-columns: 1fr; }
 }
body.page-shop .panel{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 12px; padding: 14px; }

body.page-shop .panel h3{ color: #cc7777; margin: 0 0 10px; font-size: .92rem; }

body.page-shop .items-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

body.page-shop .item-card{ background: rgba(0,0,0,.15); border: 1px solid rgba(140,60,60,.2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; position: relative; }

body.page-shop .item-card h4{ margin: 0 0 4px; color: #e8d0d0; font-size: .88rem; }

body.page-shop .item-card .desc{ color: #aa8888; font-size: .78rem; margin-bottom: 6px; flex: 1; }

body.page-shop .item-card .bottom{ display: flex; justify-content: space-between; align-items: center; }

body.page-shop .item-price{ font-weight: 700; color: #ffcc66; font-size: .92rem; }

body.page-shop .item-cat{ font-size: .68rem; color: #997777; background: rgba(140,60,60,.15); padding: 2px 7px; border-radius: 10px; }

body.page-shop .rm-btn{ position: absolute; top: 6px; right: 8px; background: none; border: none; color: #ff6666; cursor: pointer; font-size: .85rem; opacity: .5; transition: opacity .2s; }

body.page-shop .rm-btn:hover{ opacity: 1; }

body.page-shop .form-group{ margin-bottom: 8px; }

body.page-shop .form-group label{ display: block; color: #aa8888; font-size: .75rem; margin-bottom: 3px; }

body.page-shop .form-group input,
body.page-shop .form-group select{ width: 100%; padding: 7px 10px; background: rgba(0,0,0,.3); border: 1px solid rgba(140,60,60,.3); border-radius: 7px; color: #e8d0d0; font-size: .82rem; }

body.page-shop .form-group input:focus,
body.page-shop .form-group select:focus{ outline: none; border-color: #cc7777; }

body.page-shop .btn{ padding: 7px 14px; border: none; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: .82rem; width: 100%; }

body.page-shop .btn-primary{ background: linear-gradient(135deg, #8a4040, #aa5555); color: #fff; }

body.page-shop .btn-save{ margin-top: 10px; }

body.page-shop .status-msg{ padding: 8px; border-radius: 7px; margin-bottom: 10px; display: none; font-size: .82rem; }

body.page-shop .status-msg.success{ display: block; background: rgba(40,140,60,.15); color: #88cc88; border: 1px solid rgba(40,140,60,.3); }

body.page-shop .status-msg.error{ display: block; background: rgba(200,60,60,.15); color: #ff8888; border: 1px solid rgba(200,60,60,.3); }

body.page-shop .empty{ color: #886666; text-align: center; padding: 20px; font-size: .85rem; }



/* ---- page-clips ---- */

body.page-clips{ color: #e8d0d0; font-family: 'Segoe UI', sans-serif; }

body.page-clips .clips-wrap{ max-width: 1400px; margin: 14px auto; padding: 0 14px; width: 100%; }

body.page-clips .clips-top{ display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

body.page-clips .clip-stat{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 10px; padding: 10px 16px; flex: 1; min-width: 100px; text-align: center; }

body.page-clips .clip-stat .val{ font-size: 1.3rem; font-weight: 800; color: #cc7777; }

body.page-clips .clip-stat .lbl{ font-size: .72rem; color: #aa8888; margin-top: 2px; }

body.page-clips .clips-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

@media (max-width: 600px) { body.page-clips .clips-grid{ grid-template-columns: repeat(2, 1fr); }
 }
@media (max-width: 420px) { body.page-clips .clips-grid{ grid-template-columns: 1fr; }
 }
body.page-clips .clip-card{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 10px; overflow: hidden; transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }

body.page-clips .clip-card:hover{ transform: translateY(-2px); border-color: rgba(200,80,80,.5); }

body.page-clips .clip-thumb-wrap{ position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }

body.page-clips .clip-thumb{ width: 100%; height: 100%; object-fit: cover; display: block; }

body.page-clips .clip-views{ position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.75); color: #ddd; font-size: .68rem; padding: 2px 6px; border-radius: 4px; }

body.page-clips .clip-dur{ position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,.75); color: #ddd; font-size: .68rem; padding: 2px 6px; border-radius: 4px; }

body.page-clips .clip-info{ padding: 8px 10px; flex: 1; display: flex; flex-direction: column; }

body.page-clips .clip-title{ font-weight: 600; color: #e8d0d0; margin: 0 0 4px; font-size: .82rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

body.page-clips .clip-meta{ color: #997777; font-size: .72rem; margin-bottom: 6px; display: flex; gap: 8px; }

body.page-clips .clip-bottom{ margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

body.page-clips .clip-link{ color: #cc7777; text-decoration: none; font-weight: 600; font-size: .75rem; }

body.page-clips .clip-link:hover{ color: #ff9999; }

body.page-clips .shu-comment-btn{ background: rgba(200,60,100,.15); border: 1px solid rgba(200,60,100,.3); color: #ee88aa; font-size: .7rem; padding: 3px 8px; border-radius: 6px; cursor: pointer; transition: all .2s; white-space: nowrap; }

body.page-clips .shu-comment-btn:hover{ background: rgba(200,60,100,.3); color: #ffaacc; }

body.page-clips .shu-comment-btn:disabled{ opacity: .5; cursor: default; }

body.page-clips .shu-bubble{ background: rgba(200,60,100,.1); border: 1px solid rgba(200,60,100,.2); border-radius: 8px; padding: 6px 10px; margin-top: 6px; font-size: .73rem; color: #e8c0d0; line-height: 1.35; animation: fadeIn .3s; }

body.page-clips .shu-bubble::before{ content: 'ShuShu: '; font-weight: 700; color: #cc7777; }

body.page-clips .shu-bubble .shu-play{ display: inline-block; margin-left: 4px; cursor: pointer; vertical-align: middle; opacity: .7; transition: opacity .2s; }

body.page-clips .shu-bubble .shu-play:hover{ opacity: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
body.page-clips .no-clips{ text-align: center; padding: 40px; color: #886666; }

body.page-clips .loading{ text-align: center; padding: 40px; color: #aa8888; }



/* ---- page-tickets ---- */

body.page-tickets{ color: #e8d0d0; font-family: 'Segoe UI', sans-serif; align-items: stretch; min-height: 100vh; width: 100%; display: flex; flex-direction: column; }

body.page-tickets .tk-wrap{ max-width: 1400px; margin: 14px auto; padding: 0 14px; width: 100%; flex: 1; display: flex; flex-direction: column; }

body.page-tickets .stats-row{ display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

body.page-tickets .stat-card{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 10px; padding: 10px 16px; flex: 1; min-width: 110px; text-align: center; }

body.page-tickets .stat-card .sv{ font-size: 1.4rem; font-weight: 800; color: #cc7777; }

body.page-tickets .stat-card .sl{ color: #aa8888; font-size: .72rem; margin-top: 2px; }

body.page-tickets .tk-layout{ display: grid; grid-template-columns: 380px 1fr; gap: 14px; flex: 1; }

@media (max-width: 860px) { body.page-tickets .tk-layout{ grid-template-columns: 1fr; }
 }
body.page-tickets .panel{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; min-height: 0; }

body.page-tickets .panel h3{ color: #cc7777; margin: 0 0 10px; font-size: .92rem; display: flex; align-items: center; gap: 6px; }

body.page-tickets .filter-row{ display: flex; gap: 5px; margin-bottom: 10px; }

body.page-tickets .fbtn{ padding: 4px 10px; border: 1px solid rgba(140,60,60,.3); background: rgba(140,60,60,.08); color: #cc9999; border-radius: 6px; cursor: pointer; font-size: .75rem; transition: all .2s; }

body.page-tickets .fbtn:hover,
body.page-tickets .fbtn.active{ background: rgba(140,60,60,.25); color: #fff; border-color: #cc7777; }

body.page-tickets .tk-list{ display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; min-height: 0; }

body.page-tickets .tk-row{ background: rgba(0,0,0,.12); border: 1px solid rgba(140,60,60,.15); border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: border-color .2s; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

body.page-tickets .tk-row:hover,
body.page-tickets .tk-row.selected{ border-color: rgba(200,80,80,.5); background: rgba(140,60,60,.12); }

body.page-tickets .tk-row .tk-left{ min-width: 0; flex: 1; }

body.page-tickets .tk-row h4{ margin: 0; color: #e8d0d0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.page-tickets .tk-row p{ margin: 2px 0 0; color: #aa8888; font-size: .72rem; }

body.page-tickets .badge{ padding: 3px 8px; border-radius: 12px; font-size: .68rem; font-weight: 600; white-space: nowrap; }

body.page-tickets .badge-open{ background: rgba(60,180,80,.15); color: #88dd88; border: 1px solid rgba(60,180,80,.3); }

body.page-tickets .badge-closed{ background: rgba(140,140,140,.15); color: #aaa; border: 1px solid rgba(140,140,140,.3); }

body.page-tickets .detail-empty{ text-align: center; padding: 40px 14px; color: #886666; font-size: .85rem; }

body.page-tickets .detail-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }

body.page-tickets .detail-header h3{ margin: 0; color: #cc7777; font-size: .95rem; }

body.page-tickets .detail-actions{ display: flex; gap: 6px; }

body.page-tickets .btn{ padding: 5px 12px; border: none; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: .78rem; transition: opacity .2s; }

body.page-tickets .btn:hover{ opacity: .85; }

body.page-tickets .btn-danger{ background: rgba(200,60,60,.25); color: #ff8888; border: 1px solid rgba(200,60,60,.3); }

body.page-tickets .msg-list{ display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; padding: 6px 0; min-height: 0; }

body.page-tickets .msg{ padding: 6px 10px; border-radius: 8px; font-size: .82rem; line-height: 1.4; }

body.page-tickets .msg.user{ background: rgba(100,100,200,.08); border: 1px solid rgba(100,100,200,.15); }

body.page-tickets .msg.bot{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.2); }

body.page-tickets .msg .author{ font-weight: 600; color: #cc7777; font-size: .75rem; margin-bottom: 2px; }

body.page-tickets .msg.bot .author{ color: #ee88aa; }

body.page-tickets .msg .ts{ font-size: .65rem; color: #886666; float: right; }

body.page-tickets .msg .content{ color: #e8d0d0; word-break: break-word; }

body.page-tickets .msg .embed-block{ background: rgba(0,0,0,.15); border-left: 3px solid #cc7777; padding: 6px 8px; margin-top: 4px; border-radius: 0 6px 6px 0; font-size: .78rem; color: #e8c0d0; }

body.page-tickets .reply-box{ display: flex; gap: 6px; margin-top: 10px; }

body.page-tickets .reply-box input{ flex: 1; padding: 8px 10px; background: rgba(0,0,0,.3); border: 1px solid rgba(140,60,60,.3); border-radius: 7px; color: #e8d0d0; font-size: .82rem; }

body.page-tickets .reply-box input:focus{ outline: none; border-color: #cc7777; }

body.page-tickets .reply-box button{ padding: 8px 16px; background: linear-gradient(135deg, #8a4040, #aa5555); color: #fff; border: none; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: .82rem; white-space: nowrap; }

body.page-tickets .empty-state{ text-align: center; padding: 30px; color: #886666; }

body.page-tickets .config-info{ background: rgba(140,60,60,.08); border: 1px solid rgba(140,60,60,.2); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; color: #cc9999; font-size: .80rem; }

body.page-tickets .config-info code{ background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 4px; color: #e8d0d0; }



/* ---- page-jailbreakers ---- */

body.page-jailbreakers{ color: #e8d0d0; font-family: 'Segoe UI', sans-serif; }

body.page-jailbreakers .jb-wrap{ max-width: 1300px; margin: 14px auto; padding: 0 14px; width: 100%; }

body.page-jailbreakers .jb-stats{ display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

body.page-jailbreakers .jb-stat{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 10px; padding: 10px 16px; flex: 1; min-width: 110px; text-align: center; }

body.page-jailbreakers .jb-stat .val{ font-size: 1.4rem; font-weight: 800; color: #cc7777; }

body.page-jailbreakers .jb-stat .lbl{ font-size: .72rem; color: #aa8888; margin-top: 2px; }

body.page-jailbreakers .jb-layout{ display: grid; grid-template-columns: 1fr 300px; gap: 14px; }

@media (max-width: 860px) { body.page-jailbreakers .jb-layout{ grid-template-columns: 1fr; }
 }
body.page-jailbreakers .panel{ background: rgba(140,60,60,.10); border: 1px solid rgba(140,60,60,.25); border-radius: 12px; padding: 14px; }

body.page-jailbreakers .panel h3{ color: #cc7777; margin: 0 0 10px; font-size: .92rem; }

body.page-jailbreakers .history-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }

body.page-jailbreakers .h-card{ background: rgba(0,0,0,.12); border: 1px solid rgba(140,60,60,.15); border-radius: 10px; padding: 10px 12px; }

body.page-jailbreakers .h-card h4{ margin: 0 0 4px; color: #e8d0d0; font-size: .88rem; display: flex; align-items: center; gap: 6px; }

body.page-jailbreakers .h-card .meta{ display: flex; flex-wrap: wrap; gap: 8px; font-size: .72rem; color: #997777; margin-bottom: 4px; }

body.page-jailbreakers .h-card .proof-link{ color: #cc7777; text-decoration: underline; font-size: .78rem; }

body.page-jailbreakers .jb-status{ font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }

body.page-jailbreakers .jb-status.completed{ background: rgba(60,160,60,.15); color: #66cc66; border: 1px solid rgba(60,160,60,.3); }

body.page-jailbreakers .jb-status.contested{ background: rgba(200,140,40,.15); color: #ffbb44; border: 1px solid rgba(200,140,40,.3); }

body.page-jailbreakers .lb-list{ display: flex; flex-direction: column; gap: 6px; }

body.page-jailbreakers .lb-row{ display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0,0,0,.12); border: 1px solid rgba(140,60,60,.12); border-radius: 8px; }

body.page-jailbreakers .lb-rank{ font-size: 1rem; font-weight: 800; width: 28px; text-align: center; }

body.page-jailbreakers .lb-rank.gold{ color: #ffd700; }
 body.page-jailbreakers .lb-rank.silver{ color: #c0c0c0; }
 body.page-jailbreakers .lb-rank.bronze{ color: #cd7f32; }

body.page-jailbreakers .lb-name{ color: #e8d0d0; font-weight: 600; flex: 1; font-size: .85rem; }

body.page-jailbreakers .lb-count{ color: #cc7777; font-weight: 700; font-size: .88rem; }

body.page-jailbreakers .no-data{ text-align: center; padding: 24px; color: #886666; font-size: .85rem; }



/* ---- page-streamer-portal ---- */

        body.page-streamer-portal .portal-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

        @media (max-width: 900px) { body.page-streamer-portal .portal-grid{ grid-template-columns: 1fr; }
 }
        body.page-streamer-portal .portal-section{ background: rgba(20,8,8,0.55); border: 1px solid rgba(160,80,80,0.18); border-radius: 14px; padding: 18px; }

        body.page-streamer-portal .portal-title{ font-weight: 700; color: #aa6666; font-size: 1rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }

        body.page-streamer-portal .slot-grid{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

        @media (max-width: 600px) { body.page-streamer-portal .slot-grid{ grid-template-columns: repeat(3, 1fr); }
 }
        body.page-streamer-portal .slot-card{
            background: rgba(255,255,255,0.04); border: 2px dashed rgba(160,80,80,0.25); border-radius: 12px;
            padding: 10px; text-align: center; cursor: pointer; transition: all 0.3s; position: relative; min-height: 140px;
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
        }

        body.page-streamer-portal .slot-card:hover{ border-color: rgba(160,80,80,0.5); background: rgba(160,80,80,0.08); }

        body.page-streamer-portal .slot-card.has-image{ border-style: solid; border-color: rgba(100,180,100,0.4); }

        body.page-streamer-portal .slot-card img{ max-width: 80px; max-height: 90px; object-fit: contain; border-radius: 6px; }

        body.page-streamer-portal .slot-label{ font-size: 0.72rem; color: #997777; font-weight: 600; }

        body.page-streamer-portal .slot-upload-icon{ font-size: 1.6rem; color: #664444; }

        body.page-streamer-portal .slot-remove{ position: absolute; top: 4px; right: 6px; background: rgba(160,40,40,0.6); border: none; color: #faa; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; cursor: pointer; display: none; }

        body.page-streamer-portal .slot-card.has-image .slot-remove{ display: block; }

        body.page-streamer-portal .preview-frame{
            width: 100%; aspect-ratio: 16/9; background: rgba(0,0,0,0.6); border-radius: 12px; overflow: hidden;
            position: relative; display: flex; align-items: flex-end; justify-content: center;
        }

        body.page-streamer-portal .preview-avatar{ max-height: 80%; object-fit: contain; transition: opacity 0.6s ease, transform 0.6s ease;
            animation: previewFloat 3.4s ease-in-out infinite; }

        @keyframes previewFloat {
            0%,100% { transform: translateY(0px) rotate(0deg) scale(1); }
            30% { transform: translateY(-6px) rotate(0.3deg) scale(1.004); }
            70% { transform: translateY(-3px) rotate(-0.2deg) scale(1.002); }
        }
        body.page-streamer-portal .preview-bubble{
            position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
            background: rgba(10,5,20,0.88); border-left: 3px solid #a78bfa; border-radius: 0 8px 8px 0;
            padding: 8px 14px; color: #f3e8ff; font-size: 14px; max-width: 80%; opacity: 0;
            transition: opacity 0.4s ease; pointer-events: none;
        }

        body.page-streamer-portal .preview-bubble.show{ opacity: 1; }

        body.page-streamer-portal .toggle-row{ display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

        body.page-streamer-portal .toggle-row label{ display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; color: #997777; }

        body.page-streamer-portal .toggle-row input[type=checkbox]{ width: auto; accent-color: #8a4040; }

        body.page-streamer-portal .obs-url-box{
            background: rgba(0,0,0,0.35); border: 1px solid rgba(160,80,80,0.3); border-radius: 10px;
            padding: 10px 14px; display: flex; align-items: center; gap: 8px; margin-top: 12px;
        }

        body.page-streamer-portal .obs-url-box input{ flex: 1; background: transparent; border: none; color: #e8d0d0; font-size: 0.78rem; outline: none; margin: 0; padding: 0; font-family: monospace; }

        body.page-streamer-portal .obs-url-box button{ background: none; border: none; color: #aa6666; cursor: pointer; flex-shrink: 0; padding: 4px; }

    
