/* ========================================
   Aurex Hosting — Glow / Neon Dark Theme
   Tokens adapted from /assets/css/global.css
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Self-hosted display face used for brand wordmark, footer headings, section labels.
   Demo file ships uppercase + digits only — fallbacks in --font-brand handle the rest. */
@font-face {
    font-family: 'Akira Expanded';
    src: url('/assets/fonts/akira-expanded.otf') format('opentype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand violet ramp */
    --violet-50:  #f5f3ff;
    --violet-100: #ede9fe;
    --violet-200: #ddd6fe;
    --violet-300: #c4b5fd;
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --violet-700: #6d28d9;
    --violet-800: #5b21b6;
    --violet-900: #4c1d95;

    --primary:        var(--violet-500);
    --primary-hover:  var(--violet-400);
    --primary-deep:   var(--violet-700);

    /* Legacy --blue-* aliases — inline styles in PHP partials still use these */
    --blue-50:  var(--violet-50);
    --blue-100: var(--violet-100);
    --blue-200: var(--violet-200);
    --blue-300: var(--violet-300);
    --blue-400: var(--violet-400);
    --blue-500: var(--violet-500);
    --blue-600: var(--violet-600);
    --blue-700: var(--violet-700);
    --blue-800: var(--violet-800);
    --blue-900: var(--violet-900);

    /* Surfaces — translucent so the photo bg shows through subtly */
    --bg:               #0a0a0a;
    --surface:          rgba(13, 13, 20, 0.82);
    --surface-elevated: rgba(17, 17, 26, 0.88);
    --surface-hover:    rgba(21, 21, 31, 0.92);

    --border:           rgba(255, 255, 255, 0.06);
    --border-strong:    rgba(255, 255, 255, 0.10);
    --border-glow:      rgba(139, 92, 246, 0.35);

    /* Legacy --glass-* aliases (class names .glass and .glass-static stay) */
    --glass-bg:            var(--surface);
    --glass-bg-hover:      var(--surface-hover);
    --glass-border:        var(--border);
    --glass-border-bright: var(--border-glow);
    --glass-shadow:        0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px rgba(0,0,0,0.40);
    --glass-shadow-lg:     0 1px 0 rgba(255,255,255,0.03) inset, 0 16px 40px rgba(0,0,0,0.55);
    --glass-blur:          0px;
    --glass-blur-heavy:    0px;

    /* Status colors — semantic, unchanged */
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.55);
    --yellow: #f59e0b;
    --yellow-glow: rgba(245, 158, 11, 0.55);
    --orange: #f97316;
    --orange-glow: rgba(249, 115, 22, 0.55);
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.55);
    --purple: var(--violet-500);

    /* Text */
    --text-primary:   #ededed;
    --text-secondary: #cbd5e1;
    --text-muted:     #8b8b9a;
    --text-faint:     #5c5c6a;

    /* Glow tokens (one knob to tune intensity globally) */
    --glow-sm: 0 0 8px;
    --glow-md: 0 0 16px;
    --glow-lg: 0 0 20px;
    --glow-xl: 0 0 32px;

    /* Radii */
    --radius:      14px;
    --radius-sm:   10px;
    --radius-xs:   6px;
    --radius-full: 9999px;

    /* Font stacks */
    --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'Akira Expanded', 'Space Grotesk', 'Inter', sans-serif;
    --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Photo backdrop: the page bg. Soft blur, visible but recessed. */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: url('/assets/img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    filter: blur(28px) saturate(115%);
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
}

/* Tinted wash on top of the photo — lighter overall so the photo reads as ambient color,
   warmed with a hint of violet, and fades cleanly to pure black so the solid-black footer
   joins the page without a visible seam. */
.site-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 50% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%),
        linear-gradient(180deg,
            rgba(10, 6, 18, 0.50) 0%,
            rgba(10, 6, 18, 0.60) 45%,
            rgba(6, 4, 14, 0.80) 80%,
            rgba(6, 4, 14, 0.92) 100%);
    pointer-events: none;
}

.bg-orb { display: none; }

/* ========================================
   Card surfaces (.glass kept as a name for compat)
   ======================================== */
.glass,
.glass-static {
    background: var(--surface);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.glass:hover {
    background: var(--surface-elevated);
    border-color: var(--border-glow);
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navbar — the only place backdrop-filter earns its keep
   ======================================== */
.aurex-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.aurex-navbar.is-scrolled {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.aurex-navbar-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 0;
}

.aurex-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: 32px;
    flex-shrink: 0;
}

.aurex-brand img {
    height: 56px;       /* Inspire uses h-16 (64px); 56px keeps navbar slim without cropping */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.aurex-brand-text {
    /* Inspire navbar uses font-poppins font-medium text-2xl */
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.aurex-brand-text sup {
    font-size: 0.5em;
    color: var(--violet-400);
    font-weight: 500;
    vertical-align: super;
    letter-spacing: 0;
    margin-left: 1px;
}

.aurex-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.aurex-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    position: relative;
}

.aurex-nav-link:hover {
    color: var(--text-primary);
}

.aurex-nav-link.active {
    font-weight: 600;
}

/* Removed: glow underline on active link (was reading as a triangle-ish wedge) */

.aurex-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 18px;
    flex-shrink: 0;
}

.aurex-nav-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.aurex-nav-btn-outline:hover {
    border-color: var(--violet-500);
    color: #fff;
    background: rgba(139, 92, 246, 0.08);
    box-shadow: var(--glow-md) rgba(139, 92, 246, 0.22);
}

.aurex-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

@media (max-width: 900px) {
    .aurex-navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 8px;
    }
    .aurex-brand { margin-right: 0; }
    .aurex-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }
    .aurex-nav-actions { order: 2; margin-left: 0; }
    .aurex-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 12px 4px 4px;
        gap: 2px;
        order: 4;
        background: rgba(8, 4, 16, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 4px;
    }
    .aurex-nav-links.open { display: flex; }
    .aurex-nav-link { width: 100%; padding: 11px 14px; font-size: 0.95rem; }
}

@media (max-width: 560px) {
    .aurex-brand img { height: 44px; max-width: 160px; }
    .aurex-brand-text { font-size: 1.1rem; }
    .aurex-cta-group { gap: 4px; padding: 3px; }
    .aurex-cta-btn--ghost { padding: 5px 10px; font-size: 13px; }
    .aurex-cta-btn--ghost .aurex-cta-ghost-icon { width: 16px; height: 16px; }
    .aurex-cta-btn--throw { padding: 3px 12px 3px 3px; font-size: 12px; gap: 4px; }
    .aurex-cta-pearl-img { width: 24px; height: 24px; }
}

/* On the smallest phones, drop the wordmark so the logo + pill cluster fit cleanly */
@media (max-width: 380px) {
    .aurex-brand-text { display: none; }
    .aurex-cta-btn--ghost span,
    .aurex-cta-btn--ghost { font-size: 12px; padding: 5px 8px; }
}

/* Legacy header (admin-only fallback) */
.header { padding: 24px 0; position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-area img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
}
.logo-text {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--violet-200), var(--violet-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-badge {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}
.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   Overall Status Banner — the page's hero
   ======================================== */
.status-banner {
    padding: 36px 32px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.status-banner.operational {
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 70%),
        var(--surface);
    border-color: rgba(16, 185, 129, 0.25);
}
.status-banner.degraded {
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(245, 158, 11, 0.12), transparent 70%),
        var(--surface);
    border-color: rgba(245, 158, 11, 0.25);
}
.status-banner.partial_outage {
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 70%),
        var(--surface);
    border-color: rgba(249, 115, 22, 0.25);
}
.status-banner.major_outage {
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(239, 68, 68, 0.14), transparent 70%),
        var(--surface);
    border-color: rgba(239, 68, 68, 0.30);
}

.status-banner h1 {
    font-family: var(--font-brand);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

/* Glow underline beneath the banner headline — the "✦" / dashed underline from your preview */
.status-banner h1::after {
    content: '';
    display: block;
    width: 220px;
    max-width: 60%;
    height: 1px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--violet-400), transparent);
    box-shadow: var(--glow-md) var(--violet-500);
}

.status-banner .status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    vertical-align: middle;
}

.status-dot.operational    { background: var(--green);  box-shadow: var(--glow-md) var(--green-glow); }
.status-dot.degraded       { background: var(--yellow); box-shadow: var(--glow-md) var(--yellow-glow); }
.status-dot.partial_outage { background: var(--orange); box-shadow: var(--glow-md) var(--orange-glow); }
.status-dot.major_outage   { background: var(--red);    box-shadow: var(--glow-md) var(--red-glow); }

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.35;
    animation: pulse-ring 2.4s ease-out infinite;
}
.status-dot.operational::after    { border-color: var(--green); }
.status-dot.degraded::after       { border-color: var(--yellow); }
.status-dot.partial_outage::after { border-color: var(--orange); }
.status-dot.major_outage::after   { border-color: var(--red); }

@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.45; }
    100% { transform: scale(2);   opacity: 0; }
}

.status-banner .status-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* ========================================
   Category Section (collapsible)
   ======================================== */
.category-section { margin-bottom: 20px; }
.category-section > .glass-static { overflow: visible; }
.category-body > .monitor-detail:last-child,
.category-body > .monitor-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
    user-select: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

.category-header:hover { background: rgba(139, 92, 246, 0.04); }

.category-chevron {
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.category-chevron.rotated { transform: rotate(-90deg); }

.category-body { overflow: visible; }
.category-body.collapsed { max-height: 0; opacity: 0; }

.category-name {
    font-family: var(--font-brand);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-primary);
}

.category-status {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Monitor Row
   ======================================== */
.monitor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: transparent;
    cursor: pointer;
    transition: background 0.12s ease;
}

.monitor-item:hover { background: rgba(139, 92, 246, 0.035); }
.monitor-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }

.monitor-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 220px;
    min-width: 0;
}

.monitor-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.monitor-status-dot.operational    { background: var(--green);  box-shadow: var(--glow-sm) var(--green-glow); }
.monitor-status-dot.degraded       { background: var(--yellow); box-shadow: var(--glow-sm) var(--yellow-glow); }
.monitor-status-dot.partial_outage { background: var(--orange); box-shadow: var(--glow-sm) var(--orange-glow); }
.monitor-status-dot.major_outage   { background: var(--red);    box-shadow: var(--glow-sm) var(--red-glow); }
.monitor-status-dot.paused         { background: var(--yellow); box-shadow: var(--glow-sm) var(--yellow-glow); }

.monitor-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.monitor-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.monitor-uptime {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
    min-width: 64px;
    text-align: right;
    white-space: nowrap;
}

/* ========================================
   Uptime Bars (90-day)
   ======================================== */
.uptime-bars {
    display: flex;
    gap: 2px;
    align-items: stretch;
    height: 28px;
    flex: 1;
    min-width: 0;
}

.uptime-bar {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 2px;
    height: 28px;
    transition: opacity 0.15s ease, filter 0.15s ease;
    position: relative;
    opacity: 0.88;
}

.uptime-bar:hover { opacity: 1; filter: brightness(1.25); }

.uptime-bar.operational { background: var(--green); }
.uptime-bar.degraded    { background: var(--yellow); }
.uptime-bar.partial     { background: var(--orange); }
.uptime-bar.major       { background: var(--red); }
.uptime-bar.empty       { background: rgba(255, 255, 255, 0.05); opacity: 1; }

.uptime-bar-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0b0b14;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 5px 9px;
    border-radius: 5px;
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 200;
    pointer-events: none;
    border: 1px solid var(--border-strong);
    box-shadow: 0 4px 14px rgba(0,0,0,0.6), var(--glow-md) rgba(139, 92, 246, 0.15);
}

.uptime-bar:hover .uptime-bar-tooltip { display: block; }

/* ========================================
   Monitor Detail Expansion
   ======================================== */
.monitor-detail {
    display: none;
    padding: 20px 22px;
    background: rgba(0,0,0,0.30);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.monitor-detail.active {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.response-chart-container {
    height: 180px;
    margin-top: 12px;
    position: relative;
    width: 100%;
}
.response-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.detail-stat {
    background: rgba(255,255,255,0.02);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.detail-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.detail-stat-value {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Incidents
   ======================================== */
.incidents-section { margin-top: 40px; }

.section-title {
    font-family: var(--font-brand);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-title .icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    color: var(--violet-400);
}

.incident-card {
    padding: 20px 22px;
    margin-bottom: 10px;
}

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

.incident-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.incident-severity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.severity-investigating { background: rgba(239, 68, 68, 0.12);  color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.25); }
.severity-identified    { background: rgba(249, 115, 22, 0.12); color: #fdba74; box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25); }
.severity-monitoring    { background: rgba(139, 92, 246, 0.12); color: var(--violet-300); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.30); }
.severity-resolved      { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25); }
.severity-maintenance   { background: rgba(167, 139, 250, 0.12); color: var(--violet-300); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.30); }

.incident-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.incident-updates {
    border-left: 1px solid var(--border-strong);
    padding-left: 16px;
    margin-top: 12px;
}

.incident-update {
    margin-bottom: 12px;
    position: relative;
}

.incident-update::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--violet-500);
    box-shadow: var(--glow-sm) var(--violet-500);
}

.incident-update-time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.incident-update-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.incident-update-severity {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 4px;
    color: var(--violet-300);
}

/* ========================================
   Scheduled Maintenance
   ======================================== */
.maintenance-card {
    padding: 18px 22px;
    margin-bottom: 10px;
    border-left: 2px solid var(--violet-500);
    box-shadow: inset 8px 0 16px -8px rgba(139, 92, 246, 0.20);
}

.maintenance-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--violet-300);
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 40px 0 32px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.30), transparent);
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.footer-text a {
    color: var(--violet-400);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-text a:hover {
    color: var(--violet-300);
    text-shadow: var(--glow-sm) var(--violet-500);
}

.footer-powered {
    font-family: var(--font-brand);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-faint);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-powered a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.footer-powered a:hover {
    color: var(--violet-400);
    text-shadow: var(--glow-sm) var(--violet-500);
}

/* ========================================
   Subscribe Flash Messages
   ======================================== */
.subscribe-flash {
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.82rem;
    margin-bottom: 14px;
    text-align: center;
}

.subscribe-flash-success {
    background: rgba(16, 185, 129, 0.10);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.subscribe-flash-error {
    background: rgba(239, 68, 68, 0.10);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.subscribe-flash-info {
    background: rgba(139, 92, 246, 0.10);
    color: var(--violet-300);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

/* ========================================
   No Data State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.25;
}

/* ========================================
   List Cards (clickable cards on list pages)
   ======================================== */
.list-card {
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.list-card:hover {
    background: var(--surface-elevated);
    border-color: var(--border-glow);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(139, 92, 246, 0.10);
}
.list-card a[href] {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.15s;
}
.list-card a[href]:hover {
    color: var(--violet-300) !important;
}
.list-card a[href]:visited {
    color: var(--violet-400);
}

/* ========================================
   Back Link
   ======================================== */
.back-link {
    font-size: 0.82rem;
    color: var(--violet-400);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}
.back-link:hover {
    color: var(--violet-300);
    text-shadow: var(--glow-sm) var(--violet-500);
}
.back-link:visited { color: var(--violet-400); }

@media (max-width: 640px) {
    .list-card { padding: 14px 16px; }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar              { width: 8px; height: 8px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: rgba(139, 92, 246, 0.20); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(139, 92, 246, 0.40); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-inner { flex-direction: column; gap: 12px; }
    .status-banner { padding: 24px 18px; }
    .status-banner h1 { font-size: 1.25rem; }
    .monitor-item { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .monitor-left { flex: 0 0 100%; }
    .monitor-right { flex: 0 0 100%; }
    .uptime-bars { overflow-x: auto; }
    .detail-stats { grid-template-columns: repeat(2, 1fr); }
    .category-header { padding: 14px 16px; }
}

/* ========================================
   Admin Styles
   ======================================== */
.admin-body {
    background: var(--bg);
}

.admin-header {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(139, 92, 246, 0.30), transparent 90%);
    pointer-events: none;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    transition: all 0.15s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.admin-nav a.active {
    background: rgba(139, 92, 246, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.30);
}

.admin-nav .nav-brand {
    font-family: var(--font-brand);
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 16px;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-nav .nav-brand img {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.50));
}

.admin-nav .nav-right { margin-left: auto; }

.admin-title {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 22px 20px;
    text-align: left;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 600;
}

/* Forms */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--violet-500);
    background: rgba(139, 92, 246, 0.04);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), var(--glow-md) rgba(139, 92, 246, 0.20);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a78bfa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select option {
    background: var(--surface-elevated);
    color: var(--text-primary);
}

.form-textarea { resize: vertical; min-height: 100px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(180deg, var(--violet-500), var(--violet-600));
    box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 4px 14px rgba(124, 58, 237, 0.40);
}
.btn-primary:hover {
    background: linear-gradient(180deg, var(--violet-400), var(--violet-500));
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--glow-lg) rgba(139, 92, 246, 0.55);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 2px 8px rgba(124, 58, 237, 0.30);
}

.btn-danger {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 4px 14px rgba(220, 38, 38, 0.35);
}
.btn-danger:hover {
    background: linear-gradient(180deg, #f87171, #ef4444);
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--glow-lg) rgba(239, 68, 68, 0.50);
}

.btn-sm { padding: 7px 12px; font-size: 0.76rem; }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--violet-500);
    color: #fff;
    box-shadow: var(--glow-md) rgba(139, 92, 246, 0.22);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-strong);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-secondary);
}

.data-table tr:hover td { background: rgba(139, 92, 246, 0.04); }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-operational    { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25); }
.badge-degraded       { background: rgba(245, 158, 11, 0.12); color: #fcd34d; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25); }
.badge-partial_outage { background: rgba(249, 115, 22, 0.12); color: #fdba74; box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25); }
.badge-major_outage   { background: rgba(239, 68, 68, 0.12);  color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.25); }

/* Login Page */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 36px 32px;
}

.login-title {
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.login-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.84rem;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(139, 92, 246, 0.10);
}

.modal-title {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Inline form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   Roadmap Page
   ======================================== */
.roadmap-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.roadmap-column-title {
    font-family: var(--font-brand);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.roadmap-column-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.roadmap-card {
    padding: 16px 18px;
    margin-bottom: 10px;
}

.roadmap-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.roadmap-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.roadmap-card-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.roadmap-category-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.12);
    color: var(--violet-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.20);
}

/* ========================================
   Changelog Page
   ======================================== */
.changelog-entry {
    padding: 20px 22px;
    margin-bottom: 10px;
    position: relative;
}

.changelog-version {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--violet-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.changelog-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.changelog-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.changelog-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.changelog-type {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.63rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   Incident History Page
   ======================================== */
.incident-month-header {
    font-family: var(--font-brand);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
}

.incident-month-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--violet-400);
    box-shadow: var(--glow-sm) var(--violet-500);
}

.incident-month-header:first-child { margin-top: 0; }

.no-incidents-day {
    padding: 14px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Page header */
.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--violet-500);
}

.filter-tab.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.14);
    border-color: var(--violet-500);
    box-shadow: var(--glow-md) rgba(139, 92, 246, 0.30);
}

/* Reduced-motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}

/* ========================================
   Aurex Overhaul (2026-05) — tokens & primitives
   New additions; existing rules above are untouched.
   ======================================== */

:root {
    /* Card shadows */
    --shadow-card:        0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.6);
    --shadow-card-hover:  0 4px 12px rgba(139,92,246,0.18), 0 2px 4px rgba(0,0,0,0.6);

    /* Focus ring (WCAG-friendly) */
    --focus-ring: 0 0 0 2px rgba(139, 92, 246, 0.45);

    /* Motion */
    --t-fast: 0.15s ease;
    --t-mid:  0.25s ease;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
}

/* Activate Inter's single-storey "a" + alt "g" globally */
body {
    font-feature-settings: "cv11", "ss01", "ss03";
}

/* Reusable focus ring on interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-xs);
}

/* Operational dot pulse — only on .status-dot.operational (hero) */
@keyframes glow-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.hero-card .status-dot.operational,
.hero-card .hero-status-dot.operational {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ----------------------------------------
   Hero card
---------------------------------------- */
.hero-card {
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: var(--space-5);
    position: relative;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.40), transparent);
    pointer-events: none;
}

.hero-card[data-overall-status="operational"]    { border-left-color: var(--green); }
.hero-card[data-overall-status="degraded"]       { border-left-color: var(--yellow); }
.hero-card[data-overall-status="partial_outage"] { border-left-color: var(--orange); }
.hero-card[data-overall-status="major_outage"]   { border-left-color: var(--red); }

.hero-status {
    flex: 1 1 auto;
    padding: 28px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: radial-gradient(80% 100% at 0% 50%, rgba(139, 92, 246, 0.06), transparent 70%);
}

.hero-card[data-overall-status="operational"]    .hero-status { background: radial-gradient(80% 100% at 0% 50%, rgba(16, 185, 129, 0.10), transparent 70%); }
.hero-card[data-overall-status="degraded"]       .hero-status { background: radial-gradient(80% 100% at 0% 50%, rgba(245, 158, 11, 0.10), transparent 70%); }
.hero-card[data-overall-status="partial_outage"] .hero-status { background: radial-gradient(80% 100% at 0% 50%, rgba(249, 115, 22, 0.10), transparent 70%); }
.hero-card[data-overall-status="major_outage"]   .hero-status { background: radial-gradient(80% 100% at 0% 50%, rgba(239, 68, 68, 0.12), transparent 70%); }

.hero-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.hero-status-dot.operational    { background: var(--green);  box-shadow: var(--glow-md) var(--green-glow); }
.hero-status-dot.degraded       { background: var(--yellow); box-shadow: var(--glow-md) var(--yellow-glow); }
.hero-status-dot.partial_outage { background: var(--orange); box-shadow: var(--glow-md) var(--orange-glow); }
.hero-status-dot.major_outage   { background: var(--red);    box-shadow: var(--glow-md) var(--red-glow); }

.hero-status-label {
    font-family: var(--font-brand);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-uptime {
    flex: 0 0 auto;
    padding: 28px 28px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-left: 1px solid var(--border-strong);
    background: rgba(255,255,255,0.01);
    min-width: 200px;
}

.hero-uptime-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1;
}
.hero-uptime-value.muted { color: var(--text-faint); }

.hero-uptime-caption {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

@media (max-width: 720px) {
    .hero-card { flex-direction: column; }
    .hero-uptime {
        border-left: none;
        border-top: 1px solid var(--border-strong);
        text-align: left;
        padding: 18px 24px;
        min-width: 0;
    }
    .hero-status { padding: 22px 24px; }
    .hero-status-label { font-size: 1.15rem; }
    .hero-uptime-value { font-size: 1.4rem; }
}

/* ----------------------------------------
   Stat tiles
---------------------------------------- */
.stat-tile-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.stat-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 18px 16px;
    position: relative;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.stat-tile:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.stat-tile-value {
    font-family: var(--font-mono);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-tile-label {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.stat-tile[data-stat="operational"]    .stat-tile-value { color: var(--green); }
.stat-tile[data-stat="degraded"]       .stat-tile-value { color: var(--yellow); }
.stat-tile[data-stat="partial_outage"] .stat-tile-value { color: var(--orange); }
.stat-tile[data-stat="major_outage"]   .stat-tile-value { color: var(--red); }
.stat-tile[data-stat="total"]          .stat-tile-value { color: var(--text-primary); }

/* Muted when value is zero — keeps empty state dignified */
.stat-tile[data-zero="1"] .stat-tile-value { color: var(--text-faint); }

@media (max-width: 720px) {
    .stat-tile-row { grid-template-columns: repeat(2, 1fr); }
    .stat-tile[data-stat="total"] { grid-column: span 2; }
}

/* ----------------------------------------
   Pills (severity / type / status chips)
---------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1.4;
}

.pill--ok   { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25); }
.pill--warn { background: rgba(245, 158, 11, 0.12); color: #fcd34d; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25); }
.pill--bad  { background: rgba(239, 68, 68, 0.12);  color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.25); }
.pill--info { background: rgba(139, 92, 246, 0.12); color: var(--violet-300); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.30); }
.pill--neutral { background: rgba(255,255,255,0.04); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* ----------------------------------------
   Live pill (Last updated indicator)
---------------------------------------- */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.live-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green-glow);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.85); }
}

.live-pill--healthy { /* default */ }
.live-pill--stale   .live-pill-dot { background: var(--yellow); box-shadow: 0 0 6px var(--yellow-glow); }
.live-pill--stale                  { color: var(--text-secondary); }
.live-pill--lost    .live-pill-dot { background: var(--red); box-shadow: 0 0 6px var(--red-glow); animation: none; }
.live-pill--lost                   { color: #fca5a5; border-color: rgba(239,68,68,0.30); }

.live-pill-toggle {
    background: none;
    border: none;
    color: var(--text-faint);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0 2px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}
.live-pill-toggle:hover { color: var(--violet-300); }

/* ----------------------------------------
   Subscribe strip
---------------------------------------- */
.subscribe-strip {
    margin: var(--space-7) 0 0;
    padding: 20px 24px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(124, 58, 237, 0.05)),
        var(--surface);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.subscribe-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.40), transparent);
    pointer-events: none;
}

.subscribe-strip-text {
    flex: 1 1 auto;
    min-width: 220px;
}
.subscribe-strip-title {
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.subscribe-strip-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .subscribe-strip { padding: 18px; }
}

/* ----------------------------------------
   Divider
---------------------------------------- */
.divider {
    height: 1px;
    border: none;
    margin: var(--space-5) 0;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ----------------------------------------
   Section heading (replaces .section-title; not removing the old)
---------------------------------------- */
.section-heading {
    font-family: var(--font-brand);
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-primary);
    margin: var(--space-5) 0 var(--space-3);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-heading .chevron-link {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--violet-400);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.section-heading .chevron-link:hover { color: var(--violet-300); }

/* ----------------------------------------
   Kbd (defined for future use)
---------------------------------------- */
.kbd {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

/* ----------------------------------------
   Auth card (admin login)
---------------------------------------- */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card), 0 24px 60px rgba(0,0,0,0.5);
    padding: 36px 36px 28px;
    width: 100%;
    max-width: 380px;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.50), transparent);
}
.auth-card::after {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 240px;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.auth-card > * { position: relative; z-index: 1; }

/* ----------------------------------------
   Hamburger toggle (open state)
---------------------------------------- */
.aurex-mobile-toggle .icon-close { display: none; }
.aurex-mobile-toggle.is-open .icon-open  { display: none; }
.aurex-mobile-toggle.is-open .icon-close { display: inline-block; }

/* ----------------------------------------
   Empty-state monitor card (when zero monitors)
---------------------------------------- */
.empty-monitors-card {
    padding: 28px 24px;
    text-align: center;
}
.empty-monitors-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.empty-monitors-card .admin-cta {
    font-size: 0.8rem;
    color: var(--violet-400);
    text-decoration: none;
}
.empty-monitors-card .admin-cta:hover { color: var(--violet-300); }

/* ----------------------------------------
   404 page
---------------------------------------- */
.notfound-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 16px;
}
.notfound-card {
    text-align: center;
    padding: 48px 32px;
    max-width: 480px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.notfound-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.50), transparent);
}
.notfound-code {
    font-family: var(--font-brand);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--violet-200), var(--violet-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.notfound-title {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}
.notfound-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

/* ----------------------------------------
   Auth page layout helpers (login)
---------------------------------------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    z-index: 1;
}
.auth-brand {
    text-align: center;
    margin-bottom: 16px;
}
.auth-brand img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.35));
}
.auth-title {
    font-family: var(--font-brand);
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.auth-sub {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 22px;
}
.auth-form { margin-top: 4px; }
.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 11px 0;
    margin-top: 6px;
}
.auth-foot {
    text-align: center;
    margin-top: 20px;
}
.auth-back {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--t-fast);
}
.auth-back:hover { color: var(--violet-400); }

/* ----------------------------------------
   Admin dashboard summary tiles spacing
---------------------------------------- */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}
@media (max-width: 900px) {
    .admin-dashboard-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------
   Aurex CTA pill-group (navbar right side)
   Inspired by Inspire/NavbarSection.tsx pill container.
---------------------------------------- */
.aurex-cta-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;                                  /* gap-2 */
    padding: 4px;                              /* p-1 */
    border: 2px solid rgba(192, 132, 252, 0.30); /* border-2 border-purple-400/30 */
    border-radius: 1.5rem;                     /* rounded-3xl */
    background: transparent;
    transition: border-color var(--t-fast);
}

.aurex-cta-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', 'Inter', sans-serif;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast), filter var(--t-fast);
}
/* WWW.AUREX.LK CTA — domain wordmark style */
.aurex-cta-btn--ghost {
    padding: 6px 14px;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: transparent;
    color: #d1d5db;                            /* text-gray-300 */
    border-radius: 999px;
}
.aurex-cta-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.aurex-cta-ghost-icon { flex-shrink: 0; opacity: 0.85; }
/* Throw CTA — pl-1 pr-4 py-1 text-sm bg-gradient-to-r from-[#0d3d3a] via-[#0d3d3a] (→ transparent) */
.aurex-cta-btn--throw {
    padding: 4px 16px 4px 4px;
    gap: 8px;
    font-size: 14px;                           /* text-sm */
    font-weight: 400;
    background: linear-gradient(to right, #0d3d3a 0%, #0d3d3a 60%, rgba(13, 61, 58, 0) 100%);
    color: #fff;
    border-radius: 999px;                      /* rounded-full */
}
.aurex-cta-btn--throw:hover {
    filter: brightness(1.10);
}
.aurex-cta-pearl-img {
    width: 32px;                               /* w-8 h-8 */
    height: 32px;
    object-fit: contain;
    transition: transform var(--t-fast);
}
.aurex-cta-btn--throw:hover .aurex-cta-pearl-img {
    transform: scale(1.05);
}

/* ----------------------------------------
   Site footer — Aurex Inspire (clean, solid black)
---------------------------------------- */
.site-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 96px;
    /* Top edge starts at the same near-black violet tone the page overlay fades into,
       then deepens to solid black — the seam between the page and footer dissolves. */
    background:
        linear-gradient(180deg,
            rgba(6, 4, 14, 0.92) 0%,
            #050208 22%,
            #000 70%,
            #000 100%);
    overflow: hidden;
    isolation: isolate;
}
.site-footer-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Subtle bottom-anchored violet wash, mirroring the page's top-anchored violet wash —
       both halves of the layout share the same accent color. */
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(124, 58, 237, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}
.site-footer-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 24px 48px;
}

.site-footer-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 80px;
}
@media (min-width: 1024px) {
    .site-footer-grid { flex-direction: row; }
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 384px;
}
.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.site-footer-logo img {
    width: 56px;
    height: auto;
}
.site-footer-logo span {
    font-family: var(--font-brand);
    color: #fff;
    font-size: 1.875rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.site-footer-tagline {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.625;
    margin: 0;
}

.site-footer-social { display: flex; flex-direction: column; gap: 8px; }
.site-footer-social-label {
    color: rgba(255, 255, 255, 0.30);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.20em;
}
.site-footer-social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social-icon {
    color: #6b7280;
    transition: color 200ms ease;
    display: inline-flex;
}
.social-icon--discord:hover   { color: #5865F2; }
.social-icon--tiktok:hover    { color: #fff;    }
.social-icon--instagram:hover { color: #ec4899; }
.social-icon--youtube:hover   { color: #ef4444; }

.site-footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}
@media (min-width: 640px) {
    .site-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.site-footer-heading {
    font-family: var(--font-brand);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.10em;
    font-weight: 700;
}
.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.site-footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 1rem;
    transition: color 200ms ease;
}
.site-footer-links a:hover { color: #fff; }

.site-footer-bottom {
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
@media (min-width: 640px) {
    .site-footer-bottom { flex-direction: row; justify-content: space-between; }
}
.site-footer-copy {
    color: #4b5563;
    font-size: 0.875rem;
    margin: 0;
}
.site-footer-credit {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}
@media (min-width: 640px) {
    .site-footer-credit { text-align: right; }
}

@media (max-width: 768px) {
    .site-footer { margin-top: 64px; }
    .site-footer-inner { padding: 64px 20px 32px; }
    .site-footer-grid { gap: 56px; }
    .site-footer-bottom { margin-top: 56px; }
}

/* ----------------------------------------
   Card hover lift (informational cards)
   Subtle 2px translate + soft shadow bump on hover.
   Excludes interactive surfaces (modal, monitor row, etc.).
---------------------------------------- */
.glass-static {
    transition: border-color var(--t-mid), background var(--t-mid),
                box-shadow var(--t-mid), transform var(--t-mid);
}
.incident-card:hover,
.maintenance-card:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.30);
    box-shadow:
        var(--glass-shadow-lg),
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(139, 92, 246, 0.06);
}

/* Tighten section-heading: a refined display-feel + violet uppercase tint  */
.section-heading {
    color: var(--violet-300);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    margin-top: var(--space-6);
}
.section-heading .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
