/* ==========================================================================
   TEMPEST RP — HIGH-PERFORMANCE FUTURISTIC FORUM STYLESHEET
   Optimized for 60FPS Desktop & Full Mobile Responsiveness
   ========================================================================== */

:root {
    --bg-deep: #04060b;
    --bg-glass: rgba(8, 14, 28, 0.86);
    --bg-glass-strong: rgba(7, 12, 24, 0.94);
    --bg-glass-hover: rgba(13, 23, 45, 0.92);
    --neon-cyan: #00f0ff;
    --neon-blue: #0055ff;
    --neon-green: #10b981;
    --neon-red: #ef4444;
    --neon-purple: #a855f7;
    --neon-gold: #f59e0b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-subtle: rgba(0, 240, 255, 0.18);
    --border-bright: rgba(0, 240, 255, 0.65);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

html, body {
    min-height: 100vh;
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::selection {
    background: rgba(0, 240, 255, 0.28);
    color: #fff;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #03050a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-blue));
    border-radius: 10px;
}

/* ==========================================================================
   SVG ICON STYLING (REPLACING ALL EMOJIS)
   ========================================================================== */
.ui-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
}

.ui-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ui-svg-lg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   LIVE VIDEO BACKGROUND & LIGHTWEIGHT CANVAS OVERLAYS
   ========================================================================== */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 15%, #0a1936 0%, #040710 55%, #020307 100%);
    transform: translateZ(0);
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.30;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(3, 5, 11, 0.65) 0%, rgba(3, 6, 13, 0.55) 50%, rgba(2, 4, 9, 0.94) 100%);
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   "CLICK TO ENTER" SPLASH SCREEN (UPDATED TEXT FOR TEMPEST RP)
   ========================================================================== */
.enter-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(3, 5, 11, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    user-select: none;
}

.enter-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-card {
    text-align: center;
    padding: 44px 52px;
    max-width: 580px;
    width: 100%;
    border-radius: 22px;
    background: rgba(7, 13, 28, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.38);
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.16), inset 0 0 25px rgba(0, 85, 255, 0.12);
    position: relative;
}

.enter-logo-emblem {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 85, 255, 0.28));
    border: 1.5px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: var(--neon-cyan);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}

.enter-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #ffffff 0%, var(--neon-cyan) 55%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.enter-subtitle {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.enter-bottom-caption {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
}

/* ==========================================================================
   MAIN LAYOUT CONTAINER
   ========================================================================== */
.app-shell {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 20px 135px;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 20px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    flex-wrap: wrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 85, 255, 0.3));
    border: 1px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #fff;
}

.brand-text span {
    color: var(--neon-cyan);
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}

.server-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 11px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.24);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.server-pill:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--neon-cyan);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.server-stats-num {
    font-weight: 700;
    font-size: 13.5px;
    color: #fff;
}

.server-stats-sub {
    font-size: 10.5px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover, .nav-btn.active {
    color: #fff;
    background: rgba(0, 240, 255, 0.13);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.nav-btn.owner-btn {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 85, 255, 0.22));
    border-color: rgba(0, 240, 255, 0.55);
    color: var(--neon-cyan);
}

.nav-btn.owner-btn:hover, .nav-btn.owner-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(0, 85, 255, 0.35));
    color: #fff;
}

.nav-btn.admin-btn {
    background: rgba(0, 102, 255, 0.14);
    border-color: rgba(0, 102, 255, 0.45);
    color: #60a5fa;
}

.nav-user-zone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-action-btn {
    position: relative;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-action-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.12);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--neon-cyan);
    color: #020617;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 7px;
    border-radius: 13px;
    background: rgba(10, 18, 36, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.32);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.user-mini-card:hover {
    border-color: var(--neon-cyan);
}

.user-mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
}

.user-mini-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-mini-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   AUTOMATIC GLOWING ROLE BADGES & PREFIX PILLS
   ========================================================================== */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 240, 255, 0.14);
    border: 1px solid var(--role-color, #00f0ff);
    box-shadow: 0 0 12px var(--role-glow, rgba(0, 240, 255, 0.45));
    text-shadow: 0 0 6px var(--role-color, #00f0ff);
    white-space: nowrap;
}

.role-badge .ui-svg {
    width: 12px;
    height: 12px;
    color: var(--role-color, #00f0ff);
}

.prefix-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(4, 9, 20, 0.85);
    border: 1px solid var(--prefix-color, #00f0ff);
    box-shadow: 0 0 10px var(--prefix-glow, rgba(0, 240, 255, 0.4));
    white-space: nowrap;
}

.prefix-pill .prefix-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--prefix-color, #00f0ff);
}

.achievement-gem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.38);
    cursor: help;
}

.achievement-gem .ui-svg {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   GLOBAL ANNOUNCEMENT & TOOLBAR
   ========================================================================== */
.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 18px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.12) 0%, rgba(0, 85, 255, 0.16) 100%);
    border: 1px solid rgba(0, 240, 255, 0.38);
}

.announcement-text {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.demo-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 12px;
    background: rgba(8, 14, 28, 0.88);
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.demo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-chip:hover, .demo-chip.active {
    background: rgba(0, 240, 255, 0.16);
    border-color: var(--neon-cyan);
    color: #fff;
}

/* ==========================================================================
   BENTO GRID SECTIONS (SMOOTH 60FPS HOVER GLOW)
   ========================================================================== */
.section-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 14px;
    flex-wrap: wrap;
}

.section-group-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-group-title::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1.5px solid rgba(0, 240, 255, 0.28);
    padding: 20px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    will-change: transform;
}

.bento-card:nth-child(even) {
    border-color: rgba(0, 110, 255, 0.36);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    background: var(--bg-glass-hover);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.35);
}

.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.bento-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.bento-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(0, 240, 255, 0.09);
    border: 1px solid rgba(0, 240, 255, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.bento-card:hover .bento-icon-box {
    background: rgba(0, 240, 255, 0.18);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 22px var(--neon-cyan);
}

.bento-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.bento-card:hover .bento-title {
    color: var(--neon-cyan);
}

.bento-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.bento-count-badge {
    min-width: 34px;
    height: 28px;
    padding: 0 9px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    flex-shrink: 0;
}

.bento-thread-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-thread-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.bento-thread-item:hover {
    background: rgba(0, 240, 255, 0.09);
    border-color: rgba(0, 240, 255, 0.32);
}

.bento-thread-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.bento-thread-name {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bento-thread-replies {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

/* ==========================================================================
   HOME BOTTOM WIDGETS & PANELS
   ========================================================================== */
.home-bottom-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.glass-panel {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.panel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
}

.shoutbox-messages {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 12px;
}

.shout-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shout-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--neon-cyan);
    flex-shrink: 0;
}

.shout-form {
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   BUTTONS, INPUTS, RICH MEDIA TOOLBAR & ATTACHMENTS
   ========================================================================== */
.neon-input, .neon-select, .neon-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(4, 8, 18, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.neon-input:focus, .neon-select:focus, .neon-textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.neon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #020617;
    background: linear-gradient(135deg, var(--neon-cyan), #38bdf8);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.neon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.65);
}

.neon-btn-outline {
    background: rgba(0, 240, 255, 0.08);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.45);
    box-shadow: none;
}

.neon-btn-outline:hover {
    background: rgba(0, 240, 255, 0.2);
    color: #fff;
}

.neon-btn-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid #ef4444;
    box-shadow: none;
}

.neon-btn-success {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid #10b981;
    box-shadow: none;
}

/* Rich Media & File Upload Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.18);
    margin-bottom: 8px;
}

.attachment-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.attachment-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px;
}

.attachment-card img, .attachment-card video {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}

.post-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.post-media-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: #02050d;
}

.post-media-item img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    display: block;
    background: #02050d;
}

.post-media-item video, .post-media-item iframe {
    width: 100%;
    height: 315px;
    border: none;
    display: block;
}

/* ==========================================================================
   THREAD VIEW & POST CARDS
   ========================================================================== */
.post-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass-strong);
    border: 1px solid rgba(0, 240, 255, 0.22);
    margin-bottom: 16px;
}

.post-card.verdict-card {
    border: 1.5px solid var(--neon-cyan);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.18);
}

.post-author-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 13px;
    background: rgba(4, 8, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 9px;
    border: 2px solid var(--neon-cyan);
}

.post-roles-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 7px 0;
}

.post-content-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.post-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: #e2e8f0;
    white-space: pre-line;
    word-break: break-word;
}

.post-text a {
    color: var(--neon-cyan);
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================================================
   BIO-STYLE PROFILE CARD
   ========================================================================== */
.bio-profile-banner {
    height: 190px;
    border-radius: 18px 18px 0 0;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-bottom: none;
}

.bio-profile-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(5, 9, 20, 0.96) 100%);
}

.bio-profile-body {
    padding: 0 26px 26px;
    background: var(--bg-glass-strong);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-top: none;
    border-radius: 0 0 18px 18px;
    margin-bottom: 22px;
}

.bio-avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 14px;
}

.bio-main-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.55);
    background: #040814;
}

/* ==========================================================================
   FLOATING NEON MUSIC PLAYER BAR
   ========================================================================== */
.floating-music-player {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    width: min(760px, calc(100vw - 24px));
    padding: 11px 18px;
    border-radius: 18px;
    background: rgba(6, 11, 23, 0.94);
    border: 1.5px solid rgba(0, 240, 255, 0.42);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.floating-music-player.minimized {
    width: auto;
    left: auto;
    right: 16px;
    transform: none;
    padding: 9px 14px;
}

.player-disc-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.player-disc {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
    animation: spinDisc 9s linear infinite;
    animation-play-state: paused;
}

.player-disc.playing {
    animation-play-state: running;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-center-info {
    flex: 1;
    min-width: 0;
}

.player-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.player-track-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-artist {
    font-size: 11px;
    color: var(--neon-cyan);
    margin-left: 6px;
    font-family: 'Inter', sans-serif;
}

.player-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.neon-range {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    cursor: pointer;
}

.neon-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
}

.player-timeline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

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

.player-ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.28);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.player-ctrl-btn.play-main {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-cyan);
}

.player-ctrl-btn:hover {
    background: var(--neon-cyan);
    color: #020617;
}

/* ==========================================================================
   MODALS, PERMISSION GRIDS & TOASTS
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 5, 12, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.modal-window {
    width: min(680px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    background: #070d1c;
    border: 1.5px solid var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.22);
    padding: 22px;
}

.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 36px);
}

.neon-toast {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(6, 12, 26, 0.96);
    border: 1.5px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.perm-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.18);
    font-size: 12px;
    cursor: pointer;
}

.perm-check-label input {
    accent-color: var(--neon-cyan);
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   RESPONSIVE FORM GRIDS (PC MULTI-COLUMN -> MOBILE STACKED WITHOUT OVERFLOW)
   ========================================================================== */
.resp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.resp-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.resp-grid-role {
    display: grid;
    grid-template-columns: 1fr 90px 150px 95px;
    gap: 10px;
}

.resp-grid-srv-top {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
}

.resp-grid-srv-ip {
    display: grid;
    grid-template-columns: 1fr 115px 115px;
    gap: 10px;
}

.resp-grid-thread {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
}

/* ==========================================================================
   MULTI-SERVER NEON SELECTOR BAR
   ========================================================================== */
.server-selector-bar {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    max-width: 100%;
}

.server-tab-card {
    flex: 1 1 240px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(5, 11, 24, 0.88);
    border: 1px solid rgba(0, 240, 255, 0.22);
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.server-tab-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 240, 255, 0.22);
}

.server-tab-card.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(0, 85, 255, 0.18));
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 240, 255, 0.35);
}

.server-tab-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 15px;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.server-tab-card.active .server-tab-num {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #020611;
    border-color: transparent;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

/* ==========================================================================
   FULL MOBILE & TABLET RESPONSIVENESS (OPTIMIZED FOR SMARTPHONES)
   ========================================================================== */
@media (max-width: 960px) {
    .home-bottom-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .post-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }
    .resp-grid-role {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .app-shell {
        padding: 10px 10px 145px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Prevent any panel or card from exceeding viewport width */
    .top-navbar,
    .announcement-banner,
    .quick-toolbar,
    .server-selector-bar,
    .bento-grid,
    .bento-card,
    .glass-panel,
    .post-card,
    .bio-profile-body,
    .modal-window {
        max-width: 100%;
        min-width: 0;
    }

    /* Responsive Form Grids on Mobile */
    .resp-grid-2,
    .resp-grid-3,
    .resp-grid-role,
    .resp-grid-srv-top,
    .resp-grid-srv-ip,
    .resp-grid-thread {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .enter-card {
        padding: 26px 18px;
        margin: 0 8px;
    }

    .enter-title {
        font-size: 24px;
        letter-spacing: 2px;
        word-break: break-word;
    }

    .enter-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
        flex-wrap: wrap;
    }

    /* Top Navbar Mobile Layout */
    .top-navbar {
        padding: 12px;
        gap: 10px;
    }

    .brand-wrap {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

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

    .server-pill {
        width: 100%;
        justify-content: flex-start;
        padding: 7px 12px;
        min-width: 0;
    }

    .server-stats-num {
        font-size: 12.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-btn {
        padding: 8px 11px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-user-zone {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-mini-card {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    /* Announcement & Quick Toolbar Mobile */
    .announcement-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 11px 14px;
        gap: 8px;
    }

    .announcement-text {
        font-size: 12px;
        line-height: 1.4;
        word-break: break-word;
    }

    .quick-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
    }

    .demo-switcher {
        width: 100%;
        font-size: 11.5px;
    }

    .quick-toolbar > div:last-child {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .quick-toolbar > div:last-child .neon-btn,
    .quick-toolbar > div:last-child .demo-chip {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Server Selector Bar Mobile */
    .server-selector-bar {
        flex-direction: column;
        gap: 9px;
    }

    .server-tab-card {
        flex: 1 1 auto !important;
        width: 100%;
        padding: 12px 14px;
    }

    /* Section Header & Bento Cards Mobile */
    .section-group-header {
        margin: 16px 0 10px;
        gap: 8px;
    }

    .section-group-title {
        font-size: 14px;
        line-height: 1.35;
        word-break: break-word;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bento-card {
        padding: 14px;
        overflow: hidden;
    }

    .bento-header {
        gap: 10px;
        padding-bottom: 11px;
    }

    .bento-icon-box {
        width: 42px;
        height: 42px;
    }

    .bento-title {
        font-size: 15px;
        word-break: break-word;
    }

    .bento-subtitle {
        font-size: 11.5px;
        word-break: break-word;
    }

    .bento-thread-item {
        padding: 8px 10px;
        gap: 8px;
        max-width: 100%;
    }

    .bento-thread-left {
        min-width: 0;
        flex: 1 1 180px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .bento-thread-name {
        font-size: 12.5px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    /* Badges & Pills on Mobile */
    .role-badge {
        font-size: 9.5px;
        padding: 2px 7px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .prefix-pill {
        font-size: 10px;
        padding: 2px 8px;
        flex-shrink: 0;
    }

    /* Glass Panels & Shoutbox Mobile */
    .glass-panel {
        padding: 14px;
        overflow: hidden;
    }

    .panel-title {
        font-size: 13px;
        word-break: break-word;
    }

    .shout-form {
        flex-direction: column;
    }

    .shout-form .neon-btn {
        width: 100%;
    }

    /* Post Cards & Thread View Mobile */
    .post-author-panel {
        padding: 12px;
    }

    .post-avatar {
        width: 62px;
        height: 62px;
    }

    .post-media-gallery {
        grid-template-columns: 1fr;
    }

    .post-media-item video,
    .post-media-item iframe {
        height: 210px;
    }

    /* Bio Profile Mobile */
    .bio-profile-banner {
        height: 135px;
    }

    .bio-profile-body {
        padding: 0 14px 16px;
    }

    .bio-avatar-row {
        margin-top: -38px;
        gap: 10px;
    }

    .bio-main-avatar {
        width: 78px;
        height: 78px;
    }

    /* Floating Music Player Mobile */
    .floating-music-player {
        padding: 9px 11px;
        gap: 8px;
        bottom: 8px;
        width: calc(100vw - 14px);
        border-radius: 14px;
    }

    .player-disc-wrap, .player-disc {
        width: 34px;
        height: 34px;
    }

    .player-track-title {
        font-size: 11px;
    }

    .player-track-artist {
        display: none;
    }

    .player-volume-wrap {
        display: none;
    }

    .player-controls {
        gap: 4px;
        flex-shrink: 0;
    }

    .player-ctrl-btn {
        width: 29px;
        height: 29px;
        border-radius: 7px;
    }

    .player-ctrl-btn.play-main {
        width: 33px;
        height: 33px;
    }

    /* Modals & Permission Grids Mobile */
    .modal-backdrop {
        padding: 8px;
        align-items: flex-end;
    }

    .modal-window {
        padding: 15px;
        max-height: 92vh;
        border-radius: 16px;
        width: 100%;
    }

    .perm-grid {
        grid-template-columns: 1fr;
    }

    .neon-btn {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    .staff-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   PRESTIGE STAFF HIERARCHY VIEW (GROUPED BY ROLE PRIORITY)
   ========================================================================== */
.staff-tier-block {
    margin-bottom: 24px;
}

.staff-tier-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(6, 13, 28, 0.92) 0%, rgba(6, 13, 28, 0.35) 100%);
    border-left: 3.5px solid var(--tier-color, var(--neon-cyan));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-tier-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--tier-color, var(--neon-cyan)), transparent);
    opacity: 0.35;
}

.staff-tier-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.staff-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.staff-pro-card {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(8, 15, 32, 0.94) 0%, rgba(4, 9, 20, 0.96) 100%);
    border: 1px solid rgba(0, 240, 255, 0.22);
    padding: 18px 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.staff-pro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--staff-color, var(--neon-cyan)), transparent 85%);
    box-shadow: 0 0 14px var(--staff-color, var(--neon-cyan));
}

.staff-pro-card:hover {
    transform: translateY(-4px);
    border-color: var(--staff-color, var(--neon-cyan));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.72), 0 0 22px rgba(0, 240, 255, 0.22);
}

.staff-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.staff-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--staff-color, var(--neon-cyan));
    box-shadow: 0 0 16px var(--staff-glow, rgba(0, 240, 255, 0.4));
    background: #040814;
}

.staff-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #050a18;
    box-shadow: 0 0 8px #10b981;
}

.staff-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

/* ==========================================================================
   17. SUBSECTIONS, RICH TEXT TOOLBAR & FA INLINE PILLS
   ========================================================================== */
.bento-subsections-wrap {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.bento-subsections-label {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--neon-cyan);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.bento-subsections-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sub-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 9px;
    background: rgba(12, 22, 46, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-chip:hover {
    background: rgba(37, 99, 235, 0.22);
    border-color: var(--neon-cyan);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.16);
}

.sub-chip-count {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.12);
    color: var(--neon-cyan);
    font-size: 10px;
    font-weight: 800;
}

.subsections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.subsection-card {
    position: relative;
    background: linear-gradient(155deg, rgba(11, 20, 44, 0.92), rgba(6, 12, 28, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.subsection-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 240, 255, 0.15);
}

/* Rich Editor Formatting Toolbar */
.rich-format-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(6, 12, 26, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.rich-format-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.format-mini-btn {
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.format-mini-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: var(--neon-cyan);
    color: #fff;
}

.format-fa-btn {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.35);
    color: var(--neon-cyan);
}

.color-swatch-btn {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch-btn:hover {
    transform: scale(1.18);
    border-color: #ffffff;
}

.color-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.color-picker-chip input[type="color"] {
    width: 18px;
    height: 18px;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

/* Inline FA Mention Pill inside Posts */
.fa-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px 2px 4px;
    margin: 0 2px;
    border-radius: 999px;
    background: rgba(15, 28, 60, 0.9);
    border: 1px solid var(--fa-color, #00f0ff);
    box-shadow: 0 0 12px var(--fa-glow, rgba(0, 240, 255, 0.25));
    color: #ffffff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.fa-inline-pill:hover {
    transform: translateY(-1px);
    background: rgba(30, 58, 138, 0.65);
    box-shadow: 0 0 18px var(--fa-glow, rgba(0, 240, 255, 0.45));
}

.fa-inline-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--fa-color, #00f0ff);
}

.fa-inline-tag {
    font-size: 9.5px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.18);
    color: var(--neon-cyan);
    letter-spacing: 0.05em;
}

.fa-inline-name {
    color: #f8fafc;
    font-weight: 700;
}

.fa-author-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.post-quote-box {
    margin: 10px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--neon-cyan);
    background: rgba(15, 25, 50, 0.65);
    border-radius: 0 12px 12px 0;
    color: #cbd5e1;
    font-style: italic;
}

.post-spoiler-box {
    margin: 10px 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    background: rgba(8, 15, 32, 0.8);
    overflow: hidden;
}

.post-spoiler-box summary {
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--neon-cyan);
    background: rgba(59, 130, 246, 0.1);
    user-select: none;
}

.post-spoiler-body {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
