/* --- Components --- */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

/* --- Premium Neon Button --- */
.btn-neon-open {
    position: relative;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    letter-spacing: 2px;
}

.btn-neon-open:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--glow-cyan);
    transform: scale(1.05);
}

.btn-neon-open .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    pointer-events: none;
}

.btn-neon-open:hover .btn-glow {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.2;
}

/* --- Secondary Neon Button --- */
.btn-neon-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-neon-secondary:hover {
    border-color: var(--accent-purple);
    color: white;
    box-shadow: 0 0 20px var(--glow-purple);
    background: rgba(112, 0, 255, 0.05);
}

/* --- Pulse Icon --- */
.pulse-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

/* Global Utilities */
.btn-text-link {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.btn-text-link:hover {
    opacity: 1;
    text-shadow: 0 0 8px var(--glow-cyan);
}

.neon-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    outline: none;
    transition: var(--transition);
    font-size: 14px;
}

.neon-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
    background: rgba(255, 255, 255, 0.08);
}

/* --- Utility Helpers --- */
.w-350 { width: 350px; }
.font-sm { font-size: 13px; }

/* Status Badges */
.badge-cyan {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.badge-purple {
    background: rgba(112, 0, 255, 0.1);
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.badge-dark {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Neon Borders & Shadows */
.border-neon-cyan { border-color: var(--accent-cyan) !important; }
.border-neon-purple { border-color: var(--accent-purple) !important; }
.border-neon-pink { border-color: var(--accent-pink) !important; }

.shadow-neon-cyan { box-shadow: 0 0 15px var(--glow-cyan) !important; }
.shadow-neon-purple { box-shadow: 0 0 15px var(--glow-purple) !important; }

.text-neon-cyan { color: var(--accent-cyan) !important; text-shadow: 0 0 8px var(--glow-cyan); }
.text-neon-pink { color: var(--accent-pink) !important; text-shadow: 0 0 8px var(--accent-pink); }
.text-neon-purple { color: var(--accent-purple) !important; text-shadow: 0 0 8px var(--glow-purple); }

/* --- Dashboard Components --- */
.activity-log-container {
    margin-top: 15px;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    color: rgba(255, 255, 255, 0.7);
}

.log-info-purple { color: var(--accent-purple); }
.log-sync-cyan { color: var(--accent-cyan); }

/* --- Utility Helpers --- */
.p-0 { padding: 0 !important; }
.overflow-hidden { overflow: hidden; }
.text-pink { color: var(--accent-pink); }
.text-center { text-align: center; }
.border-t-glow { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.hidden { display: none !important; }
.h-full { height: 100%; }

/* Feedback state classes (used by auth.js setFeedback) */
.feedback-success { color: #4CAF50; }
.feedback-error   { color: var(--accent-pink); }
.feedback-info    { color: var(--accent-cyan); }
.feedback-pending { color: var(--accent-purple); }

/* --- Modular Logs --- */
.log-timestamp-cyan { color: var(--accent-cyan); }
.log-timestamp-purple { color: var(--accent-purple); }
.log-ready-cyan { color: var(--accent-cyan); }

/* MFA sections hidden by default (state managed by profile.js via classList) */
.mfa-setup-section,
.mfa-active-msg { display: none; }

/* --- Chat Components --- */
.peers-online-text {
    font-size: 12px;
    opacity: 0.5;
}

.chat-sender {
    font-size: 10px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.chat-sender-me { color: var(--accent-purple); }
.chat-sender-peer { color: var(--accent-cyan); }

.chat-input-bar {
    padding-top: 16px;
    display: flex;
    gap: 12px;
}

.chat-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.chat-input-field:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* --- Navigation --- */
.active-settings-tab {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent-cyan) !important;
    color: white !important;
}

/* --- Explorer Components --- */
.explorer-subtree {
    padding-left: 15px;
}

.explorer-placeholder {
    padding: 20px;
    text-align: center;
    opacity: 0.5;
    font-size: 13px;
}

.explorer-placeholder-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
    color: var(--accent-cyan);
}

.chat-send-btn {
    background: var(--accent-purple);
    color: white;
    border: none;
    width: 48px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    box-shadow: 0 0 15px var(--glow-purple);
}

/* --- Editor Components --- */
.btn-editor-save {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-editor-save:hover {
    box-shadow: 0 0 12px var(--glow-cyan);
}

/* --- Modal Info Text --- */
.modal-info-text {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.6;
}

/* --- Admin Components --- */
.access-level-text {
    font-size: 11px;
    color: var(--accent-pink);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card-mini {
    margin-bottom: 0;
    padding: 15px;
    border-color: rgba(255, 255, 255, 0.05);
}

.stats-label-mini {
    font-size: 10px;
    opacity: 0.5;
    letter-spacing: 1px;
}

.stats-value-cyan { font-size: 24px; font-weight: 800; color: var(--accent-cyan); }
.stats-value-purple { font-size: 24px; font-weight: 800; color: var(--accent-purple); }
.stats-value-green { font-size: 18px; font-weight: 700; color: #4CAF50; }

.admin-section-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 0;
}

.admin-add-btn {
    font-size: 10px;
    padding: 8px 15px;
}

/* Role Icons */
.user-role-icon-admin { color: var(--accent-purple); margin-right: 8px; }
.user-role-icon-free { color: var(--accent-cyan); margin-right: 8px; }
.user-role-icon-subscriber { color: var(--accent-cyan); margin-right: 8px; }
.user-role-icon-pro { color: var(--accent-purple); margin-right: 8px; }
.user-role-icon-beta_tester { color: var(--accent-pink); margin-right: 8px; }
.user-role-icon-staff { color: var(--accent-cyan); margin-right: 8px; }
.user-role-icon-founder { color: var(--accent-purple); margin-right: 8px; }

.modal-user-manage {
    max-width: 450px;
}

.select-neon {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(10, 10, 11, 0.95);
    color: #ffffff;
    color-scheme: dark;
}

select.neon-input,
select.select-neon {
    background-color: rgba(10, 10, 11, 0.95);
    color: #ffffff;
    color-scheme: dark;
}

select.neon-input option,
select.select-neon option {
    background-color: #121214;
    color: #ffffff;
}

select.neon-input option:disabled,
select.select-neon option:disabled {
    color: rgba(255, 255, 255, 0.45);
}

/* --- Utility Helpers --- */
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-30 { padding: 30px; }
.block { display: block; }
.pointer { cursor: pointer; }
.align-start { align-items: flex-start; }
.font-xs { font-size: 10px; }
.mb-5 { margin-bottom: 5px; }
.w-300 { width: 300px; }

/* --- Network Components --- */
.network-title {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.network-subtitle-text {
    font-size: 11px;
    opacity: 0.5;
    letter-spacing: 1px;
}

.network-status-text {
    font-size: 10px;
    margin-top: 8px;
    font-family: 'Fira Code', monospace;
    color: var(--accent-purple);
}

.scan-status-text {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--accent-cyan);
}

.mesh-log-container {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.log-timestamp-purple { color: var(--accent-purple); }
.log-timestamp-cyan { color: var(--accent-cyan); }

.stat-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: var(--progress-width, 0%);
    transition: width 0.5s ease-out;
}

.cyan-glow {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.purple-glow {
    background: var(--accent-purple);
    box-shadow: 0 0 10px var(--glow-purple);
}

/* --- Sidebar Components --- */
.hub-title {
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

.hub-subtitle {
    font-size: 10px;
    color: var(--accent-purple);
    font-weight: 700;
}

.nav-header {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
}

.site-copyright {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 9px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    letter-spacing: 0.02em;
}

.site-copyright p {
    margin: 0;
}

.user-icon-sm {
    font-size: 20px;
    color: var(--accent-purple);
}

.user-name-text {
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.user-tier-text {
    font-size: 9px;
    color: var(--accent-cyan);
    font-weight: 800;
    letter-spacing: 1px;
}

.mfa-warning {
    color: var(--accent-pink) !important;
}

.modal-profile {
    max-width: 400px;
    border-color: var(--accent-purple) !important;
}

.input-label {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.mfa-settings-container {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(112, 0, 255, 0.2);
}

.mfa-status-label {
    font-size: 11px;
    color: var(--accent-purple);
    font-weight: 700;
}

.mfa-status-text {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.6;
}

.mfa-setup-section {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: 10px;
    text-align: center;
}

.mfa-instruction-text {
    font-size: 10px;
    opacity: 0.6;
    display: block;
    margin-bottom: 15px;
}

.mfa-qr-container {
    background: white;
    padding: 15px;
    display: inline-block;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.mfa-verify-label {
    font-size: 10px;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.mfa-verify-input {
    width: 100%;
    text-align: center;
    letter-spacing: 4px;
}

.mfa-disclaimer {
    font-size: 9px;
    opacity: 0.5;
    margin-top: 10px;
}

.mfa-active-msg {
    display: none;
    text-align: center;
    color: #4CAF50;
    font-size: 10px;
    font-weight: 700;
    margin-top: 10px;
}

.profile-sync-btn {
    width: 100%;
    border-color: var(--accent-purple);
    color: white;
}

/* --- Modal Contexts --- */
.modal-restricted {
    max-width: 400px;
    border-color: var(--accent-cyan) !important;
}

.modal-content.modal-auth {
    max-width: 400px;
}

/* --- Status & Auth Components --- */
.icon-accent-lg {
    font-size: 40px;
    color: var(--accent-cyan);
}

.invite-only-badge {
    background: rgba(0, 242, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed var(--accent-cyan);
}

.status-invite-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.auth-subtext {
    font-size: 11px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-white { color: white; }

.mfa-icon {
    font-size: 30px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.mfa-title {
    font-size: 14px;
    color: white;
}

.mfa-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.mfa-input {
    text-align: center;
    letter-spacing: 5px;
    font-size: 18px;
}

.auth-feedback {
    margin-top: 15px;
    font-size: 12px;
    text-align: center;
    min-height: 20px;
}

/* --- Modals & Overlays --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Specialized Component Styles --- */
.profile-trigger:hover {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px var(--glow-purple);
    background: rgba(112, 0, 255, 0.1) !important;
}

.neon-table .badge.subscriber { 
    background: rgba(0, 242, 255, 0.1); 
    color: var(--accent-cyan); 
    border: 1px solid rgba(0, 242, 255, 0.3); 
}

.neon-table .badge.pro { 
    background: rgba(112, 0, 255, 0.1); 
    color: var(--accent-purple); 
    border: 1px solid rgba(112, 0, 255, 0.3); 
}

.neon-table .badge.beta_tester { 
    background: rgba(255, 0, 229, 0.1); 
    color: var(--accent-pink); 
    border: 1px solid rgba(255, 0, 229, 0.3); 
}

.neon-table .badge.staff { 
    background: rgba(0, 242, 255, 0.1); 
    color: var(--accent-cyan); 
    border: 1px solid rgba(0, 242, 255, 0.3); 
}

.neon-table .badge.founder { 
    background: rgba(112, 0, 255, 0.1); 
    color: var(--accent-purple); 
    border: 1px solid rgba(112, 0, 255, 0.3); 
}
/* --- Sidebar System Status --- */
.sidebar-status-box {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-value.inactive {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Welcome Hub Redesign Components --- */
.participant-strip {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 24px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strip-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-purple);
    letter-spacing: 2px;
}

.strip-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px var(--glow-cyan);
}

.welcome-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    margin: -24px -24px 24px -24px;
    padding: 40px 0 20px 0;
    overflow: hidden;
}

.welcome-hero-launchpad {
    padding-bottom: 0;
}

.welcome-pillars-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1100px;
    padding: 0 24px 20px;
    z-index: 10;
}

.pillar-card-compact {
    padding: 18px 20px;
}

.pillar-card-compact .pillar-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

.pillar-card-compact .pillar-title {
    font-size: 12px;
    margin-bottom: 8px;
}

.pillar-card-compact .pillar-desc {
    font-size: 11px;
    line-height: 1.5;
}

.pillar-lead {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.toolkit-purpose {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 6px;
}

.toolkit-foundation {
    font-size: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Fira Code', monospace;
}

.hero-canvas-launchpad {
    height: 320px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    transition: height 0.35s ease;
    padding-bottom: 48px;
    box-sizing: border-box;
}

.hero-canvas-launchpad.threat-mode-active {
    height: auto;
    min-height: 0;
}

#welcome-mesh-canvas {
    display: block;
    width: 100%;
    height: calc(100% - 48px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.welcome-map-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
    z-index: 5;
}

.topology-hint {
    font-size: 10px;
    opacity: 0.45;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.threat-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.threat-mode-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.threat-mode-slider {
    width: 36px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.threat-mode-slider::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.threat-mode-checkbox:checked + .threat-mode-slider {
    background: rgba(255, 0, 85, 0.2);
    border-color: rgba(255, 0, 85, 0.5);
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.3);
}

.threat-mode-checkbox:checked + .threat-mode-slider::after {
    transform: translateX(18px);
    background: #ff0055;
}

.threat-mode-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.threat-mode-checkbox:checked ~ .threat-mode-label {
    color: #ff0055;
}

/* Threat Matrix (in-flow when toggled on — avoids resize/canvas conflicts) */
.welcome-threat-view {
    display: none;
    padding: 16px 20px 8px;
    z-index: 2;
    background: rgba(8, 8, 12, 0.97);
}

.welcome-threat-view:not([hidden]) {
    display: block;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.threat-diagram-visual {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 0, 85, 0.15);
    border-radius: 10px;
    background: rgba(255, 0, 85, 0.03);
}

.threat-diagram-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.threat-diagram-row:last-child {
    margin-bottom: 0;
}

.threat-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    min-width: 100px;
}

.threat-node i {
    font-size: 16px;
    margin-bottom: 6px;
}

.threat-node small {
    font-size: 7px;
    font-weight: 500;
    opacity: 0.6;
    margin-top: 4px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
}

.threat-attacker {
    border: 1px solid rgba(255, 0, 85, 0.4);
    background: rgba(255, 0, 85, 0.08);
    color: #ff0055;
}

.threat-cloud {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
}

.threat-hub {
    border: 1px solid rgba(0, 242, 255, 0.4);
    background: rgba(0, 242, 255, 0.08);
    color: #00F2FF;
}

.threat-attack-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.threat-path-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0055, transparent);
    position: relative;
}

.threat-path-danger {
    animation: threat-pulse-line 2s ease-in-out infinite;
}

.threat-path-label {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 0, 85, 0.7);
}

.threat-path-blocked {
    font-size: 7px;
    font-weight: 800;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.threat-path-blocked-purple {
    color: #a855f7;
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.35);
}

.threat-defense {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 8px;
    flex: 1;
    max-width: 160px;
}

.threat-defense i {
    font-size: 14px;
    margin-bottom: 4px;
}

.threat-defense strong {
    font-size: 9px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.threat-defense small {
    font-size: 7px;
    opacity: 0.65;
    line-height: 1.35;
}

.threat-defense-pqc {
    border: 1px solid rgba(112, 0, 255, 0.35);
    background: rgba(112, 0, 255, 0.08);
    color: #a855f7;
}

.threat-defense-pi {
    border: 1px solid rgba(0, 242, 255, 0.35);
    background: rgba(0, 242, 255, 0.08);
    color: #00F2FF;
}

.threat-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.threat-matrix-card {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.threat-matrix-header {
    margin-bottom: 10px;
}

.threat-risk-badge {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff0055;
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.threat-matrix-card h4 {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
}

.threat-threat-text,
.threat-mitigation-text {
    font-size: 9px;
    line-height: 1.55;
    margin-bottom: 8px;
}

.threat-threat-text {
    color: rgba(255, 255, 255, 0.55);
}

.threat-mitigation-text {
    color: rgba(0, 242, 255, 0.75);
    margin-bottom: 0;
}

.threat-mitigation-text strong,
.threat-threat-text strong {
    color: rgba(255, 255, 255, 0.85);
}

@keyframes threat-pulse-line {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Architectural note triggers */
.arch-note-trigger {
    background: none;
    border: none;
    border-bottom: 1px dashed rgba(0, 242, 255, 0.4);
    color: rgba(0, 242, 255, 0.85);
    font-family: 'Fira Code', monospace;
    font-size: inherit;
    padding: 0 1px;
    cursor: help;
    transition: var(--transition);
}

.arch-note-trigger:hover {
    color: #00F2FF;
    border-bottom-color: #00F2FF;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.arch-note-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 950;
}

.arch-note-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(380px, 92vw);
    background: rgba(12, 12, 18, 0.98);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 10px;
    padding: 20px;
    z-index: 951;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.arch-note-modal-header {
    position: relative;
    margin-bottom: 12px;
    padding-right: 28px;
}

.arch-note-eyebrow {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    opacity: 0.7;
    display: block;
    margin-bottom: 4px;
}

.arch-note-title {
    font-size: 14px;
    font-weight: 800;
    color: white;
    font-family: 'Fira Code', monospace;
}

.arch-note-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.arch-note-body {
    font-size: 11px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .threat-matrix-grid {
        grid-template-columns: 1fr;
    }

    .threat-diagram-row {
        flex-direction: column;
    }
}

.toolkit-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.toolkit-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.03);
}

.toolkit-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    flex-shrink: 0;
}

.toolkit-card-body {
    flex: 1;
    min-width: 0;
}

.toolkit-status-badge {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.toolkit-status-online {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.toolkit-status-download {
    color: #00F2FF;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.toolkit-status-standby {
    color: rgba(255, 180, 0, 0.9);
    background: rgba(255, 180, 0, 0.08);
    border: 1px solid rgba(255, 180, 0, 0.25);
}

.toolkit-launch-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.toolkit-launch-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--accent-cyan);
}

.toolkit-launch-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.welcome-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.welcome-deploy-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    background: rgba(12, 12, 18, 0.97);
    border-left: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 901;
    padding: 28px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-deploy-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.drawer-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    opacity: 0.7;
    margin-bottom: 4px;
}

.drawer-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.drawer-close {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.drawer-desc {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.drawer-foundation {
    font-size: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Fira Code', monospace;
    margin-bottom: 16px;
}

.drawer-engineering {
    font-size: 11px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.diagnostic-mode-tag {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Fira Code', monospace;
}

.drawer-status {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.drawer-status-active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.drawer-status-standby {
    color: rgba(255, 180, 0, 0.9);
    background: rgba(255, 180, 0, 0.08);
    border: 1px solid rgba(255, 180, 0, 0.25);
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.drawer-telemetry-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Fira Code', monospace;
}

.drawer-telemetry-row span:first-child {
    color: rgba(255, 255, 255, 0.4);
}

.drawer-telemetry-row span:last-child {
    color: var(--accent-cyan);
}

.drawer-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-steps li {
    display: flex;
    gap: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
}

.drawer-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--accent-cyan);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
}

.drawer-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00F2FF, #7000FF);
    border: none;
    border-radius: 10px;
    color: #0A0A0B;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
}

.drawer-btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .welcome-pillars-banner {
        grid-template-columns: 1fr;
    }
}

.hero-overlay {
    text-align: center;
    pointer-events: none;
    z-index: 10;
    margin-bottom: 20px;
}

.hero-canvas-container {
    width: 100%;
    height: 350px;
    position: relative;
}

.industrial-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition);
}

.pillar-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 255, 0.03);
    transform: translateY(-5px);
}

.pillar-icon {
    font-size: 32px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.pillar-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 12px;
}

.pillar-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.mhs-ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 100%;
    width: 220px;
    height: 220px;
    margin: 0 auto 10px;
    position: relative;
}

.mhs-svg-ring {
    transform: rotate(-90deg);
}

.mhs-ring-circle {
    fill: none;
    stroke-width: 8;
    stroke: rgba(255, 255, 255, 0.05);
}

.mhs-ring-progress {
    fill: none;
    stroke-width: 8;
    stroke: var(--mhs-safe);
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 1.5s ease-out;
    filter: drop-shadow(0 0 5px var(--mhs-safe));
}

.mhs-score-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mhs-value-group {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.mhs-value {
    font-size: 42px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.mhs-percent {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.6;
}

.mhs-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.pqc-audit-console {
    background: var(--console-bg);
    border: 1px solid var(--accent-purple);
    box-shadow: inset 0 0 15px rgba(112, 0, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--console-text);
    margin-top: 10px;
    height: 150px;
    overflow-y: hidden;
    position: relative;
    width: 100%;
}

.pqc-audit-console::before {
    content: "PQC SECURITY ASSET CONSOLE";
    position: absolute;
    top: 0;
    right: 12px;
    font-size: 9px;
    color: var(--accent-purple);
    font-weight: 900;
}

.console-line {
    margin-bottom: 4px;
}

.console-prompt {
    color: var(--accent-pink);
    margin-right: 8px;
}

.console-dim {
    color: var(--console-dim);
}

.mcp-discovery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    padding: 4px 12px;
    border-radius: 4px;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}

.mcp-discovery-badge:hover {
    box-shadow: 0 0 15px var(--glow-cyan);
    transform: translateY(-2px);
}
/* --- Sovereign Compliance Beacon --- */
.compliance-beacon-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.8s ease-out;
}

.beacon-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.beacon-light.status-green {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.beacon-light.status-green::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid #00ff88;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.beacon-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #00ff88;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Digital Bunker: Health Pills & Module Highlights --- */
.bunker-pill {
    font-size: 7px;
    font-weight: 800;
    padding: 8px 4px;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
}

.bunker-pill-idle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
}

.bunker-pill-running {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: rgba(245, 158, 11, 0.9);
    animation: bunker-pill-pulse 1s ease-in-out infinite;
}

.bunker-pill-pass {
    opacity: 1;
    text-shadow: 0 0 8px currentColor;
}

.bunker-pill-cyan {
    background: rgba(0, 242, 255, 0.12);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: #00F2FF;
}

.bunker-pill-purple {
    background: rgba(112, 0, 255, 0.12);
    border: 1px solid rgba(112, 0, 255, 0.4);
    color: #a855f7;
}

.bunker-pill-pink {
    background: rgba(255, 0, 229, 0.1);
    border: 1px solid rgba(255, 0, 229, 0.35);
    color: #FF00E5;
}

.bunker-pill-green {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: #00ff88;
}

.bunker-mod-card.bunker-mod-active {
    border-color: rgba(0, 242, 255, 0.35) !important;
    background: rgba(0, 242, 255, 0.04);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.08);
}

.bunker-mod-card.bunker-mod-pass {
    border-color: rgba(0, 255, 136, 0.25) !important;
    background: rgba(0, 255, 136, 0.02);
}

@keyframes bunker-pill-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* --- Public Architecture Catalog --- */
.public-hero-lead {
    max-width: 720px;
    margin: 18px auto 0;
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.public-visitor-banner {
    max-width: 720px;
    margin: 18px auto 0;
    padding: 12px 18px 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.public-visitor-banner-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
}

.public-visitor-banner-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}

.public-visitor-banner-mode {
    margin: 8px 0 0;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.4;
}

.public-philosophy {
    max-width: 780px;
    margin: 22px auto 0;
    padding: 0 12px;
    text-align: center;
}

.public-philosophy .public-section-tag {
    margin-bottom: 12px;
}

.public-philosophy-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 0 18px rgba(0, 242, 255, 0.25);
}

.public-philosophy-body {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.public-catalog {
    margin-top: 28px;
    padding-bottom: 8px;
}

.public-section-tag {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(0, 242, 255, 0.55);
    margin-bottom: 10px;
}

.public-threat-landscape {
    margin-top: 40px;
    padding-bottom: 8px;
}

.public-threat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.public-threat-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 80, 80, 0.18);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.public-threat-card:hover {
    border-color: rgba(255, 80, 80, 0.35);
    background: rgba(255, 40, 80, 0.04);
}

.public-threat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.public-threat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 229, 0.35);
    color: #FF00E5;
    background: rgba(255, 0, 229, 0.08);
    flex-shrink: 0;
}

.public-threat-badge {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #ff6b7a;
    background: rgba(255, 60, 80, 0.12);
    border: 1px solid rgba(255, 80, 100, 0.3);
    white-space: nowrap;
}

.public-threat-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.public-threat-subtitle {
    margin: 0 0 12px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 107, 122, 0.85);
}

.public-threat-desc {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    flex: 1;
}

.public-threat-desc strong {
    color: rgba(255, 255, 255, 0.9);
}

.public-defense-box {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.public-defense-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--accent-cyan, #00F2FF);
    margin-bottom: 6px;
}

.public-defense-box p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.public-defense-box strong {
    color: rgba(0, 242, 255, 0.95);
    font-weight: 700;
}

@media (max-width: 960px) {
    .public-threat-grid {
        grid-template-columns: 1fr;
    }
}

.public-suite-page {
    margin-top: 12px;
    margin-bottom: 36px;
    padding-bottom: 8px;
}

.public-product-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 28px 32px 40px;
    box-sizing: border-box;
    text-align: left;
}

#view-public-sentinel.content-view.active,
#view-public-vault-enclave.content-view.active,
#view-public-lattice.content-view.active,
#view-public-pi-vault.content-view.active,
#view-public-mesh.content-view.active,
#view-public-envoy.content-view.active,
#view-public-zac.content-view.active,
#view-public-privacy.content-view.active,
#view-public-terms.content-view.active,
#view-public-crypto-risk.content-view.active,
#view-public-export-controls.content-view.active,
#view-public-dev-policy.content-view.active {
    align-items: stretch;
    overflow-y: auto;
}

.public-product-body {
    margin: 0 auto 18px;
    max-width: 860px;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.public-product-gallery-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.public-product-section + .public-product-section {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.public-product-hero {
    text-align: center;
    margin-bottom: 28px;
    padding: 4px 8px 8px;
}

.public-product-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 0 22px rgba(0, 242, 255, 0.28);
}

.public-product-tagline {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 242, 255, 0.75);
}

.public-product-lead {
    margin: 0 auto;
    max-width: 820px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.public-product-lead strong {
    color: rgba(0, 242, 255, 0.95);
}

.public-privacy-page .public-privacy-panel {
    margin-top: 8px;
    text-align: left;
}

.public-privacy-page .legal-page-title {
    text-align: left;
}

.public-product-notice {
    margin: 18px auto 0;
    max-width: 820px;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 176, 32, 0.06);
    border: 1px solid rgba(255, 176, 32, 0.28);
    border-radius: 10px;
}

.public-product-notice-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    vertical-align: middle;
    color: rgba(255, 196, 72, 0.95);
    border: 1px solid rgba(255, 176, 32, 0.4);
    border-radius: 999px;
    background: rgba(255, 176, 32, 0.1);
}

.public-product-notice strong {
    color: rgba(255, 255, 255, 0.9);
}

.public-product-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 36px;
    width: 100%;
}

.public-product-feature {
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    text-align: left;
}

.public-product-feature-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 255, 0.28);
    color: var(--accent-cyan, #00F2FF);
    background: rgba(0, 242, 255, 0.06);
}

.public-product-feature h3 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.public-product-feature p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}

.public-product-section {
    margin-bottom: 40px;
    width: 100%;
}

.public-product-section-head {
    text-align: center;
    margin-bottom: 18px;
}

.public-product-section-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan, #00F2FF);
}

.public-product-section-sub {
    margin: 0;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.45;
}

.public-product-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    text-align: left;
}

.public-product-feature-list li {
    padding: 12px 14px 12px 28px;
    position: relative;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.public-product-feature-list li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan, #00F2FF);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

.public-product-feature-list strong {
    color: rgba(255, 255, 255, 0.92);
}

.public-product-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin-top: 32px;
}

/* Solo shot, or odd leftover on the last row — center instead of left-align */
.public-product-gallery > .public-product-shot:only-child,
.public-product-gallery > .public-product-shot:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 22px) / 2);
    justify-self: center;
}

.public-product-gallery-single > .public-product-shot:only-child,
.public-product-gallery-single > .public-product-shot:last-child:nth-child(odd) {
    max-width: 100%;
}

.public-product-body + .public-product-gallery,
.public-product-feature-list + .public-product-gallery {
    margin-top: 32px;
}

.public-product-shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.public-product-shot:hover {
    border-color: rgba(0, 242, 255, 0.35);
    box-shadow: 0 0 24px rgba(0, 242, 255, 0.08);
}

.public-product-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    background: #050508;
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}

.public-product-shot img:hover {
    opacity: 0.92;
}

.public-product-shot figcaption {
    display: block;
    margin: 0;
    padding: 18px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 16, 0.85);
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

.public-product-shot figcaption strong {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0, 242, 255, 0.9);
}

/* Fullscreen product screenshot lightbox */
.public-shot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.public-shot-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.public-shot-lightbox-img {
    display: block;
    max-width: min(96vw, 1400px);
    max-height: calc(100vh - 96px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
    background: #050508;
}

.public-shot-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(20, 24, 32, 0.92);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.public-shot-lightbox-close:hover {
    border-color: rgba(0, 242, 255, 0.55);
    color: var(--accent-cyan, #00F2FF);
    background: rgba(0, 242, 255, 0.08);
}

body.public-shot-lightbox-open {
    overflow: hidden;
}

.public-product-doc-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.public-readme-modal {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.public-readme-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.public-readme-modal[hidden] {
    display: none !important;
}

.public-readme-modal.active[hidden] {
    display: flex !important;
}

.public-readme-modal-panel {
    width: min(420px, 100%);
    background: rgba(12, 14, 20, 0.96);
    border: 1px solid rgba(0, 242, 255, 0.22);
    border-radius: 12px;
    padding: 22px 22px 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.public-readme-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.public-readme-modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

.public-readme-modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.public-readme-modal-close:hover {
    border-color: rgba(0, 242, 255, 0.5);
    color: var(--accent-cyan, #00F2FF);
}

.public-readme-modal-lead {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.public-readme-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-readme-modal-actions .btn-privacy-policy {
    width: 100%;
    justify-content: center;
}

body.public-readme-modal-open {
    overflow: hidden;
}

@media (max-width: 960px) {
    .public-product-page {
        padding: 20px 16px 32px;
    }

    .public-product-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-product-gallery,
    .public-product-feature-list {
        grid-template-columns: 1fr;
    }

    .public-product-gallery > .public-product-shot:only-child,
    .public-product-gallery > .public-product-shot:last-child:nth-child(odd) {
        max-width: 100%;
    }

    .public-shot-lightbox {
        padding: 64px 16px 24px;
    }
}

@media (max-width: 640px) {
    .public-product-feature-grid {
        grid-template-columns: 1fr;
    }

    .public-product-title {
        font-size: 22px;
    }
}

.public-pillars {
    margin-top: 40px;
    margin-bottom: 36px;
    padding-bottom: 8px;
}

.public-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.public-pillar-card {
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.public-pillar-card:hover {
    border-color: rgba(0, 242, 255, 0.28);
    background: rgba(0, 242, 255, 0.03);
}

.public-pillar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    margin-bottom: 14px;
}

.public-pillar-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.public-pillar-lead {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.public-pillar-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 960px) {
    .public-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .public-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.public-catalog-header {
    text-align: center;
    margin-bottom: 22px;
}

.public-catalog-sub {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.45;
}

.public-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.public-catalog-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.public-catalog-card:hover,
.public-catalog-card:focus-visible {
    border-color: rgba(0, 242, 255, 0.35);
    background: rgba(0, 242, 255, 0.04);
    outline: none;
    transform: translateY(-1px);
}

.public-catalog-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    flex-shrink: 0;
}

.public-catalog-card-body {
    flex: 1;
    min-width: 0;
}

.public-catalog-card-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

.public-catalog-suite {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-cyan, #00F2FF);
    opacity: 0.75;
    margin-bottom: 6px;
}

.public-catalog-card-blurb {
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.55;
    margin: 0;
}

.public-catalog-card-chevron {
    align-self: center;
    font-size: 11px;
    opacity: 0.35;
    flex-shrink: 0;
}

.public-catalog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 960;
}

.public-catalog-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 94vw);
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    background: rgba(12, 12, 18, 0.98);
    border: 1px solid rgba(0, 242, 255, 0.28);
    border-radius: 12px;
    z-index: 961;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 255, 0.08);
}

.public-catalog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.public-catalog-modal-eyebrow {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-cyan, #00F2FF);
    opacity: 0.75;
    display: block;
    margin-bottom: 6px;
}

.public-catalog-modal-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    font-family: 'Fira Code', monospace;
}

.public-catalog-modal-card-title {
    margin: 6px 0 0;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.45;
}

.public-catalog-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.public-catalog-modal-close:hover {
    border-color: rgba(0, 242, 255, 0.4);
    color: var(--accent-cyan, #00F2FF);
}

.public-catalog-modal-body {
    padding: 18px 22px 22px;
    overflow-y: auto;
}

.public-catalog-section-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    margin: 0 0 10px;
}

.public-catalog-modal-desc {
    font-size: 13px;
    line-height: 1.65;
    opacity: 0.85;
    margin: 0 0 22px;
}

.public-catalog-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.public-catalog-features li {
    position: relative;
    padding: 10px 12px 10px 28px;
    font-size: 12px;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.public-catalog-features li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan, #00F2FF);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

@media (max-width: 640px) {
    .public-catalog-grid {
        grid-template-columns: 1fr;
    }

    .public-hero-lead {
        font-size: 12px;
        padding: 0 8px;
    }
}

