/*
 * HRSky — HR Performance & Workforce Intelligence Platform
 * Design System: Modern Enterprise SaaS + Soft Glassmorphism + Minimalist Dashboard
 */

:root {
    --primary: #146EF5;
    --primary-dark: #0B4ECC;
    --primary-sky: #2EA8F6;
    --primary-mint: #CBE8FF;
    --primary-soft: rgba(20, 110, 245, 0.11);

    --navy: #0B1F44;
    --slate: #5B7196;
    --white: #FFFFFF;

    --bg: #F3F7FF;
    --bg-elevated: #EAF1FF;
    --surface: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.86);
    --border: #DCE7FA;
    --border-strong: #C2D6F5;

    --text: #0B1F44;
    --text-secondary: #2B426B;
    --text-muted: #5B7196;

    --success: #10B981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --warning: #F2B84B;
    --warning-soft: rgba(242, 184, 75, 0.16);
    --danger: #E56B70;
    --danger-soft: rgba(229, 107, 112, 0.14);
    --info: #48A9D6;
    --info-soft: rgba(72, 169, 214, 0.14);

    --shadow-xs: 0 1px 2px rgba(11, 31, 68, 0.05);
    --shadow-sm: 0 4px 12px rgba(11, 31, 68, 0.06);
    --shadow-md: 0 10px 28px rgba(11, 31, 68, 0.09);
    --shadow-lg: 0 20px 44px rgba(11, 31, 68, 0.13);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 76px;
    --topbar-height: 68px;
    --mobile-header-height: 60px;
    --mobile-nav-height: 64px;

    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
    --primary: #2D8CFF;
    --primary-dark: #146EF5;
    --primary-sky: #60B8FF;
    --primary-mint: #CBE8FF;

    --bg: #071226;
    --bg-elevated: #0D1D38;
    --surface: #102344;
    --surface-glass: rgba(16, 35, 68, 0.88);
    --border: #1D3763;
    --border-strong: #2A4B82;

    --text: #EEF4FF;
    --text-secondary: #C6D8F2;
    --text-muted: #8AA5CC;

    --navy: #EEF4FF;
    --primary-soft: rgba(45, 140, 255, 0.22);
    --success-soft: rgba(16, 185, 129, 0.2);
    --warning-soft: rgba(242, 184, 75, 0.18);
    --danger-soft: rgba(229, 107, 112, 0.2);
    --info-soft: rgba(72, 169, 214, 0.2);

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.25;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-dark);
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 40px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 12px;
    min-height: 32px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 13px 26px;
    min-height: 48px;
    font-size: 15px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(20, 110, 245, 0.30);
}

.btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(20, 110, 245, 0.42);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
}

.btn-danger:hover {
    background: #d1555a;
    color: #FFFFFF;
}

/* ── Forms & Inputs ──────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--danger);
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    min-height: 42px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    font-weight: 500;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: inline-flex;
}

.input-icon-wrap .form-control {
    padding-left: 38px;
}

/* ── Cards & Glassmorphism ───────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.card-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-soft);
    color: var(--primary);
}

.stat-icon.success { background: var(--success-soft); color: var(--success); }
.stat-icon.warning { background: var(--warning-soft); color: #b87e14; }
.stat-icon.danger  { background: var(--danger-soft);  color: var(--danger); }
.stat-icon.info    { background: var(--info-soft);    color: var(--info); }

/* ── Grid Layouts ────────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.grid-2-1 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
}

/* ── Badges & Categories ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
}

.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
[data-theme="dark"] .badge-primary { color: var(--primary-mint); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: #b57c12; }
[data-theme="dark"] .badge-warning { color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: #1f7ba3; }
[data-theme="dark"] .badge-info { color: var(--info); }
.badge-neutral { background: var(--bg-elevated);  color: var(--text-muted); border: 1px solid var(--border); }

/* ── Tables ──────────────────────────────────────────────────────── */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.hr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.hr-table th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.hr-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.hr-table tbody tr:last-child td {
    border-bottom: none;
}

.hr-table tbody tr:hover {
    background: var(--bg-elevated);
}

/* ── Alerts & Toasts ─────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-success { background: var(--success-soft); border-color: rgba(16, 185, 129, 0.3); color: var(--success); }
.alert-danger  { background: var(--danger-soft);  border-color: rgba(229, 107, 112, 0.35); color: var(--danger); }
.alert-warning { background: var(--warning-soft); border-color: rgba(242, 184, 75, 0.4); color: #a36f0b; }
[data-theme="dark"] .alert-warning { color: var(--warning); }
.alert-info    { background: var(--info-soft);    border-color: rgba(72, 169, 214, 0.35); color: #1f7ba3; }
[data-theme="dark"] .alert-info { color: var(--info); }

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100% - 40px);
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    animation: slideInRight 0.25s ease;
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-danger  { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }

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

/* ── Empty State & Skeleton ──────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 46px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Modals & Drawers ────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 34, 0.58);
    backdrop-filter: blur(4px);
    z-index: 950;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

/* ── Wizard Stepper ──────────────────────────────────────────────── */
.wizard-steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.wizard-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.wizard-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 4px;
}

.wizard-step.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.wizard-step.active .step-num {
    background: var(--primary);
    color: #FFFFFF;
}

.wizard-step.done {
    border-color: var(--success);
    color: var(--success);
}

.wizard-step.done .step-num {
    background: var(--success);
    color: #FFFFFF;
}

/* ── Graphic Rating Scale Pills ──────────────────────────────────── */
.rating-scale-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.rating-pill {
    position: relative;
}

.rating-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rating-pill label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.rating-pill label strong {
    font-size: 16px;
    font-family: var(--font-heading);
}

.rating-pill label span {
    font-size: 10.5px;
    color: var(--text-muted);
}

.rating-pill input:checked + label {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

/* ── Progress Bars ───────────────────────────────────────────────── */
.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ── Authenticated Desktop App Shell ─────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease, transform 0.25s ease;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar .nav-label,
body.sidebar-collapsed .sidebar .sidebar-section-title,
body.sidebar-collapsed .sidebar .tenant-badge,
body.sidebar-collapsed .sidebar .brand-logo-sidebar {
    display: none;
}

body.sidebar-collapsed .sidebar .brand-logo-sidebar-mini {
    display: block;
}

body.sidebar-collapsed .sidebar .sidebar-brand {
    justify-content: center;
    padding: 0 10px;
}

.sidebar-brand {
    height: var(--topbar-height);
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.brand-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

.brand-logo-img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo-nav { height: 42px; }
.brand-logo-footer { height: 46px; }
.brand-logo-auth { height: 52px; }
.brand-logo-mobile-auth { height: 42px; }
.brand-logo-sidebar { height: 38px; max-width: 196px; }
.brand-logo-drawer { height: 38px; max-width: 185px; }
.brand-logo-mobile-header { height: 32px; max-width: 132px; }

.brand-logo-sidebar-mini {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(20, 110, 245, 0.22);
}

.brand-logo-on-dark,
[data-theme="dark"] .brand-logo-link,
[data-theme="dark"] .sidebar-brand .brand-logo-sidebar {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 11px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(4, 24, 66, 0.22);
}

[data-theme="dark"] .mobile-header .brand-logo-link {
    padding: 4px 8px;
    border-radius: 9px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}

.sidebar-section-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 10px 10px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 3px;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background: var(--bg-elevated);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

[data-theme="dark"] .nav-item.active {
    color: var(--primary-mint);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.2s ease;
}

body.sidebar-collapsed .app-main {
    margin-left: var(--sidebar-collapsed-width);
}

.topbar {
    height: var(--topbar-height);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-search {
    position: relative;
    width: 300px;
}

.topbar-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.topbar-search input:focus {
    border-color: var(--primary);
    background: var(--surface);
}

.topbar-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: inline-flex;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 400;
    display: none;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
}

.dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--primary);
}

.notif-badge {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-workspace {
    flex: 1;
    padding: 24px 28px 40px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.page-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Landing Page Styles ─────────────────────────────────────────── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.landing-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.landing-links a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.landing-links a:hover {
    color: var(--primary);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 56px 0 76px;
    background:
        radial-gradient(circle at 82% 18%, rgba(20, 110, 245, 0.16), transparent 46%),
        radial-gradient(circle at 12% 84%, rgba(46, 168, 246, 0.18), transparent 42%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    border: 1px solid rgba(20, 110, 245, 0.22);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

[data-theme="dark"] .hero-eyebrow {
    color: var(--primary-mint);
    border-color: rgba(45, 140, 255, 0.35);
}

.hero-title {
    font-size: clamp(32px, 4.1vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-title .hero-title-accent {
    background: linear-gradient(135deg, #146EF5 0%, #2EA8F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Interactive Three.js 3D Observatory Stage ──────────────────── */
.hero-3d-shell {
    position: relative;
    border-radius: 24px;
    padding: 16px;
    background: linear-gradient(160deg, #07193D 0%, #0A2E75 56%, #146EF5 100%);
    border: 1px solid rgba(96, 184, 255, 0.35);
    box-shadow: 0 24px 60px rgba(11, 78, 204, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

[data-theme="dark"] .hero-3d-shell {
    background: linear-gradient(160deg, #05112B 0%, #082358 58%, #0F54C7 100%);
    border-color: rgba(96, 184, 255, 0.42);
}

.hero-3d-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hero-3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #E3F1FF;
}

.hero-3d-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #38BDF8;
    box-shadow: 0 0 10px #38BDF8;
    animation: hrskyPulseDot 1.8s ease-in-out infinite;
}

@keyframes hrskyPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.65; }
}

.hero-3d-presets {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
}

.hero-3d-preset-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #E2EEFF;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}

.hero-3d-preset-btn:hover,
.hero-3d-preset-btn.active {
    background: #FFFFFF;
    color: #0B4ECC;
    border-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(2, 16, 46, 0.25);
}

.hero-3d-canvas-wrap {
    position: relative;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, rgba(46, 168, 246, 0.22) 0%, rgba(5, 16, 40, 0.65) 75%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    touch-action: pan-y;
    cursor: grab;
}

.hero-3d-canvas-wrap:active {
    cursor: grabbing;
}

.hero-3d-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-3d-hud-score {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(6, 20, 50, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(130, 202, 255, 0.34);
    text-align: right;
    pointer-events: none;
}

.hero-3d-hud-hint {
    position: absolute;
    left: 12px;
    bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(6, 20, 50, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 11px;
    color: #CBE8FF;
    pointer-events: none;
}

.hero-3d-dock {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(5, 16, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-3d-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.hero-3d-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #EBF4FF;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.hero-3d-pill.active,
.hero-3d-pill:hover {
    background: rgba(46, 168, 246, 0.28);
    border-color: #60B8FF;
    transform: translateY(-1px);
}

.hero-3d-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #DCEBFF;
}

.hero-3d-score-btns {
    display: inline-flex;
    gap: 5px;
}

.hero-3d-score-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.14s ease;
}

.hero-3d-score-btn.active,
.hero-3d-score-btn:hover {
    background: #FFFFFF;
    color: #0B4ECC;
    border-color: #FFFFFF;
}

/* Mobile Landing Navigation */
.landing-mobile-toggle {
    display: none;
}

.landing-mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 12px 24px 16px;
}

.landing-mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-mobile-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 0;
}

/* Subtle Feature Card Hover Elevation */
.landing-feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-mint);
}

@media (prefers-reduced-motion: reduce) {
    .hero-3d-live-dot,
    .landing-feature-card,
    .btn-primary {
        animation: none !important;
        transition: none !important;
    }
}

.hero-subtitle {
    font-size: 16.5px;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 560px;
}

.landing-section {
    padding: 72px 0;
}

.landing-section.alt-bg {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-header h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Auth Split Layout ───────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.auth-brand-panel {
    background: linear-gradient(155deg, #06183D 0%, #0B4ECC 55%, #146EF5 100%);
    color: #FFFFFF;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    background: var(--bg);
}

.auth-box {
    width: 100%;
    max-width: 460px;
}

/* ── Native Mobile App Shell ─────────────────────────────────────── */
.mobile-header,
.mobile-bottom-nav,
.mobile-drawer-backdrop,
.mobile-drawer {
    display: none;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 1024px) {
    .sidebar,
    .topbar,
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .app-main {
        margin-left: 0 !important;
        padding-top: var(--mobile-header-height);
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 16px);
    }

    .main-workspace {
        padding: 16px 14px 24px;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-header-height);
        padding: 0 14px;
        background: var(--surface-glass);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        z-index: 400;
    }

    .mobile-bottom-nav {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0px;
        padding: 4px 4px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: var(--mobile-nav-height);
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--surface-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        z-index: 400;
        box-shadow: 0 -4px 20px rgba(20, 42, 63, 0.08);
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 4px;
        font-size: 10.5px;
        font-weight: 600;
        color: var(--text-muted);
    }

    .mobile-nav-link.active {
        color: var(--primary);
    }

    .mobile-drawer-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(11, 22, 34, 0.55);
        z-index: 450;
    }

    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 84vw;
        background: var(--surface);
        z-index: 460;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-lg);
    }

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

    .grid-2, .grid-3, .grid-4, .grid-2-1, .hero-grid, .auth-page {
        grid-template-columns: 1fr;
    }

    .mobile-only.mobile-card-list {
        display: flex;
    }

    .auth-brand-panel {
        display: none;
    }

    .wizard-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .rating-scale-group {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }

    .landing-links {
        display: none;
    }

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

    .hero-3d-canvas-wrap {
        height: 280px;
    }

    .hero-3d-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 36px 0 52px;
    }

    .brand-logo-nav {
        height: 36px;
    }

    .hero-3d-shell {
        padding: 12px;
        border-radius: 18px;
    }

    .hero-3d-canvas-wrap {
        height: 250px;
    }
}

.mobile-card-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.mobile-item-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-xs);
}

/* ── Print Styles ────────────────────────────────────────────────── */
@page {
    size: A4;
    margin: 16mm;
}

@media print {
    .sidebar, .topbar, .mobile-header, .mobile-bottom-nav, .no-print {
        display: none !important;
    }
    .app-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body {
        background: #FFFFFF !important;
        color: #000000 !important;
        font-size: 11pt;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .table-wrap {
        overflow: visible !important;
        border: none !important;
    }
    .hr-table {
        font-size: 9.5pt;
        width: 100%;
    }
    .hr-table th, .hr-table td {
        padding: 6px 8px !important;
    }
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .stat-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    .page-header {
        margin-bottom: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Landing v2 — Floating Island Header + "Sky Observatory" Hero
   ═══════════════════════════════════════════════════════════════════ */

/* ── Floating pill header ─────────────────────────────────────────── */
.landing-nav {
    position: sticky;
    top: 12px;
    z-index: 300;
    height: 64px;
    margin-bottom: -64px;
    padding: 0 16px;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.landing-nav-pill {
    pointer-events: auto;
    position: relative;
    max-width: 1180px;
    height: 64px;
    margin: 0 auto;
    padding: 0 10px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 36px rgba(6, 24, 61, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

[data-theme="dark"] .landing-nav-pill {
    background: rgba(13, 29, 56, 0.72);
    border-color: rgba(96, 184, 255, 0.28);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-nav.is-scrolled .landing-nav-pill {
    height: 56px;
    background: var(--surface-glass);
    box-shadow: 0 16px 44px rgba(6, 24, 61, 0.24);
}

.landing-nav .brand-logo-nav {
    height: 38px;
}

.landing-nav .landing-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(20, 110, 245, 0.07);
}

[data-theme="dark"] .landing-nav .landing-links {
    background: rgba(255, 255, 255, 0.06);
}

.landing-nav .landing-links a {
    position: relative;
    z-index: 1;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.landing-nav .landing-links a:hover,
.landing-nav .landing-links a.active {
    color: var(--primary-dark);
}

[data-theme="dark"] .landing-nav .landing-links a:hover,
[data-theme="dark"] .landing-nav .landing-links a.active {
    color: #FFFFFF;
}

.landing-links-indicator {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    width: 0;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(20, 110, 245, 0.22);
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), width 0.35s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.2s ease;
    pointer-events: none;
}

[data-theme="dark"] .landing-links-indicator {
    background: rgba(45, 140, 255, 0.4);
    box-shadow: 0 4px 16px rgba(20, 110, 245, 0.35);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    animation: hrskyShimmer 3.8s ease-in-out infinite;
}

@keyframes hrskyShimmer {
    0%, 55% { left: -80%; }
    100% { left: 140%; }
}

.landing-nav .landing-mobile-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    padding: 14px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}

body:not(:has(.hero-sky)) .landing-main {
    padding-top: 84px;
}

/* ── Sky Observatory Hero ─────────────────────────────────────────── */
.hero-sky {
    position: relative;
    isolation: isolate;
    padding: 150px 0 0;
    color: #FFFFFF;
    background:
        radial-gradient(120% 80% at 82% 0%, rgba(38, 124, 255, 0.85) 0%, rgba(38, 124, 255, 0) 56%),
        linear-gradient(180deg, #041033 0%, #072A73 54%, #0B4ECC 100%);
}

.hero-sky-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.sky-stars {
    position: absolute;
    inset: 0 0 40% 0;
    background-image:
        radial-gradient(1.6px 1.6px at 8% 22%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 18% 62%, #BFDBFE, transparent),
        radial-gradient(1.8px 1.8px at 31% 14%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 44% 48%, #93C5FD, transparent),
        radial-gradient(1.6px 1.6px at 57% 18%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 69% 56%, #BFDBFE, transparent),
        radial-gradient(1.8px 1.8px at 81% 12%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 92% 40%, #93C5FD, transparent);
    animation: skyTwinkle 5s ease-in-out infinite alternate;
}

@keyframes skyTwinkle {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

.sky-cloud {
    position: absolute;
    left: 0;
    border-radius: 999px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    filter: blur(12px);
    animation: skyDrift linear infinite;
    will-change: transform;
}

.sky-cloud.c1 { top: 12%; width: 520px; height: 150px; animation-duration: 90s; animation-delay: -30s; }
.sky-cloud.c2 { top: 36%; width: 360px; height: 110px; animation-duration: 64s; animation-delay: -12s; opacity: 0.8; }
.sky-cloud.c3 { top: 58%; width: 640px; height: 180px; animation-duration: 120s; animation-delay: -70s; opacity: 0.7; }
.sky-cloud.c4 { top: 24%; width: 280px; height: 90px; animation-duration: 52s; animation-delay: -4s; opacity: 0.9; }

@keyframes skyDrift {
    from { transform: translateX(-40vw); }
    to { transform: translateX(120vw); }
}

.sky-grid {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: 0;
    height: 44%;
    background:
        linear-gradient(rgba(147, 197, 253, 0.34) 1px, transparent 1px) 0 0 / 100% 46px,
        linear-gradient(90deg, rgba(147, 197, 253, 0.34) 1px, transparent 1px) 0 0 / 70px 100%;
    transform: perspective(520px) rotateX(64deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 88%);
    mask-image: linear-gradient(to top, #000 8%, transparent 88%);
    animation: skyGridFlow 6s linear infinite;
}

@keyframes skyGridFlow {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 46px, 0 0; }
}

.sky-wing {
    position: absolute;
    right: -4%;
    top: 4%;
    width: min(820px, 70vw);
    opacity: 0.55;
}

.sky-wing path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: wingDraw 3.2s 0.3s cubic-bezier(0.3, 0.8, 0.3, 1) forwards;
}

@keyframes wingDraw {
    to { stroke-dashoffset: 0; }
}

.hero-sky-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    align-items: center;
    padding-bottom: 96px;
}

.hero-sky .hero-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #E6F1FF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-sky .hero-eyebrow .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #38BDF8;
    box-shadow: 0 0 12px #38BDF8;
    animation: hrskyPulseDot 1.8s ease-in-out infinite;
}

.hero-sky .hero-title {
    color: #FFFFFF;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.hl-line {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    animation: hlIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hl-line.l2 { animation-delay: 0.14s; }

.hl-accent {
    background: linear-gradient(95deg, #FFFFFF 0%, #A5D8FF 45%, #60B8FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes hlIn {
    to { opacity: 1; transform: none; filter: blur(0); }
}

.hero-sky .hero-subtitle {
    color: rgba(226, 238, 255, 0.88);
    opacity: 0;
    animation: hlIn 0.9s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    opacity: 0;
    animation: hlIn 0.9s 0.44s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.btn-hero-solid {
    background: #FFFFFF;
    color: #0B4ECC;
    box-shadow: 0 10px 30px rgba(4, 16, 51, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.btn-hero-solid:hover {
    color: #0B4ECC;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(4, 16, 51, 0.42), 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.btn-hero-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-hero-glass:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
    animation: hlIn 0.9s 0.58s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12.5px;
    font-weight: 600;
    color: #E3F0FF;
}

/* Stage + floating glass chips */
.hero-stage {
    position: relative;
    min-width: 0;
}

.hero-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(3, 12, 40, 0.3);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    translate: calc(var(--mx, 0) * var(--depth, 14px)) calc(var(--my, 0) * var(--depth, 14px));
    animation: chipFloat 6s ease-in-out infinite;
}

.hero-chip small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #A8D4FF;
}

.hero-chip strong {
    display: block;
    font-size: 13.5px;
}

.hero-chip .chip-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2EA8F6, #146EF5);
}

.hero-chip.chip-a { top: 4%; left: -2%; --depth: 22px; }
.hero-chip.chip-b { bottom: 30%; right: -2%; --depth: -18px; animation-delay: -2s; }
.hero-chip.chip-c { bottom: 12%; left: 2%; --depth: 12px; animation-delay: -4s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* Transparent 3D stage override (no boxed card) */
.hero-3d-shell,
[data-theme="dark"] .hero-3d-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.hero-3d-canvas-wrap {
    height: 430px;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.hero-3d-dock {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(3, 12, 40, 0.3);
}

/* Overlapping metrics strip */
.hero-metrics-wrap {
    position: relative;
    z-index: 5;
    transform: translateY(50%);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.hero-metric {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 44px rgba(6, 24, 61, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(20, 110, 245, 0.28);
}

.hero-metric .num {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.hero-metric .lbl {
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-sky + .landing-section {
    padding-top: 128px;
}

/* Scroll reveal */
.js-ok [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--d, 0ms);
}

.js-ok [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

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

    .landing-nav .landing-nav-pill {
        padding-left: 14px;
    }

    .landing-nav .landing-nav-actions .btn-ghost.btn-sm {
        display: none;
    }

    .hero-sky {
        padding-top: 112px;
    }

    .hero-sky-grid {
        grid-template-columns: 1fr;
        padding-bottom: 72px;
        gap: 28px;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-chip.chip-b,
    .hero-chip.chip-c {
        display: none;
    }

    .hero-sky + .landing-section {
        padding-top: 176px;
    }
}

@media (max-width: 560px) {
    .landing-nav .brand-logo-nav { height: 32px; }
    .landing-nav .landing-nav-actions .btn-primary.btn-sm { padding: 6px 10px; font-size: 12px; }
    .hero-sky .hero-title { font-size: 33px; }
    .hero-3d-canvas-wrap { height: 320px; }
    .hero-chip.chip-a { top: -2%; left: 0; }
    .hero-metric { padding: 14px; }
    .hero-metric .num { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .sky-cloud, .sky-grid, .sky-stars, .sky-wing path, .hero-chip, .btn-shimmer::after,
    .hl-line, .hero-sky .hero-subtitle, .hero-cta-row, .hero-trust {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
        stroke-dashoffset: 0;
    }
    .js-ok [data-reveal] { opacity: 1; transform: none; transition: none; }
}
section[id]{scroll-margin-top:92px}

/* ═══════════════════════════════════════════════════════════════════
   Landing v3 — Refined Floating Header + Observatory Hero
   ═══════════════════════════════════════════════════════════════════ */

/* ── Header shell ──────────────────────────────────────────────────── */
.landing-nav {
    top: 10px;
    height: 68px;
    margin-bottom: -68px;
    padding: 0 20px;
}

.landing-nav-pill {
    max-width: 1200px;
    height: 66px;
    padding: 0 12px 0 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 40px -18px rgba(6, 24, 61, 0.35),
        0 2px 6px rgba(6, 24, 61, 0.04),
        inset 0 1px 0 #FFFFFF;
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    animation: navDrop 0.65s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

[data-theme="dark"] .landing-nav-pill {
    background: linear-gradient(180deg, rgba(20, 39, 74, 0.92) 0%, rgba(13, 29, 56, 0.82) 100%);
    border-color: rgba(96, 184, 255, 0.24);
    box-shadow:
        0 20px 44px -18px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-nav.is-scrolled .landing-nav-pill {
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 22px 50px -20px rgba(6, 24, 61, 0.45),
        inset 0 1px 0 #FFFFFF;
}

[data-theme="dark"] .landing-nav.is-scrolled .landing-nav-pill {
    background: rgba(13, 29, 56, 0.94);
    box-shadow:
        0 24px 54px -20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes navDrop {
    from { opacity: 0; transform: translateY(-16px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.landing-nav .brand-logo-nav {
    height: 34px;
    transition: height 0.25s ease;
}

.landing-nav.is-scrolled .brand-logo-nav {
    height: 30px;
}

/* ── Nav links: editorial underline, no segmented tray ─────────────── */
.landing-nav .landing-links {
    gap: 2px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

[data-theme="dark"] .landing-nav .landing-links {
    background: transparent;
}

.landing-nav .landing-links a {
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: var(--text-secondary);
    transition: color 0.18s ease, background 0.18s ease;
}

.landing-nav .landing-links a:hover {
    color: var(--primary-dark);
    background: rgba(20, 110, 245, 0.06);
}

[data-theme="dark"] .landing-nav .landing-links a:hover {
    color: #FFFFFF;
    background: rgba(96, 184, 255, 0.1);
}

.landing-nav .landing-links a.active {
    color: var(--primary);
}

[data-theme="dark"] .landing-nav .landing-links a.active {
    color: #8FCBFF;
}

.landing-links-indicator {
    top: auto;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #146EF5 0%, #2EA8F6 65%, #CBE8FF 100%);
    box-shadow: 0 0 10px rgba(46, 168, 246, 0.65);
}

[data-theme="dark"] .landing-links-indicator {
    background: linear-gradient(90deg, #60B8FF 0%, #CBE8FF 100%);
    box-shadow: 0 0 12px rgba(96, 184, 255, 0.75);
}

/* ── Header actions ────────────────────────────────────────────────── */
.landing-nav-actions {
    gap: 10px;
}

.nav-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-icon-btn:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(20, 110, 245, 0.16);
}

.nav-icon-btn:hover .pascon-icon {
    transform: rotate(-14deg);
}

.nav-icon-btn .pascon-icon {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .nav-icon-btn {
    color: #9FBEE6;
}

[data-theme="dark"] .nav-icon-btn:hover {
    color: #FFFFFF;
    border-color: rgba(96, 184, 255, 0.24);
}

.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
}

.landing-nav-login {
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.18s ease;
}

.landing-nav-login:hover {
    color: var(--primary-dark);
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 8px 8px 16px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.005em;
    color: #FFFFFF;
    background: linear-gradient(135deg, #1E7BFF 0%, #146EF5 45%, #0B4ECC 100%);
    box-shadow:
        0 8px 20px -6px rgba(20, 110, 245, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.landing-cta:hover,
.landing-cta:focus-visible {
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow:
        0 12px 26px -6px rgba(20, 110, 245, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.landing-cta-arrow {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}

.landing-cta:hover .landing-cta-arrow {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.26);
}

/* ── Scroll progress ───────────────────────────────────────────────── */
.landing-nav-progress {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(90deg, #146EF5 0%, #2EA8F6 55%, #CBE8FF 100%);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0.85;
    pointer-events: none;
    transition: transform 0.1s linear;
}

/* ── Mobile menu ───────────────────────────────────────────────────── */
.nav-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    place-items: center;
    color: var(--text-secondary);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.nav-menu-bars {
    position: relative;
    display: block;
    width: 16px;
    height: 12px;
}

.nav-menu-bars i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.8px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, top 0.25s ease;
}

.nav-menu-bars i:first-child { top: 1px; }
.nav-menu-bars i:last-child { top: 9px; }

.nav-menu-toggle[aria-expanded="true"] .nav-menu-bars i:first-child {
    top: 5px;
    transform: rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-bars i:last-child {
    top: 5px;
    transform: rotate(-45deg);
}

.landing-nav .landing-mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 26px 60px -22px rgba(6, 24, 61, 0.45);
    pointer-events: auto;
}

.landing-nav .landing-mobile-menu.open {
    display: block;
    animation: menuIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.mobile-menu-close {
    width: 30px;
    height: 30px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-nav .landing-mobile-menu .mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background 0.16s ease, color 0.16s ease;
}

.landing-nav .landing-mobile-menu .mobile-menu-links a > .pascon-icon:last-child {
    margin-left: auto;
    opacity: 0.4;
}

.landing-nav .landing-mobile-menu .mobile-menu-links a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.mm-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.landing-mobile-menu .mobile-menu-cta .btn-primary {
    color: #FFFFFF;
}

.landing-mobile-menu .mobile-menu-cta .btn-outline {
    color: var(--primary);
}

.landing-menu-scrim {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(4, 16, 51, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.landing-menu-scrim.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Hero atmosphere ───────────────────────────────────────────────── */
.hero-sky {
    padding: 172px 0 0;
    background:
        radial-gradient(85% 62% at 80% -12%, rgba(46, 168, 246, 0.55) 0%, rgba(46, 168, 246, 0) 58%),
        radial-gradient(70% 52% at 4% 6%, rgba(20, 110, 245, 0.42) 0%, rgba(20, 110, 245, 0) 62%),
        linear-gradient(168deg, #030E26 0%, #051733 34%, #072253 62%, #0B4ECC 100%);
}

.hero-sky-bg {
    background: none;
}

.hero-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(58px);
    opacity: 0.5;
    pointer-events: none;
    will-change: transform;
}

.aurora-a {
    width: 620px;
    height: 620px;
    top: -220px;
    right: -60px;
    background: radial-gradient(circle, rgba(46, 168, 246, 0.75) 0%, rgba(46, 168, 246, 0) 66%);
    animation: auroraFloat 18s ease-in-out infinite alternate;
}

.aurora-b {
    width: 520px;
    height: 520px;
    bottom: -200px;
    left: -140px;
    background: radial-gradient(circle, rgba(11, 78, 204, 0.8) 0%, rgba(11, 78, 204, 0) 66%);
    animation: auroraFloat 22s ease-in-out infinite alternate-reverse;
}

.aurora-c {
    width: 360px;
    height: 360px;
    top: 26%;
    left: 48%;
    opacity: 0.32;
    background: radial-gradient(circle, rgba(203, 232, 255, 0.65) 0%, rgba(203, 232, 255, 0) 64%);
    animation: auroraFloat 26s ease-in-out infinite alternate;
    animation-delay: -8s;
}

@keyframes auroraFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-34px, 26px, 0) scale(1.09); }
}

.hero-horizon {
    position: absolute;
    left: 50%;
    bottom: -180px;
    width: 140%;
    height: 380px;
    transform: translateX(-50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(96, 184, 255, 0.38) 0%, rgba(96, 184, 255, 0) 70%);
    filter: blur(24px);
    pointer-events: none;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.sky-grid {
    height: 38%;
    opacity: 0.7;
}

.sky-cloud {
    opacity: 0.55;
}

.sky-cloud.c4 {
    display: none;
}

/* ── Hero copy ─────────────────────────────────────────────────────── */
.hero-sky-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 44px;
    padding-bottom: 108px;
}

.hero-copy {
    max-width: 560px;
    position: relative;
    z-index: 2;
}

.hero-sky .hero-eyebrow {
    gap: 9px;
    padding: 6px 12px 6px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #D8E9FF;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.015em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 22px;
}

.hero-sky .hero-eyebrow .live-dot {
    width: 7px;
    height: 7px;
    background: #4ADE80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16), 0 0 12px rgba(74, 222, 128, 0.8);
    animation: hrskyPulseDot 2.4s ease-in-out infinite;
}

.he-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.he-ver {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #82BCFF;
}

.hero-sky .hero-title {
    font-size: clamp(36px, 3.9vw, 55px);
    line-height: 1.03;
    letter-spacing: -0.042em;
    font-weight: 800;
    margin-bottom: 22px;
    text-wrap: balance;
}

.hl-line.l3 {
    animation-delay: 0.2s;
    padding-bottom: 0.1em;
}

.hl-accent {
    background: linear-gradient(96deg, #FFFFFF 0%, #DCEEFF 48%, #8FCBFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hl-word {
    position: relative;
    display: inline-block;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    font-style: normal;
}

.hl-word::after {
    content: '';
    position: absolute;
    left: 0;
    right: 2%;
    bottom: -0.03em;
    height: 0.045em;
    min-height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2EA8F6 0%, #9FD8FF 58%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 0 18px rgba(46, 168, 246, 0.55);
    transform: rotate(-0.7deg) scaleX(0);
    transform-origin: left center;
    animation: wordUnderline 0.9s 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes wordUnderline {
    to { transform: rotate(-0.7deg) scaleX(1); }
}

.hero-sky .hero-subtitle {
    font-size: 16px;
    line-height: 1.72;
    max-width: 490px;
    margin-bottom: 30px;
    color: rgba(206, 228, 255, 0.82);
}

/* ── Hero actions ──────────────────────────────────────────────────── */
.hero-cta-row {
    gap: 12px;
    margin-bottom: 26px;
    align-items: center;
}

.btn-hero-solid {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 8px 0 24px;
    border-radius: 13px;
    border: 0;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
    background: linear-gradient(180deg, #FFFFFF 0%, #E9F2FF 100%);
    color: #06183D;
    box-shadow:
        0 16px 34px -12px rgba(3, 15, 48, 0.65),
        inset 0 1px 0 #FFFFFF,
        0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
}

.btn-hero-solid:hover {
    color: #06183D;
    transform: translateY(-2px);
    box-shadow:
        0 22px 40px -12px rgba(3, 15, 48, 0.7),
        inset 0 1px 0 #FFFFFF,
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.btn-hero-solid .cta-arrow {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2EA8F6 0%, #146EF5 48%, #0B4ECC 100%);
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -4px rgba(11, 78, 204, 0.7);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-hero-solid:hover .cta-arrow {
    transform: translateX(3px);
}

.btn-hero-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #E4F0FF;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-glass:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-hero-glass .pascon-icon {
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.btn-hero-glass:hover .pascon-icon {
    transform: translateY(2px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    row-gap: 10px;
}

.hero-trust span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px 0 0;
    margin-right: 18px;
    border: 0;
    background: none;
    border-radius: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #BCD6F3;
}

.hero-trust span + span {
    padding-left: 18px;
}

.hero-trust span + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.16);
}

.hero-trust .pascon-icon {
    color: #60B8FF;
    opacity: 0.9;
}

/* ── Hero stage ────────────────────────────────────────────────────── */
.hero-stage {
    position: relative;
    z-index: 2;
    padding: 8px 0;
}

.hero-stage-aura {
    position: absolute;
    inset: 2% 0 0;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(46, 168, 246, 0.28) 0%, rgba(20, 110, 245, 0.1) 52%, rgba(20, 110, 245, 0) 76%);
    filter: blur(16px);
    pointer-events: none;
}

.hero-stage-rings {
    position: absolute;
    inset: -2% 0;
    z-index: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hero-stage-rings i {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(147, 197, 253, 0.13);
}

.hero-stage-rings i:nth-child(1) {
    width: 96%;
    height: 96%;
    border-style: dashed;
    border-color: rgba(147, 197, 253, 0.16);
    animation: orbitSpin 64s linear infinite;
}

.hero-stage-rings i:nth-child(2) {
    width: 74%;
    height: 74%;
    border-color: rgba(203, 232, 255, 0.1);
    animation: orbitSpin 46s linear infinite reverse;
}

.hero-stage-rings i:nth-child(3) {
    width: 52%;
    height: 52%;
    border-color: rgba(255, 255, 255, 0.09);
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.hero-3d-shell {
    position: relative;
    z-index: 1;
}

.hero-3d-canvas-wrap {
    height: 452px;
}

.hero-chip {
    gap: 10px;
    padding: 9px 15px 9px 9px;
    border-radius: 14px;
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 20px 44px -16px rgba(3, 12, 40, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    z-index: 5;
}

.hero-chip .chip-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2EA8F6 0%, #146EF5 55%, #0B4ECC 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -4px rgba(11, 78, 204, 0.65);
}

.hero-chip small {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8FC4FF;
    margin-bottom: 1px;
}

.hero-chip strong {
    font-size: 13px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.hero-chip.chip-a { top: 0; left: -3%; --depth: 20px; }
.hero-chip.chip-b { top: 46%; right: -2%; --depth: -16px; animation-delay: -2s; }
.hero-chip.chip-c { bottom: 6%; left: -1%; --depth: 12px; animation-delay: -4s; }

/* ── Metrics strip ─────────────────────────────────────────────────── */
.hero-metrics-wrap {
    transform: translateY(50%);
}

.hero-metrics {
    gap: 0;
    border-radius: 19px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 30px 70px -30px rgba(6, 24, 61, 0.45);
    overflow: hidden;
}

.hero-metric {
    position: relative;
    padding: 24px 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background 0.2s ease;
}

.hero-metric::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24%;
    bottom: 24%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}

.hero-metric:first-child::before {
    display: none;
}

.hero-metric:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(180deg, rgba(20, 110, 245, 0.05), rgba(20, 110, 245, 0.01));
}

.hero-metric .num {
    font-size: 31px;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.hero-metric .num .unit {
    font-size: 17px;
    font-weight: 800;
    margin-left: 1px;
    color: var(--primary);
}

.hero-metric .lbl {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-muted);
}

[data-theme="dark"] .hero-metric .num {
    color: #FFFFFF;
}

.hero-sky + .landing-section {
    padding-top: 132px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
    .landing-nav .landing-links {
        display: none;
    }

    .landing-nav .landing-nav-actions {
        margin-left: auto;
    }

    .nav-menu-toggle {
        display: inline-grid;
    }

    .landing-nav .nav-divider {
        display: none;
    }

    .hero-sky-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 92px;
    }

    .hero-copy {
        max-width: 620px;
    }

    .hero-sky {
        padding-top: 138px;
    }

    .hero-chip.chip-b,
    .hero-chip.chip-c {
        display: none;
    }

    .hero-chip.chip-a {
        top: -6px;
        left: 0;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-metric:nth-child(3)::before {
        display: none;
    }

    .hero-metric:nth-child(odd)::before {
        display: none;
    }

    .hero-metric:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .hero-sky + .landing-section {
        padding-top: 188px;
    }
}

@media (max-width: 720px) {
    .landing-nav {
        top: 8px;
        padding: 0 12px;
    }

    .landing-nav-pill {
        height: 60px;
        padding: 0 8px 0 14px;
        border-radius: 16px;
    }

    .landing-nav .brand-logo-nav {
        height: 28px;
    }

    .landing-nav-login {
        display: none;
    }

    .landing-cta {
        padding: 7px 7px 7px 13px;
        font-size: 12.5px;
        border-radius: 10px;
    }

    .landing-cta-arrow {
        width: 22px;
        height: 22px;
        border-radius: 7px;
    }

    .nav-divider {
        display: none;
    }

    .hero-sky {
        padding-top: 118px;
    }

    .hero-sky .hero-title {
        font-size: clamp(31px, 8.4vw, 40px);
        line-height: 1.05;
    }

    .hero-sky .hero-subtitle {
        font-size: 14.5px;
        line-height: 1.68;
        margin-bottom: 24px;
    }

    .hero-cta-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 22px;
    }

    .btn-hero-solid {
        height: 50px;
        padding-left: 20px;
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .btn-hero-glass {
        width: 100%;
        justify-content: center;
    }

    .hero-sky-grid {
        padding-bottom: 34px;
    }

    .hero-metrics-wrap {
        transform: none;
        margin-top: 26px;
    }

    .hero-sky {
        padding-bottom: 26px;
    }

    .landing-cta {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .btn-hero-solid .cta-arrow {
        width: 32px;
        height: 32px;
    }

    .btn-hero-glass {
        height: 48px;
        padding: 0 18px;
        font-size: 13.5px;
    }

    .hero-trust {
        row-gap: 8px;
    }

    .hero-trust span {
        padding-right: 12px;
        margin-right: 12px;
        font-size: 11.5px;
    }

    .hero-trust span + span {
        padding-left: 12px;
    }

    .hero-3d-canvas-wrap {
        height: 340px;
    }

    .hero-metrics {
        border-radius: 16px;
    }

    .hero-metric {
        padding: 16px 18px;
    }

    .hero-metric .num {
        font-size: 25px;
    }

    .hero-metric .lbl {
        font-size: 11px;
    }

    .hero-sky + .landing-section {
        padding-top: 58px;
    }

    .hero-sky .he-sep,
    .hero-sky .he-ver {
        display: none;
    }
}

@media (max-width: 344px) {
    .landing-nav [data-theme-toggle] {
        display: none;
    }

    .landing-nav-actions {
        gap: 8px;
    }

    .landing-nav .brand-logo-nav {
        height: 26px;
    }

    .landing-cta {
        padding: 7px 7px 7px 12px;
        font-size: 12px;
    }

    .nav-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .hero-3d-canvas-wrap {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-nav-pill,
    .landing-nav .landing-mobile-menu.open,
    .hero-aurora,
    .hero-stage-rings i,
    .hl-word::after {
        animation: none !important;
    }

    .hl-word::after {
        transform: rotate(-0.7deg) scaleX(1);
    }

    .landing-nav-progress {
        transition: none;
    }
}

/* Pascon inline tags always render at 24px; size them per context */
.landing-nav .nav-icon-btn .pascon-icon { width: 17px; height: 17px; }
.landing-nav .landing-cta .pascon-icon { width: 13px; height: 13px; }
.landing-nav .landing-cta-arrow .pascon-icon { width: 12px; height: 12px; }
.landing-nav .mobile-menu-close .pascon-icon { width: 15px; height: 15px; }
.landing-nav .mm-ico .pascon-icon { width: 16px; height: 16px; }
.landing-nav .mobile-menu-links a > .pascon-icon:last-child { width: 14px; height: 14px; }
.hero-sky .hero-trust .pascon-icon { width: 14px; height: 14px; }
.hero-sky .btn-hero-glass .pascon-icon { width: 15px; height: 15px; }
.hero-sky .btn-hero-solid .cta-arrow .pascon-icon { width: 15px; height: 15px; }
.hero-sky .hero-chip .chip-ico .pascon-icon { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════════════════════════════
   Claymorphism Dashboard — soft 3D surfaces, puffy icon tiles
   Scoped to the authenticated app shell so the public site stays flat.
   ═══════════════════════════════════════════════════════════════════ */

.app-shell {
    --clay-surface: #FDFEFF;
    --clay-surface-alt: #EAF2FF;
    --clay-border: rgba(255, 255, 255, 0.9);
    --clay-shadow: 12px 12px 28px rgba(31, 66, 135, 0.12), -10px -10px 24px rgba(255, 255, 255, 0.95);
    --clay-shadow-sm: 7px 7px 16px rgba(31, 66, 135, 0.11), -6px -6px 14px rgba(255, 255, 255, 0.95);
    --clay-inset: inset 2px 2px 4px rgba(255, 255, 255, 0.95), inset -3px -3px 6px rgba(31, 66, 135, 0.08);
    --clay-inset-deep: inset 3px 3px 6px rgba(31, 66, 135, 0.10), inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .app-shell {
    --clay-surface: #12274A;
    --clay-surface-alt: #0C1D38;
    --clay-border: rgba(120, 170, 240, 0.16);
    --clay-shadow: 12px 12px 28px rgba(0, 0, 0, 0.42), -8px -8px 22px rgba(50, 105, 190, 0.10);
    --clay-shadow-sm: 7px 7px 16px rgba(0, 0, 0, 0.38), -5px -5px 12px rgba(50, 105, 190, 0.10);
    --clay-inset: inset 2px 2px 4px rgba(255, 255, 255, 0.10), inset -3px -3px 6px rgba(0, 0, 0, 0.35);
    --clay-inset-deep: inset 3px 3px 6px rgba(0, 0, 0, 0.42), inset -2px -2px 5px rgba(255, 255, 255, 0.06);
}

/* ── Sidebar as a soft clay column ──────────────────────────────── */
.app-shell .sidebar {
    background: linear-gradient(180deg, #FCFEFF 0%, #EEF5FF 100%);
    border-right: 1px solid var(--clay-border);
    box-shadow: 10px 0 32px rgba(31, 66, 135, 0.07);
}

[data-theme="dark"] .app-shell .sidebar {
    background: linear-gradient(180deg, #0E2141 0%, #0A1830 100%);
    border-right-color: var(--clay-border);
    box-shadow: 10px 0 32px rgba(0, 0, 0, 0.35);
}

.app-shell .sidebar-brand {
    border-bottom: 1px solid rgba(31, 66, 135, 0.06);
}

.app-shell .sidebar .nav-item > span:first-child,
.app-shell .mobile-drawer .nav-item > span:first-child {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFFFFF 0%, #E6EFFF 100%);
    color: var(--primary);
    box-shadow: var(--clay-shadow-sm), var(--clay-inset);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

[data-theme="dark"] .app-shell .sidebar .nav-item > span:first-child,
[data-theme="dark"] .app-shell .mobile-drawer .nav-item > span:first-child {
    background: linear-gradient(145deg, #1C3A67 0%, #12294C 100%);
    color: var(--primary-sky);
}

.app-shell .sidebar .nav-item:hover > span:first-child,
.app-shell .mobile-drawer .nav-item:hover > span:first-child {
    transform: translateY(-1px) rotate(-3deg);
}

.app-shell .sidebar .nav-item.active > span:first-child,
.app-shell .mobile-drawer .nav-item.active > span:first-child {
    background: linear-gradient(145deg, #5AA8FF 0%, #146EF5 55%, #0B4ECC 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 16px rgba(20, 110, 245, 0.34), inset 2px 2px 4px rgba(255, 255, 255, 0.45), inset -3px -3px 7px rgba(4, 39, 105, 0.4);
}

.app-shell .sidebar .nav-item.active > span:first-child svg,
.app-shell .mobile-drawer .nav-item.active > span:first-child svg {
    filter: drop-shadow(0 2px 2px rgba(3, 28, 78, 0.35));
}

.app-shell .nav-item {
    border-radius: 14px;
    margin-bottom: 4px;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-shell .nav-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(2px);
}

[data-theme="dark"] .app-shell .nav-item:hover {
    background: rgba(45, 140, 255, 0.12);
}

.app-shell .nav-item.active {
    background: linear-gradient(145deg, #FFFFFF 0%, #E4EFFF 100%);
    color: var(--primary-dark);
    box-shadow: var(--clay-shadow-sm), var(--clay-inset);
}

[data-theme="dark"] .app-shell .nav-item.active {
    background: linear-gradient(145deg, #1E3E6E 0%, #142E54 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 1px 1px 2px rgba(255, 255, 255, 0.10);
}

.app-shell .nav-item:focus-visible,
.app-shell .mobile-nav-link:focus-visible {
    outline: 3px solid rgba(46, 168, 246, 0.45);
    outline-offset: 2px;
}

/* ── Topbar and search get a recessed clay treatment ───────────── */
.app-shell .topbar {
    background: rgba(248, 251, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(31, 66, 135, 0.06);
}

[data-theme="dark"] .app-shell .topbar {
    background: rgba(9, 22, 44, 0.86);
    border-bottom-color: var(--clay-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.app-shell .topbar-search input {
    background: var(--clay-surface-alt);
    border: 1px solid transparent;
    box-shadow: var(--clay-inset-deep);
}

.app-shell .topbar-search input:focus {
    background: var(--clay-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft), var(--clay-inset);
}

.app-shell .dropdown-menu {
    border-radius: 20px;
    border: 1px solid var(--clay-border);
    background: var(--clay-surface);
    box-shadow: 0 22px 48px rgba(11, 31, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .app-shell .dropdown-menu {
    background: #12274A;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-shell .avatar-circle {
    box-shadow: 0 6px 14px rgba(20, 110, 245, 0.32), inset 2px 2px 4px rgba(255, 255, 255, 0.35);
}

/* ── Clay cards ─────────────────────────────────────────────────── */
.app-shell .card,
.app-shell .glass-card {
    border-radius: 24px;
    border: 1px solid var(--clay-border);
    background: linear-gradient(155deg, #FFFFFF 0%, #F6FAFF 100%);
    box-shadow: var(--clay-shadow-sm);
}

[data-theme="dark"] .app-shell .card,
[data-theme="dark"] .app-shell .glass-card {
    background: linear-gradient(155deg, #132A4E 0%, #0D1F3B 100%);
    border-color: var(--clay-border);
}

/* ── Stat cards: puffy clay tiles with 3D icons ────────────────── */
.app-shell .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.app-shell .stat-grid-hrd {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1400px) {
    .app-shell .stat-grid-hrd {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.app-shell .stat-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 22px;
    padding: 18px 20px;
    border: 1px solid var(--clay-border);
    background: linear-gradient(150deg, #FFFFFF 0%, #ECF3FF 100%);
    box-shadow: var(--clay-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .app-shell .stat-card {
    background: linear-gradient(150deg, #16305A 0%, #0E2342 100%);
    border-color: var(--clay-border);
    box-shadow: var(--clay-shadow-sm);
}

.app-shell .stat-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 130px;
    height: 130px;
    right: -46px;
    top: -62px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(46, 168, 246, 0.22), rgba(46, 168, 246, 0));
    pointer-events: none;
}

.app-shell .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--clay-shadow);
}

.app-shell .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #FFFFFF;
    background: linear-gradient(145deg, #66B3FF 0%, #146EF5 58%, #0B4ECC 100%);
    box-shadow: 0 10px 20px rgba(20, 110, 245, 0.30), inset 3px 3px 6px rgba(255, 255, 255, 0.5), inset -4px -4px 9px rgba(4, 39, 105, 0.35);
    transform: rotate(-4deg);
    transition: transform 0.2s ease;
}

.app-shell .stat-card:hover .stat-icon {
    transform: rotate(0deg) scale(1.05);
}

.app-shell .stat-icon svg {
    filter: drop-shadow(0 2px 2px rgba(2, 26, 68, 0.35));
}

.app-shell .stat-icon.success {
    background: linear-gradient(145deg, #7CF0C6 0%, #10B981 58%, #07855C 100%);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.28), inset 3px 3px 6px rgba(255, 255, 255, 0.5), inset -4px -4px 9px rgba(3, 80, 55, 0.35);
}

.app-shell .stat-icon.warning {
    background: linear-gradient(145deg, #FFE29A 0%, #F2B84B 58%, #D0921E 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(242, 184, 75, 0.32), inset 3px 3px 6px rgba(255, 255, 255, 0.55), inset -4px -4px 9px rgba(122, 79, 4, 0.3);
}

.app-shell .stat-icon.danger {
    background: linear-gradient(145deg, #FFB4B8 0%, #E56B70 58%, #C2454B 100%);
    box-shadow: 0 10px 20px rgba(229, 107, 112, 0.30), inset 3px 3px 6px rgba(255, 255, 255, 0.5), inset -4px -4px 9px rgba(110, 22, 28, 0.32);
}

.app-shell .stat-icon.info {
    background: linear-gradient(145deg, #9FE2FF 0%, #48A9D6 58%, #2A7FA8 100%);
    box-shadow: 0 10px 20px rgba(72, 169, 214, 0.30), inset 3px 3px 6px rgba(255, 255, 255, 0.5), inset -4px -4px 9px rgba(11, 72, 100, 0.32);
}

.app-shell .stat-label {
    font-size: 12px;
    letter-spacing: 0.01em;
}

.app-shell .stat-value {
    font-size: 28px;
    line-height: 1.1;
}

/* ── Dashboard hero ─────────────────────────────────────────────── */
.app-shell .dashboard-hero {
    position: relative;
    overflow: hidden;
    align-items: center;
    padding: 22px 24px;
    margin-bottom: 22px;
    border-radius: 26px;
    border: 1px solid var(--clay-border);
    background: linear-gradient(135deg, #FFFFFF 0%, #EAF3FF 55%, #D9ECFF 100%);
    box-shadow: var(--clay-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .app-shell .dashboard-hero {
    background: linear-gradient(135deg, #17335F 0%, #10264A 55%, #0B1D39 100%);
    border-color: var(--clay-border);
}

.app-shell .dashboard-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(46, 168, 246, 0.30), rgba(20, 110, 245, 0));
    pointer-events: none;
}

.app-shell .dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.app-shell .dashboard-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.app-shell .hero-clay-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: linear-gradient(145deg, #66B3FF 0%, #146EF5 55%, #0B4ECC 100%);
    box-shadow: 0 14px 26px rgba(20, 110, 245, 0.30), inset 4px 4px 8px rgba(255, 255, 255, 0.5), inset -5px -5px 10px rgba(4, 39, 105, 0.35);
    transform: rotate(-5deg);
}

.app-shell .hero-clay-icon svg {
    filter: drop-shadow(0 2px 3px rgba(2, 26, 68, 0.4));
}

.app-shell .hero-eyebrow {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

[data-theme="dark"] .app-shell .hero-eyebrow {
    color: var(--primary-sky);
}

.app-shell .dashboard-hero .page-title {
    font-size: 25px;
    line-height: 1.2;
}

.app-shell .dashboard-hero-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    flex-shrink: 0;
}

.app-shell .hero-filter-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding-left: 4px;
}

.app-shell .dashboard-hero-filter .form-select {
    min-width: 250px;
    border: 1px solid transparent;
    border-radius: 14px;
    background-color: var(--clay-surface);
    box-shadow: var(--clay-shadow-sm);
    font-weight: 600;
}

/* ── Mobile app shell: floating clay navigation ─────────────────── */
@media (max-width: 1024px) {
    .app-shell .app-main {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 44px);
    }

    .app-shell .mobile-header {
        background: rgba(250, 252, 255, 0.86);
        border-bottom: 1px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 26px rgba(31, 66, 135, 0.09);
    }

    [data-theme="dark"] .app-shell .mobile-header {
        background: rgba(9, 22, 44, 0.9);
        border-bottom-color: var(--clay-border);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    }

    .app-shell .mobile-drawer {
        border-radius: 0 26px 26px 0;
        border-right: 1px solid var(--clay-border);
        box-shadow: 20px 0 48px rgba(11, 31, 68, 0.22);
    }

    .app-shell .mobile-drawer .nav-item {
        margin-bottom: 6px;
    }

    .app-shell .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        min-height: 68px;
        padding: 6px;
        border-radius: 24px;
        border: 1px solid var(--clay-border);
        background: rgba(252, 254, 255, 0.9);
        box-shadow: 0 18px 36px rgba(31, 66, 135, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(18px) saturate(1.4);
        backdrop-filter: blur(18px) saturate(1.4);
        z-index: 420;
    }

    [data-theme="dark"] .app-shell .mobile-bottom-nav {
        background: rgba(14, 32, 60, 0.92);
        border-color: var(--clay-border);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .app-shell .mobile-nav-link {
        gap: 4px;
        padding: 2px;
        border-radius: 18px;
        color: var(--text-muted);
        transition: color 0.18s ease, transform 0.18s ease;
    }

    .app-shell .mobile-nav-icon {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: linear-gradient(145deg, #FFFFFF 0%, #E9F1FF 100%);
        box-shadow: var(--clay-shadow-sm), var(--clay-inset);
        color: var(--text-secondary);
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    [data-theme="dark"] .app-shell .mobile-nav-icon {
        background: linear-gradient(145deg, #1C3A67 0%, #12294C 100%);
        color: var(--text-secondary);
    }

    .app-shell .mobile-nav-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1;
    }

    .app-shell .mobile-nav-link:active .mobile-nav-icon {
        transform: scale(0.94);
    }

    .app-shell .mobile-nav-link.active {
        color: var(--primary-dark);
    }

    [data-theme="dark"] .app-shell .mobile-nav-link.active {
        color: #FFFFFF;
    }

    .app-shell .mobile-nav-link.active .mobile-nav-icon {
        background: linear-gradient(145deg, #5AA8FF 0%, #146EF5 55%, #0B4ECC 100%);
        color: #FFFFFF;
        transform: translateY(-4px) scale(1.04);
        box-shadow: 0 10px 18px rgba(20, 110, 245, 0.38), inset 2px 2px 4px rgba(255, 255, 255, 0.45), inset -3px -3px 7px rgba(4, 39, 105, 0.4);
    }

    .app-shell .mobile-nav-link.active .mobile-nav-icon svg {
        filter: drop-shadow(0 2px 2px rgba(3, 28, 78, 0.35));
    }
}

/* ── Mobile dashboard tuning ────────────────────────────────────── */
@media (max-width: 640px) {
    .app-shell .main-workspace {
        padding: 14px 12px 24px;
    }

    .app-shell .dashboard-hero {
        padding: 16px;
        border-radius: 22px;
        gap: 14px;
    }

    .app-shell .dashboard-hero-main {
        gap: 12px;
        align-items: flex-start;
    }

    .app-shell .hero-clay-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .app-shell .hero-clay-icon svg {
        width: 21px;
        height: 21px;
    }

    .app-shell .dashboard-hero .page-title {
        font-size: 19px;
    }

    .app-shell .dashboard-hero .page-subtitle {
        font-size: 12px;
    }

    .app-shell .dashboard-hero-filter,
    .app-shell .dashboard-hero-filter .form-select {
        width: 100%;
        min-width: 0;
    }

    .app-shell .stat-grid,
    .app-shell .stat-grid-hrd {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }

    .app-shell .stat-card {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
        min-height: 0;
        padding: 14px;
        border-radius: 20px;
    }

    .app-shell .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .app-shell .stat-icon svg {
        width: 19px;
        height: 19px;
    }

    .app-shell .stat-label {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .app-shell .stat-value {
        font-size: 22px;
    }

    .app-shell .stat-meta {
        font-size: 10.5px;
        line-height: 1.3;
    }

    .app-shell .card {
        padding: 16px;
        border-radius: 20px;
    }

    .app-shell .card-header {
        gap: 8px;
    }

    .app-shell .card-title {
        font-size: 14.5px;
    }

    .app-shell .page-header {
        margin-bottom: 16px;
    }

    .app-shell .hr-table th,
    .app-shell .hr-table td {
        padding: 10px 10px;
        font-size: 12.5px;
    }
}

@media (max-width: 360px) {
    .app-shell .stat-grid {
        gap: 10px;
    }

    .app-shell .stat-card {
        padding: 12px;
    }

    .app-shell .stat-value {
        font-size: 20px;
    }

    .app-shell .mobile-nav-icon {
        width: 34px;
        height: 34px;
    }

    .app-shell .mobile-nav-label {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell .stat-card,
    .app-shell .stat-icon,
    .app-shell .mobile-nav-icon,
    .app-shell .nav-item {
        transition: none !important;
    }

    .app-shell .stat-card:hover {
        transform: none;
    }

    .app-shell .stat-card:hover .stat-icon {
        transform: rotate(-4deg);
    }
}

/* ── Clay controls, buttons, and feedback surfaces ──────────────── */
.app-shell .btn {
    border-radius: 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.app-shell .btn:active {
    transform: translateY(1px) scale(0.99);
}

.app-shell .btn-primary {
    box-shadow: 0 10px 20px rgba(20, 110, 245, 0.28), inset 2px 2px 4px rgba(255, 255, 255, 0.35), inset -3px -3px 6px rgba(4, 39, 105, 0.30);
}

.app-shell .btn-primary:hover {
    box-shadow: 0 14px 26px rgba(20, 110, 245, 0.36), inset 2px 2px 4px rgba(255, 255, 255, 0.35), inset -3px -3px 6px rgba(4, 39, 105, 0.30);
}

.app-shell .btn-secondary,
.app-shell .btn-outline {
    background: linear-gradient(145deg, #FFFFFF 0%, #EAF2FF 100%);
    border-color: transparent;
    box-shadow: var(--clay-shadow-sm), var(--clay-inset);
}

[data-theme="dark"] .app-shell .btn-secondary,
[data-theme="dark"] .app-shell .btn-outline {
    background: linear-gradient(145deg, #1C3A67 0%, #12294C 100%);
    border-color: transparent;
    color: var(--primary-sky);
}

.app-shell .btn-secondary:hover,
.app-shell .btn-outline:hover {
    background: linear-gradient(145deg, #FFFFFF 0%, #DDEBFF 100%);
    box-shadow: var(--clay-shadow), var(--clay-inset);
}

[data-theme="dark"] .app-shell .btn-secondary:hover,
[data-theme="dark"] .app-shell .btn-outline:hover {
    background: linear-gradient(145deg, #234778 0%, #16315A 100%);
}

.app-shell .btn-ghost {
    border-radius: 12px;
}

.app-shell .btn-ghost:hover {
    box-shadow: var(--clay-inset);
}

.app-shell .btn-danger {
    box-shadow: 0 10px 20px rgba(229, 107, 112, 0.26), inset 2px 2px 4px rgba(255, 255, 255, 0.30), inset -3px -3px 6px rgba(110, 22, 28, 0.28);
}

.app-shell .form-control,
.app-shell .form-select,
.app-shell .form-textarea {
    border-radius: 14px;
    border-color: transparent;
    background: var(--clay-surface-alt);
    box-shadow: var(--clay-inset-deep);
}

.app-shell .form-control:focus,
.app-shell .form-select:focus,
.app-shell .form-textarea:focus {
    background: var(--clay-surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft), var(--clay-inset);
}

.app-shell .progress-track {
    height: 10px;
    background: var(--bg-elevated);
    box-shadow: var(--clay-inset-deep);
}

.app-shell .progress-fill {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.app-shell .progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.app-shell .empty-state-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: linear-gradient(145deg, #FFFFFF 0%, #E4EFFF 100%);
    color: var(--primary);
    box-shadow: var(--clay-shadow-sm), var(--clay-inset);
    transform: rotate(-4deg);
}

[data-theme="dark"] .app-shell .empty-state-icon {
    background: linear-gradient(145deg, #1C3A67 0%, #12294C 100%);
    color: var(--primary-sky);
}

.app-shell .toast {
    border-radius: 18px;
    border: 1px solid var(--clay-border);
    background: var(--clay-surface);
    box-shadow: 0 20px 44px rgba(11, 31, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-shell .modal-dialog {
    border-radius: 26px;
    border: 1px solid var(--clay-border);
    background: var(--clay-surface);
    box-shadow: 0 30px 70px rgba(11, 31, 68, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-shell .table-wrap {
    border-radius: 18px;
    border-color: var(--clay-border);
}

.app-shell .mobile-item-card {
    border-radius: 20px;
    border: 1px solid var(--clay-border);
    background: linear-gradient(155deg, #FFFFFF 0%, #F3F8FF 100%);
    box-shadow: var(--clay-shadow-sm);
}

[data-theme="dark"] .app-shell .mobile-item-card {
    background: linear-gradient(155deg, #132A4E 0%, #0D1F3B 100%);
}

@media (max-width: 640px) {
    .app-shell .dashboard-hero-filter .form-select {
        font-size: 13px;
        padding-right: 30px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Breadcrumbs — desktop trail + mobile back bar
   ═══════════════════════════════════════════════════════════════════ */

.app-shell .breadcrumbs {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1;
}

.app-shell .bc-desktop {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    min-width: 0;
    padding: 4px 10px 4px 5px;
    border-radius: 999px;
    border: 1px solid var(--clay-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(233, 242, 255, 0.86) 100%);
    box-shadow: 5px 5px 12px rgba(31, 66, 135, 0.07), -4px -4px 10px rgba(255, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .app-shell .bc-desktop {
    background: linear-gradient(145deg, rgba(28, 58, 103, 0.85) 0%, rgba(16, 38, 72, 0.9) 100%);
    border-color: var(--clay-border);
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.28), -3px -3px 8px rgba(50, 105, 190, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.app-shell .bc-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

[data-theme="dark"] .app-shell .bc-home {
    color: var(--primary-sky);
}

.app-shell .bc-home:hover {
    background: rgba(20, 110, 245, 0.08);
}

.app-shell .bc-home-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #FFFFFF;
    background: linear-gradient(145deg, #5AA8FF 0%, #146EF5 58%, #0B4ECC 100%);
    box-shadow: 0 4px 9px rgba(20, 110, 245, 0.28), inset 1px 1px 2px rgba(255, 255, 255, 0.5), inset -2px -2px 4px rgba(4, 39, 105, 0.35);
}

.app-shell .bc-home-icon svg {
    filter: drop-shadow(0 1px 1px rgba(3, 28, 78, 0.3));
}

.app-shell .bc-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0.55;
}

.app-shell .bc-link,
.app-shell .bc-muted,
.app-shell .bc-current {
    padding: 5px 9px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-shell .bc-link {
    max-width: 220px;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.app-shell .bc-link:hover {
    background: rgba(20, 110, 245, 0.09);
    color: var(--primary-dark);
}

[data-theme="dark"] .app-shell .bc-link:hover {
    background: rgba(45, 140, 255, 0.16);
    color: #FFFFFF;
}

.app-shell .bc-muted {
    max-width: 200px;
    color: var(--text-muted);
    font-weight: 500;
}

.app-shell .bc-current {
    max-width: 320px;
    color: var(--text);
    font-weight: 700;
}

/* Mobile: a compact back bar, deliberately different from the desktop trail */
.app-shell .bc-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .app-shell .breadcrumbs {
        margin: 0 0 12px;
        width: 100%;
    }

    .app-shell .bc-desktop {
        display: none;
    }

    .app-shell .bc-mobile {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        min-width: 0;
    }

    .app-shell .bc-back {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        max-width: 52%;
        flex-shrink: 0;
        padding: 7px 11px 7px 7px;
        border-radius: 999px;
        border: 1px solid var(--clay-border);
        background: linear-gradient(145deg, #FFFFFF 0%, #E9F2FF 100%);
        box-shadow: 4px 4px 10px rgba(31, 66, 135, 0.08), -3px -3px 8px rgba(255, 255, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.95);
        color: var(--primary-dark);
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        transition: transform 0.16s ease, box-shadow 0.16s ease;
    }

    .app-shell .bc-back svg {
        flex-shrink: 0;
    }

    .app-shell .bc-back span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-shell .bc-back:active {
        transform: scale(0.97);
        box-shadow: inset 2px 2px 5px rgba(31, 66, 135, 0.12), inset -1px -1px 3px rgba(255, 255, 255, 0.8);
    }

    [data-theme="dark"] .app-shell .bc-back {
        background: linear-gradient(145deg, #1C3A67 0%, #12294C 100%);
        color: var(--primary-sky);
    }

    .app-shell .bc-mobile .bc-sep {
        opacity: 0.45;
    }

    .app-shell .bc-mobile .bc-current {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 0;
        border-radius: 0;
        background: none;
        text-align: right;
        font-size: 12.5px;
        color: var(--text);
    }

    .app-shell .bc-mobile .bc-current[title] {
        cursor: default;
    }
}

@media (max-width: 360px) {
    .app-shell .bc-back {
        max-width: 50%;
        font-size: 11.5px;
        padding: 6px 9px 6px 6px;
    }

    .app-shell .bc-mobile .bc-current {
        font-size: 11.5px;
    }
}

/* Grid children must be able to shrink so wide tables never push the page */
.app-shell .grid-2 > *,
.app-shell .grid-3 > *,
.app-shell .grid-4 > *,
.app-shell .grid-2-1 > * {
    min-width: 0;
}

/* ── Mobile dashboard native refinements ─────────────────────────── */
.app-shell .title-mobile {
    display: none;
}

.app-shell .quick-actions {
    -webkit-overflow-scrolling: touch;
}

/* Compact greeting on small screens keeps the hero short */
@media (max-width: 640px) {
    .app-shell .title-desktop {
        display: none;
    }

    .app-shell .title-mobile {
        display: inline;
    }

    .app-shell .hero-filter-label {
        display: none;
    }

    .app-shell .hrsky-chart-body {
        min-height: 170px !important;
    }

    .app-shell .chart-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 12px !important;
    }

    .app-shell .chart-row > .card {
        min-width: 86vw;
        flex: 0 0 86vw;
        scroll-snap-align: start;
    }

    .app-shell .quick-actions {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .app-shell .quick-actions > a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .app-shell .activity-list {
        max-height: 220px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Floating mobile menu button (native app style) ─────────────── */
.mobile-menu-fab {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 16px;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 14px);
        width: 54px;
        height: 54px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(145deg, #5AA8FF 0%, #146EF5 55%, #0B4ECC 100%);
        color: #FFFFFF;
        box-shadow: 0 12px 24px rgba(20, 110, 245, 0.38), inset 2px 2px 4px rgba(255, 255, 255, 0.45), inset -3px -3px 7px rgba(4, 39, 105, 0.4);
        z-index: 430;
        cursor: pointer;
        transition: transform 0.16s ease, box-shadow 0.16s ease;
    }

    .mobile-menu-fab:active {
        transform: scale(0.94);
    }

    .mobile-menu-fab svg {
        filter: drop-shadow(0 2px 2px rgba(3, 28, 78, 0.35));
    }
}

/* ── Native bottom sheet menu (mobile) ───────────────────────────── */
.mobile-sheet-backdrop,
.mobile-sheet {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-sheet-backdrop {
        display: none;
    }

    .mobile-sheet-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(11, 22, 34, 0.5);
        z-index: 470;
        backdrop-filter: blur(2px);
    }

    .mobile-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 78vh;
        background: var(--surface);
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -12px 40px rgba(11, 31, 68, 0.25);
        z-index: 480;
        transform: translateY(100%);
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
        overflow: hidden;
    }

    .mobile-sheet.open {
        transform: translateY(0);
    }

    .mobile-sheet-handle {
        width: 42px;
        height: 5px;
        border-radius: 999px;
        background: var(--border);
        margin: 10px auto 4px;
        flex-shrink: 0;
    }

    .mobile-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 16px 12px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .mobile-sheet-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px 24px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-sheet-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        text-decoration: none;
        color: var(--text);
        font-size: 14px;
        font-weight: 600;
        transition: background 0.15s ease;
    }

    .mobile-sheet-item:hover,
    .mobile-sheet-item:active {
        background: var(--bg-elevated);
    }

    .mobile-sheet-item.active {
        background: var(--primary-soft);
        color: var(--primary-dark);
    }

    .mobile-sheet-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-elevated);
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .mobile-sheet-item.active .mobile-sheet-icon {
        background: linear-gradient(145deg, #5AA8FF 0%, #146EF5 55%, #0B4ECC 100%);
        color: #FFFFFF;
    }
}

/* ── Raised center menu button (Dana/GoPay style) ────────────────── */
@media (max-width: 1024px) {
    .mobile-nav-center {
        position: relative;
    }

    .mobile-nav-icon-center {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, #7CC4FF 0%, #146EF5 55%, #0A3F9E 100%);
        color: #FFFFFF;
        box-shadow: 0 14px 28px rgba(20, 110, 245, 0.45), 0 0 0 6px rgba(20, 110, 245, 0.12), inset 3px 3px 6px rgba(255, 255, 255, 0.5), inset -4px -4px 8px rgba(4, 39, 105, 0.45);
        transform: translateY(-16px);
        border: 4px solid var(--surface);
        position: relative;
        animation: menuPulse 2.6s ease-in-out infinite;
    }

    .mobile-nav-icon-center::after {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        border: 2px solid rgba(20, 110, 245, 0.25);
        opacity: 0;
        animation: menuRipple 2.6s ease-out infinite;
    }

    @keyframes menuPulse {
        0%, 100% { transform: translateY(0px) scale(1); }
        50% { transform: translateY(-2px) scale(1.05); }
    }

    @keyframes menuRipple {
        0% { transform: scale(0.85); opacity: 0.6; }
        100% { transform: scale(1.35); opacity: 0; }
    }

    .mobile-nav-center:active .mobile-nav-icon-center {
        transform: translateY(-12px) scale(0.94);
    }

    .mobile-nav-center .mobile-nav-label {
        transform: translateY(-6px);
        font-weight: 800;
        color: var(--primary-dark);
    }

    .mobile-nav-icon-center svg {
        filter: drop-shadow(0 2px 2px rgba(3, 28, 78, 0.35));
    }
}

/* ── GoPay-style island bottom navigation ───────────────────────── */
@media (max-width: 1024px) {
    .mobile-nav-side {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 2px;
        padding: 4px 6px;
        border-radius: 20px;
        background: rgba(252, 254, 255, 0.92);
        border: 1px solid var(--clay-border);
        box-shadow: 0 10px 24px rgba(31, 66, 135, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    [data-theme="dark"] .mobile-nav-side {
        background: rgba(14, 32, 60, 0.92);
        border-color: var(--clay-border);
    }

    .mobile-nav-center {
        position: relative;
        flex: 0 0 auto;
        width: 104px;
        height: 104px;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0px;
    }

    .mobile-nav-icon-center {
        width: 104px;
        height: 104px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, #7CC4FF 0%, #146EF5 55%, #0A3F9E 100%);
        color: #FFFFFF;
        box-shadow: 0 18px 32px rgba(20, 110, 245, 0.6), 0 0 0 10px rgba(20, 110, 245, 0.10), inset 3px 3px 6px rgba(255, 255, 255, 0.55), inset -4px -4px 8px rgba(4, 39, 105, 0.45);
        border: 4px solid var(--surface);
        animation: menuPulse 2.6s ease-in-out infinite;
    }

    .mobile-nav-center .mobile-nav-label {
        position: absolute;
        bottom: -2px;
        font-size: 10px;
        font-weight: 800;
        color: var(--primary-dark);
    }

    /* transparent "sea" gap around the island */
    .mobile-bottom-nav {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 12px calc(8px + env(safe-area-inset-bottom)) !important;
    }
}

/* ── Notch bottom navigation: active tab rises in a bubble ───────── */
@media (max-width: 1024px) {
    .app-shell .mobile-bottom-nav {
        --mnav-bg: #FFFFFF;
        --mnav-icon: #8A94A6;
        --mnav-active: #0B1F44;
        --mnav-bubble: #FFFFFF;
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        height: 66px;
        min-height: 66px !important;
        padding: 0 !important;
        gap: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        grid-template-columns: none;
        filter: drop-shadow(0 12px 20px rgba(11, 31, 68, 0.16)) drop-shadow(0 2px 4px rgba(11, 31, 68, 0.06));
    }

    [data-theme="dark"] .app-shell .mobile-bottom-nav {
        --mnav-bg: #102344;
        --mnav-icon: #7189B0;
        --mnav-active: #FFFFFF;
        --mnav-bubble: #16305C;
        filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
    }

    /* White bar with a circular notch cut out above the active tab */
    .app-shell .mobile-bottom-nav::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 22px;
        background: var(--mnav-bg);
        -webkit-mask-image: linear-gradient(#000, #000), radial-gradient(circle 33px at 50% 2px, #000 31.5px, transparent 33px);
        -webkit-mask-size: 100% 100%, calc(100% / var(--n, 5)) 100%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: 0 0, calc(var(--ai, -1) / (var(--n, 5) - 1) * 100%) 0;
        -webkit-mask-composite: xor;
        mask-image: linear-gradient(#000, #000), radial-gradient(circle 33px at 50% 2px, #000 31.5px, transparent 33px);
        mask-size: 100% 100%, calc(100% / var(--n, 5)) 100%;
        mask-repeat: no-repeat;
        mask-position: 0 0, calc(var(--ai, -1) / (var(--n, 5) - 1) * 100%) 0;
        mask-composite: exclude;
        transition: mask-position 0.3s ease, -webkit-mask-position 0.3s ease;
        pointer-events: none;
    }

    /* Home-indicator pill */
    .app-shell .mobile-bottom-nav::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 5px;
        width: 34%;
        height: 4px;
        margin-left: -17%;
        border-radius: 4px;
        background: rgba(107, 114, 128, 0.55);
        pointer-events: none;
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        padding: 0 2px 15px;
        border: none;
        border-radius: 0;
        background: transparent;
        color: var(--mnav-icon);
        font-family: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        z-index: 1;
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link .mobile-nav-icon {
        width: auto;
        height: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        box-shadow: none;
        border-radius: 0;
        color: var(--mnav-icon);
        transform: none;
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link .mobile-nav-icon svg {
        width: 22px;
        height: 22px;
        filter: none;
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link .mobile-nav-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10.5px;
        font-weight: 500;
        line-height: 1.1;
        color: var(--mnav-icon);
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link:active .mobile-nav-icon {
        transform: scale(0.9);
    }

    /* Active tab: icon becomes the raised bubble, label turns bold */
    .app-shell .mobile-bottom-nav .mobile-nav-link.active .mobile-nav-label {
        font-weight: 800;
        color: var(--mnav-active);
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link.active .mobile-nav-icon {
        position: absolute;
        top: -26px;
        left: 50%;
        width: 52px;
        height: 52px;
        margin-left: -26px;
        border-radius: 50%;
        background: var(--mnav-bubble);
        color: var(--primary);
        box-shadow: 0 8px 16px rgba(20, 110, 245, 0.25);
        animation: mnavPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }

    [data-theme="dark"] .app-shell .mobile-bottom-nav .mobile-nav-link.active .mobile-nav-icon {
        color: #7DBBFF;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link.active .mobile-nav-icon svg {
        width: 26px;
        height: 26px;
        stroke-width: 2;
        fill: rgba(20, 110, 245, 0.2);
        filter: none;
    }

    @keyframes mnavPop {
        0% { transform: translateY(14px) scale(0.5); opacity: 0; }
        100% { transform: translateY(0) scale(1); opacity: 1; }
    }

    .app-shell .mobile-bottom-nav .mobile-nav-link:focus-visible {
        outline: 2px solid rgba(20, 110, 245, 0.6);
        outline-offset: -4px;
        border-radius: 14px;
    }

    .app-shell .app-main {
        padding-bottom: calc(66px + env(safe-area-inset-bottom) + 30px);
    }

    @media (prefers-reduced-motion: reduce) {
        .app-shell .mobile-bottom-nav .mobile-nav-link.active .mobile-nav-icon { animation: none; }
        .app-shell .mobile-bottom-nav::before { transition: none; }
    }
}

/* ── Report Center: guided filters ───────────────────────────────── */
.rf-step-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.rf-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 800;
}

.rf-step-hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.rf-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    gap: 10px;
}

.rf-type {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rf-type:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.rf-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rf-type:focus-within {
    outline: 2px solid rgba(20, 110, 245, 0.45);
    outline-offset: 2px;
}

.rf-type.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 6px 16px rgba(20, 110, 245, 0.16);
}

.rf-type-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.rf-type.is-selected .rf-type-icon {
    background: var(--primary);
    color: #FFFFFF;
}

.rf-type-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.rf-type-body strong {
    font-size: 13px;
    color: var(--text);
}

.rf-type-body small {
    font-size: 11.5px;
    color: var(--text-muted);
}

.rf-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    align-items: end;
}

.rf-field {
    margin-bottom: 0;
}

.rf-actions {
    display: flex;
    gap: 8px;
}

.rf-actions .btn-primary {
    flex: 1;
    justify-content: center;
}

.rf-dirty {
    animation: rfPulse 1.6s ease-in-out infinite;
}

@keyframes rfPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(20, 110, 245, 0.30); }
    50% { box-shadow: 0 0 0 5px rgba(20, 110, 245, 0.22); }
}

.rf-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.rf-chips-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.rf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
}

[data-theme="dark"] .rf-chip {
    color: var(--primary-mint);
}

.rf-chip em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.75;
}

.rf-chip a {
    color: inherit;
    font-size: 15px;
    line-height: 1;
    opacity: 0.7;
}

.rf-chip a:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .rf-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rf-type {
        padding: 9px 10px;
    }

    .rf-type-icon {
        width: 30px;
        height: 30px;
    }

    .rf-type-body small {
        display: none;
    }

    .rf-filters {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf-dirty { animation: none; }
}
