/*
Theme Name: U4EA Gaming Community
Theme URI: https://www.u4ealounge.com
Author: -U4EA- Community
Author URI: https://www.u4ealounge.com
Description: A custom homepage theme for the -U4EA- online gaming community. Dark, neon-accented design with animated hero, game screenshot slider, TeamSpeak section and more.
Version: 2.9.5
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: u4ea
Domain Path: /languages
Tags: gaming, dark, custom-menu, custom-logo, full-width-template, one-page
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --neon-green: #00ff88;
  --neon-blue: #00d4ff;
  --dark: #080c10;
  --darker: #050709;
  --card: #0d1520;
  --accent: #ff4b6e;
  --text: #c8d8e8;
  --mid: #1a2a3a;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
  height: 100%;
}

/* Sticky footer — page wrapper stretches full viewport height,
   #content flexes to fill space, footer always sits at the bottom */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#content {
  flex: 1 0 auto;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 3px; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* Global keyboard focus indicator — applies to any input/textarea/select
   that doesn't already define its own :focus style. Uses :focus-visible so
   mouse clicks don't show the ring. Per-component rules take precedence. */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
/* ═══════════════════════════════════════════════════════════════════
   HEADER + NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */

#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    height: 64px;
    background: rgba(8,12,16,0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,255,136,0.12);
}

/* Logo — absolute left so nav can truly centre */
.site-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0,255,136,0.45);
    letter-spacing: 2px;
    text-decoration: none;
    line-height: 1;
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}
.site-logo img { height: 36px; width: auto; display: block; }

/* Centre nav — takes no flex space, just centres its content */
#site-navigation {
    display: flex;
    align-items: center;
    gap: .25rem;
    justify-content: center;
    pointer-events: auto;
}

/* Top-level dropdown wrapper */
.nav-item { position: relative; }

.nav-top-link,
.nav-dropdown-trigger {
    background: none;
    border: none;
    color: #9ab8c8;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: .45rem .75rem;
    border-radius: 6px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s, background .2s;
    display: flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
}
.nav-top-link:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown.open > .nav-dropdown-trigger {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.nav-caret {
    font-size: .55rem;
    transition: transform .2s;
    display: inline-block;
}
.nav-dropdown.open > .nav-dropdown-trigger .nav-caret { transform: rotate(180deg); }

/* Dropdown panel */
.nav-drop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: rgba(10,16,22,0.98);
    border: 1px solid rgba(0,255,136,0.14);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    padding: .4rem 0;
    list-style: none;
    margin: 0;
    z-index: 1100;
    backdrop-filter: blur(16px);
    animation: dropIn .15s ease;
}
.nav-dropdown.open > .nav-drop { display: block; }
.nav-drop--right { left: auto; right: 0; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-drop-header {
    padding: .5rem 1rem .35rem;
    color: #3a6a8a;
    font-size: .62rem;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: .25rem;
}
.nav-drop-divider {
    height: 1px;
    background: rgba(255,255,255,.07);
    margin: .3rem 0;
}
.nav-drop li a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1rem;
    color: #9ab8c8;
    text-decoration: none;
    font-size: .77rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-drop li a:hover,
.nav-drop li a.active {
    background: rgba(0,255,136,.07);
    color: #00ff88;
}
.nav-drop li a.nav-drop-logout:hover { color: #ff4b6e; background: rgba(255,75,110,.07); }
.nav-drop-icon { font-size: .9rem; flex-shrink: 0; }
.nav-drop-badge {
    margin-left: auto;
    background: #00ff88;
    color: #050810;
    font-size: .52rem;
    font-weight: 800;
    border-radius: 10px;
    padding: .05rem .35rem;
    min-width: 18px;
    text-align: center;
}

/* Join Us CTA */
.nav-cta-btn {
    background: var(--neon-green);
    color: #050810 !important;
    font-family: 'Orbitron', monospace;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .45rem 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: box-shadow .25s, transform .18s;
    white-space: nowrap;
    margin-left: .4rem;
}
.nav-cta-btn:hover {
    box-shadow: 0 0 22px rgba(0,255,136,.5);
    transform: translateY(-1px);
}

/* Right user area — absolute right so nav stays truly centred */
.nav-user-area {
    display: flex;
    align-items: center;
    gap: .5rem;
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Inbox icon button */
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0,212,255,.06);
    border: 1px solid rgba(0,212,255,.18);
    color: #5a8aaa;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.nav-icon-btn:hover { background: rgba(0,212,255,.14); border-color: rgba(0,212,255,.4); color: #fff; }
.nav-inbox-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #00ff88;
    color: #050810;
    font-size: .48rem;
    font-weight: 900;
    border-radius: 8px;
    padding: 1px 4px;
    min-width: 14px;
    text-align: center;
    line-height: 1.4;
}

/* Avatar dropdown trigger */
.nav-avatar-trigger {
    background: none;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .4rem .2rem .2rem;
    transition: border-color .2s, background .2s;
}
.nav-avatar-trigger:hover,
.nav-avatar-wrap.open > .nav-avatar-trigger {
    border-color: rgba(0,255,136,.3);
    background: rgba(0,255,136,.05);
}
.nav-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.nav-avatar-trigger .nav-caret { color: #5a8aaa; font-size: .52rem; }

/* Auth buttons (logged out) */
.nav-auth-btn {
    font-family: 'Orbitron', monospace;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: .35rem .75rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.nav-login {
    color: #00d4ff;
    border: 1px solid rgba(0,212,255,.3);
    background: rgba(0,212,255,.06);
}
.nav-login:hover { background: rgba(0,212,255,.15); border-color: #00d4ff; color: #fff; }
.nav-register {
    color: #080c10;
    background: #00ff88;
    border: 1px solid #00ff88;
}
.nav-register:hover { background: #00d4ff; border-color: #00d4ff; }

/* Mobile hamburger — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--neon-green);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile full-screen overlay ─────────────────────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5,8,12,0.96);
    backdrop-filter: blur(20px);
    overflow-y: auto;
}
.mobile-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
body.nav-overlay-open { overflow: hidden; }

.mobile-overlay-inner {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem 1.5rem 3rem;
    position: relative;
}

.mobile-overlay-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #9ab8c8;
    font-size: 1.4rem;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .2s, color .2s;
    z-index: 2001;
}
.mobile-overlay-close:hover { background: rgba(255,75,110,.15); color: #ff4b6e; }

/* User bar in overlay */
.mobile-user-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0 1.5rem;
    border-bottom: 1px solid rgba(0,255,136,.1);
    margin-bottom: 1.5rem;
    margin-top: .5rem;
}
.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,255,136,.25);
}
.mobile-user-name {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .25rem;
}
.mobile-user-link { font-size: .68rem; color: #3a8a6a; text-decoration: none; }
.mobile-user-link:hover { color: #00ff88; }

.mobile-auth-btns {
    display: flex;
    gap: .75rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,255,136,.1);
    margin-bottom: 1.5rem;
}

/* Mobile nav groups */
.mobile-nav-group {
    margin-bottom: 1.6rem;
}
.mobile-nav-group-label {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2a5a4a;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(0,255,136,.07);
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .5rem;
    color: #9ab8c8;
    text-decoration: none;
    font-size: .9rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { background: rgba(0,255,136,.07); color: #00ff88; }
.mobile-nav-logout:hover { background: rgba(255,75,110,.08); color: #ff4b6e; }
.mobile-nav-badge {
    margin-left: auto;
    background: #00ff88;
    color: #050810;
    font-size: .52rem;
    font-weight: 900;
    border-radius: 8px;
    padding: .05rem .35rem;
    min-width: 18px;
    text-align: center;
}
.mobile-cta-btn {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    padding: .8rem;
    background: var(--neon-green);
    color: #050810;
    font-family: 'Orbitron', monospace;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow .25s;
}
.mobile-cta-btn:hover { box-shadow: 0 0 24px rgba(0,255,136,.45); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    #site-header { padding: 0 1.2rem; }
    .site-logo { left: 1.2rem; }
    /* Shrink logo so it doesn't reach the nav buttons */
    .site-logo img { height: 28px; max-width: calc(100vw - 130px); object-fit: contain; }
    .nav-user-area { right: 1.2rem; gap: .75rem; }
    #site-navigation { display: none; }
    .nav-cta-btn { display: none; }
    .nav-icon-btn { display: none; }
    .nav-avatar-wrap { display: none; }
    .nav-hamburger { display: flex; }
    .nav-auth-btn { display: none; }
    /* Notification bell — ensure it's a proper touch target */
    .u4ea-notif-bell { width: 40px; height: 40px; }
}
/* Notification dropdown — prevent overflow on narrow phones */
@media (max-width: 440px) {
    .u4ea-notif-dropdown {
        position: fixed !important;
        top: 68px !important;
        left: .75rem !important;
        right: .75rem !important;
        width: auto !important;
    }
}
@media (max-width: 540px) {
    .mobile-overlay-inner { padding: 1rem 1rem 3rem; }
}

/* WP admin bar offset */
.admin-bar #site-header { top: 32px; }
.admin-bar .mobile-overlay { top: 32px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  display: inline-block;
  background: var(--neon-green);
  color: var(--dark);
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
  color: var(--dark);
}

.btn-secondary {
  display: inline-block;
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--neon-blue);
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* .entry-content a sets color:neon-green (specificity 0,1,1) which beats
   .btn-primary alone (0,1,0), making button text invisible on pages that
   use the entry-content container (e.g. 404). Override with higher
   specificity to restore correct button colours in that context. */
.entry-content .btn-primary,
.entry-content .btn-primary:visited {
  color: var(--dark);
  text-decoration: none;
}
.entry-content .btn-secondary,
.entry-content .btn-secondary:visited {
  color: var(--neon-blue);
  text-decoration: none;
}

/* =========================================================
   SHARED SECTION STYLES
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 2rem;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--neon-green);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

/* =========================================================
   SCROLL REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   HERO SECTION
   ========================================================= */
/* =========================================================
   HERO MEMBER COUNT
   ========================================================= */
.hero-member-count {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00ff88;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.0s forwards;
}
.hero-member-count-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, text-shadow 0.2s;
}
.hero-member-count:has(.hero-member-count-link:hover) {
  border-color: rgba(0, 212, 255, 0.8);
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}
.hero-member-num {
  color: #00d4ff;
  font-weight: 700;
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #0a1f2e 0%, var(--dark) 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  animation-play-state: paused; /* JS resumes when hero is in viewport */
}
.hero-grid.is-animating { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .hero-grid, .hero-grid.is-animating { animation: none; }
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to   { transform: translateY(60px); }
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title .line1 { color: #fff;              display: block; }
.hero-title .line2 {
  color: var(--neon-green);
  display: block;
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

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

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #7a8a9a;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--neon-green));
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* =========================================================
   GAMES SLIDER SECTION
   ========================================================= */
.games-section {
  background: var(--darker);
  overflow: hidden;
}

.games-header {
  text-align: center;
  margin-bottom: 3rem;
}

.games-header p {
  color: #6a7a8a;
  font-size: 0.9rem;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  flex: 0 0 340px;
  height: 220px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: border-color 0.3s, transform 0.3s;
  display: block;          /* works whether div or <a> */
  text-decoration: none;   /* strip link underline when <a> */
}
.slide:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-4px);
}

/* Slide background colours (replace with real screenshots via WP media) */
.game-cod  { background: linear-gradient(135deg, #1a0a0a 0%, #3d1515 40%, #1a0808 100%); }
.game-gta  { background: linear-gradient(135deg, #0a1a0a 0%, #1a3d1a 40%, #0d260d 100%); }
.game-dayz { background: linear-gradient(135deg, #0a120a 0%, #1e2a15 40%, #0c1a0c 100%); }
.game-iron { background: linear-gradient(135deg, #0a0a1a 0%, #15153d 40%, #0a0a1a 100%); }
.game-misc { background: linear-gradient(135deg, #1a0a1a 0%, #3d153d 40%, #1a0a1a 100%); }

/* If a real image is used as background */
.slide[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  z-index: 1;
}

.slide-game {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.slide-meta {
  font-size: 0.75rem;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: transparent;
  color: var(--neon-green);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.slider-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a3a4a;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  width: 20px;
  border-radius: 3px;
}

/* Gallery / Server browser links */
.gallery-link,
.server-browser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  transition: all 0.3s;
  text-transform: uppercase;
  text-decoration: none;
}

.gallery-link {
  color: var(--neon-blue);
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.gallery-link:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
  color: var(--neon-blue);
}

.server-browser-link {
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.server-browser-link:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
}

.gallery-arrow { transition: transform 0.3s; display: inline-block; }
.gallery-link:hover .gallery-arrow,
.server-browser-link:hover .gallery-arrow { transform: translateX(4px); }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-section {
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

.feature-chip {
  background: var(--card);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.3s;
}
.feature-chip:hover { border-color: rgba(0, 255, 136, 0.4); }
.chip-icon { font-size: 1.1rem; }

.game-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.game-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.game-tag:hover { transform: translateY(-3px) scale(1.05); }

.tag-green { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25); color: var(--neon-green); }
.tag-blue  { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.25); color: var(--neon-blue); }
.tag-red   { background: rgba(255,75,110,0.08); border: 1px solid rgba(255,75,110,0.25); color: var(--accent); }

/* =========================================================
   TEAMSPEAK SECTION
   ========================================================= */
.ts-section {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 50%, #050a0f 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ts-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.ts-icon-wrap {
  width: 100px;
  height: 100px;
  background: var(--card);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.ts-desc {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  color: var(--text);
  font-size: 1rem;
}

.ts-server-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  color: var(--neon-blue);
}

.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: liveBlink 1.5s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}

.ts-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  text-align: left;
}

.ts-step {
  flex: 0 1 200px;
  background: var(--card);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.ts-step:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
}

.ts-step-num {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0, 212, 255, 0.2);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.ts-step-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.ts-step-text {
  font-size: 0.82rem;
  color: #6a7a8a;
  line-height: 1.6;
}

/* =========================================================
   VIBE / RULES SECTION
   ========================================================= */
.vibe-section {
  background: var(--darker);
}

.vibe-section > .container > div:first-child {
  text-align: center;
}

.vibe-section > .container > div:first-child p:last-child {
  color: #6a7a8a;
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.vibe-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.vibe-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--neon-green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.vibe-card:hover::before { opacity: 1; }
.vibe-card:hover {
  border-color: rgba(0, 255, 136, 0.15);
  transform: translateY(-4px);
}

.vibe-emoji { font-size: 3.33rem; margin-bottom: 1rem; display: block; }

.vibe-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
}

.vibe-text { font-size: 0.88rem; color: #7a8a9a; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

#colophon {
    background: rgba(5,7,9,0.98);
    border-top: 1px solid rgba(0,255,136,0.1);
    padding: 3rem 2.5rem 2rem;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,255,136,0.07);
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: .6rem; }

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 14px rgba(0,255,136,0.35);
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: .72rem;
    color: #2a4a3a;
    line-height: 1.6;
    max-width: 260px;
    display: block;
}

.footer-copy {
    font-size: .62rem;
    color: #1a3a2a;
    margin-top: .4rem;
    line-height: 1.5;
}
.footer-privacy { color: #2a5a4a; text-decoration: none; transition: color .2s; }
.footer-privacy:hover { color: var(--neon-green); }

/* Nav columns */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.footer-col-heading {
    font-family: 'Orbitron', monospace;
    font-size: .48rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2a5a4a;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(0,255,136,.07);
}
.footer-col a {
    color: #3a6a5a;
    text-decoration: none;
    font-size: .75rem;
    padding: .28rem 0;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.footer-col a:hover { color: var(--neon-green); }

/* Inbox badge in footer */
.footer-inbox-badge {
    background: #00ff88;
    color: #050810;
    font-size: .48rem;
    font-weight: 900;
    border-radius: 8px;
    padding: .05rem .3rem;
    min-width: 16px;
    text-align: center;
}

@media (max-width: 860px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
    #colophon { padding: 2rem 1.2rem 1.5rem; }
    .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-brand { grid-column: 1; }
}

/* =========================================================
   WORDPRESS POST / PAGE CONTENT (inner pages)
   ========================================================= */
.site-main {
  padding-top: 80px; /* offset for fixed nav */
}

.entry-content {
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 2rem;
  color: var(--text);
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Orbitron', monospace;
  color: #fff;
  margin: 2rem 0 1rem;
}

.entry-content p  { margin-bottom: 1.2rem; }
.entry-content a  { color: var(--neon-green); }
.entry-content a:hover { text-decoration: underline; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

/* WP admin bar offset */
.admin-bar #site-header { top: 32px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 960px) {
  #site-header { padding: 1rem 1.5rem; }

  #primary-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 16, 0.98);
    border-bottom: 1px solid rgba(0,255,136,0.15);
    padding: 1.5rem;
    gap: 1.2rem;
  }
  #primary-menu.is-open { display: flex; }

  .menu-toggle { display: block; }

  .about-features { grid-template-columns: 1fr; }

  .ts-steps { flex-direction: column; align-items: center; }
  .ts-step { flex: 0 0 auto; width: 100%; max-width: 340px; }

  section { padding: 4rem 1.5rem; }
}

@media (max-width: 768px) {
  .hero { min-height: 75vh; }
}
@media (max-width: 480px) {
  .hero { min-height: 65vh; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .slide { flex: 0 0 280px; }
}

/* =========================================================
   GALLERY PAGE
   ========================================================= */
.gallery-page { padding-top: 80px; }

.gallery-page-header {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 50%, #050a0f 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,255,136,0.1);
  position: relative;
  overflow: hidden;
}
.gallery-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,255,136,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.gallery-intro {
  color: #6a7a8a;
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.gallery-container { padding: 3rem 1.5rem 5rem; }

/* Upload panel */
.gallery-upload-panel {
  margin-bottom: 2.5rem;
  background: linear-gradient(160deg, #0a1a10 0%, #091408 100%);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 10px;
  overflow: hidden;
}

.upload-panel-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  user-select: none;
  transition: background 0.2s;
}
.upload-panel-toggle:hover { background: rgba(0,255,136,0.04); }
.toggle-arrow { margin-left: auto; font-size: 0.7rem; transition: transform 0.3s; }
.toggle-arrow.open { transform: rotate(180deg); }

.upload-panel-body {
  padding: 1.5rem;
  border-top: 1px solid rgba(0,255,136,0.08);
}

.upload-msg {
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
}
.upload-success { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25); color: var(--neon-green); }
.upload-error   { background: rgba(255,75,110,0.08); border: 1px solid rgba(255,75,110,0.25); color: var(--accent); }

.upload-form { display: flex; flex-direction: column; gap: 1.2rem; }
.upload-field { display: flex; flex-direction: column; gap: 0.4rem; }
.upload-field label { font-size: 0.85rem; font-weight: 600; color: #aabbc8; }
.upload-field .req { color: var(--neon-green); font-size: 0.75rem; }
.upload-field input[type="text"] {
  background: var(--dark);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.upload-field input[type="text"]:focus {
  outline: none;
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.06);
}

.file-drop-zone {
  border: 2px dashed rgba(0,255,136,0.2);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: rgba(0,255,136,0.5);
  background: rgba(0,255,136,0.03);
}
.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.drop-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.file-drop-zone p { color: #aabbc8; font-size: 0.88rem; }
.drop-sub { color: #4a7a5a; font-size: 0.78rem; margin-top: 0.3rem; }

.image-preview-wrap {
  margin-top: 1rem;
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.image-preview-wrap img {
  max-height: 200px;
  border-radius: 6px;
  border: 1px solid rgba(0,255,136,0.2);
}
.clear-preview {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(255,75,110,0.8);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.upload-note { font-size: 0.78rem; color: #4a7a5a; }

.gallery-login-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(160deg, #0a1a10 0%, #091408 100%);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: #7a9a8a;
}
.gallery-login-notice a { color: var(--neon-green); }
.gallery-login-notice span { font-size: 1.4rem; }

/* Gallery grid — 4 columns */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.gallery-item {
  background: linear-gradient(160deg, #0a1a10 0%, #091408 100%);
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.gallery-item:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-3px);
}

.gallery-thumb-link { display: block; cursor: pointer; }
.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #091408;
  max-width: 350px;
  max-height: 350px;
  margin: 0 auto;
  width: 100%;
}
.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.gallery-item:hover .gallery-thumb-img { transform: scale(1.06); }
.gallery-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}
.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-thumb-overlay { opacity: 1; }
.gallery-view-icon { font-size: 1.8rem; }

.gallery-item-info {
  padding: 0.7rem 0.8rem 0.5rem;
  flex: 1;
}
.gallery-item-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c8d8e8;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-item-caption {
  font-size: 0.75rem;
  color: #7a9a8a;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-item-meta {
  font-size: 0.7rem;
  color: #3a6a4a;
}

/* Vote buttons */
.gallery-item-votes {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.vote-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.2s, color 0.2s;
  font-family: 'Exo 2', sans-serif;
}
.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vote-up   { color: #5a8a6a;  border-right: 1px solid rgba(255,255,255,0.04); }
.vote-down { color: #8a5a6a; }
.vote-up:hover:not(:disabled)   { background: rgba(0,255,136,0.08); color: var(--neon-green); }
.vote-down:hover:not(:disabled) { background: rgba(255,75,110,0.08); color: var(--accent); }
.vote-up.voted   { color: var(--neon-green); background: rgba(0,255,136,0.06); }
.vote-down.voted { color: var(--accent);     background: rgba(255,75,110,0.06); }
.vote-count { min-width: 1ch; }

/* Gallery pagination */
.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(0,255,136,0.2);
  color: var(--text);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.page-btn:hover, .page-btn.active {
  background: var(--neon-green);
  color: var(--dark);
  border-color: var(--neon-green);
}

.gallery-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #4a6a5a;
}
.gallery-empty-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* Responsive gallery grid (legacy flat grid kept for fallback) */
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 750px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: 1fr; } }

/* ── Album count summary line ─────────────────────────────────────────────── */
.gallery-album-count {
  font-size: 0.8rem;
  color: #4a7a5a;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

/* ── Album grid ───────────────────────────────────────────────────────────── */
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Album card */
.gallery-album-card {
  background: linear-gradient(160deg, #0a1a10 0%, #091408 100%);
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none;
}
.gallery-album-card:hover,
.gallery-album-card:focus-visible {
  background: linear-gradient(160deg, #0d2015 0%, #0b1a0c 100%);
  border-color: rgba(0,255,136,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,136,0.1);
}
.gallery-album-card:focus-visible {
  outline: 2px solid rgba(0,255,136,0.5);
  outline-offset: 2px;
}

/* Cover image area — 16:9 */
.gallery-album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #091408;
}
.gallery-album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-album-card:hover .gallery-album-img { transform: scale(1.07); }

/* Dark hover overlay with play arrow */
.gallery-album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-album-card:hover  .gallery-album-overlay,
.gallery-album-card:focus-visible .gallery-album-overlay { opacity: 1; }
.gallery-album-overlay .gallery-view-icon {
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Shot count badge */
.gallery-album-badge {
  position: absolute;
  bottom: 0.55rem;
  right: 0.6rem;
  background: rgba(0,255,136,0.85);
  color: var(--dark);
  font-family: 'Orbitron', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
}

/* Album info row */
.gallery-album-info {
  padding: 0.75rem 0.9rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.gallery-album-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c8d8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.gallery-album-meta {
  font-size: 0.68rem;
  color: #3a6a4a;
  margin: 0;
}

/* Responsive album grid */
@media (max-width: 960px)  { .gallery-album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .gallery-album-grid { grid-template-columns: 1fr; } }

/* .gallery-album-card is now an <a> — strip default link styles */
a.gallery-album-card {
  text-decoration: none;
  color: inherit;
}

/* ── Back link ────────────────────────────────────────────────────────────── */
.gallery-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon-green);
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 0.9rem;
  transition: color 0.2s, opacity 0.2s;
}
.gallery-back-link:hover { color: #fff; opacity: 0.85; }

/* ── Album detail — hero image ────────────────────────────────────────────── */
.album-hero {
  margin-bottom: 2rem;
}
.album-hero-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #091408;
  line-height: 0;
}
.album-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
  transition: opacity 0.25s;
}
.album-hero-shot:hover .album-hero-img { opacity: 0.88; }

.album-hero-info {
  padding: 0.65rem 0 0;
}
.album-hero-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c8d8e8;
  margin: 0 0 0.2rem;
}
.album-hero-meta {
  font-size: 0.72rem;
  color: #4a7a5a;
  margin: 0;
}

/* ── Album detail — shots heading ─────────────────────────────────────────── */
.album-shots-heading {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4a8a6a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,255,136,0.1);
}

/* ── Album detail — shots grid ────────────────────────────────────────────── */
.album-shots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Individual shot card */
.album-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #091408;
  border: 1px solid rgba(0,255,136,0.1);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  outline: none;
}
.album-shot:hover,
.album-shot:focus-visible {
  border-color: rgba(0,255,136,0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 14px rgba(0,255,136,0.1);
}
.album-shot:focus-visible {
  outline: 2px solid rgba(0,255,136,0.5);
  outline-offset: 2px;
}
.album-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.album-shot:hover img { transform: scale(1.05); }

/* Hover overlay (dark + play icon) */
.album-shot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.album-shot:hover .album-shot-overlay,
.album-shot:focus-visible .album-shot-overlay { opacity: 1; }

/* Caption strip that slides up on hover */
.album-shot-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  padding: 1.5rem 0.6rem 0.5rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.album-shot:hover .album-shot-info,
.album-shot:focus-visible .album-shot-info { transform: translateY(0); }
.album-shot-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #c8d8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-shot-author {
  font-size: 0.6rem;
  color: rgba(200,220,200,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Video play button — centred overlay on video thumbnails ────────────── */
.album-shot-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(4, 10, 8, 0.72);
  border: 2px solid rgba(0, 255, 153, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.album-shot-play-icon {
  color: #00ff99;
  font-size: 1.3rem;
  line-height: 1;
  margin-left: 3px; /* optical centre for ▶ */
  transition: filter 0.2s;
}
/* Hover / focus: enlarge + glow (spec: scale 1.1, drop-shadow #00ff99) */
.album-shot.is-video:hover .album-shot-play-btn,
.album-shot.is-video:focus-visible .album-shot-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #00ff99;
  background: rgba(0, 255, 153, 0.12);
}
.album-shot.is-video:hover .album-shot-play-icon,
.album-shot.is-video:focus-visible .album-shot-play-icon {
  filter: drop-shadow(0 0 10px #00ff99);
}
/* Scale the thumbnail image slightly less aggressively for videos */
.album-shot.is-video:hover img { transform: scale(1.05); }

/* ── Server tag badge — top-right corner of thumbnail ───────────────────── */
.u4ea-server-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(4, 10, 8, 0.88);
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 4px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #00ff88;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Responsive shots grid */
@media (max-width: 960px) { .album-shots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .album-shots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .album-shots-grid { grid-template-columns: 1fr; } }

/* ── Lightbox album navigation bar ───────────────────────────────────────── */
.lightbox-album-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 92vw;
  margin-bottom: 0.5rem;
  pointer-events: none;
}
.lightbox-album-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--neon-green);
}
.lightbox-album-pos {
  font-size: 0.72rem;
  color: #5a8a6a;
  font-family: 'Exo 2', sans-serif;
}

/* ── Lightbox server bar ("Taken in: …") ────────────────────────────────── */
.lightbox-server-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 92vw;
  margin-top: 0.35rem;
  padding: 5px 12px;
  background: rgba(0, 12, 8, 0.72);
  border: 1px solid rgba(0, 255, 136, 0.28);
  border-radius: 6px;
  pointer-events: all;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-server-bar[hidden] { display: none !important; }
.lightbox-server-label {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5aaa7a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.lightbox-server-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00ff88;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.lightbox-server-name:hover { color: #00d4ff; text-decoration: underline; }

/* ── Lightbox gallery video player — HD 1280×720, neon glow ─────────────── */
.lightbox-video-wrap {
  /* Explicit width — not 100% — so it doesn't collapse to the iframe's
     intrinsic size when the flex-column parent has no set width. */
  width: min(1280px, 92vw);
  pointer-events: all;
  border: 2px solid #00ff99;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0,255,153,0.3),
              0 0 0 1px rgba(0,255,153,0.55),
              0 8px 40px rgba(0,0,0,0.75);
  overflow: hidden;
  /* Smooth resize when JS adjusts width for sub-720p MP4s */
  transition: width 0.25s ease;
}
.lightbox-video-wrap[hidden] { display: none !important; }

/* Standard fluid 16:9 container — children fill it via absolute positioning.
   No display:flex here; that breaks the absolute-fill trick for iframes. */
.lightbox-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16/9) {
  .lightbox-video-container { padding-top: 56.25%; height: 0; }
}

/* Both iframe and video fill the container absolutely — this is what forces
   YouTube (and other embeds) to occupy the full 1280px width. */
.lightbox-video-iframe,
.lightbox-video-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

/* MP4 small-video exception: scale-down centres native-size video
   without upscaling or blurring it to fill the 1280px box. */
.lightbox-video-el {
  object-fit: scale-down;
}

.lightbox-video-iframe[hidden],
.lightbox-video-el[hidden] { display: none !important; }

/* ── Add Video panel — reuses upload panel styles, minor overrides ────────── */
.gallery-video-panel { margin-top: .75rem; }
.upload-field-hint {
  font-size: .75rem;
  color: #4a7a6a;
  margin-top: .1rem;
}
.upload-msg.upload-info { color: #5aaa9a; font-size: .85rem; padding: .4rem 0; }

/* ── Lightbox prev / next arrow buttons ──────────────────────────────────── */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  background: rgba(8,12,16,0.7);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 8px;
  color: #c8d8e8;
  font-size: 2.8rem;
  line-height: 1;
  width: 3rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  pointer-events: all;
  user-select: none;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(0,255,136,0.12);
  border-color: rgba(0,255,136,0.5);
  color: var(--neon-green);
  outline: none;
}
.lightbox-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

/* [hidden] override fix — display:flex/grid on these elements beats the browser
   user-agent [hidden]{display:none} rule. Force it back with !important so
   vote/nav buttons NEVER show on non-gallery lightbox images (slider, profile
   avatars, forum post images). Only openAlbumAtIndex() removes [hidden]. */
.lightbox-votes[hidden],
.lightbox-album-bar[hidden],
.lightbox-nav[hidden] { display: none !important; }

/* ── In-lightbox vote buttons ────────────────────────────────────────────── */
.lightbox-votes {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.6rem;
  pointer-events: all;
}
.lightbox-votes .vote-btn {
  min-width: 80px;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

/* Combobox / datalist game input */
.game-combobox {
  background: var(--dark);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.3s;
}
.game-combobox:focus {
  outline: none;
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.06);
}

/* Upload form: server-tag dropdown (inherits same look as game combobox) */
.server-tag-select {
  background: var(--dark);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #c8d8e8;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.3s;
  cursor: pointer;
}
.server-tag-select:focus {
  outline: none;
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.06);
}
.server-tag-select option { background: #0c1810; }

/* ── Album detail page — left-align the header ───────────────────────────── */
.gallery-page-header .album-header-inner { text-align: left; }
.gallery-page-header .album-header-text  { text-align: left; }
.gallery-page-header .album-header-text .gallery-intro {
  text-align: left;
  margin: 0;
}

/* ── Album header two-column layout (title + Steam thumbnail) ────────────── */
.album-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.album-header-text {
  flex: 1;
  min-width: 0;
}
.album-synopsis {
  font-size: 0.88rem;
  color: rgba(200,220,240,0.72);
  line-height: 1.55;
  margin: 0.35rem 0 0.6rem;
  max-width: 55ch;
}
.album-synopsis[hidden] { display: none !important; }

/* Steam thumbnail — top-right, preserves 460:215 aspect ratio */
.album-header-steam {
  flex-shrink: 0;
  width: 220px;
}
.album-steam-thumb-link {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(102,192,244,0.3);
  box-shadow: 0 0 14px rgba(102,192,244,0.1);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.album-steam-thumb-link:hover {
  box-shadow: 0 0 22px rgba(102,192,244,0.25);
  border-color: rgba(102,192,244,0.55);
}
.album-steam-thumb-img {
  display: block;
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  object-position: center;
}
.album-steam-badge {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(20,30,40,0.88);
  color: #66c0f4;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.8px;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(102,192,244,0.35);
  pointer-events: none;
}
@media (max-width: 640px) {
  .album-header-inner { flex-direction: column-reverse; }
  .album-header-steam { width: 100%; max-width: 300px; }
}

/* ── Steam lookup field (upload form) ────────────────────────────────────── */
.steam-lookup-wrap { margin-top: 1rem; }
.steam-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.4rem;
}
.steam-id-input {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
  background: var(--dark);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.3s;
}
.steam-id-input:focus {
  outline: none;
  border-color: rgba(102,192,244,0.55);
  box-shadow: 0 0 0 3px rgba(102,192,244,0.07);
}
.steam-lookup-btn {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}
.steam-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  background: rgba(102,192,244,0.07);
  border: 1px solid rgba(102,192,244,0.18);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.steam-preview-bar[hidden] { display: none !important; }
.steam-preview-thumb {
  width: 80px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.steam-preview-name {
  font-size: 0.85rem;
  color: #c8e8ff;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
}

/* ── Admin/Mod Edit Panel ────────────────────────────────────────────────── */
.album-edit-panel {
  margin: 2rem 0 1rem;
  border: 1px solid rgba(255,165,0,0.2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20,12,0,0.4);
}
.album-edit-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffa500;
  user-select: none;
  border-bottom: 1px solid rgba(255,165,0,0.1);
  transition: background 0.2s;
}
.album-edit-toggle:hover { background: rgba(255,165,0,0.06); }
.album-edit-toggle .toggle-arrow { margin-left: auto; transition: transform 0.25s; }
.album-edit-toggle.is-open .toggle-arrow { transform: rotate(180deg); }
.album-edit-body { padding: 1.5rem 1.25rem; }
.album-edit-section { margin-bottom: 2rem; }
.album-edit-section:last-child { margin-bottom: 0; }
.album-edit-section-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffa500;
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,165,0,0.15);
}
.album-edit-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 0.75rem;
}
.album-edit-shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.album-edit-shot {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.album-edit-shot img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.album-edit-shot-info {
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.album-edit-shot-title {
  font-size: 0.65rem;
  color: #c8d8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-edit-shot-actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
/* Inline edit form inside each shot card */
.album-shot-edit-form {
  padding: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.shot-edit-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.album-shot-edit-form .album-edit-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
}
.shot-edit-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.shot-edit-status {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  min-height: 1em;
}
.album-edit-status {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  min-height: 1em;
  color: var(--neon-green);
}

/* ── Edit panel + upload panel — secondary buttons are orange (Lookup, Edit-shot) */
.album-edit-panel .btn-secondary,
.gallery-upload-panel .btn-secondary {
  border-color: rgba(255,140,0,0.45);
  color: #ff9a00;
  background: transparent;
}
.album-edit-panel .btn-secondary:hover,
.gallery-upload-panel .btn-secondary:hover {
  background: rgba(255,140,0,0.12);
  border-color: rgba(255,140,0,0.8);
  color: #ffb020;
}

/* ── Album edit panel — manual info fields ───────────────────────────────── */
.album-edit-field-row {
  margin-bottom: 1.25rem;
}
.album-edit-field-row > label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.album-edit-field-controls {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.album-edit-input {
  flex: 1;
  min-width: 160px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: #e0eaf4;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.album-edit-input:focus {
  border-color: rgba(0,255,136,0.5);
}
.album-edit-textarea {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: #e0eaf4;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.album-edit-textarea:focus {
  border-color: rgba(0,255,136,0.5);
}
.album-edit-cover-preview {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.album-edit-cover-preview img {
  max-width: 180px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  object-fit: cover;
}
.album-cover-file-label {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  color: #c8d8e8;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.album-cover-file-label:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Danger button */
.btn-danger {
  background: rgba(200,30,30,0.15);
  border: 1px solid rgba(220,50,50,0.4);
  color: #ff6060;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-danger:hover {
  background: rgba(200,30,30,0.3);
  border-color: rgba(220,50,50,0.7);
}
.btn-sm { padding: 0.28rem 0.55rem; font-size: 0.68rem; }

/* =========================================================
   SERVERS PAGE
   ========================================================= */
.servers-page { padding-top: 80px; }

.servers-page-header {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 50%, #050a0f 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,255,136,0.1);
  position: relative;
  overflow: hidden;
}
.servers-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,212,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.servers-intro {
  color: #7a8a9a;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.servers-intro a { color: var(--neon-blue); }
.servers-refresh-note { font-size: 0.78rem; color: #3a5a6a; }
.servers-live-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--neon-green);
  font-weight: 600;
  margin-left: 0.5rem;
}

.servers-container { padding: 3rem 1.5rem 5rem; }

.servers-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.12);
}

.servers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: auto;
  min-width: 600px; /* triggers horizontal scroll on the wrapper before content crushes */
}
/* Name column: let it take remaining space, wrap long labels */
.servers-table th:nth-child(1),
.servers-table td:nth-child(1) { min-width: 160px; }
/* Compact columns: size to content, don't wrap */
.servers-table th:nth-child(2),
.servers-table td:nth-child(2) { white-space: nowrap; }  /* Game */
.servers-table th:nth-child(3),
.servers-table td:nth-child(3) { white-space: nowrap; }  /* Players */
.servers-table th:nth-child(4),
.servers-table td:nth-child(4) { white-space: nowrap; }  /* Map */
.servers-table th:nth-child(5),
.servers-table td:nth-child(5) { white-space: nowrap; }  /* IP:Port */
.servers-table th:nth-child(6),
.servers-table td:nth-child(6) { white-space: nowrap; }  /* Connect */

.servers-table thead th {
  background: rgba(0,255,136,0.06);
  color: var(--neon-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,255,136,0.12);
  white-space: nowrap;
}

.server-row td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
  color: var(--text);
  transition: background 0.2s;
}
.server-row:hover td { background: rgba(0,255,136,0.03); }
.server-row:last-child td { border-bottom: none; }

.row-online  { background: rgba(0,255,136,0.02); }
.row-empty   { opacity: 0.7; }

.srv-name {
  word-break: break-word;
  overflow-wrap: break-word;
}
.srv-name a {
  color: #ddeeff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  word-break: break-word;
  overflow-wrap: break-word;
}
.srv-name a:hover { color: var(--neon-green); }

.srv-badge-live {
  display: inline-block;
  background: rgba(0,255,136,0.12);
  color: var(--neon-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: liveBlink 2s ease-in-out infinite;
}

/* "SERVER ONLINE" badge — shown in Players cell when 0 players are connected */
.srv-badge-online {
  display: inline-block;
  background: rgba(0,200,255,0.1);
  color: #00c8ff;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(0,200,255,0.25);
  white-space: nowrap;
}

.srv-badge-offline {
  display: inline-block;
  background: rgba(255,77,109,0.1);
  color: #ff4d6d;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(255,77,109,0.25);
  white-space: nowrap;
}

/* JOIN button — direct steam:// or fivem:// connect */
.connect-btn--join {
  background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,200,255,0.1));
  border-color: rgba(0,255,136,0.5);
  color: var(--neon-green);
}
.connect-btn--join:hover {
  background: linear-gradient(135deg, rgba(0,255,136,0.3), rgba(0,200,255,0.2));
  border-color: var(--neon-green);
  color: #fff;
}

.srv-game { color: #8a9aaa; }

.players-wrap { min-width: 80px; }
.players-text { font-weight: 700; display: block; margin-bottom: 0.3rem; }
.players-text.text-green { color: var(--neon-green); }
.player-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.player-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--neon-green), var(--neon-blue));
  border-radius: 2px;
  transition: width 0.8s ease;
}

.map-badge {
  background: rgba(0,212,255,0.07);
  color: var(--neon-blue);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.srv-ip code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #6a7a8a;
  background: rgba(255,255,255,0.03);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.connect-btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 4px;
  color: var(--neon-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  white-space: nowrap;
}
.connect-btn:hover {
  background: rgba(0,255,136,0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}


.servers-footer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #3a5a6a;
}
.servers-footer-note a { color: var(--neon-blue); }

.servers-error {
  text-align: center;
  padding: 4rem 2rem;
  color: #4a5a6a;
}
.servers-error a { color: var(--neon-green); }

/* ── Donation buttons ────────────────────────────────────────────────────── */
.u4ea-donate-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 .5rem;
}
.u4ea-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    background: linear-gradient(135deg, rgba(0,112,186,.15) 0%, rgba(0,56,118,.1) 100%);
    border: 1px solid rgba(0,150,220,.3);
    border-radius: 8px;
    color: #5bc8f5 !important;
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.u4ea-donate-btn:hover {
    background: linear-gradient(135deg, rgba(0,112,186,.28) 0%, rgba(0,56,118,.2) 100%);
    border-color: rgba(0,180,255,.5);
    color: #90deff !important;
    transform: translateY(-1px);
}
@media (max-width: 500px) {
    .u4ea-donate-row { flex-direction: column; }
    .u4ea-donate-btn { width: 100%; justify-content: center; }
}

/* =========================================================
   SLIDER LIGHTBOX
   ========================================================= */

/* Zoom hint icon on hover */
.slide-zoom-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}
.slide-lightbox:hover .slide-zoom-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox overlay */
.u4ea-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.u4ea-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Semi-transparent backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.94);
  cursor: pointer;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover,
.lightbox-close:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  outline: 2px solid rgba(0,212,255,0.6);
  outline-offset: 2px;
}

/* Inner content — sits above backdrop */
.lightbox-inner {
  position: relative;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  pointer-events: none; /* clicks on image don't close */
}

/* The full-size image */
.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
  display: block;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.u4ea-lightbox.is-open .lightbox-img {
  transform: scale(1);
}

/* Caption area */
.lightbox-caption-wrap {
  margin-top: 1rem;
  text-align: center;
  pointer-events: none;
}
.lightbox-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.lightbox-caption {
  font-size: 0.82rem;
  color: #7a8a9a;
}

/* ── Game iframe in lightbox ──────────────────────────────────────────── */
.lightbox-game-iframe {
  width: 90vw;
  height: 85vh;
  max-width: 1200px;
  max-height: 800px;
  border: 2px solid rgba(0,212,255,0.6);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 20px rgba(0,212,255,0.3), 0 8px 60px rgba(0,0,0,0.8);
  transform: scale(0.92);
  transition: transform 0.3s ease;
  pointer-events: all;
}
.u4ea-lightbox.is-open .lightbox-game-iframe:not([hidden]) {
  transform: scale(1);
}

/* ── Game Lightbox — Scoreboard Link ─────────────────────────────── */
.lightbox-game-links {
  text-align: center;
  padding: 10px 0 4px;
  pointer-events: all;
  position: relative;
  z-index: 10001;
}
.lightbox-game-links[hidden] {
  display: none !important;
}
.lightbox-scoreboard-link {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.5);
  border-radius: 6px;
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
}
.lightbox-scoreboard-link:hover {
  background: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  color: #fff;
  text-decoration: none;
}

/* ── Scoreboard Modal ──────────────────────────────────────────────── */
.u4ea-scoreboard {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-height: 600px;
  background: rgba(0, 10, 5, 0.95);
  border: 2px solid #00ff88;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 8px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  animation: u4ea-scoreboardSlideIn 0.3s ease-out;
  font-family: 'Courier New', monospace;
  color: #00ff88;
}

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

.u4ea-scoreboard[hidden] {
  display: none !important;
}

.u4ea-scoreboard-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.u4ea-scoreboard-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.u4ea-scoreboard-close {
  background: none;
  border: none;
  color: #00ff88;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.u4ea-scoreboard-close:hover {
  color: #00ff44;
}

.u4ea-scoreboard-content {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

.u4ea-scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.u4ea-scoreboard-table thead {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
}

.u4ea-scoreboard-table th {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  font-weight: bold;
}

.u4ea-scoreboard-table th.rank { width: 30px; text-align: center; }
.u4ea-scoreboard-table th.player { width: 140px; }
.u4ea-scoreboard-table th.time { width: 50px; text-align: right; }
.u4ea-scoreboard-table th.wave { width: 50px; text-align: center; }

.u4ea-scoreboard-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.u4ea-scoreboard-table td.rank {
  text-align: center;
  font-weight: bold;
  color: #ffcc00;
}

.u4ea-scoreboard-table td.time {
  text-align: right;
  font-weight: bold;
  color: #00ffcc;
}

.u4ea-scoreboard-table td.wave {
  text-align: center;
  color: #ff8800;
}

.u4ea-scoreboard-table tbody tr:hover {
  background: rgba(0, 255, 136, 0.05);
}

.u4ea-scoreboard-table td.loading {
  padding: 20px 8px;
  text-align: center;
  color: #666;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .u4ea-scoreboard {
    width: 90%;
    left: 5%;
    right: 5%;
    bottom: 10px;
    max-height: 400px;
  }
}

/* =========================================================
   MULTI-IMAGE UPLOAD META CARDS
   ========================================================= */
.meta-heading {
  font-size: 0.85rem;
  color: #7a8a9a;
  margin-bottom: 1rem;
  font-style: italic;
}

.meta-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  background: var(--dark);
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.meta-card-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-card-preview img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}

.meta-filename {
  font-size: 0.68rem;
  color: #4a6a7a;
  word-break: break-all;
  line-height: 1.3;
}

.meta-card-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (max-width: 480px) {
  .meta-card { grid-template-columns: 1fr; }
  .meta-card-preview img { width: 100%; height: 120px; }
}

/* Game label in gallery item */
.game-label { font-size: 0.75rem; }

/* Remove image button on meta cards */
.remove-image-btn {
  display: inline-block;
  margin-top: 0.4rem;
  background: rgba(255, 75, 110, 0.12);
  border: 1px solid rgba(255, 75, 110, 0.3);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'Exo 2', sans-serif;
}
.remove-image-btn:hover {
  background: rgba(255, 75, 110, 0.25);
  border-color: var(--accent);
}

/* Partial success message */
.upload-partial {
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.3);
  color: #ffb400;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

/* Error list for multi-file failures */
.upload-error-list {
  list-style: disc;
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

/* =========================================================
   FORUMS PAGE (bbPress)
   ========================================================= */

.forums-page { padding-top: 80px; }

.forums-page-header {
  background: linear-gradient(135deg, #050a0f 0%, #0a1520 50%, #050a0f 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,255,136,0.1);
  position: relative;
  overflow: hidden;
}
.forums-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,255,136,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.forums-intro {
  color: #6a7a8a;
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.forums-container {
  padding: 2.5rem 1.5rem 5rem;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.bbp-breadcrumb-wrap { margin-bottom: 1.5rem; }
.bbp-breadcrumb,
nav.bbp-breadcrumb {
  font-size: 0.78rem;
  color: #4a6a7a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.bbp-breadcrumb a { color: var(--neon-green); text-decoration: none; }
.bbp-breadcrumb a:hover { text-decoration: underline; }
.bbp-sep { color: #3a5a6a; }

/* ── Shared wrapper ────────────────────────────────────── */
#bbpress-forums,
.u4ea-bbp {
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
}

/* Kill ALL default bbPress table / white-box styles */
#bbpress-forums table,
#bbpress-forums thead,
#bbpress-forums tbody,
#bbpress-forums tfoot,
#bbpress-forums tr,
#bbpress-forums th,
#bbpress-forums td { display: block; background: transparent !important; border: none !important; }

/* ── Block label ───────────────────────────────────────── */
.bbp-block-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-green);
  margin-bottom: 1rem;
}

/* ── Forum list (index + sub-forums) ──────────────────── */
.bbp-forums-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bbp-forum-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid rgba(0,255,136,0.08);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  transition: border-color 0.3s, transform 0.2s;
}
.bbp-forum-item:hover {
  border-color: rgba(0,255,136,0.25);
  transform: translateY(-2px);
}
.bbp-subforum-item { padding: 0.9rem 1.2rem; background: rgba(13,21,32,0.6); }

.bbp-forum-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.bbp-forum-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.bbp-forum-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.bbp-forum-title a {
  color: #ddeeff;
  text-decoration: none;
  transition: color 0.2s;
}
.bbp-forum-title a:hover { color: var(--neon-green); }

.bbp-forum-description {
  font-size: 0.82rem;
  color: #6a7a8a;
  margin: 0;
  line-height: 1.5;
}

.bbp-forum-stats {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
  text-align: center;
}
.bbp-stat { display: flex; flex-direction: column; align-items: center; }
.bbp-stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-green);
  line-height: 1;
}
.bbp-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: #4a6a7a; margin-top: 0.15rem; }

.bbp-forum-lastpost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  min-width: 160px;
  text-align: right;
}
.bbp-lastpost-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #3a5a6a; margin-bottom: 0.2rem; }
.bbp-lastpost-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #aabbc8;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.bbp-lastpost-title:hover { color: var(--neon-green); }
.bbp-lastpost-meta { font-size: 0.72rem; color: #4a6a7a; margin-top: 0.15rem; }
.bbp-lastpost-meta a { color: var(--neon-blue); text-decoration: none; }
.bbp-lastpost-empty { font-size: 0.78rem; color: #3a5a6a; font-style: italic; }

/* ── Topic list header bar ─────────────────────────────── */
.bbp-topics-header {
  display: grid;
  grid-template-columns: 1fr 80px 180px;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon-green);
  border-bottom: 1px solid rgba(0,255,136,0.12);
  margin-bottom: 0.5rem;
}
.bbp-col-replies,
.bbp-col-last { text-align: center; }

/* ── Topics list ───────────────────────────────────────── */
.bbp-topics-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bbp-topic-item {
  display: grid;
  grid-template-columns: 1fr 80px 180px;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  transition: border-color 0.25s, transform 0.2s;
}
.bbp-topic-item:hover {
  border-color: rgba(0,255,136,0.2);
  transform: translateY(-1px);
}

.bbp-topic-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.bbp-topic-title a {
  color: #ddeeff;
  text-decoration: none;
  transition: color 0.2s;
}
.bbp-topic-title a:hover { color: var(--neon-green); }

.bbp-topic-meta {
  font-size: 0.72rem;
  color: #4a6a7a;
  margin: 0;
}
.bbp-topic-meta a { color: var(--neon-blue); text-decoration: none; }

.bbp-topic-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'Orbitron', monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.bbp-sticky { background: rgba(0,212,255,0.1); color: var(--neon-blue); border: 1px solid rgba(0,212,255,0.2); }
.bbp-closed { background: rgba(255,75,110,0.1); color: var(--accent);    border: 1px solid rgba(255,75,110,0.2); }

.bbp-topic-replies {
  text-align: center;
}
.bbp-reply-count {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-green);
}

.bbp-topic-lastpost {
  text-align: center;
  font-size: 0.75rem;
  color: #4a6a7a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.bbp-lastpost-time { color: #6a8a9a; }
.bbp-lastpost-by a { color: var(--neon-blue); text-decoration: none; }

/* ── Individual replies ────────────────────────────────── */
.bbp-replies-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bbp-reply-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.bbp-reply-item:hover { border-color: rgba(0,255,136,0.15); }

/* First reply (original post) slightly highlighted */
.bbp-reply-item:first-child {
  border-color: rgba(0,255,136,0.12);
}

.bbp-reply-author-col {
  background: rgba(0,0,0,0.25);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.bbp-reply-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(0,255,136,0.2);
  display: block;
}

.bbp-reply-author-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ddeeff;
  word-break: break-word;
}

.bbp-author-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-green);
  background: rgba(0,255,136,0.07);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.bbp-reply-body-col {
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bbp-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 0.6rem;
}

.bbp-reply-date a {
  font-size: 0.75rem;
  color: #4a6a7a;
  text-decoration: none;
}
.bbp-reply-date a:hover { color: var(--neon-green); }

.bbp-reply-admin-links {
  font-size: 0.72rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.bbp-reply-admin-links a {
  color: #4a6a7a;
  text-decoration: none;
  transition: color 0.2s;
}
.bbp-reply-admin-links a:hover { color: var(--neon-green); }

.bbp-reply-content {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.8;
}
.bbp-reply-content p { margin-bottom: 0.8rem; }
.bbp-reply-content p:last-child { margin-bottom: 0; }
.bbp-reply-content a { color: var(--neon-green); }
.bbp-reply-content code {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--neon-blue);
}
.bbp-reply-content blockquote {
  border-left: 3px solid var(--neon-green);
  margin: 0.8rem 0;
  padding: 0.5rem 1rem;
  background: rgba(0,255,136,0.04);
  color: #8a9aaa;
  border-radius: 0 6px 6px 0;
}

/* ── Forms (new topic / reply) ─────────────────────────── */
#new-post,
#bbp-your-profile {
  background: var(--card);
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 10px;
  padding: 1.8rem;
  margin: 2rem 0;
}

#new-post fieldset,
#bbp-your-profile fieldset { border: none; padding: 0; margin: 0 0 1.2rem; }

#new-post legend,
.bbp-form legend {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon-green);
  margin-bottom: 0.8rem;
  display: block;
}

#new-post label,
.bbp-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #aabbc8;
  margin-bottom: 0.4rem;
}

#new-post input[type="text"],
#new-post input[type="email"],
#new-post textarea,
.bbp-form input[type="text"],
.bbp-form input[type="email"],
.bbp-form textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
#new-post input:focus,
#new-post textarea:focus,
.bbp-form input:focus,
.bbp-form textarea:focus {
  outline: none;
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.06);
}

/* ── Live Preview — Write | Preview tabs ─────────────────────────────────── */
.u4ea-pv-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(0,255,136,0.15);
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.u4ea-pv-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #4a7a6a;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem 0.55rem;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}
.u4ea-pv-tab:hover { color: #00ff88; }
.u4ea-pv-tab-active {
    color: #00ff88;
    border-bottom-color: #00ff88;
}

/* Preview box — mirrors .bbp-form textarea exactly */
.u4ea-pv-box {
    width: 100%;
    min-height: 200px;
    max-height: 500px;
    background: var(--dark);
    border: 1px solid rgba(0,255,136,0.5);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.06);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #c8d8e8;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-y: auto;
    box-sizing: border-box;
    word-break: break-word;
}
.u4ea-pv-box .u4ea-pv-empty { color: #2a4a5a; font-style: italic; }

/* Inline */
.u4ea-pv-box strong { color: #fff; }
.u4ea-pv-box em     { color: #b0d0e0; font-style: italic; }
.u4ea-pv-box u      { text-decoration: underline; text-decoration-color: rgba(0,255,136,0.4); }
.u4ea-pv-box s      { color: #5a7a8a; }
.u4ea-pv-box a      { color: #00ff88; }
.u4ea-pv-box a:hover { text-decoration: underline; }
.u4ea-pv-box .u4ea-pv-mention { color: #00ff88; font-weight: 600; }

/* Blockquote */
.u4ea-pv-box blockquote.u4ea-pv-quote {
    border-left: 3px solid rgba(0,255,136,0.4);
    margin: 0.6rem 0;
    padding: 0.5rem 1rem;
    background: rgba(0,255,136,0.04);
    border-radius: 0 4px 4px 0;
    color: #8ab0c0;
}
.u4ea-pv-box blockquote.u4ea-pv-quote cite {
    display: block;
    font-size: 0.75rem;
    color: #00d4ff;
    font-style: normal;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

/* Code block */
.u4ea-pv-box pre.u4ea-pv-code {
    background: #06090f;
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}
.u4ea-pv-box pre.u4ea-pv-code code {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: #00d4ff;
    white-space: pre;
}

/* Lists */
.u4ea-pv-box ul.u4ea-pv-list,
.u4ea-pv-box ol.u4ea-pv-list { padding-left: 1.5rem; margin: 0.5rem 0; }
.u4ea-pv-box ul.u4ea-pv-list li,
.u4ea-pv-box ol.u4ea-pv-list li { margin-bottom: 0.25rem; }

/* Spoiler */
.u4ea-pv-box details.u4ea-pv-spoiler {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    margin: 0.5rem 0;
}
.u4ea-pv-box details.u4ea-pv-spoiler summary {
    cursor: pointer;
    color: #4a7a6a;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    user-select: none;
}
.u4ea-pv-box details.u4ea-pv-spoiler summary:hover { color: #00ff88; }
.u4ea-pv-box .u4ea-pv-spoiler-body { padding-top: 0.5rem; color: #8ab0c0; }

/* HR */
.u4ea-pv-box hr.u4ea-pv-hr { border: none; border-top: 1px solid rgba(0,255,136,0.15); margin: 0.75rem 0; }

/* YouTube iframe wrapper */
.u4ea-pv-box .u4ea-pv-yt-wrap { margin:0.5rem 0; border-radius:6px; overflow:hidden; background:#000; max-width:100%; }
/* YouTube placeholder (legacy) */
.u4ea-pv-box .u4ea-pv-yt {
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    font-size: 0.83rem;
    color: #00d4ff;
    margin: 0.4rem 0;
}
.u4ea-pv-box .u4ea-pv-yt a { color: #00d4ff; }
/* ── End Live Preview ────────────────────────────────────────────────────── */

#new-post .bbp-submit-wrapper,
.bbp-form .bbp-submit-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

#new-post input[type="submit"],
.bbp-form input[type="submit"],
.bbp-form button[type="submit"] {
  background: var(--neon-green);
  color: var(--dark);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
#new-post input[type="submit"]:hover,
.bbp-form input[type="submit"]:hover,
.bbp-form button[type="submit"]:hover {
  box-shadow: 0 0 20px rgba(0,255,136,0.4);
  transform: translateY(-1px);
}

/* ── Pagination ────────────────────────────────────────── */
.bbp-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.bbp-pagination a,
.bbp-pagination span.current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 5px;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(0,255,136,0.2);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
}
.bbp-pagination a:hover {
  background: rgba(0,255,136,0.08);
  border-color: var(--neon-green);
  color: var(--neon-green);
}
.bbp-pagination span.current {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--dark);
}

/* ── Empty state ───────────────────────────────────────── */
.bbp-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #4a5a6a;
}
.bbp-empty-state span { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ── Notices (success / error messages) ───────────────── */
.bbp-template-notice,
.u4ea-bbp .bbp-template-notice {
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.bbp-template-notice.info {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--neon-blue);
}
.bbp-template-notice.warning,
.bbp-template-notice.error {
  background: rgba(255,75,110,0.08);
  border: 1px solid rgba(255,75,110,0.25);
  color: var(--accent);
}

/* ── Sub-forum block ───────────────────────────────────── */
.bbp-subforums-block { margin-bottom: 2rem; }

/* ── New topic / reply toggle link ────────────────────── */
#bbp-new-topic,
#bbp-new-reply,
.bbp-reply-to-link {
  color: var(--neon-green);
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.bbp-reply-to-link:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .bbp-forum-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .bbp-forum-lastpost { align-items: flex-start; text-align: left; }
  .bbp-topics-header { display: none; }
  .bbp-topic-item { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .bbp-topic-lastpost { display: none; }
}

@media (max-width: 600px) {
  .bbp-reply-item { grid-template-columns: 1fr; }
  .bbp-reply-author-col {
    flex-direction: row;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.8rem 1.2rem;
  }
  .bbp-reply-avatar img { width: 36px !important; height: 36px !important; }
}

/* =========================================================
   AUTH PAGES (Login / Register)
   ========================================================= */

.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--dark);
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--card);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 14px;
  padding: 2.4rem 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.auth-logo a {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--neon-green);
  text-decoration: none;
  display: block;
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
}

.auth-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: #ddeeff;
  text-align: center;
  margin: 0 0 0.4rem;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: #5a7a8a;
  text-align: center;
  margin: 0 0 1.6rem;
  line-height: 1.5;
}

/* Notices */
.auth-notice {
  border-radius: 7px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.auth-notice--success {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  color: #00ff88;
}
.auth-notice--warn {
  background: rgba(255,200,0,0.07);
  border: 1px solid rgba(255,200,0,0.2);
  color: #ffc800;
}

/* Errors */
.auth-errors { margin-bottom: 1rem; }
.auth-error {
  font-size: 0.82rem;
  color: #ff4b6e;
  background: rgba(255,75,110,0.08);
  border: 1px solid rgba(255,75,110,0.2);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  margin: 0 0 0.4rem;
}

/* Form fields */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.3rem; }
.auth-field--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.auth-field label {
  font-family: 'Orbitron', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5a7a8a;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  color: #ddeeff;
  font-size: 0.9rem;
  font-family: 'Exo 2', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.auth-field input:focus {
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.06);
}
.auth-field-hint {
  font-size: 0.72rem;
  color: #3a5a6a;
}

/* Password toggle wrapper */
.auth-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-pw-wrap input { flex: 1; padding-right: 2.5rem; }
.auth-pw-toggle {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: #3a5a6a;
  padding: 0.2rem;
  transition: color 0.2s;
}
.auth-pw-toggle:hover { color: #00ff88; }

/* Password match indicator */
.auth-pw-match {
  font-size: 0.72rem;
  min-height: 1rem;
  transition: color 0.2s;
}
.auth-pw-match.match   { color: #00ff88; }
.auth-pw-match.nomatch { color: #ff4b6e; }

/* Password strength bar */
.auth-strength {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 1rem;
}
.auth-strength-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.auth-strength-label {
  font-size: 0.65rem;
  color: #5a7a8a;
  min-width: 3rem;
  text-align: right;
  font-family: 'Orbitron', monospace;
}

/* Checkbox */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #5a7a8a;
  cursor: pointer;
}
.auth-checkbox input[type="checkbox"] { accent-color: #00ff88; }

.auth-forgot {
  font-size: 0.78rem;
  color: #00d4ff;
  text-decoration: none;
}
.auth-forgot:hover { color: #00ff88; }

/* Submit button */
.auth-submit {
  background: rgba(0,255,136,0.12);
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 8px;
  color: #00ff88;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  margin-top: 0.4rem;
}
.auth-submit:hover {
  background: rgba(0,255,136,0.2);
  border-color: #00ff88;
  box-shadow: 0 0 18px rgba(0,255,136,0.15);
}
/* reCAPTCHA widget inside auth forms */
.auth-form .g-recaptcha,
.auth-form .agr-recaptcha-container {
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
}

/* Footer links */
.auth-footer-links {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: #3a5a6a;
}
.auth-footer-links a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
}
.auth-footer-links a:hover { color: #00ff88; }

/* ── Nav auth buttons ────────────────────────────────────── */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}
.nav-username {
  font-size: 0.72rem;
  color: #5a7a8a;
  font-family: 'Orbitron', monospace;
}
.nav-auth-btn {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-login {
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.06);
}
.nav-login:hover {
  background: rgba(0,212,255,0.15);
  border-color: #00d4ff;
  color: #fff;
}
.nav-register {
  color: #080c10;
  background: #00ff88;
  border: 1px solid #00ff88;
}
.nav-register:hover {
  background: #00d4ff;
  border-color: #00d4ff;
}
.nav-logout {
  color: #5a7a8a;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  font-size: 0.58rem;
}
.nav-logout:hover {
  color: #ff4b6e;
  border-color: rgba(255,75,110,0.4);
}

@media (max-width: 960px) {
  .nav-auth { margin: 0.5rem 0 0; }
  .nav-username { display: none; }
}

/* =========================================================
   NOTIFICATION BELL
   ========================================================= */

/* Wrapper — sits inline inside .nav-auth */
.u4ea-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Bell button */
.u4ea-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 8px;
  color: #5a7a8a;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.u4ea-notif-bell:hover {
  color: var(--neon-blue);
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.1);
}

/* Lit state — unread notifications present */
.u4ea-notif-bell.has-unread {
  color: var(--neon-green);
  border-color: rgba(0,255,136,0.5);
  background: rgba(0,255,136,0.08);
  box-shadow: 0 0 12px rgba(0,255,136,0.25);
  animation: u4ea-bell-pulse 2.5s ease-in-out infinite;
}
@keyframes u4ea-bell-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,255,136,0.25); }
  50%       { box-shadow: 0 0 24px rgba(0,255,136,0.55); }
}

/* Red count badge */
.u4ea-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
}

/* Dropdown panel */
.u4ea-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #0d1520;
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 10px;
  box-shadow: 0 14px 45px rgba(0,0,0,0.75), 0 0 30px rgba(0,255,136,0.05);
  z-index: 2000;
  overflow: hidden;
}

/* Dropdown header row */
.u4ea-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0,255,136,0.1);
}
.u4ea-notif-header > span {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-green);
}

/* "Clear all" button */
.u4ea-notif-clear-all {
  background: none;
  border: none;
  color: #5a7a8a;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.68rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.u4ea-notif-clear-all:hover { color: var(--accent); }

/* Scrollable notification list */
.u4ea-notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
}
.u4ea-notif-list::-webkit-scrollbar { width: 4px; }
.u4ea-notif-list::-webkit-scrollbar-track { background: transparent; }
.u4ea-notif-list::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.25); border-radius: 2px; }

/* Empty / loading state */
.u4ea-notif-empty {
  padding: 1.4rem 1rem;
  text-align: center;
  color: #3a5a6a;
  font-size: 0.78rem;
  font-style: italic;
}

/* Individual notification row */
.u4ea-notif-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.u4ea-notif-item:last-child { border-bottom: none; }
.u4ea-notif-item:hover { background: rgba(0,212,255,0.05); }

/* Unified row: content left, ✕ right */
.u4ea-notif-item-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0;
}
.u4ea-notif-pm-icon {
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0.75rem 0 0.75rem 1rem;
  margin-top: 0.05rem;
}

/* Clickable body area fills remaining width */
.u4ea-notif-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  text-decoration: none !important;
  color: inherit !important;
}
.u4ea-notif-pm .u4ea-notif-item-body { padding-left: 0; }

/* ✕ dismiss button — always on the right */
.u4ea-notif-dismiss {
  background: none;
  border: none;
  color: #3a5a6a;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.75rem 0.9rem 0.75rem 0.4rem;
  flex-shrink: 0;
  align-self: center;
  transition: color 0.15s;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.u4ea-notif-item:hover .u4ea-notif-dismiss { opacity: 1; }
.u4ea-notif-dismiss:hover { color: #ff4466; }

/* Keep old .u4ea-notif-link working for any cached renders */
.u4ea-notif-link {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.75rem 1rem;
  text-decoration: none !important;
  color: inherit !important;
}

/* Topic title */
.u4ea-notif-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Replier name + excerpt */
.u4ea-notif-meta {
  font-size: 0.71rem;
  color: #8aa0b0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.u4ea-notif-meta strong { color: #c8d8e8; }

/* Timestamp */
.u4ea-notif-time {
  font-size: 0.6rem;
  color: #3a5a6a;
  margin-top: 0.1rem;
}

/* Mobile: full-width dropdown */
@media (max-width: 480px) {
  .u4ea-notif-dropdown {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }
}

/* ── PM sender link ───────────────────────────────────────────────────────── */
.u4ea-notif-pm-sender {
  color: var(--neon-blue);
  text-decoration: none !important;
  font-weight: 600;
}
.u4ea-notif-pm-sender:hover { text-decoration: underline !important; }

/* ── PM compose modal ──────────────────────────────────────────────────────── */
#u4eaPMModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
#u4eaPMModal.open { display: block; }
.u4ea-pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.u4ea-pm-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: calc(100vw - 2rem);
  background: linear-gradient(160deg, #0a1520 0%, #08111c 100%);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.u4ea-pm-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  background: rgba(0,212,255,0.04);
}
.u4ea-pm-title {
  flex: 1;
  font-family: 'Orbitron', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-blue);
}
.u4ea-pm-close {
  background: none;
  border: none;
  color: #3a5a6a;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.u4ea-pm-close:hover { color: #ff4466; }
.u4ea-pm-to {
  margin: 0;
  padding: 0.6rem 1rem 0;
  font-size: 0.78rem;
  color: #6a8a9a;
}
.u4ea-pm-to strong { color: #c8d8e8; }
.u4ea-pm-textarea {
  margin: 0.5rem 1rem 0;
  background: rgba(0,212,255,0.03);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  color: #c0dce8;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.u4ea-pm-textarea:focus { border-color: rgba(0,212,255,0.35); }
.u4ea-pm-textarea::placeholder { color: #2a4a5a; }
.u4ea-pm-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.65rem 1rem 0.75rem;
}
.u4ea-pm-chars {
  font-size: 0.68rem;
  color: #3a5a6a;
  margin-right: auto;
}
.u4ea-pm-send {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 6px;
  color: var(--neon-blue);
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.u4ea-pm-send:hover { background: rgba(0,212,255,0.18); border-color: var(--neon-blue); }
.u4ea-pm-send:disabled { opacity: 0.5; cursor: default; }
.u4ea-pm-status {
  margin: 0;
  padding: 0 1rem 0.65rem;
  font-size: 0.75rem;
  min-height: 1.2em;
  text-align: center;
}

/* ── PM button on bbPress profile ────────────────────────────────────────── */
.u4ea-bbp-pm-btn {
  display: inline-block;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 6px;
  color: var(--neon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, border-color 0.2s;
}
.u4ea-bbp-pm-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--neon-blue);
}

/* ── Message button on member cards ──────────────────────────────────────── */
.u4ea-member-card { position: relative; }
.u4ea-member-msg-btn {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  z-index: 2;
}
.u4ea-member-card:hover .u4ea-member-msg-btn { opacity: 1; }
.u4ea-member-msg-btn:hover {
  background: rgba(0,212,255,0.2);
  border-color: rgba(0,212,255,0.5);
}

/* =========================================================
   PROFILE PAGE
   ========================================================= */

.profile-page {
  min-height: 80vh;
  padding: 3rem 1rem;
  background: var(--dark);
}

.profile-container {
  max-width: 620px;
  margin: 0 auto;
}

.profile-card {
  background: var(--card);
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 14px;
  padding: 2.4rem 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.profile-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: #ddeeff;
  margin: 0 0 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Notices */
.profile-notice {
  border-radius: 7px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  margin-bottom: 1.2rem;
}
.profile-notice p { margin: 0.2rem 0; }
.profile-notice--success {
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.2);
  color: #00ff88;
}
.profile-notice--error {
  background: rgba(255,75,110,0.07);
  border: 1px solid rgba(255,75,110,0.2);
  color: #ff4b6e;
}

/* Sections */
.profile-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.profile-section:last-of-type { border-bottom: none; }

.profile-section-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00ff88;
  margin: 0 0 1.2rem;
}
.profile-section-hint {
  font-size: 0.78rem;
  color: #3a5a6a;
  margin: -0.6rem 0 1rem;
}

/* Avatar row */
.profile-avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}

.profile-avatar-preview {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0,255,136,0.3);
  background: rgba(0,0,0,0.3);
}
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 900;
  color: #00ff88;
  background: rgba(0,255,136,0.08);
}

.profile-avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

/* Hidden file input — triggered by the label button */
.profile-file-input { display: none; }

.profile-file-btn {
  display: inline-block;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 6px;
  color: #00d4ff;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  width: fit-content;
}
.profile-file-btn:hover {
  background: rgba(0,212,255,0.18);
  border-color: #00d4ff;
}

.profile-file-hint {
  font-size: 0.72rem;
  color: #3a5a6a;
  line-height: 1.5;
}

.profile-delete-avatar {
  background: transparent;
  border: 1px solid rgba(255,75,110,0.25);
  border-radius: 5px;
  color: #ff4b6e;
  font-size: 0.68rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
  width: fit-content;
}
.profile-delete-avatar:hover { background: rgba(255,75,110,0.1); }

/* Profile form fields */
.profile-form { display: flex; flex-direction: column; gap: 0; }

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.profile-field label {
  font-family: 'Orbitron', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5a7a8a;
}

.profile-field input[type="text"],
.profile-field input[type="password"],
.profile-field textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  color: #ddeeff;
  font-size: 0.9rem;
  font-family: 'Exo 2', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
.profile-field input:focus,
.profile-field textarea:focus {
  border-color: rgba(0,255,136,0.45);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.05);
}

.profile-field-hint {
  font-size: 0.72rem;
  color: #3a5a6a;
}
.profile-field-hint strong { color: #5a7a8a; }

/* Mod notification toggle — used in the profile edit form */
.profile-notif-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 8px;
  background: rgba(0,255,136,0.03);
  transition: border-color 0.2s, background 0.2s;
}
.profile-notif-toggle:hover {
  border-color: rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.06);
}
.profile-notif-toggle input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--neon-green);
  cursor: pointer;
}
.profile-notif-toggle__text {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  color: #ddeeff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.profile-notif-toggle__sub {
  font-size: 0.75rem;
  color: #4a7a8a;
  font-family: 'Exo 2', sans-serif;
}

/* Nav profile button */
.nav-profile {
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.05);
}
.nav-profile:hover {
  background: rgba(0,212,255,0.15);
  border-color: #00d4ff;
  color: #fff;
}
.nav-inbox {
  position: relative;
  color: #c8d8c8;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-inbox:hover {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.4);
  color: #00d4ff;
}
.nav-inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00ff88;
  color: #001a0d;
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 900;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  line-height: 1;
}

@media (max-width: 500px) {
  .profile-avatar-row { flex-direction: column; align-items: center; text-align: center; }
  .profile-file-btn, .profile-delete-avatar { width: 100%; text-align: center; }
}

/* Nav avatar */
.nav-avatar-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-avatar-link img.nav-avatar,
img.nav-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(0,255,136,0.35) !important;
  object-fit: cover !important;
  display: block !important;
  transition: border-color 0.2s !important;
  cursor: zoom-in !important;
}
.nav-avatar-link:hover img.nav-avatar {
  border-color: #00ff88 !important;
}

/* ── Forums header search ────────────────────────────────────────────────────── */
.forums-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.forums-header-text { flex: 1; min-width: 0; }

.u4ea-forum-search-form {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(0,255,136,.15);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: .6rem;
    transition: border-color .2s, box-shadow .2s;
}
.u4ea-forum-search-form:focus-within {
    border-color: rgba(0,255,136,.45);
    box-shadow: 0 0 0 3px rgba(0,255,136,.06);
}
.u4ea-forum-search-form input[type="text"] {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #c8d8e8 !important;
    font-family: 'Exo 2', sans-serif !important;
    font-size: .82rem !important;
    padding: .4rem .75rem !important;
    width: 190px !important;
    transition: width .2s !important;
    box-shadow: none !important;
}
.u4ea-forum-search-form:focus-within input[type="text"] {
    width: 240px !important;
}
.u4ea-forum-search-form input[type="text"]::placeholder { color: #3a5a6a !important; }
.u4ea-forum-search-form button[type="submit"] {
    background: transparent !important;
    border: none !important;
    border-left: 1px solid rgba(0,255,136,.12) !important;
    padding: .35rem .6rem !important;
    cursor: pointer !important;
    color: #3a5a6a !important;
    display: flex !important;
    align-items: center !important;
    transition: color .2s, background .2s !important;
}
.u4ea-forum-search-form button[type="submit"]:hover {
    background: rgba(0,255,136,.08) !important;
    color: #00ff88 !important;
}
.u4ea-forum-search-form button[type="submit"] svg {
    width: 13px !important;
    height: 13px !important;
    display: block !important;
}
@media (max-width: 600px) {
    .forums-header-row { flex-direction: column; align-items: flex-start; }
    .u4ea-forum-search-form { width: 100%; display: flex; }
    .u4ea-forum-search-form input[type="text"] { width: 100% !important; flex: 1 !important; min-width: 0 !important; }
    .u4ea-forum-search-form:focus-within input[type="text"] { width: 100% !important; }
    .u4ea-forum-search-form button[type="submit"] { flex-shrink: 0 !important; }
}

/* ── Online bar clickable labels ─────────────────────────────────────────────── */
.u4ea-online-label-link {
    text-decoration: none !important;
    color: inherit !important;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s;
}
.u4ea-online-label-link:hover { color: #00ff88 !important; }
.u4ea-newest-label-link {
    text-decoration: none !important;
    color: #5a7a8a !important;
    font-size: .72rem !important;
    transition: color .2s !important;
}
.u4ea-newest-label-link:hover { color: #00ff88 !important; }

/* ── Members page ────────────────────────────────────────────────────────────── */
.u4ea-members-grid {
    padding-bottom: 3rem;
}

.u4ea-members-section {
    margin-bottom: 3rem;
}

/* The cards grid contains both the role label row and the member cards */
.u4ea-members-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    align-items: start;
}

/* Role label spans the full width as the first grid item */
.u4ea-members-role-label-wrap {
    grid-column: 1 / -1;
    padding-bottom: .25rem;
    border-bottom: 1px solid rgba(0,255,136,.1);
    margin-bottom: .5rem;
}

.u4ea-members-section-label {
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 4px;
}
.u4ea-members-section-label.role-admin {
    background: rgba(255, 60, 100, .1);
    border: 1px solid rgba(255, 60, 100, .3);
    color: #ff3c64;
}
.u4ea-members-section-label.role-mod {
    background: rgba(0, 212, 255, .08);
    border: 1px solid rgba(0, 212, 255, .25);
    color: #00d4ff;
}
.u4ea-members-section-label.role-member {
    background: rgba(0, 255, 136, .08);
    border: 1px solid rgba(0, 255, 136, .25);
    color: #00ff88;
}
.u4ea-members-section-label.role-registered {
    background: rgba(0,255,136,.03);
    border: 1px solid rgba(0,255,136,.1);
    color: #6a9a7a;
}
.u4ea-members-section-label.role-subscriber {
    background: rgba(0,255,136,.02);
    border: 1px solid rgba(0,255,136,.07);
    color: #4a7a5a;
}

.u4ea-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.25rem .75rem 1rem;
    background: linear-gradient(160deg, #0a1a10 0%, #091408 100%);
    border: 1px solid rgba(0,255,136,.1);
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color .2s, transform .15s, background .2s;
}
.u4ea-member-card:hover {
    border-color: rgba(0,255,136,.3);
    background: linear-gradient(160deg, #0d2015 0%, #0b1a0c 100%);
    transform: translateY(-2px);
}

.u4ea-member-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
}
.u4ea-member-avatar {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(0,255,136,.2);
    display: block;
    transition: border-color .2s;
}
.u4ea-member-card:hover .u4ea-member-avatar {
    border-color: rgba(0,255,136,.5);
}
.u4ea-member-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    border: 2px solid #080c10;
    animation: u4ea-pulse 2s ease-in-out infinite;
}

.u4ea-member-name {
    font-family: 'Exo 2', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: #c8d8e8;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}
.u4ea-member-role {
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: .2rem .5rem;
    border-radius: 3px;
    text-align: center;
}
.u4ea-member-role.role-admin      { background: rgba(255,60,100,.1);    border: 1px solid rgba(255,60,100,.25);   color: #ff3c64; }
.u4ea-member-role.role-mod        { background: rgba(0,212,255,.08);    border: 1px solid rgba(0,212,255,.2);     color: #00d4ff; }
.u4ea-member-role.role-member     { background: rgba(0,255,136,.08);    border: 1px solid rgba(0,255,136,.2);     color: #00ff88; }
.u4ea-member-role.role-registered { background: rgba(0,255,136,.04);    border: 1px solid rgba(0,255,136,.12);    color: #6a9a7a; }
.u4ea-member-role.role-subscriber { background: rgba(0,255,136,.02);    border: 1px solid rgba(0,255,136,.08);    color: #4a7a5a; }

/* ── Members mobile ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .u4ea-members-cards {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: .75rem;
    }
    .u4ea-member-avatar-wrap { width: 56px; height: 56px; }
    .u4ea-member-avatar { width: 56px !important; height: 56px !important; min-width: 56px; min-height: 56px; }
    .u4ea-member-card { padding: 1rem .5rem .85rem; }
}
@media (max-width: 400px) {
    .u4ea-members-cards {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: .5rem;
    }
    .u4ea-member-avatar-wrap { width: 48px; height: 48px; }
    .u4ea-member-avatar { width: 48px !important; height: 48px !important; min-width: 48px; min-height: 48px; }
    .u4ea-member-card { padding: .85rem .4rem .75rem; gap: .35rem; }
    .u4ea-member-name { font-size: .72rem; }
}

/* =========================================================
   404 PAGE
   ========================================================= */
.page-404-content {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.page-404-heading {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--neon-green);
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}
.page-404-tagline {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}
.page-404-body {
  color: #6a7a8a;
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* =========================================================
   HERO — MEMBER COUNT BADGE
   ========================================================= */
/* .hero-member-badge removed - styles consolidated into
   .hero-member-count / .hero-member-num near top of file. */

/* =========================================================
   SCOREBOARD / LEADERBOARD PAGE STYLING
   ========================================================= */
/* Hide the default white page heading when leaderboard shortcode is present */
.u4ea-leaderboard-page .entry-header {
  display: none;
}

/* Style the leaderboard heading to match theme */
.u4ea-leaderboard-wrapper {
  padding-top: 2rem;
}

.u4ea-leaderboard-wrapper h2 {
  font-family: 'Orbitron', monospace !important;
  font-size: 2rem !important;
  color: #00ff88 !important;
  margin-bottom: 2rem !important;
  text-align: center !important;
  letter-spacing: 2px !important;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.4) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CONTROL PANEL — page-control-panel.php
══════════════════════════════════════════════════════════════════════════════ */

/* ── Wrap & layout ───────────────────────────────────────────────────────── */
.u4ea-cp-wrap {
    min-height: 100vh;
    background: #0d1117;
    color: #c8d8c8;
    font-family: 'Exo 2', sans-serif;
}

/* ── Header bar ──────────────────────────────────────────────────────────── */
.u4ea-cp-header {
    background: #0a0e14;
    border-bottom: 1px solid rgba(0,255,136,.15);
    position: sticky;
    top: 80px; /* sits below the fixed site header */
    z-index: 100;
}
.admin-bar .u4ea-cp-header {
    top: 112px; /* 80px site header + 32px WP admin bar */
}
.u4ea-cp-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .85rem;
}
.u4ea-cp-title {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.u4ea-cp-icon {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px #00ff88);
}
.u4ea-cp-title h1 {
    margin: 0;
    font-family: 'Orbitron', monospace;
    font-size: 1.15rem;
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0,255,136,.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.u4ea-cp-title p {
    margin: .15rem 0 0;
    font-size: .78rem;
    color: #6a8a7a;
}
.cp-role-badge {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 4px;
    font-size: .7rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.cp-role-badge.admin { background: rgba(255,180,0,.12); color: #ffb400; border: 1px solid rgba(255,180,0,.3); }
.cp-role-badge.mod   { background: rgba(0,212,255,.1);  color: #00d4ff; border: 1px solid rgba(0,212,255,.25); }

/* ── Sticky save bar ─────────────────────────────────────────────────────── */
.u4ea-cp-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100002;
    background: rgba(10,14,20,.95);
    border-top: 1px solid rgba(0,255,136,.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: .75rem 1.5rem;
    transition: border-color .3s;
}
.u4ea-cp-save-bar.has-changes {
    border-top-color: rgba(255,180,0,.5);
    animation: cp-bar-pulse 2s ease-in-out infinite;
}
@keyframes cp-bar-pulse {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 -4px 20px rgba(255,180,0,.15); }
}
.u4ea-cp-save-bar.has-changes .u4ea-cp-save-btn {
    border-color: rgba(255,180,0,.45);
    color: #ffb400;
    background: rgba(255,180,0,.1);
}
/* ── Save button ─────────────────────────────────────────────────────────── */
.cp-save-status { font-size: .8rem; font-weight: 600; transition: opacity .3s; }
.cp-save-status.success { color: #00ff88; }
.cp-save-status.error   { color: #ff4d6d; }

/* ── Pending queue view link ─────────────────────────────────────────────── */
.cp-btn-view {
    padding: .32rem .7rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    color: #8aaa9a;
    font-family: 'Orbitron', monospace;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.cp-btn-view:hover { background: rgba(255,255,255,.1); color: #c8d8c8; }

/* ── User card meta ──────────────────────────────────────────────────────── */
.cp-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.cp-user-info strong  { font-size: .88rem; color: #d0e8d0; }
.cp-user-login        { font-size: .72rem; color: #4a6a5a; }
.cp-user-meta         { font-size: .7rem;  color: #5a7a6a; }
.u4ea-cp-save-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    background: rgba(0,255,136,.1);
    border: 1px solid rgba(0,255,136,.35);
    border-radius: 7px;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.u4ea-cp-save-btn:hover  { background: rgba(0,255,136,.18); border-color: rgba(0,255,136,.55); }
.u4ea-cp-save-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Sidebar toggle button (in header) ───────────────────────────────────── */
.u4ea-cp-sidebar-toggle {
    background: transparent;
    border: 1px solid rgba(0,255,136,.2);
    color: #6a8a7a;
    font-size: 1.15rem;
    line-height: 1;
    padding: .3rem .55rem;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s, border-color .15s;
}
.u4ea-cp-sidebar-toggle:hover { color: #00ff88; border-color: rgba(0,255,136,.5); }

/* ── Layout: sidebar + content ───────────────────────────────────────────── */
.u4ea-cp-layout {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.u4ea-cp-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: #0a0e14;
    border-right: 1px solid rgba(0,255,136,.1);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 150px; /* safe fallback — JS recalculates from actual header bottom */
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,.15) transparent;
    transition: width .22s ease;
    z-index: 90;
    align-self: flex-start;
}
.admin-bar .u4ea-cp-sidebar { top: 182px; max-height: calc(100vh - 182px); }
.u4ea-cp-sidebar::-webkit-scrollbar { width: 4px; }
.u4ea-cp-sidebar::-webkit-scrollbar-thumb { background: rgba(0,255,136,.15); border-radius: 2px; }
.u4ea-cp-sidebar.collapsed { width: 52px; }

/* Nav items */
.u4ea-cp-sidebar .cp-tab {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .62rem .85rem;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #6a8a7a;
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-align: left;
    transition: background .15s, color .15s, border-color .15s;
    letter-spacing: .2px;
    box-sizing: border-box;
}
.u4ea-cp-sidebar .cp-tab:hover  { background: rgba(0,255,136,.06); color: #b0c8b8; }
.u4ea-cp-sidebar .cp-tab.active {
    color: #00ff88;
    border-left-color: #00ff88;
    background: rgba(0,255,136,.08);
}

.cp-nav-icon  { font-size: .95rem; flex-shrink: 0; min-width: 18px; text-align: center; }
.cp-nav-label { flex: 1; overflow: hidden; transition: opacity .18s, width .22s; }
.u4ea-cp-sidebar.collapsed .cp-nav-label { opacity: 0; width: 0; pointer-events: none; }

/* Badges in sidebar */
.u4ea-cp-sidebar .cp-tab-badge {
    font-size: .6rem;
    background: #00ff88;
    color: #060e08;
    border-radius: 10px;
    padding: .05rem .32rem;
    font-weight: 800;
    flex-shrink: 0;
    min-width: 16px;
    text-align: center;
}
.u4ea-cp-sidebar.collapsed .cp-tab-badge { display: none; }

/* Sidebar footer / collapse button */
.u4ea-cp-sidebar-footer {
    margin-top: auto;
    padding-top: .4rem;
    border-top: 1px solid rgba(0,255,136,.07);
}
.u4ea-cp-sidebar-collapse {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .62rem .85rem;
    background: transparent;
    border: none;
    color: #3a5a4a;
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: left;
    box-sizing: border-box;
    transition: color .15s;
}
.u4ea-cp-sidebar-collapse:hover { color: #6a8a7a; }
.cp-collapse-arrow { display: inline-block; transition: transform .22s ease; }
.u4ea-cp-sidebar.collapsed .cp-collapse-arrow { transform: rotate(180deg); }
.u4ea-cp-sidebar.collapsed .u4ea-cp-sidebar-footer .cp-nav-label { opacity: 0; width: 0; pointer-events: none; }

/* Mobile backdrop */
.u4ea-cp-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 89;
    backdrop-filter: blur(2px);
}
.u4ea-cp-sidebar-backdrop.visible { display: block; }

/* ── Content area ────────────────────────────────────────────────────────── */
.u4ea-cp-content { flex: 1; min-width: 0; }

/* ── Body & panels ───────────────────────────────────────────────────────── */
.u4ea-cp-body { max-width: 960px; padding: 1.5rem 1.5rem 5rem; }
/* Hide the fixed site footer on the Control Panel — save bar takes its place */
.page-template-page-control-panel-php #colophon { display: none !important; }
.cp-panel { display: none; }
.cp-panel.active { display: block; }

/* Mobile sidebar */
@media (max-width: 768px) {
    .u4ea-cp-sidebar {
        position: fixed;
        top: 0 !important;
        left: 0;
        height: 100vh !important;
        max-height: 100vh !important;
        width: 220px !important;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 200;
        padding-top: 60px;
    }
    .u4ea-cp-sidebar.mobile-open  { transform: translateX(0); }
    .u4ea-cp-sidebar.collapsed { width: 220px !important; transform: translateX(-100%); }
    .u4ea-cp-sidebar.collapsed.mobile-open { transform: translateX(0); }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.cp-section {
    background: #111820;
    border: 1px solid rgba(0,255,136,.1);
    border-radius: 10px;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
}
.cp-section-title {
    margin: 0 0 1rem;
    font-family: 'Orbitron', monospace;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00ff88;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(0,255,136,.1);
}
.cp-sub-title {
    margin: 1rem 0 .5rem;
    font-size: .75rem;
    font-weight: 700;
    color: #6a8a7a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Grid rows ───────────────────────────────────────────────────────────── */
.cp-grid { display: flex; flex-direction: column; gap: .6rem; }
.cp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .9rem;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 7px;
    flex-wrap: wrap;
}
.cp-row--danger { border-color: rgba(255,77,109,.15); }
.cp-row-label { flex: 1; min-width: 0; }
.cp-row-label strong { display: block; font-size: .85rem; color: #d0e8d0; margin-bottom: .15rem; }
.cp-row-label span   { font-size: .75rem; color: #5a7a6a; }

/* ── Form controls ───────────────────────────────────────────────────────── */
.cp-select {
    padding: .38rem .6rem;
    background: #0d1117;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 6px;
    color: #c8d8c8;
    font-family: 'Exo 2', sans-serif;
    font-size: .8rem;
    cursor: pointer;
    min-width: 170px;
    transition: border-color .15s;
}
.cp-select:focus { outline: none; border-color: rgba(0,255,136,.5); }
.cp-select:disabled { opacity: .45; cursor: not-allowed; }
.cp-number {
    width: 80px;
    padding: .38rem .6rem;
    background: #0d1117;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 6px;
    color: #c8d8c8;
    font-family: 'Exo 2', sans-serif;
    font-size: .85rem;
    text-align: center;
}
.cp-number:focus { outline: none; border-color: rgba(0,255,136,.5); }
.cp-text-input {
    flex: 1;
    padding: .42rem .7rem;
    background: #0d1117;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 6px;
    color: #c8d8c8;
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
}
.cp-text-input:focus { outline: none; border-color: rgba(0,255,136,.4); }
.cp-url-input { width: 100%; box-sizing: border-box; flex: 1; }
.cp-url-input:disabled { opacity: .45; cursor: not-allowed; }
.cp-textarea {
    width: 100%;
    padding: .5rem .7rem;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    color: #c8d8c8;
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    resize: vertical;
    box-sizing: border-box;
}
.cp-textarea:focus { outline: none; border-color: rgba(0,255,136,.4); }

/* ── Toggle switch ───────────────────────────────────────────────────────── */
.cp-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cp-switch input { opacity: 0; width: 0; height: 0; }
.cp-slider {
    position: absolute; inset: 0;
    background: #1e2a22;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}
.cp-slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; bottom: 3px;
    background: #4a6a5a;
    border-radius: 50%;
    transition: transform .2s, background .2s;
}
.cp-switch input:checked + .cp-slider { background: rgba(0,255,136,.18); border-color: rgba(0,255,136,.45); }
.cp-switch input:checked + .cp-slider::before { transform: translateX(20px); background: #00ff88; }
.cp-switch input:disabled + .cp-slider { opacity: .4; cursor: not-allowed; }

/* ── Action buttons ──────────────────────────────────────────────────────── */
.cp-action-btn {
    padding: .35rem .8rem;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.25);
    border-radius: 6px;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.cp-action-btn:hover { background: rgba(0,212,255,.16); border-color: rgba(0,212,255,.45); }
.cp-action-btn.danger {
    background: rgba(255,77,109,.08);
    border-color: rgba(255,77,109,.25);
    color: #ff4d6d;
}
.cp-action-btn.danger:hover { background: rgba(255,77,109,.18); border-color: rgba(255,77,109,.5); }

/* ── Plutonium server rows ───────────────────────────────────────────────── */
.cp-pluto-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .45rem .6rem;
    border-radius: 5px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    margin-bottom: .4rem;
}
.cp-pluto-label {
    font-size: .82rem;
    color: #e0e0e0;
    flex: 0 0 auto;
    min-width: 120px;
}
.cp-pluto-ipport {
    font-size: .78rem;
    color: #00d4ff;
    font-family: monospace;
    flex: 1;
}
.cp-pluto-add-form .cp-text-input { font-size: .82rem; }

/* ── Pending queue ───────────────────────────────────────────────────────── */
.cp-pending-list { display: flex; flex-direction: column; gap: .6rem; }
.cp-pending-item {
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    padding: .8rem 1rem;
    transition: opacity .3s, height .3s;
}
.cp-pending-meta { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.cp-pending-type {
    font-size: .6rem;
    font-family: 'Orbitron', monospace;
    background: rgba(0,255,136,.1);
    border: 1px solid rgba(0,255,136,.2);
    color: #00ff88;
    padding: .1rem .4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cp-pending-meta strong { font-size: .88rem; color: #d0e8d0; }
.cp-pending-author { font-size: .72rem; color: #5a7a6a; }
.cp-pending-excerpt { font-size: .78rem; color: #6a8a7a; margin-bottom: .6rem; font-style: italic; }
.cp-pending-actions { display: flex; gap: .5rem; }
.cp-btn-approve {
    padding: .32rem .7rem;
    background: rgba(0,255,136,.1);
    border: 1px solid rgba(0,255,136,.3);
    border-radius: 5px;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .8px;
    cursor: pointer;
    transition: background .15s;
}
.cp-btn-approve:hover { background: rgba(0,255,136,.2); }
.cp-btn-reject {
    padding: .32rem .7rem;
    background: rgba(255,77,109,.08);
    border: 1px solid rgba(255,77,109,.25);
    border-radius: 5px;
    color: #ff4d6d;
    font-family: 'Orbitron', monospace;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .8px;
    cursor: pointer;
    transition: background .15s;
}
.cp-btn-reject:hover { background: rgba(255,77,109,.18); }

/* ── User lists ──────────────────────────────────────────────────────────── */
.cp-mute-search-row { display: flex; gap: .6rem; margin-bottom: .8rem; }
.cp-mute-wrap, .cp-user-search-wrap { }
.cp-search-results { margin-bottom: 1rem; }
.cp-user-list-inner { display: flex; flex-direction: column; gap: .5rem; }
.cp-user-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem .8rem;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 7px;
}
.cp-user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cp-user-info { flex: 1; min-width: 0; }
.cp-user-info strong { display: block; font-size: .85rem; color: #d0e8d0; }
.cp-user-info span   { font-size: .72rem; color: #5a7a6a; }
.cp-user-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ── System info grid ────────────────────────────────────────────────────── */
.cp-info-grid { display: flex; flex-direction: column; gap: .6rem; }
.cp-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem .9rem;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 7px;
    font-size: .82rem;
}
.cp-info-row span   { color: #6a8a7a; flex: 1; }
.cp-info-row strong { color: #d0e8d0; text-align: right; }

/* ── Admin-only badge ────────────────────────────────────────────────────── */
.cp-admin-only-badge {
    display: inline-block;
    margin-left: .5rem;
    padding: .1rem .45rem;
    background: rgba(255,180,0,.1);
    border: 1px solid rgba(255,180,0,.25);
    border-radius: 4px;
    font-size: .55rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #ffb400;
    text-transform: uppercase;
    letter-spacing: .8px;
    vertical-align: middle;
}

/* ── No-access block ─────────────────────────────────────────────────────── */
.cp-no-access {
    text-align: center;
    padding: 2rem;
    color: #4a6a5a;
}
.cp-no-access span { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.cp-modal { position: fixed; inset: 0; z-index: 200000; display: flex; align-items: center; justify-content: center; }
.cp-modal[hidden] { display: none; }
.cp-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.cp-modal-box {
    position: relative;
    background: #111820;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 12px;
    padding: 1.6rem;
    width: 90vw;
    max-width: 420px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.cp-modal-close {
    position: absolute;
    top: .6rem; right: .8rem;
    background: transparent;
    border: none;
    color: #4a6a5a;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}
.cp-modal-close:hover { color: #c8d8c8; }
.cp-modal-title {
    margin: 0 0 1rem;
    font-family: 'Orbitron', monospace;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00ff88;
}
.cp-modal-text { font-size: .85rem; color: #8aaa9a; margin: 0 0 1.2rem; line-height: 1.6; }
.cp-modal-btns { display: flex; justify-content: flex-end; gap: .6rem; }
.cp-modal-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cp-role-pick {
    padding: .6rem .8rem;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7px;
    color: #8aaa9a;
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-align: center;
}
.cp-role-pick:hover { background: rgba(0,212,255,.1); border-color: rgba(0,212,255,.3); color: #00d4ff; }
.cp-role-pick.active { background: rgba(0,255,136,.1); border-color: rgba(0,255,136,.35); color: #00ff88; }
.cp-role-pick[data-role="bbp_blocked"] { color: #ff4d6d; border-color: rgba(255,77,109,.2); }
.cp-role-pick[data-role="bbp_blocked"]:hover { background: rgba(255,77,109,.1); border-color: rgba(255,77,109,.4); color: #ff4d6d; }
.cp-role-pick[data-role="bbp_blocked"].active { background: rgba(255,77,109,.15); border-color: rgba(255,77,109,.45); }

/* ── User management modal ───────────────────────────────────────────────── */
.cp-manage-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: .9rem;
    margin-bottom: .9rem;
    border-bottom: 1px solid rgba(0,255,136,.12);
}
.cp-manage-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,136,.25);
    flex-shrink: 0;
}
.cp-manage-user-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.cp-manage-user-info strong {
    font-size: .95rem;
    color: #e0f0e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp-manage-login {
    font-size: .78rem;
    color: #4a8a6a;
}
.cp-manage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
}
.cp-manage-actions .cp-action-btn,
.cp-manage-actions .cp-manage-profile-link {
    justify-content: center;
    text-align: center;
    font-size: .78rem;
    padding: .55rem .5rem;
}
.cp-manage-profile-link {
    display: block;
    text-decoration: none;
    grid-column: span 2;
}

/* ── Loading / empty states ──────────────────────────────────────────────── */
.cp-loading { color: #4a6a5a; font-size: .82rem; padding: .8rem 0; font-style: italic; }
.cp-empty   { color: #4a6a5a; font-size: .82rem; padding: .8rem 0; }
.cp-error   { color: #ff4d6d; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .u4ea-cp-header-inner { flex-wrap: nowrap; }
    .u4ea-cp-save-wrap { width: 100%; justify-content: flex-end; }
    .cp-row { flex-direction: column; align-items: flex-start; }
    .cp-select { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHASE 2: WARNINGS, GALLERY QUEUE, CHAT HISTORY
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Warning badge on user card ──────────────────────────────────────────── */
.cp-warning-badge {
    display: inline-block;
    margin-top: .25rem;
    padding: .15rem .45rem;
    background: rgba(255,180,0,.15);
    border: 1px solid rgba(255,180,0,.35);
    border-radius: 4px;
    color: #ffb400;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .5px;
}

/* ── Warn modal ──────────────────────────────────────────────────────────── */
.cp-warn-issue {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.cp-warn-issue .cp-textarea {
    flex: 1;
    min-height: 3rem;
    resize: vertical;
}
.cp-warn-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.cp-warn-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .8rem;
    background: rgba(255,180,0,.05);
    border: 1px solid rgba(255,180,0,.12);
    border-radius: 6px;
}
.cp-warn-meta { flex: 1; }
.cp-warn-meta strong { display: block; font-size: .82rem; color: #d0c880; margin-bottom: .2rem; }
.cp-warn-meta span   { font-size: .7rem; color: #6a7a5a; }
.cp-btn-del-warning {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255,77,109,.25);
    color: #ff4d6d;
    border-radius: 4px;
    padding: .2rem .5rem;
    font-size: .7rem;
    cursor: pointer;
    transition: background .15s;
}
.cp-btn-del-warning:hover { background: rgba(255,77,109,.1); }

/* ── Gallery queue ───────────────────────────────────────────────────────── */
.cp-gallery-queue { display: flex; flex-direction: column; gap: .75rem; }
.cp-gallery-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    transition: opacity .3s;
}
.cp-gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.08);
}
.cp-gallery-info { flex: 1; min-width: 0; }
.cp-gallery-info strong { display: block; font-size: .85rem; color: #c8d8c8; margin-bottom: .2rem; }
.cp-gallery-info span   { display: block; font-size: .72rem; color: #5a7a6a; }
.cp-gallery-game        { color: #00d4ff !important; margin-bottom: .1rem; }

/* ── Load earlier messages button in chat ────────────────────────────────── */
.u4ea-chat-load-earlier {
    display: block;
    width: calc(100% - 1.6rem);
    margin: .5rem .8rem .75rem;
    padding: .4rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    color: #5a7a6a;
    font-size: .7rem;
    text-align: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.u4ea-chat-load-earlier:hover {
    background: rgba(0,255,136,.07);
    color: #00ff88;
    border-color: rgba(0,255,136,.2);
}

/* ── Warn button style ───────────────────────────────────────────────────── */
.cp-btn-warn, .cp-action-btn.cp-btn-warn {
    border-color: rgba(255,180,0,.3);
    color: #ffb400;
}
.cp-btn-warn:hover { background: rgba(255,180,0,.1); border-color: rgba(255,180,0,.5); }

/* ══════════════════════════════════════════════════════════════════════════════
   PHASE 4: PRIVATE MESSAGING
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Messages page layout ────────────────────────────────────────────────── */
.u4ea-messages-wrap {
    display: flex;
    align-items: flex-start;       /* sidebar & main start from top, don't stretch */
    max-width: 1100px;
    margin: 80px auto 0;
    gap: 0;
    min-height: calc(100vh - 80px);
}
.admin-bar .u4ea-messages-wrap { margin-top: 112px; min-height: calc(100vh - 112px); }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.u4ea-msg-sidebar {
    width: 300px;
    min-width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,255,136,.1);
    background: rgba(0,0,0,.25);
    position: sticky;
    top: 80px;                     /* stick right below fixed nav */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transition: transform .25s;
}
.u4ea-msg-sidebar--hidden { transform: translateX(-110%); position: absolute; z-index: -1; }

.u4ea-msg-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.2rem .9rem;
    border-bottom: 1px solid rgba(0,255,136,.08);
}
.u4ea-msg-sidebar-title {
    font-family: 'Orbitron', monospace;
    font-size: .78rem;
    color: #00ff88;
    margin: 0;
    letter-spacing: 1px;
}
.u4ea-msg-compose-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(0,255,136,.1);
    border: 1px solid rgba(0,255,136,.3);
    color: #00ff88;
    border-radius: 6px;
    padding: .3rem .65rem;
    font-size: .62rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.u4ea-msg-compose-btn:hover { background: rgba(0,255,136,.22); border-color: rgba(0,255,136,.5); }

/* ── Compose modal ───────────────────────────────────────────────────────── */
.u4ea-compose-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.u4ea-compose-modal-overlay[hidden] { display: none !important; }
.u4ea-compose-modal {
    background: linear-gradient(180deg, #0a1510, #0d1a14);
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
    overflow: hidden;
}
.u4ea-compose-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.2rem;
    border-bottom: 1px solid rgba(0,255,136,.1);
    background: rgba(0,255,136,.03);
}
.u4ea-compose-modal-title {
    font-family: 'Orbitron', monospace;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #00ff88;
}
.u4ea-compose-modal-close {
    background: none; border: none; color: #4a6a5a;
    cursor: pointer; font-size: 1rem; line-height: 1;
    padding: .2rem .4rem; transition: color .15s; border-radius: 4px;
}
.u4ea-compose-modal-close:hover { color: #ff4b6e; }
.u4ea-compose-modal-body {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.u4ea-compose-to-row {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.u4ea-compose-label {
    color: #4a6a5a;
    font-size: .72rem;
    font-family: 'Orbitron', monospace;
    letter-spacing: .5px;
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: 1.8rem;
}
.u4ea-compose-to-wrap { flex: 1; position: relative; }
.u4ea-compose-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(0,255,136,.12);
    border-radius: 5px;
    color: #c8d8c8; font-size: .83rem;
    padding: .38rem .7rem;
    outline: none; transition: border-color .15s;
}
.u4ea-compose-input:focus { border-color: rgba(0,255,136,.4); }
.u4ea-compose-results {
    position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 50;
    background: #0b1810;
    border: 1px solid rgba(0,255,136,.18);
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    max-height: 180px; overflow-y: auto;
}
.u4ea-compose-results[hidden] { display: none !important; }
.u4ea-compose-result {
    display: flex; align-items: center; gap: .55rem;
    padding: .42rem .75rem; cursor: pointer; transition: background .12s;
}
.u4ea-compose-result:hover { background: rgba(0,255,136,.08); }
.u4ea-compose-result img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.u4ea-compose-result span { font-size: .8rem; color: #c8d8c8; }
.u4ea-compose-result small { font-size: .66rem; color: #4a6a5a; margin-left: auto; }
.u4ea-compose-textarea {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(0,255,136,.1);
    border-radius: 6px;
    color: #c8d8c8; font-size: .83rem; font-family: inherit;
    padding: .55rem .8rem; resize: none;
    outline: none; min-height: 90px;
    transition: border-color .15s;
}
.u4ea-compose-textarea:focus { border-color: rgba(0,255,136,.35); }
.u4ea-compose-status { font-size: .72rem; margin: 0; min-height: 1em; }
.u4ea-compose-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    padding: .8rem 1.2rem;
    border-top: 1px solid rgba(0,255,136,.08);
    background: rgba(0,0,0,.2);
}
.u4ea-compose-cancel {
    background: none; border: 1px solid rgba(255,255,255,.1);
    color: #5a7a8a; border-radius: 5px;
    padding: .35rem .8rem; font-family: 'Orbitron', monospace;
    font-size: .6rem; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; cursor: pointer; transition: all .15s;
}
.u4ea-compose-cancel:hover { border-color: rgba(255,255,255,.25); color: #c8d8c8; }
.u4ea-compose-send {
    background: rgba(0,255,136,.1); border: 1px solid rgba(0,255,136,.3);
    color: #00ff88; border-radius: 5px;
    padding: .35rem .9rem; font-family: 'Orbitron', monospace;
    font-size: .6rem; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; cursor: pointer; transition: all .15s;
}
.u4ea-compose-send:hover { background: rgba(0,255,136,.22); border-color: rgba(0,255,136,.5); }
.u4ea-compose-send:disabled { opacity: .45; cursor: default; }

.u4ea-msg-thread-list { overflow-y: visible; }
.u4ea-msg-loading, .u4ea-msg-empty-list {
    padding: 1.5rem;
    color: #4a6a5a;
    font-size: .8rem;
    text-align: center;
}

/* Thread list items */
.u4ea-msg-thread-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.u4ea-msg-thread-item:hover,
.u4ea-msg-thread-item.active { background: rgba(0,255,136,.06); }
.u4ea-msg-thread-item.u4ea-unread { background: rgba(0,255,136,.04); }

.u4ea-msg-item-avatar-wrap {
    position: relative; flex-shrink: 0; width: 40px; height: 40px;
}
.u4ea-msg-item-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0,255,136,.15);
}
.u4ea-msg-item-online-dot {
    position: absolute; bottom: 1px; right: 1px;
    width: 10px; height: 10px;
    background: #00ff88; border-radius: 50%;
    border: 2px solid #060e0a;
    box-shadow: 0 0 4px rgba(0,255,136,.6);
}
.u4ea-msg-item-body { flex: 1; min-width: 0; }
.u4ea-msg-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.u4ea-msg-item-name { font-size: .82rem; font-weight: 600; color: #c8d8c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u4ea-msg-item-time { font-size: .65rem; color: #3a5a4a; flex-shrink: 0; }
.u4ea-msg-item-preview { font-size: .72rem; color: #4a6a5a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.u4ea-msg-item-preview em { color: #3a5a4a; font-style: normal; }
.u4ea-unread .u4ea-msg-item-name { color: #00ff88; }
.u4ea-unread .u4ea-msg-item-preview { color: #8ab89a; }
.u4ea-msg-unread-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #00ff88;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0,255,136,.5);
}

/* ── Main area ───────────────────────────────────────────────────────────── */
.u4ea-msg-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(0,0,0,.15);
    /* No overflow:hidden — we want natural page scroll */
}
.u4ea-msg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: #3a5a4a;
    padding: 2.5rem 2rem;
    text-align: center;
    align-self: center;        /* don't stretch to full main height */
    width: 100%;
}
.u4ea-msg-empty-icon { font-size: 3rem; opacity: .35; }
.u4ea-msg-empty p { font-size: .85rem; }
.u4ea-msg-compose-btn-lg {
    background: rgba(0,255,136,.1);
    border: 1px solid rgba(0,255,136,.3);
    color: #00ff88;
    border-radius: 8px;
    padding: .5rem 1.2rem;
    font-family: 'Orbitron', monospace;
    font-size: .7rem;
    cursor: pointer;
    transition: background .15s;
}
.u4ea-msg-compose-btn-lg:hover { background: rgba(0,255,136,.2); }

/* ── Compose panel — compact overlay at top of main area ─────────────────── */
.u4ea-msg-compose-panel {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    background: #0a1510;
    border-bottom: 1px solid rgba(0,255,136,.18);
    box-shadow: 0 8px 32px rgba(0,0,0,.55);
    padding: .85rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    /* slide-in animation */
    transform: translateY(0);
    transition: transform .2s ease, opacity .2s ease;
}
.u4ea-msg-compose-panel[hidden] {
    display: none;
}
/* Make main area position:relative so absolute compose panel is contained */
.u4ea-msg-main { position: relative; }

.u4ea-msg-compose-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .1rem;
}
.u4ea-msg-compose-header h2 {
    font-family:'Orbitron',monospace; font-size:.72rem;
    color:#00ff88; margin:0; letter-spacing:.8px; text-transform:uppercase;
}
.u4ea-msg-panel-close {
    background:none; border:none; color:#4a6a5a;
    cursor:pointer; font-size:1rem; line-height:1; padding:.1rem .3rem;
    transition: color .15s;
}
.u4ea-msg-panel-close:hover { color:#ff4d6d; }

/* To: row */
.u4ea-msg-compose-body { display:flex; flex-direction:column; gap:.6rem; }
.u4ea-msg-compose-row { display:flex; align-items:center; gap:.7rem; }
.u4ea-msg-compose-row label {
    color:#4a6a5a; font-size:.72rem; font-family:'Orbitron',monospace;
    letter-spacing:.5px; text-transform:uppercase; min-width:1.8rem; flex-shrink:0;
}
.u4ea-msg-recipient-wrap { flex:1; position:relative; }
.u4ea-msg-input {
    width:100%; box-sizing:border-box;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(0,255,136,.12);
    border-radius:5px;
    color:#c8d8c8; font-size:.82rem;
    padding:.38rem .7rem;
    outline:none; transition:border-color .15s;
}
.u4ea-msg-input:focus { border-color:rgba(0,255,136,.4); background:rgba(0,255,136,.03); }
.u4ea-msg-recipient-results {
    position:absolute; top:calc(100% + 2px); left:0; right:0; z-index:50;
    background:#0b1810;
    border:1px solid rgba(0,255,136,.18);
    border-radius:5px;
    box-shadow:0 8px 24px rgba(0,0,0,.5);
    max-height:180px; overflow-y:auto;
}
.u4ea-msg-r-result {
    display:flex; align-items:center; gap:.55rem;
    padding:.42rem .75rem; cursor:pointer; transition:background .12s;
}
.u4ea-msg-r-result:hover { background:rgba(0,255,136,.08); }
.u4ea-msg-r-result img { width:24px; height:24px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.u4ea-msg-r-result span { font-size:.78rem; color:#c8d8c8; }
.u4ea-msg-r-result small { font-size:.65rem; color:#4a6a5a; margin-left:auto; }

/* Message textarea */
.u4ea-msg-textarea {
    width:100%; box-sizing:border-box;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(0,255,136,.1);
    border-radius:6px; color:#c8d8c8; font-size:.83rem;
    padding:.55rem .85rem; resize:none;
    outline:none; min-height:72px; max-height:140px;
    transition:border-color .15s; font-family:inherit; overflow-y:auto;
}
.u4ea-msg-textarea:focus { border-color:rgba(0,255,136,.35); }

/* Compose footer row */
.u4ea-msg-compose-footer {
    display:flex; align-items:center; justify-content:flex-end; gap:.8rem;
    padding-top:.1rem;
}
.u4ea-msg-chars { font-size:.68rem; color:#3a5a4a; }
.u4ea-msg-send-btn {
    background:rgba(0,255,136,.1);
    border:1px solid rgba(0,255,136,.28);
    color:#00ff88; border-radius:5px;
    padding:.35rem .9rem;
    font-family:'Orbitron',monospace; font-size:.62rem;
    font-weight:700; letter-spacing:.5px;
    cursor:pointer; transition:background .15s;
}
.u4ea-msg-send-btn:hover { background:rgba(0,255,136,.22); }
.u4ea-msg-send-btn:disabled { opacity:.45; cursor:default; }
.u4ea-msg-status { font-size:.72rem; margin:0; min-height:1em; }

/* Reply bar */
.u4ea-msg-reply-send {
    background:rgba(0,255,136,.1);
    border:1px solid rgba(0,255,136,.28);
    color:#00ff88; border-radius:5px;
    padding:.35rem .9rem;
    font-family:'Orbitron',monospace; font-size:.62rem;
    font-weight:700; letter-spacing:.5px;
    cursor:pointer; transition:background .15s; flex-shrink:0;
}
.u4ea-msg-reply-send:hover { background:rgba(0,255,136,.22); }
.u4ea-msg-reply-send:disabled { opacity:.45; cursor:default; }

/* Reply textarea */
.u4ea-msg-reply-textarea {
    flex:1; width:100%; box-sizing:border-box;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(0,255,136,.1);
    border-radius:6px; color:#c8d8c8; font-size:.83rem;
    padding:.5rem .8rem; resize:none;
    outline:none; min-height:40px; max-height:160px;
    transition:border-color .15s; font-family:inherit; overflow-y:auto;
}
.u4ea-msg-reply-textarea:focus { border-color:rgba(0,255,136,.35); }

/* ── Thread view ─────────────────────────────────────────────────────────── */
.u4ea-msg-thread-view { display:flex; flex-direction:column; flex:1; min-height:0; }
.u4ea-msg-thread-view[hidden] { display:none !important; }

.u4ea-msg-thread-header {
    display:flex; align-items:center; gap:.8rem;
    padding:.8rem 1.2rem;
    border-bottom:1px solid rgba(255,255,255,.06);
    background:rgba(0,0,0,.2);
    position: sticky;
    top: 80px;
    z-index: 5;
}
.u4ea-msg-back-btn { display:none; background:none; border:none; color:#00ff88; cursor:pointer; font-size:.8rem; }
.u4ea-msg-thread-title-wrap { flex:1; display:flex; align-items:center; gap:.7rem; }
.u4ea-msg-thread-avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; border:1px solid rgba(0,255,136,.2); }
.u4ea-msg-thread-other-name { font-size:.85rem; font-weight:600; color:#c8d8c8; text-decoration:none; }
.u4ea-msg-thread-other-name:hover { color:#00ff88; }
.u4ea-msg-delete-thread-btn { background:none; border:none; color:#4a6a5a; cursor:pointer; font-size:.9rem; padding:.2rem; transition:color .15s; }
.u4ea-msg-delete-thread-btn:hover { color:#ff4d6d; }

/* Messages area grows with content — no fixed height */
.u4ea-msg-messages-area {
    padding: .9rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-height: 120px;
}

.u4ea-msg-load-earlier {
    display:block; width:100%; margin-bottom:.5rem;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.07);
    border-radius:6px;
    color:#4a6a5a; font-size:.72rem; text-align:center;
    padding:.4rem; cursor:pointer; transition:all .15s;
}
.u4ea-msg-load-earlier:hover { background:rgba(0,255,136,.07); color:#00ff88; border-color:rgba(0,255,136,.2); }

/* Message bubbles */
.u4ea-msg-bubble {
    display:flex; align-items:flex-end; gap:.6rem; max-width:72%;
}
.u4ea-msg-bubble.u4ea-mine { margin-left:auto; flex-direction:row-reverse; }
.u4ea-msg-bubble-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1px solid rgba(0,255,136,.15); }
.u4ea-mine .u4ea-msg-bubble-avatar { display:none; }

.u4ea-msg-bubble-inner { display:flex; flex-direction:column; }
.u4ea-msg-bubble-inner p {
    margin:0;
    padding:.65rem .9rem;
    border-radius:12px;
    font-size:.83rem;
    line-height:1.55;
    word-break:break-word;
}
.u4ea-theirs .u4ea-msg-bubble-inner p {
    background:rgba(0,255,136,.07);
    border:1px solid rgba(0,255,136,.12);
    color:#c8d8c8;
    border-bottom-left-radius:3px;
}
.u4ea-mine .u4ea-msg-bubble-inner p {
    background:rgba(0,212,255,.1);
    border:1px solid rgba(0,212,255,.18);
    color:#d0e8f0;
    border-bottom-right-radius:3px;
}
.u4ea-msg-bubble-time { font-size:.62rem; color:#3a5a4a; margin-top:.25rem; padding:0 .2rem; }
.u4ea-mine .u4ea-msg-bubble-time { text-align:right; }
.u4ea-msg-bubble-footer {
    display: flex; align-items: center; gap: .4rem;
    justify-content: flex-end;
}
.u4ea-msg-del-btn {
    background: none; border: none; cursor: pointer;
    font-size: .65rem; color: #3a5a4a; opacity: 0;
    padding: 0 .1rem; line-height: 1;
    transition: opacity .15s, color .15s;
}
.u4ea-msg-bubble:hover .u4ea-msg-del-btn { opacity: 1; }
.u4ea-msg-del-btn:hover { color: #ff4b6e; }
.u4ea-msg-deleted {
    font-style: italic; font-size: .78rem;
    color: #3a5a4a; font-family: inherit;
}

/* GIF/image messages — no text padding, image fills the bubble */
.u4ea-msg-bubble-inner p:has(.u4ea-msg-gif) {
    padding: .25rem;
    background: transparent !important;
    border-color: transparent !important;
}
.u4ea-msg-img-link {
    display: inline-block;
    cursor: zoom-in;
    line-height: 0;
}
.u4ea-msg-gif {
    display: block;
    max-width: 240px;
    max-height: 200px;
    width: auto; height: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: opacity .15s, transform .15s;
}
.u4ea-msg-img-link:hover .u4ea-msg-gif {
    opacity: .88;
    transform: scale(1.02);
}

/* Reply bar — stays at bottom of viewport while scrolling through messages */
.u4ea-msg-reply-bar {
    display: flex; gap: .6rem; align-items: flex-end;
    padding: .6rem .9rem;
    border-top: 1px solid rgba(0,255,136,.1);
    background: rgba(8, 14, 10, 0.96);
    backdrop-filter: blur(8px);
    position: sticky;
    bottom: 0;
    z-index: 10;
}
/* Tool buttons column (emoji + GIF) */
.u4ea-msg-reply-tools {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: .05rem;
}
.u4ea-msg-tool-btn {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    color: #5a7a8a;
    border-radius: 5px;
    width: 32px; height: 28px;
    font-size: .72rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.u4ea-msg-tool-btn:hover {
    background: rgba(0,255,136,.1);
    color: #00ff88;
    border-color: rgba(0,255,136,.3);
}
/* Emoji picker popup */
.u4ea-msg-emoji-wrap { position: relative; }
.u4ea-msg-emoji-picker {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #0b1810;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 8px;
    padding: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    z-index: 20;
}
/* hidden attribute must override display:flex */
.u4ea-msg-emoji-picker[hidden] { display: none !important; }
.u4ea-msg-emoji-pick {
    background: none;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 1.1rem;
    width: 32px; height: 32px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, border-color .12s;
}
.u4ea-msg-emoji-pick:hover {
    background: rgba(0,255,136,.12);
    border-color: rgba(0,255,136,.25);
}

/* ── PM modal inbox link ─────────────────────────────────────────────────── */
.u4ea-pm-inbox-link {
    font-size:.68rem; color:#00d4ff; text-decoration:none;
    font-family:'Orbitron',monospace; letter-spacing:.5px;
    margin-right:.4rem; transition:color .15s;
}
.u4ea-pm-inbox-link:hover { color:#fff; }

/* ── Footer inbox badge ──────────────────────────────────────────────────── */
.footer-inbox-link { position:relative; }
.footer-inbox-badge {
    display:inline-flex; align-items:center; justify-content:center;
    background:#00ff88; color:#001a0d;
    border-radius:10px; font-size:.6rem; font-weight:900;
    min-width:16px; height:16px; padding:0 4px;
    vertical-align:middle; margin-left:4px;
    line-height:1;
}

/* ── Sidebar search ──────────────────────────────────────────────────────── */
.u4ea-msg-sidebar-search {
    padding: .5rem .9rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.u4ea-msg-search-input {
    width: 100%; box-sizing: border-box;
    -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    color: #c8d8c8; font-size: .76rem; font-family: inherit;
    padding: .32rem .75rem;
    outline: none; transition: border-color .15s, background .15s;
}
.u4ea-msg-search-input:focus { border-color: rgba(0,255,136,.3); background: rgba(0,255,136,.03); }
.u4ea-msg-search-input::placeholder { color: #3a5a4a; }
/* Hide browser's native search clear button */
.u4ea-msg-search-input::-webkit-search-cancel-button,
.u4ea-msg-search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

/* ── Sidebar unread badge in title ──────────────────────────────────────── */
.u4ea-msg-sidebar-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #00ff88; color: #001a0d;
    border-radius: 10px; font-size: .58rem; font-weight: 900;
    min-width: 16px; height: 16px; padding: 0 4px; line-height: 1;
    margin-left: .4rem; vertical-align: middle;
}
.u4ea-msg-sidebar-badge:empty { display: none; }

/* ── Thread list active accent ───────────────────────────────────────────── */
.u4ea-msg-thread-item.active {
    background: rgba(0,255,136,.08) !important;
    border-left: 3px solid #00ff88;
    padding-left: calc(1rem - 3px);
}
.u4ea-msg-thread-item { border-left: 3px solid transparent; }

/* ── Online status in thread header ─────────────────────────────────────── */
.u4ea-msg-thread-status {
    display: flex; flex-direction: column; gap: .1rem;
}
.u4ea-msg-thread-other-name { display: block; }
.u4ea-msg-online-status {
    font-size: .68rem; color: #4a6a5a;
    display: flex; align-items: center; gap: .3rem;
}
.u4ea-msg-online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 5px rgba(0,255,136,.6);
    flex-shrink: 0;
}
.u4ea-msg-online-status.online { color: #00ff88; }

/* ── Sound toggle ────────────────────────────────────────────────────────── */
.u4ea-msg-sound-btn {
    background: none; border: none; color: #4a6a5a;
    cursor: pointer; font-size: .8rem; padding: .2rem;
    transition: color .15s; line-height: 1;
}
.u4ea-msg-sound-btn:hover { color: #c8d8c8; }
.u4ea-msg-sound-btn.muted { opacity: .45; }

/* ── Read receipt ticks ──────────────────────────────────────────────────── */
.u4ea-msg-read-tick {
    font-size: .65rem;
    color: #3a5a4a;
    letter-spacing: -1px;
    line-height: 1;
    margin-left: .15rem;
    user-select: none;
}
.u4ea-msg-read-tick.read { color: #00d4ff; }

/* ── Character counter ───────────────────────────────────────────────────── */
.u4ea-msg-char-counter {
    display: block;
    font-size: .62rem; color: #2a4a3a;
    text-align: right; margin-top: .18rem;
    line-height: 1; align-self: flex-end; flex-shrink: 0;
    user-select: none; pointer-events: none;
}
.u4ea-msg-char-counter.warn { color: #f59e0b; }
.u4ea-msg-char-counter.danger { color: #ef4444; }
.u4ea-reply-status { display: none; font-size: .7rem; color: #ff4466; margin-top: .2rem; }
.u4ea-reply-status.error { display: block; }
.u4ea-msg-reply-bar-inner {
    display: flex; flex: 1; flex-direction: column; min-width: 0;
}

/* ── Quote block (reply-to preview) ──────────────────────────────────────── */
.u4ea-msg-quote-preview {
    display: none;
    align-items: center; gap: .5rem;
    padding: .35rem .7rem;
    background: rgba(0,212,255,.07);
    border-left: 3px solid rgba(0,212,255,.4);
    border-radius: 4px;
    margin-bottom: .35rem;
    font-size: .75rem; color: #8aabb8;
}
.u4ea-msg-quote-preview.visible { display: flex; }
.u4ea-msg-quote-preview-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u4ea-msg-quote-preview-text strong { color: #00d4ff; margin-right: .3rem; }
.u4ea-msg-quote-clear {
    background: none; border: none; color: #4a6a5a;
    cursor: pointer; font-size: .85rem; padding: 0 .2rem;
    line-height: 1; transition: color .15s; flex-shrink: 0;
}
.u4ea-msg-quote-clear:hover { color: #ff4b6e; }

/* ── Quoted message inside bubble ───────────────────────────────────────── */
.u4ea-msg-bubble-quote {
    display: block;
    background: rgba(0,0,0,.25);
    border-left: 3px solid rgba(0,212,255,.4);
    border-radius: 4px;
    padding: .3rem .6rem;
    margin-bottom: .35rem;
    font-size: .74rem; color: #7a9aaa;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.u4ea-msg-bubble-quote strong { color: #00d4ff; margin-right: .3rem; }

/* ── Reply button on hover ───────────────────────────────────────────────── */
.u4ea-msg-reply-btn {
    background: none; border: none; cursor: pointer;
    font-size: .65rem; color: #3a5a4a; opacity: 0;
    padding: 0 .1rem; line-height: 1;
    transition: opacity .15s, color .15s;
}
.u4ea-msg-bubble:hover .u4ea-msg-reply-btn { opacity: 1; }
.u4ea-msg-reply-btn:hover { color: #00d4ff; }

/* ── Message reactions ───────────────────────────────────────────────────── */
.u4ea-msg-reactions {
    display: flex; flex-wrap: wrap; gap: .25rem;
    margin-top: .3rem;
}
.u4ea-msg-reaction-chip {
    display: inline-flex; align-items: center; gap: .2rem;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: .1rem .5rem;
    font-size: .78rem; color: #8ab89a;
    cursor: pointer; transition: background .12s, border-color .12s;
    user-select: none; line-height: 1.5;
}
.u4ea-msg-reaction-chip:hover { background: rgba(0,255,136,.1); border-color: rgba(0,255,136,.3); }
.u4ea-msg-reaction-chip.mine {
    background: rgba(0,212,255,.12);
    border-color: rgba(0,212,255,.35);
    color: #00d4ff;
}
.u4ea-msg-reaction-count { font-size: .7rem; font-weight: 600; }

/* Reaction add button (+) */
.u4ea-msg-react-wrap { position: relative; display: inline-block; }
.u4ea-msg-react-btn {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: .1rem .45rem;
    font-size: .72rem; color: #3a5a4a; cursor: pointer;
    opacity: 0; transition: opacity .15s, background .12s, color .12s;
    line-height: 1.5;
}
.u4ea-msg-bubble:hover .u4ea-msg-react-btn,
.u4ea-msg-react-btn:focus { opacity: 1; }
.u4ea-msg-react-btn:hover { background: rgba(0,255,136,.1); color: #00ff88; border-color: rgba(0,255,136,.3); }

/* Reaction emoji picker popup */
.u4ea-msg-react-picker {
    position: fixed;
    background: linear-gradient(180deg,#0a1510,#0b1810);
    border: 1px solid rgba(0,255,136,.22);
    border-radius: 10px;
    padding: .5rem;
    display: flex; flex-wrap: wrap; gap: .2rem;
    max-width: min(220px, calc(100vw - 24px));
    box-shadow: 0 8px 28px rgba(0,0,0,.65);
    z-index: 99999;
}
.u4ea-msg-react-pick {
    background: none; border: 1px solid transparent; border-radius: 6px;
    font-size: 1.2rem; width: 32px; height: 32px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .1s, transform .1s;
    padding: .2rem;
}
.u4ea-msg-react-pick:hover { background: rgba(0,255,136,.12); transform: scale(1.25); }
.u4ea-msg-react-pick:hover { background: rgba(0,255,136,.12); border-color: rgba(0,255,136,.25); }

/* ── Link preview card ────────────────────────────────────────────────────── */
.u4ea-msg-link-card {
    display: flex; gap: .75rem; align-items: stretch;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px;
    margin-top: .35rem;
    text-decoration: none;
    transition: border-color .15s;
}
.u4ea-msg-link-card:hover { border-color: rgba(0,212,255,.3); }
.u4ea-msg-link-card-thumb {
    width: 72px; min-width: 72px;
    background: rgba(255,255,255,.04);
    object-fit: cover; display: block;
}
.u4ea-msg-link-card-body {
    display: flex; flex-direction: column; justify-content: center;
    gap: .15rem; padding: .5rem .65rem .5rem 0;
    min-width: 0;
}
.u4ea-msg-link-card-title {
    font-size: .78rem; font-weight: 600; color: #c8d8c8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.3;
}
.u4ea-msg-link-card-desc {
    font-size: .68rem; color: #5a7a8a;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.4;
}
.u4ea-msg-link-card-site {
    font-size: .64rem; color: #3a5a4a; text-transform: uppercase; letter-spacing: .4px;
    margin-top: auto;
}
/* Video card has a play overlay on the thumb */
.u4ea-msg-link-card.video .u4ea-msg-link-card-thumb-wrap {
    position: relative; width: 72px; min-width: 72px; flex-shrink: 0;
}
.u4ea-msg-link-card.video .u4ea-msg-link-card-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.45); color: #fff; font-size: .9rem;
}
/* Loading skeleton */
.u4ea-msg-link-card-skeleton {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .65rem;
    background: rgba(0,0,0,.2); border-radius: 6px;
    font-size: .72rem; color: #3a5a4a;
    animation: u4eaSkeletonPulse 1.4s ease infinite;
}
@keyframes u4eaSkeletonPulse { 0%,100% { opacity:.5; } 50% { opacity:1; } }

/* ── Empty state — improved ──────────────────────────────────────────────── */
.u4ea-msg-empty-title {
    font-family: 'Orbitron', monospace;
    font-size: .88rem; letter-spacing: .8px;
    color: #3a5a4a; margin: 0; font-weight: 700;
}
.u4ea-msg-empty-sub { font-size: .78rem; color: #2a4a3a; margin: 0; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 699px) {
    .u4ea-messages-wrap { position: relative; }
    .u4ea-msg-sidebar {
        width: 100%; min-width: unset; border-right: none;
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 30;
        max-height: 100vh; background: #060e0a;
        transform: translateX(0); transition: transform .25s;
    }
    .u4ea-msg-sidebar--hidden { transform: translateX(-110%); }
    .u4ea-msg-back-btn { display: block; }
    .u4ea-msg-bubble { max-width: 88%; }
    .u4ea-msg-thread-header { top: 0; }
    .u4ea-msg-link-card { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHASE 3 + 5: PROFILE PAGE ENHANCEMENTS
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Wide profile layout ─────────────────────────────────────────────────── */
.profile-container--wide {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ── Profile banner ──────────────────────────────────────────────────────── */
.profile-banner-wrap {
    position: relative;
    width: 100%;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}
.profile-banner {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #060e0a;
    border: 1px solid rgba(0,255,136,.1);
    border-radius: 14px 14px 0 0;
}
/* Default/empty banner — geometric pattern placeholder */
.profile-banner--empty {
    background-color: #070f0b;
    background-image:
        linear-gradient(135deg, rgba(0,255,136,.06) 25%, transparent 25%),
        linear-gradient(225deg, rgba(0,212,255,.04) 25%, transparent 25%),
        linear-gradient(315deg, rgba(0,255,136,.06) 25%, transparent 25%),
        linear-gradient(45deg,  rgba(0,212,255,.04) 25%, transparent 25%);
    background-size: 60px 60px;
    background-position: 0 0;
    border: 1px solid rgba(0,255,136,.08);
    position: relative;
}
/* When a real image is present, always cover — never tile */
.profile-banner:not(.profile-banner--empty) {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
/* "Upload your banner" centred prompt when empty and editable */
.profile-banner--empty::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
    pointer-events: none;
}
.profile-banner-controls {
    position: absolute;
    bottom: .8rem;
    right: 1rem;
    display: flex;
    gap: .5rem;
}
/* Extra visibility when banner is empty — show upload button more prominently */
.profile-banner--empty + .profile-banner-controls .profile-banner-upload-btn,
.profile-banner-controls--empty-state .profile-banner-upload-btn {
    background: rgba(0,255,136,.15);
    border-color: rgba(0,255,136,.4);
    color: #00ff88;
}
.profile-banner-upload-btn,
.profile-banner-remove-btn {
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.15);
    color: #c8d8c8;
    border-radius: 6px;
    padding: .3rem .7rem;
    font-size: .7rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s, color .15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
}
.profile-banner-upload-btn:hover { background: rgba(0,255,136,.25); color: #00ff88; border-color: rgba(0,255,136,.4); }
.profile-banner-remove-btn:hover { background: rgba(255,75,110,.25); color: #ff4b6e; border-color: rgba(255,75,110,.4); }
.profile-banner-controls--hint {
    position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%);
    display: flex; pointer-events: none;
}
.profile-banner-hint {
    font-size: .68rem; color: rgba(200,216,200,.3);
    background: rgba(0,0,0,.4); border-radius: 5px; padding: .25rem .6rem;
}
.profile-banner-status {
    font-size: .68rem; font-family: 'Exo 2', sans-serif;
    background: rgba(0,0,0,.6); border-radius: 4px;
    padding: .2rem .55rem; backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */
.profile-main-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.profile-sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card);
    border: 1px solid rgba(0,255,136,.1);
    border-radius: 0 0 0 14px;
    gap: .4rem;
}
.profile-avatar-preview--lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0,255,136,.3);
    background: rgba(0,0,0,.3);
    margin-bottom: .4rem;
}
.profile-avatar-preview--lg img { width:100%; height:100%; object-fit:cover; display:block; }
.profile-avatar-preview--lg .profile-avatar-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-family:'Orbitron',monospace; font-size:1.6rem; font-weight:900; color:#00ff88; }

.profile-display-name { font-family:'Orbitron',monospace; font-size:.82rem; font-weight:700; color:#ddeeff; margin:0; }
.profile-username { font-size:.72rem; color:#3a5a6a; margin:0; }
.profile-joined { font-size:.68rem; color:#3a5a6a; margin:0; }

.profile-sidebar-btn {
    display: inline-block;
    margin-top: .6rem;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.25);
    color: #00d4ff;
    border-radius: 6px;
    padding: .35rem .8rem;
    font-size: .68rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.profile-sidebar-btn:hover { background: rgba(0,212,255,.18); }

/* ── Content column ──────────────────────────────────────────────────────── */
.profile-content {
    flex: 1;
    min-width: 0;
    background: var(--card);
    border: 1px solid rgba(0,255,136,.1);
    border-radius: 0 0 14px 0;
    padding: 1.8rem 1.8rem 2rem;
}

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.profile-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    background: rgba(0,255,136,.03);
    border: 1px solid rgba(0,255,136,.08);
    border-radius: 8px;
    padding: .9rem 1.2rem;
    margin-bottom: 1.8rem;
}
.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    min-width: 64px;
    flex: 1;
}
.profile-stat-val {
    font-family: 'Orbitron', monospace;
    font-size: .9rem;
    font-weight: 700;
    color: #00ff88;
    line-height: 1;
}
.profile-stat-key {
    font-size: .6rem;
    color: #3a5a6a;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* ── Bio ─────────────────────────────────────────────────────────────────── */
.profile-bio-text { color: #c8d8e8; font-size: .88rem; line-height: 1.7; margin: 0; }

/* ── Custom fields ───────────────────────────────────────────────────────── */
.profile-custom-fields { display: flex; flex-direction: column; gap: .5rem; }
.profile-cf-row { display: flex; align-items: center; gap: .7rem; }
.profile-cf-icon { font-size: .9rem; width: 20px; text-align: center; flex-shrink: 0; }
.profile-cf-label { font-size: .72rem; color: #4a6a5a; width: 110px; flex-shrink: 0; }
.profile-cf-val { font-size: .82rem; color: #c8d8c8; }

/* ── Activity feed ───────────────────────────────────────────────────────── */
.profile-activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.profile-activity-item { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .8rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.profile-activity-item:last-child { border-bottom: none; }
.profile-activity-label { color: #4a6a5a; flex-shrink: 0; }
.profile-activity-link { color: #00d4ff; text-decoration: none; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-activity-link:hover { color: #00ff88; }
.profile-activity-date { color: #3a5a4a; font-size: .68rem; flex-shrink: 0; margin-left: auto; }

/* ── Profile select ──────────────────────────────────────────────────────── */
.profile-select {
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(0,255,136,.15);
    border-radius: 6px;
    color: #c8d8c8;
    font-size: .85rem;
    padding: .45rem .7rem;
    outline: none;
    width: 100%;
    transition: border-color .15s;
}
.profile-select:focus { border-color: rgba(0,255,136,.4); }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .profile-main-row { flex-direction: column; }
    .profile-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; border-radius: 0; gap: .5rem; padding: 1rem; }
    .profile-avatar-preview--lg { width: 70px; height: 70px; margin-right: .6rem; margin-bottom: 0; }
    .profile-content { border-radius: 0 0 14px 14px; padding: 1.2rem 1rem 1.5rem; }
    .profile-stats-bar { gap: .4rem; }
    .profile-stat { min-width: 48px; }
    .profile-banner { height: 140px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHASE 3: BBPRESS PROFILE ENHANCEMENTS (injected via hooks)
   ══════════════════════════════════════════════════════════════════════════════ */

.u4ea-profile-banner-wrap {
    margin: -1rem -1rem 1.2rem;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    position: relative;         /* contain the absolute controls */
}
.u4ea-profile-banner {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #060e0a;
    border-bottom: 1px solid rgba(0,255,136,.08);
}
/* Empty / default state — geometric pattern matching standalone profile */
.u4ea-profile-banner--empty {
    background-color: #070f0b;
    background-image:
        linear-gradient(135deg, rgba(0,255,136,.05) 25%, transparent 25%),
        linear-gradient(225deg, rgba(0,212,255,.03) 25%, transparent 25%),
        linear-gradient(315deg, rgba(0,255,136,.05) 25%, transparent 25%),
        linear-gradient(45deg,  rgba(0,212,255,.03) 25%, transparent 25%);
    background-size: 50px 50px;
    background-position: 0 0;
}
/* When a real image is applied via inline style, force cover regardless */
.u4ea-profile-banner:not(.u4ea-profile-banner--empty) {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
/* Upload / remove controls — overlay bottom-right of the banner */
.u4ea-profile-banner-controls {
    position: absolute;
    bottom: .6rem;
    right: .7rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.u4ea-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(0,0,0,.62);
    border: 1px solid rgba(255,255,255,.15);
    color: #c8d8c8;
    border-radius: 5px;
    padding: .28rem .65rem;
    font-size: .68rem;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .15s, color .15s, border-color .15s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}
.u4ea-banner-btn:hover {
    background: rgba(0,255,136,.2);
    color: #00ff88;
    border-color: rgba(0,255,136,.4);
}
.u4ea-banner-btn--remove:hover {
    background: rgba(255,75,110,.2);
    color: #ff4b6e;
    border-color: rgba(255,75,110,.4);
}
/* Slightly more visible when banner is empty so it's easy to spot */
.u4ea-profile-banner--empty ~ .u4ea-profile-banner-controls .u4ea-banner-btn,
.u4ea-profile-banner-controls .u4ea-banner-btn:first-child {
    background: rgba(0,0,0,.7);
}
.u4ea-banner-status {
    font-size: .65rem;
    font-family: 'Exo 2', sans-serif;
    background: rgba(0,0,0,.65);
    border-radius: 4px;
    padding: .18rem .5rem;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    pointer-events: none;
}

/* ── Banner edit fieldset (bbPress Edit Profile page) ────────────────────── */
.u4ea-banner-fieldset {
    margin-top: 1.5rem;
    border: 1px solid rgba(0,255,136,.12) !important;
    border-radius: 8px;
    padding: 0 !important;
    overflow: hidden;
}
.u4ea-banner-fieldset-legend {
    font-family: 'Orbitron', monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00ff88;
    padding: 0 .6rem;
    margin-left: .8rem;
}
.u4ea-banner-edit-preview {
    width: 100%;
    height: 130px;
    background-color: #070f0b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.u4ea-banner-edit-preview--empty {
    background-image:
        linear-gradient(135deg, rgba(0,255,136,.05) 25%, transparent 25%),
        linear-gradient(225deg, rgba(0,212,255,.03) 25%, transparent 25%),
        linear-gradient(315deg, rgba(0,255,136,.05) 25%, transparent 25%),
        linear-gradient(45deg,  rgba(0,212,255,.03) 25%, transparent 25%);
    background-size: 50px 50px;
    background-position: 0 0;
}
.u4ea-banner-edit-preview:not(.u4ea-banner-edit-preview--empty) {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.u4ea-banner-edit-no-banner {
    font-size: .7rem;
    color: rgba(200,216,200,.25);
    font-family: 'Orbitron', monospace;
    letter-spacing: .5px;
    pointer-events: none;
}
.u4ea-banner-edit-controls {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(0,255,136,.08);
}
.u4ea-banner-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0,255,136,.1);
    border: 1px solid rgba(0,255,136,.3);
    color: #00ff88;
    border-radius: 6px;
    padding: .38rem .9rem;
    font-family: 'Orbitron', monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.u4ea-banner-upload-btn:hover:not(:disabled) {
    background: rgba(0,255,136,.22);
    border-color: rgba(0,255,136,.55);
}
.u4ea-banner-upload-btn:disabled { opacity: .5; cursor: default; }
.u4ea-banner-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,75,110,.06);
    border: 1px solid rgba(255,75,110,.2);
    color: #c87a8a;
    border-radius: 6px;
    padding: .38rem .9rem;
    font-family: 'Orbitron', monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.u4ea-banner-remove-btn:hover:not(:disabled) {
    background: rgba(255,75,110,.18);
    border-color: rgba(255,75,110,.45);
    color: #ff4b6e;
}
.u4ea-banner-remove-btn:disabled { opacity: .5; cursor: default; }
.u4ea-banner-edit-hint { font-size: .65rem; color: #3a5a4a; }
.u4ea-banner-edit-status { font-size: .68rem; font-family: 'Exo 2', sans-serif; margin-left: auto; }

/* ── Hide native bbPress role fieldset on profile edit (replaced by ⚙ Role Management) ── */
/* Targets the fieldset containing the bbPress role select by name and by ID fallback  */
#bbpress-forums fieldset.bbp-form:has(select[name="bbp-forums-role"]),
#bbpress-forums fieldset.bbp-form:has(select#bbp_user_forum_role) {
    display: none !important;
}

/* ── Banner Crop Modal (Cropper.js) ────────────────────────────────────────── */
.u4ea-crop-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.u4ea-crop-modal.is-open { display: flex; }
.u4ea-crop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.u4ea-crop-modal-box {
    position: relative;
    z-index: 1;
    background: #0a1610;
    border: 1px solid rgba(0, 255, 136, .28);
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 255, 136, .08), 0 28px 56px rgba(0, 0, 0, .7);
    width: min(720px, 94vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.u4ea-crop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1.1rem;
    border-bottom: 1px solid rgba(0, 255, 136, .1);
    flex-shrink: 0;
}
.u4ea-crop-modal-title {
    font-family: 'Orbitron', monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ff88;
}
.u4ea-crop-modal-close {
    background: none;
    border: none;
    color: #4a7a6a;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .45rem;
    border-radius: 4px;
    transition: color .15s;
}
.u4ea-crop-modal-close:hover { color: #ff4b6e; }
.u4ea-crop-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 1rem;
    background: #060e0a;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 60vh;
}
.u4ea-crop-modal-body img { max-width: 100%; display: block; }
.u4ea-crop-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.1rem;
    border-top: 1px solid rgba(0, 255, 136, .1);
    flex-shrink: 0;
    flex-wrap: wrap;
}
.u4ea-crop-hint {
    font-size: .63rem;
    color: #3a6a5a;
    font-style: italic;
}
.u4ea-crop-save-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0, 255, 136, .1);
    border: 1px solid rgba(0, 255, 136, .4);
    border-radius: 6px;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .48rem 1.2rem;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    white-space: nowrap;
}
.u4ea-crop-save-btn:hover:not(:disabled) {
    background: rgba(0, 255, 136, .22);
    box-shadow: 0 0 14px rgba(0, 255, 136, .3);
}
.u4ea-crop-save-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Override Cropper.js defaults to match dark theme */
.cropper-view-box,
.cropper-face { border-radius: 0; }
.cropper-line, .cropper-point { background-color: #00ff88; }
.cropper-view-box { outline-color: rgba(0, 255, 136, .75); }
.cropper-modal { background: rgba(0, 10, 6, .7); }

.u4ea-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    background: rgba(0,255,136,.03);
    border: 1px solid rgba(0,255,136,.08);
    border-radius: 8px;
    padding: .8rem 1rem;
    margin: 1rem 0;
}
.u4ea-stat-item { display: flex; flex-direction: column; align-items: center; min-width: 54px; gap: .1rem; }
.u4ea-stat-value { font-family:'Orbitron',monospace; font-size:.8rem; font-weight:700; color:#00ff88; line-height:1; }
.u4ea-stat-seen { font-size: .65rem; }
.u4ea-stat-label { font-size:.58rem; color:#3a5a6a; text-transform:uppercase; letter-spacing:.7px; }

.u4ea-profile-custom-fields { display:flex; flex-direction:column; gap:.45rem; margin:1rem 0; }
.u4ea-pcf-row { display:flex; align-items:center; gap:.6rem; font-size:.8rem; }
.u4ea-pcf-icon { width:18px; text-align:center; flex-shrink:0; }
.u4ea-pcf-label { color:#4a6a5a; width:110px; flex-shrink:0; font-size:.72rem; }
.u4ea-pcf-val { color:#c8d8c8; }

.u4ea-profile-activity { margin: 1.2rem 0 0; }
.u4ea-profile-activity-title { font-family:'Orbitron',monospace; font-size:.65rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:#00ff88; margin:0 0 .8rem; }
.u4ea-activity-list { list-style:none; margin:0; padding:0; }
.u4ea-activity-item { display:flex; align-items:baseline; gap:.5rem; flex-wrap:wrap; font-size:.78rem; padding:.35rem 0; border-bottom:1px solid rgba(255,255,255,.04); }
.u4ea-activity-item:last-child { border-bottom:none; }
.u4ea-activity-label { color:#4a6a5a; flex-shrink:0; }
.u4ea-activity-link { color:#00d4ff; text-decoration:none; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.u4ea-activity-link:hover { color:#00ff88; }
.u4ea-activity-date { color:#3a5a4a; font-size:.65rem; flex-shrink:0; margin-left:auto; }

/* ══════════════════════════════════════════════════════════════════════════════
   AUDIT LOG TAB
   ══════════════════════════════════════════════════════════════════════════════ */
.cp-log-toolbar { display:flex; gap:.6rem; align-items:center; margin-bottom:1rem; flex-wrap:wrap; }
.cp-log-wrap { overflow-x:auto; }
.cp-log-table { width:100%; border-collapse:collapse; font-size:.78rem; }
.cp-log-table thead th {
    text-align:left; padding:.5rem .7rem;
    background:rgba(0,255,136,.04); border-bottom:1px solid rgba(0,255,136,.15);
    font-family:'Orbitron',monospace; font-size:.6rem; font-weight:700;
    letter-spacing:.8px; text-transform:uppercase; color:#5a8a6a;
}
.cp-log-table tbody tr { border-bottom:1px solid rgba(255,255,255,.04); }
.cp-log-table tbody tr:hover { background:rgba(0,255,136,.03); }
.cp-log-table td { padding:.45rem .7rem; vertical-align:middle; }
.cp-log-date   { color:#3a5a4a; font-size:.7rem; white-space:nowrap; }
.cp-log-actor  { color:#c8d8c8; font-weight:600; }
.cp-log-target { color:#8aaa9a; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cp-log-detail { color:#5a7a6a; font-size:.72rem; max-width:260px; }
.cp-log-tag {
    display:inline-block; padding:.15rem .45rem; border-radius:4px; font-size:.65rem;
    font-family:'Orbitron',monospace; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
    background:rgba(0,255,136,.08); border:1px solid rgba(0,255,136,.2); color:#00ff88;
}
.cp-log-tag--user_banned, .cp-log-tag--user_muted   { background:rgba(255,75,110,.08); border-color:rgba(255,75,110,.2); color:#ff4b6e; }
.cp-log-tag--user_unbanned, .cp-log-tag--user_unmuted { background:rgba(0,212,255,.08); border-color:rgba(0,212,255,.2); color:#00d4ff; }
.cp-log-tag--warning_issued    { background:rgba(255,180,0,.08); border-color:rgba(255,180,0,.2); color:#ffb400; }
.cp-log-tag--chat_message_deleted { background:rgba(255,150,50,.08); border-color:rgba(255,150,50,.2); color:#ff9632; }
.cp-log-pagination { margin-top:.8rem; display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }

/* ══════════════════════════════════════════════════════════════════════════════
   GAME STORE EMBED CARDS
   ══════════════════════════════════════════════════════════════════════════════ */
.u4ea-store-card {
    display: block;
    margin: .6rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,255,136,.18);
    background: rgba(0,0,0,.35);
    max-width: 420px;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.u4ea-store-card:hover { border-color: rgba(0,255,136,.45); box-shadow: 0 4px 18px rgba(0,255,136,.12); }
.u4ea-store-card--epic { border-color: rgba(100,80,200,.35); }
.u4ea-store-card--epic:hover { border-color: rgba(100,80,200,.6); box-shadow: 0 4px 18px rgba(100,80,200,.12); }
.u4ea-store-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.u4ea-store-card-banner {
    width: 100%; height: 180px;
    object-fit: cover; flex-shrink: 0;
    background: #0a0e14;
    display: block;
}
.u4ea-store-card-info {
    padding: .65rem .85rem;
    display: flex; flex-direction: column; gap: .3rem;
}
.u4ea-store-card-badge {
    font-size: .6rem; font-family: 'Orbitron', monospace;
    font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    color: #4a8a6a;
}
.u4ea-store-card--epic .u4ea-store-card-badge { color: #8060c0; }
.u4ea-store-card-title {
    font-size: .88rem; font-weight: 700; color: #c8e8c8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.u4ea-store-card-synopsis {
    font-size: .75rem; color: #5a7a6a; margin: 0; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Emoji manager ───────────────────────────────────────────────────────────── */
/* ── Emoji chip tray ─────────────────────────────────────────────────────────── */
.cp-emoji-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .75rem;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 7px;
    min-height: 52px;
    align-items: center;
}
.cp-emoji-chips-wrap.drag-over {
    border-color: rgba(0,255,136,.3);
    background: rgba(0,255,136,.03);
}
.cp-emoji-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(0,255,136,.15);
    border-radius: 6px;
    padding: .35rem .55rem;
    cursor: grab;
    user-select: none;
    transition: border-color .15s, background .15s;
}
.cp-emoji-chip:hover { border-color: rgba(0,255,136,.35); background: rgba(0,255,136,.05); }
.cp-emoji-chip.dragging { opacity: .35; border-style: dashed; }
.cp-emoji-chip-icon { font-size: 1.94rem; line-height: 1; pointer-events: none; }
.cp-emoji-chip-icon.u4ea-emoji-img {
    width: 2.30rem !important;
    height: 2.30rem !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    border-radius: 3px !important;
}
.cp-emoji-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .6rem;
    color: #3a5a4a;
    padding: 0;
    line-height: 1;
    width: 14px; height: 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px;
    transition: color .12s, background .12s;
}
.cp-emoji-chip-remove:hover { color: #ff4b6e; background: rgba(255,75,110,.12); }
.cp-emoji-status {
    font-size: .72rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    letter-spacing: .4px;
    transition: opacity .3s;
}
.cp-emoji-status.success { color: #00ff88; }
.cp-emoji-status.error   { color: #ff4b6e; }
/* Extra log tag colours */
.cp-log-tag--forum_topic_trashed, .cp-log-tag--forum_reply_trashed,
.cp-log-tag--forum_topic_deleted, .cp-log-tag--forum_reply_deleted {
    background: rgba(255,100,50,.08); border-color: rgba(255,100,50,.25); color: #ff6432;
}
.cp-log-tag--emojis_updated {
    background: rgba(180,100,255,.08); border-color: rgba(180,100,255,.25); color: #b464ff;
}


/* ══════════════════════════════════════════════════════════════════════════════
   FREE GAMES PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Page wrap ───────────────────────────────────────────────────────────────── */
.u4ea-fg-wrap {
    min-height: 100vh;
    background: #090d12;
    padding-bottom: 5rem;
    padding-top: 80px; /* clear the fixed site header */
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.u4ea-fg-hero {
    background: linear-gradient(160deg, #0a1018 0%, #0d1520 60%, #0a1018 100%);
    border-bottom: 1px solid rgba(0,255,136,.1);
    padding: 3rem 1.5rem 2.5rem;
    padding-top: calc(64px + 3rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.admin-bar .u4ea-fg-hero { padding-top: calc(96px + 3rem); }
@media screen and (max-width: 782px) {
    .admin-bar .u4ea-fg-hero { padding-top: calc(110px + 3rem); }
}
.u4ea-fg-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(0,255,136,.06) 0%, transparent 70%);
    pointer-events: none;
}
.u4ea-fg-hero-inner { position: relative; max-width: 640px; margin: 0 auto; }
.u4ea-fg-hero-badge {
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #00ff88;
    background: rgba(0,255,136,.08);
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 20px;
    padding: .3rem .9rem;
    margin-bottom: 1rem;
}
.u4ea-fg-hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 .6rem;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(0,255,136,.2);
}
.u4ea-fg-hero-sub {
    font-size: .92rem;
    color: #5a7a6a;
    margin: 0 0 .5rem;
    line-height: 1.5;
}
.u4ea-fg-hero-updated {
    font-size: .68rem;
    color: #3a5a4a;
    font-family: 'Orbitron', monospace;
    letter-spacing: .5px;
    margin: 0;
}

/* ── Subscribe button ─────────────────────────────────────────────────────── */
.u4ea-fg-sub-wrap {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.u4ea-fg-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.2rem;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(0,255,136,.25);
    border-radius: 24px;
    color: #8aaa9a;
    font-family: 'Orbitron', monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.u4ea-fg-sub-btn:hover:not(:disabled) {
    border-color: rgba(0,255,136,.5);
    color: #00ff88;
    background: rgba(0,255,136,.06);
}
.u4ea-fg-sub-btn.is-subbed {
    background: rgba(0,255,136,.1);
    border-color: rgba(0,255,136,.4);
    color: #00ff88;
}
.u4ea-fg-sub-btn.is-subbed:hover:not(:disabled) {
    background: rgba(255,75,75,.08);
    border-color: rgba(255,75,75,.3);
    color: #ff4b6e;
}
.u4ea-fg-sub-btn.is-subbed:hover .u4ea-fg-sub-label::after { content: ' (click to unsubscribe)'; font-size:.55rem; opacity:.7; }
.u4ea-fg-sub-btn:disabled { opacity: .5; cursor: default; }
.u4ea-fg-sub-icon { font-size: .9rem; }
@keyframes fg-sub-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,255,136,.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0,255,136,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); }
}
.u4ea-fg-sub-btn.pulse { animation: fg-sub-pulse .6s ease-out; }
.u4ea-fg-sub-count {
    font-size: .62rem;
    color: #3a5a4a;
    font-family: 'Orbitron', monospace;
    letter-spacing: .4px;
}
.u4ea-fg-sub-login {
    margin-top: 1rem;
    font-size: .75rem;
    color: #3a5a4a;
}
.u4ea-fg-sub-login a { color: #00d4ff; text-decoration: none; }
.u4ea-fg-sub-login a:hover { color: #00ff88; }

/* ── Body ────────────────────────────────────────────────────────────────────── */
.u4ea-fg-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem 3rem;
}

/* ── Platform nav tabs ───────────────────────────────────────────────────────── */
.u4ea-fg-platform-nav {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.u4ea-fg-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: #5a7a6a;
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
}
.u4ea-fg-platform-btn:hover:not([disabled]) {
    border-color: rgba(0,255,136,.3);
    color: #c8d8c8;
    background: rgba(0,255,136,.04);
}
.u4ea-fg-platform-btn.active {
    background: rgba(0,255,136,.08);
    border-color: rgba(0,255,136,.35);
    color: #00ff88;
}
.u4ea-fg-platform-btn--soon { opacity: .45; cursor: not-allowed; }
.u4ea-fg-soon-badge {
    font-size: .5rem;
    background: rgba(255,180,0,.15);
    border: 1px solid rgba(255,180,0,.25);
    color: #ffb400;
    border-radius: 4px;
    padding: .1rem .3rem;
    margin-left: .2rem;
}
.u4ea-fg-platform-icon { font-size: .9rem; }

/* ── Platform panels ─────────────────────────────────────────────────────────── */
.u4ea-fg-platform-panel { display: none; }
.u4ea-fg-platform-panel.active { display: block; }

/* ── Section ─────────────────────────────────────────────────────────────────── */
.u4ea-fg-section { margin-bottom: 2.5rem; padding: 0 !important; }
.u4ea-fg-section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.2rem;
}
.u4ea-fg-section-title {
    font-family: 'Orbitron', monospace;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #c8d8c8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.u4ea-fg-section-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.u4ea-fg-section-dot--live {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0,255,136,.6);
    animation: fg-pulse 2s ease-in-out infinite;
}
@keyframes fg-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(0,255,136,.5); }
    50%       { box-shadow: 0 0 14px rgba(0,255,136,.9); }
}
.u4ea-fg-section-dot--upcoming {
    background: #ffb400;
    box-shadow: 0 0 8px rgba(255,180,0,.4);
}
.u4ea-fg-section-count {
    font-size: .62rem;
    font-family: 'Orbitron', monospace;
    color: #3a5a4a;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: .15rem .6rem;
}
.u4ea-fg-empty {
    color: #3a5a4a;
    font-size: .82rem;
    padding: 1.5rem;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px;
    text-align: center;
}

/* ── Game card grid ──────────────────────────────────────────────────────────── */
.u4ea-fg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

/* ── Game card ───────────────────────────────────────────────────────────────── */
.u4ea-fg-card {
    background: #0d1520;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.u4ea-fg-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,255,136,.25);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.u4ea-fg-card--free { border-color: rgba(0,255,136,.12); }
.u4ea-fg-card--upcoming { border-color: rgba(255,180,0,.12); }
.u4ea-fg-card--upcoming:hover { border-color: rgba(255,180,0,.35); }

.u4ea-fg-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Banner */
.u4ea-fg-card-banner-wrap {
    position: relative;
    width: 100%;
    padding-top: 50%; /* 2:1 ratio */
    background: #090d12;
    overflow: hidden;
}
.u4ea-fg-card-banner {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.u4ea-fg-card:hover .u4ea-fg-card-banner { transform: scale(1.03); }
.u4ea-fg-card-banner-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d1520, #0a1018);
}

/* Badges overlaid on banner */
.u4ea-fg-card-badge {
    position: absolute;
    top: .6rem; left: .6rem;
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: .22rem .55rem;
    border-radius: 5px;
    backdrop-filter: blur(6px);
}
.u4ea-fg-card-badge--free {
    background: rgba(0,255,136,.85);
    color: #050d08;
}
.u4ea-fg-card-badge--upcoming {
    background: rgba(255,180,0,.85);
    color: #1a0d00;
}
.u4ea-fg-card-was {
    position: absolute;
    top: .6rem; right: .6rem;
    font-size: .65rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    border-radius: 5px;
    padding: .2rem .5rem;
    text-decoration: line-through;
    text-decoration-color: rgba(255,75,75,.8);
}

/* Card body */
.u4ea-fg-card-body {
    padding: .9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.u4ea-fg-card-platform {
    font-size: .58rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #5a7a6a;
}
.u4ea-fg-card--free .u4ea-fg-card-platform { color: #2a6a4a; }
.u4ea-fg-card--upcoming .u4ea-fg-card-platform { color: #6a5a2a; }
.u4ea-fg-card-title {
    font-family: 'Exo 2', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #d8e8d8;
    margin: 0;
    line-height: 1.3;
}
.u4ea-fg-card-countdown {
    font-size: .72rem;
    color: #5a7a6a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .2rem;
    margin-top: .1rem;
}
.u4ea-fg-card-countdown--urgent { color: #00c870; }
.u4ea-fg-card-date { color: #3a5a4a; }

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .u4ea-fg-hero { padding: 3rem 1rem 2rem; }
    .u4ea-fg-body { padding: 1.2rem 1rem; }
    .u4ea-fg-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .u4ea-fg-card-title { font-size: .82rem; }
}
@media (max-width: 380px) {
    .u4ea-fg-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ANNOUNCEMENT BANNER
   ══════════════════════════════════════════════════════════════════════════════ */
/* Announce wrap — fixed below the header so it never affects document flow.
   Slides up and fades out on dismiss with zero content jump. */
.u4ea-announce-wrap {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 995;
    overflow: hidden;
}
.admin-bar .u4ea-announce-wrap { top: 96px; }
@media screen and (max-width: 782px) {
    .admin-bar .u4ea-announce-wrap { top: 110px; }
}
.u4ea-announce-banner {
    background: var(--ann-bg, rgba(0,212,255,.12));
    border-bottom: 1px solid var(--ann-border, rgba(0,212,255,.35));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .55rem 3rem .55rem 1.5rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.u4ea-announce-icon {
    font-size: .95rem;
    flex-shrink: 0;
}
.u4ea-announce-message-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
    justify-content: center;
}
.u4ea-announce-message {
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    color: var(--ann-text, #00d4ff);
    line-height: 1.4;
    text-align: center;
}
.u4ea-announce-timer {
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    font-weight: 700;
    color: var(--ann-text, #00d4ff);
    opacity: .5;
    white-space: nowrap;
    min-width: 2.5rem;
}
.u4ea-announce-message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
.u4ea-announce-message a:hover { opacity: .8; }
.u4ea-announce-close {
    position: absolute;
    right: .8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ann-text, #00d4ff);
    opacity: .55;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .35rem;
    border-radius: 4px;
    transition: opacity .15s, background .15s;
    flex-shrink: 0;
}
.u4ea-announce-close:hover {
    opacity: 1;
    background: rgba(255,255,255,.08);
}

/* ══════════════════════════════════════════════════════════════════════════════
   GALLERY — SORT BAR
   ══════════════════════════════════════════════════════════════════════════════ */
.album-shots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.album-shots-heading { margin: 0; }
.album-sort-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.album-sort-label {
    font-size: .68rem;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #3a5a6a;
}
.album-sort-btn {
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    color: #5a7a8a;
    font-family: 'Orbitron', monospace;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: .3rem .7rem;
    cursor: pointer;
    transition: all .15s;
}
.album-sort-btn:hover {
    border-color: rgba(0,212,255,.3);
    color: #a0c8d8;
}
.album-sort-btn.active {
    background: rgba(0,212,255,.1);
    border-color: rgba(0,212,255,.35);
    color: #00d4ff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GALLERY — LIGHTBOX TAG PANEL
   ══════════════════════════════════════════════════════════════════════════════ */
.lightbox-tags-panel {
    padding: .5rem 1rem .75rem;
    border-top: 1px solid rgba(255,255,255,.05);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: all;
    position: relative;
    z-index: 10001;
}
.lb-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    min-height: 1.4rem;
    align-items: center;
}
.lb-tags-empty {
    font-size: .68rem;
    color: #3a5a6a;
    font-style: italic;
}
.lb-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 20px;
    padding: .18rem .55rem .18rem .45rem;
    font-size: .7rem;
    transition: border-color .15s;
}
.lb-tag-pill:hover { border-color: rgba(0,212,255,.4); }
.lb-tag-name {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}
.lb-tag-name:hover { text-decoration: underline; }
.lb-tag-remove {
    background: none;
    border: none;
    color: #3a5a6a;
    cursor: pointer;
    font-size: .8rem;
    line-height: 1;
    padding: 0;
    margin-left: .1rem;
    transition: color .15s;
    flex-shrink: 0;
}
.lb-tag-remove:hover { color: #ff4466; }

/* Tag input */
.lb-tag-input-wrap { position: relative; }
.lb-tag-input-inner { position: relative; }
.lb-tag-input {
    width: 100%;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: #c8d8e8;
    font-family: 'Exo 2', sans-serif;
    font-size: .78rem;
    padding: .4rem .75rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s;
}
.lb-tag-input:focus { border-color: rgba(0,212,255,.4); }
.lb-tag-input::placeholder { color: #3a5a6a; }

/* Typeahead dropdown */
.lb-tag-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #0d1520;
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.lb-tag-suggestion {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: #c8d8e8;
    font-family: 'Exo 2', sans-serif;
    font-size: .78rem;
    padding: .5rem .75rem;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}
.lb-tag-suggestion:last-child { border-bottom: none; }
.lb-tag-suggestion:hover { background: rgba(0,212,255,.08); }
.lb-tag-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CHAT — EMOJI PICKER
   ══════════════════════════════════════════════════════════════════════════════ */
.u4ea-chat-emoji-wrap {
    position: relative;
    flex-shrink: 0;
}
.u4ea-chat-emoji-btn {
    background: rgba(0,255,136,.06) !important;
    border: 1px solid rgba(0,255,136,.15) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: .95rem !important;
    line-height: 1 !important;
    padding: .38rem .45rem !important;
    transition: background .15s, border-color .15s !important;
    display: flex !important;
    align-items: center !important;
}
.u4ea-chat-emoji-btn:hover {
    background: rgba(0,255,136,.14) !important;
    border-color: rgba(0,255,136,.35) !important;
}
.u4ea-chat-emoji-picker {
    position: absolute !important;
    bottom: calc(100% + 6px) !important;
    left: 0 !important;
    background: #0d1520 !important;
    border: 1px solid rgba(0,255,136,.2) !important;
    border-radius: 10px !important;
    padding: .4rem !important;
    flex-wrap: wrap !important;
    gap: .2rem !important;
    width: max-content !important;
    max-width: 200px !important;
    z-index: 10000 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.6) !important;
}
.u4ea-chat-emoji-picker:not([hidden]) {
    display: flex !important;
}
.u4ea-chat-emoji-pick {
    background: none !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    padding: .3rem !important;
    transition: background .12s, border-color .12s !important;
}
.u4ea-chat-emoji-pick:hover {
    background: rgba(0,255,136,.1) !important;
    border-color: rgba(0,255,136,.25) !important;
}
/* Emoji picker — on mobile use fixed positioning so it doesn't overflow the viewport */
@media (max-width: 768px) {
    .u4ea-chat-emoji-picker {
        position: fixed !important;
        bottom: calc(55vh + .5rem) !important;
        left: .75rem !important;
        right: .75rem !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FORUM @MENTIONS
   ══════════════════════════════════════════════════════════════════════════════ */

/* @mention link inside post content */
.u4ea-mention {
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
    background: rgba(0,212,255,.08);
    border-radius: 4px;
    padding: .05em .3em;
    transition: background .15s, color .15s;
}
.u4ea-mention:hover {
    background: rgba(0,212,255,.18);
    color: #7aeeff;
    text-decoration: none;
}

/* Autocomplete dropdown */
.u4ea-mention-dropdown {
    position: absolute;
    z-index: 99999;
    background: #0d1520;
    border: 1px solid rgba(0,212,255,.25);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.7);
    min-width: 220px;
    max-width: 280px;
    overflow: hidden;
    padding: .25rem 0;
}
.u4ea-mention-suggestion {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: #c8d8e8;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-size: .8rem;
    padding: .45rem .75rem;
    text-align: left;
    transition: background .12s;
}
.u4ea-mention-suggestion:last-child { border-bottom: none; }
.u4ea-mention-suggestion:hover,
.u4ea-mention-suggestion:focus {
    background: rgba(0,212,255,.1);
    outline: none;
}
.u4ea-mention-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0,212,255,.2);
}
.u4ea-mention-name {
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.u4ea-mention-login {
    font-size: .68rem;
    color: #3a6a8a;
    flex-shrink: 0;
}

/* Chat @mention dropdown — appears above the input (chat sits at bottom of screen) */
.u4ea-chat-mention-dropdown {
    position: absolute !important;
}

/* @mention pill in rendered messages */
.u4ea-chat-mention-pill {
    display: inline;
    color: #4caf7d;
    font-weight: 600;
    background: rgba(76, 175, 125, 0.12);
    border-radius: 3px;
    padding: 0 3px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GALLERY ALBUM — TAGGED MEMBERS BAR
   ══════════════════════════════════════════════════════════════════════════════ */
.album-tagged-members {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.album-tagged-label {
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3a6a8a;
    flex-shrink: 0;
}
.album-tagged-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.album-tagged-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(0,212,255,.07);
    border: 1px solid rgba(0,212,255,.18);
    border-radius: 20px;
    padding: .2rem .6rem .2rem .25rem;
    text-decoration: none;
    color: #00d4ff;
    font-size: .72rem;
    font-weight: 600;
    transition: background .15s, border-color .15s;
}
.album-tagged-pill:hover {
    background: rgba(0,212,255,.15);
    border-color: rgba(0,212,255,.4);
    color: #7aeeff;
}
.album-tagged-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0,212,255,.25);
}
.album-tagged-name { white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════════════════
   FORUM TOOLBAR — FORMATTING EXTENSIONS
   ══════════════════════════════════════════════════════════════════════════════ */

/* Separator */
.u4ea-bbp-sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(0,255,136,.15);
    margin: 0 .1rem;
    vertical-align: middle;
}

/* Colour picker popup */
.u4ea-bbp-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .4rem;
    background: #0d1520;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.6);
    position: relative;
    z-index: 1000;
    margin-top: 2px;
    max-width: 220px;
}
.u4ea-bbp-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
    transition: transform .1s, border-color .1s;
}
.u4ea-bbp-color-swatch:hover {
    transform: scale(1.2);
    border-color: #fff;
}

/* Size picker popup */
.u4ea-bbp-size-picker {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .4rem .6rem;
    background: #0d1520;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.6);
    position: relative;
    z-index: 1000;
    margin-top: 2px;
}
.u4ea-bbp-size-opt {
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    color: #c8d8e8;
    cursor: pointer;
    padding: .2rem .5rem;
    font-family: inherit;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.u4ea-bbp-size-opt:hover {
    background: rgba(0,255,136,.12);
    border-color: #00ff88;
    color: #00ff88;
}

/* ── Post content formatting ───────────────────────────────────────────────── */

/* Spoiler */
.u4ea-spoiler {
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 8px;
    margin: .5rem 0;
    overflow: hidden;
}
.u4ea-spoiler-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    font-family: 'Orbitron', monospace;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #00d4ff;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.u4ea-spoiler-label::before { content: '▶'; font-size: .55rem; transition: transform .2s; }
.u4ea-spoiler[open] .u4ea-spoiler-label::before { transform: rotate(90deg); }
.u4ea-spoiler-label:hover { background: rgba(0,212,255,.06); }
.u4ea-spoiler-body {
    padding: .6rem .75rem;
    border-top: 1px solid rgba(0,212,255,.1);
    font-size: .85rem;
    line-height: 1.6;
}

/* Lists */
#bbpress-forums .u4ea-post-list {
    padding-left: 1.5rem;
    margin: .4rem 0;
}
#bbpress-forums .u4ea-post-list li {
    margin-bottom: .2rem;
    line-height: 1.5;
}

/* Horizontal rule */
#bbpress-forums .u4ea-post-hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.1);
    margin: .75rem 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   STREAMS PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

.u4ea-streams-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.u4ea-streams-hero {
    text-align: center;
    padding: 3.5rem 1rem 2rem;
    padding-top: calc(64px + 3.5rem);
}
.admin-bar .u4ea-streams-hero { padding-top: calc(96px + 3.5rem); }
@media screen and (max-width: 782px) {
    .admin-bar .u4ea-streams-hero { padding-top: calc(110px + 3.5rem); }
}
.u4ea-streams-hero-badge {
    display: inline-block;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 20px;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: .3rem .9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.u4ea-streams-hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 .4rem;
    text-shadow: 0 0 40px rgba(0,212,255,.3);
}
.u4ea-streams-hero-sub {
    color: #4a6a7a;
    font-size: .85rem;
    margin: 0 0 1.2rem;
}
.u4ea-streams-live-count {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Orbitron', monospace;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.u4ea-streams-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: u4ea-pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes u4ea-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(.8); }
}
.u4ea-streams-live-num { color: #00ff88; }
.u4ea-streams-offline-msg { color: #3a6a8a; }

/* ── Body ──────────────────────────────────────────────────────────────────── */
.u4ea-streams-body {
    margin-top: 1rem;
}

/* ── Platform nav tabs ─────────────────────────────────────────────────────── */
.u4ea-streams-platform-nav {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.u4ea-streams-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: #5a7a8a;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    padding: .45rem .9rem;
    transition: all .2s;
}
.u4ea-streams-platform-btn:hover {
    border-color: rgba(255,255,255,.18);
    color: #c8d8e8;
}
.u4ea-streams-platform-btn.active {
    background: rgba(0,212,255,.1);
    border-color: rgba(0,212,255,.3);
    color: #00d4ff;
}
.u4ea-streams-platform-btn[data-platform]:not([data-platform="all"]).active {
    background: rgba(var(--p-color-rgb, 0,212,255),.1);
    border-color: var(--p-color, rgba(0,212,255,.3));
    color: var(--p-color, #00d4ff);
}

/* ── Stream cards grid ─────────────────────────────────────────────────────── */
.u4ea-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.u4ea-stream-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.u4ea-stream-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,212,255,.25);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.u4ea-stream-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

/* Thumbnail */
.u4ea-stream-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #080c10;
    overflow: hidden;
}
.u4ea-stream-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.u4ea-stream-card:hover .u4ea-stream-thumb { transform: scale(1.03); }
.u4ea-stream-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #080c10, #0d1520);
}

/* Live badge */
.u4ea-stream-live-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    border: 1px solid;
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: .2rem .5rem;
    text-transform: uppercase;
}

/* Viewer count */
.u4ea-stream-viewers {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    background: rgba(0,0,0,.7);
    border-radius: 4px;
    color: #c8d8e8;
    font-size: .65rem;
    padding: .2rem .45rem;
}

/* Card body */
.u4ea-stream-card-body {
    padding: .75rem .85rem .5rem;
}
.u4ea-stream-member {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}
.u4ea-stream-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0,212,255,.2);
}
.u4ea-stream-member-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.u4ea-stream-member-name {
    color: #e0eef8;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.u4ea-stream-platform-badge {
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: .1rem;
}
.u4ea-stream-title {
    color: #b0c8d8;
    font-size: .75rem;
    line-height: 1.4;
    margin: 0 0 .3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.u4ea-stream-game {
    color: #4a6a7a;
    font-size: .68rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile link */
.u4ea-stream-profile-link {
    display: block;
    text-align: center;
    padding: .45rem;
    border-top: 1px solid rgba(255,255,255,.05);
    color: #3a6a8a;
    font-size: .65rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
    transition: color .15s, background .15s;
}
.u4ea-stream-profile-link:hover {
    color: #00d4ff;
    background: rgba(0,212,255,.04);
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.u4ea-streams-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #3a6a8a;
}
.u4ea-streams-empty-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.u4ea-streams-empty p { margin: .3rem 0; font-size: .85rem; }
.u4ea-streams-empty-sub { font-size: .75rem !important; color: #2a4a5a; }

/* ── Forum post signature ─────────────────────────────────────────────────── */
.u4ea-sig-wrapper {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    margin-top: 40px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(0, 255, 153, 0.2) !important;
    position: relative !important;
}
.u4ea-sig-banner {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* ── Twitch CTA (empty state) ─────────────────────────────────────────────── */
.u4ea-streams-twitch-cta {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: rgba(145, 70, 255, .08);
    border: 1px solid rgba(145, 70, 255, .25);
    border-radius: 12px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.u4ea-streams-cta-headline {
    font-size: .9rem !important;
    font-weight: 700 !important;
    color: #c9a0ff !important;
    margin: 0 0 .4rem !important;
}
.u4ea-streams-cta-sub {
    font-size: .78rem !important;
    color: #8899aa !important;
    line-height: 1.5 !important;
    margin: 0 0 1rem !important;
}
.u4ea-streams-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding: .55rem 1.2rem !important;
    background: #9146ff !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background .2s, transform .15s !important;
}
.u4ea-streams-cta-btn:hover {
    background: #a960ff !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Offline section ───────────────────────────────────────────────────────── */
.u4ea-streams-offline-section {
    margin-top: 2.5rem;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    overflow: hidden;
}
.u4ea-streams-offline-summary {
    cursor: pointer;
    padding: .75rem 1rem;
    color: #3a6a8a;
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    user-select: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    transition: background .15s, color .15s;
}
.u4ea-streams-offline-summary::-webkit-details-marker { display: none; }
.u4ea-streams-offline-summary::before {
    content: '▶';
    font-size: .5rem;
    transition: transform .2s;
}
.u4ea-streams-offline-section[open] .u4ea-streams-offline-summary::before {
    transform: rotate(90deg);
}
.u4ea-streams-offline-summary:hover {
    background: rgba(255,255,255,.02);
    color: #5a7a8a;
}
.u4ea-streams-offline-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,.05);
}
.u4ea-stream-offline-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    padding: .3rem .65rem .3rem .3rem;
    text-decoration: none;
    color: #5a7a8a;
    font-size: .72rem;
    transition: border-color .15s, color .15s;
}
.u4ea-stream-offline-pill:hover {
    border-color: rgba(255,255,255,.15);
    color: #9ab8c8;
}
.u4ea-stream-offline-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: .6;
}
.u4ea-stream-offline-name { font-weight: 600; }
.u4ea-stream-offline-plat {
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    letter-spacing: .5px;
    opacity: .7;
}

/* ── Refresh status ────────────────────────────────────────────────────────── */
.u4ea-streams-refresh-status {
    text-align: center;
    color: #2a4a5a;
    font-size: .65rem;
    margin-top: 1.5rem;
    font-family: 'Orbitron', monospace;
    letter-spacing: .5px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .u4ea-streams-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   VOD CARDS — Recent Broadcasts (page-streams.php)
   ══════════════════════════════════════════════════════════════════════════════ */

.u4ea-vods-section {
    margin-top: 3rem;
}

/* Section heading */
.u4ea-vods-heading {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Orbitron', monospace;
    font-size: clamp(.9rem, 2vw, 1.2rem);
    font-weight: 800;
    color: #e0eef8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.u4ea-vods-heading-icon { font-size: 1.1em; line-height: 1; }

/* Grid */
.u4ea-vods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Card */
.u4ea-vod-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.u4ea-vod-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,255,136,.3);
    box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(0,255,136,.06);
}

/* Thumbnail */
.u4ea-vod-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #080c10;
    overflow: hidden;
}
.u4ea-vod-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.u4ea-vod-card:hover .u4ea-vod-thumb { transform: scale(1.04); }
.u4ea-vod-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #080c10, #0d1520);
}

/* Platform badge — top left of thumbnail */
.u4ea-vod-platform-badge {
    position: absolute;
    top: .45rem;
    left: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    border: 1px solid;
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1;
    padding: .2rem .45rem;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}
.u4ea-vod-platform-badge svg { flex-shrink: 0; }

/* Play icon overlay — fades in on hover */
.u4ea-vod-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .2s;
}
.u4ea-vod-card:hover .u4ea-vod-play-icon { opacity: 1; }
.u4ea-vod-play-icon svg {
    filter: drop-shadow(0 0 8px rgba(0,255,136,.55));
}

/* Duration badge — neon green, bottom-right of thumbnail */
.u4ea-vod-duration {
    position: absolute;
    bottom: .45rem;
    right: .5rem;
    background: rgba(0,0,0,.75);
    border: 1px solid rgba(0,255,136,.4);
    border-radius: 4px;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: .18rem .5rem;
    line-height: 1.4;
}

/* Card body */
.u4ea-vod-card-body {
    padding: .7rem .85rem .8rem;
    flex: 1;
}
.u4ea-vod-member {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}
.u4ea-vod-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: .1rem;
    border: 2px solid rgba(0,212,255,.2);
}
.u4ea-vod-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .2rem;
}
.u4ea-vod-title {
    color: #b8ccd8;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.u4ea-vod-card:hover .u4ea-vod-title { color: #e8f4ff; }
.u4ea-vod-info {
    color: #3a6a8a;
    font-size: .67rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .u4ea-vods-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   GO LIVE CARDS — auto-posted into the chatbox when a community member goes live
   ══════════════════════════════════════════════════════════════════════════════ */

/* Outer .u4ea-chat-msg wrapper for Go Live messages — tighter padding */
.u4ea-golive-msg {
    padding: .25rem .4rem !important;
}

/* Card shell — neon green glowing border */
.u4ea-golive-card {
    border: 2px solid #00ff88;
    border-radius: 10px;
    background: rgba(0,255,136,.04);
    box-shadow: 0 0 14px rgba(0,255,136,.18), inset 0 0 18px rgba(0,255,136,.03);
    overflow: hidden;
    font-size: .78rem;
}

/* ── Top bar: platform badge + LIVE pill + delete ──────────────────────────── */
.u4ea-golive-card-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem .35rem;
    border-bottom: 1px solid rgba(0,255,136,.1);
    background: rgba(0,255,136,.025);
}

/* Platform badge (colours set inline by JS) */
.u4ea-golive-plat-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border: 1px solid;
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: .47rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: .18rem .45rem;
    text-transform: uppercase;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}
.u4ea-golive-plat-badge svg { flex-shrink: 0; }

/* LIVE pill with animated dot */
.u4ea-golive-live-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: 'Orbitron', monospace;
    font-size: .47rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #00ff88;
    text-transform: uppercase;
}
.u4ea-golive-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 6px #00ff88;
    animation: u4ea-pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Delete button in Go Live cards */
.u4ea-golive-actions { margin-left: auto; }
.u4ea-golive-actions .u4ea-chat-delete { opacity: .35; }
.u4ea-golive-actions .u4ea-chat-delete:hover { opacity: 1; }

/* ── Main body: avatar + info ──────────────────────────────────────────────── */
.u4ea-golive-card-body {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .6rem .65rem .5rem;
}
.u4ea-golive-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0,255,136,.4);
    box-shadow: 0 0 8px rgba(0,255,136,.22);
}
.u4ea-golive-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

/* "[Name] is LIVE" headline */
.u4ea-golive-headline {
    margin: 0;
    font-size: .8rem;
    color: #c8d8e8;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.u4ea-golive-streamer {
    font-weight: 700;
    color: #00ff88;
}
.u4ea-golive-live-label {
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0,255,136,.55);
    vertical-align: middle;
}

/* Stream title */
.u4ea-golive-title {
    margin: 0;
    font-size: .72rem;
    color: #8a9aaa;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game / category */
.u4ea-golive-game {
    font-size: .65rem;
    color: #4a6a7a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Watch Now CTA ─────────────────────────────────────────────────────────── */
.u4ea-golive-watch-btn {
    display: block;
    text-align: center;
    padding: .48rem .65rem;
    border-top: 1px solid rgba(0,255,136,.15);
    background: rgba(0,255,136,.06);
    color: #00ff88 !important;
    font-family: 'Orbitron', monospace;
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background .15s, box-shadow .15s;
}
.u4ea-golive-watch-btn:hover {
    background: rgba(0,255,136,.13);
    box-shadow: inset 0 0 14px rgba(0,255,136,.12);
}

/* ── Compact form inside the docked/narrow panel ────────────────────────────── */
.u4ea-chat-panel.docked .u4ea-golive-avatar { width: 34px; height: 34px; }
.u4ea-chat-panel.docked .u4ea-golive-headline { font-size: .75rem; }
.u4ea-chat-panel.docked .u4ea-golive-title    { font-size: .68rem; }

/* ══════════════════════════════════════════════════════════════════════════════
   PM — IMAGE UPLOAD BUTTON
   ══════════════════════════════════════════════════════════════════════════════ */

/* Upload status label (uploading / error) */
.u4ea-msg-img-status {
    font-size: .68rem;
    font-family: 'Exo 2', sans-serif;
    padding: .2rem .5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.u4ea-msg-img-status.uploading {
    color: #00d4ff;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.2);
}
.u4ea-msg-img-status.error {
    color: #ff6b6b;
    background: rgba(255,100,100,.08);
    border: 1px solid rgba(255,100,100,.2);
}

/* Compose modal footer — tools group sits between Cancel and Send */
.u4ea-compose-footer-tools {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-right: auto;
    margin-left: .2rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CP — MEDIA REVIEW TAB
   ══════════════════════════════════════════════════════════════════════════════ */

/* Toolbar */
.cp-media-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.25rem;
}
.cp-media-flag-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #5a7a8a;
    font-size: .72rem;
    cursor: pointer;
    user-select: none;
}
.cp-media-flag-toggle input { cursor: pointer; }
.cp-media-total {
    margin-left: auto;
    color: #3a6a8a;
    font-size: .68rem;
    font-family: 'Orbitron', monospace;
    letter-spacing: .5px;
}
.cp-media-flagged-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,80,80,.15);
    border: 1px solid rgba(255,80,80,.35);
    border-radius: 10px;
    color: #ff6b6b;
    font-family: 'Exo 2', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    margin-left: .6rem;
    padding: .1rem .5rem;
    vertical-align: middle;
}

/* Grid */
.cp-media-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* Card — horizontal row: thumb on left, info on right */
.cp-media-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 140px;
    transition: border-color .2s;
}
.cp-media-card:hover { border-color: rgba(0,212,255,.2); }
.cp-media-card--flagged {
    border-color: rgba(255,80,80,.4) !important;
    background: rgba(255,30,30,.04) !important;
}

/* Thumbnail — fixed 160px on left */
.cp-media-card-thumb {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    background: #06090e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.06);
}
.cp-media-card-thumb a {
    display: flex;
    width: 100%;
    height: 100%;
}
.cp-media-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform .2s;
}
.cp-media-card:hover .cp-media-thumb-img { transform: scale(1.04); }
.cp-media-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    min-height: 120px;
    font-size: 1.4rem;
    text-align: center;
    padding: .6rem;
}
.cp-media-thumb span { font-size: .58rem; color: #3a6a8a; line-height: 1.3; display: block; }
.cp-media-thumb--video     { color: #9146ff; }
.cp-media-thumb--broken    { color: #ff6b6b; font-size: 1rem; }
.cp-media-thumb--missing   { color: #ff4d6d; font-size: 1rem; }
.cp-media-thumb--protected { color: #4a7a9a; font-size: 1.1rem; }

/* Info panel — fills remaining width */
.cp-media-card-info {
    padding: .75rem 1.1rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-width: 0;
}
.cp-media-card-top {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .15rem;
}
.cp-media-type {
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: .46rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: .15rem .45rem;
    text-transform: uppercase;
    flex-shrink: 0;
}
.cp-media-type--gallery      { background: rgba(0,212,255,.12); color: #00d4ff; }
.cp-media-type--forum_image  { background: rgba(0,255,136,.1);  color: #00ff88; }
.cp-media-type--forum_video  { background: rgba(145,70,255,.12);color: #9146ff; }
.cp-media-type--pm_image     { background: rgba(255,200,0,.1);  color: #ffc800; }
.cp-media-type--avatar       { background: rgba(255,105,180,.1);color: #ff69b4; }
.cp-media-type--banner       { background: rgba(100,180,255,.1);color: #64b4ff; }
.cp-media-flagged-label {
    color: #ff6b6b;
    font-size: .65rem;
    font-weight: 700;
    margin-left: auto;
}
.cp-media-missing {
    color: #ff6b6b;
    font-size: .6rem;
    font-weight: 600;
}
.cp-media-user {
    font-size: .75rem;
    color: #c8d8e8;
    margin: 0;
}
.cp-media-user-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
}
.cp-media-user-link:hover { text-decoration: underline; }
.cp-media-login { color: #3a6a8a; font-size: .68rem; }
.cp-media-meta {
    font-size: .68rem;
    color: #4a6a7a;
    margin: 0;
    line-height: 1.5;
}
.cp-media-ip {
    background: rgba(0,0,0,.3);
    border-radius: 3px;
    color: #8ab8c8;
    font-family: monospace;
    font-size: .7rem;
    padding: .05rem .3rem;
}
.cp-media-url {
    font-size: .65rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cp-media-url a {
    color: #3a6a8a;
    text-decoration: none;
}
.cp-media-url a:hover { color: #00d4ff; text-decoration: underline; }

/* Actions row */
.cp-media-card-actions {
    display: flex;
    gap: .4rem;
    margin-top: .35rem;
    flex-wrap: wrap;
}

/* Pagination */
.cp-media-pagination {
    display: flex;
    align-items: center;
    gap: .6rem;
    justify-content: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.05);
}
.cp-media-pg-info {
    color: #3a6a8a;
    font-family: 'Orbitron', monospace;
    font-size: .6rem;
    letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SHARED ROLE COLOURS — applied via .u4ea-username + role class
   Covers: online bar, chat, forum posts, PM messages, members list
   ══════════════════════════════════════════════════════════════════════════════ */

.u4ea-username.role-admin      { color: #ff3c64 !important; }
.u4ea-username.role-mod        { color: #00d4ff !important; }
.u4ea-username.role-member     { color: #00ff88 !important; }
.u4ea-username.role-registered { color: #6a9a7a !important; }
.u4ea-username.role-subscriber { color: #9ab8c8 !important; }

/* Override the generic hover on online bar so role colour persists on hover */
.u4ea-online-user:hover .u4ea-username.role-admin      { color: #ff6080 !important; }
.u4ea-online-user:hover .u4ea-username.role-mod        { color: #7aecff !important; }
.u4ea-online-user:hover .u4ea-username.role-member     { color: #88ffb0 !important; }
.u4ea-online-user:hover .u4ea-username.role-registered { color: #8abf9a !important; }
.u4ea-online-user:hover .u4ea-username.role-subscriber { color: #e0eef8 !important; }

/* PM sender name above each received bubble */
.u4ea-msg-sender-name {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    margin-bottom: .2rem;
    font-family: 'Exo 2', sans-serif;
}

/* Chat name override — role colour replaces the default grey */
.u4ea-chat-msg-name.u4ea-username.role-admin      { color: #ff3c64 !important; }
.u4ea-chat-msg-name.u4ea-username.role-mod        { color: #00d4ff !important; }
.u4ea-chat-msg-name.u4ea-username.role-member     { color: #00ff88 !important; }
.u4ea-chat-msg-name.u4ea-username.role-registered { color: #6a9a7a !important; }
.u4ea-chat-msg-name.u4ea-username.role-subscriber { color: #9ab8c8 !important; }

/* Forum post author name override */
#bbpress-forums .bbp-reply-author .u4ea-username.role-admin,
#bbpress-forums .bbp-topic-author .u4ea-username.role-admin      { color: #ff3c64 !important; }
#bbpress-forums .bbp-reply-author .u4ea-username.role-mod,
#bbpress-forums .bbp-topic-author .u4ea-username.role-mod        { color: #00d4ff !important; }
#bbpress-forums .bbp-reply-author .u4ea-username.role-member,
#bbpress-forums .bbp-topic-author .u4ea-username.role-member     { color: #00ff88 !important; }
#bbpress-forums .bbp-reply-author .u4ea-username.role-registered,
#bbpress-forums .bbp-topic-author .u4ea-username.role-registered { color: #6a9a7a !important; }

/* Media review — additional elements */
.cp-media-label {
    color: #3a6a8a;
    font-size: .62rem;
    margin-right: .2rem;
}
.cp-media-file-link {
    color: #5a8aaa;
    font-size: .65rem;
    word-break: break-all;
    text-decoration: none;
}
.cp-media-file-link:hover { color: #00d4ff; text-decoration: underline; }
.cp-media-search-btn {
    font-size: .58rem !important;
    padding: .2rem .5rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .2rem !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   STREAMS PAGE — NOTIFICATION SUBSCRIPTIONS
   ══════════════════════════════════════════════════════════════════════════════ */

/* Global "notify any" button in hero */
.u4ea-stream-notify-any {
    margin-top: .9rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    color: #5a8aaa;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    padding: .4rem .9rem;
    transition: background .2s, border-color .2s, color .2s;
}
.u4ea-stream-notify-any:hover {
    background: rgba(0,212,255,.1);
    border-color: rgba(0,212,255,.3);
    color: #00d4ff;
}
.u4ea-stream-notify-any.subbed {
    background: rgba(0,212,255,.1);
    border-color: rgba(0,212,255,.3);
    color: #00d4ff;
}

/* Card footer: profile link + notify button side by side */
.u4ea-stream-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .75rem .5rem;
    gap: .5rem;
}

/* Per-streamer notify bell button */
.u4ea-stream-notify-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    color: #4a6a7a;
    cursor: pointer;
    font-size: .9rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, border-color .2s, transform .15s;
    line-height: 1;
    padding: 0;
}
.u4ea-stream-notify-btn:hover {
    background: rgba(0,212,255,.1);
    border-color: rgba(0,212,255,.3);
    transform: scale(1.1);
}
.u4ea-stream-notify-btn.subbed {
    background: rgba(0,212,255,.12);
    border-color: rgba(0,212,255,.35);
    color: #00d4ff;
}
.u4ea-stream-notify-btn:disabled { opacity: .5; cursor: default; }

/* Offline pill wrapper — holds pill + notify button */
.u4ea-stream-offline-wrap {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.u4ea-stream-offline-wrap .u4ea-stream-offline-pill {
    flex: 1;
    min-width: 0;
}

/* Bell notification — stream_live type */
.u4ea-notif-stream .u4ea-notif-stream-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0,212,255,.25);
}
.u4ea-notif-stream .u4ea-notif-stream-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.u4ea-notif-stream-name {
    color: #00d4ff;
    font-weight: 700;
    text-decoration: none;
}
.u4ea-notif-stream-name:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════════
   FREE GAMES — new platform elements
   ══════════════════════════════════════════════════════════════════════════════ */

/* Tab count badge */
.u4ea-fg-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--neon-green);
    color: #050810;
    font-size: .5rem;
    font-weight: 900;
    border-radius: 8px;
    padding: .05rem .35rem;
    min-width: 16px;
    margin-left: .25rem;
    line-height: 1.4;
    font-family: 'Orbitron', monospace;
}

/* Platform tab "coming soon" state */
.u4ea-fg-platform-btn--soon {
    opacity: .45;
    cursor: not-allowed !important;
}
.u4ea-fg-soon-badge {
    font-size: .5rem;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    padding: .1rem .3rem;
    margin-left: .25rem;
    vertical-align: middle;
}

/* Prime Gaming notice banner */
.u4ea-fg-prime-notice {
    background: rgba(255,153,0,.08);
    border: 1px solid rgba(255,153,0,.25);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .78rem;
    color: #ffaa44;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.u4ea-fg-prime-notice strong { color: #ffcc77; }
.u4ea-fg-prime-notice a { color: #ffaa44; text-decoration: underline; }

/* GamerPower attribution */
.u4ea-fg-attribution {
    font-size: .65rem;
    color: #2a4a3a;
    text-align: right;
    margin-top: 1.5rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.05);
}
.u4ea-fg-attribution a { color: #3a6a5a; text-decoration: none; }
.u4ea-fg-attribution a:hover { color: var(--neon-green); }

/* Live dot in hero */
.u4ea-fg-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    margin-right: .4rem;
    animation: pulse 2s infinite;
    vertical-align: middle;
}

/* Hero count */
.u4ea-fg-hero-count {
    margin-top: .75rem;
    font-size: .82rem;
    color: #7abcaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
}

/* Empty state for individual platforms */
.u4ea-fg-empty-state {
    text-align: center;
    padding: 3rem;
    color: #3a6a5a;
    font-size: .85rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DISCORD-STYLE FORUM SIDEBAR
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Sidebar shell ───────────────────────────────────────────────────────────── */
.u4ea-forum-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 220px;
    height: calc(100vh - 64px);
    background: #0a0e14;
    border-right: 1px solid rgba(0,255,136,.12);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
    transition: transform .25s ease;
}
.admin-bar .u4ea-forum-sidebar {
    top: 96px;
    height: calc(100vh - 96px);
}
@media screen and (max-width: 782px) {
    .admin-bar .u4ea-forum-sidebar {
        top: 110px;
        height: calc(100vh - 110px);
    }
}

/* ── Sidebar header ──────────────────────────────────────────────────────────── */
.u4ea-sidebar-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1rem .6rem;
    border-bottom: 1px solid rgba(0,255,136,.08);
    flex-shrink: 0;
}
.u4ea-sidebar-header-icon {
    font-size: .9rem;
    line-height: 1;
}
.u4ea-sidebar-header-label {
    font-family: 'Orbitron', monospace;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(0,255,136,.55);
    text-transform: uppercase;
}

/* ── Channel list ────────────────────────────────────────────────────────────── */
.u4ea-sidebar-channel-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .5rem .5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,.2) transparent;
}
.u4ea-sidebar-channel-list::-webkit-scrollbar { width: 4px; }
.u4ea-sidebar-channel-list::-webkit-scrollbar-track { background: transparent; }
.u4ea-sidebar-channel-list::-webkit-scrollbar-thumb { background: rgba(0,255,136,.2); border-radius: 2px; }

/* ── Individual channel ──────────────────────────────────────────────────────── */
.u4ea-sidebar-channel {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .6rem;
    border-radius: 5px;
    text-decoration: none;
    color: #5a8a6a;
    font-size: .82rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    transition: background .12s, color .12s;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.u4ea-sidebar-channel:hover {
    background: rgba(0,255,136,.07);
    color: #c0dce0;
    text-decoration: none;
}
.u4ea-sidebar-channel.active {
    background: rgba(0,255,136,.12);
    color: #00ff88;
}
.u4ea-sidebar-channel--all {
    margin-bottom: .35rem;
    border-bottom: 1px solid rgba(0,255,136,.07);
    padding-bottom: .6rem;
    border-radius: 0;
}
.u4ea-sidebar-channel--all:hover { border-radius: 5px; }

.u4ea-sidebar-channel-hash {
    font-size: .9rem;
    font-weight: 700;
    color: inherit;
    opacity: .5;
    flex-shrink: 0;
    line-height: 1;
}
.u4ea-sidebar-channel.active .u4ea-sidebar-channel-hash { opacity: .7; }

.u4ea-sidebar-channel-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u4ea-sidebar-channel-count {
    font-size: .6rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: rgba(0,255,136,.4);
    flex-shrink: 0;
    margin-left: auto;
}
.u4ea-sidebar-channel.active .u4ea-sidebar-channel-count { color: rgba(0,255,136,.7); }

/* ── User strip at bottom ────────────────────────────────────────────────────── */
.u4ea-sidebar-user {
    flex-shrink: 0;
    border-top: 1px solid rgba(0,255,136,.08);
    padding: .6rem .5rem;
    background: rgba(0,0,0,.2);
}
.u4ea-sidebar-user-inner {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    padding: .3rem .4rem;
    border-radius: 5px;
    transition: background .12s;
}
.u4ea-sidebar-user-inner:hover { background: rgba(0,255,136,.07); }

.u4ea-sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0,255,136,.2);
}
.u4ea-sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    overflow: hidden;
    min-width: 0;
}
.u4ea-sidebar-user-name {
    font-size: .78rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #c0dce0;
}
.u4ea-sidebar-user-role {
    font-size: .6rem;
    font-family: 'Orbitron', monospace;
    color: rgba(0,255,136,.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Layout shift for main content ──────────────────────────────────────────── */
.has-forum-sidebar .site-main {
    margin-left: 220px;
}

/* ── Hide sidebar on mobile, undo layout shift ───────────────────────────────── */
@media (max-width: 768px) {
    .u4ea-forum-sidebar {
        display: none;
    }
    .has-forum-sidebar .site-main {
        margin-left: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   NEW TOPIC MODAL
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Forum header bar (contains the New Topic button) ───────────────────────── */
.u4ea-forum-header-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.2rem;
}

/* ── New Topic button ────────────────────────────────────────────────────────── */
.u4ea-new-topic-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.2rem;
    background: #00ff88;
    color: #080c10;
    border: none;
    border-radius: 6px;
    font-family: 'Orbitron', monospace;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .8px;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
    text-transform: uppercase;
}
.u4ea-new-topic-btn:hover {
    box-shadow: 0 0 22px rgba(0,255,136,.5);
    transform: translateY(-1px);
}
.u4ea-new-topic-btn:active { transform: translateY(0); }
.u4ea-new-topic-btn-icon { font-size: .9rem; }

/* ── Backdrop ────────────────────────────────────────────────────────────────── */
.u4ea-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
}
.u4ea-modal-backdrop.open { display: block; }

/* ── Modal container ─────────────────────────────────────────────────────────── */
.u4ea-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9001;
    overflow-y: auto;
    padding: 2rem 1rem;
    pointer-events: none;
}
.u4ea-modal.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: auto;
}

/* ── Modal inner card ────────────────────────────────────────────────────────── */
.u4ea-modal-inner {
    background: #0d1520;
    border: 1px solid rgba(0,255,136,.2);
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,255,136,.05);
    animation: u4eaModalIn .22s cubic-bezier(.16,1,.3,1);
    margin-top: 4rem;
}
@keyframes u4eaModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* ── Modal header ────────────────────────────────────────────────────────────── */
.u4ea-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0,255,136,.1);
}
.u4ea-modal-title {
    font-family: 'Orbitron', monospace;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00ff88;
    margin: 0;
}
.u4ea-modal-close {
    background: none;
    border: none;
    color: #3a6a5a;
    font-size: 1rem;
    cursor: pointer;
    padding: .3rem .5rem;
    border-radius: 4px;
    line-height: 1;
    transition: color .15s, background .15s;
}
.u4ea-modal-close:hover { color: #ff4b6e; background: rgba(255,75,110,.1); }

/* ── Modal body (contains the moved #new-post form) ─────────────────────────── */
.u4ea-modal-body {
    padding: 1.5rem;
}

/* ── Override #new-post styles when inside modal ────────────────────────────── */
.u4ea-modal-body #new-post {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Hide original #new-post in page flow (it lives in the modal now) ────────── */
body:not(.u4ea-modal-open) #bbpress-forums #new-post {
    /* Keep in DOM for bbPress but visually hidden until moved to modal */
    /* JS moves it immediately on DOMContentLoaded so this is just a flash-guard */
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Prevent body scroll when modal is open ─────────────────────────────────── */
body.u4ea-modal-open {
    overflow: hidden;
}

/* ── Mobile: full-screen modal ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .u4ea-modal { padding: 0; align-items: flex-end; }
    .u4ea-modal-inner {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        margin-top: 0;
        animation: u4eaModalInMobile .25s cubic-bezier(.16,1,.3,1);
    }
    @keyframes u4eaModalInMobile {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   AJAX REPLY
   ══════════════════════════════════════════════════════════════════════════════ */

/* Submit button loading state */
#bbp-new-reply-submit.u4ea-reply-loading {
    opacity: .7 !important;
    cursor: wait !important;
    position: relative !important;
}

/* Inline error message */
.u4ea-reply-error {
    background: rgba(255,75,110,.1);
    border: 1px solid rgba(255,75,110,.3);
    color: #ff8a9a;
    border-radius: 6px;
    padding: .65rem 1rem;
    font-size: .82rem;
    margin-bottom: 1rem;
}

/* New reply flash-in animation */
.bbp-reply-header.u4ea-reply-new {
    animation: u4eaReplyFlash 2.5s ease forwards;
}
@keyframes u4eaReplyFlash {
    0%   { background: rgba(0,255,136,.15); }
    60%  { background: rgba(0,255,136,.08); }
    100% { background: transparent; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   UNREAD INDICATORS
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Pulsing dot before topic title ─────────────────────────────────────────── */
.u4ea-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0,255,136,.8);
    animation: u4eaUnreadPulse 2s ease-in-out infinite;
}
@keyframes u4eaUnreadPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(0,255,136,.6);  transform: scale(1); }
    50%       { box-shadow: 0 0 10px rgba(0,255,136,.9); transform: scale(1.2); }
}

/* ── Unread topic row — subtle left border glow ──────────────────────────────── */
#bbpress-forums ul.bbp-topics > li.bbp-topic.u4ea-topic-unread {
    border-color: rgba(0,255,136,.3) !important;
    border-left: 3px solid #00ff88 !important;
}
#bbpress-forums ul.bbp-topics > li.bbp-topic.u4ea-topic-unread .bbp-topic-title a {
    color: #ffffff !important;
}

/* ── "NEW" text badge on unread title ────────────────────────────────────────── */
#bbpress-forums ul.bbp-topics > li.bbp-topic.u4ea-topic-unread .bbp-topic-title::after {
    content: 'NEW';
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: .45rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #080c10;
    background: #00ff88;
    border-radius: 3px;
    padding: .15rem .35rem;
    margin-left: .5rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ── Sidebar: unread pill on channel ────────────────────────────────────────── */
.u4ea-sidebar-unread-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #00ff88;
    color: #080c10;
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 900;
    border-radius: 9px;
    padding: 0 .35rem;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0,255,136,.5);
}

/* ── Sidebar: channel name bold + bright when has unread ─────────────────────── */
.u4ea-sidebar-channel.has-unread .u4ea-sidebar-channel-name {
    color: #e0f0e8;
    font-weight: 700;
}
.u4ea-sidebar-channel.has-unread .u4ea-sidebar-channel-hash {
    opacity: .8;
    color: #00ff88;
}

/* ── Mark Read button ────────────────────────────────────────────────────────── */
.u4ea-mark-read-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-left: .6rem;
    padding: .2rem .55rem;
    background: transparent;
    border: 1px solid rgba(0,255,136,.35);
    border-radius: 4px;
    color: rgba(0,255,136,.7);
    font-family: 'Exo 2', sans-serif;
    font-size: .65rem;
    font-weight: 600;
    cursor: pointer;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s;
    letter-spacing: .3px;
}
.u4ea-mark-read-btn:hover {
    background: rgba(0,255,136,.12);
    color: #00ff88;
    border-color: #00ff88;
}
.u4ea-mark-read-btn:disabled {
    opacity: .5;
    cursor: default;
}
/* Keep button from being huge on the title anchor line */
#bbpress-forums ul.bbp-topics > li.bbp-topic .bbp-topic-title a {
    display: inline !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR HIERARCHY & ACCORDION
   ══════════════════════════════════════════════════════════════════════════════ */

/* Reset the tree list */
.u4ea-sidebar-tree,
.u4ea-sidebar-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each item row: chevron + link side by side */
.u4ea-sidebar-row {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Indentation per depth level */
.u4ea-sidebar-row.depth-0 { padding-left: 0; }
.u4ea-sidebar-row.depth-1 { padding-left: 14px; }
.u4ea-sidebar-row.depth-2 { padding-left: 26px; }
.u4ea-sidebar-row.depth-3 { padding-left: 38px; }

/* Chevron button */
.u4ea-sidebar-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #3a6a5a;
    transition: color .15s, transform .2s;
    border-radius: 3px;
}
.u4ea-sidebar-chevron:hover { color: #00ff88; }

/* Rotate chevron when open */
.u4ea-sidebar-item.is-open > .u4ea-sidebar-row > .u4ea-sidebar-chevron {
    transform: rotate(180deg);
    color: rgba(0,255,136,.6);
}

.u4ea-sidebar-chevron-spacer {
    flex-shrink: 0;
    width: 20px;
    height: 28px;
    display: inline-block;
}

/* Sub-channel link inherits sidebar-channel but slightly smaller */
.u4ea-sidebar-sub-channel {
    font-size: .78rem !important;
    padding: .38rem .5rem !important;
}
.u4ea-sidebar-sub-channel .u4ea-sidebar-channel-hash {
    font-size: .75rem;
    opacity: .4;
}

/* Vertical connector line for sub-forums */
.u4ea-sidebar-children {
    border-left: 1px solid rgba(0,255,136,.08);
    margin-left: 10px;
    overflow: hidden;
}
.u4ea-sidebar-children.is-open {
    overflow: visible;
}

/* Sub-item separator gap */
.u4ea-sidebar-item + .u4ea-sidebar-item {
    margin-top: 1px;
}

/* The channel link inside a row fills remaining space */
.u4ea-sidebar-row .u4ea-sidebar-channel {
    flex: 1;
    min-width: 0;
    /* Override padding so the row controls indentation */
    padding-left: .4rem !important;
    padding-right: .5rem !important;
}

/* ── Sidebar Mark-All-Read button ────────────────────────────────────────────── */
.u4ea-sidebar-mark-read {
    flex-shrink: 0;
    display: none;           /* hidden by default, shown on row hover */
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: none;
    border: 1px solid rgba(0,255,136,.25);
    border-radius: 4px;
    color: rgba(0,255,136,.5);
    cursor: pointer;
    padding: 0;
    margin-left: 3px;
    transition: background .12s, color .12s, border-color .12s, opacity .2s;
}
.u4ea-sidebar-mark-read:hover {
    background: rgba(0,255,136,.12);
    border-color: rgba(0,255,136,.6);
    color: #00ff88;
}

/* Show on row hover */
.u4ea-sidebar-row:hover .u4ea-sidebar-mark-read,
.u4ea-sidebar-item:hover > .u4ea-sidebar-row .u4ea-sidebar-mark-read {
    display: flex;
}

/* ── Back to Top / scroll-to-top buttons — removed ────────────────────────── */
.u4ea-back-to-top { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   USER PROFILE POPOUT CARD
   ══════════════════════════════════════════════════════════════════════════════ */

.u4ea-popout {
    position: absolute;
    width: 280px;
    background: #0d1520;
    border: 1px solid rgba(0,255,136,.18);
    border-radius: 12px;
    box-shadow: 0 16px 60px rgba(0,0,0,.75), 0 0 0 1px rgba(0,255,136,.05);
    z-index: 200000;
    opacity: 0;
    transform: scale(.94) translateY(-6px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
    overflow: hidden;
}
.u4ea-popout.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Gradient banner at the top */
.u4ea-popout-banner {
    height: 52px;
    background: linear-gradient(135deg, #0a1520 0%, #0d2030 40%, rgba(0,255,136,.08) 100%);
    border-bottom: 1px solid rgba(0,255,136,.08);
}

/* Avatar overlapping the banner */
.u4ea-popout-top {
    padding: 0 1rem;
    margin-top: -28px;
    position: relative;
}
.u4ea-popout-avatar-wrap {
    display: inline-block;
    position: relative;
}
.u4ea-popout-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #0d1520;
    object-fit: cover;
    display: block;
}
.u4ea-popout-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #0d1520;
}
.u4ea-popout-status.online  { background: #00ff88; }
.u4ea-popout-status.offline { background: #3a5a4a; }

/* Body content */
.u4ea-popout-body {
    padding: .6rem 1rem 1rem;
}
.u4ea-popout-name {
    font-family: 'Exo 2', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: #e0f0e8;
    margin-bottom: .2rem;
    line-height: 1.2;
}
.u4ea-popout-role {
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #080c10;
    background: #00ff88;
    border-radius: 3px;
    padding: .15rem .45rem;
    margin-bottom: .6rem;
}
.u4ea-popout-bio {
    font-size: .73rem;
    color: #5a8a7a;
    line-height: 1.5;
    margin-bottom: .7rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-bottom: .7rem;
}

/* Stats row */
.u4ea-popout-stats {
    display: flex;
    gap: .5rem;
    margin-bottom: .7rem;
}
.u4ea-popout-stat {
    flex: 1;
    text-align: center;
    background: rgba(0,0,0,.25);
    border-radius: 6px;
    padding: .4rem .2rem;
}
.u4ea-popout-stat-val {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: .78rem;
    font-weight: 700;
    color: #00ff88;
    line-height: 1;
    margin-bottom: .2rem;
}
.u4ea-popout-stat-label {
    display: block;
    font-size: .5rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #3a6a5a;
    font-family: 'Orbitron', monospace;
}

/* Meta (game/platform/location) */
.u4ea-popout-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .7rem;
}
.u4ea-popout-meta-item {
    font-size: .68rem;
    color: #6a9a8a;
    background: rgba(0,0,0,.2);
    border-radius: 4px;
    padding: .2rem .45rem;
}

/* Action buttons */
.u4ea-popout-actions {
    display: flex;
    gap: .5rem;
}
.u4ea-popout-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .7rem;
    border-radius: 6px;
    font-family: 'Exo 2', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    border: 1px solid rgba(0,255,136,.2);
    color: #8abcac;
    background: rgba(0,0,0,.2);
}
.u4ea-popout-btn:hover { background: rgba(0,255,136,.08); color: #00ff88; }
.u4ea-popout-btn--primary {
    background: rgba(0,255,136,.1);
    border-color: rgba(0,255,136,.35);
    color: #00ff88;
}
.u4ea-popout-btn--primary:hover { background: rgba(0,255,136,.2); }

/* Loading state */
.u4ea-popout-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: #3a6a5a;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}
.u4ea-popout-inner { transition: opacity .15s; }

/* Make forum avatars show a pointer cursor */
.bbp-reply-author img.avatar,
.bbp-topic-author img.avatar {
    cursor: pointer !important;
}

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

/* ══════════════════════════════════════════════════════════════════════════════
   FLOATING TOP / BOTTOM NAV
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   LIVE REPLY POLLING — "new replies" pill
   ══════════════════════════════════════════════════════════════════════════════ */
.u4ea-new-replies-pill {
    position: fixed;
    bottom: 140px;
    right: 80px;
    display: none;
    align-items: center;
    gap: .4rem;
    padding: .5rem .9rem;
    background: #00ff88;
    color: #080c10;
    border: none;
    border-radius: 20px;
    font-family: 'Orbitron', monospace;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    z-index: 100001;
    box-shadow: 0 4px 20px rgba(0,255,136,.45);
    animation: u4eaPillIn .25s cubic-bezier(.16,1,.3,1);
    white-space: nowrap;
}
.u4ea-new-replies-pill:hover {
    background: #33ff99;
    box-shadow: 0 4px 25px rgba(0,255,136,.6);
}
@keyframes u4eaPillIn {
    from { opacity: 0; transform: translateY(10px) scale(.9); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR COLLAPSE
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Collapse toggle button inside the header ────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR TOGGLE BUTTONS — live inside their sidebar headers
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Left sidebar header toggle ─────────────────────────────────────────────*/
.u4ea-sidebar-toggle {
    margin-left: auto;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: none;
    border: 1px solid rgba(0,255,136,.15);
    border-radius: 5px;
    color: rgba(0,255,136,.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, color .15s, border-color .15s;
}
.u4ea-sidebar-toggle:hover {
    background: rgba(0,255,136,.1);
    border-color: rgba(0,255,136,.4);
    color: #00ff88;
}
.u4ea-sidebar-toggle .u4ea-sidebar-toggle-icon {
    transition: transform .25s ease;
}
/* Chevron points left (←) when open. Flips to right (→) when collapsed */
body.sidebar-collapsed .u4ea-sidebar-toggle .u4ea-sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* ── Left sidebar slide ──────────────────────────────────────────────────────*/
.u4ea-forum-sidebar {
    transition: transform .25s ease;
    overflow: hidden;
}
body.sidebar-collapsed .u4ea-forum-sidebar {
    transform: translateX(-220px);
    pointer-events: none;
}
/* Keep content margins in sync */
.has-forum-sidebar .site-main {
    transition: margin-left .25s ease, margin-right .25s ease;
}
body.sidebar-collapsed.has-forum-sidebar .site-main {
    margin-left: 0 !important;
}

/* ── Right roster header + toggle ───────────────────────────────────────────*/
.u4ea-roster-top-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .7rem .4rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,255,136,.07);
}
.u4ea-roster-top-label {
    font-family: "Orbitron", monospace;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #3a6a5a;
    text-transform: uppercase;
}
.u4ea-roster-toggle {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: none;
    border: 1px solid rgba(0,255,136,.15);
    border-radius: 5px;
    color: rgba(0,255,136,.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s, color .15s, border-color .15s;
}
.u4ea-roster-toggle:hover {
    background: rgba(0,255,136,.1);
    border-color: rgba(0,255,136,.4);
    color: #00ff88;
}
.u4ea-roster-toggle .u4ea-roster-toggle-icon {
    transition: transform .25s ease;
}
/* Chevron points right (→) when open. Flips to left (←) when collapsed */
body.roster-collapsed .u4ea-roster-toggle .u4ea-roster-toggle-icon {
    transform: rotate(180deg);
}

/* ── Right sidebar slide ─────────────────────────────────────────────────────*/
.u4ea-roster-sidebar {
    transition: transform .25s ease;
    overflow: hidden;
    position: fixed !important;
}
body.roster-collapsed .u4ea-roster-sidebar {
    transform: translateX(200px);
    pointer-events: none;
}
body.roster-collapsed.has-forum-sidebar .site-main {
    margin-right: 0 !important;
}

/* ── Roster role groups ──────────────────────────────────────────────────────*/
.u4ea-roster-section-header {
    padding: .6rem .85rem .2rem;
}
.u4ea-roster-section-label {
    font-family: "Orbitron", monospace;
    font-size: .45rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #3a6a5a;
    text-transform: uppercase;
}
.u4ea-roster-group {
    margin-bottom: .6rem;
    padding-top: .4rem;
}
.u4ea-roster-group + .u4ea-roster-group {
    border-top: 1px solid rgba(255,255,255,.04);
    margin-top: .2rem;
}
.u4ea-roster-group-label {
    font-family: "Orbitron", monospace;
    font-size: .45rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #3a6a5a;
    text-transform: uppercase;
    padding: .3rem .85rem .15rem;
}

/* ── OVERLAP PREVENTION ──────────────────────────────────────────────────────
   Roster hides first (below 1100px), left sidebar hides below 768px          */
@media (max-width: 1100px) {
    .u4ea-roster-sidebar { display: none !important; }
    .has-forum-sidebar .site-main { margin-right: 0 !important; }
}
@media (max-width: 768px) {
    .u4ea-forum-sidebar { display: none !important; }
    .has-forum-sidebar .site-main { margin-left: 0 !important; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   CHAT TOGGLE BUBBLE (static — fixed bottom-right)
   ══════════════════════════════════════════════════════════════════════════════ */
.u4ea-chat-badge:not(:empty) {
    display: block !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CHAT HEADER (static — no drag)
   ══════════════════════════════════════════════════════════════════════════════ */
.u4ea-chat-header {
    cursor: default !important;
    user-select: none !important;
}
.u4ea-chat-header-close {
    cursor: pointer !important;
}

/* Chat hidden while popout window is active */
.u4ea-chat-panel.u4ea-chat-hidden-for-popout {
    display: none !important;
}

/* ── Settings button in chat header ───────────────────────────────────────── */
.u4ea-chat-settings-btn {
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    opacity: .7 !important;
    transition: opacity .15s, color .15s !important;
    line-height: 1 !important;
}
.u4ea-chat-settings-btn:hover {
    opacity: 1 !important;
    color: var(--neon-green) !important;
}

/* ── Settings panel overlay ───────────────────────────────────────────────── */
.u4ea-chat-settings-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100 !important;
    background: var(--card, #0d1520) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.u4ea-chat-settings-panel[hidden] {
    display: none !important;
}
/* Saved toast */
.u4ea-chat-settings-saved {
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-4px) !important;
    background: rgba(0,255,136,.15) !important;
    border: 1px solid rgba(0,255,136,.4) !important;
    color: var(--neon-green) !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity .2s, transform .2s !important;
    white-space: nowrap !important;
    z-index: 10 !important;
}
.u4ea-chat-settings-saved.visible {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}
.u4ea-chat-settings-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    flex-shrink: 0 !important;
}
.u4ea-chat-settings-title {
    font-size: .85rem !important;
    font-weight: 700 !important;
    color: var(--neon-green, #00ff88) !important;
    letter-spacing: .5px !important;
}
.u4ea-chat-settings-close {
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    opacity: .7 !important;
    transition: opacity .15s !important;
}
.u4ea-chat-settings-close:hover {
    opacity: 1 !important;
}
.u4ea-chat-settings-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 10px 14px !important;
}

/* Settings sections */
.u4ea-settings-section {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
.u4ea-settings-section:last-child {
    border-bottom: none !important;
}
.u4ea-settings-section-title {
    font-size: .75rem !important;
    font-weight: 700 !important;
    color: rgba(200,216,232,.6) !important;
    text-transform: uppercase !important;
    letter-spacing: .8px !important;
    margin-bottom: 8px !important;
}

/* Settings select (e.g. TTS voice) */
.u4ea-settings-select {
    width: 100% !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 6px !important;
    color: var(--text) !important;
    font-family: 'Exo 2', sans-serif !important;
    font-size: .8rem !important;
    padding: 5px 8px !important;
    cursor: pointer !important;
    outline: none !important;
    margin-bottom: 5px !important;
}
.u4ea-settings-select:focus {
    border-color: rgba(0,255,136,.4) !important;
}
.u4ea-settings-select option {
    background: #0d1520 !important;
    color: var(--text) !important;
}
.u4ea-settings-hint {
    font-size: .7rem !important;
    color: rgba(200,216,232,.4) !important;
    margin-top: 2px !important;
}

/* Toggle switch */
.u4ea-settings-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
    cursor: pointer !important;
    font-size: .82rem !important;
    color: var(--text) !important;
}
.u4ea-settings-toggle input[type="checkbox"] {
    display: none !important;
}
.u4ea-toggle-slider {
    position: relative !important;
    width: 36px !important;
    height: 20px !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 10px !important;
    transition: background .2s !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
}
.u4ea-toggle-slider::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 16px !important;
    height: 16px !important;
    background: #fff !important;
    border-radius: 50% !important;
    transition: transform .2s !important;
}
.u4ea-settings-toggle input:checked + .u4ea-toggle-slider {
    background: var(--neon-green, #00ff88) !important;
}
.u4ea-settings-toggle input:checked + .u4ea-toggle-slider::after {
    transform: translateX(16px) !important;
}


/* Channel mute list */
.u4ea-settings-channel-mutes {
    max-height: 140px !important;
    overflow-y: auto !important;
}
.u4ea-settings-channel-mute-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 0 !important;
    font-size: .8rem !important;
    color: var(--text) !important;
}
.u4ea-settings-channel-mute-row > span:first-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 !important;
    margin-right: 8px !important;
}
.u4ea-settings-channel-mute-row .u4ea-toggle-slider {
    width: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
}

/* Keyboard shortcut rows */
.u4ea-settings-shortcuts {
    font-size: .78rem !important;
}
.u4ea-shortcut-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 3px 0 !important;
    color: var(--text) !important;
}
.u4ea-shortcut-row kbd {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 3px !important;
    padding: 1px 6px !important;
    font-size: .72rem !important;
    font-family: 'Orbitron', monospace !important;
    color: var(--neon-green) !important;
    min-width: 60px !important;
    text-align: center !important;
}

/* Connection status */
.u4ea-settings-offline-status {
    font-size: .8rem !important;
    color: var(--text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.u4ea-online-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--neon-green) !important;
    display: inline-block !important;
}
.u4ea-online-dot.offline {
    background: #ff4b6e !important;
}
.u4ea-settings-queued {
    font-size: .75rem !important;
    color: rgba(255,200,100,.8) !important;
    margin-top: 4px !important;
}

/* Appearance settings row */
.u4ea-settings-appearance-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
}
.u4ea-settings-appearance-label {
    font-size: .82rem !important;
    color: var(--text) !important;
}
.u4ea-settings-font-btns {
    display: flex !important;
    gap: 4px !important;
}
.u4ea-font-btn {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 4px !important;
    color: var(--text) !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 2px 9px !important;
    transition: background .15s, color .15s, border-color .15s !important;
}
.u4ea-font-btn:hover {
    background: rgba(0,255,136,.12) !important;
    border-color: rgba(0,255,136,.4) !important;
    color: var(--neon-green) !important;
}
.u4ea-font-btn.active {
    background: rgba(0,255,136,.18) !important;
    border-color: var(--neon-green, #00ff88) !important;
    color: var(--neon-green, #00ff88) !important;
}

/* Font size classes applied to .u4ea-chat-panel */
.u4ea-chat-panel.u4ea-font-small .u4ea-chat-msg-text,
.u4ea-chat-panel.u4ea-font-small .u4ea-chat-input { font-size: .72rem !important; }
.u4ea-chat-panel.u4ea-font-small .u4ea-chat-msg-name { font-size: .68rem !important; }
.u4ea-chat-panel.u4ea-font-small .u4ea-chat-msg-time { font-size: .62rem !important; }

.u4ea-chat-panel.u4ea-font-large .u4ea-chat-msg-text,
.u4ea-chat-panel.u4ea-font-large .u4ea-chat-input { font-size: .96rem !important; }
.u4ea-chat-panel.u4ea-font-large .u4ea-chat-msg-name { font-size: .88rem !important; }
.u4ea-chat-panel.u4ea-font-large .u4ea-chat-msg-time { font-size: .72rem !important; }

/* Compact mode */
.u4ea-chat-panel.u4ea-chat-compact .u4ea-chat-msg { padding: 2px 10px !important; }
.u4ea-chat-panel.u4ea-chat-compact .u4ea-chat-msg-avatar { width: 22px !important; height: 22px !important; }
.u4ea-chat-panel.u4ea-chat-compact .u4ea-chat-msg-body { gap: 2px !important; }
.u4ea-chat-panel.u4ea-chat-compact .u4ea-chat-msg-text { font-size: .78rem !important; }
.u4ea-chat-panel.u4ea-chat-compact .u4ea-chat-msg-name { font-size: .68rem !important; }
.u4ea-chat-panel.u4ea-chat-compact .u4ea-chat-msg-time { font-size: .62rem !important; }

/* ── Chat message reaction bar ─────────────────────────────────────────────── */
.u4ea-chat-reaction-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-top: 3px !important;
    min-height: 0 !important;
}
.u4ea-chat-reaction-bar:empty { display: none !important; }
.u4ea-chat-reaction-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 10px !important;
    padding: 1px 7px !important;
    cursor: pointer !important;
    font-size: .72rem !important;
    color: var(--text) !important;
    transition: background .15s, border-color .15s !important;
    line-height: 1.4 !important;
}
.u4ea-chat-reaction-btn:hover {
    background: rgba(0,255,136,.1) !important;
    border-color: rgba(0,255,136,.3) !important;
}
.u4ea-chat-reaction-btn.active {
    background: rgba(0,255,136,.12) !important;
    border-color: rgba(0,255,136,.5) !important;
}
.u4ea-chat-reaction-btn .u4ea-reaction-emoji { font-size: .8rem !important; }
.u4ea-chat-reaction-btn .u4ea-emoji-img { width: 14px !important; height: 14px !important; vertical-align: middle !important; }
.u4ea-chat-reaction-count { font-size: .68rem !important; color: rgba(200,216,232,.7) !important; }
.u4ea-chat-reaction-btn.active .u4ea-chat-reaction-count { color: var(--neon-green) !important; }

.u4ea-chat-reaction-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px dashed rgba(255,255,255,.12) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: .72rem !important;
    color: rgba(200,216,232,.4) !important;
    transition: color .15s, border-color .15s, background .15s !important;
}
.u4ea-chat-reaction-add:hover {
    color: var(--neon-green) !important;
    border-color: rgba(0,255,136,.3) !important;
    background: rgba(0,255,136,.08) !important;
}

/* React button in message meta (alongside edit/pin) */
.u4ea-chat-react-btn {
    background: none !important;
    border: none !important;
    color: #2a4a5a !important;
    font-size: .78rem !important;
    cursor: pointer !important;
    padding: 0 .3rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    opacity: 0 !important;
    transition: color .15s, opacity .15s !important;
    flex-shrink: 0 !important;
}
.u4ea-chat-msg:hover .u4ea-chat-react-btn { opacity: 1 !important; }
.u4ea-chat-react-btn:hover { color: #ffcc00 !important; }

/* Reaction picker popup */
.u4ea-chat-reaction-picker {
    position: fixed !important;
    display: none;
    flex-wrap: wrap !important;
    gap: 3px !important;
    background: linear-gradient(180deg, #0a0f18, #0d1520) !important;
    border: 1px solid rgba(0,255,136,.2) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    max-width: min(280px, calc(100vw - 24px)) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.5) !important;
    z-index: 100001 !important;
}
.u4ea-chat-reaction-pick {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    padding: 3px 5px !important;
    border-radius: 5px !important;
    transition: background .12s, transform .12s !important;
    line-height: 1 !important;
}
.u4ea-chat-reaction-pick:hover {
    background: rgba(0,255,136,.15) !important;
    transform: scale(1.2) !important;
}
.u4ea-chat-reaction-pick .u4ea-emoji-img { width: 20px !important; height: 20px !important; }

/* ── Right-click context menu ──────────────────────────────────────────────── */
.u4ea-chat-context-menu {
    position: fixed !important;
    display: none;
    flex-direction: column !important;
    min-width: 160px !important;
    background: linear-gradient(180deg, #0d1520, #0a0f18) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important;
    padding: 4px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.55) !important;
    z-index: 100002 !important;
}
.u4ea-chat-context-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    font-size: .8rem !important;
    padding: 6px 10px !important;
    cursor: pointer !important;
    border-radius: 5px !important;
    transition: background .12s !important;
    white-space: nowrap !important;
    width: 100% !important;
    text-align: left !important;
}
.u4ea-chat-context-item:hover {
    background: rgba(0,255,136,.1) !important;
}
.u4ea-chat-context-item .u4ea-ctx-icon {
    font-size: .85rem !important;
    width: 18px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}
.u4ea-chat-context-divider {
    height: 1px !important;
    background: rgba(255,255,255,.06) !important;
    margin: 3px 6px !important;
}
/* Delete item gets a red tint */
.u4ea-chat-context-item.ctx-delete { color: #ff6b8a !important; }
.u4ea-chat-context-item.ctx-delete:hover { background: rgba(255,70,100,.12) !important; }


/* ── Chat help button (matches settings/search button style) ────────────────── */
.u4ea-chat-help-btn {
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    opacity: .7 !important;
    line-height: 1 !important;
    transition: opacity .15s, color .15s !important;
}
.u4ea-chat-help-btn:hover {
    opacity: 1 !important;
    color: var(--neon-green) !important;
}
/* Help tooltip popover */
.u4ea-chat-help-tip {
    display: none;
    position: fixed !important;
    z-index: 100000 !important;
    background: #141a1f !important;
    border: 1px solid rgba(0,255,136,.22) !important;
    border-radius: 10px !important;
    padding: .75rem .9rem !important;
    width: 260px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.6) !important;
    font-family: 'Exo 2', sans-serif !important;
    color: #c8d8e8 !important;
}
.u4ea-chat-help-title {
    font-family: 'Orbitron', monospace !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #00ff88 !important;
    margin-bottom: .6rem !important;
}
.u4ea-chat-help-cmd {
    font-size: .8rem !important;
    color: #e8f4e8 !important;
    margin-top: .5rem !important;
    margin-bottom: .1rem !important;
}
.u4ea-chat-help-cmd code {
    background: rgba(0,255,136,.1) !important;
    color: #00ff88 !important;
    border-radius: 3px !important;
    padding: .05rem .3rem !important;
    font-family: monospace !important;
    font-size: .8rem !important;
}
.u4ea-chat-help-cmd em { color: #7a9a8a !important; font-style: normal !important; }
.u4ea-chat-help-desc { font-size: .72rem !important; color: #5a7a6a !important; }
.u4ea-chat-help-ex { color: #a8d4b8 !important; font-style: italic !important; }
.u4ea-chat-help-hr {
    border: none !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    margin: .6rem 0 .4rem !important;
}

/* ── /me action messages ───────────────────────────────────────────────────── */
.u4ea-chat-me-action {
    font-style: italic !important;
    color: #a8d4b8 !important;
    opacity: .9 !important;
    font-size: .88em !important;
}

/* ── Image gallery (multiple dropped images) ───────────────────────────────── */
.u4ea-chat-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
    gap: 4px !important;
    max-width: 320px !important;
}
.u4ea-chat-gallery a,
.u4ea-chat-gallery span { display: block !important; }
.u4ea-chat-gallery img {
    width: 100% !important;
    height: 90px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
    display: block !important;
    cursor: zoom-in !important;
}

/* ── Chat poll widget ──────────────────────────────────────────────────────── */
.u4ea-chat-poll {
    background: #1a1e22 !important;
    border: 1px solid rgba(0,255,136,.18) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    font-family: 'Exo 2', sans-serif !important;
    max-width: 340px !important;
    margin: 4px 0 !important;
}
.u4ea-cpoll-header {
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding: .55rem .75rem !important;
    background: rgba(0,0,0,.25) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
.u4ea-cpoll-icon { font-size: .95rem !important; flex-shrink: 0 !important; }
.u4ea-cpoll-q {
    flex: 1 !important;
    font-family: 'Orbitron', monospace !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    color: #e8f4e8 !important;
    letter-spacing: .4px !important;
}
.u4ea-cpoll-tag {
    font-size: .55rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #00ff88 !important;
    background: rgba(0,255,136,.08) !important;
    border: 1px solid rgba(0,255,136,.25) !important;
    border-radius: 3px !important;
    padding: .1rem .35rem !important;
    font-family: 'Orbitron', monospace !important;
    white-space: nowrap !important;
}
.u4ea-cpoll-body { padding: .6rem .75rem .75rem !important; }
.u4ea-cpoll-guest {
    font-size: .78rem !important;
    color: #7a9a8a !important;
    padding: .3rem 0 !important;
}
/* Voting options */
.u4ea-cpoll-option {
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    padding: .35rem .5rem !important;
    margin-bottom: .25rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    border: 1px solid rgba(255,255,255,.06) !important;
    background: rgba(255,255,255,.03) !important;
    transition: background .15s, border-color .15s !important;
}
.u4ea-cpoll-option:hover { background: rgba(0,255,136,.07) !important; border-color: rgba(0,255,136,.25) !important; }
.u4ea-cpoll-option input { display: none !important; }
.u4ea-cpoll-omark {
    width: 14px !important; height: 14px !important;
    border: 2px solid rgba(255,255,255,.3) !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    transition: border-color .15s, background .15s !important;
}
.u4ea-cpoll-option input[type="checkbox"] ~ .u4ea-cpoll-omark { border-radius: 3px !important; }
.u4ea-cpoll-option input:checked ~ .u4ea-cpoll-omark {
    border-color: #00ff88 !important;
    background: #00ff88 !important;
}
.u4ea-cpoll-olabel { font-size: .8rem !important; color: #cce8d8 !important; flex: 1 !important; }
.u4ea-cpoll-vote {
    margin-top: .5rem !important;
    background: linear-gradient(135deg,#00c864,#00ff88) !important;
    color: #0a1a10 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: .35rem .9rem !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: 'Orbitron', monospace !important;
    letter-spacing: .5px !important;
    transition: opacity .15s !important;
}
.u4ea-cpoll-vote:disabled { opacity: .55 !important; cursor: default !important; }
.u4ea-cpoll-view-results {
    margin-top: .3rem !important;
    margin-left: .4rem !important;
    background: none !important;
    border: none !important;
    color: rgba(0,255,136,.55) !important;
    font-size: .7rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    text-decoration: underline !important;
    transition: color .15s !important;
}
.u4ea-cpoll-view-results:hover { color: #00ff88 !important; }
/* Results */
.u4ea-cpoll-result { margin-bottom: .35rem !important; }
.u4ea-cpoll-rl {
    display: flex !important;
    align-items: center !important;
    gap: .35rem !important;
    margin-bottom: .2rem !important;
}
.u4ea-cpoll-rl .u4ea-cpoll-olabel { font-size: .78rem !important; }
.u4ea-cpoll-check { color: #00ff88 !important; font-size: .85rem !important; }
.u4ea-cpoll-pct {
    margin-left: auto !important;
    font-size: .73rem !important;
    color: #7a9a8a !important;
    white-space: nowrap !important;
    font-family: 'Orbitron', monospace !important;
}
.u4ea-cpoll-bar-wrap {
    height: 5px !important;
    background: rgba(255,255,255,.07) !important;
    border-radius: 3px !important;
    overflow: hidden !important;
}
.u4ea-cpoll-bar {
    height: 100% !important;
    background: linear-gradient(90deg,#00c864,#00ff88) !important;
    border-radius: 3px !important;
    transition: width .5s ease !important;
}
.u4ea-cpoll-result.voted .u4ea-cpoll-bar { background: linear-gradient(90deg,#009948,#00cc66) !important; }
.u4ea-cpoll-total {
    margin-top: .5rem !important;
    font-size: .7rem !important;
    color: #5a7a6a !important;
    text-align: right !important;
    font-family: 'Orbitron', monospace !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TYPING INDICATORS
   ══════════════════════════════════════════════════════════════════════════════ */
.u4ea-typing-indicator {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .5rem .8rem;
    min-height: 28px;
    font-size: .75rem;
    color: #5a8a7a;
    font-family: 'Exo 2', sans-serif;
    font-style: italic;
}
.u4ea-typing-indicator.active {
    display: flex;
}

/* Animated bouncing dots */
.u4ea-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.u4ea-typing-dots span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00ff88;
    opacity: .4;
    animation: u4eaTypingBounce 1.2s ease-in-out infinite;
}
.u4ea-typing-dots span:nth-child(2) { animation-delay: .2s; }
.u4ea-typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes u4eaTypingBounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: .4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RIGHT-HAND ONLINE ROSTER SIDEBAR
   ══════════════════════════════════════════════════════════════════════════════ */

/* The sidebar itself */
.u4ea-roster-sidebar {
    position: fixed !important;
    top: 64px;
    right: 0;
    width: 200px;
    height: calc(100vh - 64px);
    background: #0a0e14;
    border-left: 1px solid rgba(0,255,136,.1);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
}
.admin-bar .u4ea-roster-sidebar {
    top: 96px;
    height: calc(100vh - 96px);
}
@media screen and (max-width: 782px) {
    .admin-bar .u4ea-roster-sidebar {
        top: 110px;
        height: calc(100vh - 110px);
    }
}

/* Push content right on bbPress pages to make room */
.has-forum-sidebar .site-main {
    margin-right: 200px;
    transition: margin-left .25s ease, margin-right .25s ease;
}

/* Inner scrollable area */
.u4ea-roster-inner {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,.15) transparent;
    padding-bottom: 1rem;
}
.u4ea-roster-inner::-webkit-scrollbar { width: 3px; }
.u4ea-roster-inner::-webkit-scrollbar-thumb { background: rgba(0,255,136,.2); border-radius: 2px; }

/* Header */
.u4ea-roster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem .85rem .4rem;
    flex-shrink: 0;
}
.u4ea-roster-heading {
    font-family: 'Orbitron', monospace;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #3a6a5a;
    text-transform: uppercase;
}
.u4ea-roster-count {
    font-family: 'Orbitron', monospace;
    font-size: .55rem;
    font-weight: 700;
    color: #00ff88;
    background: rgba(0,255,136,.1);
    border-radius: 8px;
    padding: .1rem .4rem;
    min-width: 18px;
    text-align: center;
}

/* User list */
.u4ea-roster-list {
    list-style: none;
    margin: 0;
    padding: .3rem 0;
}
.u4ea-roster-empty {
    font-size: .7rem;
    color: #2a4a3a;
    font-style: italic;
    padding: .5rem .85rem;
    font-family: 'Exo 2', sans-serif;
}

/* Each user row */
.u4ea-roster-item {
    padding: 0 .5rem;
    margin-bottom: 2px;
}
.u4ea-roster-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .4rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
}
.u4ea-roster-link:hover {
    background: rgba(0,255,136,.07);
}
.u4ea-roster-item.is-me .u4ea-roster-link {
    background: rgba(0,255,136,.04);
}

/* Avatar with online dot */
.u4ea-roster-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.u4ea-roster-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,255,136,.15);
}
.u4ea-roster-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    border: 2px solid #0a0e14;
    box-shadow: 0 0 5px rgba(0,255,136,.5);
}

/* Name */
.u4ea-roster-name {
    font-family: 'Exo 2', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    color: #8aacbc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    line-height: 1.2;
}
.u4ea-roster-you {
    font-size: .58rem;
    opacity: .5;
    font-weight: 400;
    font-style: italic;
}

/* Hide on tablet and below */
@media (max-width: 1100px) {
    .u4ea-roster-sidebar { display: none !important; }
    .has-forum-sidebar .site-main { margin-right: 0 !important; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR RESTORE TABS
   Small fixed tabs at the window edge — only visible when sidebar is collapsed.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Shared base style ───────────────────────────────────────────────────────*/
.u4ea-sidebar-restore-tab,
.u4ea-roster-restore-tab {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    display: none;          /* hidden by default — shown when collapsed */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 20px;
    padding: .7rem .2rem;
    background: #0a0e14;
    border: 1px solid rgba(0,255,136,.25);
    color: rgba(0,255,136,.6);
    cursor: pointer;
    font-size: .55rem;
    line-height: 1;
    transition: background .15s, color .15s, border-color .15s;
}
.u4ea-sidebar-restore-tab:hover,
.u4ea-roster-restore-tab:hover {
    background: rgba(0,255,136,.1);
    border-color: rgba(0,255,136,.5);
    color: #00ff88;
}
.u4ea-restore-tab-label {
    font-size: .65rem;
    pointer-events: none;
}

/* ── Left restore tab — hugs the left window edge ───────────────────────────*/
.u4ea-sidebar-restore-tab {
    left: 0 !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
}

/* ── Right restore tab — hugs the right window edge ─────────────────────────*/
.u4ea-roster-restore-tab {
    right: 0 !important;
    border-right: none !important;
    border-radius: 6px 0 0 6px !important;
}

/* ── Show only when respective sidebar is collapsed ──────────────────────────*/
body.sidebar-collapsed .u4ea-sidebar-restore-tab {
    display: flex !important;
}
body.roster-collapsed .u4ea-roster-restore-tab {
    display: flex !important;
}

/* Hide on mobile where sidebars are already hidden */
@media (max-width: 768px) {
    .u4ea-sidebar-restore-tab { display: none !important; }
}
@media (max-width: 1100px) {
    .u4ea-roster-restore-tab { display: none !important; }
}

/* ── Roster offline users — greyed out ──────────────────────────────────────*/
.u4ea-roster-item.is-offline .u4ea-roster-avatar {
    opacity: .3 !important;
    filter: grayscale(100%) !important;
}
.u4ea-roster-item.is-offline .u4ea-roster-name {
    opacity: .35 !important;
    color: #4a6a5a !important;
}
.u4ea-roster-item.is-offline .u4ea-roster-link:hover .u4ea-roster-avatar {
    opacity: .55 !important;
    filter: grayscale(60%) !important;
}
.u4ea-roster-item.is-offline .u4ea-roster-link:hover .u4ea-roster-name {
    opacity: .6 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CHAT DOCK MODE — Discord-style expanded panel between sidebars
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Panel transition ────────────────────────────────────────────────────────*/
.u4ea-chat-panel {
    transition:
        bottom .3s cubic-bezier(.4,0,.2,1),
        right  .3s cubic-bezier(.4,0,.2,1),
        left   .3s cubic-bezier(.4,0,.2,1),
        top    .3s cubic-bezier(.4,0,.2,1),
        width  .3s cubic-bezier(.4,0,.2,1),
        height .3s cubic-bezier(.4,0,.2,1),
        border-radius .3s ease !important;
}

/* ── Docked mode — Discord-style large panel anchored to bottom ──────────────
   Sits between the two sidebars (left: 220px, right: 200px).
   Occupies the bottom 55% of the viewport.
   ─────────────────────────────────────────────────────────────────────────── */
.u4ea-chat-panel.docked {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    width: auto !important;
    height: 55vh !important;
    min-height: 320px !important;
    max-height: 700px !important;
    margin-left: 220px !important;
    margin-right: 200px !important;
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none !important;
    border-left: 1px solid rgba(0,255,136,.2) !important;
    border-right: 1px solid rgba(0,255,136,.2) !important;
    border-top: 1px solid rgba(0,255,136,.25) !important;
    flex-direction: column !important;
    z-index: 1 !important;
    box-shadow: 0 -8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(0,255,136,.05) !important;
}

/* ── Minimized docked state — only the header bar is visible ───────────── */
.u4ea-chat-panel.docked.minimized {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 8px 8px 0 0 !important;
}
.u4ea-chat-panel.docked.minimized .u4ea-chat-body,
.u4ea-chat-panel.docked.minimized .u4ea-chat-input-area,
.u4ea-chat-panel.docked.minimized .u4ea-chat-search-bar,
.u4ea-chat-panel.docked.minimized .u4ea-chat-pinned-bar,
.u4ea-chat-panel.docked.minimized .u4ea-chat-topic-bar,
.u4ea-chat-panel.docked.minimized .u4ea-chat-readonly-banner {
    display: none !important;
}
.u4ea-chat-panel.docked.minimized .u4ea-chat-header {
    cursor: pointer !important;
    border-radius: 8px 8px 0 0 !important;
}

/* Restore normal layout children in docked mode */
.u4ea-chat-panel.docked .u4ea-chat-messages {
    display: flex !important;
    flex: 1 !important;
    min-height: 0 !important;
}
.u4ea-chat-panel.docked .u4ea-chat-header {
    width: auto !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid rgba(0,255,136,.12) !important;
    border-right: none !important;
    padding: .6rem .8rem !important;
    min-width: unset !important;
    cursor: default !important; /* no drag in docked mode */
}
.u4ea-chat-panel.docked .u4ea-chat-viewers { display: inline-flex !important; }
.u4ea-chat-panel.docked .u4ea-chat-input-area {
    flex-shrink: 0 !important;
    border-top: 1px solid rgba(0,255,136,.1) !important;
    padding: .5rem .65rem !important;
    align-items: center !important;
}
.u4ea-chat-panel.docked .u4ea-chat-input {
    max-height: 80px !important;
    min-height: 36px !important;
}

/* ── Collapse sidebars: adjust docked panel when sidebars collapse ───────────*/
body.sidebar-collapsed .u4ea-chat-panel.docked { margin-left: 0 !important; }
body.roster-collapsed  .u4ea-chat-panel.docked { margin-right: 0 !important; }
@media (max-width: 1100px) { .u4ea-chat-panel.docked { margin-right: 0 !important; } }
/* ── Mobile: switch to fixed bottom sheet so input is always in view ────────*/
@media (max-width: 768px) {
    /* Fixed at the bottom — panel is always accessible, input always visible */
    .u4ea-chat-panel.docked {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 55vh !important;
        min-height: 0 !important;
        max-height: 75vh !important;
        z-index: 9998 !important;
        border-radius: 12px 12px 0 0 !important;
    }
    /* Minimized: just the header bar — add safe-area padding so buttons
       clear the iPhone home indicator gesture zone */
    .u4ea-chat-panel.docked.minimized {
        height: auto !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }
    /* Push page content up so it's not hidden behind the fixed chat */
    body.u4ea-chat-docked:not(.u4ea-chat-minimized) {
        padding-bottom: 55vh !important;
    }
    body.u4ea-chat-docked.u4ea-chat-minimized {
        padding-bottom: 52px !important;
    }
    /* Hide viewer count to prevent header overflow on narrow screens */
    .u4ea-chat-viewers { display: none !important; }
    /* Large tap targets for header buttons */
    .u4ea-chat-header-close,
    .u4ea-chat-search-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.3rem !important;
    }
    /* ── Chat input area — touch targets & iOS zoom fix ── */
    .u4ea-chat-input-area { gap: .3rem !important; padding: .45rem .5rem !important; }
    /* font-size must be ≥ 16px to prevent iOS from auto-zooming the page */
    .u4ea-chat-input { min-height: 44px !important; font-size: 1rem !important; }
    .u4ea-chat-send {
        min-height: 44px !important;
        min-width: 54px !important;
        padding: .4rem .55rem !important;
        font-size: .7rem !important;
    }
    .u4ea-chat-emoji-btn { min-width: 44px !important; min-height: 44px !important; font-size: 1.2rem !important; }
    .u4ea-chat-media-btn { width: 36px !important; height: 36px !important; }
    /* Hide roster ("Chatting" panel) — no space on mobile */
    .u4ea-chat-panel.docked .u4ea-chat-roster { display: none !important; }
    /* When user is typing: hide media buttons so the text input gets full width.
       Needs .u4ea-chat-panel.docked in the selector to beat the docked show-rule. */
    .u4ea-chat-panel.docked .u4ea-chat-input-area.is-typing .u4ea-chat-media-btn,
    .u4ea-chat-panel.docked .u4ea-chat-input-area.is-typing .u4ea-chat-server-wrap { display: none !important; }
}


/* ── Shoutbox expand button — plain label in this mode ──────────────────────*/
.u4ea-shoutbox-expand-btn {
    background: none !important;
    border: none !important;
    cursor: default !important;
    display: flex !important;
    align-items: center !important;
    gap: .35rem !important;
    font-family: "Orbitron", monospace !important;
    font-size: .65rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #00ff88 !important;
    padding: 0 !important;
    flex: 1 !important;
    pointer-events: none !important;
}
.u4ea-shoutbox-caret,
.u4ea-shoutbox-drawer { display: none !important; }
body.u4ea-shoutbox-open { padding-bottom: 0 !important; }

/* ── Edit post/reply modal ───────────────────────────────────────────────────*/
.u4ea-edit-modal .u4ea-modal-inner {
    max-height: 90vh;
    overflow-y: auto;
}
.u4ea-edit-modal .u4ea-modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

/* ── Edit modal — ensure toolbar and form elements render correctly ───────────
   The edit form is moved outside #bbpress-forums, so we need to replicate
   the key resets that bbpress.css applies via that parent selector.           */
.u4ea-edit-modal .quicktags-toolbar,
.u4ea-edit-modal div[id$="_toolbar"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .3rem !important;
    list-style: none !important;
    padding: .4rem .5rem !important;
    margin: 0 !important;
    background: rgba(0,0,0,.3) !important;
    border: 1px solid rgba(0,255,136,.15) !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
}
.u4ea-edit-modal .quicktags-toolbar li,
.u4ea-edit-modal div[id$="_toolbar"] li {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.u4ea-edit-modal #bbp_reply_content,
.u4ea-edit-modal #bbp_topic_content {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #080c14 !important;
    border: 1px solid rgba(0,255,136,.2) !important;
    border-radius: 0 0 6px 6px !important;
    color: #c8d8e8 !important;
    font-family: 'Exo 2', sans-serif !important;
    font-size: .88rem !important;
    padding: .75rem !important;
    min-height: 180px !important;
    resize: vertical !important;
}
.u4ea-edit-modal .u4ea-modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}
/* Upload/image bar inside edit modal */
.u4ea-edit-modal .u4ea-upload-bar,
.u4ea-edit-modal .u4ea-media-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .4rem !important;
}

/* ── Chat media buttons (image upload + GIF) ────────────────────────────────*/
.u4ea-chat-media-btn {
    flex-shrink: 0 !important;
    background: none !important;
    border: 1px solid rgba(0,255,136,.18) !important;
    border-radius: 5px !important;
    color: rgba(0,255,136,.5) !important;
    cursor: pointer !important;
    width: 28px !important;
    height: 28px !important;
    display: none !important;   /* hidden in floating mode by default */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background .15s, color .15s, border-color .15s !important;
}
/* Only show in docked / popout mode */
.u4ea-chat-panel.docked .u4ea-chat-media-btn,
.u4ea-chat-panel.popout-mode .u4ea-chat-media-btn {
    display: flex !important;
}
.u4ea-chat-media-btn:hover {
    background: rgba(0,255,136,.1) !important;
    color: #00ff88 !important;
    border-color: rgba(0,255,136,.45) !important;
}
.u4ea-chat-media-btn:disabled {
    opacity: .4 !important;
    cursor: default !important;
}
.u4ea-chat-gif-label {
    font-family: 'Orbitron', monospace !important;
    font-size: .48rem !important;
    font-weight: 900 !important;
    letter-spacing: .5px !important;
    line-height: 1 !important;
    pointer-events: none !important;
}
/* ── Server banner picker ─────────────────────────────────────────────────── */
.u4ea-chat-server-wrap { position: relative !important; display: inline-flex !important; align-items: center !important; }
#u4eaServerPicker {
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 0 !important;
    width: 300px !important;
    background: #141420 !important;
    border: 1px solid #00ff88 !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.7) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}
.u4ea-server-picker-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 7px 12px !important;
    background: #0d0d1a !important;
    border-bottom: 1px solid rgba(0,255,136,.2) !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    color: #00ff88 !important;
    letter-spacing: .5px !important;
    text-transform: uppercase !important;
}
.u4ea-server-picker-header button {
    background: none !important;
    border: none !important;
    color: #777 !important;
    cursor: pointer !important;
    font-size: .9rem !important;
    line-height: 1 !important;
    padding: 2px 4px !important;
    transition: color .15s !important;
}
.u4ea-server-picker-header button:hover { color: #fff !important; }
.u4ea-server-picker-list { max-height: 190px !important; overflow-y: auto !important; padding: 4px 0 !important; }
.u4ea-server-picker-loading,
.u4ea-server-picker-empty { padding: 14px 12px !important; font-size: .78rem !important; color: #666 !important; text-align: center !important; }
.u4ea-server-picker-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 7px 12px !important;
    cursor: pointer !important;
    border-bottom: 1px solid rgba(255,255,255,.04) !important;
    transition: background .12s !important;
}
.u4ea-server-picker-item:hover { background: rgba(0,255,136,.08) !important; }
.u4ea-server-picker-item.selected { background: rgba(0,255,136,.12) !important; border-left: 3px solid #00ff88 !important; padding-left: 9px !important; }
.u4ea-server-picker-name { font-size: .75rem !important; color: #ccc !important; flex: 1 !important; margin-right: 8px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.u4ea-server-picker-count { font-size: .72rem !important; color: #00ff88 !important; white-space: nowrap !important; font-family: 'Orbitron', monospace !important; }
.u4ea-server-picker-preview {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-top: 1px solid rgba(0,255,136,.2) !important;
    background: #0d0d1a !important;
}
.u4ea-server-picker-preview img { max-width: 100% !important; border-radius: 4px !important; display: block !important; }
#u4eaServerPickerInsert {
    background: #00ff88 !important;
    color: #0d0d1a !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 5px 14px !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: opacity .15s !important;
}
#u4eaServerPickerInsert:hover { opacity: .85 !important; }
/* ── End server banner picker ─────────────────────────────────────────────── */

/* Images inside chat messages — sized by context */
#u4eaChatMessages img:not(.u4ea-chat-msg-avatar):not(.u4ea-emoji-img) {
    /* Cap at 330px to prevent overflow; width:auto keeps small images at natural size */
    max-width: min(330px, 100%) !important;
    width: auto !important;
    height: auto !important;
    border-radius: 6px !important;
    display: block !important;
    margin-top: 4px !important;
    cursor: zoom-in !important;
}
/* Docked mode: same 330px cap */
.u4ea-chat-panel.docked #u4eaChatMessages img:not(.u4ea-chat-msg-avatar):not(.u4ea-emoji-img) {
    max-width: min(330px, 100%) !important;
    width: auto !important;
}
#u4eaChatMessages a:has(img) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
/* No horizontal scroll in floating panel */
.u4ea-chat-messages {
    overflow-x: hidden !important;
}
.u4ea-chat-msg-body {
    min-width: 0 !important;
    overflow: hidden !important;
    word-break: break-word !important;
}
.u4ea-chat-msg-text {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ── Edit modal — form field theming (selects, labels, inputs) ───────────────*/
.u4ea-edit-modal fieldset.bbp-form {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 1rem !important;
}
.u4ea-edit-modal fieldset.bbp-form legend {
    font-family: 'Orbitron', monospace !important;
    font-size: .6rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #00ff88 !important;
    text-transform: uppercase !important;
    margin-bottom: .5rem !important;
    padding: 0 !important;
}
.u4ea-edit-modal fieldset.bbp-form label {
    display: block !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    color: #aabbc8 !important;
    margin-bottom: .4rem !important;
    font-family: 'Exo 2', sans-serif !important;
}
.u4ea-edit-modal fieldset.bbp-form input[type="text"],
.u4ea-edit-modal fieldset.bbp-form input[type="number"] {
    background: rgba(0,0,0,.3) !important;
    border: 1px solid rgba(0,255,136,.12) !important;
    border-radius: 7px !important;
    padding: .6rem .8rem !important;
    color: #ddeeff !important;
    font-size: .88rem !important;
    font-family: 'Exo 2', sans-serif !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.u4ea-edit-modal fieldset.bbp-form input[type="text"]:focus {
    border-color: rgba(0,255,136,.45) !important;
    box-shadow: 0 0 0 3px rgba(0,255,136,.05) !important;
}
.u4ea-edit-modal fieldset.bbp-form input[type="submit"] {
    background: linear-gradient(135deg, #00ff88, #00d4ff) !important;
    border: none !important;
    border-radius: 7px !important;
    color: #080c10 !important;
    font-family: 'Orbitron', monospace !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: .75rem 2rem !important;
    cursor: pointer !important;
    width: auto !important;
    float: right !important;
}
.u4ea-edit-modal .bbp-submit-wrapper { overflow: hidden; margin-top: 1rem !important; }

/* ── Edit modal form selects, inputs ────────────────────────────────────────*/
.u4ea-edit-modal #new-post select,
.u4ea-edit-modal .bbp-form select {
    width: 100% !important;
    background: #0a0e14 !important;
    border: 1px solid rgba(0,255,136,.15) !important;
    border-radius: 6px !important;
    padding: .6rem .8rem !important;
    color: #c8d8e8 !important;
    font-family: 'Exo 2', sans-serif !important;
    font-size: .85rem !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    transition: border-color .2s !important;
}
.u4ea-edit-modal #new-post select:focus,
.u4ea-edit-modal .bbp-form select:focus {
    border-color: rgba(0,255,136,.45) !important;
    box-shadow: 0 0 0 3px rgba(0,255,136,.06) !important;
}
/* Option elements inside dark selects */
.u4ea-edit-modal #new-post select option {
    background: #0a0e14 !important;
    color: #c8d8e8 !important;
}
/* Labels and meta rows in edit form */
.u4ea-edit-modal #new-post label,
.u4ea-edit-modal .bbp-form label {
    display: block !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    color: #8aacbc !important;
    margin-bottom: .35rem !important;
    font-family: 'Exo 2', sans-serif !important;
}
.u4ea-edit-modal #new-post fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 1rem !important;
}
.u4ea-edit-modal #new-post legend {
    font-family: 'Orbitron', monospace !important;
    font-size: .6rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #00ff88 !important;
    text-transform: uppercase !important;
    margin-bottom: .5rem !important;
}

/* ── Feature 12 — Last-seen text in roster ──────────────────────────────────── */
.u4ea-roster-last-seen {
    font-size: .68rem;
    color: rgba(140,180,200,.45);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Feature 13 — Friends Online section in roster ──────────────────────────── */
.u4ea-roster-friends-header .u4ea-roster-section-label { color: #ffd700; }
.u4ea-roster-friends-list { margin-bottom: .5rem; }

/* ── Feature 13 — Follow button in profile popout ───────────────────────────── */
.u4ea-follow-btn {
    background: transparent !important;
    border: 1px solid rgba(0,255,136,.35) !important;
    color: rgba(0,255,136,.8) !important;
    font-size: .72rem !important;
    cursor: pointer !important;
    transition: background .15s, border-color .15s, color .15s !important;
}
.u4ea-follow-btn:hover { background: rgba(0,255,136,.08) !important; border-color: #00ff88 !important; color: #00ff88 !important; }
.u4ea-follow-btn.following { background: rgba(0,255,136,.12) !important; border-color: #00ff88 !important; color: #00ff88 !important; }

/* ── Feature 11 — Custom status & last-seen in profile popout ───────────────── */
.u4ea-popout-custom-status {
    font-size: .72rem;
    color: rgba(0,255,136,.75);
    margin: .15rem 0 .1rem;
    font-style: italic;
}
.u4ea-popout-last-seen {
    font-size: .68rem;
    color: rgba(140,180,200,.5);
    margin-bottom: .25rem;
}

/* ── Feature 13 — Sessions in roster ───────────────────────────────────────── */
.u4ea-roster-sessions-header { margin-top: .75rem; }
.u4ea-roster-sessions-header .u4ea-roster-section-label { color: #7ec8e3; }
.u4ea-roster-sessions-list { padding: 0; list-style: none; margin: 0 0 .5rem; }
.u4ea-roster-session-item {
    padding: .45rem .6rem;
    border-radius: 5px;
    background: rgba(0,0,0,.18);
    margin-bottom: .3rem;
    border-left: 2px solid rgba(126,200,227,.3);
}
.u4ea-roster-session-title { font-size: .78rem; font-weight: 600; color: #c8e6f0; margin-bottom: .2rem; }
.u4ea-roster-session-meta { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .65rem; color: rgba(140,180,200,.6); margin-bottom: .3rem; }
.u4ea-roster-session-game { color: #00ff88; font-weight: 500; }
.u4ea-session-rsvp-btn {
    font-size: .65rem; padding: .2rem .55rem; border-radius: 3px; border: 1px solid rgba(0,255,136,.4);
    background: transparent; color: rgba(0,255,136,.8); cursor: pointer; transition: .15s;
}
.u4ea-session-rsvp-btn:hover { background: rgba(0,255,136,.1); color: #00ff88; }
.u4ea-session-rsvp-btn.attending { background: rgba(0,255,136,.15); color: #00ff88; border-color: #00ff88; }
.u4ea-session-rsvp-btn:disabled { opacity: .45; cursor: default; }

/* ── Feature 14 — Server status cards on front page ─────────────────────────── */
.server-status-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,10,20,.4) 50%, transparent 100%);
}
.server-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.server-card {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(0,255,136,.12);
    border-radius: 8px;
    padding: 1.1rem 1.2rem 1rem;
    transition: border-color .2s, transform .2s;
}
.server-card:hover { border-color: rgba(0,255,136,.35); transform: translateY(-2px); }
.server-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.server-card-icon { font-size: 1.3rem; }
.server-card-name { font-size: .82rem; font-weight: 600; color: #c8e6f0; margin-bottom: .2rem; line-height: 1.3; }
.server-card-game { font-size: .68rem; color: rgba(0,255,136,.7); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .5px; }
.server-card-players { display: flex; align-items: baseline; gap: .2rem; font-size: .85rem; margin-bottom: .4rem; }
.server-player-count { font-size: 1.2rem; font-weight: 700; color: #00ff88; font-family: 'Orbitron', monospace; }
.server-player-sep, .server-player-max { color: rgba(140,180,200,.5); font-size: .78rem; }
.server-player-label { font-size: .65rem; color: rgba(140,180,200,.45); margin-left: .15rem; }
.server-card-bar-wrap { background: rgba(255,255,255,.06); border-radius: 3px; height: 3px; margin-bottom: .5rem; overflow: hidden; }
.server-card-bar { height: 100%; background: linear-gradient(90deg, #00ff88, #00c8ff); border-radius: 3px; transition: width .5s; }
.server-card-link { font-size: .68rem; color: rgba(0,255,136,.6); text-decoration: none; display: inline-block; margin-top: .25rem; }
.server-card-link:hover { color: #00ff88; }

/* ── Empty server cards (0 players — fallback state) ─────────────────────── */
@keyframes server-card-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0);   border-color: rgba(0,255,136,.2); }
    50%       { box-shadow: 0 0 18px 3px rgba(0,255,136,.16); border-color: rgba(0,255,136,.45); }
}
.server-card--empty {
    border-color: rgba(0,255,136,.22);
    animation: server-card-glow 2.4s ease-in-out infinite;
}
.server-card--empty:hover {
    animation: none;
    border-color: rgba(0,255,136,.55);
    box-shadow: 0 0 22px 4px rgba(0,255,136,.2);
    transform: translateY(-2px);
}
/* Player row placeholder — same min-height as the live player count so the card doesn't shrink */
.server-card-players--empty {
    min-height: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: .4rem;
}
/* SERVER ONLINE badge */
.server-online-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #00ff88;
    color: #050f05;
    font-family: 'Orbitron', monospace;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: .22rem .65rem;
    border-radius: 4px;
    cursor: default;
    user-select: none;
    white-space: nowrap;
}
.server-online-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #050f05;
    flex-shrink: 0;
    animation: badge-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes badge-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.55); }
}
/* Subtle animated bar for empty servers */
.server-card-bar-wrap--empty { overflow: hidden; }
.server-card-bar--pulse {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,.5), transparent);
    background-size: 200% 100%;
    animation: server-bar-scan 2.2s ease-in-out infinite;
    width: 100% !important;
}
@keyframes server-bar-scan {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* JOIN NOW / Details button row — flex so both sit side-by-side on active servers */
.server-card .server-card-join-btn,
.server-card .server-card-link {
    display: inline-flex;
    align-items: center;
}
/* Wrap them in a flex row */
.server-card-join-btn + .server-card-link,
.server-card-link + .server-card-join-btn {
    margin-left: .4rem;
}
/* JOIN NOW button */
.server-card-join-btn {
    display: inline-block;
    margin-top: .35rem;
    padding: .3rem .8rem;
    background: rgba(0,255,136,.14);
    border: 1px solid rgba(0,255,136,.4);
    border-radius: 5px;
    color: #00ff88;
    font-size: .65rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    letter-spacing: .8px;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .12s;
}
.server-card-join-btn:hover {
    background: rgba(0,255,136,.26);
    border-color: #00ff88;
    transform: scale(1.04);
    color: #00ff88;
}

/* ── Feature 15 — Session cards on front page ───────────────────────────────── */
.sessions-section { padding: 4rem 0; }
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.session-card {
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(126,200,227,.15);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    transition: border-color .2s, transform .2s;
}
.session-card:hover { border-color: rgba(126,200,227,.4); transform: translateY(-2px); }
.session-card-when { font-size: .68rem; font-weight: 700; color: #7ec8e3; text-transform: uppercase; letter-spacing: .8px; }
.session-card-title { font-size: .95rem; font-weight: 700; color: #e8f4fc; line-height: 1.3; }
.session-card-game { font-size: .75rem; color: rgba(0,255,136,.75); }
.session-card-desc { font-size: .75rem; color: rgba(140,180,200,.7); line-height: 1.4; }
.session-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.05); }
.session-card-count { font-size: .7rem; color: rgba(140,180,200,.55); }
.session-rsvp-btn {
    padding: .35rem .85rem; border-radius: 4px; border: 1px solid rgba(0,255,136,.45);
    background: transparent; color: rgba(0,255,136,.85); font-size: .75rem; font-weight: 600;
    cursor: pointer; transition: .15s;
}
.session-rsvp-btn:hover { background: rgba(0,255,136,.1); color: #00ff88; border-color: #00ff88; }
.session-rsvp-btn.attending { background: rgba(0,255,136,.15); color: #00ff88; border-color: #00ff88; }
.session-rsvp-btn:disabled { opacity: .4; cursor: default; }

/* ══════════════════════════════════════════════════════════════════════════════
   MULTI-CHANNEL CHAT — Channel sidebar + docked body layout
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Flex wrapper: channel sidebar on left, messages on right ────────────────*/
.u4ea-chat-body {
    display: flex !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* ── Channel sidebar ─────────────────────────────────────────────────────────*/
.u4ea-chat-channel-sidebar {
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    width: 148px !important;
    background: rgba(0,0,0,.25) !important;
    border-right: 1px solid rgba(0,255,136,.1) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: .5rem 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0,255,136,.15) transparent !important;
}

.u4ea-chat-channel-sidebar-label {
    padding: .4rem .75rem .25rem !important;
    font-size: .58rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #3a5a4a !important;
    font-family: 'Orbitron', monospace !important;
    user-select: none !important;
}

.u4ea-chat-channel-item {
    display: flex !important;
    align-items: center !important;
    gap: .4rem !important;
    width: 100% !important;
    padding: .35rem .7rem !important;
    background: none !important;
    border: none !important;
    color: #6a8a7a !important;
    font-size: .78rem !important;
    font-family: 'Exo 2', sans-serif !important;
    text-align: left !important;
    cursor: pointer !important;
    border-radius: 5px !important;
    margin: 1px 4px !important;
    width: calc(100% - 8px) !important;
    transition: background .12s, color .12s !important;
    white-space: nowrap !important;
    overflow: visible !important;
    position: relative !important;
}
.u4ea-chat-unread-dot {
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    background: #00e5a0 !important;
    border-radius: 50% !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 5px rgba(0,229,160,.7) !important;
    animation: u4ea-unread-pulse 2s ease-in-out infinite !important;
    pointer-events: none !important;
}
@keyframes u4ea-unread-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .55; transform: scale(.8); }
}
.u4ea-chat-channel-item:hover {
    background: rgba(0,255,136,.07) !important;
    color: #a0c8b8 !important;
}
.u4ea-chat-channel-item.active {
    background: rgba(0,255,136,.12) !important;
    color: #00ff88 !important;
    font-weight: 600 !important;
}
.u4ea-chat-channel-emoji {
    flex-shrink: 0 !important;
    font-size: .85rem !important;
    line-height: 1 !important;
}
.u4ea-chat-channel-name {
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.u4ea-chat-channel-ro,
.u4ea-chat-channel-slow {
    font-size: .65rem !important;
    opacity: .55 !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}
.u4ea-chat-channel-empty {
    padding: .5rem .75rem !important;
    font-size: .72rem !important;
    color: #3a5a4a !important;
    font-style: italic !important;
}

/* ── Main chat area (right of channel sidebar) ───────────────────────────────*/
.u4ea-chat-main {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* ── Read-only banner ────────────────────────────────────────────────────────*/
.u4ea-chat-readonly-banner {
    padding: .35rem .75rem !important;
    background: rgba(255,180,0,.08) !important;
    border-bottom: 1px solid rgba(255,180,0,.2) !important;
    color: #c8a040 !important;
    font-size: .72rem !important;
    font-family: 'Exo 2', sans-serif !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* ── Read-only input state ───────────────────────────────────────────────────*/
.u4ea-chat-input--readonly {
    opacity: .5 !important;
    cursor: not-allowed !important;
    background: rgba(0,0,0,.2) !important;
    border-color: rgba(255,255,255,.06) !important;
}

/* ── docked: messages now inside .u4ea-chat-main ────────────────────────────*/
.u4ea-chat-panel.docked .u4ea-chat-messages {
    display: flex !important;
    flex: 1 !important;
    min-height: 0 !important;
}
.u4ea-chat-panel.docked .u4ea-chat-main {
    min-height: 0 !important;
    overflow: hidden !important;
}

/* ── Responsive: hide channel names on narrow viewports ─────────────────────*/
@media (max-width: 600px) {
    .u4ea-chat-channel-sidebar { width: 44px !important; }
    .u4ea-chat-channel-name,
    .u4ea-chat-channel-sidebar-label,
    .u4ea-chat-channel-ro,
    .u4ea-chat-channel-slow { display: none !important; }
    .u4ea-chat-channel-item { justify-content: center !important; padding: .4rem .3rem !important; margin: 1px 2px !important; width: calc(100% - 4px) !important; }
    .u4ea-chat-unread-dot { position: absolute !important; top: 4px !important; right: 4px !important; margin-left: 0 !important; }
    .u4ea-chat-roster { display: none !important; }
}

/* ── Active user roster (right panel) ───────────────────────────────────────*/
.u4ea-chat-roster {
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    width: 155px !important;
    background: rgba(0, 0, 0, .28) !important;
    border-left: 1px solid rgba(255, 255, 255, .05) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 255, 136, .15) transparent !important;
}
.u4ea-chat-roster::-webkit-scrollbar { width: 3px !important; }
.u4ea-chat-roster::-webkit-scrollbar-track { background: transparent !important; }
.u4ea-chat-roster::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, .2) !important; border-radius: 2px !important; }
/* ── Members section (below Chatting roster) ──────────────────────────────── */
.u4ea-chat-roster-divider {
    height: 1px !important;
    background: rgba(255,255,255,.06) !important;
    margin: 4px 6px !important;
    flex-shrink: 0 !important;
}
.u4ea-chat-members-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.u4ea-members-counts {
    font-size: .5rem !important;
    color: rgba(0,212,255,.5) !important;
    font-family: 'Orbitron', monospace !important;
    letter-spacing: .5px !important;
}
.u4ea-chat-members-online-label,
.u4ea-chat-members-offline-label {
    font-size: .48rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 2px .65rem !important;
    color: rgba(200,216,232,.3) !important;
    font-family: 'Orbitron', monospace !important;
    flex-shrink: 0 !important;
    user-select: none !important;
}
.u4ea-chat-members-online-label {
    color: rgba(0,255,136,.3) !important;
}
.u4ea-chat-roster-item.u4ea-member-offline {
    opacity: .4 !important;
}
.u4ea-chat-members-role-header {
    font-size: .46rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 4px .65rem 1px !important;
    color: rgba(200,216,232,.3) !important;
    font-family: 'Orbitron', monospace !important;
    flex-shrink: 0 !important;
    user-select: none !important;
    text-transform: uppercase !important;
}
.u4ea-chat-roster-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}

.u4ea-chat-roster-header {
    padding: .45rem .65rem .3rem !important;
    font-size: .56rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    color: rgba(0, 255, 136, .45) !important;
    font-family: 'Orbitron', monospace !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    user-select: none !important;
}
.u4ea-chat-roster-list {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 3px 6px !important;
    gap: 1px !important;
}
.u4ea-chat-roster-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: .22rem !important;
    padding: .42rem .25rem .38rem !important;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 5px !important;
    transition: background .15s !important;
    cursor: pointer !important;
}
.u4ea-chat-roster-item:hover {
    background: rgba(0, 255, 136, .07) !important;
}
.u4ea-chat-roster-item img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 1.5px solid rgba(0, 255, 136, .2) !important;
    flex-shrink: 0 !important;
}
.u4ea-chat-roster-name {
    font-size: .59rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
    line-height: 1.2 !important;
}
.u4ea-chat-roster-status {
    font-size: .53rem !important;
    color: rgba(200, 220, 210, .35) !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
    line-height: 1.2 !important;
    font-style: italic !important;
}
.u4ea-chat-roster-empty {
    font-size: .62rem !important;
    color: rgba(255, 255, 255, .18) !important;
    text-align: center !important;
    padding: .9rem .4rem !important;
    display: block !important;
    font-style: italic !important;
}

/* ── Guest chat styles ───────────────────────────────────────────────────────*/
.u4ea-chat-guest-bar {
    padding: .28rem .85rem !important;
    font-size: .65rem !important;
    color: rgba(255, 255, 255, .35) !important;
    border-top: 1px solid rgba(255, 255, 255, .05) !important;
    background: rgba(0, 0, 0, .18) !important;
    display: flex !important;
    align-items: center !important;
    gap: .25rem !important;
    flex-wrap: wrap !important;
}
.u4ea-chat-guest-id {
    color: rgba(0, 255, 136, .65) !important;
    font-weight: 600 !important;
    font-family: 'Orbitron', monospace !important;
    font-size: .6rem !important;
}
.u4ea-chat-guest-login-link {
    color: #4ac8e8 !important;
    text-decoration: none !important;
}
.u4ea-chat-guest-login-link:hover { text-decoration: underline !important; }
.u4ea-chat-guest-badge {
    display: inline-block !important;
    font-size: .5rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    padding: .08em .35em !important;
    background: rgba(255, 200, 0, .12) !important;
    border: 1px solid rgba(255, 200, 0, .28) !important;
    border-radius: 3px !important;
    color: rgba(255, 200, 0, .75) !important;
    vertical-align: middle !important;
    margin-left: .25em !important;
}

/* ── CP Channels tab styles ──────────────────────────────────────────────────*/
.cp-channel-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: opacity .15s, border-color .15s, box-shadow .15s;
}
.cp-channel-card.cp-channel-dragging {
    opacity: .4;
    box-shadow: 0 0 0 2px rgba(0,255,136,.35);
}
.cp-channel-card.cp-channel-drag-over {
    border-color: rgba(0, 255, 136, .55);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, .2);
}
.cp-channel-drag-handle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.22);
    cursor: grab;
    padding: 0 .5rem 0 0;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
    transition: color .15s;
}
.cp-channel-drag-handle:hover { color: rgba(0,255,136,.55); }
.cp-channel-drag-handle:active { cursor: grabbing; }
.cp-channel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    cursor: default;
    gap: .5rem;
}
.cp-channel-card-title {
    font-weight: 600;
    font-size: .9rem;
    color: #c8e8d8;
}
.cp-channel-card-actions {
    display: flex;
    gap: .5rem;
}
.cp-btn-secondary {
    padding: .28rem .65rem;
    background: rgba(0, 212, 255, .07);
    border: 1px solid rgba(0, 212, 255, .22);
    border-radius: 5px;
    color: #4ac8e8;
    font-family: 'Exo 2', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
    letter-spacing: .2px;
}
.cp-btn-secondary:hover {
    background: rgba(0, 212, 255, .16);
    border-color: rgba(0, 212, 255, .45);
    color: #7adcf4;
}
.cp-btn-danger {
    padding: .28rem .65rem;
    background: rgba(255, 77, 109, .07);
    border: 1px solid rgba(255, 77, 109, .22);
    border-radius: 5px;
    color: #e06070;
    font-family: 'Exo 2', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
    letter-spacing: .2px;
}
.cp-btn-danger:hover {
    background: rgba(255, 77, 109, .18);
    border-color: rgba(255, 77, 109, .5);
    color: #ff6080;
}
.cp-channel-card-body {
    padding: .75rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.cp-ch-roles-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
}
.cp-ch-role-label {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    color: #8aaa9a;
    cursor: pointer;
}
.cp-channel-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.cp-action-btn--save {
    background: rgba(0,255,136,.12) !important;
    border-color: rgba(0,255,136,.35) !important;
    color: #00ff88 !important;
}
.cp-action-btn--save:hover {
    background: rgba(0,255,136,.22) !important;
}
.cp-save-msg { font-size: .82rem; padding: .4rem .75rem; border-radius: 5px; margin-top: .5rem; }
.cp-save-ok  { background: rgba(0,255,136,.08); border: 1px solid rgba(0,255,136,.25); color: #00ff88; }
.cp-save-err { background: rgba(255,77,109,.08); border: 1px solid rgba(255,77,109,.25); color: #ff4d6d; }
.cp-section-desc { font-size: .82rem; color: #6a8a7a; margin: -.25rem 0 1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   OAUTH / SOCIAL LOGIN
═══════════════════════════════════════════════════════════════════════════ */

/* ── Login page: divider + button row ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0 1rem;
    color: rgba(255,255,255,.25);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.1);
}

.auth-oauth-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.auth-oauth-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.8);
    font-family: 'Exo 2', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .12s, color .15s;
    cursor: pointer;
}
.auth-oauth-btn svg { flex-shrink: 0; }
.auth-oauth-btn:hover { transform: translateY(-1px); color: #fff; }

.auth-oauth-discord { border-color: rgba(88,101,242,.35); }
.auth-oauth-discord:hover { background: rgba(88,101,242,.18); border-color: rgba(88,101,242,.7); }

.auth-oauth-steam { border-color: rgba(102,192,244,.25); }
.auth-oauth-steam:hover { background: rgba(102,192,244,.14); border-color: rgba(102,192,244,.6); }

.auth-oauth-twitch { border-color: rgba(145,70,255,.35); }
.auth-oauth-twitch:hover { background: rgba(145,70,255,.18); border-color: rgba(145,70,255,.7); }

.auth-oauth-google { border-color: rgba(66,133,244,.3); }
.auth-oauth-google:hover { background: rgba(66,133,244,.16); border-color: rgba(66,133,244,.65); }

/* ── OAuth finish page ── */
.oauth-finish-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin: 1rem 0 1.2rem;
}
.oauth-finish-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,136,.3);
    object-fit: cover;
}
.oauth-finish-avatar-label {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
}
.oauth-finish-perm-note {
    font-size: .7rem;
    color: rgba(255,180,60,.7);
    font-weight: 400;
    margin-left: .4rem;
}
.oauth-finish-username-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.oauth-finish-username-input { flex: 1; }
.oauth-finish-avail {
    font-size: .75rem;
    white-space: nowrap;
    min-width: 5rem;
    text-align: right;
}
.oauth-finish-avail.avail   { color: #00ff88; }
.oauth-finish-avail.unavail { color: #ff4b6e; }
.oauth-finish-avail.checking { color: rgba(255,255,255,.4); }

/* ── Profile: Connected Accounts card ── */
.profile-card-outer {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}
#connected-accounts {
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(0,255,136,.1);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
}
.connected-accounts-grid {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-top: .75rem;
}
.connected-account-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .75rem;
    border-radius: 6px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}
.connected-account-icon {
    font-weight: 700;
    font-size: .82rem;
    min-width: 58px;
}
.connected-account-name {
    flex: 1;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ca-unlinked .connected-account-name { display: none; }
.connected-account-status {
    font-size: .73rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 4px;
    margin-left: auto;
}
.ca-status--on  { background: rgba(0,255,136,.1); color: #00ff88; border: 1px solid rgba(0,255,136,.2); }
.ca-status--off { background: rgba(255,255,255,.04); color: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.07); }

.connected-account-disconnect {
    padding: .2rem .6rem;
    background: rgba(255,77,109,.07);
    border: 1px solid rgba(255,77,109,.2);
    border-radius: 5px;
    color: #e06070;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.connected-account-disconnect:hover:not(:disabled) { background: rgba(255,77,109,.18); }
.connected-account-disconnect:disabled { opacity: .35; cursor: not-allowed; }

.connected-account-connect {
    padding: .2rem .6rem;
    background: rgba(0,212,255,.07);
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 5px;
    color: #4ac8e8;
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.connected-account-connect:hover { background: rgba(0,212,255,.18); }
.connected-account-note { font-size: .78rem; margin-top: .6rem; min-height: 1.2em; }

/* ── Control Panel: OAuth tab extras ── */
.cp-row--section-head {
    background: rgba(0,255,136,.04);
    border-top: 1px solid rgba(0,255,136,.1);
    padding-top: .9rem !important;
    margin-top: .5rem;
}
.cp-row--section-head:first-child { border-top: none; }
.cp-text-input {
    padding: .38rem .65rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
    color: #c8e0e8;
    font-family: monospace;
    font-size: .82rem;
    width: 100%;
    max-width: 400px;
    transition: border-color .15s;
}
.cp-text-input:focus { outline: none; border-color: rgba(0,255,136,.4); }
.cp-code {
    font-family: monospace;
    font-size: .78rem;
    color: #5ab8d0;
    background: rgba(0,0,0,.25);
    padding: .25rem .5rem;
    border-radius: 4px;
    word-break: break-all;
    user-select: all;
}

/* ── Channel card: stacked row layout (for ban section) ─────────────────────── */
.cp-row--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
}
.cp-row--stacked .cp-row-label { flex: none; }

/* ── Channel ban UI ─────────────────────────────────────────────────────────── */
.cp-ch-ban-wrap { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.cp-ch-ban-search-row { display: flex; gap: .5rem; align-items: center; }
.cp-ch-ban-search-row .cp-text-input { flex: 1; max-width: 260px; }
.cp-ch-ban-results { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 1rem; font-size: .78rem; color: #8aa0a0; }
.cp-ch-ban-add-btn { font-size: .76rem; padding: .25rem .55rem; }
.cp-ch-ban-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.cp-ch-ban-entry {
    display: flex; align-items: center; gap: .35rem;
    background: rgba(255,77,77,.1); border: 1px solid rgba(255,77,77,.25);
    border-radius: 4px; padding: .2rem .5rem; font-size: .78rem; color: #e0b0b0;
}
.cp-ch-ban-remove-btn { padding: .1rem .35rem; font-size: .7rem; line-height: 1; }


/* Hide cookie plugin reconsent button */
.cookieadmin_re_consent,
.cookieadmin_reconsent_img,
[class*='cookieadmin_re'] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
div:has(> .cookieadmin_re_consent) { display: none !important; }

/* Hide cookie consent popup entirely for logged-in users —
   they accepted T&Cs on registration so consent is implicit */
body.logged-in .cookieadmin_law_container,
body.logged-in [class*='cookieadmin_law'],
body.logged-in [id*='cookieadmin'] {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECURE DOWNLOADS — [u4ea_download] shortcode
   ══════════════════════════════════════════════════════════════════════════════ */

/* Download button — shown when user passes all access checks */
.u4ea-download-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,200,255,0.08));
    border: 1px solid rgba(0,255,136,0.4);
    border-radius: 6px;
    color: var(--neon-green, #00ff88);
    font-family: 'Orbitron', monospace;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.u4ea-download-btn:hover {
    background: linear-gradient(135deg, rgba(0,255,136,0.25), rgba(0,200,255,0.15));
    border-color: var(--neon-green, #00ff88);
    color: #fff;
    box-shadow: 0 0 16px rgba(0,255,136,0.25);
    transform: translateY(-1px);
}
.u4ea-download-btn svg {
    flex-shrink: 0;
}

/* Access denied card — shown when user is logged out or below rank */
.u4ea-download-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    max-width: 380px;
    margin: 1.5rem 0;
    padding: 1.5rem 2rem;
    background: rgba(10,12,20,0.7);
    border: 1px solid rgba(255,60,60,0.25);
    border-radius: 10px;
    text-align: center;
}
.u4ea-download-denied-icon {
    font-size: 2rem;
    line-height: 1;
}
.u4ea-download-denied-title {
    margin: 0;
    color: #ff4444;
    font-family: 'Orbitron', monospace;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.u4ea-download-denied-msg {
    margin: 0;
    color: #8a9aaa;
    font-size: .85rem;
    line-height: 1.5;
}
.u4ea-download-denied-cta {
    display: inline-block;
    margin-top: .25rem;
    padding: .4rem 1rem;
    background: rgba(0,200,255,0.1);
    border: 1px solid rgba(0,200,255,0.3);
    border-radius: 5px;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    transition: all 0.2s;
}
.u4ea-download-denied-cta:hover {
    background: rgba(0,200,255,0.2);
    border-color: #00d4ff;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILE VAULT — Control Panel tab
   ══════════════════════════════════════════════════════════════════════════════ */

.cp-vault-upload-box {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    padding: .8rem 1rem;
    background: rgba(0,200,255,0.04);
    border: 1px dashed rgba(0,200,255,0.2);
    border-radius: 8px;
}
.cp-vault-upload-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: #8a9aaa;
    font-size: .82rem;
    cursor: pointer;
    transition: border-color .2s;
}
.cp-vault-upload-label:hover { border-color: rgba(0,200,255,0.4); color: #ccc; }

.cp-vault-upload-btn {
    padding: .4rem .9rem;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.35);
    border-radius: 5px;
    color: var(--neon-green, #00ff88);
    font-family: 'Orbitron', monospace;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.cp-vault-upload-btn:hover:not(:disabled) {
    background: rgba(0,255,136,0.2);
    border-color: var(--neon-green);
}
.cp-vault-upload-btn:disabled { opacity: .4; cursor: not-allowed; }

.cp-vault-empty { opacity: .5; font-size: .85rem; }

/* ── Vault multi-select bar ── */
.cp-vault-multi-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .8rem 1.1rem;
    background: rgba(0,255,136,.06);
    border: 1px solid rgba(0,255,136,.22);
    border-radius: 9px;
    margin-bottom: .75rem;
}

/* ── Vault file table ── */
.cp-vault-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem;
}
.cp-vault-table th {
    text-align: left;
    padding: .55rem .75rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5a6a7a;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.cp-vault-table th input[type="checkbox"] { cursor: pointer; }
.cp-vault-table td {
    padding: .65rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
    color: #c0d4e4;
}
.cp-vault-table tbody tr:last-child td { border-bottom: 0; }
.cp-vault-table tbody tr:hover td { background: rgba(255,255,255,.025); }
.cp-vault-table td input[type="checkbox"] { cursor: pointer; width: 15px; height: 15px; }
.cp-vault-dl-link {
    color: #ddeeff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: color .15s;
}
.cp-vault-dl-link:hover { color: #00ff88; text-decoration: underline; }
.cp-vault-cell-meta { font-size: .76rem; color: #5a6a7a; white-space: nowrap; }
.cp-vault-cell-send { min-width: 220px; }

/* Shared compact inputs */
.cp-input-sm {
    padding: .3rem .55rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    color: #ddeeff;
    font-size: .8rem;
    transition: border-color .2s;
}
.cp-input-sm:focus { outline: none; border-color: rgba(0,200,255,.4); }
.vault-recipient { width: 140px; }
.cp-btn-sm {
    padding: .3rem .7rem;
    background: rgba(0,200,255,0.08);
    border: 1px solid rgba(0,200,255,0.25);
    border-radius: 4px;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.cp-btn-sm:hover:not(:disabled) { background: rgba(0,200,255,0.18); border-color: #00d4ff; }
.cp-btn-sm:disabled { opacity: .4; cursor: not-allowed; }


/* Autocomplete dropdown (control panel dark theme) */
#tab-vault .vault-ac-dropdown {
    position: absolute;
    z-index: 999;
    background: #1a1e2a;
    border: 1px solid rgba(0,200,255,0.2);
    border-top: 0;
    max-height: 180px;
    overflow-y: auto;
    display: none;
    min-width: 200px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
#tab-vault .vault-ac-item {
    padding: 6px 10px;
    cursor: pointer;
    font-size: .8rem;
    color: #ddeeff;
    display: flex;
    align-items: center;
    gap: 8px;
}
#tab-vault .vault-ac-item:hover { background: rgba(0,200,255,0.08); }
#tab-vault .vault-ac-item img { width: 22px; height: 22px; border-radius: 50%; }

.cp-vault-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
}
.cp-vault-history-table th {
    text-align: left;
    padding: .4rem .5rem;
    color: #5a6a7a;
    font-weight: 600;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cp-vault-history-table td {
    padding: .35rem .5rem;
    color: #8a9aaa;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* ── Sanctions summary ── */
.cp-sanctions-summary { display:flex;align-items:center;gap:.5rem;font-size:.8rem;opacity:.65;margin-bottom:1.2rem;flex-wrap:wrap; }
.cp-sanction-dot { opacity:.4; }

/* ── Recently Joined grid ── */
.cp-recent-users-grid { display:flex;flex-direction:column;gap:.65rem;margin-top:.75rem; }
.cp-recent-user-row {
    display:flex;align-items:center;gap:1rem;
    padding:.95rem 1.2rem;
    background:rgba(255,255,255,.04);
    border-radius:10px;
    border:1px solid rgba(255,255,255,.1);
    transition:background .18s,border-color .18s,box-shadow .18s;
}
.cp-recent-user-row:hover {
    background:rgba(255,255,255,.07);
    border-color:rgba(0,255,136,.22);
    box-shadow:0 2px 12px rgba(0,0,0,.25);
}
.cp-recent-user-avatar { border-radius:50%;flex-shrink:0;width:40px;height:40px;border:2px solid rgba(255,255,255,.1); }
.cp-recent-user-info { flex:1;min-width:0; }
.cp-recent-user-name { display:block;font-size:.88rem;font-weight:600;color:#d0e0ec;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.cp-recent-user-joined { display:block;font-size:.74rem;opacity:.45;margin-top:.1rem; }
.cp-role-pill { font-size:.7rem;font-weight:700;border:1px solid;border-radius:5px;padding:2px 7px;white-space:nowrap;flex-shrink:0;letter-spacing:.02em; }

/* ── Tab badges ── */
.cp-tab-badge { background:#ef4444;color:#fff;border-radius:9999px;font-size:.6rem;font-weight:700;padding:1px 5px;margin-left:3px;vertical-align:middle; }

/* ── Section stat line ── */
.cp-section-stat { font-size:.8rem;opacity:.6;margin-bottom:1rem; }

/* ── Dashboard cards ── */
.cp-dashboard-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-bottom:1.5rem; }
@media(max-width:768px){ .cp-dashboard-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){ .cp-dashboard-grid { grid-template-columns:1fr; } }
.cp-dash-card {
    position:relative;
    display:flex;flex-direction:column;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.1);
    border-radius:13px;
    padding:1.3rem 1.4rem 1.25rem;
    cursor:pointer;
    transition:background .2s,transform .18s,border-color .2s,box-shadow .2s;
    text-align:left;
    overflow:hidden;
    text-decoration:none;
    -webkit-user-select:none;user-select:none;
}
.cp-dash-card::after {
    content:'→';
    position:absolute;bottom:.9rem;right:1.1rem;
    font-size:.9rem;opacity:.2;
    transition:opacity .2s,transform .2s;
}
.cp-dash-card:hover {
    background:rgba(255,255,255,.08);
    transform:translateY(-3px);
    border-color:rgba(255,255,255,.2);
    box-shadow:0 6px 24px rgba(0,0,0,.35);
}
.cp-dash-card:hover::after { opacity:.65;transform:translateX(4px); }
.cp-dash-card:active { transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.2); }
.cp-dash-card-icon { font-size:1.5rem;margin-bottom:.55rem;line-height:1; }
.cp-dash-card-num { font-size:2.4rem;font-weight:700;color:#d0e0ec;line-height:1;letter-spacing:-.02em; }
.cp-dash-card-label { font-size:.77rem;opacity:.55;margin-top:.4rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em; }
/* alert states — colours trickle into the number too */
.cp-dash-card.has-alert { border-color:rgba(239,68,68,.5);background:rgba(239,68,68,.09); }
.cp-dash-card.has-alert .cp-dash-card-num { color:#f87171; }
.cp-dash-card.has-alert::after { color:#f87171; }
.cp-dash-card.has-warn  { border-color:rgba(250,204,21,.45);background:rgba(250,204,21,.08); }
.cp-dash-card.has-warn .cp-dash-card-num  { color:#fbbf24; }
.cp-dash-card.has-warn::after  { color:#fbbf24; }
.cp-dash-card.has-info  { border-color:rgba(74,222,128,.38);background:rgba(74,222,128,.07); }
.cp-dash-card.has-info .cp-dash-card-num  { color:#4ade80; }


