/*
 * hosting-premium.css — Vril Web Hosting premium theme for Vril Chat.
 * Composed from: Views/Shared/_Layout.cshtml (inline layout), Blazor bridge,
 * PremiumPageShell / hosting detail patterns, Profile/Friends/Chat/nav/bell.
 * Sync layout tokens from VrilWebHosting when the hosting theme changes.
 */

/* ====================================================================
   VRIL CHAT — PREMIUM THEME
   Source of truth: VrilWebHosting/Views/Shared/_Layout.cshtml
   Section 1 below is copied verbatim from the hosting app's inline
   <style> block. Do not hand-edit the hosting section; re-sync from
   the hosting file if the theme changes there.

   Section 2 contains the minimum additions required by Blazor's
   rendering model (form controls, page bg) that the hosting Razor app
   gets automatically from Tabler's server-rendered HTML.

   Section 3 contains VrilChat-specific component CSS only.
   ==================================================================== */

/* ====================================================================
   SECTION 1 — HOSTING GLOBAL THEME (verbatim from _Layout.cshtml)
   ==================================================================== */

/* -----------------------------------------------------------------------
   CSS VARIABLES FOR THEMING
   ----------------------------------------------------------------------- */
:root {
    --card-bg: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-body: #ffffff;
    --body-color: #1e293b;
    --secondary: #64748b;
    --muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --primary: #667eea;
    --primary-rgb: 102, 126, 234;
    --primary-dark: #5568d3;
    --accent: #764ba2;
    --accent-rgb: 118, 75, 162;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --danger: #ef4444;
    --glow-color: rgba(102,126,234,0.15);
    --nav-height: 80px;
}

[data-bs-theme="dark"] {
    --card-bg: #1e293b;
    --bg-surface: #0f172a;
    --bg-body: #0a0f1a;
    --body-color: #f1f5f9;
    --secondary: #94a3b8;
    --muted: #64748b;
    --border-color: #334155;
    --border-color-light: #1e293b;
    --primary: #818cf8;
    --primary-rgb: 129,140,248;
    --primary-dark: #6366f1;
    --accent: #a78bfa;
    --accent-rgb: 167,139,250;
    --success: #34d399;
    --warning: #fbbf24;
    --info: #60a5fa;
    --danger: #f87171;
    --glow-color: rgba(129,140,248,0.2);
}

    [data-bs-theme="dark"] .mz-3 {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
        border-color: rgba(102, 126, 234, 0.2);
    }

/* -----------------------------------------------------------------------
   SELECT / DROPDOWN THEME (light + dark)
   ----------------------------------------------------------------------- */
.form-select,
select.form-control,
select.form-select {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

.form-select:focus,
select.form-control:focus,
select.form-select:focus {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--primary);
}

.form-select option,
select.form-control option,
select.form-select option {
    background-color: var(--card-bg);
    color: var(--body-color);
}

[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] select.form-control,
[data-bs-theme="dark"] select.form-select {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .form-select option,
[data-bs-theme="dark"] select.form-control option,
[data-bs-theme="dark"] select.form-select option {
    background-color: #1e293b;
    color: #f1f5f9;
}

/* Hint browser to use dark/light native dropdown and form controls */
:root {
    color-scheme: light;
}

[data-bs-theme="dark"] {
    color-scheme: dark;
}

.mz-3 {
    position: relative;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* -----------------------------------------------------------------------
   ANIMATIONS
   ----------------------------------------------------------------------- */
@keyframes vril-premium-gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes vril-premium-glow-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Named vril-premium-bar-shimmer — NOT "shimmer": TicketDetails/Tickets pages define global @keyframes shimmer with rotate(45deg) and overwrite this file. */
@keyframes vril-premium-bar-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Company public hero underline: same visual shimmer without transform overflow. */
@keyframes vril-cpub-bar-shimmer {
    0% {
        background-position: -220% 0;
    }

    100% {
        background-position: 220% 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* -----------------------------------------------------------------------
   PREMIUM NAVBAR — FIXED LAYOUT VERSION
   ----------------------------------------------------------------------- */
.navbar {
    height: var(--nav-height);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    animation: vril-premium-gradient-shift 15s ease infinite;
    border: none;
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.3), 0 0 100px rgba(var(--primary-rgb), 0.1) inset;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    overflow: visible !important;
    backdrop-filter: blur(20px);
    z-index: 1030;
}

    /* Keep glow inside the navbar bar — negative insets + scale() painted a giant layer past the bar. */
    .navbar::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.3) 0%, transparent 60%), radial-gradient(circle at 70% 50%, rgba(255,255,255,0.2) 0%, transparent 60%);
        animation: vril-premium-glow-pulse 6s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

    .navbar::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
        animation: vril-premium-bar-shimmer 3s ease-in-out infinite;
        z-index: 0;
    }

    /* Make navbar container wider */
    .navbar .container-xl {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        position: relative;
        z-index: 2;
    }

@media (min-width: 1400px) {
    .navbar .container-xl {
        max-width: 1600px;
    }
}

/* Brand */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: white !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
    white-space: nowrap;
    flex-shrink: 0;
}

    .navbar-brand::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .navbar-brand:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.25);
    }

        .navbar-brand:hover::before {
            left: 100%;
        }

/* Nav Links */
.navbar-nav {
    position: static !important;
    z-index: 10;
    flex-wrap: nowrap !important;
}

    .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 600;
        padding: 0.75rem 0.85rem !important;
        border-radius: 0.6rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        margin: 0 0.15rem;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

        .navbar-nav .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            background: white;
            transform: translateX(-50%);
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 3px 3px 0 0;
        }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.1);
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 0.6rem;
        }

        .navbar-nav .nav-link:hover {
            color: white !important;
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

            .navbar-nav .nav-link:hover::before {
                width: 80%;
            }

            .navbar-nav .nav-link:hover::after {
                opacity: 1;
            }

        /* Icon spacing in nav links */
        .navbar-nav .nav-link i {
            font-size: 0.95rem;
        }

/* Dropdown — CRITICAL FIXES */
.nav-item.dropdown {
    position: relative !important;
    z-index: 1040;
}

    .nav-item.dropdown .dropdown-toggle::after {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    .nav-item.dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    margin-top: 0.75rem !important;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
    backdrop-filter: blur(20px);
    z-index: 1050 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    min-width: 220px;
}

/* Right-aligned dropdowns */
.dropdown-menu-end {
    left: auto !important;
    right: 0 !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(var(--primary-rgb), 0.3);
}

    [data-bs-theme="dark"] .dropdown-menu::before {
        content: '';
        position: absolute;
        inset: -1px;
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.2));
        border-radius: 0.75rem;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    [data-bs-theme="dark"] .dropdown-menu:hover::before {
        opacity: 1;
    }

.dropdown-item {
    color: var(--body-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

    .dropdown-item i {
        transition: transform 0.2s ease;
    }

    .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        transform: scaleY(0);
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.12));
        color: var(--primary);
        transform: translateX(4px);
        padding-left: 1.25rem;
    }

        .dropdown-item:hover::before {
            transform: scaleY(1);
        }

        .dropdown-item:hover i {
            transform: translateX(3px);
        }

/* COLLAPSIBLE DROPDOWN HEADERS */
.dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.2);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    border-radius: 0.5rem;
}

    .dropdown-header:hover {
        background: rgba(var(--primary-rgb), 0.08);
    }

    .dropdown-header .header-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dropdown-header .chevron-icon {
        font-size: 1rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: var(--primary);
    }

    .dropdown-header.collapsed .chevron-icon {
        transform: rotate(-180deg);
    }

.dropdown-section {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-bottom 0.3s ease;
    opacity: 1;
    margin-bottom: 0.5rem;
}

    .dropdown-section:not(.collapsed) {
        overflow: visible;
    }

    .dropdown-section.collapsed {
        max-height: 0 !important;
        opacity: 0;
        margin-bottom: 0 !important;
    }

.dropdown-divider {
    border-color: rgba(var(--primary-rgb), 0.15);
    margin: 0.75rem 0;
}

/* Items with flyout submenu to the left */
.dropdown-item-with-flyout {
    position: relative;
}

.dropdown-item-with-flyout .dropdown-item-main {
    display: flex;
    align-items: center;
}

.dropdown-item-with-flyout .flyout-indicator {
    font-size: 0.875rem;
    opacity: 0.7;
    pointer-events: none;
}

.dropdown-item-with-flyout:hover .flyout-indicator {
    opacity: 1;
}

.dropdown-flyout {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 2px;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1051;
}

.dropdown-item-with-flyout:hover .dropdown-flyout {
    opacity: 1;
    visibility: visible;
}

[data-bs-theme="dark"] .dropdown-flyout {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dropdown-flyout-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
    margin-bottom: 0.35rem;
}

.dropdown-flyout .dropdown-item {
    padding: 0.5rem 0.75rem;
}

/* Cart / Bell / Toggle wrapper */
.cart-link-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin: 0 0.3rem;
    z-index: 10;
}

    .cart-link-wrapper:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .cart-link-wrapper svg,
    .vril-nav-icon-svg {
        color: white;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        width: 22px !important;
        height: 22px !important;
    }

#cartCount {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

    #cartCount.has-items {
        animation: bounce 2s ease-in-out infinite, pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

/* Theme Toggle — reuse cart wrapper styling */
.theme-toggle-wrapper {
    cursor: pointer;
}

    .theme-toggle-wrapper svg {
        transition: transform 0.3s ease;
    }

    .theme-toggle-wrapper:hover svg {
        transform: scale(1.1);
    }

#icon-sun {
    animation: rotate 10s linear infinite;
}

/* User Avatar */
.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    color: var(--primary) !important;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .avatar:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

/* Auth Buttons */
.navbar .btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary) !important;
    font-weight: 700;
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
}

    .navbar .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .navbar .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
        background: white;
    }

        .navbar .btn-primary:hover::before {
            left: 100%;
        }

.navbar .btn-outline-primary {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white !important;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

    .navbar .btn-outline-primary:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

/* Right side navbar items */
.navbar-nav.order-md-last {
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   MOBILE RESPONSIVE
   ----------------------------------------------------------------------- */
@media (max-width: 991px) {
    .navbar {
        height: auto;
        min-height: var(--nav-height);
        padding: 1rem 0;
    }

        .navbar .container-xl {
            max-width: 100%;
        }

    .navbar-brand {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }

    .navbar-collapse {
        background: rgba(var(--primary-rgb), 0.15);
        backdrop-filter: blur(20px);
        border-radius: 0.75rem;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        flex-direction: column;
        flex-wrap: wrap !important;
    }

        .navbar-nav .nav-link {
            margin: 0.25rem 0;
            padding: 0.75rem 1rem !important;
        }

    .dropdown-menu {
        position: relative !important;
        box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
        margin-top: 0.5rem !important;
    }

    .cart-link-wrapper {
        margin: 0 0.25rem;
    }

    .navbar-nav.order-md-last {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
        padding: 0.4rem 0.7rem;
    }

    .navbar .btn-primary,
    .navbar .btn-outline-primary {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Hide icons on smaller screens to save space */
@media (max-width: 1200px) {
    .navbar-nav .nav-link i {
        display: none;
    }
}

/* -----------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------- */
:root {
    --bg-footer: #ffffff;
    --footer-border: #e9ecef;
    --footer-text: #6c757d;
    --footer-link: #495057;
    --footer-link-hover: #667eea;
    --footer-accent: #764ba2;
}

[data-bs-theme="dark"] {
    --bg-footer: #1e1e1e;
    --footer-border: #404040;
    --footer-text: #adb5bd;
    --footer-link: #dee2e6;
    --footer-link-hover: #7c93fb;
    --footer-accent: #8a66aa;
}

.premium-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--footer-border);
    padding: 3rem 0 2.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

    .premium-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--footer-link-hover) 0%, var(--footer-accent) 100%);
    }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .75rem;
}

.footer-link {
    color: var(--footer-link);
    font-weight: 500;
    text-decoration: none;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

    .footer-link:hover {
        color: var(--footer-link-hover);
        transform: translateY(-2px);
    }

.footer-sep {
    color: var(--footer-text);
    user-select: none;
}

.footer-copyright {
    font-size: .875rem;
    color: var(--footer-text);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: .5rem;
    }

    .footer-sep {
        display: none;
    }
}

/* -----------------------------------------------------------------------
   PAGE WRAPPER — FIXED FOR STICKY NAV
   ----------------------------------------------------------------------- */
.page-wrapper {
    min-height: calc(100vh - var(--nav-height) - 200px);
    padding-top: var(--nav-height);
}

.page-body {
    padding: 3rem 0;
}

/* -----------------------------------------------------------------------
   SMOOTH SCROLLING
   ----------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

/* ====================================================================
   SECTION 2 — BLAZOR ADDITIONS
   The minimum CSS needed for Blazor's rendering model that the hosting
   Razor app receives automatically from Tabler's server-rendered HTML.
   ==================================================================== */

/* Blazor's Tabler bundle does not forward dark-mode tokens to the page
   root the same way the hosting server does. Force them explicitly. */
[data-bs-theme="dark"] {
    --tblr-body-bg: #0a0f1a;
    --tblr-body-color: #f1f5f9;
    --tblr-card-bg: #1e293b;
    --tblr-border-color: #334155;
}

/* .page is the Blazor app shell (replaces <body> scoping) */
.page {
    min-height: 100vh;
    background-color: var(--tblr-body-bg, var(--bg-body));
    color: var(--tblr-body-color, var(--body-color));
}

/* Blazor uses <button> for the theme toggle; hosting uses <a>.
   Reset UA button chrome so it renders identically. */
button#theme-toggle.theme-toggle-wrapper,
button.theme-toggle-wrapper {
    font: inherit;
    line-height: inherit;
    color: inherit;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    appearance: none;
    -webkit-appearance: none;
}

/* -----------------------------------------------------------------------
   FORM CONTROLS — inputs and textareas
   Tabler themes these via its server-rendered HTML; Blazor needs explicit
   CSS to honour dark mode on form-control elements.
   ----------------------------------------------------------------------- */
.form-control,
.form-control-sm,
.form-control-lg,
textarea.form-control {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

.form-control:focus,
.form-control-sm:focus,
textarea.form-control:focus {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.18);
}

.form-control::placeholder {
    color: var(--muted);
    opacity: 1;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-control-sm,
[data-bs-theme="dark"] textarea.form-control {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-control-sm:focus,
[data-bs-theme="dark"] textarea.form-control:focus {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.input-group-text {
    background-color: var(--bg-surface);
    color: var(--body-color);
    border-color: var(--border-color);
}

/* -----------------------------------------------------------------------
   AUTOCOMPLETE / PREDICTIVE SEARCH LIST
   ----------------------------------------------------------------------- */
.list-group-item {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--body-color);
}

.list-group-item-action:active {
    background-color: rgba(var(--primary-rgb), 0.18);
    color: var(--body-color);
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

[data-bs-theme="dark"] .list-group-item-action:hover,
[data-bs-theme="dark"] .list-group-item-action:focus {
    background-color: rgba(129, 140, 248, 0.15);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .list-group-flush .list-group-item {
    background-color: transparent;
    border-color: #334155;
    color: #f1f5f9;
}

.list-group.shadow-sm {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18) !important;
}

[data-bs-theme="dark"] .list-group.shadow-sm {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}

.vril-autocomplete-list {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
}

.vril-autocomplete-list .list-group-item {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

.vril-autocomplete-list .list-group-item .text-secondary {
    color: var(--secondary) !important;
}

[data-bs-theme="dark"] .vril-autocomplete-list {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
}

[data-bs-theme="dark"] .vril-autocomplete-list .list-group-item {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

[data-bs-theme="dark"] .vril-autocomplete-list .list-group-item:hover,
[data-bs-theme="dark"] .vril-autocomplete-list .list-group-item:focus {
    background-color: rgba(129, 140, 248, 0.14);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .vril-autocomplete-list .list-group-item .text-secondary {
    color: #94a3b8 !important;
}

/* -----------------------------------------------------------------------
   CARDS
   ----------------------------------------------------------------------- */
.card {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

.card-header {
    background-color: var(--bg-surface);
    color: var(--body-color);
    border-bottom-color: var(--border-color);
}

.card.border-0 {
    border: none !important;
}

[data-bs-theme="dark"] .card {
    background-color: var(--card-bg);
    color: var(--body-color);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(15, 23, 42, 0.6);
    border-bottom-color: var(--border-color);
}

/* -----------------------------------------------------------------------
   ALERTS
   ----------------------------------------------------------------------- */
[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

[data-bs-theme="dark"] .alert-success {
    background-color: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.4);
    color: #34d399;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
    color: #f87171;
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.4);
    color: #60a5fa;
}

.alert-light {
    background-color: var(--bg-surface, #f8f9fa);
    border-color: var(--border-color, #e2e8f0);
    color: var(--body-color, #1e293b);
}

.alert-light strong {
    color: var(--body-color, #1e293b);
}

[data-bs-theme="dark"] .alert-light {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .alert-light strong {
    color: #f1f5f9;
}

/* -----------------------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------------------- */
[data-bs-theme="dark"] .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #334155;
    border-color: #64748b;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

[data-bs-theme="dark"] .btn-outline-danger {
    color: #f87171;
    border-color: #f87171;
}

[data-bs-theme="dark"] .btn-outline-danger:hover {
    background-color: rgba(248, 113, 113, 0.15);
    border-color: #f87171;
    color: #f87171;
}

/* -----------------------------------------------------------------------
   TEXT UTILITIES
   ----------------------------------------------------------------------- */
[data-bs-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #64748b !important;
}

/* -----------------------------------------------------------------------
   CODE / BADGE
   ----------------------------------------------------------------------- */
[data-bs-theme="dark"] code {
    color: #a78bfa;
    background-color: rgba(167, 139, 250, 0.1);
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #334155 !important;
    color: #94a3b8 !important;
}

/* ====================================================================
   SECTION 3 — VRILCHAT PAGE SHELL COMPONENTS
   Classes used by PremiumPageShell.razor and other Blazor components.
   ==================================================================== */

.vril-premium-page {
    max-width: 100%;
}

.vril-page-hero {
    padding: 0.25rem 0 0.5rem;
}

.vril-page-hero-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vril-page-title {
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .vril-page-title {
    background: linear-gradient(135deg, #7c93fb 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .vril-page-hero-icon {
    background: linear-gradient(135deg, #7c93fb 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vril-page-subtitle {
    font-size: 0.95rem;
    /* max-width: 48rem; */
}

/* Company / brand public pages — hero toolbar + logo + anchor scroll */
.vril-page-hero-toolbar .vril-org-nav {
    max-width: min(100%, 42rem);
    justify-content: flex-end;
}

.vril-org-logo-wrap {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vril-org-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Public org page — verified / member badges (aligned with Vril Hosting client profile) */
.profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .profile-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .profile-badge:hover::before {
        left: 100%;
    }

    .profile-badge.verified {
        background: linear-gradient(135deg, rgba(67, 160, 71, 0.15), rgba(46, 125, 50, 0.15));
        color: #2e7d32;
        border: 1px solid rgba(67, 160, 71, 0.3);
        box-shadow: 0 0 15px rgba(67, 160, 71, 0.2);
    }

        .profile-badge.verified:hover {
            box-shadow: 0 0 20px rgba(67, 160, 71, 0.3);
            transform: translateY(-2px);
        }

[data-bs-theme="dark"] .profile-badge.verified {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.2), rgba(46, 125, 50, 0.2));
    color: #81c784;
    box-shadow: 0 0 15px rgba(67, 160, 71, 0.3);
}

    [data-bs-theme="dark"] .profile-badge.verified:hover {
        box-shadow: 0 0 25px rgba(67, 160, 71, 0.4);
    }

.profile-badge.member {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

    .profile-badge.member:hover {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        transform: translateY(-2px);
    }

[data-bs-theme="dark"] .profile-badge.member {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #8ea2ff;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

    [data-bs-theme="dark"] .profile-badge.member:hover {
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.4);
    }

.scroll-margin-top {
    scroll-margin-top: 5.5rem;
}

@media (max-width: 576px) {
    .vril-page-hero-toolbar {
        width: 100%;
    }

    .vril-page-hero-toolbar .vril-org-nav {
        justify-content: flex-start;
    }
}

.vril-premium-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.75rem;
}

    .vril-premium-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.75rem 2rem rgba(102, 126, 234, 0.18) !important;
    }

[data-bs-theme="dark"] .vril-premium-tile:hover {
    box-shadow: 0 0.75rem 2rem rgba(124, 147, 251, 0.12) !important;
}

.vril-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

    .vril-empty-state .ti {
        font-size: 3rem;
        opacity: 0.35;
        margin-bottom: 1rem;
    }

.vril-error-page .card {
    border-radius: 0.75rem;
}

/* -----------------------------------------------------------------------
   HOSTING PAGE CARD PATTERNS
   Shared decorative classes used across hosting detail pages (orders,
   invoices, tickets) — port them here so VrilChat pages can mirror them.
   ----------------------------------------------------------------------- */

/* Animated gradient header card (same as Details.cshtml .order-header-card) */
.vril-header-card {
    border-radius: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    animation: vril-premium-gradient-shift 15s ease infinite;
    padding: 1.8rem 2rem;
    position: relative;
    overflow: hidden;
}

.vril-header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: vril-premium-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

/* Ticket-style header classes used by chat/profile signed-in session bar. */
.tickets-header-card {
    border-radius: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    animation: vril-premium-gradient-shift 15s ease infinite;
    padding: 1.2rem 1.4rem;
    position: relative;
    overflow: hidden;
}

.header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: vril-premium-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.tickets-header-content {
    position: relative;
    z-index: 1;
}

.tickets-header-card .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 0.6rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1.4rem;
}

.tickets-header-card .header-text {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.tickets-count-display {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
    padding: 0.65rem 1.2rem !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tickets-count-display:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.new-ticket-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.new-ticket-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

.shadow-premium {
    box-shadow: 0 10px 40px rgba(0, 82, 212, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .shadow-premium {
    box-shadow: 0 10px 40px rgba(67, 100, 247, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Bring all PremiumPageShell cards to the same visual system as /following. */
.vril-premium-page .card.border-0.shadow-sm {
    border-radius: 0.9rem;
    border: 1px solid rgba(102, 126, 234, 0.12) !important;
    box-shadow: 0 10px 40px rgba(0, 82, 212, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
}

[data-bs-theme="dark"] .vril-premium-page .card.border-0.shadow-sm {
    border-color: rgba(129, 140, 248, 0.28) !important;
    box-shadow: 0 10px 40px rgba(67, 100, 247, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

.vril-premium-page .card.border-0.shadow-sm > .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-bottom: 1px solid rgba(102, 126, 234, 0.14);
    padding-block: 0.85rem !important;
}

[data-bs-theme="dark"] .vril-premium-page .card.border-0.shadow-sm > .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.16), rgba(118, 75, 162, 0.16));
    border-bottom-color: rgba(129, 140, 248, 0.26);
}

.vril-premium-page .card.border-0.shadow-sm > .card-body {
    padding: 1rem 1.1rem;
}

/* Shared larger control sizes for chat pages */
.form-control-big {
    min-height: calc(1.65em + 1rem + 2px);
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

.form-select-big {
    min-height: calc(1.65em + 1rem + 2px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.9rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

/* Section title with gradient icon — matches hosting detail pages */
.vril-section-title {
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tblr-body-color, var(--body-color));
    margin-bottom: 0;
}

.vril-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.6rem;
    color: var(--primary);
}

[data-bs-theme="dark"] .vril-section-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.4);
}

/* Meta info box (used on detail/overview grids) */
.vril-meta-box {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 0.7rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] .vril-meta-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.2);
}

.vril-meta-box:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.vril-meta-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
}

.vril-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--body-color);
    display: flex;
    align-items: center;
}

/* View/action button with glow — matches hosting .view-btn */
.vril-view-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
}

[data-bs-theme="dark"] .vril-view-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.4) !important;
}

.vril-view-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5) !important;
    color: var(--primary) !important;
}

.vril-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 0.5rem;
}

.vril-view-btn:hover .vril-btn-glow {
    transform: translate(-50%, -50%) scale(2);
}

/* Status badges — mirrors hosting status-resolved / status-pending / status-closed */
.vril-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vril-status-active,
.vril-status-resolved {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.15), rgba(46, 125, 50, 0.15));
    color: #2e7d32;
    border-color: rgba(67, 160, 71, 0.3);
    box-shadow: 0 0 20px rgba(67, 160, 71, 0.2);
}

[data-bs-theme="dark"] .vril-status-active,
[data-bs-theme="dark"] .vril-status-resolved {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.2), rgba(46, 125, 50, 0.2));
    color: #81c784;
    box-shadow: 0 0 20px rgba(67, 160, 71, 0.3);
}

.vril-status-pending {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.15), rgba(251, 140, 0, 0.15));
    color: #f57c00;
    border-color: rgba(255, 167, 38, 0.3);
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.2);
}

[data-bs-theme="dark"] .vril-status-pending {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.2), rgba(251, 140, 0, 0.2));
    color: #ffb74d;
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.3);
}

.vril-status-closed,
.vril-status-danger {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.15), rgba(183, 28, 28, 0.15));
    color: #c62828;
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.2);
}

[data-bs-theme="dark"] .vril-status-closed,
[data-bs-theme="dark"] .vril-status-danger {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(183, 28, 28, 0.2));
    color: #ef5350;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.3);
}

/* Empty state — mirrors hosting .empty-icon-wrapper etc. */
.vril-empty-icon-wrapper {
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.vril-empty-icon {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.6;
    display: block;
}

.vril-empty-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
    transform: translate(-50%, -50%);
    animation: vril-premium-glow-pulse 3s ease-in-out infinite;
    border-radius: 50%;
}
.profile-digital-id-block {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.55) 0%, rgba(30, 41, 59, 0.85) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.profile-digital-id-fade {
    font-size: 0.9rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.profile-digital-id-prefix {
    color: #e2e8f0;
    font-weight: 600;
}

.profile-digital-id-mask {
    color: #64748b;
    letter-spacing: 0.12em;
    filter: blur(0.35px);
    user-select: none;
}

/* Invite ref block — same slate language as Digital ID + chat quote strip (#334155); wrap uses .profile-digital-id-block */

.profile-digitalid-ref-lead,
.profile-digitalid-ref-muted {
    color: #94a3b8;
}

.profile-digitalid-ref-expiry {
    color: #64748b;
    margin-top: 0.35rem;
}

/* GUID: #334155 panel, reset native button chrome (avoids thick light borders) */
.profile-digitalid-ref-copy {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.35rem;
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    word-break: break-all;
    color: #e2e8f0;
    background-color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.5rem;
    cursor: pointer;
    user-select: all;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-digitalid-ref-copy:hover:not(:disabled) {
    background-color: #3d4f66;
    border-color: rgba(148, 163, 184, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-digitalid-ref-copy:focus {
    outline: none;
}

.profile-digitalid-ref-copy:focus-visible {
    outline: 2px solid rgba(148, 163, 184, 0.45);
    outline-offset: 2px;
}

.profile-digitalid-ref-copy:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
/* Full-width grid; avoid clipping Bootstrap dropdowns */
.friends-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.friends-grid-card {
    overflow: visible;
}

/* PremiumPageShell cards use overflow:hidden for rounded shadow — that clips dropdowns; friends kebab must escape. */
.vril-premium-page .friends-grid .friends-grid-card.card.border-0.shadow-sm {
    overflow: visible !important;
}

.vril-premium-page .friends-grid .friends-grid-card .card-body {
    overflow: visible;
}

.friends-kebab {
    padding: 0.25rem 0.45rem;
    line-height: 1;
}

/* Above sibling cards / page chrome when using fixed Popper strategy */
.friends-dropdown-menu.dropdown-menu {
    z-index: 1060;
}
.chat-shell-wrap {
    position: relative;
    z-index: 0;
}

.chat-shell {
    min-height: min(70vh, 640px);
}

.chat-overlay-root {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem;
    animation: chat-overlay-fade-in 0.25s ease forwards;
}

.chat-overlay-root.chat-overlay-root--leave {
    animation: chat-overlay-fade-out 0.2s ease forwards;
}

.chat-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
}

.chat-overlay-sheet {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    max-height: min(78vh, 620px);
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
}

.chat-overlay-sheet .card-body {
    flex: 1 1 auto;
    min-height: 0;
}

@keyframes chat-overlay-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes chat-overlay-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.chat-conv-row .text-truncate,
.chat-peer-row .text-truncate {
    min-width: 0;
}

.chat-thread {
    min-height: 280px;
    max-height: min(55vh, 480px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Message history pane only — requested #172c4a (not the page background) */
[data-bs-theme="dark"] .chat-thread {
    background-color: #172c4a !important;
    border-color: rgba(129, 140, 248, 0.22) !important;
    color: var(--tblr-body-color, #f1f5f9);
}

.chat-peer-item {
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}

.chat-peer-item:hover {
    background-color: rgba(var(--tblr-primary-rgb, 102, 126, 234), 0.08);
}

.chat-peer-item.active {
    background-color: rgba(var(--tblr-primary-rgb, 102, 126, 234), 0.15);
    border-left: 3px solid var(--tblr-primary, #667eea);
}

.chat-peer-pills .nav-link {
    border: 1px solid var(--tblr-border-color, rgba(0, 0, 0, 0.08));
    color: var(--tblr-body-color);
}

.chat-peer-pills .nav-link:hover {
    background-color: rgba(var(--tblr-primary-rgb, 102, 126, 234), 0.08);
}

.chat-peer-pills .nav-link.active {
    border-color: var(--tblr-primary, #667eea);
}

.bubble {
    min-width: fit-content;
    max-width: 85%;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.bubble-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    opacity: 0.9;
}

.bubble-sender {
    font-weight: 600;
}

.bubble-time {
    margin-left: auto;
    white-space: nowrap;
}

.bubble-body {
    margin-top: 0.1rem;
}

.chat-msg-action-menu {
    top: .2rem;
    margin-top: 0;
    z-index: 70;
    min-width: 8.5rem;
}

.bubble-me + .chat-msg-action-menu {
    margin-right: .25rem;
}

.bubble-them + .chat-msg-action-menu {
    margin-left: .25rem;
}

/* Quoted reply strip (thread + composer) — slate panel #334155 */
.chat-msg-quote {
    background-color: #334155;
    border-left: 3px solid #475569;
    color: #e2e8f0;
}

.chat-msg-quote__sender {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
}

.chat-msg-quote__body {
    color: #cbd5e1;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.bubble-me .chat-msg-quote {
    /* Recessed block on gradient send bubble */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.chat-compose-quote {
    background-color: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
}

.chat-compose-quote__inner {
    border-left: 3px solid #64748b;
    padding-left: 0.5rem;
    min-width: 0;
}

.chat-compose-quote__label {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
}

.chat-compose-quote__text {
    color: #cbd5e1;
    line-height: 1.35;
}

.bubble-me {
    margin-left: auto;
    background: linear-gradient(135deg, var(--tblr-primary, #667eea), var(--tblr-indigo, #764ba2));
    color: #fff;
}

.bubble-them {
    margin-right: auto;
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.05));
    color: var(--tblr-body-color);
}

[data-bs-theme="dark"] .bubble-them {
    background: rgba(255, 255, 255, 0.08);
}

.chat-pin-marquee {
    position: relative;
}

.chat-pin-marquee-inner {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: chat-pin-marquee 22s linear infinite;
}

@keyframes chat-pin-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* Avatar dropdown labels — always white on gradient navbar (both themes) */
.navbar .nav-user-name {
    color: #fff;
    font-weight: 600;
}

.navbar .nav-user-sub {
    color: rgba(255, 255, 255, 0.72);
}

/* Right-side group: remove any divider line in all viewports */
.navbar-nav.order-md-last {
    border: none !important;
}

/* Notification bell — always visible on gradient navbar (SVG uses currentColor) */
.navbar .vril-chat-bell-link {
    color: rgba(255, 255, 255, 0.95) !important;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.navbar .vril-chat-bell-svg {
    display: block;
    color: inherit;
}
.vril-chat-notify-host .dropdown-menu {
    border-radius: 0.5rem;
}

.vril-chat-bell-link .vril-chat-bell-svg {
    flex-shrink: 0;
}

.vril-chat-notify-list .list-group-item {
    border-left: none;
    border-right: none;
}

[data-bs-theme="dark"] .vril-chat-notify-list .list-group-item.bg-primary-lt {
    background-color: rgba(var(--tblr-primary-rgb, 102, 126, 234), 0.12) !important;
}

/* ====================================================================
   SECTION 4 — Profile edit sidebar (mirrors Vril Hosting C_Profile/Edit)
   Source: Areas/Client/Views/Shared/_ClientProfileEditStyles.cshtml
   ==================================================================== */

@keyframes vril-profile-avatarGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.6);
    }
}

.vril-profile-edit-hosting .profile-sidebar {
    background: var(--card-bg);
    border-radius: 1.25rem;
    position: sticky;
    top: 2rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.vril-profile-edit-hosting .sidebar-content {
    padding: 2rem;
}

.vril-profile-edit-hosting .profile-avatar-wrapper {
    display: inline-block;
    position: relative;
}

.vril-profile-edit-hosting .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: vril-profile-avatarGlow 3s ease-in-out infinite;
}

[data-bs-theme="dark"] .vril-profile-edit-hosting .profile-avatar {
    border-color: rgba(255, 255, 255, 0.1);
}

.vril-profile-edit-hosting .avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3), transparent);
    border-radius: 50%;
    animation: vril-premium-glow-pulse 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.vril-profile-edit-hosting .avatar-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    border: 3px solid var(--card-bg);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
    z-index: 4;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.vril-profile-edit-hosting .avatar-edit-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.6);
}

.vril-profile-edit-hosting .avatar-edit-badge.opacity-50 {
    pointer-events: none;
}

.vril-profile-edit-hosting .profile-avatar-img-sidebar,
.vril-profile-edit-hosting img.vril-profile-edit-avatar-img {
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    animation: vril-profile-avatarGlow 3s ease-in-out infinite;
}

[data-bs-theme="dark"] .vril-profile-edit-hosting .profile-avatar-img-sidebar,
[data-bs-theme="dark"] .vril-profile-edit-hosting img.vril-profile-edit-avatar-img {
    border-color: rgba(255, 255, 255, 0.1);
}

.vril-profile-edit-hosting .profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--body-color);
    margin: 0;
}

.vril-profile-edit-hosting .profile-company {
    font-size: 0.9rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.vril-profile-edit-hosting .sidebar-divider {
    border-color: rgba(var(--primary-rgb), 0.15);
    margin: 1.5rem 0;
}

.vril-profile-edit-hosting .info-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color-light);
    text-align: left;
}

.vril-profile-edit-hosting .info-item:last-child {
    border-bottom: none;
}

.vril-profile-edit-hosting .info-item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
}

.vril-profile-edit-hosting .info-item-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--body-color);
}

.vril-profile-edit-hosting .sidebar-note {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 152, 0, 0.08));
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 0.6rem;
    border-left: 3px solid rgba(255, 193, 7, 0.6);
    font-size: 0.85rem;
    color: var(--body-color);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
}

/* One flex child for all copy; stops icon + text + <a> from becoming separate narrow columns */
.vril-profile-edit-hosting .sidebar-note .sidebar-note-body {
    flex: 1 1 0;
    min-width: 0;
}

[data-bs-theme="dark"] .vril-profile-edit-hosting .sidebar-note {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 152, 0, 0.12));
}

.vril-profile-edit-hosting .sidebar-note > i:first-child {
    color: var(--warning);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* =======================================================================
   COMPANY PUBLIC PAGE  —  /company/{slug}
   Premium wall-feed design: hero, animated orbs, section nav, post cards.
   ======================================================================= */

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes vril-cpub-orb-a {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(30px,-40px) scale(1.15); }
    66%      { transform: translate(-20px,20px) scale(0.92); }
}
@keyframes vril-cpub-orb-b {
    0%,100% { transform: translate(0,0) scale(1); }
    40%      { transform: translate(-40px,30px) scale(1.1); }
    75%      { transform: translate(20px,-20px) scale(0.95); }
}
@keyframes vril-cpub-orb-c {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(20px,40px) scale(1.12); }
}
/* No skew: skewing a full-bleed (inset:0) layer turns it into a huge diagonal band across the viewport. */
@keyframes vril-cpub-sweep {
    0%   { opacity: 0.35; transform: translateX(-12%); }
    55%  { opacity: 0.18; transform: translateX(8%); }
    100% { opacity: 0; transform: translateX(12%); }
}
@keyframes vril-cpub-ring-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35), 0 0 0 6px rgba(255,255,255,.08); }
    50%      { box-shadow: 0 0 0 10px rgba(255,255,255,.0), 0 0 0 16px rgba(255,255,255,.0); }
}
@keyframes vril-cpub-post-in {
    from { opacity:0; transform:translateY(18px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes vril-cpub-shimmer-sweep {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes vril-cpub-panel-in {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.vril-cpub-hero {
    position: relative;
    /* Must not clip Bootstrap dropdowns (Post / Admin). Decorative orbs may extend slightly past corners. */
    overflow: visible;
    /* Above .vril-cpub-nav (z-index: 100) so open menus paint over the section tab bar. */
    z-index: 200;
    border-radius: 1.25rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    padding: 3rem 2rem 2.5rem;
    /* Exact same gradient + speed as the main navbar */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    animation: vril-premium-gradient-shift 15s ease infinite;
    box-shadow: 0 10px 40px rgba(102,126,234,.35), 0 0 80px rgba(102,126,234,.12) inset;
    color: #fff;
}

/* Twin radial glow — contained to hero; avoid -50% insets + vril-premium-glow-pulse scale bleeding past the card. */
.vril-cpub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 25% 50%, rgba(255,255,255,.28) 0%, transparent 55%),
        radial-gradient(circle at 75% 50%, rgba(255,255,255,.18) 0%, transparent 55%);
    animation: vril-premium-glow-pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Shimmer underline — same as .navbar::after */
.vril-cpub-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    background-size: 220% 100%;
    background-position: -220% 0;
    animation: vril-cpub-bar-shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

[data-bs-theme="dark"] .vril-cpub-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #4c1d95 50%, #1e3a5f 75%, #0f172a 100%);
    background-size: 300% 300%;
    box-shadow: 0 10px 40px rgba(102,126,234,.22), 0 0 60px rgba(102,126,234,.08) inset;
}

/* floating colour orbs */
.vril-cpub-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: .45;
}
.vril-cpub-hero-orb-1 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(255,255,255,.35) 0%, transparent 70%);
    top: -80px; left: -60px;
    animation: vril-cpub-orb-a 12s ease-in-out infinite;
}
.vril-cpub-hero-orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(244,63,94,.5) 0%, transparent 70%);
    bottom: -60px; right: 10%;
    animation: vril-cpub-orb-b 15s ease-in-out infinite;
}
.vril-cpub-hero-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(16,185,129,.5) 0%, transparent 70%);
    top: 30%; right: -40px;
    animation: vril-cpub-orb-c 10s ease-in-out infinite;
}

/* one-shot sweep on load — stays inside hero; ends invisible (see vril-cpub-sweep keyframes). */
.vril-cpub-hero-sweep {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
    animation: vril-cpub-sweep 2.4s ease forwards;
    pointer-events: none;
    z-index: 1;
}

/* inner layout */
.vril-cpub-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: center;
}

/* ── Logo frame ─────────────────────────────────────────────────────────── */
.vril-cpub-logo-frame {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    height: 110px;
}

.vril-cpub-logo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.45);
    animation: vril-cpub-ring-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.vril-cpub-logo-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,.12);
    border: 3px solid rgba(255,255,255,.3);
    backdrop-filter: blur(4px);
    display: block;
}

.vril-cpub-logo-initials {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    border: 3px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(255,255,255,.9);
}

/* ── Identity block ─────────────────────────────────────────────────────── */
.vril-cpub-hero-identity {
    flex: 1 1 220px;
    min-width: 0;
}

.vril-cpub-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .75rem;
}

.vril-cpub-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    border-radius: 2rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
}
.vril-cpub-badge-verified { background: rgba(16,185,129,.3); color: #d1fae5; }
.vril-cpub-badge-member   { background: rgba(99,102,241,.3); color: #e0e7ff; }
.vril-cpub-badge-kind     { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }

.vril-cpub-hero-name {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.25);
    margin: 0 0 .5rem;
    line-height: 1.15;
}

.vril-cpub-hero-admin {
    font-size: .875rem;
    color: rgba(255,255,255,.8);
    margin: 0 0 .6rem;
}
.vril-cpub-hero-admin-link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
.vril-cpub-hero-admin-link:hover { color: #e0e7ff; }

.vril-cpub-ref-btn {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: .5rem;
    padding: .35rem .75rem;
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    backdrop-filter: blur(6px);
    transition: background .2s, border-color .2s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vril-cpub-ref-btn:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.4);
}
.vril-cpub-ref-btn code {
    font-size: .75rem;
    color: inherit;
    background: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vril-cpub-ref-copy-icon { opacity: .7; font-size: .8rem; }

/* ── Hero action buttons ────────────────────────────────────────────────── */
.vril-cpub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    flex-shrink: 0;
}

.vril-cpub-btn-follow {
    background: #fff;
    color: #667eea;
    font-weight: 700;
    border: none;
    border-radius: .65rem;
    padding: .55rem 1.4rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
    transition: transform .18s, box-shadow .18s, background .18s;
    letter-spacing: .01em;
}
.vril-cpub-btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
    background: #f0f4ff;
    color: #5a6fd6;
}

.vril-cpub-btn-following {
    background: rgba(255,255,255,.15);
    color: #fff;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: .65rem;
    padding: .5rem 1.4rem;
    backdrop-filter: blur(6px);
    transition: background .18s;
}
.vril-cpub-btn-following:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.vril-cpub-btn-secondary {
    background: rgba(255,255,255,.15);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: .6rem;
    padding: .5rem 1rem;
    backdrop-filter: blur(6px);
    transition: background .18s;
}
.vril-cpub-btn-secondary:hover,
.vril-cpub-btn-secondary:focus {
    background: rgba(255,255,255,.25);
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.vril-cpub-btn-secondary.dropdown-toggle::after { vertical-align: .15em; }

/* ── Section Nav Bar ────────────────────────────────────────────────────── */
.vril-cpub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .75rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(102,126,234,.1);
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: var(--nav-height, 3.5rem);
    z-index: 100;
    /* enter: fast glow transition */
    transition: box-shadow .15s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
/* leave: slow fade-back (CSS enter/leave trick via :hover override) */
.vril-cpub-nav:not(:hover) {
    transition: box-shadow .4s ease .1s;
}
.vril-cpub-nav:hover {
    box-shadow: 0 4px 32px rgba(102,126,234,.22), 0 0 0 1px rgba(102,126,234,.15);
}

[data-bs-theme="dark"] .vril-cpub-nav {
    background: rgba(30,41,59,.97);
    border-color: rgba(102,126,234,.15);
}
[data-bs-theme="dark"] .vril-cpub-nav:hover {
    box-shadow: 0 4px 32px rgba(124,147,251,.25), 0 0 0 1px rgba(124,147,251,.18);
}

.vril-cpub-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1.1rem;
    border-radius: .55rem;
    border: none;
    background: transparent;
    color: var(--secondary);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* leave: slow fade */
    transition: color .3s ease .05s, background .3s ease .05s, transform .3s ease .05s, box-shadow .3s ease .05s;
}
/* enter: snap in fast */
.vril-cpub-nav-tab:hover {
    background: rgba(102,126,234,.12);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102,126,234,.2);
    /* no delay on hover-in */
    transition: color .12s ease, background .12s ease, transform .12s ease, box-shadow .15s ease;
}
/* shimmer ripple on hover-in */
.vril-cpub-nav-tab::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    opacity: 0;
    transition: opacity .3s ease .05s;
    pointer-events: none;
    border-radius: inherit;
}
.vril-cpub-nav-tab:hover::after {
    opacity: 1;
    transition: opacity .12s ease;
}
.vril-cpub-nav-tab.active {
    background: linear-gradient(135deg, rgba(102,126,234,.18), rgba(118,75,162,.18));
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(102,126,234,.3), 0 2px 12px rgba(102,126,234,.18);
}
.vril-cpub-nav-tab .ti { font-size: 1rem; }

/* ── Section body ───────────────────────────────────────────────────────── */
.vril-cpub-section-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* ── Post card ──────────────────────────────────────────────────────────── */
.vril-cpub-post {
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid rgba(102,126,234,.1);
    /* depth + soft violet outer glow (noticeable, not heavy) */
    box-shadow:
        0 4px 24px rgba(0,0,0,.06),
        0 1px 4px rgba(0,0,0,.04),
        0 0 0 1px rgba(102,126,234,.06),
        0 0 28px -6px rgba(102,126,234,.16);
    overflow: hidden;
    animation: vril-cpub-post-in .45s cubic-bezier(.22,1,.36,1) both;
    transition: transform .2s ease, box-shadow .2s ease;
}
.vril-cpub-post:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(102,126,234,.12),
        0 2px 8px rgba(0,0,0,.06),
        0 0 0 1px rgba(102,126,234,.12),
        0 0 36px -4px rgba(102,126,234,.22);
}

[data-bs-theme="dark"] .vril-cpub-post {
    border-color: rgba(102,126,234,.18);
    box-shadow:
        0 4px 24px rgba(0,0,0,.2),
        0 0 0 1px rgba(255,255,255,.04),
        0 0 32px -6px rgba(124,147,251,.14);
}
[data-bs-theme="dark"] .vril-cpub-post:hover {
    box-shadow:
        0 12px 40px rgba(102,126,234,.18),
        0 0 0 1px rgba(255,255,255,.06),
        0 0 40px -4px rgba(124,147,251,.2);
}

/* news variant — top accent stripe */
.vril-cpub-post-news {
    border-top: 3px solid #38bdf8;
}

/* post header */
.vril-cpub-post-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.25rem .6rem;
    border-bottom: 1px solid rgba(102,126,234,.07);
}

.vril-cpub-post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(102,126,234,.25), rgba(118,75,162,.25));
    color: var(--primary);
    border: 2px solid rgba(102,126,234,.2);
}
.vril-cpub-post-avatar img { width: 100%; height: 100%; object-fit: contain; }

.vril-cpub-post-avatar-news {
    background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(14,165,233,.2));
    color: #0ea5e9;
    border-color: rgba(56,189,248,.25);
}

.vril-cpub-post-meta {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1 1 auto;
    min-width: 0;
}
.vril-cpub-post-author {
    font-size: .9rem;
    font-weight: 700;
    color: var(--body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vril-cpub-post-time {
    font-size: .75rem;
    color: var(--secondary);
}

.vril-cpub-kind-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .7rem;
    border-radius: 2rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.vril-cpub-kind-feed {
    background: rgba(102,126,234,.12);
    color: #667eea;
    border: 1px solid rgba(102,126,234,.2);
}
.vril-cpub-kind-news {
    background: rgba(56,189,248,.12);
    color: #0ea5e9;
    border: 1px solid rgba(56,189,248,.2);
}

[data-bs-theme="dark"] .vril-cpub-kind-feed { background: rgba(102,126,234,.2); }
[data-bs-theme="dark"] .vril-cpub-kind-news { background: rgba(56,189,248,.2); }

/* post body */
.vril-cpub-post-body {
    padding: 1.1rem 1.25rem .75rem;
}

.vril-cpub-post-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 .7rem;
    color: var(--body-color);
    line-height: 1.35;
}

.vril-cpub-post-content {
    font-size: .97rem;
    color: var(--secondary);
    line-height: 1.65;
}
.vril-cpub-post-content .ql-editor { padding: 0; }

/* post footer */
.vril-cpub-post-footer {
    padding: .6rem 1.25rem 1rem;
    border-top: 1px solid rgba(102,126,234,.07);
}

/* ── Info panels (About / Contact / Registry) ────────────────────────────── */
.vril-cpub-panel {
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid rgba(102,126,234,.1);
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    padding: 2rem 2rem 2rem;
    animation: vril-cpub-panel-in .4s cubic-bezier(.22,1,.36,1) both;
}

[data-bs-theme="dark"] .vril-cpub-panel {
    border-color: rgba(102,126,234,.18);
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}

.vril-cpub-panel-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(102,126,234,.15), rgba(118,75,162,.15));
    border: 1px solid rgba(102,126,234,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.vril-cpub-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .vril-cpub-panel-title {
    background: linear-gradient(135deg, #7c93fb, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
}

.vril-cpub-about-body { color: var(--body-color); }
.vril-cpub-about-body .ql-editor { padding: 0; }

/* contact grid */
.vril-cpub-contact-grid {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.vril-cpub-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.1rem;
    border-radius: .75rem;
    border: 1px solid rgba(102,126,234,.1);
    background: rgba(102,126,234,.04);
    text-decoration: none;
    color: var(--body-color);
    transition: transform .18s, box-shadow .18s, background .18s;
}
.vril-cpub-contact-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(102,126,234,.12);
    background: rgba(102,126,234,.08);
    color: var(--body-color);
}

.vril-cpub-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: .6rem;
    background: linear-gradient(135deg, rgba(102,126,234,.18), rgba(118,75,162,.18));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.vril-cpub-contact-text {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    flex: 1 1 auto;
    min-width: 0;
}
.vril-cpub-contact-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--secondary);
}
.vril-cpub-contact-value {
    font-size: .9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vril-cpub-contact-arrow { color: var(--secondary); opacity: .5; font-size: .85rem; }

/* chat cta */
.vril-cpub-chat-btn {
    display: inline-flex;
    align-items: center;
    padding: .65rem 1.4rem;
    border-radius: .7rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 20px rgba(102,126,234,.35);
    transition: transform .18s, box-shadow .18s;
}
.vril-cpub-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(102,126,234,.45);
    color: #fff;
}

/* registry */
.vril-cpub-registry-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.vril-cpub-registry-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .85rem 1.1rem;
    border-radius: .7rem;
    background: rgba(102,126,234,.04);
    border: 1px solid rgba(102,126,234,.09);
}
.vril-cpub-registry-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--secondary);
}
.vril-cpub-registry-value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--body-color);
}
.vril-cpub-registry-ref {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: .92rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    text-align: left;
    word-break: break-all;
}
.vril-cpub-registry-ref:hover { text-decoration: underline; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.vril-cpub-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--secondary);
}
.vril-cpub-empty .ti {
    font-size: 3.2rem;
    opacity: .25;
    display: block;
    margin-bottom: .75rem;
}
.vril-cpub-empty p { margin: 0; font-size: .95rem; }

/* ── Loading shimmer ────────────────────────────────────────────────────── */
.vril-cpub-shimmer-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.vril-cpub-shimmer {
    border-radius: 1rem;
    background: linear-gradient(90deg,
        rgba(102,126,234,.07) 25%,
        rgba(102,126,234,.15) 50%,
        rgba(102,126,234,.07) 75%);
    background-size: 800px 100%;
    animation: vril-cpub-shimmer-sweep 1.4s infinite linear;
}
.vril-cpub-shimmer-hero  { height: 220px; }
.vril-cpub-shimmer-nav   { height: 56px; border-radius: .75rem; }
.vril-cpub-shimmer-card  { height: 160px; }

/* ── Post modal ─────────────────────────────────────────────────────────── */
.vril-cpub-modal-content {
    border-radius: 1.25rem;
    overflow: hidden;
}
.vril-cpub-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.vril-cpub-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

/* ── Timeline wall ─────────────────────────────────────────────────────── */
@keyframes vril-cpub-tl-dot-pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(102,126,234,.6), 0 0 0 4px rgba(102,126,234,.12);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102,126,234,0), 0 0 0 12px rgba(102,126,234,0);
    }
}
@keyframes vril-cpub-tl-dot-pulse-news {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(56,189,248,.6), 0 0 0 4px rgba(56,189,248,.12);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(56,189,248,0), 0 0 0 12px rgba(56,189,248,0);
    }
}
@keyframes vril-cpub-tl-line-flow {
    0%   { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

/* timeline container */
.vril-cpub-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 0;
}

/* flowing vertical glow line */
.vril-cpub-timeline::before {
    content: '';
    position: absolute;
    top: 22px; /* center of first dot */
    bottom: 22px;
    left: 44px; /* center of 88px aside */
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(180deg,
        rgba(102,126,234,0) 0%,
        #667eea 15%,
        #764ba2 35%,
        #f093fb 55%,
        #4facfe 75%,
        rgba(79,172,254,0) 100%);
    background-size: 100% 300%;
    animation: vril-cpub-tl-line-flow 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* single timeline row */
.vril-cpub-tl-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    animation: vril-cpub-post-in .45s cubic-bezier(.22,1,.36,1) both;
}

/* ── Left aside (dot + date) ─── */
.vril-cpub-tl-aside {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding-top: 2px;
}

/* icon dot on the line */
.vril-cpub-tl-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.vril-cpub-tl-item:hover .vril-cpub-tl-dot { transform: scale(1.12); }

.vril-cpub-tl-dot-feed {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(102,126,234,.15);
    animation: vril-cpub-tl-dot-pulse 2.8s ease-in-out infinite;
}
.vril-cpub-tl-dot-news {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(56,189,248,.15);
    animation: vril-cpub-tl-dot-pulse-news 2.8s ease-in-out infinite;
}

/* date block */
.vril-cpub-tl-datebox {
    width: 72px;
    border-radius: .6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .5rem .25rem;
    text-align: center;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease;
}
.vril-cpub-tl-item:hover .vril-cpub-tl-datebox {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.vril-cpub-tl-datebox-feed {
    background: linear-gradient(160deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102,126,234,.4);
    border-color: rgba(255,255,255,.12);
}
.vril-cpub-tl-datebox-news {
    background: linear-gradient(160deg, #38bdf8, #0284c7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(56,189,248,.35);
    border-color: rgba(255,255,255,.12);
}

.vril-cpub-tl-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    display: block;
}
.vril-cpub-tl-monthyr {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    display: block;
    margin-top: .15rem;
}

/* ── Right: post card in timeline ─── */
.vril-cpub-tl-post {
    flex: 1 1 0;
    min-width: 0;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid rgba(102,126,234,.12);
    box-shadow:
        0 4px 24px rgba(0,0,0,.06),
        0 1px 4px rgba(0,0,0,.04),
        0 0 0 1px rgba(102,126,234,.06),
        0 0 28px -6px rgba(102,126,234,.16);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vril-cpub-tl-item:hover .vril-cpub-tl-post {
    transform: translateX(3px);
    border-color: rgba(102,126,234,.28);
    box-shadow:
        0 8px 36px rgba(102,126,234,.12),
        0 2px 8px rgba(0,0,0,.06),
        0 0 0 1px rgba(102,126,234,.1),
        0 0 40px -4px rgba(102,126,234,.24);
}
[data-bs-theme="dark"] .vril-cpub-tl-post {
    border-color: rgba(102,126,234,.18);
    box-shadow:
        0 4px 24px rgba(0,0,0,.22),
        0 0 0 1px rgba(255,255,255,.04),
        0 0 32px -6px rgba(124,147,251,.14);
}
[data-bs-theme="dark"] .vril-cpub-tl-item:hover .vril-cpub-tl-post {
    border-color: rgba(124,147,251,.35);
    box-shadow:
        0 8px 36px rgba(102,126,234,.16),
        0 0 0 1px rgba(255,255,255,.06),
        0 0 44px -4px rgba(124,147,251,.22);
}

/* news variant — faint sky tint in the glow */
.vril-cpub-tl-post-news {
    border-top: 3px solid #38bdf8;
    box-shadow:
        0 4px 24px rgba(0,0,0,.06),
        0 1px 4px rgba(0,0,0,.04),
        0 0 0 1px rgba(56,189,248,.08),
        0 0 28px -6px rgba(56,189,248,.14),
        0 0 24px -8px rgba(102,126,234,.1);
}
.vril-cpub-tl-item:hover .vril-cpub-tl-post-news {
    box-shadow:
        0 8px 36px rgba(56,189,248,.1),
        0 2px 8px rgba(0,0,0,.06),
        0 0 0 1px rgba(56,189,248,.15),
        0 0 40px -4px rgba(56,189,248,.2),
        0 0 32px -6px rgba(102,126,234,.12);
}

/* ── Org feed: comment thread & composer (all surfaces) ──────────────── */
.org-feed-interactions--premium .org-feed-comment-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.org-feed-comment-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    line-height: 1.35;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--body-color);
}

.org-feed-comment-author-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.org-feed-comment-author-link:hover {
    color: var(--primary);
    border-bottom-color: rgba(102, 126, 234, .45);
}

.org-feed-comment-author-name {
    font-weight: 600;
    color: var(--body-color);
}

/* Space between author line and comment body */
.org-feed-comment-body {
    margin-top: .85rem;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.org-feed-comment-body .ql-editor {
    padding: 0;
}

/* Timestamp + delete row — clearly separated from body */
.org-feed-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem .75rem;
    margin-top: 1rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(102,126,234,.1);
}

.org-feed-comment-time {
    font-size: .8125rem;
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.org-feed-comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    justify-content: flex-end;
}

.org-feed-comment-reply,
.org-feed-comment-quote,
.org-feed-comment-edit,
.org-feed-comment-history,
.org-feed-staff-action {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .55rem !important;
    border-radius: .45rem !important;
}

.org-feed-comment-reply .ti,
.org-feed-comment-quote .ti,
.org-feed-comment-edit .ti,
.org-feed-comment-history .ti,
.org-feed-staff-action .ti {
    font-size: .95rem;
}

.org-feed-reply-context {
    border-radius: .6rem !important;
    border: 1px solid rgba(102,126,234,.15) !important;
}

/* Forum-style quote inside a comment body (server-rendered) */
.org-feed-comment-body blockquote.vril-feed-quote,
.org-feed-interactions .ql-editor blockquote.vril-feed-quote {
    margin: 0 0 .75rem;
    padding: .75rem 1rem;
    border-left: 4px solid rgba(102,126,234,.45);
    border-radius: 0 .5rem .5rem 0;
    background: rgba(102,126,234,.06);
    font-size: .92rem;
}

.org-feed-comment-body blockquote.vril-feed-quote cite,
.org-feed-interactions .ql-editor blockquote.vril-feed-quote cite {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--secondary);
    margin-bottom: .4rem;
    font-style: normal;
}

.org-feed-comment-body .vril-feed-quote-body,
.org-feed-interactions .ql-editor .vril-feed-quote-body {
    color: var(--body-color);
    line-height: 1.5;
}

[data-bs-theme="dark"] .org-feed-comment-body blockquote.vril-feed-quote,
[data-bs-theme="dark"] .org-feed-interactions .ql-editor blockquote.vril-feed-quote {
    background: rgba(30,41,59,.6);
    border-left-color: rgba(124,147,251,.5);
}

.org-feed-comment-delete {
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: .5rem !important;
    padding: .25rem .65rem !important;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.org-feed-comment-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220,53,69,.25);
}
.org-feed-comment-delete .ti {
    font-size: .95rem;
}

/* Composer block */
.org-feed-comment-composer {
    margin-top: .25rem;
    padding: 1rem 1.1rem 1.15rem;
    border-radius: .75rem;
    background: linear-gradient(165deg, rgba(102,126,234,.06) 0%, rgba(118,75,162,.04) 100%);
    border: 1px solid rgba(102,126,234,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

[data-bs-theme="dark"] .org-feed-comment-composer {
    background: linear-gradient(165deg, rgba(30,41,59,.65) 0%, rgba(51,65,85,.35) 100%);
    border-color: rgba(102,126,234,.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.org-feed-comment-composer-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--secondary);
    margin-bottom: .5rem !important;
}

.org-feed-comment-input {
    min-height: 7.5rem;
    resize: vertical;
    line-height: 1.5;
    padding: .65rem .85rem;
    font-size: .9375rem;
}

.org-feed-comment-submit {
    border-radius: .55rem;
    font-weight: 600;
    padding: .45rem 1.1rem;
    box-shadow: 0 2px 10px rgba(102,126,234,.25);
    transition: transform .12s ease, box-shadow .12s ease;
}
.org-feed-comment-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(102,126,234,.35);
}

.org-feed-comment-mention-hint {
    font-size: .78rem;
    color: var(--secondary);
    margin: -.25rem 0 .5rem;
    line-height: 1.4;
}

/* @mentions — server renders <a class="vril-mention" href="/member/..."> */
.org-feed-comment-body a.vril-mention,
.org-feed-interactions .ql-editor a.vril-mention {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(102,126,234,.45);
    transition: color .15s ease, border-color .15s ease;
}

.org-feed-comment-body a.vril-mention:hover,
.org-feed-interactions .ql-editor a.vril-mention:hover {
    border-bottom-color: var(--primary);
    border-bottom-style: solid;
}

/* Reactions row — slightly richer than plain flex */
.org-feed-interactions--premium > .d-flex:first-of-type {
    padding: .35rem 0 .15rem;
}

/* Comment cards — any host (company timeline, brand card, etc.) */
.org-feed-interactions--premium ul.org-feed-comment-list > li.org-feed-comment {
    padding: .85rem 1rem;
    border-radius: .65rem;
    background: var(--card-bg);
    border: 1px solid rgba(102,126,234,.09);
    transition: background .18s, border-color .18s, box-shadow .18s;
    box-shadow: 0 0 14px -4px rgba(102,126,234,.1);
}
.org-feed-interactions--premium ul.org-feed-comment-list > li.org-feed-comment:hover {
    background: rgba(102,126,234,.06);
    border-color: rgba(102,126,234,.18);
    box-shadow: 0 0 18px -2px rgba(102,126,234,.16);
}
[data-bs-theme="dark"] .org-feed-interactions--premium ul.org-feed-comment-list > li.org-feed-comment {
    box-shadow: 0 0 16px -4px rgba(124,147,251,.12);
}
[data-bs-theme="dark"] .org-feed-interactions--premium ul.org-feed-comment-list > li.org-feed-comment:hover {
    box-shadow: 0 0 22px -2px rgba(124,147,251,.18);
}

/* ── Interaction / comment zone — visually separated from post body ─── */
.vril-cpub-post-footer .org-feed-interactions,
.vril-cpub-tl-post    .org-feed-interactions {
    margin-top: 0 !important;
    padding: .85rem 1.25rem 1rem;
    background: rgba(102,126,234,.04);
    border-top: 1px dashed rgba(102,126,234,.18) !important;
    border-radius: 0 0 1rem 1rem;
    /* soft inner + outer glow so the block reads as “comments” */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        inset 0 8px 24px -12px rgba(102,126,234,.12),
        0 0 20px -8px rgba(102,126,234,.14);
}
[data-bs-theme="dark"] .vril-cpub-post-footer .org-feed-interactions,
[data-bs-theme="dark"] .vril-cpub-tl-post    .org-feed-interactions {
    background: rgba(30,41,59,.5);
    border-top-color: rgba(102,126,234,.22) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        inset 0 8px 28px -10px rgba(124,147,251,.1),
        0 0 22px -8px rgba(124,147,251,.16);
}

/* reaction badges */
.vril-cpub-post-footer .org-feed-interactions .badge,
.vril-cpub-tl-post    .org-feed-interactions .badge {
    border-radius: 2rem !important;
    border: 1px solid rgba(102,126,234,.15) !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.vril-cpub-post-footer .org-feed-interactions .badge:hover,
.vril-cpub-tl-post    .org-feed-interactions .badge:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 10px rgba(102,126,234,.2);
}

/* comment textarea */
.org-feed-interactions textarea.org-feed-comment-input,
.vril-cpub-post-footer .org-feed-interactions textarea,
.vril-cpub-tl-post    .org-feed-interactions textarea {
    border-radius: .6rem !important;
    border-color: rgba(102,126,234,.22) !important;
    transition: border-color .18s ease, box-shadow .18s ease;
    min-height: 7.5rem;
}
.org-feed-interactions textarea.org-feed-comment-input:focus,
.vril-cpub-post-footer .org-feed-interactions textarea:focus,
.vril-cpub-tl-post    .org-feed-interactions textarea:focus {
    border-color: rgba(102,126,234,.5) !important;
    box-shadow: 0 0 0 3px rgba(102,126,234,.12) !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .vril-cpub-hero { padding: 2rem 1.25rem 1.75rem; border-radius: .9rem; }
    .vril-cpub-hero-inner { gap: 1.1rem; }
    .vril-cpub-logo-frame { width: 80px; height: 80px; }
    .vril-cpub-logo-img,
    .vril-cpub-logo-initials { width: 80px; height: 80px; font-size: 2rem; }
    .vril-cpub-hero-name { font-size: 1.5rem; }
    .vril-cpub-nav { border-radius: 0 0 .75rem .75rem; }
    .vril-cpub-nav-tab span { display: none; }
    .vril-cpub-nav-tab { padding: .5rem .75rem; }
    .vril-cpub-post-header { flex-wrap: wrap; }
    .vril-cpub-panel { padding: 1.5rem 1.1rem; }

    /* timeline on mobile — collapse aside width */
    .vril-cpub-timeline::before { left: 32px; }
    .vril-cpub-tl-aside { width: 64px; }
    .vril-cpub-tl-dot { width: 36px; height: 36px; font-size: 1rem; }
    .vril-cpub-tl-datebox { width: 56px; }
    .vril-cpub-tl-day { font-size: 1.15rem; }
    .vril-cpub-tl-monthyr { font-size: .55rem; }
    .vril-cpub-tl-item { gap: .75rem; }
}
