/* ==========================================================================
   Aspasia Official Forum Stylesheet (Matched to Aspasia Product UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css?family=Raleway:400,600,700,900');
@import url('/css/font-awesome.min.css');

/* CSS Reset & Baseline */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0f;
    color: #cbd5e1;
    font-family: Verdana, "Whitney", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Background Atmosphere: Isolated GPU-accelerated layer (Zero Flicker / Zero Banding) */
.bg-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: strict;
}

/* Cyber Linear Grid with Radial Edge Falloff */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, black 35%, transparent 92%);
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, black 35%, transparent 92%);
    pointer-events: none;
}

/* Micro-Tech Dot Matrix with Radial Vignette Mask */
.bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(196, 181, 253, 0.12) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, black 30%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, black 30%, transparent 88%);
    pointer-events: none;
}

/* Slow Ambient Cosmic Aurora Sweep */
.bg-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(139, 92, 246, 0.09) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: auraRotate 45s linear infinite;
}

/* Base Floating Glow Elements (Hardware Accelerated) */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Center Backlight: Gives content a floating illuminated presence */
.bg-glow-center {
    top: 15%;
    left: 20%;
    width: 60vw;
    height: 50vh;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.14) 0%, rgba(79, 70, 229, 0.05) 50%, transparent 75%);
    filter: blur(80px);
    animation: auraCenterFloat 18s ease-in-out infinite alternate;
}

/* Orb 1: Electric Violet Nebula (Top-Left) */
.bg-glow-1 {
    top: -100px;
    left: 8%;
    width: 720px;
    height: 520px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(99, 102, 241, 0.14) 45%, rgba(139, 92, 246, 0.03) 70%, transparent 80%);
    filter: blur(75px);
    animation: auraFloat1 18s ease-in-out infinite alternate;
}

/* Orb 2: Cyber Magenta / Neon Pink Flare (Bottom-Right) */
.bg-glow-2 {
    bottom: -80px;
    right: 8%;
    width: 650px;
    height: 480px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.22) 0%, rgba(236, 72, 153, 0.11) 45%, rgba(217, 70, 239, 0.02) 70%, transparent 80%);
    filter: blur(75px);
    animation: auraFloat2 22s ease-in-out infinite alternate;
}

/* Orb 3: Cyber Cyan / Azure Core (Mid-Left Accent) */
.bg-glow-3 {
    top: 38%;
    left: -80px;
    width: 550px;
    height: 420px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(59, 130, 246, 0.09) 45%, transparent 75%);
    filter: blur(75px);
    animation: auraFloat3 25s ease-in-out infinite alternate;
}

/* Cinematic Dark Edge Vignette */
.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 85% at 50% 50%, transparent 45%, rgba(10, 10, 15, 0.75) 100%);
    pointer-events: none;
}

@keyframes auraRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes auraCenterFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(20px, -15px, 0);
    }
    100% {
        transform: translate3d(-15px, 20px, 0);
    }
}

@keyframes auraFloat1 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(50px, 40px, 0);
    }
    100% {
        transform: translate3d(-40px, 20px, 0);
    }
}

@keyframes auraFloat2 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-45px, -35px, 0);
    }
    100% {
        transform: translate3d(35px, -20px, 0);
    }
}

@keyframes auraFloat3 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(40px, -30px, 0);
    }
    100% {
        transform: translate3d(-20px, 35px, 0);
    }
}

/* Global Sleek Dark Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d12;
}

::-webkit-scrollbar-thumb {
    background: #28283a;
    border-radius: 4px;
    border: 1px solid #1c1c28;
}

::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #28283a #0d0d12;
}

/* Top Signature Aspasia Gradient Divider */
.divide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
    border-bottom: 1px solid #000;
    z-index: 99999;
}

.divide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 25%, #d946ef 50%, #8b5cf6 75%, #6366f1 100%);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: divideShift 6s linear infinite;
}

@keyframes divideShift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(33.333333%, 0, 0);
    }
}

/* Main Wrapper */
.pun {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 95%;
    margin: 15px auto 40px auto;
    padding: 0;
}

.punwrap {
    background: linear-gradient(180deg, #16161f 0%, #121217 100%);
    border: 1px solid #272738;
    border-radius: 8px;
    padding: 22px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 1px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Header & Title */
#brdheader {
    margin-bottom: 16px;
}

#brdtitle {
    padding: 10px 0 16px 0;
    border-bottom: 1px solid #232330;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

#brdtitle h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    margin: 0;
}

#brdtitle h1 a {
    color: #ffffff;
    text-decoration: none;
}

#brdtitle h1 a span {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

#brdtitle h1 a:hover span {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}

#brdtitle p {
    font-size: 11px;
    color: #71717a;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Bar */
#brdmenu {
    background-color: #1a1a24;
    border: 1px solid #28283a;
    border-radius: 5px;
    margin-top: 14px;
    padding: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#brdmenu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

#brdmenu li {
    margin: 0;
}

#brdmenu li a {
    display: block;
    padding: 9px 16px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    border-right: 1px solid #272736;
    border-bottom: 2px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, border-bottom-color 0.18s ease;
    position: relative;
    box-sizing: border-box;
}

#brdmenu li a i {
    margin-right: 6px;
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
}

#brdmenu li a:hover {
    background-color: #242434;
    color: #ffffff;
}

#brdmenu li a:hover i {
    color: #adc0ff;
    transform: translateY(-1px);
}

#brdmenu li.active a {
    background: linear-gradient(180deg, #242436 0%, #1c1c28 100%);
    color: #ffffff;
    border-bottom-color: #8b5cf6;
    box-shadow: inset 0 -3px 8px rgba(139, 92, 246, 0.2);
}

#brdmenu li.active a i {
    color: #c4b5fd;
}

#brdmenu li.nav-right {
    margin-left: auto;
}

#brdmenu li.nav-discord a {
    border-right: none;
    border-left: 1px solid #272736;
    border-bottom: 2px solid transparent;
    color: #c4b5fd;
    display: flex;
    align-items: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-bottom-color 0.18s ease;
}

#brdmenu li.nav-discord a svg {
    fill: #5865F2;
    transition: fill 0.18s ease;
    pointer-events: none;
    flex-shrink: 0;
}

#brdmenu li.nav-discord a:hover {
    background-color: rgba(88, 101, 242, 0.18);
    color: #ffffff;
    border-bottom-color: #5865F2;
}

#brdmenu li.nav-discord a:hover svg {
    fill: #858ff7;
}

/* Messages Nav Item */
#brdmenu li.nav-messages {
    position: relative;
}

#brdmenu li.nav-messages a#nav-msg-btn {
    border-right: none;
    border-left: 1px solid #272736;
    display: flex;
    align-items: center;
    position: relative;
    padding: 9px 14px;
    cursor: pointer;
    user-select: none;
}

#brdmenu li.nav-messages a#nav-msg-btn i {
    font-size: 13px;
    margin-right: 0;
    color: #adc0ff;
    transition: transform 0.2s ease, color 0.2s ease;
}

#brdmenu li.nav-messages a#nav-msg-btn:hover i {
    color: #ffffff;
    transform: scale(1.15);
}

/* Staff & Admin Notification Bell & Dropdown */
#brdmenu li.nav-notifications {
    position: relative;
}

#brdmenu li.nav-notifications a#nav-notif-btn {
    border-right: none;
    border-left: 1px solid #272736;
    display: flex;
    align-items: center;
    position: relative;
    padding: 9px 14px;
    cursor: pointer;
    user-select: none;
}

#brdmenu li.nav-notifications a#nav-notif-btn i {
    font-size: 13px;
    margin-right: 0;
    color: #a78bfa;
    transition: transform 0.2s ease, color 0.2s ease;
}

#brdmenu li.nav-notifications a#nav-notif-btn:hover i {
    color: #c4b5fd;
    transform: rotate(15deg);
}

.notif-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 9px;
    border: 1px solid #1e1e28;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
    animation: notif-pulse 2s infinite;
}

@keyframes notif-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Notification Dropdown Container */
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: #14141d;
    border: 1px solid #2e2e3e;
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 1px rgba(139, 92, 246, 0.25);
    z-index: 1000;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownEnter 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: top right;
}

@keyframes dropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #181824;
    border-bottom: 1px solid #272736;
}

.notif-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-header-title {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
}

.notif-unread-tag {
    font-size: 10px;
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.notif-action-btn {
    background: transparent;
    border: 1px solid #3b3b4f;
    color: #94a3b8;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-action-btn:hover {
    background: #272736;
    color: #ffffff;
    border-color: #8b5cf6;
}

.notif-items-container {
    max-height: 360px;
    overflow-y: auto;
    background: #13131c;
}

.notif-items-container::-webkit-scrollbar {
    width: 5px;
}

.notif-items-container::-webkit-scrollbar-thumb {
    background: #2d2d3e;
    border-radius: 3px;
}

.notif-empty-state {
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
}

.notif-empty-state i {
    font-size: 26px;
    margin-bottom: 8px;
    color: #475569;
}

.notif-empty-state p {
    margin: 0;
    font-size: 12px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid #1e1e2c;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 10px;
    position: relative;
}

.notif-item:hover {
    background: #1c1c2b;
}

.notif-item.notif-unread {
    background: rgba(139, 92, 246, 0.05);
}

.notif-item.notif-unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8b5cf6;
}

.notif-item.notif-violation.notif-unread::before {
    background: #ef4444;
}

.notif-item.notif-hwid.notif-unread::before {
    background: #f59e0b;
}

.notif-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.notif-icon-violation {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.notif-icon-hwid {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.notif-icon-username {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.notif-icon-email {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.notif-icon-discord {
    background: rgba(88, 101, 242, 0.2);
    color: #5865f2;
    border: 1px solid rgba(88, 101, 242, 0.4);
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.notif-item-title {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-time {
    font-size: 9px;
    color: #64748b;
    flex-shrink: 0;
}

.notif-item-message {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    word-break: break-word;
}

.notif-dropdown-footer {
    padding: 8px 14px;
    background: #181824;
    border-top: 1px solid #272736;
    text-align: center;
}

.notif-dropdown-footer a {
    color: #a78bfa;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.notif-dropdown-footer a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}


/* Welcome / Status Bar */
#brdwelcome {
    margin-top: 12px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #181824 0%, #13131b 100%);
    border: 1px solid #28283a;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#brdwelcome strong {
    color: #ffffff;
}

#brdwelcome a {
    color: #adc0ff;
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

#brdwelcome a:hover {
    color: #d946ef;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.5);
}

/* Breadcrumbs */
.crumbs {
    margin: 14px 0 10px 0;
    padding: 6px 12px;
    font-size: 11px;
    color: #71717a;
    background: rgba(18, 18, 26, 0.5);
    border: 1px solid #232332;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.crumbs a {
    color: #adc0ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.15s ease;
}

.crumbs a:hover {
    color: #c4b5fd;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(196, 181, 253, 0.4);
}

.crumbs span.sep {
    margin: 0 6px;
    color: #4b5563;
}

/* General Typography & Links */
a {
    color: #adc0ff;
    text-decoration: none;
    transition: color 0.12s ease;
}

a:hover {
    color: #d946ef;
    text-decoration: underline;
}

/* Page & View Transitions */
.view-page {
    animation: pageEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adm-panel {
    animation: panelEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Block & Tables */
.blocktable, .blockpost, .blockform {
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

h2 {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background: linear-gradient(180deg, #2b2b3b 0%, #1f1f2c 100%);
    border: 1px solid #38384e;
    border-bottom: 1px solid #16161f;
    padding: 9px 15px;
    font-size: 11px;
    font-weight: 700;
    color: #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

h2 span.action-btn {
    font-weight: normal;
}

.box {
    background-color: #171722;
    border: 1px solid #2b2b3b;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow: hidden;
}


.inbox {
    padding: 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

thead th {
    background-color: #232330;
    color: #94a3b8;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 1px solid #8b5cf6;
    text-align: left;
    white-space: nowrap;
}

thead th:last-child, tbody td:last-child {
    padding-right: 16px;
}

thead th.tc-topics, thead th.tc-posts, thead th.tc-views, thead th.tc-replies {
    width: 80px;
    text-align: center;
}

thead th.tc-last {
    width: 260px;
}

tbody tr {
    background-color: #161620;
    border-bottom: 1px solid #232332;
    transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

tbody tr:hover {
    background-color: #212130;
    box-shadow: inset 3px 0 0 #8b5cf6;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}

tbody td.tcl {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

tbody td.tcl .forum-icon, tbody td.tcl .topic-icon {
    margin-top: 3px;
    font-size: 15px;
    color: #8b5cf6;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

tbody td.tcl .forum-icon.read, tbody td.tcl .topic-icon.read {
    color: #4b5563;
}

tbody td.tcl h3 {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
}

tbody td.tcl h3 a {
    color: #ffffff;
}

tbody td.tcl h3 a:hover {
    color: #adc0ff;
}

tbody td.tcl p {
    color: #88889a;
    font-size: 11px;
    line-height: 1.35;
}

tbody td.tc-topics, tbody td.tc-posts, tbody td.tc-views, tbody td.tc-replies {
    text-align: center;
    color: #cbd5e1;
    font-weight: 500;
}

tbody td.tc-last {
    font-size: 10px;
    color: #88889a;
    line-height: 1.4;
}

tbody td.tc-last a {
    color: #e2e8f0;
    font-weight: bold;
}

tbody td.tc-last a:hover {
    color: #adc0ff;
}

tbody td.tc-last .byuser {
    display: block;
    color: #adc0ff;
}

/* Badges & Tags */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
    user-select: none;
}

.badge:hover {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.15);
}

.badge-sticky {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.badge-closed {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

.badge-admin {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.45);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-mod {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.badge-member {
    background: #272738;
    color: #cbd5e1;
    border: 1px solid #38384e;
}

.badge-vip {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.45);
    border: 1px solid rgba(217, 70, 239, 0.4);
}

/* 2-Column Forum Post Container */
.post {
    display: flex;
    background-color: #1a1a23;
    border-bottom: 2px solid #141419;
}

.post:last-child {
    border-bottom: none;
}

.postleft {
    width: 170px;
    flex-shrink: 0;
    background-color: #15151c;
    border-right: 1px solid #282837;
    padding: 16px 14px;
    font-size: 10px;
    color: #88889a;
}

.postleft .post-author {
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 6px;
    word-break: break-word;
}

.postleft .author-role {
    margin-bottom: 10px;
}

.postleft .author-avatar {
    width: 80px;
    height: 80px;
    border: 1px solid #2d2d3e;
    border-radius: 6px;
    background-color: #101016;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.postleft .author-avatar:hover {
    transform: scale(1.05);
    border-color: #8b5cf6;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.postleft .author-avatar i {
    font-size: 42px;
    color: #475569;
}

.postleft .author-stats dl {
    margin: 0;
}

.postleft .author-stats dt {
    float: left;
    clear: left;
    color: #64748b;
    margin-right: 6px;
}

.postleft .author-stats dd {
    color: #cbd5e1;
    margin-bottom: 3px;
}

.postright {
    flex-grow: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #272736;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 10px;
    color: #64748b;
}

.post-actions a {
    color: #88889a;
    margin-left: 10px;
    font-size: 11px;
}

.post-actions a:hover {
    color: #adc0ff;
    text-decoration: none;
}

.postmsg {
    font-size: 12px;
    line-height: 1.6;
    color: #dde5ff;
    flex-grow: 1;
    word-break: break-word;
}

.postmsg p {
    margin-bottom: 10px;
}

/* Quote & Code Boxes */
.quotebox, .codebox {
    background-color: #121218;
    border: 1px solid #2d2d3e;
    border-left: 3px solid #8b5cf6;
    border-radius: 3px;
    margin: 10px 0;
    padding: 10px 14px;
    font-size: 11px;
}

.quotebox cite {
    display: block;
    font-weight: bold;
    font-style: normal;
    color: #adc0ff;
    margin-bottom: 6px;
}

.codebox pre {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    color: #c4b5fd;
    overflow-x: auto;
}

/* User Signature */
.postsignature {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px dashed #272736;
    color: #64748b;
    font-size: 10px;
    font-style: italic;
}

/* Forms, Buttons, Inputs */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
    background-color: #121219;
    border: 1px solid #2e2e42;
    border-radius: 5px;
    color: #ffffff;
    font-family: inherit;
    font-size: 11px;
    padding: 7px 11px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="datetime-local"]:focus, select:focus, textarea:focus {
    border-color: #8b5cf6;
    background-color: #161622;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.22), 0 0 12px rgba(139, 92, 246, 0.3);
}

textarea {
    width: 100%;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(180deg, #2a2a3a 0%, #1f1f2a 100%);
    border: 1px solid #3d3d54;
    border-radius: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(180deg, #36364c 0%, #282836 100%);
    border-color: #8b5cf6;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 8px rgba(139, 92, 246, 0.25);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 1px solid #7c3aed;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7174ff 0%, #996bf7 100%);
    border-color: #a78bfa;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.55), 0 0 12px rgba(139, 92, 246, 0.35);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-danger {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    border: 1px solid #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    border-color: #f87171;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 5px 16px rgba(239, 68, 68, 0.5);
}

.btn-danger:active {
    transform: translateY(0) scale(0.97);
}

.btn-success {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border: 1px solid #34d399;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-success:hover {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    border-color: #6ee7b7;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 5px 16px rgba(16, 185, 129, 0.5);
}

.btn-success:active {
    transform: translateY(0) scale(0.97);
}

.btn-warning {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid #fbbf24;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #fde68a;
    color: #0f172a;
    transform: translateY(-1.5px);
    box-shadow: 0 5px 16px rgba(245, 158, 11, 0.5);
}

.btn-warning:active {
    transform: translateY(0) scale(0.97);
}

/* Quick Reply / Editor */
.editor-toolbar {
    background-color: #1e1e28;
    border: 1px solid #333346;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 4px 8px;
    display: flex;
    gap: 4px;
}

.editor-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
}

.editor-btn:hover {
    background-color: #2d2d3e;
    color: #ffffff;
    border-color: #4b4b66;
}

/* Administration Console Tab Styling */
.metric-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background-color: #14141d;
    border-bottom: 1px solid #232332;
}

.metric-cards.metric-cards-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
    background: linear-gradient(180deg, #1b1b28 0%, #151520 100%);
    border: 1px solid #28283a;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: #3f3f58;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(139, 92, 246, 0.15);
}

.metric-label {
    font-size: 9px;
    font-weight: 700;
    color: #7d7d96;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-val, .metric-value {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-val.green, .metric-value.green { color: #10b981; }
.metric-val.blue, .metric-value.blue { color: #38bdf8; }
.metric-val.purple, .metric-value.purple { color: #c084fc; }
.metric-val.amber, .metric-value.amber { color: #f59e0b; }

.metric-sub {
    font-size: 10px;
    color: #717188;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1080px) {
    .metric-cards.metric-cards-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .metric-cards, .metric-cards.metric-cards-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .metric-cards, .metric-cards.metric-cards-5 {
        grid-template-columns: 1fr;
    }
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: radarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.status-dot.offline { background-color: #64748b; }

@keyframes radarPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 0 10px #10b981;
    }
}

/* Log Stream Box */
.log-stream {
    background-color: #111117;
    border: 1px solid #272738;
    font-family: Consolas, monospace;
    font-size: 11px;
    padding: 10px;
    max-height: 280px;
    overflow-y: auto;
    color: #cbd5e1;
}

.log-entry {
    padding: 3px 0;
    border-bottom: 1px solid #1c1c27;
}

.log-time { color: #64748b; margin-right: 8px; }
.log-level { font-weight: bold; margin-right: 8px; }
.log-level.INFO { color: #adc0ff; }
.log-level.FORUM { color: #8b5cf6; }
.log-level.SECURITY { color: #f97316; }
.log-level.ADMIN { color: #facc15; }
.log-level.ERROR { color: #ef4444; }
.log-level.CONFIG { color: #38bdf8; }
.log-level.LOADER { color: #a855f7; }
.log-level.MAPPER { color: #10b981; }
.log-level.AUTH { color: #fbbf24; }
.log-level.WS { color: #818cf8; }
.log-level.WS_MSG { color: #64748b; }
.log-level.WS_ERROR { color: #f87171; }

.log-user-tag {
    color: #38bdf8;
    font-weight: 600;
    margin-right: 6px;
}
.log-ip-tag {
    color: #64748b;
    font-size: 10px;
    margin-right: 6px;
}

/* 2-column admin logs layout */
.adm-logs-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
}
.adm-logs-sidebar {
    background: #121218;
    border: 1px solid #232330;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: 650px;
}
.adm-logs-search {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    margin-bottom: 10px;
    background: #0d0d12;
    border: 1px solid #232330;
    color: #e2e8f0;
    font-size: 11px;
    border-radius: 3px;
}
.adm-logs-user-list {
    overflow-y: auto;
    flex: 1;
}
.adm-logs-user-item {
    padding: 8px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    margin-bottom: 3px;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
}
.adm-logs-user-item:hover {
    background: #1c1c27;
    color: #fff;
}
.adm-logs-user-item.active {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 600;
}
.adm-logs-badge {
    background: #1e1e28;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: normal;
    color: #94a3b8;
}
.adm-logs-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.adm-logs-filter-pill {
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 3px;
    background: #15151c;
    border: 1px solid #232330;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s;
}
.adm-logs-filter-pill:hover {
    color: #fff;
    border-color: #38bdf8;
}
.adm-logs-filter-pill.active {
    background: #2563eb;
    border-color: #3b82f6;
    color: #fff;
}

/* Footer */
#brdfooter {
    margin-top: 24px;
    padding: 12px 0;
    border-top: 1px solid #232330;
    color: #64748b;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#brdfooter a {
    color: #88889a;
}

#brdfooter a:hover {
    color: #adc0ff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: overlayFadeIn 0.2s ease-out both;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #171720;
    border: 1px solid #3c3c52;
    border-radius: 8px;
    width: 90%;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(139, 92, 246, 0.25);
    overflow: hidden;
    animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(to bottom, #2b2b3b 0%, #1f1f2c 100%);
    border-bottom: 1px solid #3c3c52;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 18px 20px;
}

.modal-footer {
    background-color: #121219;
    border-top: 1px solid #272736;
    padding: 10px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(180deg, #1d1d2b 0%, #151520 100%);
    border: 1px solid #333348;
    border-left: 4px solid #8b5cf6;
    border-radius: 6px;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 14px rgba(139, 92, 246, 0.3);
    animation: toastSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.toast.error {
    border-left-color: #ef4444;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 14px rgba(239, 68, 68, 0.3);
}

.toast.info {
    border-left-color: #6366f1;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 14px rgba(99, 102, 241, 0.3);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #ffffff !important;
    border: 1px solid #5865F2;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752C4, #3c45a5);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.5);
    transform: translateY(-1.5px);
}

.btn-discord:active {
    transform: translateY(0) scale(0.97);
}

#product-loader-download:not(:disabled) {
    animation: downloadGlow 2.5s ease-in-out infinite;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes downloadGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 0 6px 24px rgba(139, 92, 246, 0.7), 0 0 16px rgba(217, 70, 239, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

.badge-discord {
    background-color: #5865F2;
    color: #ffffff;
}

/* User Profile Modern Cyberpunk Banner & Avatar */
.profile-banner-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #181824 0%, #0d0d14 50%, #20152b 100%);
    background-size: cover;
    background-position: center;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: 1px solid #2d2d3e;
    overflow: hidden;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12,12,16,0.1) 0%, rgba(12,12,16,0.85) 100%);
    pointer-events: none;
}

.profile-header-content {
    position: relative;
    padding: 0 24px 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background-color: #121218;
    border: 3px solid #2d2d3e;
    box-shadow: 0 8px 24px rgba(0,0,0,0.85), 0 0 16px rgba(139, 92, 246, 0.35);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar-wrapper:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: #8b5cf6;
    box-shadow: 0 12px 32px rgba(0,0,0,0.95), 0 0 24px rgba(139, 92, 246, 0.6);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-placeholder {
    font-size: 46px;
    color: #555562;
}

.profile-info-block {
    flex-grow: 1;
    min-width: 240px;
    margin-top: 18px;
    padding-bottom: 4px;
}

.profile-actions-bar {
    margin-top: 18px;
    padding-bottom: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Profile Comments Section */
.profile-comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-comment-card {
    background-color: #121218;
    border: 1px solid #232332;
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    transition: border-color 0.15s;
}

.profile-comment-card:hover {
    border-color: #3b3b4f;
}

.profile-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: #1a1a24;
    border: 1px solid #2e2e40;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-comment-body {
    flex-grow: 1;
    min-width: 0;
}

.profile-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.profile-comment-author {
    font-weight: bold;
    color: #ffffff;
    font-size: 11px;
    text-decoration: none;
}

.profile-comment-author:hover {
    color: #a78bfa;
}

.profile-comment-text {
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Profile Sub-Navigation Tabs */
.profile-subnav-btn {
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-subnav-btn:hover {
    background-color: #1e1e2d;
    color: #ffffff;
}

.profile-subnav-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}

/* Direct Messaging View Styles */
.conv-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #1c1c27;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 10px;
    position: relative;
}

.conv-item:hover {
    background-color: #191924;
}

.conv-item.active {
    background-color: #1f1f2e;
    border-left: 3px solid #6366f1;
}

.conv-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #232332;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #adc0ff;
    flex-shrink: 0;
    overflow: hidden;
}

.conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conv-details {
    flex: 1;
    min-width: 0;
}

.conv-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.conv-username {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 10px;
    color: #64748b;
    flex-shrink: 0;
}

.conv-snippet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-snippet {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.conv-unread-badge {
    background-color: #6366f1;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
}

/* Chat message bubbles */
.chat-row {
    display: flex;
    margin-bottom: 6px;
    width: 100%;
}

.chat-row.mine {
    justify-content: flex-end;
}

.chat-row.theirs {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
    position: relative;
}

.chat-row.mine .chat-bubble {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.chat-row.theirs .chat-bubble {
    background: #181824;
    color: #e2e8f0;
    border: 1px solid #28283a;
    border-bottom-left-radius: 2px;
}

.chat-bubble-meta {
    font-size: 9px;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    opacity: 0.75;
}
.subscription-panel { padding: 20px; }
.subscription-panel p { margin: 12px 0; color: #aab2c2; }
.subscription-panel label { display: block; margin: 10px 0; }
.subscription-panel input, .subscription-panel select { display: block; padding: 8px; max-width: 100%; }
.subscription-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 14px 0; }
.subscription-panel table { width: 100%; }
.subscription-panel td, .subscription-panel th { padding: 12px; text-align: left; border-bottom: 1px solid #333; }
.badge-premium { background: #f6c35b22; color: #f6c35b; border: 1px solid #f6c35b55; }
#category-access-dialog { max-width: 480px; padding: 24px; background: #1b1b20; color: #ddd; border: 1px solid #53535e; border-radius: 8px; }
#category-access-dialog::backdrop { background: #0009; }
#category-access-dialog p { margin: 14px 0; }
button:disabled { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }

.subscription-panel input[type="search"] { background: #12121b; color: #e0e3eb; border: 1px solid #393949; border-radius: 3px; }
#subscription-reason { width: 100%; box-sizing: border-box; }
#category-access-dialog { margin: auto; position: fixed; inset: 0; max-height: 85vh; overflow: auto; width: min(480px, calc(100vw - 48px)); box-sizing: border-box; }

.shoutbox-panel {
    position: relative;
    margin: 16px 0;
    overflow: hidden;
    border: 1px solid #3d3521;
    border-radius: 8px;
    background: linear-gradient(145deg, #171718 0%, #111114 65%, #19160f 100%);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .025);
}
.shoutbox-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f6c35b, #b8872f, transparent);
    opacity: .85;
}
.shoutbox-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid #292722; }
.shoutbox-heading h2 { margin: 2px 0 0; color: #f4f1e8; font-size: 16px; letter-spacing: -.01em; }
.shoutbox-kicker { color: #dcae55; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.shoutbox-kicker i { margin-right: 5px; }
.shoutbox-status { display: inline-flex; align-items: center; gap: 7px; color: #7d7b75; font-size: 10px; font-weight: 600; }
.shoutbox-status > span { width: 7px; height: 7px; border-radius: 50%; background: #666; box-shadow: 0 0 0 3px rgba(120,120,120,.08); }
.shoutbox-status.is-live { color: #91cfa3; }
.shoutbox-status.is-live > span { background: #53c978; box-shadow: 0 0 0 3px rgba(83,201,120,.12), 0 0 10px rgba(83,201,120,.45); animation: shoutboxPulse 2s ease-in-out infinite; }
.shoutbox-status.is-away > span { background: #dcae55; }
.shoutbox-status.is-error > span { background: #dc6868; }
.shoutbox-messages { height: 300px; padding: 10px 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #463d2b transparent; }
.shoutbox-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 9px; color: #696861; font-size: 11px; }
.shoutbox-empty i { color: #8c7547; font-size: 27px; opacity: .65; }
.shoutbox-message { display: flex; gap: 10px; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.035); transition: background .2s ease, transform .2s ease; }
.shoutbox-message:hover { background: rgba(246,195,91,.035); }
.shoutbox-message.is-new { animation: shoutboxEnter .34s cubic-bezier(.2,.8,.2,1) both; }
.shoutbox-avatar, .shoutbox-self-avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #25231e; color: #b99a5c; }
.shoutbox-avatar { width: 34px; height: 34px; border: 1px solid #443b29; }
.shoutbox-avatar img, .shoutbox-self-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shoutbox-message-body { min-width: 0; flex: 1; }
.shoutbox-message-meta { display: flex; align-items: center; gap: 6px; min-height: 17px; }
.shoutbox-message-meta > a { color: #e7dfca; font-size: 11px; font-weight: 700; }
.shoutbox-message-meta .badge { padding: 1px 5px; font-size: 8px; }
.shoutbox-message-meta time { margin-left: auto; color: #64635e; font-size: 9px; }
.shoutbox-message p { margin: 3px 0 0; color: #bbb9b1; font-size: 11px; line-height: 1.48; overflow-wrap: anywhere; }
.shoutbox-message.is-mine p { color: #ded8c8; }
.shoutbox-compose { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #292722; background: rgba(8,8,10,.42); }
.shoutbox-self-avatar { width: 32px; height: 32px; margin-bottom: 1px; border: 1px solid #443b29; }
.shoutbox-input-wrap { position: relative; flex: 1; }
.shoutbox-input-wrap textarea { display: block; width: 100%; min-height: 34px; max-height: 96px; margin: 0; padding: 8px 54px 8px 11px; resize: none; box-sizing: border-box; border: 1px solid #34322d; border-radius: 6px; outline: 0; background: #0e0e11; color: #e6e3dc; font: inherit; font-size: 11px; line-height: 16px; transition: border-color .2s, box-shadow .2s; }
.shoutbox-input-wrap textarea:focus { border-color: #806936; box-shadow: 0 0 0 3px rgba(246,195,91,.07); }
.shoutbox-input-wrap textarea:disabled { opacity: .55; }
#shoutbox-count { position: absolute; right: 9px; bottom: 9px; color: #5f5d57; font-size: 8px; pointer-events: none; }
.shoutbox-send { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid #a47e31; border-radius: 6px; background: linear-gradient(180deg, #d6aa51, #a87927); color: #17130b; font-size: 10px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 14px rgba(169,122,39,.18); transition: transform .18s, filter .18s, opacity .18s; }
.shoutbox-send:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.shoutbox-send:active:not(:disabled) { transform: translateY(0); }
.shoutbox-send:disabled { filter: saturate(.35); }
@keyframes shoutboxEnter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes shoutboxPulse { 50% { opacity: .55; transform: scale(.84); } }
@media (max-width: 620px) {
    .shoutbox-messages { height: 260px; padding-inline: 10px; }
    .shoutbox-heading, .shoutbox-compose { padding-inline: 12px; }
    .shoutbox-self-avatar { display: none; }
    .shoutbox-send span { display: none; }
    .shoutbox-send { width: 36px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .shoutbox-message.is-new, .shoutbox-status.is-live > span { animation: none; }
    .shoutbox-messages { scroll-behavior: auto; }
}

/* Compact forum presence and shoutbox */
.welcome-user-area { min-width: 0; }
.forum-online-users { margin-top: 4px; color: #737389; font-size: 10px; line-height: 1.4; }
.forum-online-label { margin-right: 4px; color: #85859a; }
.forum-online-label i { margin-right: 3px; color: #5bbf78; font-size: 6px; vertical-align: 1px; }
.forum-online-users a { color: #9caee5 !important; }
.forum-online-users a:hover { color: #c0cbf1 !important; }
.forum-online-separator, .forum-online-empty { color: #5f5f70; }
.shoutbox-panel { margin: 0 0 14px; border-color: #29293a; border-radius: 4px; background: #191921; box-shadow: inset 0 1px rgba(255,255,255,.02); }
.shoutbox-panel::before { height: 1px; background: linear-gradient(90deg, #7657d6, #aa50d7, transparent 70%); opacity: .9; }
.shoutbox-status { position: absolute; z-index: 2; top: 8px; right: 11px; gap: 5px; color: #707083; font-size: 9px; }
.shoutbox-status > span { width: 5px; height: 5px; box-shadow: none; }
.shoutbox-status.is-live > span { box-shadow: 0 0 6px rgba(83,201,120,.5); }
.shoutbox-status.is-away > span { background: #a78bfa; }
.shoutbox-messages { height: 138px; padding: 23px 11px 5px; scrollbar-color: #44445b transparent; }
.shoutbox-empty { gap: 6px; color: #696979; font-size: 10px; }
.shoutbox-empty i { color: #77778e; font-size: 20px; opacity: .55; }
.shoutbox-message {
    gap: 8px;
    padding: 6px 4px;
    transition: background 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.shoutbox-message:hover {
    background: rgba(139, 92, 246, 0.08);
    border-radius: 4px;
    transform: translateX(3px);
}
.shoutbox-avatar, .shoutbox-self-avatar {
    background: #252531;
    color: #a99be0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.shoutbox-avatar { width: 27px; height: 27px; border-color: #3a3a4c; }
.shoutbox-avatar:hover {
    transform: scale(1.12);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}
.shoutbox-message-meta > a { color: #d7d9e7; font-size: 10px; transition: color 0.15s ease; }
.shoutbox-message-meta > a:hover { color: #c4b5fd; text-shadow: 0 0 6px rgba(196, 181, 253, 0.4); }
.shoutbox-message p { margin-top: 2px; color: #aaaaba; font-size: 10px; line-height: 1.4; }
.shoutbox-message.is-mine p { color: #c9c9d6; }
.shoutbox-compose { align-items: center; gap: 8px; padding: 7px 10px; border-color: #29293a; background: #16161e; }
.shoutbox-self-avatar { width: 27px; height: 27px; margin: 0; border-color: #3a3a4c; }
.shoutbox-input-wrap textarea { min-height: 29px; max-height: 64px; padding: 6px 72px 6px 9px; border-color: #303040; border-radius: 3px; background: #111118; color: #dedee8; font-size: 10px; line-height: 15px; }
.shoutbox-input-wrap textarea:focus { border-color: #8b5cf6; box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15); }
#shoutbox-count { right: 7px; bottom: 7px; color: #555565; }

/* Emoji Toggle Button */
.shoutbox-emoji-toggle {
    position: absolute;
    right: 44px;
    bottom: 4px;
    background: transparent;
    border: none;
    color: #88889a;
    font-size: 13px;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 3px;
    transition: color 0.18s ease, transform 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shoutbox-emoji-toggle:hover {
    color: #c4b5fd;
    transform: scale(1.15);
}
.shoutbox-emoji-toggle:active {
    transform: scale(0.95);
}
.shoutbox-emoji-toggle.active {
    color: #8b5cf6;
}

/* Emoji Picker Popover */
.shoutbox-emoji-picker {
    position: absolute;
    bottom: 48px;
    right: 10px;
    width: 280px;
    max-width: calc(100% - 20px);
    background: linear-gradient(180deg, #181824 0%, #12121a 100%);
    border: 1px solid #2e2e42;
    border-radius: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 1px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.emoji-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background-color: #12121a;
    border-bottom: 1px solid #232332;
}
.emoji-picker-tabs {
    display: flex;
    gap: 2px;
}
.emoji-tab-btn {
    background: transparent;
    border: none;
    color: #71717a;
    width: 26px;
    height: 24px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.emoji-tab-btn:hover {
    color: #c4b5fd;
    background-color: rgba(139, 92, 246, 0.12);
}
.emoji-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.2) 100%);
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.3);
}
.emoji-close-btn {
    background: transparent;
    border: none;
    color: #71717a;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.emoji-close-btn:hover {
    color: #ffffff;
}
.emoji-picker-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 6px;
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #28283a transparent;
}
.emoji-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 5px 2px;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.12s ease, background-color 0.12s ease;
    user-select: none;
}
.emoji-btn:hover {
    background-color: rgba(139, 92, 246, 0.2);
    transform: scale(1.22);
}
.emoji-btn:active {
    transform: scale(0.95);
}

.shoutbox-message p.is-emoji-only {
    font-size: 20px;
    line-height: 1.3;
}
.shoutbox-send {
    width: 30px;
    height: 29px;
    padding: 0;
    border-color: #6653a7;
    border-radius: 3px;
    background: linear-gradient(180deg, #7257c7, #59429d);
    color: #fff;
    box-shadow: none;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease, box-shadow 0.18s ease;
}
.shoutbox-send:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.05);
    filter: brightness(1.12);
    box-shadow: 0 0 10px rgba(114, 87, 199, 0.5);
}
.shoutbox-send:active:not(:disabled) {
    transform: translateY(0) scale(0.96);
}
@media (max-width: 620px) {
    #brdwelcome { align-items: flex-start; gap: 8px; }
    .shoutbox-messages { height: 120px; padding-inline: 8px; }
    .shoutbox-compose { padding-inline: 8px; }
}

/* ==========================================================================
   Polish layer
   ========================================================================== */
:root {
    --bg: #0b0b10;
    --panel: #14141c;
    --panel-2: #191923;
    --panel-3: #1f1f2b;
    --line: #262636;
    --line-2: #313145;
    --text: #e6e6f0;
    --muted: #9191a8;
    --dim: #62627a;
    --accent: #8b5cf6;
    --accent-2: #6366f1;
    --accent-soft: rgba(139, 92, 246, 0.14);
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #38bdf8;
    --radius: 8px;
    --radius-sm: 6px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #cfd2de;
}

body.is-admin-view .pun { max-width: 1440px; }

.punwrap {
    background: linear-gradient(180deg, rgba(22, 22, 31, 0.96) 0%, rgba(17, 17, 24, 0.96) 100%);
    border-color: var(--line);
    border-radius: 12px;
}

#brdmenu {
    background: var(--panel-2);
    border-color: var(--line);
    border-radius: var(--radius);
    padding: 3px;
}

#brdmenu li a { border-radius: var(--radius-sm); }

#brdwelcome {
    background: var(--panel);
    border-color: var(--line);
    border-radius: var(--radius);
}

a:hover { text-decoration: none; }

h2 {
    background: var(--panel-3);
    border-color: var(--line-2);
    border-bottom-color: var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 12px;
    padding: 10px 15px;
    text-shadow: none;
    box-shadow: none;
}

.box {
    background: var(--panel);
    border-color: var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
}

.blocktable, .blockpost, .blockform { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }

thead th {
    background: var(--panel-2);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--line-2);
    padding: 9px 12px;
}

tbody tr {
    background: transparent;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
    box-shadow: none;
}

tbody td { padding: 10px 12px; }

input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="datetime-local"], select, textarea {
    background: #101017;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    padding: 7px 10px;
    min-height: 32px;
}

input::placeholder, textarea::placeholder { color: var(--dim); }

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="datetime-local"]:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    background: #12121b;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

select[multiple] { min-height: 0; padding: 4px; }

input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }

.btn {
    background: var(--panel-3);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: #e9e9f2;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    min-height: 32px;
    text-shadow: none;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    background: #272736;
    border-color: #45455e;
    transform: none;
    box-shadow: none;
}

.btn:active { transform: translateY(1px); box-shadow: none; }

.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7477ff 0%, #9d72f8 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    box-shadow: none;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: none;
}

.btn-danger-ghost {
    background: transparent;
    border-color: transparent;
    color: #f87171;
}

.btn-danger-ghost:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-success {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    box-shadow: none;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
    box-shadow: none;
}

.btn-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fcd34d;
    font-weight: 600;
    box-shadow: none;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
    box-shadow: none;
}

.btn-sm {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 11px;
}

.btn-block { width: 100%; }

.btn-primary:active, .btn-danger:active, .btn-success:active, .btn-warning:active { transform: translateY(1px); }

.badge { box-shadow: none; }
.badge:hover { transform: none; filter: none; }

.metric-card:hover { transform: none; }

.modal-content {
    background: var(--panel);
    border-color: var(--line-2);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.modal-header {
    background: var(--panel-2);
    border-bottom-color: var(--line);
    padding: 13px 18px;
    font-size: 13px;
}

.modal-footer {
    background: var(--panel-2);
    border-top-color: var(--line);
}

.toast {
    background: #1a1a25;
    border-color: var(--line-2);
    border-radius: var(--radius);
    font-size: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.toast.error, .toast.info { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); }

.crumbs {
    background: transparent;
    border: none;
    padding: 0;
    margin: 4px 0 12px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2c2c3e; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3c3c54; }

/* ==========================================================================
   Administration
   ========================================================================== */
#adminconsole {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

#adminmenu {
    position: sticky;
    top: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 10px;
}

.adm-menu-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 8px 10px;
}

.adm-menu-title i { color: var(--accent); margin-right: 4px; }

.adm-search-container {
    position: relative;
    margin-bottom: 10px;
}

.adm-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dim);
    font-size: 11px;
    pointer-events: none;
}

#adminmenu .adm-search-input {
    width: 100%;
    padding-left: 28px;
    min-height: 30px;
    font-size: 11px;
}

.adm-menu-group { margin-top: 12px; }
.adm-menu-group:first-of-type { margin-top: 4px; }

.adm-menu-heading {
    font-size: 10px;
    font-weight: 700;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 8px 4px;
}

#adminmenu ul { list-style: none; margin: 0; padding: 0; }
#adminmenu li { margin: 1px 0; }

#adminmenu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 9px;
    border-radius: var(--radius-sm);
    color: #b6b8c8;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#adminmenu li a:hover { background: var(--panel-3); color: #fff; }

#adminmenu li.isactive a {
    background: var(--accent-soft);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--accent);
}

.adm-nav-label { display: flex; align-items: center; gap: 9px; min-width: 0; }

#adminmenu i.adm-nav-icon {
    width: 14px;
    text-align: center;
    color: var(--dim);
    font-size: 12px;
    transition: color 0.15s ease;
}

#adminmenu li a:hover i.adm-nav-icon { color: var(--muted); }
#adminmenu li.isactive a i.adm-nav-icon { color: var(--accent); }

.adm-nav-badge {
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 16px;
}

.adm-nav-badge.badge-green { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.adm-nav-badge.badge-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.adm-nav-badge.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.adm-nav-badge.badge-purple { background: var(--accent-soft); color: #c4b5fd; }

#admincontent { min-width: 0; }

#adm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 2px 0 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.adm-header-kicker {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 3px;
}

.adm-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.adm-header-title i { font-size: 17px; color: var(--muted); }

.adm-header-desc { margin-top: 3px; color: var(--muted); font-size: 12px; }

.adm-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.adm-header-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 11px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    color: var(--muted);
    font-size: 11px;
}

.adm-header-status-pill strong { color: #fff; }

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.adm-panel > * + * { margin-top: 16px; }

#view-admin .metric-cards {
    padding: 0;
    background: none;
    border: none;
    gap: 12px;
}

#view-admin .metric-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: none;
}

#view-admin .metric-label { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 6px; }
#view-admin .metric-val, #view-admin .metric-value { font-family: inherit; font-size: 22px; font-weight: 700; }
#view-admin .metric-sub code { color: var(--blue); font-size: 10px; }
.metric-card-link { align-items: flex-start; }

.ac-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.ac-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
}

.ac-card-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.ac-card-head h3 i { color: var(--dim); font-size: 12px; }

.ac-card-body { padding: 16px; }
.ac-card-body > * + * { margin-top: 12px; }

.ac-card > .ac-filter-grid { padding: 14px 16px; }

.ac-count {
    padding: 1px 7px;
    border-radius: 9px;
    background: var(--panel-3);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.ac-table-wrap { overflow-x: auto; }
.ac-table-wrap table { min-width: 600px; }
.ac-grid .ac-table-wrap table { min-width: 0; }
.ac-table-wrap.ac-scroll { max-height: 380px; overflow-y: auto; }
.ac-table-wrap thead th { position: sticky; top: 0; z-index: 1; }
.ac-card tbody tr:last-child { border-bottom: none; }

.col-check { width: 34px; text-align: center !important; }
.ta-r { text-align: right !important; }
.ta-c { text-align: center !important; }

.ac-empty { padding: 26px 12px !important; text-align: center; color: var(--dim); }

.ac-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
}

.ac-toolbar-end {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ac-search { position: relative; flex: 1 1 240px; max-width: 360px; }

.ac-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dim);
    font-size: 11px;
    pointer-events: none;
}

.ac-search input { width: 100%; padding-left: 29px; min-height: 30px; }

.ac-inline-select { width: auto; min-height: 30px; padding: 4px 8px; font-size: 11px; }

.ac-muted { color: var(--muted); font-size: 11px; }
.ac-muted strong { color: #fff; }

.ac-hint { display: block; color: var(--dim); font-size: 11px; line-height: 1.45; }

.ac-note {
    margin: 0;
    padding: 8px 11px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--accent-soft);
    color: #c9c4e6;
    font-size: 11px;
}

.ac-error { margin-top: 6px; color: #f87171; font-size: 11px; }

.ac-grid { display: grid; gap: 12px; }
.ac-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ac-grid-upload { grid-template-columns: 2fr 1fr 2fr auto auto; align-items: end; }

.ac-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.ac-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ac-field + .ac-field { margin-top: 0; }
.ac-collapse-body > .ac-field, .ac-card-body > .ac-field { margin-top: 12px; }

.ac-field label {
    font-size: 11px;
    font-weight: 600;
    color: #b4b6c6;
}

.ac-field label .badge { margin: 0; }

.ac-field input, .ac-field select, .ac-field textarea { width: 100%; }

.ac-field-actions { flex-direction: row; gap: 6px; }

.ac-optional { color: var(--dim); font-weight: 400; margin-left: 3px; }

.ac-inline { display: flex; align-items: flex-end; gap: 8px; }
.ac-inline > input, .ac-inline > .ac-field { flex: 1; min-width: 0; }

.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.ac-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c4c6d4;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.ac-check-end { align-self: end; min-height: 32px; }
.ac-checks { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }

.ac-subhead {
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.ac-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ac-more { border-top: 1px solid var(--line); }

.ac-more summary {
    padding: 9px 16px;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    list-style: none;
}

.ac-more summary::-webkit-details-marker { display: none; }
.ac-more summary::before { content: "\f107"; font-family: FontAwesome; margin-right: 6px; display: inline-block; transition: transform 0.15s ease; }
.ac-more[open] summary::before { transform: rotate(180deg); }
.ac-more summary:hover { color: #fff; }
.ac-more > .ac-filter-grid { padding: 0 16px 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ac-collapse {
    background: var(--panel);
    border: 1px dashed var(--line-2);
    border-radius: 10px;
    transition: border-color 0.15s ease;
}

.ac-collapse[open] { border-style: solid; border-color: var(--line-2); }

.ac-collapse > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    color: #d4d4e2;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ac-collapse > summary::-webkit-details-marker { display: none; }
.ac-collapse > summary i { color: var(--accent); width: 12px; text-align: center; }
.ac-collapse > summary::after { content: "\f107"; font-family: FontAwesome; margin-left: auto; color: var(--dim); transition: transform 0.15s ease; }
.ac-collapse[open] > summary::after { transform: rotate(180deg); }
.ac-collapse > summary:hover { color: #fff; }
.ac-collapse[open] > summary { border-bottom: 1px solid var(--line); }

.ac-collapse-body { padding: 16px; }
.ac-collapse-body > .ac-grid + .ac-grid { margin-top: 12px; }

.ac-collapse-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.ac-inset {
    padding: 14px 16px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}

.ac-inset > .ac-field { margin-top: 12px; }

.ac-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.ac-split-wide { grid-template-columns: minmax(0, 1fr) 340px; }
.ac-sticky { position: sticky; top: 14px; }

.ac-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.ac-setting-text { display: flex; flex-direction: column; gap: 3px; }
.ac-setting-text strong { color: #fff; font-size: 12px; }
.ac-setting-text strong i { color: var(--green); margin-right: 5px; }
.ac-setting-text span { color: var(--muted); font-size: 11px; }
.ac-setting-control { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.ac-state { margin: 0; padding: 4px 9px; }
.ac-state-on { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.ac-state-off { background: rgba(239, 68, 68, 0.14); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }

.ac-color { width: 38px; min-width: 38px; height: 32px; padding: 2px; background: #101017; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }

.ac-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #101017;
}

.ac-preview .badge i { margin-right: 4px; font-size: 9px; }

.ac-code {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #a7f3d0;
    background: #0c0c12 !important;
}

.mono { font-family: Consolas, "Cascadia Mono", monospace !important; }

.ac-bot { display: flex; align-items: center; gap: 16px; padding: 16px; flex-wrap: wrap; }

.ac-bot-avatar {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #1a1b2e;
    border: 2px solid #5865f2;
    color: #5865f2;
    font-size: 24px;
}

.ac-bot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ac-bot-info { flex: 1; min-width: 220px; }
.ac-bot-name { display: flex; align-items: center; gap: 10px; }
.ac-bot-name h3 { margin: 0; font-size: 16px; color: #fff; }
.ac-bot-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.ac-bot-meta strong { color: #d4d4e2; font-weight: 600; }
.ac-bot-meta code { color: #d4d4e2; }
.ac-bot-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.adm-preset-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.adm-preset-btn:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }

.adm-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: fit-content;
    max-width: 100%;
}

.adm-subnav-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.adm-subnav-pill:hover { color: #fff; background: var(--panel-3); }
.adm-subnav-pill.active { background: var(--accent-soft); color: #fff; box-shadow: none; }
.adm-subnav-pill i { color: var(--dim); }
.adm-subnav-pill.active i { color: var(--accent); }

.adm-subnav-pill .pill-badge {
    min-width: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: var(--panel-3);
    color: var(--muted);
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}

.adm-subnav-pill.active .pill-badge { background: var(--accent); color: #fff; }

.adm-logs-container { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }

.adm-logs-sidebar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    max-height: 640px;
}

.adm-logs-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.adm-logs-search { min-height: 30px; }

.adm-logs-user-item { border-radius: var(--radius-sm); font-size: 12px; }
.adm-logs-user-item:hover { background: var(--panel-3); }
.adm-logs-user-item.active { background: var(--accent-soft); border-color: transparent; color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.adm-logs-badge { background: var(--panel-3); border-radius: 9px; }

.adm-logs-filters { padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--line); background: var(--panel-2); }

.adm-logs-filter-pill { border-radius: 12px; border-color: var(--line-2); background: transparent; font-size: 11px; }
.adm-logs-filter-pill:hover { border-color: var(--accent); }
.adm-logs-filter-pill.active { background: var(--accent); border-color: var(--accent); }

#view-admin .log-stream { max-height: 580px; border: none; background: #0f0f15; padding: 12px 14px; }

@media (max-width: 1180px) {
    .ac-split, .ac-split-wide { grid-template-columns: minmax(0, 1fr); }
    .ac-sticky { position: static; }
    .ac-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ac-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ac-field-wide { grid-column: 1 / -1; }
    .ac-grid-upload { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    #adminconsole { grid-template-columns: minmax(0, 1fr); }
    #adminmenu { position: static; }
    #adminmenu .adm-menu-group ul { display: flex; flex-wrap: wrap; gap: 4px; }
    #adminmenu li { margin: 0; }
    .adm-menu-heading { padding-top: 4px; }
    .ac-collapse-row, .ac-grid-2, .ac-grid-3, .ac-grid-4 { grid-template-columns: minmax(0, 1fr); }
    .adm-logs-container { grid-template-columns: minmax(0, 1fr); }
    .adm-logs-sidebar { max-height: 260px; }
    #adm-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .ac-grid-5, .ac-filter-grid, .ac-more > .ac-filter-grid, .ac-grid-upload { grid-template-columns: minmax(0, 1fr); }
    .ac-setting { flex-direction: column; align-items: flex-start; }
    .ac-toolbar-end { margin-left: 0; }
}

/* ==========================================================================
   Direct messages
   ========================================================================== */
.dm-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    height: min(640px, calc(100vh - 260px));
    min-height: 460px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.dm-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--line);
    background: #121219;
}

.dm-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 14px 10px;
}

.dm-sidebar-head h3 { margin: 0; color: #fff; font-size: 15px; font-weight: 700; }

.dm-search { position: relative; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.dm-search i { position: absolute; left: 23px; top: 10px; color: var(--dim); font-size: 11px; pointer-events: none; }
.dm-search input { width: 100%; padding-left: 29px; min-height: 30px; }

#conversations-list { flex: 1; overflow-y: auto; padding: 6px; }

.dm-placeholder { padding: 28px 16px; text-align: center; color: var(--dim); font-size: 12px; }
.dm-placeholder i { display: block; margin-bottom: 8px; font-size: 26px; opacity: 0.5; }

.conv-item {
    gap: 11px;
    padding: 9px 10px;
    border: none;
    border-radius: var(--radius);
    margin-bottom: 2px;
}

.conv-item:hover { background: var(--panel-3); }
.conv-item.active { background: var(--accent-soft); border-left: none; box-shadow: inset 2px 0 0 var(--accent); }
.conv-avatar { width: 38px; height: 38px; background: var(--panel-3); color: var(--muted); }
.conv-username { font-size: 12px; }
.conv-time { font-size: 10px; color: var(--dim); }
.conv-snippet { max-width: none; flex: 1; color: var(--muted); }
.conv-unread-badge { background: var(--accent); border-radius: 9px; }
.conv-item.has-unread .conv-username { color: #fff; }
.conv-item.has-unread .conv-snippet { color: #d4d4e2; }

.dm-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #0f0f15; }

#chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.dm-peer { display: flex; align-items: center; gap: 11px; min-width: 0; }

.dm-back { display: none; }

#chat-header-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--panel-3);
    color: var(--muted);
    font-size: 15px;
}

#chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
#chat-header-user { color: #fff; font-size: 13px; font-weight: 700; }
#chat-header-role { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

#chat-messages-stream {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dm-empty { margin: auto; text-align: center; color: var(--dim); font-size: 12px; }
.dm-empty i { display: block; margin-bottom: 10px; font-size: 34px; opacity: 0.45; }
.dm-error { margin: auto; color: #f87171; font-size: 12px; text-align: center; }

.chat-day {
    align-self: center;
    margin: 10px 0 4px;
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--panel-2);
    color: var(--dim);
    font-size: 10px;
}

.chat-row { margin-bottom: 0; }
.chat-bubble { max-width: min(72%, 560px); padding: 8px 12px; border-radius: 14px; font-size: 12.5px; }
.chat-bubble-text { white-space: pre-wrap; }
.chat-row.mine .chat-bubble { background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%); border-bottom-right-radius: 4px; box-shadow: none; }
.chat-row.theirs .chat-bubble { background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.chat-row.system .chat-bubble { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.25); color: #d6eefa; }
.chat-bubble-meta { font-size: 10px; opacity: 0.65; }

#chat-input-container { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--panel); }
#chat-send-form { display: flex; align-items: flex-end; gap: 8px; }
#chat-message-input { flex: 1; min-height: 38px; max-height: 140px; resize: none; font-size: 12.5px; border-radius: 10px; }
#chat-send-form .btn { min-height: 38px; border-radius: 10px; }

.dm-readonly { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: 11px; text-align: center; }

@media (max-width: 760px) {
    .dm-shell { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 220px); }
    .dm-shell .dm-chat { display: none; }
    .dm-shell.has-active .dm-sidebar { display: none; }
    .dm-shell.has-active .dm-chat { display: flex; }
    .dm-back { display: inline-flex; }
    .chat-bubble { max-width: 86%; }
}

@media (max-width: 700px) {
    .pun { width: 100%; margin: 0 auto 24px; }
    .punwrap { padding: 14px !important; border-radius: 0; border-left: none; border-right: none; }
    #brdtitle { flex-direction: column; align-items: flex-start; gap: 6px; }
    #brdtitle h1 { font-size: 30px; }
    #brdmenu ul { flex-wrap: nowrap; overflow-x: auto; }
    #brdmenu li.nav-right { margin-left: 0; }
    #brdwelcome { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .view-page, .adm-panel, .modal-content, .toast { animation: none; }
}

/* Cloud paint kits */
.pk-header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.pk-hint { color: #888885; font-size: 12px; }
.pk-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.pk-tabs::-webkit-scrollbar { display: none; }
.pk-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #aaa; font-size: 12px; font-weight: bold; cursor: pointer; }
.pk-tab:hover { color: #fff; }
.pk-tab.active { background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.6); color: #fff; }
.pk-count { min-width: 16px; padding: 0 5px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); font-size: 10px; text-align: center; }
.pk-count:empty { display: none; }
.pk-panel { animation: none; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pk-card { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; }
.pk-thumb, .pk-stage { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #121215; color: #444; font-size: 28px; touch-action: pan-y; user-select: none; }
.pk-thumb img, .pk-stage img, .pk-canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-thumb .pk-canvas { cursor: grab; }
.pk-thumb .pk-canvas:active { cursor: grabbing; }
.pk-badge { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(139, 92, 246, 0.85); color: #fff; font-size: 10px; font-weight: bold; pointer-events: none; }
.pk-info { padding: 8px 10px 4px; min-width: 0; }
.pk-name { color: #fff; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-meta { color: #888885; font-size: 11px; margin-top: 2px; }
.pk-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); color: #bbb; }
.pk-tag.pk-public { background: rgba(139, 92, 246, 0.25); color: #c4b5fd; }
.pk-actions { display: flex; gap: 6px; padding: 6px 10px 10px; margin-top: auto; }
.pk-actions .btn { padding: 3px 8px; }
.pk-actions .pk-danger { margin-left: auto; color: #d63031; }
.pk-empty { grid-column: 1 / -1; padding: 28px 12px; text-align: center; color: #888; }
.pk-error { color: #d63031; }
.pk-search { display: flex; gap: 8px; margin-bottom: 12px; }
.pk-search input { flex: 1; min-width: 0; }
.pk-pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px 0; color: #888; }
.pk-deck { position: relative; width: min(380px, 100%); aspect-ratio: 3 / 4; margin: 4px auto 0; }
.pk-swipe-card { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #17171b; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); touch-action: none; user-select: none; will-change: transform; }
.pk-swipe-card.pk-next { transform: scale(0.94) translateY(14px); opacity: 0.6; }
.pk-swipe-card.pk-top { cursor: grab; }
.pk-swipe-card.pk-top:active { cursor: grabbing; }
.pk-swipe-card .pk-stage { flex: 1; aspect-ratio: auto; min-height: 0; font-size: 48px; }
.pk-swipe-info { padding: 14px 16px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.35)); }
.pk-swipe-name { color: #fff; font-size: 18px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-stamp { position: absolute; top: 22px; padding: 4px 12px; border: 3px solid; border-radius: 8px; font-size: 20px; font-weight: 900; letter-spacing: 2px; opacity: 0; pointer-events: none; }
.pk-stamp-like { left: 18px; color: #4ade80; border-color: #4ade80; transform: rotate(-14deg); }
.pk-stamp-skip { right: 18px; color: #f87171; border-color: #f87171; transform: rotate(14deg); }
.pk-deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.12); color: #888; text-align: center; padding: 20px; }
.pk-deck-empty .fa-check-circle { font-size: 36px; color: #8b5cf6; }
.pk-deck-actions { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.pk-round { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: #1b1b20; font-size: 22px; cursor: pointer; transition: transform 0.12s ease; }
.pk-round:hover { transform: scale(1.08); }
.pk-skip { color: #f87171; }
.pk-like { color: #4ade80; }
.pk-deck-hint { margin-top: 10px; text-align: center; color: #666; font-size: 11px; }
@media (max-width: 600px) {
    .pk-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
    .pk-deck { width: 100%; }
}
/* Config browser */
.pk-hot { color: #fb923c; font-weight: bold; }
.cb-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(139, 92, 246, 0.25); background: radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.03) 60%), #141418; }
.cb-hero h3 { margin: 0 0 4px; font-size: 18px; font-weight: bold; color: #fff; }
.cb-hero .btn { flex: 0 0 auto; }
.cb-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.cb-tabs::-webkit-scrollbar { display: none; }
.cb-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #aaa; font-size: 12px; font-weight: bold; cursor: pointer; }
.cb-tab:hover { color: #fff; }
.cb-tab.active { background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.6); color: #fff; }
.cb-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.cb-searchbox { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); background: #121215; color: #666; }
.cb-searchbox input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 9px 0 !important; color: #fff; outline: none; }
.cb-sorts { display: inline-flex; padding: 3px; border-radius: 8px; background: #121215; border: 1px solid rgba(255, 255, 255, 0.08); }
.cb-sort { padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: #999; font-size: 12px; font-weight: bold; cursor: pointer; }
.cb-sort:hover { color: #fff; }
.cb-sort.active { background: rgba(139, 92, 246, 0.85); color: #fff; }
.cb-tagbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cb-tagbar:empty { display: none; }
.cb-chip { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: #aaa; font-size: 11px; cursor: pointer; }
.cb-chip:hover { color: #fff; }
.cb-chip.active { border-color: rgba(139, 92, 246, 0.7); background: rgba(139, 92, 246, 0.2); color: #fff; }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cb-card { display: flex; flex-direction: column; min-width: 0; border-radius: 10px; overflow: hidden; background: #16161a; border: 1px solid rgba(255, 255, 255, 0.07); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.cb-card:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.cb-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1d1b26, #121215); cursor: pointer; overflow: hidden; }
.cb-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease, transform 0.35s ease; }
.cb-cover.cb-loaded img { opacity: 1; }
.cb-card:hover .cb-cover img { transform: scale(1.04); }
.cb-cover-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: #4b4b55; font-size: 12px; }
.cb-cover-empty .fa { font-size: 26px; }
.cb-cover.cb-loaded .cb-cover-empty { display: none; }
.cb-badge, .cb-count { position: absolute; top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: bold; color: #fff; backdrop-filter: blur(6px); background: rgba(0, 0, 0, 0.55); pointer-events: none; }
.cb-badge { left: 8px; }
.cb-count { right: 8px; }
.cb-public { background: rgba(139, 92, 246, 0.8); }
.cb-private { background: rgba(60, 60, 70, 0.85); }
.cb-subbed { background: rgba(34, 197, 94, 0.75); }
.cb-body { padding: 10px 12px 4px; min-width: 0; }
.cb-title { color: #fff; font-size: 14px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; min-height: 18px; }
.cb-tag { padding: 1px 7px; border-radius: 4px; background: rgba(139, 92, 246, 0.14); color: #c4b5fd; font-size: 10px; cursor: pointer; }
.cb-tag:hover { background: rgba(139, 92, 246, 0.3); }
.cb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px; margin-top: auto; }
.cb-foot .btn { padding: 4px 10px; }
.cb-subs { color: #888; font-size: 12px; }
.cb-section-title { margin: 6px 0 10px; color: #ccc; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.06em; }
.cb-section-title:not(:first-child) { margin-top: 22px; }
.cb-unposted { display: flex; flex-direction: column; gap: 6px; }
.cb-unposted-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #16161a; border: 1px solid rgba(255, 255, 255, 0.06); color: #888; }
.cb-unposted-name { flex: 1; min-width: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-tip { margin-top: 14px; }
.cb-modal { align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.72); }
.cb-viewer { display: flex; width: min(1100px, 100%); max-width: none !important; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border-radius: 14px; background: #141418; border: 1px solid rgba(255, 255, 255, 0.08); }
.cb-viewer-media { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #0b0b0d; }
.cb-stage { position: relative; flex: 1; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.cb-stage img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: block; }
.cb-stage .cb-cover-empty { position: static; padding: 60px 0; }
.cb-nav { position: absolute; top: calc(50% - 40px); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
.cb-nav:hover { background: rgba(139, 92, 246, 0.85); }
.cb-prev { left: 12px; }
.cb-next { right: 12px; }
.cb-strip { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #101013; }
.cb-thumb { flex: 0 0 auto; width: 84px; aspect-ratio: 16 / 9; border-radius: 5px; border: 2px solid transparent; background: #1d1d22 center / cover no-repeat; cursor: pointer; opacity: 0.6; }
.cb-thumb.active, .cb-thumb:hover { border-color: #8b5cf6; opacity: 1; }
.cb-viewer-side { flex: 0 0 320px; display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.cb-viewer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cb-viewer-title { color: #fff; font-size: 18px; font-weight: bold; word-break: break-word; }
.cb-close { color: #888; font-size: 18px; }
.cb-close:hover { color: #fff; }
.cb-desc { color: #ccc; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cb-muted { color: #666; font-style: italic; }
.cb-viewer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cb-viewer-stats div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.cb-viewer-stats b { color: #fff; font-size: 16px; }
.cb-viewer-stats span { color: #777; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.cb-viewer-actions { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.cb-viewer-actions .btn { width: 100%; padding: 9px; }
.cb-editor { width: min(620px, 100%); max-width: none !important; max-height: calc(100vh - 32px); display: flex; flex-direction: column; transition: box-shadow 0.15s ease; }
.cb-editor .modal-body { overflow-y: auto; }
.cb-editor.cb-dragging { box-shadow: 0 0 0 2px #8b5cf6; }
.cb-editor-footer { display: flex; align-items: center; gap: 8px; }
.cb-field { margin-bottom: 12px; }
.cb-field label { display: block; margin-bottom: 6px; font-weight: bold; color: #ddd; }
.cb-field input, .cb-field textarea, .cb-field select { width: 100%; box-sizing: border-box; }
.cb-switch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; cursor: pointer; }
.cb-switch input { display: none; }
.cb-switch-track { position: relative; flex: 0 0 auto; width: 36px; height: 20px; border-radius: 999px; background: #33333b; transition: background 0.15s ease; }
.cb-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.cb-switch input:checked + .cb-switch-track { background: #8b5cf6; }
.cb-switch input:checked + .cb-switch-track::after { transform: translateX(16px); }
.cb-shots-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cb-shot-tile, .cb-shot-add { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; background: #1b1b20 center / cover no-repeat; }
.cb-shot-add { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; border: 1px dashed rgba(255, 255, 255, 0.18); color: #888; font-size: 11px; cursor: pointer; }
.cb-shot-add:hover { border-color: #8b5cf6; color: #fff; }
.cb-shot-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 11px; cursor: pointer; }
.cb-shot-remove:hover { background: #d63031; }
.cb-shot-new { position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 3px; background: rgba(139, 92, 246, 0.85); color: #fff; font-size: 10px; font-weight: bold; }
@media (max-width: 800px) {
    .cb-viewer { flex-direction: column; overflow-y: auto; }
    .cb-viewer-side { flex: 0 0 auto; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
    .cb-stage { min-height: 200px; }
}
@media (max-width: 600px) {
    .cb-hero { flex-direction: column; align-items: flex-start; }
    .cb-grid { grid-template-columns: 1fr; }
    .cb-sorts { width: 100%; }
    .cb-sort { flex: 1; padding: 6px 4px; }
}
/* Live loadout */
.ll-block { margin-bottom: 16px; }
.ll-admin { margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(214, 48, 49, 0.2); color: #f87171; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; vertical-align: middle; }
.ll-box { padding: 14px 16px; }
.ll-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ll-status { color: #bbb; font-size: 12px; }
.ll-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: #555; vertical-align: 1px; }
.ll-dot.ll-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.ll-session + .ll-session { margin-top: 16px; }
.ll-session-head { margin-bottom: 8px; }
.ll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ll-item { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 8px; border-radius: 8px; background: #16161a; border: 1px solid rgba(255, 255, 255, 0.06); }
.ll-special { border-color: rgba(139, 92, 246, 0.4); background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), #16161a 70%); }
.ll-thumb { flex: 0 0 auto; width: 84px; height: 63px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: radial-gradient(circle at 50% 60%, #24232c, #0f0f12 75%); color: #555; overflow: hidden; }
.ll-thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.ll-thumb.ll-agent { width: 63px; }
.ll-thumb.ll-agent img { object-fit: cover; object-position: top; }
.ll-thumb.ll-has-image .fa { display: none; }
.ll-info { min-width: 0; flex: 1; }
.ll-slot { color: #a78bfa; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; }
.ll-name { color: #fff; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-skin { color: #ccc; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-tag { margin-left: 4px; padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); color: #bbb; font-size: 10px; }
.ll-cloud { background: rgba(139, 92, 246, 0.25); color: #c4b5fd; }
.ll-thumb { position: relative; }
.ll-finish-badge { position: absolute; right: 3px; bottom: 3px; padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, 0.7); color: #c4b5fd; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; }
