/* Argus Theme — cybersecurity ops shell (light / dark) */

:root {
    --argus-blue: #2563EB;
    --argus-blue-hover: #1D4ED8;
    --argus-accent: #0D9488;
    --argus-accent-hover: #0F766E;
    --argus-accent-soft: rgba(13, 148, 136, 0.12);
    --text-dark: #0B1220;
    --white: #FFFFFF;
    --sidebar-bg: #0B1220;
    --sidebar-hover: #1E293B;
    --sidebar-width: 260px;
    --table-header: #F1F5F9;
    --table-hover: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
    --shadow-md: 0 4px 14px rgba(11, 18, 32, 0.1);
    --shadow-lg: 0 12px 32px rgba(11, 18, 32, 0.14);
    --shadow-xl: 0 20px 48px rgba(11, 18, 32, 0.16);
    --border-subtle: rgba(11, 18, 32, 0.1);
    --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    /* Light mode (default) — cool slate surfaces, navy chrome */
    --bg-primary: #F4F6F9;
    --bg-elevated: #FFFFFF;
    --bg-header-footer: #0B1220;
    --text-primary: #0B1220;
    --text-muted: #64748B;
    --text-inverse: #E8EEF5;
    --chart-work-bar: #94A3B8;
    --chart-personal-bar: #0B1220;
    --swal-bg: #FFFFFF;
    --swal-text: #0B1220;
}

[data-theme="dark"] {
    --bg-primary: #0B1220;
    --bg-elevated: #111827;
    --bg-header-footer: #111827;
    --text-primary: #E5E7EB;
    --text-muted: #94A3B8;
    --text-inverse: #E5E7EB;
    --argus-accent: #14B8A6;
    --argus-accent-hover: #2DD4BF;
    --argus-accent-soft: rgba(20, 184, 166, 0.15);
    --table-header: #1F2937;
    --table-hover: #1E293B;
    --border-subtle: rgba(148, 163, 184, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.5);
    --chart-work-bar: #334155;
    --chart-personal-bar: #14B8A6;
    --swal-bg: #111827;
    --swal-text: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════
   TWO-COLUMN SIDEBAR  (rail + panel)
   ═══════════════════════════════════════════════════════ */
:root {
    --rail-width: 72px;
    --panel-width: 220px;
    --sidebar-width: var(--rail-width); /* collapsed: only rail */
}

/* When panel is open the sidebar expands */
body.sidebar-panel-open:not(.sidebar-collapsed) {
    --sidebar-width: calc(var(--rail-width) + var(--panel-width));
}

/* Desktop: hamburger collapses the entire rail */
body.sidebar-collapsed {
    --sidebar-width: 0px;
}

body.sidebar-collapsed .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

body.sidebar-collapsed .main-content,
body.sidebar-collapsed > footer {
    margin-left: 0 !important;
    width: 100% !important;
}

body.sidebar-collapsed .sidebar-panel {
    display: none;
}

/* Sidebar – no shadow at header/footer junctions; content has its own shadow */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: transparent;
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: row;
    transition: width 0.25s ease;
    z-index: 1000;
}

/* ── Rail (left icon column) ── */
.sidebar-rail {
    width: var(--rail-width);
    min-width: var(--rail-width);
    height: 100vh;
    background: var(--bg-header-footer);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1001;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.rail-logo {
    padding: 12px 0 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 6px;
    flex-shrink: 0;
}

.rail-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(45, 212, 191, 0.28);
    background: radial-gradient(circle at 50% 40%, #1a2333 0%, #070d18 70%);
    box-shadow: 0 0 16px rgba(13, 148, 136, 0.18);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rail-logo-link:hover {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.28);
    transform: translateY(-1px);
}

.rail-logo img,
.rail-logo #logoImage {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px;
    object-fit: contain !important;
    object-position: center;
    border-radius: 12px;
    filter: none !important;
    display: block !important;
    background: transparent;
}

.rail-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rail-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px 4px;
    border-radius: 8px;
    transition: background 0.15s ease;
    position: relative;
    user-select: none;
}

.rail-item:hover,
.rail-item.active {
    background: rgba(255,255,255,0.12);
}

[data-theme="dark"] .rail-item:hover,
[data-theme="dark"] .rail-item.active {
    background: rgba(255,255,255,0.1);
}

.rail-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    opacity: 0.75;
}

.rail-item:hover .rail-icon,
.rail-item.active .rail-icon {
    opacity: 1;
}

.rail-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rail-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-inverse);
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-item:hover .rail-label,
.rail-item.active .rail-label {
    opacity: 1;
}

/* ── Panel (right sub-menu column) ── */
.sidebar-panel {
    position: fixed;
    left: var(--rail-width);
    top: 0;
    width: var(--panel-width);
    height: 100vh;
    background: var(--bg-header-footer);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    z-index: 999;
    box-shadow: 4px 0 16px rgba(0,0,0,0.15);
    overflow: hidden;
}

.sidebar-panel.open {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-inverse);
    opacity: 0.9;
}

.sidebar-panel-close {
    background: none;
    border: none;
    color: var(--text-inverse);
    opacity: 0.5;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity 0.15s;
}

.sidebar-panel-close:hover { opacity: 1; }

.sidebar-panel-search {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.sidebar-panel-search .menu-search-input {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-inverse);
    outline: none;
}

.sidebar-panel-search .menu-search-input::placeholder { opacity: 0.5; }

.sidebar-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Panel menu items */
.panel-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-inverse);
    opacity: 0.45;
    padding: 12px 14px 4px;
    display: block;
}

.panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: var(--text-inverse);
    opacity: 0.8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.12s ease, opacity 0.12s ease;
    cursor: pointer;
}

.panel-item:hover {
    background: rgba(255,255,255,0.1);
    opacity: 1;
    text-decoration: none;
    color: var(--text-inverse);
}

.panel-item.active {
    background: rgba(255,255,255,0.14);
    opacity: 1;
    font-weight: 600;
}

[data-theme="dark"] .panel-item:hover,
[data-theme="dark"] .panel-item.active {
    background: rgba(255,255,255,0.08);
}

/* ── Legacy nav-menu / nav-icon kept for compat ── */
.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
    overflow-x: hidden;
    transition: margin-left 0.25s ease, width 0.25s ease;
}

/* Header – no shadow; only content area has shadow */
.top-header {
    background: var(--bg-header-footer);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 32px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .top-header {
    border-bottom: 1px solid rgba(10, 14, 39, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-inverse);
    letter-spacing: -0.3px;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--argus-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.login-button:hover {
    background: var(--argus-blue-hover);
    color: var(--white);
}

.login-button svg {
    stroke: currentColor;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.7;
    font-family: var(--font-mono);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.22);
    transition: 0.3s;
    border-radius: 24px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-inverse);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.theme-slider {
    background-color: var(--argus-accent);
}

input:checked+.theme-slider:before {
    transform: translateX(20px);
}

/* Content Area – recessed/sunken look: inset shadows on top, left and bottom */
.content {
    padding: 32px;
    background: var(--bg-primary);
    min-height: calc(100vh - 70px);
    max-width: 100%;
    box-sizing: border-box;
    box-shadow:
        inset 0 6px 12px -4px rgba(0, 0, 0, 0.1),
        inset 6px 0 12px -4px rgba(0, 0, 0, 0.08),
        inset 0 -4px 10px -4px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .content {
    box-shadow:
        inset 0 8px 16px -4px rgba(0, 0, 0, 0.35),
        inset 8px 0 16px -4px rgba(0, 0, 0, 0.25),
        inset 0 -6px 12px -4px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(10, 14, 39, 0.1);
    padding: 12px 32px;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.breadcrumb-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: var(--text-primary);
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb span:not(.breadcrumb-separator) {
    color: var(--text-primary);
    opacity: 0.9;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-primary);
    opacity: 0.4;
    user-select: none;
}

/* Footer – no shadow; content area has its own shadow */
footer {
    background: var(--bg-header-footer);
    color: var(--text-inverse);
    padding: 50px 32px 32px;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: background 0.3s ease, color 0.3s ease, margin-left 0.3s ease, width 0.3s ease;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-inverse);
}

.footer-brand p {
    color: var(--text-inverse);
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-location,
.footer-email {
    color: var(--text-inverse);
    opacity: 0.7;
    font-size: 13px;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-inverse);
}

.footer-section a {
    color: var(--text-inverse);
    opacity: 0.7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--text-inverse);
    opacity: 1;
    padding-left: 4px;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    opacity: 0.6;
    font-size: 13px;
    margin-top: 32px;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Elements - Common styles from örnek5-components.html */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--argus-accent);
    box-shadow: 0 0 0 3px var(--argus-accent-soft);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .form-select:focus {
    box-shadow: 0 0 0 3px var(--argus-accent-soft);
}

/* Cards */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--argus-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--argus-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.35);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    transform: scaleY(1);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-primary);
}

/* Header hamburger toggle (always visible) */
.header-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 4px 0 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-inverse);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.header-sidebar-toggle:hover {
    background: rgba(10, 14, 39, 0.1);
}

[data-theme="dark"] .header-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-sidebar-toggle-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Responsive — match sidebar-toggle.js breakpoint */
@media (max-width: 900px) {

    :root,
    body.sidebar-collapsed {
        --sidebar-width: 0;
    }

    body.sidebar-collapsed .sidebar {
        width: calc(var(--rail-width) + var(--panel-width)) !important;
        min-width: calc(var(--rail-width) + var(--panel-width)) !important;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
    }

    .sidebar {
        transform: translateX(-100%);
        width: calc(var(--rail-width) + var(--panel-width));
        opacity: 1;
    }

    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
        pointer-events: auto;
        opacity: 1;
    }

    .sidebar-panel {
        position: relative;
        left: 0;
        transform: none;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-header {
        padding: 0 16px;
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        gap: 12px;
    }

    footer {
        margin-left: 0;
        width: 100%;
        padding: 50px 24px 32px;
    }

    .breadcrumb {
        padding: 12px 24px;
    }
}

/* User Menu */
.user-menu-container {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: transparent;
}

.user-menu:hover {
    background: rgba(10, 14, 39, 0.1);
}

[data-theme="dark"] .user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--argus-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-inverse);
    white-space: nowrap;
}

.user-menu-arrow {
    width: 16px;
    height: 16px;
    stroke: var(--text-inverse);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.user-menu-container.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--bg-primary);
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-container.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--text-primary);
    opacity: 1;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--argus-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--text-primary);
    opacity: 0.1;
    margin: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    font-family: inherit;
}

.user-dropdown-item button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
}

.user-dropdown-item:hover {
    background: rgba(10, 14, 39, 0.05);
}

[data-theme="dark"] .user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-item svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.user-dropdown-item-danger {
    color: #DC2626;
}

.user-dropdown-item-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .user-menu {
        padding: 6px;
    }
}

/* Auto Refresh Toggle */
.auto-refresh-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(10, 14, 39, 0.1);
    border-radius: 8px;
    margin-left: 16px;
}

[data-theme="dark"] .auto-refresh-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.auto-refresh-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-inverse);
    white-space: nowrap;
}

.refresh-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-inverse);
    flex-shrink: 0;
}

.auto-refresh-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.auto-refresh-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.auto-refresh-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 22px;
}

.auto-refresh-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-inverse);
    transition: 0.3s;
    border-radius: 50%;
}

.auto-refresh-switch input:checked+.auto-refresh-slider {
    background-color: var(--argus-blue);
}

.auto-refresh-switch input:checked+.auto-refresh-slider:before {
    transform: translateX(18px);
}

/* Refresh Button: visible when auto-refresh is OFF, hidden when ON (see body.auto-refresh-on below) */
.refresh-icon-btn,
.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--text-primary);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.refresh-icon-btn:hover,
.refresh-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.refresh-icon-btn svg,
.refresh-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Quick Stat with refresh button */
.quick-stat {
    position: relative;
}

/* Card with refresh button */
.card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header .refresh-icon-btn,
.card-header .refresh-btn {
    margin-left: auto;
}

/* When header auto-refresh is ON, hide refresh icon buttons */
body.auto-refresh-on .refresh-icon-btn,
body.auto-refresh-on .refresh-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .auto-refresh-toggle {
        margin-left: 8px;
        padding: 4px 8px;
    }

    .auto-refresh-label {
        font-size: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-sections {
        grid-template-columns: 1fr;
    }
}

/* Auto-refresh styles */
body.auto-refresh-on .refresh-icon-btn {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════
   Site search / command palette / marketing shell
   ═══════════════════════════════════════════════════════ */
.site-search {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-input {
    width: 180px;
    max-width: 28vw;
    height: 36px;
    padding: 0 12px 0 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-inverse);
    font-size: 13px;
    font-family: var(--font-sans);
    transition: width 0.25s ease, background 0.2s, border-color 0.2s;
}

.site-search-input::placeholder {
    color: var(--text-inverse);
    opacity: 0.45;
}

.site-search-input:focus {
    outline: none;
    width: 240px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--argus-accent);
}

.site-search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--text-inverse);
    opacity: 0.5;
    pointer-events: none;
}

.site-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1200;
    display: none;
}

.site-search-results.open {
    display: block;
}

.site-search-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.15s;
}

.site-search-result:last-child {
    border-bottom: none;
}

.site-search-result:hover,
.site-search-result.active {
    background: var(--argus-accent-soft);
}

.site-search-result-title {
    font-size: 13px;
    font-weight: 600;
}

.site-search-result-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.site-search-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.header-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-inverse);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: var(--font-sans);
}

.header-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--argus-accent);
}

.header-search-btn kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-inverse);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: background 0.2s, border-color 0.2s;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--argus-accent);
}

/* Marketing welcome */
.welcome-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: 72px 0 80px;
    overflow: hidden;
}

.welcome-hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13, 148, 136, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(37, 99, 235, 0.12), transparent 50%),
        linear-gradient(165deg, var(--bg-primary) 0%, var(--bg-elevated) 100%);
    pointer-events: none;
}

[data-theme="dark"] .welcome-hero-atmosphere {
    background:
        radial-gradient(ellipse 80% 60% at 70% 15%, rgba(20, 184, 166, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 45% at 10% 85%, rgba(37, 99, 235, 0.1), transparent 50%),
        linear-gradient(165deg, #0B1220 0%, #111827 100%);
}

.welcome-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    pointer-events: none;
}

[data-theme="dark"] .welcome-hero-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}

.welcome-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: argusHeroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes argusHeroIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.welcome-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
}

[data-theme="light"] .welcome-brand-mark {
    filter: invert(1);
}

.welcome-brand-name {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
    font-family: var(--font-sans);
}

.welcome-headline {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.welcome-support {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin-bottom: 32px;
    line-height: 1.65;
}

.welcome-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-argus-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--argus-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

.btn-argus-primary:hover {
    background: var(--argus-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-argus-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, background 0.2s;
}

.btn-argus-ghost:hover {
    border-color: var(--argus-accent);
    background: var(--argus-accent-soft);
    color: var(--text-primary);
}

.welcome-section {
    padding: 72px 0;
    position: relative;
}

.welcome-section-alt {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.welcome-section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.welcome-section-sub {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 36rem;
}

.welcome-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.welcome-feature {
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
}

.welcome-feature:hover {
    border-color: var(--argus-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.welcome-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--argus-accent-soft);
    color: var(--argus-accent);
    margin-bottom: 14px;
}

.welcome-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.welcome-feature h3 {
    font-size: 16px;
    font-weight: 650;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.welcome-feature p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.welcome-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.welcome-pillar {
    padding: 20px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
}

.welcome-pillar:hover {
    border-color: var(--argus-accent);
    transform: translateY(-2px);
}

.welcome-pillar strong {
    display: block;
    font-size: 15px;
    font-weight: 650;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.welcome-pillar span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dashboard quick stats polish */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.quick-stat {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quick-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--argus-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.quick-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.35);
}

.quick-stat:hover::before {
    transform: scaleX(1);
}

.quick-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--argus-accent-soft);
    color: var(--argus-accent);
    flex-shrink: 0;
}

.quick-stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-stat-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.03em;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.quick-stat-content p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* SweetAlert2 theme bridge */
.swal2-popup.argus-swal {
    background: var(--swal-bg) !important;
    color: var(--swal-text) !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-sans) !important;
}

.swal2-popup.argus-swal .swal2-title,
.swal2-popup.argus-swal .swal2-html-container {
    color: var(--swal-text) !important;
}

.swal2-popup.argus-swal .swal2-confirm {
    background: var(--argus-accent) !important;
}

.swal2-popup.argus-swal .swal2-cancel {
    background: transparent !important;
    color: var(--swal-text) !important;
    border: 1px solid var(--border-subtle) !important;
}

@media (max-width: 1024px) {
    .welcome-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .welcome-feature-grid,
    .welcome-pillars { grid-template-columns: 1fr; }
    .site-search-input { width: 120px; }
    .site-search-input:focus { width: 160px; }
    .header-search-btn span:not(.sr-only) { display: none; }
}

/* ═══ Welcome redesign (aw-*) — replaces giant logo-centric layout ═══ */
.welcome-brand-mark,
.welcome-brand,
.welcome-hero-atmosphere,
.welcome-hero-grid { display: none !important; }

.aw-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: 56px 0 64px;
    overflow: hidden;
}
.aw-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-elevated) 55%, var(--bg-primary) 100%);
}
.aw-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.5;
}
.aw-orb-a {
    width: 380px; height: 380px; top: -70px; right: 10%;
    background: rgba(13, 148, 136, 0.26);
    animation: awFloat 12s ease-in-out infinite;
}
.aw-orb-b {
    width: 280px; height: 280px; bottom: 6%; left: -30px;
    background: rgba(37, 99, 235, 0.14);
    animation: awFloat 14s ease-in-out infinite reverse;
}
.aw-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 65% 55% at 40% 45%, #000 20%, transparent 75%);
}
[data-theme="dark"] .aw-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
}
@keyframes awFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-16px, 12px); }
}
.aw-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    width: 100%;
    animation: awIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes awIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.aw-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--argus-accent);
    margin: 0 0 14px;
}
.aw-brand {
    font-size: clamp(2.75rem, 6.5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: var(--text-primary);
    margin: 0 0 12px;
}
.aw-headline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.aw-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 0 26px;
}
.aw-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.aw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.aw-btn:hover { transform: translateY(-1px); }
.aw-btn-primary { background: var(--argus-accent); color: #fff; }
.aw-btn-primary:hover { background: var(--argus-accent-hover); color: #fff; }
.aw-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
.aw-btn-ghost:hover {
    border-color: var(--argus-accent);
    color: var(--argus-accent);
}
.aw-hero-panel { justify-self: end; width: 100%; max-width: 320px; }
.aw-panel-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: var(--shadow-lg);
}
.aw-panel-row {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}
.aw-panel-row:last-of-type { border-bottom: 0; }
.aw-panel-row strong {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}
.aw-dot { width: 8px; height: 8px; border-radius: 50%; }
.aw-dot-on { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.aw-dot-alert { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.aw-dot-mute { background: var(--argus-accent); box-shadow: 0 0 0 3px var(--argus-accent-soft); }
.aw-panel-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 68px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}
.aw-panel-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--argus-accent), rgba(13, 148, 136, 0.35));
    transform-origin: bottom;
    animation: awBar 0.9s ease both;
}
.aw-panel-chart span:nth-child(2) { animation-delay: .05s; }
.aw-panel-chart span:nth-child(3) { animation-delay: .1s; }
.aw-panel-chart span:nth-child(4) { animation-delay: .15s; }
.aw-panel-chart span:nth-child(5) { animation-delay: .2s; }
.aw-panel-chart span:nth-child(6) { animation-delay: .25s; }
.aw-panel-chart span:nth-child(7) { animation-delay: .3s; }
@keyframes awBar {
    from { transform: scaleY(0.25); opacity: 0.4; }
    to { transform: scaleY(1); opacity: 1; }
}
.aw-strip {
    padding: 24px 0;
    border-block: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}
.aw-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.aw-strip-item {
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 14px 14px;
    cursor: pointer;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.aw-strip-item:hover {
    border-color: var(--border-subtle);
    background: var(--argus-accent-soft);
}
.aw-strip-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.aw-strip-item span { font-size: 12px; color: var(--text-muted); }
.aw-section { padding: 64px 0; }
.aw-section-muted { background: var(--bg-elevated); }
.aw-section-head { max-width: 36rem; margin-bottom: 28px; }
.aw-section-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.aw-section-head p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.aw-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.aw-features-3 { grid-template-columns: repeat(3, 1fr); }
.aw-feature {
    text-align: left;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px 18px;
    cursor: pointer;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.aw-section-muted .aw-feature { background: var(--bg-primary); }
.aw-feature:hover {
    border-color: var(--argus-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.aw-feature-ico {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--argus-accent-soft);
    margin-bottom: 12px;
}
.aw-feature-ico svg {
    width: 17px;
    height: 17px;
    stroke: var(--argus-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.aw-feature h3 { font-size: 15px; margin: 0 0 8px; color: var(--text-primary); }
.aw-feature p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 960px) {
    .aw-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .aw-hero-panel { justify-self: stretch; max-width: none; }
    .aw-strip-grid { grid-template-columns: repeat(2, 1fr); }
    .aw-features, .aw-features-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .aw-strip-grid,
    .aw-features,
    .aw-features-3 { grid-template-columns: 1fr; }
    .aw-brand { font-size: 2.6rem; }
}