/* 
 * Nexus Community - Performance Elite UI
 * Styles for Chat, Social Wall and Advanced User Profile
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Syne:wght@700;800&display=swap');

:root {
    --nexus-red: #ef4444;
    --nexus-red-hover: #dc2626;
    --nexus-gold: #d4af37;
    --nexus-gold-hover: #b8962e;
    --nexus-gold-light: #f5d88a;
    --nexus-black: #0a0a0a;
    --nexus-surface: #171717;
    --nexus-text: #f5f5f5;
    --nexus-text-muted: #a3a3a3;
    --nexus-border: #333333;
    --nexus_silver: #cbd5e1;
}

/* Global Scroll Fix (Prevents 'overflow: hidden' locks from theme/plugins) */
html, body {
    overflow-x: auto !important;
    overflow-y: auto !important;
    height: auto !important;
}

/* Dark Mode Base for Nexus Community */
.nexus-wall-container,
.nexus-community-page {
    background-color: var(--nexus-black) !important;
    color: var(--nexus-text) !important;
}

.nexus-wall-container .bg-white,
.nexus-community-page .bg-white {
    background-color: var(--nexus-surface) !important;
    border-color: var(--nexus-border) !important;
}

.nexus-wall-container .text-gray-800,
.nexus-wall-container .text-gray-900,
.nexus-community-page .text-gray-800,
.nexus-community-page .text-gray-900 {
    color: var(--nexus-text) !important;
}

.nexus-wall-container .text-gray-400,
.nexus-wall-container .text-gray-500,
.nexus-community-page .text-gray-400,
.nexus-community-page .text-gray-500 {
    color: var(--nexus-text-muted) !important;
}

.nexus-wall-container input,
.nexus-wall-container textarea,
.nexus-community-page input,
.nexus-community-page textarea {
    background-color: var(--nexus-black) !important;
    border-color: var(--nexus-border) !important;
    color: var(--nexus-text) !important;
}

.nexus-wall-container input::placeholder,
.nexus-wall-container textarea::placeholder,
.nexus-community-page input::placeholder,
.nexus-community-page textarea::placeholder {
    color: var(--nexus-text-muted) !important;
}

/* Gold Theme Elements */
.nexus-wall-container .bg-indigo-50,
.nexus-community-page .bg-indigo-50 {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

.nexus-wall-container .text-indigo-500,
.nexus-community-page .text-indigo-500 {
    color: var(--nexus-gold) !important;
}

.nexus-wall-container .border-indigo-500,
.nexus-community-page .border-indigo-500 {
    border-color: var(--nexus-gold) !important;
}

/* Red Theme Elements - Already defined */
.bg-red-600 { background-color: var(--nexus-red) !important; }
.text-red-600 { color: var(--nexus-red) !important; }
.border-red-500 { border-color: var(--nexus-red) !important; }
.hover\:bg-red-700:hover { background-color: var(--nexus-red-hover) !important; }

/* Gold Theme */
.bg-gold { background-color: var(--nexus-gold) !important; }
.text-gold { color: var(--nexus-gold) !important; }
.border-gold { border-color: var(--nexus-gold) !important; }
.hover\:bg-gold:hover { background-color: var(--nexus-gold-hover) !important; }

/* Custom Tailwind-like Classes for Gold Theme */
.bg-yellow-600 { background-color: var(--nexus-gold) !important; }
.text-yellow-600 { color: var(--nexus-gold) !important; }
.border-yellow-600 { border-color: var(--nexus-gold) !important; }
.hover\:bg-yellow-700:hover { background-color: var(--nexus-gold-hover) !important; }
.bg-yellow-500 { background-color: var(--nexus-gold) !important; }
.text-yellow-500 { color: var(--nexus-gold) !important; }
.hover\:bg-yellow-500:hover { background-color: var(--nexus-gold-hover) !important; }

/* Dark mode form inputs for social wall */
.nexus-wall-container .bg-gray-50,
.nexus-community-page .bg-gray-50 {
    background-color: var(--nexus-black) !important;
}

.nexus-wall-container .rounded-2xl,
.nexus-community-page .rounded-2xl,
.nexus-wall-container .rounded-3xl,
.nexus-community-page .rounded-3xl {
    border-radius: 12px !important;
}

/* Fix for white backgrounds that should be dark */
.nexus-wall-container .bg-white,
.nexus-community-page .bg-white {
    background-color: var(--nexus-surface) !important;
    color: var(--nexus-text) !important;
}

/* Profile header text */
.nexus-wall-container .text-white,
.nexus-community-page .text-white {
    color: #ffffff !important;
}

.nexus-wall-container .drop-shadow-md,
.nexus-community-page .drop-shadow-md {
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* 1. Profile Field Styling */
.nexus-user-fields-wrap {
    margin-top: 40px !important;
    background: #ffffff !important;
    border-radius: 15px !important;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.nexus-field-group label {
    font-size: 10px !important;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    color: #94a3b8 !important;
}

.nexus-field-group input {
    height: 42px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

/* 2. Floating Chat Styling (Aero Glass) */
#nexus-chat-portal {
    pointer-events: none;
}
#nexus-chat-portal > div {
    pointer-events: auto;
}

.bg-red-600 { background-color: var(--nexus-red) !important; }

/* Scrollbar for Chat */
div::-webkit-scrollbar {
    width: 4px;
}
div::-webkit-scrollbar-track {
    background: transparent;
}
div::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* 3. Social Wall Components */
.nexus-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.post-media-audio {
    width: 100%;
    margin-top: 15px;
    height: 35px;
}

/* User List Avatar Circle */
.users-php img.avatar {
    border: 2px solid var(--nexus-red) !important;
    padding: 2px;
    background: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.1);
}

/* 4. Chat Window Aero Fixes */
.nexus-chat-window {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.nexus-msg-self {
    background: var(--nexus-red);
    color: white;
    border-radius: 15px 15px 2px 15px;
}

.nexus-msg-other {
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 15px 15px 15px 2px;
}

/* ========================================================================
   NEXUS ELITE V2 — GLOBAL CHINA DESIGN SYSTEM
   Red #EE1C25 | Gold #FFD700 | Black #0A0A0A | White #FFFFFF
   ======================================================================== */

/* Fonts */
/* ---- Header ---- */
.nexus-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 30px rgba(238, 28, 37, 0.08);
}

.nexus-header-inner { padding: 0 2rem; }

.nexus-header-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 70px;
    flex-wrap: nowrap;
}

/* Brand */
.nexus-brand-text {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    line-height: 1;
}

.brand-foco {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #EE1C25;
    letter-spacing: -1px;
}

.brand-dieta {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FFD700, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.brand-sub {
    font-size: 0.6rem;
    color: #9CA3AF;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
    -webkit-text-fill-color: #9CA3AF;
}

.nexus-logo img {
    max-height: 50px;
    width: auto;
}

/* Nav */
.nexus-nav { flex: 1; }

.nexus-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nexus-menu li a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: #F5F5F5 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}

.nexus-menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nexus-menu li a:hover { color: #FFD700 !important; }
.nexus-menu li a:hover::after { width: 60%; }

/* Actions bar */
.nexus-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.nexus-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #F5F5F5 !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    position: relative;
}

.nexus-action-btn:hover {
    background: rgba(255,215,0,0.1);
    border-color: #FFD700;
    color: #FFD700 !important;
    transform: translateY(-2px);
}

.nexus-wa:hover { background: rgba(37,211,102,0.15) !important; border-color: #25D366 !important; color: #25D366 !important; }

.nexus-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EE1C25;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexus-avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

/* Hamburger */
.nexus-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.nexus-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #F5F5F5;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- Search Bar 3D ---- */
.nexus-search-wrap { flex: 1; min-width: 240px; max-width: 420px; }

.nexus-searchbar { width: 100%; }

.nexus-search-inner {
    display: flex;
    align-items: center;
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nexus-search-inner:focus-within {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15), 0 8px 25px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

.nexus-search-icon {
    padding: 0 0.75rem;
    color: #9CA3AF;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nexus-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #F5F5F5 !important;
    font-size: 0.875rem;
    padding: 0.6rem 0 !important;
    font-family: 'Inter', sans-serif;
}

.nexus-search-input::placeholder { color: #9CA3AF !important; }

.nexus-search-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #EE1C25, #8B0000);
    border: none;
    color: #fff !important;
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 0 50px 50px 0;
    flex-shrink: 0;
}

.nexus-search-btn:hover {
    background: linear-gradient(135deg, #FFD700, #cc8800);
    color: #0A0A0A !important;
}

/* ---- Footer ---- */
.nexus-footer {
    background: #0F0F0F;
    border-top: 1px solid rgba(255,215,0,0.12);
    margin-top: 3rem;
}

.nexus-footer-widgets { padding: 3rem 2rem; }

.nexus-footer-brand .brand-foco { font-size: 1.8rem; }
.nexus-footer-brand .brand-dieta { font-size: 1.8rem; }
.nexus-footer-brand p { color: #9CA3AF; font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; }

.nexus-footer-col h4 {
    color: #FFD700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}

.nexus-footer-col ul { list-style: none; padding: 0; margin: 0; }
.nexus-footer-col ul li { margin-bottom: 0.5rem; }
.nexus-footer-col ul li a { color: #9CA3AF !important; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.nexus-footer-col ul li a:hover { color: #FFD700 !important; }

.nexus-footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.25s;
    margin-top: 0.5rem;
}

.nexus-footer-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }

.nexus-footer-bottom {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 2rem;
    text-align: center;
}

.nexus-footer-copy {
    color: #9CA3AF;
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.nexus-logo-text .brand-foco { font-size: 1rem; }
.nexus-logo-text .brand-dieta { font-size: 1rem; }
.nexus-powered strong { color: #FFD700; }

/* Back to top */
.nexus-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #EE1C25, #8B0000);
    color: #fff !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(238,28,37,0.4);
    transition: all 0.3s;
    z-index: 999;
}

.nexus-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(238,28,37,0.6); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .nexus-nav { display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(10,10,10,0.98); padding: 1rem; border-bottom: 1px solid rgba(255,215,0,0.15); }
    .nexus-nav.open { display: block; }
    .nexus-menu { flex-direction: column; gap: 0; }
    .nexus-hamburger { display: flex; }
    .nexus-header { position: relative; }
    .nexus-header-row { flex-wrap: wrap; }
    .nexus-search-wrap { order: 3; min-width: 100%; max-width: 100%; }
}

/* ========================================================================
   NEXUS ELITE — FLOATING BUTTONS DOCK (Non-overlapping vertical stack)
   ======================================================================== */

/* WhatsApp float: sits at bottom-right ABOVE the chat portal buttons */
.nexus-whatsapp-float {
    bottom: 110px !important;
    right: 20px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 26px !important;
    z-index: 99998 !important;
}

/* Back-to-top: above WhatsApp */
.nexus-to-top {
    bottom: 175px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
    z-index: 99997 !important;
}

/* Chat portal: anchored bottom-right, expands LEFT via flex-row-reverse */
#nexus-chat-portal {
    right: 10px !important;
    bottom: 0 !important;
}

/* ========================================================================
   NEXUS ELITE V2 — 3D GRADIENT THEME UPGRADE
   ======================================================================== */

/* === BODY: Subtle dark texture === */
body {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(238,28,37,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,215,0,0.03) 0%, transparent 50%),
        #0A0A0A !important;
}

/* === HEADER: 3D depth with animated red glow === */
.nexus-header {
    background: linear-gradient(180deg,
        rgba(15,15,15,0.97) 0%,
        rgba(10,10,10,0.95) 100%) !important;
    border-bottom: 1px solid rgba(238,28,37,0.25) !important;
    box-shadow:
        0 1px 0 rgba(255,215,0,0.08),
        0 4px 30px rgba(0,0,0,0.6),
        0 0 80px rgba(238,28,37,0.06) !important;
}

/* Brand text: deeper 3D */
.brand-foco {
    color: #EE1C25;
    text-shadow: 0 0 20px rgba(238,28,37,0.5), 0 2px 4px rgba(0,0,0,0.8);
}

.brand-dieta {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.4));
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Nav links: 3D underline effect */
.nexus-menu li a {
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nexus-menu li a:hover {
    background: linear-gradient(135deg, rgba(238,28,37,0.08), rgba(255,215,0,0.05));
    text-shadow: 0 0 12px rgba(255,215,0,0.4);
    transform: translateY(-1px);
}

/* Action buttons: glass 3D */
.nexus-action-btn {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.02) 100%) !important;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.2) !important;
}

.nexus-action-btn:hover {
    background: linear-gradient(135deg,
        rgba(255,215,0,0.15) 0%,
        rgba(255,215,0,0.05) 100%) !important;
    box-shadow:
        0 4px 16px rgba(255,215,0,0.2),
        inset 0 1px 0 rgba(255,215,0,0.15) !important;
    transform: translateY(-3px) !important;
}

/* === SEARCH BAR: Full 3D glass === */
.nexus-search-inner {
    background: linear-gradient(135deg,
        rgba(30,30,30,0.9) 0%,
        rgba(20,20,20,0.95) 100%) !important;
    border: 1px solid rgba(255,215,0,0.15) !important;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 -1px 0 rgba(0,0,0,0.3) !important;
}

.nexus-search-inner:focus-within {
    border-color: rgba(255,215,0,0.5) !important;
    box-shadow:
        0 0 0 3px rgba(255,215,0,0.1),
        0 12px 40px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,215,0,0.08) !important;
    transform: translateY(-2px) !important;
}

.nexus-search-btn {
    background: linear-gradient(135deg, #EE1C25 0%, #8B0000 60%, #4a0000 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -2px 0 rgba(0,0,0,0.3),
        2px 0 8px rgba(238,28,37,0.3) !important;
    position: relative;
    overflow: hidden;
}

.nexus-search-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.4s ease;
}

.nexus-search-btn:hover::before { left: 100%; }

.nexus-search-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #cc8800 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 4px 16px rgba(255,215,0,0.4) !important;
}

/* === FOOTER: Premium dark 3D === */
.nexus-footer {
    background: linear-gradient(180deg,
        #0A0A0A 0%,
        #050505 100%) !important;
    border-top: 1px solid transparent !important;
    border-image: linear-gradient(90deg,
        transparent, rgba(238,28,37,0.3), rgba(255,215,0,0.3), transparent) 1 !important;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
}

.nexus-footer-col h4 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.3));
}

.nexus-footer-bottom {
    background: linear-gradient(135deg,
        rgba(238,28,37,0.05) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(255,215,0,0.03) 100%) !important;
    border-top: 1px solid rgba(255,215,0,0.08) !important;
}

.nexus-powered strong {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === BACK TO TOP: 3D gradient with pulse glow === */
.nexus-to-top {
    background: linear-gradient(135deg, #EE1C25 0%, #8B0000 100%) !important;
    box-shadow:
        0 4px 15px rgba(238,28,37,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -2px 0 rgba(0,0,0,0.3) !important;
}

.nexus-to-top:hover {
    background: linear-gradient(135deg, #FFD700 0%, #cc8800 100%) !important;
    box-shadow: 0 8px 30px rgba(255,215,0,0.5) !important;
}

/* === WHATSAPP FLOAT: 3D depth === */
.nexus-whatsapp-float {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    box-shadow:
        0 6px 20px rgba(37,211,102,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.2) !important;
}

.nexus-whatsapp-float:hover {
    box-shadow: 0 10px 30px rgba(37,211,102,0.6) !important;
    transform: scale(1.08) translateY(-3px) !important;
}

/* === CHAT PORTAL: 3D dark buttons === */
#nexus-chat-portal .bg-gray-900 {
    background: linear-gradient(135deg, #1A1A1A, #0A0A0A) !important;
    border: 1.5px solid rgba(255,255,255,0.12) !important;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

#nexus-chat-portal .bg-red-600 {
    background: linear-gradient(135deg, #EE1C25 0%, #8B0000 100%) !important;
    box-shadow:
        0 8px 25px rgba(238,28,37,0.5),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* WP sidebar/content: dark glass cards */
#secondary .widget,
.widget_block {
    background: linear-gradient(135deg, rgba(26,26,26,0.9), rgba(15,15,15,0.95));
    border: 1px solid rgba(255,215,0,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.wp-block-heading {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Syne', sans-serif !important;
}

/* Article / page content area */
#primary .entry-content,
.single-page-wrapper {
    background: linear-gradient(135deg,
        rgba(20,20,20,0.8) 0%,
        rgba(15,15,15,0.9) 100%);
    border: 1px solid rgba(255,215,0,0.06);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Page header banner */
.box-image .page-header {
    background: linear-gradient(135deg,
        rgba(238,28,37,0.75) 0%,
        rgba(0,0,0,0.85) 100%);
    backdrop-filter: blur(8px);
}

/* Blockquotes */
.wp-block-quote {
    border-left: 3px solid #EE1C25 !important;
    background: rgba(238,28,37,0.05);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.5rem !important;
}

/* Links */
.nexus-frontend-wrap a {
    color: #FFD700 !important;
    transition: all 0.2s;
}
.nexus-frontend-wrap a:hover { color: #EE1C25 !important; text-shadow: 0 0 10px rgba(238,28,37,0.3); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #EE1C25, #8B0000);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #FFD700; }
