/**
 * vici-style.css
 *
 * VICICHAT CORE UI STYLING
 * Aesthetic: Deep Purple Glassmorphism / Futuristic Tech
 * Version: 3.0.0 - Midnight Amethyst Opaque Bubble Alternative
 * Project: Vicilook Ecosystem
 */

/* ==========================================================================
   VICILOOK CONTENT SHIELD DEFENSE BOUNDARIES
   ========================================================================== */

/* Prevent structural layout text and community data highlight scraping */
body, 
#vici-app-container, 
.vici-glass-card, 
.vici-msg-bubble,
.vici-neighbor-card {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE10+/Edge */
    user-select: none;          /* Standard UI Engine rule */
}

/* Permit text inputs and chat typing channels to capture keyboard selection naturally */
input, 
textarea, 
.vici-input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Global protection for community avatars and design assets against raw layout drags */
img, 
.vici-main-logo,
.vici-neighbor-avatar img,
.vici-chat-avatar img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none; /* Disables contextual long-press saving on touch displays */
}

/* ==========================================================================
   CORE APPLICATION THEME RULES
   ========================================================================== */

:root {
    --vici-bg: #0f0c29;
    --vici-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --vici-purple: #6c5ce7;
    --vici-neon: #a29bfe;
    --vici-neon-rgb: 162, 155, 254; 
    --vici-tag-cyan: #00d2ff;
    --vici-error: #ff7675;
    --vici-glass: rgba(255, 255, 255, 0.08);
    --vici-glass-border: rgba(255, 255, 255, 0.15);
    --vici-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* SURGICAL UPDATE: HUD Text Size adjusted to 8px */
    --vici-hud-text-size: 8px; 
}

#vici-app-container {
    font-family: 'Inter', sans-serif;
    background: var(--vici-gradient);
    min-height: 800px;
    
    /* --- SEAMLESS EDGES --- */
    border-radius: 0;
    border: none;
    box-shadow: none;
    
    padding: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- IMAGE SHIELD: THE INVISIBLE WALL --- */
.vici-img-protected-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.vici-img-protected-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(255,255,255,0);
    cursor: default;
}

.vici-no-download {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
}

/* --- PHASE 1: BRANDING & Y-AXIS ANCHOR --- */
.vici-gateway-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.vici-main-logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 50px;
    filter: drop-shadow(0 0 15px rgba(162, 155, 254, 0.5));
    flex-shrink: 0;
    transition: var(--vici-transition);
}

.vici-main-logo:hover {
    filter: drop-shadow(0 0 25px rgba(162, 155, 254, 0.8));
    transform: scale(1.02);
}

.vici-globe-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0;
}

.vici-globe-wrapper h2 {
    margin: 25px 0 12px 0;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.vici-globe-wrapper p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 320px;
    color: var(--vici-neon);
}

/* 1. GLASSMORPHISM COMPONENTS */
.vici-glass-card {
    background: var(--vici-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--vici-glass-border);
    border-radius: 30px;
    padding: 30px;
    margin: 15px auto;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
    transition: var(--vici-transition);
}

.vici-glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 2. AVATAR SCOPING & PROTECTION */
.vici-neighbor-avatar, .vici-chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--vici-neon);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
    background: #000;
    position: relative;
    box-shadow: 0 0 15px rgba(162, 155, 254, 0.2);
}

.vici-neighbor-avatar img, 
.vici-chat-avatar img,
.vici-camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3. NEIGHBOR LIST LAYOUT */
.vici-neighbor-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px;
    border-radius: 20px;
    transition: var(--vici-transition);
    cursor: pointer;
}

.vici-neighbor-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vici-neighbor-name {
    font-weight: 800;
    color: #fffff;
    font-size: 14px;
    margin-bottom: 2px;
}

.vici-neighbor-bio {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3.1. NEIGHBOR ACTIONS (BLOCK/CHAT STACK) */
.vici-neighbor-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    align-items: flex-end;
    min-width: 70px;
}

.vici-block-btn {
    background: transparent;
    color: var(--vici-error);
    border: 1px solid rgba(255, 118, 117, 0.2);
    width: 100%;
    height: 22px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--vici-transition);
    /* SURGICAL FIX: Flex Alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.vici-block-btn:hover {
    background: rgba(255, 118, 117, 0.1);
    border-color: var(--vici-error);
}

/* 4. PHASE 5: CHAT WINDOW HEADER */
.vici-chat-header {
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}

.vici-chat-avatar {
    width: 40px;
    height: 40px;
    margin-left: 10px;
}

/* 5. INPUT FIELDS & BUTTONS */
.vici-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--vici-glass-border);
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    font-size: 14px;
    margin: 10px 0;
    box-sizing: border-box;
    transition: var(--vici-transition);
}

.vici-input:focus {
    outline: none;
    border-color: var(--vici-neon);
    background: rgba(0, 0, 0, 0.4);
}
.vici-btn-primary {
    background: var(--vici-purple);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--vici-transition);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    /* SURGICAL FIX: Center Text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vici-btn-primary:active {
    transform: scale(0.98);
}


.vici-chat-btn {
    background: var(--vici-neon);
    color: #0f0c29;
    border: none;
    width: 100%;
    height: 28px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--vici-transition);
    /* SURGICAL FIX: Center Text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5.1 PHASE 5 CHAT INPUT WRAPPER & UTILITY COHESION */
.vici-utility-tube-anchor {
    padding: 0 !important;      /* Strips JavaScript inline Y-axis padding defaults */
    margin-bottom: -4px;       /* Pulls input entry panel upward to eliminate gap */
}

.vici-chat-input-wrapper {
    margin-top: 0 !important;   /* Neutralizes any baseline top margin separation */
    padding: 6px 10px 12px 10px !important; /* Optimizes micro-padding footprint */
}

/* --- LOAD MORE / PAGINATION (BRANDED) --- */
.vici-load-more-btn {
    align-self: center;
    background: rgba(162, 155, 254, 0.05);
    border: 1px solid rgba(162, 155, 254, 0.2);
    color: var(--vici-neon);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    margin: 10px auto;
    transition: var(--vici-transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vici-load-more-btn:hover {
    background: rgba(162, 155, 254, 0.15);
    border-color: var(--vici-neon);
    box-shadow: 0 0 15px rgba(162, 155, 254, 0.2);
    transform: translateY(-2px);
}

/* 6. MESSAGES & BUBBLES - SURGICAL ALIGNMENT */
.vici-chat-body {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    scroll-behavior: smooth;
}

.vici-msg-bubble {
    padding: 12px 12px;
    border-radius: 20px;
    max-width: 82%;
    min-width: 82%;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative; 
    transition: background 0.3s ease, border 0.3s ease;
    /* SURGICAL FIX: Internal stack alignment */
    display: flex;
    flex-direction: column;
}

/* --- UPDATED: Unread State (Default) - Neon Green */
.vici-msg-bubble-self {
    border-bottom: 2px solid var(--vici-neon) !important; 
    box-shadow: 0 2px 8px rgba(var(--vici-neon-rgb), 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- UPDATED: Read State (Seen) - Laser Red */
.vici-msg-bubble-self.vici-read {
    border-bottom: 2px solid #ff003c !important;
    box-shadow: 0 2px 4px rgba(255, 0, 60, 0.2);
}

/* --- 6.1 FLOATING BUBBLE ACTIONS --- */
.vici-bubble-actions {
    display: none;
    pointer-events: auto;
    touch-action: manipulation;
    position: absolute;
    top: -24px; /* Float above the bubble */
    z-index: 100000;
}

.vici-msg-bubble-self .vici-bubble-actions { right: 8px; }
.vici-msg-bubble-them .vici-bubble-actions { left: 8px; }

.vici-msg-bubble.vici-actions-open .vici-bubble-actions {
    display: flex;
    pointer-events: auto;
    animation: viciFadeIn 0.3s forwards;
}

.vici-act-column {
    display: flex;
    gap: 2px;
    background: rgba(15, 12, 41, 0.9);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--vici-neon);
    backdrop-filter: blur(5px);
    pointer-events: auto;
    position: relative;
    z-index: 100001;
}

.vici-act-btn {
    position: relative;
    z-index: 100001;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--vici-transition);
}

.vici-act-btn:hover { background: rgba(255,255,255,0.1); }
.vici-del:hover { color: var(--vici-error); }
.vici-edt:hover { color: var(--vici-purple); }
.vici-rep:hover { color: var(--vici-tag-cyan); }

/* --- SIMPLIFIED AUTO-SEEKER TRAVELING HUD --- */
.vici-traveling-overlay {
    position: absolute;
    top: 15px; 
    left: 50%;
    transform: translateX(-50%); 
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--vici-neon);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vici-neon);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    pointer-events: none;
    white-space: nowrap;
}

.vici-traveling-overlay span {
    font-size: var(--vici-hud-text-size);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
}

.vici-traveling-loader {
    width: var(--vici-hud-text-size);
    height: var(--vici-hud-text-size);
    border: 1.5px solid var(--vici-neon);
    border-top-color: transparent;
    border-radius: 50%;
    animation: viciRotate 0.6s linear infinite;
    flex-shrink: 0;
}

/* Neon Flash logic for Reply Jumps */
@keyframes viciJumpRef {
    0% { background: rgba(var(--vici-neon-rgb), 0.5); box-shadow: 0 0 20px var(--vici-neon); }
    100% { background: inherit; box-shadow: none; }
}

.vici-jump-active {
    animation: viciJumpRef 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--vici-neon) !important;
}

/* --- THE INCOMING MESSAGE SHIELD (100% OPAQUE / MIDNIGHT AMETHYST) --- */
.vici-msg-bubble-them {
    background: #22163b !important;            /* Opaque deep cyber-amethyst profile */
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(162, 155, 254, 0.25); /* Subtle cyber accent rim */
    box-shadow: 4px 4px 15px rgba(0,0,0,0.3);
    
    backdrop-filter: none !important;          /* Eliminates fuzzy glass blur behind text */
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;                     /* Force 100% solid color layout rendering */
}

.vici-msg-bubble-self {
    background: #3b338a;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.2);
}

/* --- REPLY & MENTION --- */
.vici-reply-context {
    display: block;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border-left: 3px solid var(--vici-purple);
    opacity: 0.9;
    cursor: pointer;
    transition: background 0.2s ease;
    /* Ensure it occupies full internal width */
    width: 100%;
    box-sizing: border-box;
}

.vici-reply-context:hover {
    background: rgba(0, 0, 0, 0.45);
}

.vici-reply-sender {
    font-weight: 900;
    color: var(--vici-neon);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    text-transform: uppercase;
}

.vici-glow-mention {
    color: var(--vici-tag-cyan);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
    cursor: pointer;
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}

.vici-glow-mention:hover {
    text-shadow: 0 0 15px var(--vici-tag-cyan);
}

/* 7. GLOBE & CAMERA (ATMOSPHERIC BLOOM) */
.vici-css-globe {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 30% 30%, var(--vici-neon), var(--vici-purple)) !important;
    margin: 0 auto !important;
    position: relative !important;
    overflow: visible !important; 
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.4) !important;
    transition: var(--vici-transition) !important;
    -webkit-tap-highlight-color: transparent;
}

#vici-trigger-gps.vici-glow-active {
    box-shadow: 0 0 50px var(--vici-neon), 0 0 100px var(--vici-purple) !important;
    animation: viciNeonBloom 1.2s ease-in-out infinite alternate !important;
}

#vici-trigger-gps.vici-glow-active .vici-spinner {
    filter: brightness(2) drop-shadow(0 0 10px white) !important;
    animation: viciRotate 20s linear infinite, viciPulseScale 1.2s ease-in-out infinite alternate !important;
}

@keyframes viciNeonBloom {
    0% {
        box-shadow: 0 0 30px var(--vici-neon), 0 0 60px var(--vici-purple) !important;
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 60px var(--vici-neon), 0 0 120px var(--vici-purple), 0 0 150px rgba(162, 155, 254, 0.4) !important;
        transform: scale(1.05);
    }
}

@keyframes viciPulseScale {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.vici-spinner {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    pointer-events: none;
    animation: viciRotate 20s linear infinite !important;
}

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

.vici-camera-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 4px solid var(--vici-purple);
    overflow: hidden;
    background: #000;
}

/* 8. SCROLLBARS - TECH AESTHETIC */
.vici-chat-body::-webkit-scrollbar { width: 4px; }
.vici-chat-body::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.vici-chat-body::-webkit-scrollbar-thumb { 
    background: var(--vici-purple); 
    border-radius: 10px; 
}

/* 9. UTILITY */
.vici-fade-in { animation: viciFadeIn 0.5s forwards; }
@keyframes viciFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vici-hidden { display: none !important; }

/* 10. PHASE 4 NEIGHBOR LIST - MESH SCROLL FIX */
.vici-phase-4-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    overflow: hidden !important;
    box-sizing: border-box;
}

.vici-search-container {
    flex-shrink: 0;
    padding: 15px;
    z-index: 10;
}

#vici-neighbors-grid {
    flex: 1 !important; 
    overflow-y: auto !important;
    padding: 0 15px 20px 15px;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#vici-neighbors-grid .vici-glass-card {
    margin: 0 !important;
}

#vici-neighbors-grid::-webkit-scrollbar { width: 3px; }
#vici-neighbors-grid::-webkit-scrollbar-track { background: transparent; }
#vici-neighbors-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@media (max-width: 600px) {
    /* Maintained square edges on mobile for seamless integration */
    #vici-app-container { padding: 15px; border-radius: 0; } 
    .vici-glass-card { padding: 20px; }
    .vici-main-logo { max-width: 140px; margin-bottom: 30px; }
    .vici-css-globe { 
        width: 150px !important; 
        height: 150px !important; 
    }
    .vici-globe-wrapper h2 { font-size: 1.5rem; }
    .vici-chat-body { max-height: 360px; }
}

/* --- SENT / SEEN STATUS INDICATOR --- */
.vici-msg-bubble-self::after { content: "SENT"; font-size: 8px; font-weight: 900; color: #888888; position: absolute; bottom: 6px; right: 12px; letter-spacing: 0.5px; opacity: 0.7; }
.vici-msg-bubble-self.vici-read::after { content: "SEEN"; color: #888888; }
/* --- DO MORE / APP INFO EXTENSIONS (2.7.9) --- */
.vici-page-pills {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-content:flex-start;
}
.vici-page-pill {
    appearance:none;
    border:1px solid rgba(0,255,204,.38);
    background:linear-gradient(135deg, rgba(0,255,204,.12), rgba(0,140,255,.10));
    color:#fff;
    border-radius:999px;
    padding:7px 11px;
    min-height:30px;
    font:800 10px/1.1 Inter, sans-serif;
    letter-spacing:.65px;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:0 4px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.vici-page-pill:hover,
.vici-page-pill:focus-visible {
    transform:translateY(-1px);
    border-color:var(--vici-neon);
    outline:none;
}
.vici-page-content-modal {
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    z-index:2147483647;
    display:none;
    overflow:hidden;
    box-sizing:border-box;
}

/* APP INFO: full adaptive screen with independently scrollable page content */
.vici-app-info-phase {
    min-height:100%;
    min-height:100dvh;
    height:100%;
    height:100dvh;
    min-width:0;
    overflow:hidden;
    box-sizing:border-box;
}

#vici-app-info-pages {
    min-height:0;
    min-width:0;
    overflow-y:auto !important;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    flex:1 1 auto !important;
}

.vici-page-content-dialog {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    min-width:0;
    min-height:0;
    margin:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    border-radius:0;
}

.vici-page-content-modal.is-open {
    display:block;
}
.vici-page-content-backdrop {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.62);
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
}
.vici-page-content-dialog {
    background:linear-gradient(145deg, rgba(20,30,42,.94), rgba(5,12,20,.94));
    border:1px solid rgba(0,255,204,.28);
    border-radius:0;
    box-shadow:0 18px 55px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter:blur(22px) saturate(125%);
    -webkit-backdrop-filter:blur(22px) saturate(125%);
}
.vici-page-content-close {
    position:absolute;
    top:8px;
    right:9px;
    width:30px;
    height:30px;
    border:1px solid rgba(255,255,255,.2);
    border-radius:9px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:22px;
    line-height:26px;
    cursor:pointer;
    z-index:2;
}
.vici-page-content-title {
    flex-shrink:0;
    padding:16px 48px 12px 15px;
    color:var(--vici-neon);
    font:900 13px/1.25 Inter, sans-serif;
    letter-spacing:1px;
    text-transform:uppercase;
    border-bottom:1px solid rgba(255,255,255,.08);
}
.vici-page-content-body {
    flex:1;
    min-height:0;
    overflow-y:auto;
    padding:15px;
    color:rgba(255,255,255,.9);
    font:400 12px/1.65 Inter, sans-serif;
    overflow-wrap:anywhere;
}
.vici-page-content-body h1,
.vici-page-content-body h2,
.vici-page-content-body h3,
.vici-page-content-body h4 {
    color:#fff;
    margin:0 0 10px;
}
.vici-page-content-body a {
    color:var(--vici-neon);
}
.vici-page-content-body img {
    max-width:100%;
    height:auto;
    border-radius:10px;
}
.vici-page-content-body table {
    width:100%;
    max-width:100%;
    border-collapse:collapse;
}
.vici-page-content-body th,
.vici-page-content-body td {
    border:1px solid rgba(255,255,255,.12);
    padding:6px;
}
body.vici-page-modal-open {
    overflow:hidden;
}

/* PHASE 2 TERMS CONSENT + FULLSCREEN TERMS MODAL */
.vici-terms-consent {
    margin-top:10px;
    color:rgba(255,255,255,.72);
    font:400 9px/1.35 Inter, sans-serif;
    text-align:center;
}
.vici-terms-link {
    color:#fff;
    text-decoration:underline;
    text-underline-offset:2px;
    cursor:pointer;
}
.vici-terms-modal {
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    z-index:2147483647;
    display:none;
    overflow:hidden;
}
.vici-terms-modal.is-open { display:block; }
.vici-terms-backdrop {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.82);
}
.vici-terms-dialog {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background:#fff;
    overflow:hidden;
}
.vici-terms-frame {
    display:block;
    width:100%;
    height:100%;
    border:0;
    background:#fff;
}
.vici-terms-close {
    position:absolute;
    top:10px;
    right:10px;
    z-index:3;
    width:34px;
    height:34px;
    padding:0;
    border:1px solid rgba(0,0,0,.18);
    border-radius:50%;
    background:rgba(255,255,255,.96);
    color:#111;
    font:400 24px/31px Arial, sans-serif;
    text-align:center;
    cursor:pointer;
    box-shadow:0 2px 12px rgba(0,0,0,.22);
}
body.vici-terms-modal-open { overflow:hidden; }

/* ViciChat WebRTC Calls v1 */
.vici-call-controls{display:flex;gap:2px;box-sizing:border-box;margin:2px 0 0}.vici-call-controls .vici-call-btn{flex:1;min-width:0;height:100%;padding:0;border:1px solid var(--vici-neon,#00ffcc);border-radius:7px;background:rgba(0,0,0,.28);color:var(--vici-neon,#00ffcc);font-size:13px;font-weight:900;line-height:1;cursor:pointer}.vici-call-controls .vici-call-btn:active{transform:scale(.97)}
#vici-call-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.78);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:18px;box-sizing:border-box}.vici-call-panel{width:min(430px,96vw);border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(20,20,24,.94);box-shadow:0 18px 60px rgba(0,0,0,.55);padding:18px;text-align:center;color:#fff}.vici-call-title{font-size:11px;font-weight:900;letter-spacing:2px;color:var(--vici-neon,#00ffcc)}.vici-call-peer{margin-top:8px;font-size:17px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vici-call-status{margin-top:6px;font-size:10px;font-weight:800;opacity:.78;letter-spacing:1px}.vici-call-videos{position:relative;margin-top:14px;min-height:190px;overflow:hidden;border-radius:14px;background:#000}.vici-call-remote{display:block;width:100%;height:300px;object-fit:cover;background:#000}.vici-call-local{position:absolute;right:10px;bottom:10px;width:105px;height:145px;object-fit:cover;border:1px solid rgba(255,255,255,.4);border-radius:10px;background:#111}.vici-call-actions{display:flex;gap:8px;margin-top:14px}.vici-call-actions button{flex:1;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-size:10px;font-weight:900;cursor:pointer}.vici-call-actions .vici-call-accept{border-color:var(--vici-neon,#00ffcc);color:var(--vici-neon,#00ffcc)}.vici-call-actions .vici-call-reject,.vici-call-actions .vici-call-end{border-color:#ff3366;color:#ff6688}@media(max-width:480px){.vici-call-panel{padding:14px}.vici-call-remote{height:250px}.vici-call-local{width:88px;height:120px}}

/* ViciChat compact Phase 5 call controls: MUTE on top, calls below. */
.vici-call-stack{
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
    margin:2px 0 0!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
}
.vici-call-stack .vici-call-mute-slot{
    width:100%!important;
    height:26px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-sizing:border-box!important;
}
.vici-call-stack .vici-call-mute-slot > button,
.vici-call-stack .vici-call-mute-slot > .vici-pill{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:26px!important;
    min-height:26px!important;
    margin:0!important;
    padding:0 6px!important;
    box-sizing:border-box!important;
}
.vici-call-stack .vici-call-controls{
    width:100%!important;
    height:26px!important;
    min-height:26px!important;
    display:flex!important;
    gap:2px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
}
.vici-call-stack .vici-call-controls .vici-call-btn{
    flex:1 1 50%!important;
    width:50%!important;
    min-width:0!important;
    max-width:50%!important;
    height:26px!important;
    min-height:26px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(0,255,204,.55)!important;
    border-radius:6px!important;
    background:rgba(0,0,0,.22)!important;
    color:var(--vici-neon,#00ffcc)!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:24px!important;
    box-sizing:border-box!important;
}


/* ViciChat WebRTC Calls v2 */
#vici-call-overlay{z-index:2147483647;touch-action:manipulation}
#vici-call-overlay .vici-call-panel{width:min(520px,96vw);max-height:94vh;overflow:auto}
#vici-call-overlay .vici-call-status{min-height:28px;display:flex;align-items:center;justify-content:center;line-height:1.35}
#vici-call-overlay .vici-call-videos{min-height:220px;display:flex;align-items:center;justify-content:center}
#vici-call-overlay .vici-call-remote{height:min(62vh,420px);min-height:220px;object-fit:cover}
#vici-call-overlay .vici-call-local{z-index:3}
#vici-call-overlay .vici-call-audio-indicator{font-size:16px;font-weight:900;letter-spacing:1px;opacity:.95;padding:30px}
#vici-call-overlay .vici-call-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#vici-call-overlay .vici-call-actions button{min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#vici-call-overlay .vici-call-actions .vici-call-end,#vici-call-overlay .vici-call-actions .vici-call-reject{grid-column:auto}
#vici-call-overlay .vici-call-actions button:disabled{opacity:.45}
@media(max-width:560px){
  #vici-call-overlay{padding:8px}
  #vici-call-overlay .vici-call-panel{width:100%;padding:12px;border-radius:16px}
  #vici-call-overlay .vici-call-remote{height:55vh;min-height:220px}
  #vici-call-overlay .vici-call-local{width:86px;height:116px;right:8px;bottom:8px}
  #vici-call-overlay .vici-call-actions{grid-template-columns:1fr 1fr}
  #vici-call-overlay .vici-call-actions .vici-call-end{grid-column:1/-1}
}


/* ViciChat verified-user badge */
.vici-verified-avatar-wrap { position: relative !important; overflow: visible !important; }
.vici-verified-badge {
    position: absolute !important;
    right: -1px !important;
    bottom: -1px !important;
    width: 16.8px !important;
    height: 16.8px !important;
    min-width: 16.8px !important;
    min-height: 16.8px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #19c75b !important;
    color: #fff !important;
    border: 2px solid #050505 !important;
    font: 900 10.5px/16.8px Arial, sans-serif !important;
    z-index: 20 !important;
    box-shadow: 0 1px 5px rgba(0,0,0,.45) !important;
    pointer-events: none !important;
}
.vici-verified-badge::before { content: ''; display: block; width: 6px; height: 3.5px; border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(-45deg) translate(0.2px, -0.3px); transform-origin: center; box-sizing: border-box; }


/* ==========================================================================
   VICI CALL PORTAL HARDENING
   Calls are mounted at the document root, outside the application viewport.
   This prevents the Phase-5 DOM/overflow/stacking contexts from covering the
   incoming/outgoing call surface, especially inside Android WebView.
   ========================================================================== */
#vici-call-overlay[data-vici-call-portal="1"] {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: auto !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    transform: none !important;
    filter: none !important;
    contain: none !important;
    box-sizing: border-box !important;
    touch-action: manipulation !important;
}
#vici-call-overlay[data-vici-call-portal="1"] .vici-call-panel {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-sizing: border-box !important;
}
#vici-call-overlay[data-vici-call-portal="1"] button {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

/* ViciChat WebRTC remote media output */
#vici-call-overlay .vici-call-remote-audio{position:absolute;width:1px;height:1px;left:-9999px;top:auto;opacity:0;pointer-events:none}
#vici-call-overlay .vici-call-enable-audio{border-color:#00ffcc;color:#00ffcc}
