/**
 * SocialeTicket Panel Theme - Pure Black / AMOLED Electric Void
 * Pitch-black #000000 OLED infinity canvas with electric neon accents,
 * slight menu-open optical blur, consistent playful colors, and
 * Space Grotesk + Outfit + JetBrains Mono matching typography.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
    /* Landing Page & Header Sync Tokens */
    --header-bg: #000000;
    --header-text: #ffffff;
    --header-border: rgba(255, 255, 255, 0.2);
    --mobile-nav-bg: #ffffff;
    --mobile-nav-text: #0f172a;
    --mobile-nav-border: #e2e8f0;

    /* ==========================================================================
       AMOLED PITCH-BLACK CORE & GLASS TOKENS
       ========================================================================== */
    --bg-deep: #000000;
    --surface-pure: #000000;
    --surface-card: rgba(8, 8, 12, 0.90);
    --surface-card-hover: rgba(14, 14, 20, 0.95);
    --surface-header: rgba(5, 5, 8, 0.96);
    --surface-item: rgba(12, 12, 16, 0.85);
    --surface-item-hover: rgba(22, 22, 30, 0.92);

    --glass-panel: rgba(8, 8, 12, 0.88);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-hover: rgba(0, 240, 255, 0.40);
    --panel-theme-name: 'black';

    /* ==========================================================================
       PRO MATHEMATICAL CURVATURE HIERARCHY
       ========================================================================== */
    --radius-2xl: 20px;   /* Major chassis panels, modals, floating hero containers */
    --radius-xl: 16px;    /* Feed post cards, glass cards, poll cards, consensus widgets */
    --radius-lg: 12px;    /* Nested option cards, reaction bar capsule, dropdown menus */
    --radius-md: 10px;    /* Primary/secondary buttons, form inputs, textareas */
    --radius-sm: 6px;     /* Badges, code pills, status chips, inner tags */
    --radius-full: 9999px;/* Avatars, round toggle buttons, trait filter pills */

    /* ==========================================================================
       MATCHING TYPOGRAPHY HIERARCHY
       ========================================================================== */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Theme-specific tokens */
    --avatar-border: rgba(0, 240, 255, 0.45);
    --avatar-bg: #000000;
    --avatar-glow: rgba(0, 240, 255, 0.25);
    --user-name-color: #ffffff;
    --user-name-hover: #00f0ff;
    --mobile-nav-bg: rgba(0, 0, 0, 0.95);
    --mobile-nav-border: rgba(255, 255, 255, 0.12);
    --mobile-nav-active: #00f0ff;

    /* ==========================================================================
       CONSISTENT PLAYFUL COLOR PALETTE (AMOLED ELECTRIC NEONS)
       ========================================================================== */
    /* 1. Electric Cyan (Primary Pulse, Telemetry & Focus) */
    --neon-cyan: #00f0ff;
    --neon-cyan-dim: #06b6d4;
    --neon-cyan-glow: rgba(0, 240, 255, 0.35);
    --neon-cyan-bg: rgba(0, 240, 255, 0.12);
    --neon-cyan-border: rgba(0, 240, 255, 0.35);

    /* 2. Cyber Ultraviolet (VIP Status, Royal Badges & Magic) */
    --neon-purple: #c084fc;
    --neon-purple-dim: #a855f7;
    --neon-purple-glow: rgba(192, 132, 252, 0.35);
    --neon-purple-bg: rgba(168, 85, 247, 0.12);
    --neon-purple-border: rgba(168, 85, 247, 0.35);

    /* 3. Cyber Emerald (Positive Gains, Online Status & Verified) */
    --neon-emerald: #10b981;
    --neon-emerald-dim: #059669;
    --neon-emerald-glow: rgba(16, 185, 129, 0.35);
    --neon-emerald-bg: rgba(16, 185, 129, 0.12);
    --neon-emerald-border: rgba(16, 185, 129, 0.35);

    /* 4. Radiant Amber (Awards, Coins, Staking & Stars) */
    --neon-amber: #fbbf24;
    --neon-amber-dim: #f59e0b;
    --neon-amber-glow: rgba(251, 191, 36, 0.35);
    --neon-amber-bg: rgba(245, 158, 11, 0.12);
    --neon-amber-border: rgba(245, 158, 11, 0.35);

    /* 5. Vivid Hot Rose (Love, Heart Reactions & Urgent Alerts) */
    --neon-rose: #f43f5e;
    --neon-rose-dim: #e11d48;
    --neon-rose-glow: rgba(244, 63, 94, 0.35);
    --neon-rose-bg: rgba(244, 63, 94, 0.12);
    --neon-rose-border: rgba(244, 63, 94, 0.35);

    /* 6. Sonic Sky Blue (Links, Neutral State & Secondary Highlights) */
    --neon-sky: #38bdf8;
    --neon-sky-dim: #0284c7;
    --neon-sky-glow: rgba(56, 189, 248, 0.35);
    --neon-sky-bg: rgba(56, 189, 248, 0.12);
    --neon-sky-border: rgba(56, 189, 248, 0.35);

    /* 7. Blaze Tangerine (Hot Trending, Fire Reactions & Sparks) */
    --neon-orange: #fb923c;
    --neon-orange-dim: #ea580c;
    --neon-orange-glow: rgba(251, 146, 60, 0.35);
    --neon-orange-bg: rgba(249, 115, 22, 0.12);
    --neon-orange-border: rgba(249, 115, 22, 0.35);

    /* Multi-Color Gradient Sheen for Rainbow Border Accents */
    --neon-multi-gradient: linear-gradient(
        135deg,
        rgba(0, 240, 255, 0.40) 0%,
        rgba(168, 85, 247, 0.35) 35%,
        rgba(244, 63, 94, 0.30) 70%,
        rgba(16, 185, 129, 0.35) 100%
    );

    /* Legacy Jewel Tone Mappings for App Components */
    --accent-cyan: #00f0ff;
    --accent-amber: #fbbf24;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-sky: #38bdf8;
    --accent-violet: #c084fc;
}

/* ==========================================================================
   1. GLOBAL ARCHITECTURAL BASE & MATCHING TYPOGRAPHY
   ========================================================================== */
body,
body.admin-page,
html.admin-page,
[data-admin-page="true"],
.admin-main {
    background-color: #000000 !important;
    background-image: none !important;
    background-attachment: fixed !important;
    color: #f1f5f9 !important;
    font-family: var(--font-sans) !important;
    letter-spacing: -0.012em !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Playful, Punchy Futuristic Headings (Space Grotesk) */
h1, h2, h3, h4, h5, h6,
.modal-title,
.card-title,
.panel-header,
[data-composer-label="title"],
#user-menu-dossier-name,
.feed-post-title {
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.12) !important;
}

/* Tabular Coordinates & Scout Hashes (JetBrains Mono) */
code, kbd, samp, pre,
.font-mono, [class*="font-mono"],
.crypto-hash, .wallet-address,
.telemetry-val, .ticker-val {
    font-family: var(--font-mono) !important;
    letter-spacing: -0.015em !important;
    font-feature-settings: 'tnum' on, 'zero' on, 'cv05' on !important;
}

/* Main Post Body Copy & Captions (Outfit) */
p, span, li, a, input, textarea, button, select, label {
    font-family: var(--font-sans);
}

.feed-post p,
p.text-slate-200,
p.text-slate-300,
[id*="comment-content-"] {
    color: #e2e8f0 !important;
    line-height: 1.62 !important;
    font-weight: 400 !important;
}

/* Timestamps & Subtitles */
.text-slate-400,
.text-slate-500,
.post-timestamp,
.text-xs.text-slate-400 {
    color: #94a3b8 !important;
}

/* ==========================================================================
   2. SLIGHT BLUR ON MENU OPEN (SUBTLE OPTICAL FROST SYSTEM)
   ========================================================================== */

/* (A) User Drawer Menu Backdrop - Blurs the background content on open */
#user-menu-backdrop {
    background: rgba(0, 0, 0, 0.70) !important;
    backdrop-filter: blur(8px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.28s ease !important;
}

/* (B) User Slide-In Drawer (#user-menu) */
#user-menu {
    background: rgba(6, 6, 9, 0.90) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.98), 0 0 30px rgba(0, 240, 255, 0.05) !important;
    border-top-left-radius: var(--radius-2xl) !important;
    border-bottom-left-radius: var(--radius-2xl) !important;
}

#user-menu > div:first-child {
    background: rgba(10, 10, 15, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* User Menu Links & Items */
#user-menu a,
#user-menu-nav-list a,
#user-menu-nav-list button {
    border-radius: var(--radius-md) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
}

#user-menu a:hover,
#user-menu-nav-list a:hover,
#user-menu-nav-list button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 240, 255, 0.25) !important;
    transform: translateX(-2px) !important;
    color: #ffffff !important;
}

#user-menu a:hover i,
#user-menu-nav-list a:hover i {
    color: var(--neon-cyan) !important;
    filter: drop-shadow(0 0 6px var(--neon-cyan-glow)) !important;
}

/* (C) Hardware-Accelerated Dropdown Anchors & Filter Menus (On Open) */
.menu-anchor,
.menu-anchor.open,
.fast-dropdown-menu,
#post-type-filter-menu,
#composer-type-menu,
#game-menu,
#article-menu,
.dropdown-menu,
[id$="-menu"] {
    background: rgba(8, 8, 12, 0.90) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 240, 255, 0.06) !important;
}

/* Dropdown Menu Item Hovers */
.menu-anchor a:hover,
.menu-anchor button:hover,
.fast-dropdown-menu a:hover,
.fast-dropdown-menu button:hover,
#composer-type-menu button:hover,
#post-type-filter-menu button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm) !important;
}

/* (D) Floating Reaction Menu Popup (On Open) */
.reaction-menu-popup,
[id*="reaction-menu-"] {
    background: rgba(8, 8, 14, 0.92) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 18px 48px -4px rgba(0, 0, 0, 0.98), 0 0 25px rgba(168, 85, 247, 0.08) !important;
}

/* (E) Modal Dialogs & Backdrops (On Open) */
.modal-backdrop,
[id*="modal-backdrop"] {
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
}

.modal-content,
.modal-dialog,
#admin-heuristics-suite {
    background: rgba(8, 8, 12, 0.92) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.98), 0 0 35px rgba(0, 240, 255, 0.06) !important;
}

/* ==========================================================================
   3. CONSISTENT PLAYFUL COLOR SYSTEM (AMOLED VIBRANCY)
   ========================================================================== */

/* Universal Phosphor & Icon Consistency */
i[class*="ph-"],
svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, color 0.2s ease;
}

/* A. Electric Cyan Elements */
.text-cyan-400,
.text-cyan-300,
.text-cyan-500,
a.text-cyan-400 {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan-glow) !important;
}

.bg-cyan-500\/10,
.bg-cyan-500\/15,
.bg-cyan-500\/20,
.bg-cyan-500\/25,
.bg-cyan-500\/30 {
    background-color: var(--neon-cyan-bg) !important;
}

.border-cyan-500\/20,
.border-cyan-500\/30,
.border-cyan-500\/40,
.border-cyan-400,
.border-cyan-500 {
    border-color: var(--neon-cyan-border) !important;
}

/* B. Cyber Ultraviolet Elements */
.text-purple-400,
.text-purple-300,
.text-purple-500,
.text-violet-400,
.text-violet-300 {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 10px var(--neon-purple-glow) !important;
}

.bg-purple-500\/10,
.bg-purple-500\/20,
.bg-violet-500\/10,
.bg-violet-500\/20 {
    background-color: var(--neon-purple-bg) !important;
}

.border-purple-500\/20,
.border-purple-500\/30,
.border-violet-500\/30 {
    border-color: var(--neon-purple-border) !important;
}

/* C. Cyber Emerald Elements */
.text-emerald-400,
.text-emerald-300,
.text-green-400,
.text-green-300 {
    color: var(--neon-emerald) !important;
    text-shadow: 0 0 10px var(--neon-emerald-glow) !important;
}

.bg-emerald-500\/10,
.bg-emerald-500\/20,
.bg-green-500\/10,
.bg-green-500\/20 {
    background-color: var(--neon-emerald-bg) !important;
}

.border-emerald-500\/20,
.border-emerald-500\/30,
.border-green-500\/30 {
    border-color: var(--neon-emerald-border) !important;
}

/* D. Radiant Amber Elements */
.text-amber-400,
.text-amber-300,
.text-yellow-400,
.text-yellow-300 {
    color: var(--neon-amber) !important;
    text-shadow: 0 0 10px var(--neon-amber-glow) !important;
}

.bg-amber-500\/10,
.bg-amber-500\/20,
.bg-yellow-500\/10,
.bg-yellow-500\/20 {
    background-color: var(--neon-amber-bg) !important;
}

.border-amber-500\/20,
.border-amber-500\/30,
.border-yellow-500\/30 {
    border-color: var(--neon-amber-border) !important;
}

/* E. Vivid Hot Rose Elements */
.text-rose-400,
.text-rose-300,
.text-pink-400,
.text-pink-300,
.text-red-400 {
    color: var(--neon-rose) !important;
    text-shadow: 0 0 10px var(--neon-rose-glow) !important;
}

.bg-rose-500\/10,
.bg-rose-500\/20,
.bg-pink-500\/10,
.bg-pink-500\/20,
.bg-red-500\/10 {
    background-color: var(--neon-rose-bg) !important;
}

.border-rose-500\/20,
.border-rose-500\/30,
.border-pink-500\/30 {
    border-color: var(--neon-rose-border) !important;
}

/* F. Sonic Sky Blue Elements */
.text-sky-400,
.text-sky-300,
.text-blue-400 {
    color: var(--neon-sky) !important;
    text-shadow: 0 0 10px var(--neon-sky-glow) !important;
}

.bg-sky-500\/10,
.bg-sky-500\/20,
.bg-blue-500\/10 {
    background-color: var(--neon-sky-bg) !important;
}

.border-sky-500\/20,
.border-sky-500\/30 {
    border-color: var(--neon-sky-border) !important;
}

/* Consistent Status Badges & Pills */
.status-pill,
[class*="rounded-full"][class*="border"],
[class*="badge"] {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
}

/* ==========================================================================
   4. GLASS PANELS, FEED CARDS & SURFACES
   ========================================================================== */
.glass-panel,
.glass-card,
.feed-post,
article.feed-post,
.st-card {
    background: rgba(8, 8, 12, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.90) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease !important;
}

.feed-post:hover,
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 240, 255, 0.05) !important;
    transform: translateY(-1px) !important;
}

/* Sidebar & Header Navigation */
aside,
header {
    background: rgba(4, 4, 6, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

aside {
    border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* Aside Nav Links */
aside nav a {
    border-radius: var(--radius-md) !important;
    transition: all 0.18s ease !important;
}

aside nav a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    transform: translateX(2px) !important;
}

aside nav a.active,
aside nav a[class*="bg-white/10"],
aside nav a[class*="active"] {
    background: rgba(0, 240, 255, 0.12) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.15) !important;
}

aside nav a.active i,
aside nav a.active svg {
    color: var(--neon-cyan) !important;
    filter: drop-shadow(0 0 6px var(--neon-cyan-glow)) !important;
}

/* ==========================================================================
   5. REACTION BAR CAPSULE & PLAYFUL NEON REACTIONS
   ========================================================================== */

/* The Floating Capsule Container */
.reaction-bar {
    background: rgba(10, 10, 15, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-lg) !important;
    padding: 3px 6px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.8) !important;
}

/* Individual Reaction Buttons */
.reaction-btn {
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
    background: transparent;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.04) !important;
}

.reaction-btn:hover i {
    transform: scale(1.15) !important;
}

/* Active Reaction Button Color Styling */
.reaction-btn[title="Love"].text-pink-500,
.reaction-btn.text-pink-500 {
    background: rgba(244, 63, 94, 0.16) !important;
    border-color: rgba(244, 63, 94, 0.45) !important;
    color: var(--neon-rose) !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.35) !important;
}

.reaction-btn[title="Like"].text-sky-500,
.reaction-btn.text-sky-500 {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: var(--neon-sky) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

.reaction-btn[title="Dislike"].text-orange-500,
.reaction-btn.text-orange-500 {
    background: rgba(251, 146, 60, 0.16) !important;
    border-color: rgba(251, 146, 60, 0.45) !important;
    color: var(--neon-orange) !important;
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.35) !important;
}

.reaction-btn[title="Rebuke"].text-red-500,
.reaction-btn.text-red-500 {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #ef4444 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
}

.reaction-btn[title="Best"].text-yellow-400,
.reaction-btn.text-yellow-400 {
    background: rgba(251, 191, 36, 0.16) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: var(--neon-amber) !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.35) !important;
}

.reaction-btn[title="Interesting"].text-cyan-400,
.reaction-btn.text-cyan-400 {
    background: rgba(0, 240, 255, 0.16) !important;
    border-color: rgba(0, 240, 255, 0.45) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35) !important;
}

.reaction-btn[title="Good"].text-emerald-400,
.reaction-btn.text-emerald-400 {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: var(--neon-emerald) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}

.reaction-btn[title="Bad"].text-amber-500,
.reaction-btn.text-amber-500 {
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #f59e0b !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;
}

.reaction-btn[title="Worst"].text-rose-600,
.reaction-btn.text-rose-600 {
    background: rgba(225, 29, 72, 0.16) !important;
    border-color: rgba(225, 29, 72, 0.45) !important;
    color: #e11d48 !important;
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.35) !important;
}

/* Comments Toggle Button Inside Reaction Bar */
button[onclick*="toggleComments"] {
    border-radius: var(--radius-sm) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    transition: all 0.18s ease !important;
}

button[onclick*="toggleComments"]:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(0, 240, 255, 0.30) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   6. USER AVATAR & IDENTITY STYLING
   ========================================================================== */
#my-avatar-desktop,
#my-avatar-mobile,
#menu-avatar,
.user-avatar,
img.user-avatar,
.admin-user-avatar,
img[class*="bg-slate-800"],
#top-wallets-container img,
.user-card-avatar {
    border: 2px solid var(--avatar-border) !important;
    background-color: var(--avatar-bg) !important;
    box-shadow: 0 0 12px var(--avatar-glow) !important;
    border-radius: var(--radius-full) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease !important;
}

#my-avatar-desktop:hover,
#my-avatar-mobile:hover,
#menu-avatar:hover,
#top-wallets-container div:hover img {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.55), 0 0 30px rgba(168, 85, 247, 0.25) !important;
    transform: scale(1.06) !important;
}

/* Dossier Avatar Glow Ring */
#menu-dossier-loaded .rounded-full:has(#menu-avatar),
#menu-dossier-loaded > div:first-child {
    background: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #f43f5e 100%) !important;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.40) !important;
}

/* User Display Names */
#my-username-desktop,
#menu-username,
.user-name,
.user-display-name,
table tbody td .font-bold.text-white,
#top-wallets-container .font-bold.text-white {
    color: var(--user-name-color) !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

#my-username-desktop:hover,
#menu-username:hover,
.user-name:hover,
table tbody tr:hover td .font-bold.text-white,
#top-wallets-container div:hover .font-bold.text-white {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 12px var(--neon-cyan-glow) !important;
}

/* Online Status Pill */
#my-online-status-desktop {
    color: var(--neon-emerald) !important;
    text-shadow: 0 0 8px var(--neon-emerald-glow) !important;
}

aside > div:first-child > div[onclick*="toggleMenu('user-menu'"],
nav.glass-panel {
    border-color: var(--glass-border) !important;
    border-radius: var(--radius-xl) !important;
}

/* ==========================================================================
   7. BUTTONS & INTERACTIVE CONTROLS
   ========================================================================== */

/* Primary Action Buttons */
button.btn-primary,
.btn-primary,
button[class*="bg-cyan-500"]:not(.reaction-btn),
button[class*="bg-blue-600"]:not(.reaction-btn) {
    background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%) !important;
    color: #000000 !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.40), 0 4px 12px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

button.btn-primary:hover,
.btn-primary:hover,
button[class*="bg-cyan-500"]:not(.reaction-btn):hover,
button[class*="bg-blue-600"]:not(.reaction-btn):hover {
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.65), 0 6px 18px rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-1px) scale(1.02) !important;
    filter: brightness(1.1) !important;
}

button.btn-primary:active,
.btn-primary:active {
    transform: scale(0.98) !important;
}

/* Child elements inside primary buttons are always deep black */
button.btn-primary *,
.btn-primary * {
    color: #000000 !important;
}

/* Secondary & Ghost Buttons */
button.btn-secondary,
.btn-secondary,
button[class*="bg-white/5"],
button[class*="bg-white/10"],
button[class*="border-white/10"] {
    background: rgba(14, 14, 18, 0.85) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button.btn-secondary:hover,
.btn-secondary:hover,
button[class*="bg-white/5"]:hover,
button[class*="bg-white/10"]:hover {
    background: rgba(22, 22, 28, 0.95) !important;
    border-color: rgba(0, 240, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   8. INPUTS, TEXTAREAS & SEARCH COMPOSERS
   ========================================================================== */
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(4, 4, 6, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-sans) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: #64748b !important;
}

/* Composer Container */
#composer-box,
.composer-box,
[id*="composer"] {
    background: rgba(8, 8, 12, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-xl) !important;
}

/* ==========================================================================
   9. CONSENSUS GAUGES, POLL OPTIONS & METRICS
   ========================================================================== */

/* Poll Options Container */
.st-poll-option,
.poll-option {
    border-radius: var(--radius-lg) !important;
    background: rgba(10, 10, 15, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.st-poll-option:hover,
.poll-option:hover {
    background: rgba(18, 18, 24, 0.95) !important;
    border-color: rgba(0, 240, 255, 0.35) !important;
    transform: translateX(2px) !important;
}

/* Selected Poll Option */
.st-poll-option-selected,
.poll-option.selected {
    background: rgba(0, 240, 255, 0.14) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25) !important;
}

.st-poll-option-selected .st-poll-option-label {
    color: var(--neon-cyan) !important;
    font-weight: 700 !important;
}

/* Consensus Progress Bars */
#home-progression-bar-top,
#menu-sync-bar {
    background: linear-gradient(90deg, #00f0ff 0%, #a855f7 50%, #f43f5e 100%) !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.75), 0 0 6px #00f0ff !important;
}

#wall-progress-bar {
    background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 100%) !important;
}

/* Consensus Agreement Bar (Emerald Green) */
.consensus-bar-yes,
.bg-emerald-500,
[data-consensus="yes"] {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

/* Consensus Disagreement Bar (Vivid Crimson) */
.consensus-bar-no,
.bg-rose-500,
[data-consensus="no"] {
    background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%) !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4) !important;
}

/* ==========================================================================
   10. BOTTOM MOBILE NAVIGATION DOCK
   ========================================================================== */
.mobile-bottom-nav,
#global-nav,
#mobile-bottom-nav,
nav.mobile-bottom-nav {
    background: var(--mobile-nav-bg) !important;
    border-top: 1px solid var(--mobile-nav-border) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.95) !important;
}

.mobile-bottom-nav a,
#global-nav a,
#mobile-bottom-nav a {
    color: rgba(161, 161, 170, 0.8) !important;
    font-family: var(--font-sans) !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
}

.mobile-bottom-nav a:hover,
#global-nav a:hover,
#mobile-bottom-nav a:hover {
    color: #ffffff !important;
}

.mobile-bottom-nav a.text-cyan-400,
.mobile-bottom-nav a.active,
#global-nav a.active,
#global-nav a.text-cyan-400 {
    color: var(--mobile-nav-active) !important;
    text-shadow: 0 0 12px var(--neon-cyan-glow) !important;
}

.mobile-bottom-nav a.active i,
#global-nav a.active i {
    filter: drop-shadow(0 0 6px var(--neon-cyan-glow)) !important;
    transform: translateY(-2px) !important;
}

/* Mobile Layout Docking */
@media (max-width: 768px) {
    main {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: 0 !important;
    }
}

/* ==========================================================================
   11. CUSTOM STEALTH OLED SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* ==========================================================================
   12. SLATE UTILITY CLASS COMPATIBILITY OVERRIDES
   ========================================================================== */
.bg-slate-950,
.bg-slate-950\/90,
.bg-slate-950\/85,
.bg-slate-950\/80,
.bg-slate-950\/70,
.bg-slate-950\/50 {
    background-color: rgba(6, 6, 8, 0.95) !important;
}

.bg-slate-900,
.bg-slate-900\/90,
.bg-slate-900\/80,
.bg-slate-900\/70,
.bg-slate-900\/60,
.bg-slate-900\/50,
.bg-slate-900\/40,
.bg-slate-900\/30 {
    background-color: rgba(10, 10, 14, 0.90) !important;
}

.bg-slate-800,
.bg-slate-800\/90,
.bg-slate-800\/80,
.bg-slate-800\/60 {
    background-color: rgba(16, 16, 22, 0.85) !important;
}

.border-slate-800,
.border-slate-800\/60,
.border-slate-800\/40,
.border-slate-700,
.border-slate-700\/50 {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* Clean Divider Lines */
hr,
.divide-slate-800 > :not([hidden]) ~ :not([hidden]),
.divide-slate-700 > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
