/* AINNA Guardian — Futuristic White Lofi */

:root {
    --bg-root: #FAFAF8;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-strong: rgba(255, 255, 255, 0.88);
    --bg-muted: #F4F3F0;
    --lofi-lavender: #C4B5E8;
    --lofi-sage: #A8C5B5;
    --lofi-peach: #F5D0C5;
    --lofi-dusty-blue: #9BB5CE;
    --accent: #7B9FD4;
    --accent-deep: #5A7FAD;
    --text-primary: #1A1A1E;
    --text-secondary: #5C5C66;
    --text-muted: #8E8E93;
    --border: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 24px rgba(26, 26, 30, 0.04);
    --shadow-glass: 0 8px 32px rgba(155, 181, 206, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', monospace;
    --gradient-hero: radial-gradient(ellipse 70% 50% at 15% 20%, rgba(196, 181, 232, 0.18) 0%, transparent 55%),
                     radial-gradient(ellipse 60% 45% at 85% 75%, rgba(155, 181, 206, 0.14) 0%, transparent 55%),
                     radial-gradient(ellipse 50% 40% at 50% 50%, rgba(168, 197, 181, 0.08) 0%, transparent 60%);
    --status-ok: #6B9E82;
    --status-warn: #C4956A;
    --status-error: #C45C6A;
    --status-info: var(--accent-deep);
    --space-page-x: 2rem;
    --space-page-y: 2.25rem;
    --space-section: 2rem;
    --space-card: 1.75rem;

    /* Legacy aliases */
    --cyan: var(--accent);
    --text: var(--text-primary);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    background: var(--bg-root);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

::selection {
    background: rgba(168, 197, 181, 0.35);
    color: var(--text-primary);
}

/* Background */
.df-grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: var(--gradient-hero);
}

.df-grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 181, 206, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 181, 206, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.guardian-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

body.has-sidebar {
    display: flex;
    min-height: 100vh;
}

body.has-sidebar .guardian-shell {
    display: flex;
    flex: 1;
    min-width: 0;
}

/* Main content area */
.guardian-main {
    min-height: 100vh;
    flex: 1;
    min-width: 0;
}

.page-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--space-page-y) var(--space-page-x) 3rem;
}

/* Sidebar */
.guardian-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-glass-strong);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: var(--shadow-soft);
}

.sidebar-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.brand {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    display: block;
    line-height: 1.3;
}

.brand:hover { color: var(--accent); }

.brand-icon {
    margin-right: 0.45rem;
    color: var(--lofi-lavender);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    margin-top: 2.25rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
    color: var(--accent-deep);
    background: rgba(155, 181, 206, 0.12);
}

.nav-item.active {
    color: var(--accent-deep);
    background: rgba(196, 181, 232, 0.22);
    box-shadow: inset 3px 0 0 var(--lofi-lavender);
}

.nav-badge {
    background: var(--lofi-peach);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.user-badge {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.user-role {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

/* Page header */
.page-header {
    margin-bottom: var(--space-section) !important;
    gap: 1.25rem !important;
}

.page-header h2 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    font-size: 1.75rem;
    line-height: 1.25;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Login */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2.5rem 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(20px);
}

.login-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.login-icon {
    font-size: 2.25rem;
    color: var(--lofi-lavender);
    margin-bottom: 0.65rem;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Forms */
.guardian-input {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-medium) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-sans);
    padding: 0.6rem 0.85rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
}

.guardian-input:focus {
    border-color: var(--lofi-lavender) !important;
    box-shadow: 0 0 0 3px rgba(196, 181, 232, 0.25) !important;
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.form-section-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.85rem;
}

.form-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.check-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.panel-card--narrow {
    max-width: 760px;
}

/* Buttons */
.btn-cyan {
    background: var(--text-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    line-height: 1.4;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn-cyan:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-cyan:disabled { opacity: 0.45; }

.btn-outline-cyan {
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    background: var(--bg-glass-strong);
    border-radius: 999px;
    font-size: 0.875rem;
    padding: 0.5rem 1.15rem;
    backdrop-filter: blur(12px);
}

.btn-outline-cyan:hover {
    background: rgba(245, 208, 197, 0.35);
    border-color: var(--lofi-peach);
    color: var(--text-primary);
}

.btn-outline-danger {
    color: var(--status-error);
    border: 1px solid rgba(196, 92, 106, 0.35);
    background: transparent;
    border-radius: 999px;
}

.btn-outline-danger:hover {
    background: rgba(245, 208, 197, 0.4);
    color: var(--status-error);
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 999px;
}

/* Cards */
.stat-card {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-card);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass);
    border-color: rgba(155, 181, 206, 0.35);
}

.stat-card.alert-active {
    border-color: rgba(196, 92, 106, 0.35);
    background: linear-gradient(135deg, var(--bg-glass-strong), rgba(245, 208, 197, 0.15));
}

.stat-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.stat-value--md { font-size: 1.5rem; }
.stat-value--sm { font-size: 1.125rem; letter-spacing: 0; }

.stat-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.stat-meta {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.stat-status.online { color: var(--status-ok); }
.stat-status.warning { color: var(--status-warn); }

.panel-card {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-card);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.panel-card + .panel-card,
.panel-card.mb-4 { margin-bottom: 1.5rem; }

.panel-title,
.panel-card h5,
.panel-card h6.panel-title {
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title .dot { margin-left: 0.15rem; }

/* Status */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.online { background: var(--lofi-sage); box-shadow: 0 0 8px rgba(168, 197, 181, 0.7); }
.dot.pending,
.dot.warning { background: var(--lofi-peach); box-shadow: 0 0 8px rgba(245, 208, 197, 0.7); }
.dot.offline { background: var(--status-error); box-shadow: 0 0 8px rgba(196, 92, 106, 0.4); }

/* Alerts */
.alert-success {
    background: rgba(168, 197, 181, 0.2);
    border: 1px solid rgba(168, 197, 181, 0.45);
    color: var(--status-ok);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.alert-danger {
    background: rgba(245, 208, 197, 0.35);
    border: 1px solid rgba(196, 92, 106, 0.3);
    color: var(--status-error);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Tables */
.table-responsive {
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

.guardian-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-hover-bg: rgba(155, 181, 206, 0.08);
    --bs-table-hover-color: var(--text-primary);
    --bs-table-border-color: var(--border);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.guardian-table th {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    border-color: var(--border);
    background: rgba(244, 243, 240, 0.65);
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

.guardian-table td {
    border-color: var(--border);
    color: var(--text-secondary);
    padding: 0.95rem 1rem;
    vertical-align: middle;
    line-height: 1.45;
}

.guardian-table tbody tr:hover td { color: var(--text-primary); }

.guardian-table .text-end .btn + .btn { margin-left: 0.35rem; }

.guardian-table-sm {
    font-size: 0.82rem;
}

.guardian-table-sm th {
    padding: 0.65rem 0.85rem;
}

.guardian-table-sm td {
    padding: 0.65rem 0.85rem;
}

/* Responsive grid tweaks for dashboard */
@media (max-width: 991px) {
    .panel-card {
        margin-bottom: 1rem;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-insight-mini {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Compact dashboard styling */
.page-content {
    padding: var(--space-page-y) var(--space-page-x) 2rem;
}

.stat-card {
    padding: 1.25rem;
}

.stat-value {
    font-size: 1.85rem;
}

.stat-label {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
}

.stat-status {
    font-size: 0.7rem;
    margin-top: 0.4rem;
}

.panel-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.panel-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.status-item {
    font-size: 0.85rem;
}

.ai-insight-mini {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.ai-insight-mini:last-child {
    border-bottom: none;
}

.insight-site {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.insight-excerpt {
    font-size: 0.8rem;
}

/* Compact table */
.guardian-table-sm th {
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
}

.guardian-table-sm td {
    padding: 0.55rem 0.75rem;
}

/* Badges */
.badge-scan {
    background: rgba(155, 181, 206, 0.2);
    color: var(--accent-deep);
    font-family: var(--font-mono);
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-maint {
    background: rgba(245, 208, 197, 0.45);
    color: var(--status-warn);
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
    margin-left: 0.45rem;
    vertical-align: middle;
}

.status-code.ok { color: var(--status-ok); font-weight: 600; }
.status-code.fail { color: var(--status-error); font-weight: 600; }

.link-cyan,
.link-accent,
.link-subtle {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 500;
}

.link-cyan:hover,
.link-accent:hover,
.link-subtle:hover {
    color: var(--accent);
    text-decoration: underline;
}

.link-subtle {
    font-size: 0.875rem;
}

.text-accent { color: var(--accent-deep); font-weight: 600; }

.text-small {
    font-size: 0.875rem;
    line-height: 1.55;
}

.url-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.priority-critical,
.severity-critical {
    color: var(--status-error);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.priority-high,
.severity-warning {
    color: var(--status-warn);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.priority-medium,
.priority-low,
.severity-info {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.priority-low { opacity: 0.8; }
.severity-info { color: var(--status-info); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.empty-state p { margin: 0; font-size: 0.95rem; }

.empty-icon {
    font-size: 2.25rem;
    color: var(--lofi-sage);
    margin-bottom: 0.75rem;
}

.text-ok { color: var(--status-ok); font-weight: 600; }
.text-fail { color: var(--status-error); font-weight: 600; }

/* AI insights */
.ai-insight-card {
    border: 1px solid rgba(196, 181, 232, 0.35);
    background: linear-gradient(135deg, var(--bg-glass-strong), rgba(196, 181, 232, 0.12));
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.ai-insight-card.unread {
    border-color: rgba(123, 159, 212, 0.45);
    box-shadow: var(--shadow-glass);
}

.ai-insight-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ai-insight-body--pre {
    white-space: pre-wrap;
}

.ai-insight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1.25rem;
}

.ai-insight-header strong { font-size: 1rem; line-height: 1.4; }

.ai-insight-footer {
    margin-top: 1rem;
    padding-top: 0.25rem;
}

.ai-insights-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ai-insight-mini {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.ai-insight-mini:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ai-insight-mini .insight-site {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ai-insight-mini .insight-excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Error pages */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--lofi-lavender);
    opacity: 0.85;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page h1 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-muted);
    color: var(--accent-deep);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

/* Bootstrap spacing tweaks */
.row.g-4 { --bs-gutter-y: 1.5rem; --bs-gutter-x: 1.5rem; }
.row.g-4.mb-4 { margin-bottom: 2rem !important; }

.table > :not(caption) > * > * {
    border-bottom-color: var(--border);
}

/* Responsive */
@media (max-width: 991px) {
    :root {
        --space-page-x: 1.5rem;
        --space-page-y: 1.75rem;
    }
}

@media (max-width: 768px) {
    body.has-sidebar { flex-direction: column; }

    body.has-sidebar .guardian-shell { flex-direction: column; }

    .guardian-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.25rem;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 1rem;
        gap: 0.35rem;
    }

    .nav-item {
        padding: 0.5rem 0.85rem;
        font-size: 0.875rem;
    }

    .nav-item.active {
        box-shadow: inset 0 -3px 0 var(--lofi-lavender);
    }

    .sidebar-footer {
        flex-wrap: wrap;
        margin-top: 0.75rem;
    }

    .page-header h2 { font-size: 1.5rem; }

    .stat-value { font-size: 1.85rem; }

    .guardian-table th,
    .guardian-table td {
        padding: 0.75rem 0.65rem;
        font-size: 0.85rem;
    }
}

/* Cyberpunk Globe Button for Guardian */
#cyber-network-container {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

.guardian-shell #cyber-network-container {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.cyber-globe-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
    pointer-events: auto;
}

.cyber-globe-btn {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #7553ec);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    animation: cyberPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

.cyber-globe-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.9);
}

.cyber-globe-btn svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

@keyframes cyberPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.9);
    }
}

/* Media queries for globe button */
@media (max-width: 768px) {
    #cyber-network-container {
        bottom: 16px !important;
        left: 16px !important;
        right: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .guardian-shell #cyber-network-container {
        position: fixed !important;
        bottom: 16px !important;
        left: 16px !important;
        transform: none !important;
    }
    
    .cyber-globe-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .cyber-globe-btn {
        width: 100%;
        height: 100%;
        border-width: 1.5px;
        box-shadow: 0 0 14px rgba(102, 126, 234, 0.5);
    }
    
    .cyber-globe-btn svg {
        width: 22px;
        height: 22px;
    }
}