/* Nulvexor Design System - Premium Dark Theme */

:root {
    --bg-primary: #000000;
    --bg-secondary: #030303;
    --bg-tertiary: #060606;
    --border-subtle: rgba(255, 255, 255, 0.02);
    --text-primary: #ffffff;
    --text-secondary: #7e8491;
    --accent-blue: #6366f1;
    --accent-blue-hover: #4f46e5;
    --accent-blue-dark: #4338ca;
    --accent-gradient: linear-gradient(135deg, #6366f1, #818cf8, #a5b4fc);
    --glass-bg: rgba(0, 0, 0, 0.9);
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hover-shadow-transition: box-shadow 560ms cubic-bezier(0.22, 1, 0.36, 1), border-color 520ms cubic-bezier(0.22, 1, 0.36, 1), background-color 460ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
    --hover-glow: 0 12px 30px rgba(0, 0, 0, 0.58), 0 0 18px rgba(99, 102, 241, 0.18), 0 0 42px rgba(99, 102, 241, 0.12);
    --hover-glow-strong: 0 16px 38px rgba(0, 0, 0, 0.62), 0 0 24px rgba(99, 102, 241, 0.24), 0 0 56px rgba(79, 70, 229, 0.16);
    --hover-transform: translateY(-4px) scale(1.01);
}

.transition-preset {
    transition: var(--transition-standard);
}

/* Base Body Styles */
html, body {
    background-color: var(--bg-primary) !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
    margin: 0;
}

/* Aggressive Override for all Dark Backgrounds */
[class*="bg-dark"], [class*="bg-[#"], .glass-panel, body .nav-glass, main {
    background-color: var(--bg-primary) !important;
    background: var(--bg-primary) !important;
}

/* Grid Background */
.grid-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Radial Glow */
.radial-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    will-change: transform, opacity;
}

/* Glass Panel / Cards */
.glass-panel {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(99, 102, 241, 0.04);
    transition: var(--hover-shadow-transition), color 260ms ease;
}

.glass-panel:hover {
    transform: var(--hover-transform) !important;
    background-color: #0d0d12 !important;
    color: white !important;
    background-color: #15151e !important; /* Lighter "box" background */
    border-color: var(--accent-blue) !important;
    box-shadow: var(--hover-glow-strong) !important;
}

/* Permanent Glow State for Active Cards */
.active-card {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(99, 102, 241, 0.14) !important;
}

.active-card:hover {
    border-color: var(--accent-blue) !important;
    box-shadow: var(--hover-glow) !important;
}

.glass-panel:hover *:not(.bg-icon-container, .bg-icon-container *, p) {
    color: white !important;
    opacity: 1 !important;
}

.glass-panel:hover .w-12.h-12 {
    background-color: rgba(99, 102, 241, 0.3) !important; /* 50% lighter than 0.1 */
}

.glass-panel:hover .w-12.h-12 svg {
    color: white !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.glass-panel:hover h3 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Access Grid Action Cards */
.action-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 18px;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(99, 102, 241, 0.12);
    transition: var(--hover-shadow-transition), color 260ms ease;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 420px;
    color: #f5f7ff;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(130deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.15));
    opacity: 0.25;
    filter: blur(14px);
    z-index: -1;
}

.action-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 24px rgba(99, 102, 241, 0.22), 0 0 46px rgba(99, 102, 241, 0.14);
}

.action-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.action-chip--new { border-color: rgba(99, 102, 241, 0.4); color: #cbd5ff; }
.action-chip--join { border-color: rgba(16, 185, 129, 0.4); color: #bbf7d0; }
.action-chip--link { border-color: rgba(99, 102, 241, 0.35); color: #c7d2fe; }

.action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e0e7ff;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.action-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.action-sub {
    color: #c0c6d8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.action-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.action-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.metric-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.metric-pill .label {
    color: #a6aec3;
    letter-spacing: 0.08em;
}

.metric-pill .value {
    color: #f8f9ff;
    font-weight: 700;
}

.action-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #d1d6e5;
    letter-spacing: 0.03em;
}

.action-input {
    background: rgba(8, 9, 14, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    transition: var(--transition-standard) !important;
}

.action-input:focus {
    border-color: rgba(99, 102, 241, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

.input-error {
    border-color: rgba(239, 68, 68, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.action-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.action-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-standard);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

.action-btn--primary {
    background: #0b0b12;
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25), 0 12px 28px rgba(0, 0, 0, 0.55);
}

.action-btn--secondary {
    background: #0b0b12;
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.3), 0 12px 28px rgba(0, 0, 0, 0.55);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 26px rgba(99, 102, 241, 0.18);
}

.action-btn:active {
    transform: translateY(0);
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 2rem;
    transition: var(--transition-standard);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3) !important;
    background: rgba(99, 102, 241, 0.03) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.05);
}

.feature-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    transition: var(--transition-standard);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typography */
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

h1, h2, h3, h4 {
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

/* Navbar */
.nav-height {
    height: 80px;
}

.nav-glass {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border) !important;
    transition: var(--transition-standard);
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #dbe4ff;
    transition: var(--transition-standard);
}

.mobile-nav-toggle:hover {
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(99, 102, 241, 0.25);
}

.mobile-nav-drawer {
    position: fixed;
    top: 70px;
    right: 14px;
    width: min(260px, 80vw);
    background: rgba(5, 5, 8, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(99, 102, 241, 0.2);
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 60;
}

.mobile-nav-drawer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #dbe4ff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-standard);
}

.mobile-nav-drawer a:hover {
    border-color: rgba(99, 102, 241, 0.45);
    color: #ffffff;
}

.mobile-nav-drawer.active {
    display: flex;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50;
    display: none;
}

.mobile-nav-backdrop.active {
    display: block;
}

.mobile-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
}

.mobile-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #dbe4ff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    transition: var(--transition-standard);
}

/* Guide mobile nav drawer reuse */
.guide-view .mobile-nav-toggle {
    display: inline-flex;
}
.guide-view .mobile-nav-drawer a:first-child {
    margin-top: 0.5rem;
}

.mobile-toolbar button:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(99, 102, 241, 0.25);
    color: #ffffff;
}

.mobile-toolbar svg {
    width: 18px;
    height: 18px;
}

/* Disable all mobile menu elements */
.mobile-nav-toggle {
    display: none !important;
}

.mobile-nav-drawer {
    display: none !important;
}

.mobile-nav-drawer.active {
    display: none !important;
}

.mobile-nav-backdrop {
    display: none !important;
}

.mobile-nav-backdrop.active {
    display: none !important;
}

.mobile-toolbar {
    display: none !important;
}

.guide-view .mobile-nav-toggle {
    display: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(5, 5, 8, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.nav-link {
    position: relative;
    font-weight: 600;
    color: #d9e1ff;
    letter-spacing: 0.01em;
    padding: 8px 10px;
    border-radius: 10px;
    transition: var(--transition-standard);
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.08));
    opacity: 0;
    transition: var(--transition-standard);
    z-index: -1;
}

.nav-link:hover::after,
.nav-link--active::after {
    opacity: 1;
}

.nav-link--active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #dbe4ff;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: var(--transition-standard);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff;
}

.nav-cta--icon {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
}

.nav-cta--icon svg {
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn-primary {
    background: var(--bg-tertiary) !important;
    color: #ffffff !important;
    border: 2px solid rgba(99, 102, 241, 0.9) !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), inset 0 0 12px rgba(99, 102, 241, 0.2) !important;
    padding: 0.75rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-standard);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: var(--hover-transform) !important;
    background-color: #1e1e2d !important;
    color: #ffffff !important;
    border-color: #a5b4fc !important;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4), inset 0 0 15px rgba(99, 102, 241, 0.2) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: var(--bg-tertiary) !important;
    color: #ffffff !important;
    border: 2px solid rgba(99, 102, 241, 0.9) !important;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), inset 0 0 12px rgba(99, 102, 241, 0.2) !important;
    transition: var(--transition-standard) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Secondary hover is combined with primary for consistency */

/* Links and Interactive Elements */
a {
    transition: var(--transition-standard);
}

a:hover {
    color: #818cf8 !important;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* Inputs */
input, select {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: var(--transition-standard) !important;
    outline: none !important;
    caret-color: var(--accent-blue) !important;
}

input:focus, select:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Chat Styles */
#secretChatPanel {
    background: var(--bg-primary) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    transition: var(--hover-shadow-transition), color 260ms ease;
}

#secretChatPanel:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.75), 0 0 24px rgba(99, 102, 241, 0.16), 0 0 42px rgba(99, 102, 241, 0.08);
}

.message-bubble, [id^="msg-"] .p-4 {
    border-radius: 18px !important;
    transition: var(--transition-standard) !important;
}

[id^="msg-"] .p-4:hover {
    transform: scale(1.01) translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.1);
}

.reveal-trigger, .inline-confirm-btn {
    transition: var(--transition-standard) !important;
}

.reveal-trigger:hover, .inline-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.rehide-trigger:hover {
    color: var(--accent-blue) !important;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.message-mine {
    background: transparent !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.05);
}

.message-other {
    background: transparent !important;
    border: 1px solid var(--border-subtle) !important;
}

/* Sidebar & Agent List */
aside#mobileSidebar, #mobileSidebar > div {
    background: var(--bg-primary) !important;
    border-right: 1px solid var(--border-subtle) !important;
}

#agentsList > div {
    transition: var(--hover-shadow-transition), color 260ms ease;
    cursor: default;
}

#agentsList > div:hover {
    transform: translateX(6px);
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: -2px 0 0 rgba(99, 102, 241, 0.85), -12px 0 22px rgba(99, 102, 241, 0.2);
}

/* Utility Overrides */
.bg-purple-500\/5, .bg-purple-500\/10, .bg-\[\#16161a\], .bg-\[\#111114\] {
    background-color: var(--bg-primary) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Chat Search & Reveal Inputs */
.inline-key-input {
    background: var(--bg-tertiary) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
}

.reveal-trigger, .inline-confirm-btn {
    font-size: 9px !important;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: #ffffff !important;
    font-weight: 700 !important;
}

.reveal-trigger:hover, .inline-confirm-btn:hover {
    background: var(--accent-blue) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Compact chat bubbles (WhatsApp-inspired) */
.msg-bubble {
    position: relative;
    width: fit-content;
    max-width: min(86vw, 520px);
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 6, 12, 0.68);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(99, 102, 241, 0.08);
}

.msg-bubble-mine {
    background: rgba(8, 10, 18, 0.82);
    border-color: rgba(99, 102, 241, 0.32);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65), 0 0 22px rgba(99, 102, 241, 0.2);
}

.msg-body {
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg-footer {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.burn-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 10px;
    background: rgba(255, 111, 0, 0.12);
    border: 1px solid rgba(255, 111, 0, 0.22);
    color: #f6ad55;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.burn-badge-sm .emoji {
    font-size: 12px;
}

.cipher-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cipher-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d7def7;
    text-transform: uppercase;
}

.cipher-label {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #e0e7ff;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.cipher-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cipher-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    min-width: 120px;
    max-width: 260px;
    word-break: break-word;
}

.cipher-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cipher-inline-input {
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #f8f9fb;
    font-size: 12px;
    width: 120px;
}

.cipher-decrypt-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent !important;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.cipher-decrypt-btn:hover,
.cipher-decrypt-btn:focus {
    outline: none;
    background: transparent !important;
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.32), 0 12px 22px rgba(0, 0, 0, 0.45);
}

.rehide-trigger {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 640px) {
    .msg-bubble {
        max-width: 96vw;
    }

    .cipher-line {
        align-items: flex-start;
    }

    .cipher-action {
        width: 100%;
        justify-content: flex-start;
    }

    .cipher-inline-input {
        width: 140px;
    }

    #messagesArea {
        padding: 14px !important;
    }

    #secretChatPanel {
        border-radius: 14px !important;
        padding: 14px !important;
    }

    #secretMessageForm input {
        height: 52px !important;
    }

    body.room-view {
        padding-bottom: 84px; /* space for mobile toolbar */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .hero-title {
        font-size: clamp(2.4rem, 7vw, 3rem);
    }

    .glass-panel {
        padding: 16px !important;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .action-card {
        padding: 16px;
        min-height: 0;
        gap: 8px;
    }

    .action-metrics {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-input {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    .action-btn {
        height: 44px;
        font-size: 12px;
    }

    table {
        font-size: 13px;
    }
}

/* Animation Keyframes */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

/* Enhanced Background Glows */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* GPU acceleration for all transitions */
* {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}


/* Global Theme Safety Net - Mapping Legacy Accents to Electric Indigo */
.text-purple-400, .text-purple-500 { color: var(--accent-blue) !important; }
.bg-purple-500, .bg-purple-600 { background-color: var(--accent-blue) !important; }
.bg-purple-500\/5, .bg-purple-500\/10, .bg-purple-500\/20 { background-color: rgba(99, 102, 241, 0.1) !important; }
.border-purple-500\/20, .border-purple-500\/30, .focus\:border-purple-500\/50:focus { border-color: rgba(99, 102, 241, 0.3) !important; }
.shadow-purple-500\/20 { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2) !important; }

/* Custom Notification Toast */
.nulv-notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.nulv-notification {
    min-width: 300px;
    max-width: 400px;
    background: rgba(11, 11, 15, 0.8) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.1) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease !important;
    opacity: 0;
    pointer-events: auto;
    cursor: default;
}

.nulv-notification:hover {
    transform: scale(1.04) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2) !important;
    filter: brightness(1.2);
}

.nulv-notif-error:hover {
    border-color: rgba(239, 68, 68, 0.8) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

.nulv-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Inline Floating Tooltip Notification */
.nulv-inline-notification {
    position: absolute !important;
    bottom: calc(100% - 15px) !important; /* Contextual float above input area */
    top: auto !important;
    left: 20px !important;
    right: 20px !important;
    transform: translateY(-20px) !important; /* Start from above */
    min-width: 0 !important;
    width: auto !important;
    z-index: 100 !important;
    padding: 12px 20px !important;
    pointer-events: auto !important;
    background: rgba(18, 18, 24, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 
                0 0 30px rgba(245, 158, 11, 0.15),
                inset 0 0 15px rgba(245, 158, 11, 0.05) !important;
    border-radius: 12px !important;
    opacity: 0 !important;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
    display: flex !important;
    align-items: center;
    gap: 14px;
    animation: notification-tech-pulse 4s infinite alternate ease-in-out;
}

/* Color-Coded Wave Animations */
.nulv-inline-notification.nulv-notif-success { animation: notification-wave-green 3s infinite alternate ease-in-out; }
.nulv-inline-notification.nulv-notif-info { animation: notification-wave-blue 3s infinite alternate ease-in-out; }
.nulv-inline-notification.nulv-notif-error { animation: notification-wave-red 3s infinite alternate ease-in-out; }
.nulv-inline-notification.nulv-notif-warning { animation: notification-wave-amber 3s infinite alternate ease-in-out; }

@keyframes notification-wave-green {
    0% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(16, 185, 129, 0.1), inset 0 0 10px rgba(16, 185, 129, 0.05); }
    100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 45px rgba(16, 185, 129, 0.35), inset 0 0 20px rgba(16, 185, 129, 0.15); }
}

@keyframes notification-wave-blue {
    0% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(59, 130, 246, 0.1), inset 0 0 10px rgba(59, 130, 246, 0.05); }
    100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 45px rgba(59, 130, 246, 0.35), inset 0 0 20px rgba(59, 130, 246, 0.15); }
}

@keyframes notification-wave-red {
    0% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(239, 68, 68, 0.1), inset 0 0 10px rgba(239, 68, 68, 0.05); }
    100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 45px rgba(239, 68, 68, 0.35), inset 0 0 20px rgba(239, 68, 68, 0.15); }
}

@keyframes notification-wave-amber {
    0% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(245, 158, 11, 0.1), inset 0 0 10px rgba(245, 158, 11, 0.05); }
    100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 45px rgba(245, 158, 11, 0.35), inset 0 0 20px rgba(245, 158, 11, 0.15); }
}

/* Tooltip Arrow - Positioned at the bottom */
.nulv-inline-notification::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px; /* Aligned to the left side like the 'Encryption Key' label */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(245, 158, 11, 0.6);
}

.nulv-inline-notification.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nulv-inline-notification.show:hover {
    transform: translateY(0) scale(1.04) !important;
    filter: brightness(1.2);
}

.nulv-notif-error.show, .animate-shake {
    animation: error-shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    10%, 90% { transform: translateX(-4px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-2px); }
    40%, 60% { transform: translateX(2px); }
}

/* Nuclear Auth Fail Effect - Must override everything */
.auth-fail-effect, 
input.auth-fail-effect, 
input.auth-fail-effect:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6) !important;
    outline: none !important;
}

.auth-fail-btn {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4) !important;
}

.nulv-inline-notification .nulv-icon-box {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.nulv-inline-notification .nulv-notif-title {
    font-size: 9px;
    margin-bottom: 0;
}

.nulv-inline-notification .nulv-notif-msg {
    font-size: 11px;
}

.nulv-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.nulv-notif-error .nulv-icon-box { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.nulv-notif-warning .nulv-icon-box { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.nulv-notif-success .nulv-icon-box { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.nulv-notif-info .nulv-icon-box { background: rgba(99, 102, 241, 0.1); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.2); }

.nulv-notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nulv-notif-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3px;
    font-family: 'Inter', sans-serif !important;
    color: rgba(255, 255, 255, 0.6);
}

.nulv-notif-msg {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    font-family: 'Inter', sans-serif !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nulv-notif-error { border-color: rgba(239, 68, 68, 0.4) !important; }
.nulv-notif-warning { border-color: rgba(245, 158, 11, 0.5) !important; }
.nulv-notif-success { border-color: rgba(16, 185, 129, 0.4) !important; }

/* Micro-animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* High-Level Professional Alerts */
.error-container {
    margin-top: 1.25rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nulv-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ef4444;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(239, 68, 68, 0.05);
    animation: alert-pop-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.nulv-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
}

@keyframes alert-pop-shake {
    0% { transform: scale(0.9) translateY(10px); opacity: 0; }
    20% { transform: scale(1.02) translateY(0); opacity: 1; }
    30% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    70% { transform: translateX(-2px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.hidden {
    display: none !important;
}

/* ============================================================
    NULVEXOR PREMIUM AMBIENT GLOW SYSTEM (Cyberpunk / Enterprise-Grade)
   ============================================================ */

@property --glow-primary {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(0, 102, 255, 0.12);
}

@property --glow-secondary {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(30, 144, 255, 0.08);
}

@property --glow-primary-soft {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(0, 102, 255, 0.08);
}

@property --glow-secondary-soft {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(30, 144, 255, 0.06);
}

:root {
    /* Base theme alignment - Dark Navy/Black */
    --glow-bg-app: #05070f;
    
    /* Core Glow Colors (Idle State) - Professional Deep Blues */
    --glow-idle-primary: rgba(0, 102, 255, 0.12);   /* #0066ff */
    --glow-idle-secondary: rgba(30, 144, 255, 0.08); /* #1e90ff */
    --glow-idle-primary-soft: rgba(0, 102, 255, 0.08);
    --glow-idle-secondary-soft: rgba(30, 144, 255, 0.06);
    --glow-primary: var(--glow-idle-primary);
    --glow-secondary: var(--glow-idle-secondary);
    --glow-primary-soft: var(--glow-idle-primary-soft);
    --glow-secondary-soft: var(--glow-idle-secondary-soft);
    
    /* Animation Timing */
    --glow-transition: 1.85s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-color-transition: 2.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* State Modifiers */
.glow-ambient-wrapper.state-sending {
    --glow-primary: rgba(59, 130, 246, 0.19);   /* #3b82f6 - Electric Blue */
    --glow-secondary: rgba(29, 78, 216, 0.11);  /* #1d4ed8 - Deep Blue */
    --glow-primary-soft: rgba(59, 130, 246, 0.09);
    --glow-secondary-soft: rgba(29, 78, 216, 0.07);
}

.glow-ambient-wrapper.state-receiving {
    --glow-primary: rgba(16, 185, 129, 0.19);   /* #10b981 - Secure Green */
    --glow-secondary: rgba(5, 150, 105, 0.11);  /* #059669 - Deep Green */
    --glow-primary-soft: rgba(16, 185, 129, 0.09);
    --glow-secondary-soft: rgba(5, 150, 105, 0.07);
}

.glow-ambient-wrapper.state-error {
    --glow-primary: rgba(239, 68, 68, 0.19);    /* #ef4444 - Alert Red */
    --glow-secondary: rgba(185, 28, 28, 0.11);  /* #b91c1c - Deep Red */
    --glow-primary-soft: rgba(239, 68, 68, 0.09);
    --glow-secondary-soft: rgba(185, 28, 28, 0.07);
}

.glow-ambient-wrapper.state-warning {
    --glow-primary: rgba(245, 158, 11, 0.18);   /* #f59e0b - Amber */
    --glow-secondary: rgba(217, 119, 6, 0.1);   /* #d97706 - Deep Amber */
    --glow-primary-soft: rgba(245, 158, 11, 0.08);
    --glow-secondary-soft: rgba(217, 119, 6, 0.06);
}

/* 
  Option 3 (RECOMMENDED): Combined Inset + Halo Flow
  This provides the most cinematic, immersive atmosphere without heavy blurring.
  It uses a layered inset shadow combined with an animated radial gradient.
*/

.glow-ambient-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    transition:
        opacity var(--glow-transition),
        --glow-primary var(--glow-color-transition),
        --glow-secondary var(--glow-color-transition),
        --glow-primary-soft var(--glow-color-transition),
        --glow-secondary-soft var(--glow-color-transition);
}

/* Layer 1: The structured, subtle frame (Vignette) */
.glow-ambient-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: 
        inset 0 0 210px var(--glow-primary-soft),
        inset 0 0 138px var(--glow-primary),
        inset 0 0 72px var(--glow-secondary);
    opacity: 0.7;
    filter: blur(1.4px);
    animation: breathing-inset 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transition: box-shadow var(--glow-color-transition), opacity var(--glow-transition), filter var(--glow-transition), transform var(--glow-transition);
}

/* Layer 2: The flowing, radial ambient backdrop */
.glow-ambient-wrapper::after {
    content: '';
    position: absolute;
    /* Expanded footprint for smooth liquid flow across the screen */
    inset: -170px;
    background: radial-gradient(
        ellipse at 50% 50%,
        transparent 52%,
        transparent 68%,
        var(--glow-primary-soft) 78%,
        var(--glow-primary) 89%,
        var(--glow-secondary-soft) 95%,
        var(--glow-secondary) 100%
    );
    background-size: 205% 205%;
    opacity: 0.42;
    filter: blur(28px);
    animation: wave-flow 32s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: background var(--glow-color-transition), opacity var(--glow-transition), filter var(--glow-transition), transform var(--glow-transition);
}

/* Animations */
@keyframes wave-flow {
    0% { background-position: 18% 14%; }
    25% { background-position: 84% 18%; }
    50% { background-position: 82% 84%; }
    75% { background-position: 16% 78%; }
    100% { background-position: 18% 14%; }
}

@keyframes breathing-inset {
    0%, 100% { opacity: 0.61; transform: scale(1); }
    50% { opacity: 0.77; transform: scale(1.0011); }
}

/* 
  -----------------------------------------------------------------------------
  Alternative Variations (Commented out)
  -----------------------------------------------------------------------------
  
  Option 1: Minimal Vignette-Style (Inner Shadow Only)
  Very clean, focuses entirely on the screen edges.
  
  .glow-ambient-wrapper-vignette {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9999;
      box-shadow: inset 0 0 150px var(--glow-primary);
      transition: var(--glow-transition);
  }
  
  Option 2: Radial Centered Glow (Breathing Ambient Feel)
  Focuses the glow outwards from the center, creating depth.
  
  .glow-ambient-wrapper-radial {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9999;
      background: radial-gradient(circle at 50% 50%, transparent 40%, var(--glow-primary) 120%);
      animation: pulse-ambient 12s infinite alternate;
      transition: var(--glow-transition);
  }
  @keyframes pulse-ambient {
      0% { opacity: 0.6; }
      100% { opacity: 0.9; }
  }
  -----------------------------------------------------------------------------
*/

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE LANDING PAGE - PROFESSIONAL MOBILE NOTICE
   ═══════════════════════════════════════════════════════════════════════════ */

#mobileLandingPage.mobile-notice-shell {
    --mobile-shell-padding: clamp(10px, 4vw, 24px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    padding: var(--mobile-shell-padding);
    background: var(--bg-primary);
    overflow: hidden;
    isolation: isolate;
}

#mobileLandingPage.mobile-notice-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.mobile-notice-orb {
    display: none;
}

.mobile-notice-orb--a {
    display: none;
}

.mobile-notice-orb--b {
    display: none;
}

.mobile-notice-card {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: min(100%, 420px);
    max-width: 100%;
    max-height: calc(100dvh - (var(--mobile-shell-padding) * 2));
    margin: 0 auto;
    border-radius: clamp(16px, 4vw, 24px);
    padding: clamp(16px, 3.8vw, 26px) clamp(14px, 4vw, 22px) clamp(14px, 3.2vw, 20px);
    text-align: left;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow-x: hidden;
    overflow-y: auto;
}

.mobile-notice-header {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.8vw, 12px);
    flex-wrap: wrap;
    margin-bottom: clamp(10px, 3vw, 16px);
}

.mobile-notice-branding {
    min-width: 0;
}

.mobile-notice-logo {
    width: clamp(40px, 12vw, 50px);
    height: clamp(40px, 12vw, 50px);
    margin: 0;
}

.mobile-notice-kicker {
    margin: 0;
    font-size: clamp(9px, 2.6vw, 10px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 700;
}

.mobile-notice-subkicker {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: clamp(10px, 3vw, 11px);
    letter-spacing: 0.03em;
}

.mobile-notice-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    height: clamp(24px, 7vw, 28px);
    padding: 0 clamp(8px, 2.8vw, 10px);
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--accent-blue);
    font-size: clamp(9px, 2.6vw, 10px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-notice-title {
    margin: 0;
    font-size: clamp(1.2rem, 5vw, 1.78rem);
    line-height: 1.24;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    font-weight: 700;
}

.mobile-notice-text {
    margin: clamp(8px, 3vw, 12px) 0 0;
    max-width: 36ch;
    color: var(--text-secondary);
    font-size: clamp(12px, 3.3vw, 13px);
    line-height: 1.62;
}

.mobile-notice-guide {
    margin-top: clamp(10px, 3.5vw, 18px);
    padding: clamp(10px, 3.5vw, 14px);
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.mobile-notice-guide-title {
    margin: 0;
    font-size: clamp(10px, 2.8vw, 12px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: 700;
}

.mobile-notice-guide-points {
    margin-top: clamp(6px, 2.4vw, 9px);
    display: grid;
    gap: clamp(4px, 1.8vw, 6px);
}

.mobile-notice-guide-point {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(11px, 3vw, 12px);
    line-height: 1.52;
}

.mobile-notice-guide-link {
    margin-top: clamp(8px, 3vw, 12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(30px, 7.8vw, 34px);
    padding: 0 clamp(10px, 3vw, 13px);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(10px, 2.8vw, 11px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition-standard);
}

.mobile-notice-guide-link:hover,
.mobile-notice-guide-link:focus-visible {
    color: #ffffff;
    border-color: var(--accent-blue);
    background: #11111a;
    outline: none;
}

.mobile-notice-links {
    margin-top: clamp(10px, 3.5vw, 16px);
    padding-top: clamp(10px, 3vw, 14px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.mobile-notice-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(8px, 2.8vw, 10px) clamp(10px, 3vw, 12px);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(11px, 2.9vw, 12px);
    font-weight: 600;
    transition: var(--transition-standard);
}

.mobile-notice-link--icon {
    width: clamp(34px, 10vw, 42px);
    height: clamp(34px, 10vw, 42px);
    border-radius: 999px;
    padding: 0;
}

.mobile-notice-link:hover,
.mobile-notice-link:focus-visible {
    color: #ffffff;
    border-color: var(--accent-blue);
    background: #11111a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36);
    outline: none;
}

.mobile-notice-link svg {
    width: 17px;
    height: 17px;
}

/* Ensure desktop content is hidden on mobile */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        min-height: 100vh;
        min-height: 100dvh;
    }

    body > nav,
    body > section,
    body > footer,
    #desktopContent {
        display: none !important;
    }

    #mobileLandingPage {
        display: flex !important;
        width: 100vw;
        max-width: 100%;
    }

    #mobileLandingPage.mobile-notice-shell {
        --mobile-shell-padding: clamp(10px, 4vw, 20px);
    }

    .mobile-notice-card {
        width: min(100%, 460px);
    }
}

@media (max-width: 414px) {
    #mobileLandingPage.mobile-notice-shell {
        --mobile-shell-padding: 12px;
    }

    .mobile-notice-card {
        padding: 18px 16px 14px;
    }

    .mobile-notice-chip {
        margin-left: 0;
    }
}

@media (max-width: 375px) {
    #mobileLandingPage.mobile-notice-shell {
        --mobile-shell-padding: 10px;
    }

    .mobile-notice-card {
        padding: 16px 14px 13px;
    }

    .mobile-notice-title {
        font-size: clamp(1.08rem, 5.8vw, 1.35rem);
        line-height: 1.22;
    }

    .mobile-notice-guide-link {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .mobile-notice-card {
        padding: 14px 12px 12px;
    }

    .mobile-notice-logo {
        width: 40px;
        height: 40px;
    }

    .mobile-notice-text {
        line-height: 1.52;
    }

    .mobile-notice-guide {
        padding: 10px;
    }

    .mobile-notice-guide-point {
        font-size: 10.5px;
    }

    .mobile-notice-guide-link {
        min-height: 30px;
        font-size: 9.5px;
    }
}

@media (max-width: 768px) and (max-height: 740px) {
    .mobile-notice-header {
        margin-bottom: 12px;
    }

    .mobile-notice-text {
        margin-top: 10px;
    }

    .mobile-notice-guide {
        margin-top: 12px;
    }

    .mobile-notice-links {
        margin-top: 12px;
        padding-top: 12px;
    }
}

/* Desktop experience untouched */
@media (min-width: 769px) {
    #mobileLandingPage {
        display: none !important;
    }

    #desktopContent {
        display: block !important;
    }
}

