﻿/* ================================================================
   TRUEFLIGHT – Clean Light Design System
   Modern SaaS · White base · Blue accents
================================================================ */

/* ----------------------------------------------------------------
   1. CUSTOM PROPERTIES
---------------------------------------------------------------- */
:root {
    /* Brand palette */
    --c-navy:        #0F172A;
    --c-navy-dark:   #0B162C;
    --c-navy-mid:    #152B55;
    --c-blue:        #2563EB;
    --c-blue-mid:    #3B82F6;
    --c-sky:         #5EAEE3;
    --c-sky-light:   #83C9EC;
    --c-sky-dark:    #3F8DCD;
    --c-sky-glow:    rgba(94,174,227,0.18);
    --c-blue-pale:   #EFF6FF;
    --c-blue-border: #BFDBFE;
    --c-white:       #FFFFFF;
    --c-text:        #0F172A;
    --c-text-body:   #334155;
    --c-text-muted:  #64748B;
    --c-bg:          #FFFFFF;
    --c-bg-alt:      #F8FAFC;
    --c-border:      #E2E8F0;
    --c-border-dark: #CBD5E1;

    /* Legacy glass tokens – kept for ops dashboard */
    --glass-bg:          rgba(255,255,255,0.07);
    --glass-bg-mid:      rgba(255,255,255,0.10);
    --glass-bg-strong:   rgba(255,255,255,0.14);
    --glass-dark:        rgba(6,11,24,0.65);
    --glass-border:      rgba(255,255,255,0.13);
    --glass-border-bright: rgba(255,255,255,0.22);
    --glass-blur:        blur(40px) saturate(180%);
    --glass-blur-sm:     blur(18px) saturate(160%);
    --glass-shadow:      0 32px 80px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.18);
    --glass-shadow-sm:   0 8px 32px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.14);
    --glass-glow-sky:    0 0 40px rgba(94,174,227,0.22);

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-max:  1200px;
    --container-pad:  clamp(1.25rem, 5vw, 2rem);
    --section-gap:    clamp(4rem, 10vw, 7rem);

    /* Radii */
    --r-sm:   0.375rem;
    --r-md:   0.75rem;
    --r-lg:   1.25rem;
    --r-xl:   2rem;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md:   0 4px 20px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --shadow-lg:   0 12px 40px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.05);
    --shadow-navy: 0 20px 60px rgba(6,11,24,0.55);
    --shadow-sky:  0 8px 32px rgba(94,174,227,0.40);
    --shadow-blue: 0 8px 32px rgba(37,99,235,0.22);
    --shadow-card: 0 1px 3px rgba(15,23,42,0.05), 0 4px 16px rgba(15,23,42,0.07);

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.28s ease;
    --t-slow: 0.5s ease;
}


/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--c-text-body);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before,
body::after { content: none; }

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }
address { font-style: normal; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--c-text);
}

p { line-height: 1.7; }

.hide-mobile { display: none; }

@media (min-width: 768px) {
    .hide-mobile { display: inline; }
}


/* ----------------------------------------------------------------
   3. LAYOUT UTILITIES
---------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section-padding { padding-block: var(--section-gap); }

.section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1D6FB8;
    background: var(--c-blue-pale);
    border: 1px solid var(--c-blue-border);
    padding: 0.3rem 0.85rem;
    border-radius: var(--r-full);
    margin-bottom: 1rem;
}

.section-tag--light {
    color: #1D6FB8;
    background: var(--c-blue-pale);
    border-color: var(--c-blue-border);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--c-text);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--c-text-muted);
    max-width: 560px;
    margin-inline: auto;
}


/* ----------------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), border-color var(--t-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 60%);
    pointer-events: none;
}

.btn:focus-visible {
    outline: 3px solid var(--c-sky);
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

/* Primary */
.btn-primary {
    background: linear-gradient(135deg, var(--c-sky-light) 0%, var(--c-sky) 50%, var(--c-sky-dark) 100%);
    color: #fff;
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 6px 24px rgba(94,174,227,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
    box-shadow: 0 10px 36px rgba(94,174,227,0.60), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Glass (kept for dark sections) */
.btn-glass {
    background: rgba(255,255,255,0.10);
    color: var(--c-white);
    border-color: rgba(255,255,255,0.22);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.38);
    transform: translateY(-2px);
}

/* Outline Blue (light sections) */
.btn-outline-blue {
    background: var(--c-white);
    color: var(--c-blue);
    border-color: var(--c-blue-border);
    box-shadow: var(--shadow-sm);
}

.btn-outline-blue:hover {
    background: var(--c-blue-pale);
    border-color: var(--c-blue-mid);
    transform: translateY(-2px);
}

/* White */
.btn-white {
    background: rgba(255,255,255,0.95);
    color: var(--c-navy);
    border-color: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--c-white);
    transform: translateY(-1px);
}

/* Outline navy (used in dark sections / pricing) */
.btn-outline-navy {
    background: var(--c-white);
    color: var(--c-text-body);
    border-color: var(--c-border);
    box-shadow: var(--shadow-sm);
}

.btn-outline-navy:hover {
    border-color: var(--c-blue-border);
    color: var(--c-blue);
    background: var(--c-blue-pale);
    transform: translateY(-1px);
}

/* In dark (pricing featured) context override */
.pricing-card--featured .btn-outline-navy {
    background: rgba(255,255,255,0.12);
    color: var(--c-white);
    border-color: rgba(255,255,255,0.25);
}
.pricing-card--featured .btn-outline-navy:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.40);
    color: var(--c-white);
}

/* Sizes */
.btn-lg {
    font-size: 1rem;
    padding: 0.9rem 1.875rem;
}

.btn-full { width: 100%; }


/* ----------------------------------------------------------------
   5. HEADER / NAVIGATION
---------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding-block: 0.875rem;
    background: rgba(255,255,255,0.90);
    border-bottom: 1px solid var(--c-border);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 4px 20px rgba(15,23,42,0.06);
    transition: background var(--t-base), padding var(--t-base), box-shadow var(--t-base);
}

.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    padding-block: 0.625rem;
    box-shadow: 0 1px 0 var(--c-border), 0 8px 30px rgba(15,23,42,0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    color: var(--c-text);
    transition: opacity var(--t-fast);
}

.nav-logo:hover { opacity: 0.75; }

.logo-image {
    display: block;
    width: auto;
    height: 3rem;
    max-width: 9rem;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.1);
}

.nav-menu {
    display: none;
    gap: 0.25rem;
    margin-left: auto;
}

@media (min-width: 900px) {
    .nav-menu { display: flex; align-items: center; }
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-body);
    padding: 0.4rem 0.875rem;
    border-radius: var(--r-md);
    transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover {
    color: var(--c-text);
    background: var(--c-bg-alt);
}

.nav-cta {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.875rem;
    padding: 0.5625rem 1.125rem;
}

@media (min-width: 900px) { .nav-cta { margin-left: 0.5rem; } }

@media (max-width: 520px) { .nav-cta { display: none; } }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    margin-left: auto;
    border-radius: var(--r-sm);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .nav-toggle { display: none; } }

.nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem var(--container-pad);
    gap: 0.5rem;
    z-index: 800;
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
}

.nav-menu.is-open .nav-link {
    font-size: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: var(--r-md);
    color: var(--c-text);
}


/* ----------------------------------------------------------------
   6. HERO
---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--c-bg);
    overflow: hidden;
}

/* SVG background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(7rem, 16vw, 10rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-content { max-width: 680px; min-width: 0; }

@media (min-width: 980px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        gap: clamp(3rem, 6vw, 5rem);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1D6FB8;
    background: var(--c-blue-pale);
    border: 1px solid var(--c-blue-border);
    padding: 0.4rem 1.1rem;
    border-radius: var(--r-full);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.3);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.3); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.12); }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-text);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--c-text-muted);
    margin-bottom: 2.25rem;
    line-height: 1.7;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 3rem;
}

@media (max-width: 520px) {
    .hero-badge { font-size: 0.66rem; }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 260px;
    }
    .hero-actions .btn { width: 100%; }
}

/* Stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    width: fit-content;
    max-width: 100%;
}

@media (max-width: 520px) {
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .hero-stat-divider { display: none; }
}

.hero-stat { display: flex; flex-direction: column; gap: 0.125rem; }

.hero-stat strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
}

.hero-stat span {
    font-size: 0.72rem;
    color: var(--c-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--c-border);
    flex-shrink: 0;
}

/* Hero image wrap + decorators */
.hero-image-wrap {
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Blue glow blobs behind image */
.hero-img-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-img-blob--1 {
    width: 520px;
    height: 520px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, rgba(94,174,227,0.06) 50%, transparent 70%);
    filter: blur(20px);
}

.hero-img-blob--2 {
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-46%, -54%);
    background: radial-gradient(circle, rgba(94,174,227,0.18) 0%, transparent 65%);
    filter: blur(12px);
}

.hero-img-ring {
    position: absolute;
    width: 480px;
    height: 480px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(37,99,235,0.12);
    pointer-events: none;
    z-index: 0;
}

.hero-img-ring::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 1px solid rgba(94,174,227,0.08);
}

.hero-image {
    position: relative;
    z-index: 1;
    width: min(600px, 92vw);
    height: auto;
    object-fit: contain;
    border-radius: 1.25rem;
    filter: drop-shadow(0 24px 60px rgba(15,23,42,0.15)) drop-shadow(0 8px 24px rgba(37,99,235,0.12));
}

@media (min-width: 760px) { .hero-image-wrap { display: flex; } }

@media (max-width: 979px) {
    .hero-image-wrap { justify-content: flex-start; }
    .hero-image { width: min(420px, 88vw); }
    .hero-img-blob--1 { width: 360px; height: 360px; }
    .hero-img-ring { width: 340px; height: 340px; }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--c-text-muted);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    animation: bounce 2.4s ease-in-out infinite;
    transition: background var(--t-fast), color var(--t-fast);
}

.hero-scroll:hover { background: var(--c-bg-alt); color: var(--c-blue); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}


/* ----------------------------------------------------------------
   7. FEATURES – PILOTEN
---------------------------------------------------------------- */
.features {
    background: var(--c-bg-alt);
    position: relative;
}

.features-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-blue), var(--c-sky));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.feature-card::after { content: none; }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-blue-border);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--c-blue-pale);
    border: 1px solid var(--c-blue-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.65;
    flex: 1;
}

.feature-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1D6FB8;
    background: var(--c-blue-pale);
    border: 1px solid var(--c-blue-border);
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    width: fit-content;
}


/* ----------------------------------------------------------------
   8. APP PREVIEW
---------------------------------------------------------------- */
.app-preview {
    background: var(--c-bg);
    overflow: hidden;
}

.app-preview-inner {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .app-preview-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.app-preview-content { order: 1; }
.app-preview-visual  { order: 2; display: flex; justify-content: center; }

@media (min-width: 900px) {
    .app-preview-content { order: 2; }
    .app-preview-visual  { order: 1; }
}

.app-preview-content h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-block: 0.75rem 1rem; color: var(--c-text); }

.app-preview-content p { color: var(--c-text-muted); font-size: 1rem; margin-bottom: 1.5rem; }

.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text-body);
}

.check-list li svg { flex-shrink: 0; }

.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    color: var(--c-text-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.store-badge:hover {
    background: var(--c-bg-alt);
    border-color: var(--c-blue-border);
    transform: translateY(-1px);
}

.phone-mockup {
    position: relative;
    width: 240px;
    height: 500px;
    background: linear-gradient(145deg, #1e2d4e, #152340);
    border-radius: 36px;
    border: 1px solid rgba(94,174,227,0.25);
    box-shadow: 0 30px 80px rgba(15,23,42,0.20), 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
    flex-shrink: 0;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: rgba(4,8,16,0.90);
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(94,174,227,0.10) 0%, #0a1428 100%);
}

.phone-screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.75rem;
    color: rgba(255,255,255,0.30);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2rem;
    text-align: center;
}

.phone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
}

.phone-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(94,174,227,0.30) 0%, transparent 70%);
    pointer-events: none;
}


/* ----------------------------------------------------------------
   9. DASHBOARD SECTION (Landing page)
---------------------------------------------------------------- */
.dashboard-section {
    background: var(--c-bg-alt);
    position: relative;
    overflow: hidden;
}

.dashboard-section::before { content: none; }

.dashboard-layout {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .dashboard-layout { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

.dashboard-visual { position: relative; }

.dashboard-mockup-frame { position: relative; border-radius: var(--r-xl); overflow: visible; }

.dashboard-img-placeholder {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 340px;
}

.dashboard-placeholder-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
}

.placeholder-dot { width: 10px; height: 10px; border-radius: 50%; }
.placeholder-dot.red    { background: #FF5F56; }
.placeholder-dot.yellow { background: #FFBD2E; }
.placeholder-dot.green  { background: #27C93F; }

.dashboard-placeholder-bar span {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-text-muted);
}

.placeholder-content { display: flex; height: 280px; gap: 0; }

.placeholder-sidebar {
    width: 60px;
    background: var(--c-bg-alt);
    border-right: 1px solid var(--c-border);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex-shrink: 0;
}

.placeholder-menu-item { height: 28px; background: var(--c-border); border-radius: var(--r-sm); }
.placeholder-menu-item.active { background: var(--c-blue-border); }

.placeholder-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.placeholder-row { display: flex; gap: 0.625rem; }

.placeholder-card {
    flex: 1;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--c-border);
}

.placeholder-card.blue {
    background: var(--c-blue-pale);
    border: 1px solid var(--c-blue-border);
}

.placeholder-chart {
    flex: 1;
    background: var(--c-bg-alt);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
}

.placeholder-table { display: flex; flex-direction: column; gap: 0.375rem; }
.placeholder-table-row { height: 22px; background: var(--c-border); border-radius: var(--r-sm); }

.dashboard-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-white);
    padding: 0.5rem 1rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,0.20);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.dashboard-badge--green {
    background: rgba(34,197,94,0.85);
    top: -14px;
    right: 24px;
    box-shadow: 0 4px 20px rgba(34,197,94,0.4);
}

.dashboard-badge--amber {
    background: rgba(217,119,6,0.88);
    bottom: -14px;
    left: 24px;
    box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}

.dashboard-features { display: flex; flex-direction: column; gap: 2rem; }

.dashboard-feature { display: flex; gap: 1.125rem; align-items: flex-start; }

.dashboard-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--c-blue-pale);
    border: 1px solid var(--c-blue-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.dashboard-feature-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--c-text);
}

.dashboard-feature-text p {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.65;
}


/* ----------------------------------------------------------------
   10. PRICING
---------------------------------------------------------------- */
.pricing { background: var(--c-bg); }

.pricing-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 700px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: center; }
}

.pricing-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    position: relative;
}

.pricing-card::after { content: none; }

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-blue-border);
}

.pricing-card--featured {
    background: linear-gradient(150deg, #152B55 0%, #0d1f3e 100%);
    border-color: rgba(94,174,227,0.35);
    box-shadow: 0 20px 60px rgba(15,43,85,0.30), 0 0 0 1px rgba(94,174,227,0.20);
    transform: scale(1.03);
    color: var(--c-white);
}

@media (min-width: 1024px) {
    .pricing-card--featured { transform: scale(1.05); z-index: 1; }
    .pricing-card--featured:hover {
        transform: scale(1.05) translateY(-3px);
        box-shadow: 0 28px 70px rgba(15,43,85,0.38);
    }
}

.pricing-featured-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--c-blue), var(--c-sky-dark));
    color: var(--c-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 1rem;
    border-radius: var(--r-full);
    white-space: nowrap;
    box-shadow: var(--shadow-blue);
}

.pricing-header h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--c-text); }
.pricing-header p { font-size: 0.875rem; color: var(--c-text-muted); }

.pricing-card--featured .pricing-header h3 { color: var(--c-white); }
.pricing-card--featured .pricing-header p { color: rgba(255,255,255,0.60); }

.pricing-amount { display: flex; align-items: baseline; gap: 0.375rem; }

.pricing-amount strong {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--c-text);
}

.pricing-card--featured .pricing-amount strong { color: var(--c-white); }

.pricing-amount span { font-size: 0.875rem; color: var(--c-text-muted); }
.pricing-card--featured .pricing-amount span { color: rgba(255,255,255,0.55); }

.pricing-features { display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-body);
}

.pricing-card--featured .pricing-features li { color: rgba(255,255,255,0.85); }

.pricing-features li svg { flex-shrink: 0; }


/* ----------------------------------------------------------------
   11. TRUST
---------------------------------------------------------------- */
.trust { background: var(--c-bg-alt); }

.trust-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-item {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    position: relative;
    overflow: hidden;
}

.trust-item::after { content: none; }

.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-blue-border);
}

.trust-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--r-md);
    background: var(--c-blue-pale);
    border: 1px solid var(--c-blue-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item h3 { font-size: 1rem; font-weight: 700; color: var(--c-text); }
.trust-item p { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.6; }


/* ----------------------------------------------------------------
   12. CTA BANNER
---------------------------------------------------------------- */
.cta-banner {
    position: relative;
    padding-block: clamp(4rem, 10vw, 7rem);
    overflow: hidden;
    text-align: center;
    color: var(--c-white);
    background: linear-gradient(150deg, #0d1f3e 0%, #152B55 50%, #1a3466 100%);
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 70%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(94,174,227,0.20) 0%, transparent 65%);
    filter: blur(40px);
}

.cta-bg::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(37,99,235,0.18) 0%, transparent 65%);
    filter: blur(40px);
}

.cta-content { position: relative; z-index: 1; max-width: 600px; margin-inline: auto; }

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--c-white);
    margin-bottom: 1rem;
}

.cta-content p { font-size: 1.0625rem; color: rgba(255,255,255,0.70); margin-bottom: 2.25rem; }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem;
}


/* ----------------------------------------------------------------
   13. FOOTER
---------------------------------------------------------------- */
.site-footer {
    background: #0a1628;
    border-top: none;
    color: rgba(255,255,255,0.55);
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}

@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand .nav-logo { margin-bottom: 1rem; }

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 240px;
    margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.625rem; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.55);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.social-link:hover {
    background: rgba(94,174,227,0.20);
    color: var(--c-sky-light);
    border-color: rgba(94,174,227,0.35);
}

.footer-links-group h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin-bottom: 1rem;
}

.footer-links-group ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links-group ul a { font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color var(--t-fast); }
.footer-links-group ul a:hover { color: var(--c-white); }

.footer-address { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9rem; }
.footer-address a { color: var(--c-sky-light); transition: color var(--t-fast); }
.footer-address a:hover { color: var(--c-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-items: flex-start;
}

@media (min-width: 700px) {
    .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.28); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.38); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--c-white); }


/* ----------------------------------------------------------------
   14. SCROLL ANIMATIONS
---------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible { opacity: 1; transform: translateY(0); }

.features-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.features-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.features-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.trust-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.trust-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.trust-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.pricing-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.pricing-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.dashboard-features [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.dashboard-features [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.dashboard-features [data-animate]:nth-child(4) { transition-delay: 0.3s; }


/* ----------------------------------------------------------------
   15. FOCUS & ACCESSIBILITY
---------------------------------------------------------------- */
:focus-visible {
    outline: 3px solid var(--c-sky);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-animate] { opacity: 1; transform: none; }
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--c-sky);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--r-md) var(--r-md);
    font-weight: 600;
    z-index: 9999;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }


/* ================================================================
   16. OPS DASHBOARD – Minimal Dark
================================================================ */

/* ── 3 base shades, no gradients ── */
:root {
    --dm-bg:      #111318;   /* main background */
    --dm-surface: #191d28;   /* sidebar, cards */
    --dm-raised:  #1f2336;   /* inputs, hover, dropdowns */
    --dm-border:  #272c3f;   /* all borders / dividers */
}

.ops-dashboard {
    min-height: 100svh;
    background: var(--dm-bg);
    color: var(--c-white);
    overflow-x: hidden;
}

/* ── Flatten all glass / gradient effects ── */

/* Sidebar dividers */
.ops-brand          { border-bottom-color: var(--dm-border); }
.ops-nav-label      { color: rgba(255,255,255,0.28); }
.ops-nav-divider    { background: var(--dm-border); }
.ops-nav a:hover    { background: var(--dm-raised); }
.ops-nav a.is-active {
    background: rgba(45,212,191,0.10);
    box-shadow: inset 3px 0 0 rgba(45,212,191,0.60);
}
.ops-sidebar-user        { border-top-color: var(--dm-border); }
.ops-sidebar-user:hover  { background: var(--dm-raised); }

/* Topbar */
.ops-topbar { border-bottom-color: var(--dm-border); }

/* Cards & metrics */
.ops-card,
.ops-metrics article {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.ops-card::before,
.ops-metrics article::before { display: none; }

/* Priority card divider */
.ops-priority-card .ops-card-header { border-bottom-color: var(--dm-border); }

/* Logbook */
.ops-logbook-head     { border-bottom-color: var(--dm-border); }
.ops-logbook-row      { background: var(--dm-surface); border-color: var(--dm-border); }
.ops-logbook-row:hover{ background: var(--dm-raised); border-color: var(--dm-border); }
.ops-logbook-row button {
    background: var(--dm-raised); border-color: var(--dm-border);
}

/* Table compact */
.ops-table-compact div { background: var(--dm-surface); border-color: var(--dm-border); }

/* Clean list */
.ops-clean-list li { background: var(--dm-surface); border-left-color: rgba(94,174,227,0.35); }

/* Task list */
.ops-task-list li  { background: var(--dm-surface); border-color: var(--dm-border); }

/* Buttons */
.ops-link-button,
.ops-action-strip a,
.ops-form-actions button {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    backdrop-filter: none;
    box-shadow: none;
}
.ops-link-button:hover,
.ops-action-strip a:hover,
.ops-form-actions button:hover {
    background: var(--dm-raised);
    border-color: var(--dm-border);
}

/* Inputs */
.ops-search input,
.ops-flight-form input, .ops-flight-form select, .ops-flight-form textarea,
.ops-logbook-form input, .ops-logbook-form select, .ops-logbook-form textarea {
    background: var(--dm-raised);
    border-color: var(--dm-border);
    backdrop-filter: none;
}

/* Navbar search */
.ops-navbar-search {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

/* Bell dropdown */
.ops-bell-dropdown {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.ops-bell-dd-header   { border-bottom-color: var(--dm-border); }
.ops-bell-notif       { border-bottom-color: var(--dm-border); }
.ops-bell-notif:hover { background: var(--dm-raised); }
.ops-bell-dd-footer   { border-top-color: var(--dm-border); }

/* Settings page – dark mode flat overrides (no !important so light-mode can override) */
html:not(.light-mode) .settings-page {
    background: var(--dm-bg);
    background-attachment: initial;
}
html:not(.light-mode) .st-topbar { background: var(--dm-surface); border-bottom-color: var(--dm-border); backdrop-filter: none; }
html:not(.light-mode) .st-avatar-row,
html:not(.light-mode) .st-license-item,
html:not(.light-mode) .st-security-item,
html:not(.light-mode) .st-theme-row,
html:not(.light-mode) .st-toggle-item { background: var(--dm-surface); border-color: var(--dm-border); }
html:not(.light-mode) .st-security-list { border-color: var(--dm-border); }
html:not(.light-mode) .st-field input,
html:not(.light-mode) .st-field select,
html:not(.light-mode) .st-field textarea { background: var(--dm-raised); border-color: var(--dm-border); }

.ops-dashboard * { letter-spacing: 0; }

.ops-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-width: 0;
    width: 100%;
    max-width: 100vw;
}

/* Sidebar */
.ops-sidebar {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem 1rem;
    background: var(--dm-surface);
    border-right: 1px solid var(--dm-border);
    min-width: 0;
    max-width: 100vw;
    z-index: 50;
    overflow-y: auto;
    scrollbar-width: none;
}

.ops-sidebar::-webkit-scrollbar { display: none; }

/* Logo */
.ops-brand {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem 1rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.ops-brand .logo-image { height: 2.75rem; max-width: 9rem; }

/* Nav */
.ops-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 0.5rem;
}

/* Section labels */
.ops-nav-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: rgba(255,255,255,0.30);
    padding: 1.1rem 0.625rem 0.3rem;
}
.ops-nav-label:first-child { padding-top: 0.4rem; }

.ops-nav-label svg { flex-shrink: 0; opacity: 0.65; }

.ops-nav-label--mt { margin-top: 0.25rem; }

/* Divider */
.ops-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0.5rem 0.25rem;
}

/* Nav links */
.ops-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 2.1rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    color: rgba(255,255,255,0.52);
    font-size: 0.845rem;
    font-weight: 500;
    transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.ops-nav a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--t-fast);
}

.ops-nav a:hover {
    color: var(--c-white);
    background: rgba(255,255,255,0.07);
}

.ops-nav a:hover svg { opacity: 1; }

.ops-nav a.is-active {
    color: var(--c-white);
    background: rgba(45,212,191,0.11);
    font-weight: 600;
    box-shadow: inset 3px 0 0 rgba(45,212,191,0.70);
}

.ops-nav a.is-active svg { opacity: 1; }

/* User row at bottom */
.ops-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-radius: 0.625rem;
    flex-shrink: 0;
    transition: background var(--t-fast);
}

.ops-sidebar-user:hover { background: rgba(255,255,255,0.05); }

.ops-sidebar-avatar {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--c-white);
    flex-shrink: 0;
}

.ops-sidebar-user-info {
    flex: 1 1 0;
    min-width: 0;
}

.ops-sidebar-user-info strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-sidebar-user-info span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.42);
}

.ops-sidebar-dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: #22C55E;
    display: inline-block;
}

/* keep old status class working as no-op */
.ops-sidebar-status { display: none; }

/* Settings gear icon in user row */
.ops-sidebar-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    transition: color var(--t-fast), background var(--t-fast);
    text-decoration: none;
}
.ops-sidebar-settings:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
}
.ops-sidebar-settings svg { flex-shrink: 0; }

/* Main area */
.ops-main {
    min-width: 0;
    max-width: 100%;
    padding: 1.5rem;
}

/* Top bar */
.ops-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ops-topbar p {
    color: rgba(255,255,255,0.42);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.ops-topbar h1 {
    color: var(--c-white);
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ops-topbar-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

/* Search */
.ops-search {
    display: grid;
    gap: 0.35rem;
}

.ops-search span {
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ops-search input {
    width: 100%;
    min-height: 2.75rem;
    min-width: 280px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.07);
    color: var(--c-white);
    padding: 0.75rem 1rem;
    font: inherit;
    outline: none;
    backdrop-filter: var(--glass-blur-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ops-search input::placeholder { color: rgba(255,255,255,0.32); }

.ops-search input:focus {
    border-color: rgba(94,174,227,0.60);
    box-shadow: 0 0 0 4px rgba(94,174,227,0.14);
}

/* Action strip – quick functions front and center */
.ops-action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.ops-link-button,
.ops-action-strip a,
.ops-form-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    backdrop-filter: var(--glass-blur-sm);
    color: rgba(255,255,255,0.80);
    padding: 0.7rem 1.125rem;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.ops-link-button:hover,
.ops-action-strip a:hover,
.ops-form-actions button:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.24);
    transform: translateY(-1px);
}

.ops-action-strip a.is-primary,
.ops-form-actions button:first-child {
    background: linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    border-color: rgba(255,255,255,0.22);
    color: var(--c-white);
    box-shadow: 0 6px 24px rgba(94,174,227,0.40), inset 0 1px 0 rgba(255,255,255,0.25);
}

.ops-action-strip a.is-primary:hover,
.ops-form-actions button:first-child:hover {
    box-shadow: 0 10px 36px rgba(94,174,227,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Layout */
.ops-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Cards */
.ops-card,
.ops-metrics article {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: var(--r-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow-sm);
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.ops-card::before,
.ops-metrics article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, transparent 55%);
    pointer-events: none;
    border-radius: inherit;
}

.ops-card { padding: 1.25rem; }

.ops-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    min-width: 0;
}

.ops-card-header h2 {
    color: var(--c-white);
    font-size: 1rem;
    font-weight: 700;
}

.ops-card-header p {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    margin-top: 0.2rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ops-card-header a {
    color: var(--c-sky-light);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--t-fast);
}

.ops-card-header a:hover { color: var(--c-white); }

/* Badge */
.ops-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-full);
    background: rgba(94,174,227,0.18);
    border: 1px solid rgba(94,174,227,0.32);
    color: var(--c-sky-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.ops-badge-warning {
    background: rgba(245,158,11,0.18);
    border-color: rgba(245,158,11,0.35);
    color: #FBBF24;
}

/* Metrics row */
.ops-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ops-metrics article { padding: 1.25rem; }

.ops-metrics span {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
}

.ops-metrics strong {
    display: block;
    color: #b0b8c8;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.ops-metrics small {
    display: block;
    color: rgba(255,255,255,0.68);
    font-size: 0.76rem;
    line-height: 1.4;
}

/* Card grid */
.ops-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* Flight form */
.ops-flight-form label span,
.ops-logbook-form label span {
    color: rgba(255,255,255,0.48);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ops-logbook-form,
.ops-flight-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
    align-items: end;
}

.ops-field-wide { grid-column: 1 / -1; }

.ops-logbook-form label,
.ops-flight-form label {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.ops-search input,
.ops-flight-form input,
.ops-flight-form select,
.ops-flight-form textarea,
.ops-logbook-form input,
.ops-logbook-form select,
.ops-logbook-form textarea {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.07);
    color: var(--c-white);
    padding: 0.75rem 0.875rem;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    backdrop-filter: var(--glass-blur-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ops-flight-form select,
.ops-logbook-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: calc(100% - 0.875rem) 50%;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    padding-right: 2.25rem;
    cursor: pointer;
}

.ops-flight-form select option,
.ops-logbook-form select option {
    background: #0a1428;
    color: var(--c-white);
}

.ops-flight-form textarea,
.ops-logbook-form textarea {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.5;
}

.ops-search input::placeholder,
.ops-flight-form input::placeholder,
.ops-logbook-form input::placeholder {
    color: rgba(255,255,255,0.30);
}

.ops-search input:focus,
.ops-flight-form input:focus,
.ops-flight-form select:focus,
.ops-flight-form textarea:focus,
.ops-logbook-form input:focus,
.ops-logbook-form select:focus,
.ops-logbook-form textarea:focus {
    border-color: rgba(94,174,227,0.60);
    box-shadow: 0 0 0 4px rgba(94,174,227,0.14);
}

/* Form actions */
.ops-form-actions {
    display: flex;
    gap: 0.75rem;
    grid-column: 1 / -1;
    flex-wrap: wrap;
}

/* Task list */
.ops-task-list {
    display: grid;
    gap: 0.7rem;
}

.ops-task-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.75);
    padding: 0.75rem;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ops-task-list strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border-radius: var(--r-sm);
    background: rgba(94,174,227,0.22);
    border: 1px solid rgba(94,174,227,0.35);
    color: var(--c-sky-light);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Clean list */
.ops-clean-list {
    display: grid;
    gap: 0.55rem;
}

.ops-clean-list li {
    color: rgba(255,255,255,0.70);
    font-size: 0.88rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.04);
    border-left: 2px solid rgba(94,174,227,0.40);
    line-height: 1.4;
}

/* Logbook table */
.ops-logbook-table {
    --ops-logbook-columns: minmax(4.8rem, 0.7fr) minmax(7rem, 0.85fr) minmax(6.5rem, 0.9fr) minmax(6.8rem, 0.8fr) minmax(5.2rem, 0.58fr) minmax(6.6rem, 0.72fr) minmax(7.2rem, 0.85fr) minmax(5.1rem, 0.58fr) minmax(5rem, 0.55fr) minmax(5.6rem, 0.58fr);
    display: grid;
    gap: 0.6rem;
}

#flight-list-container {
    display: grid;
    gap: 0.6rem;
}

.ops-logbook-head {
    display: grid;
    grid-template-columns: var(--ops-logbook-columns);
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    margin-bottom: 0.15rem;
}

.ops-logbook-row {
    display: grid;
    grid-template-columns: var(--ops-logbook-columns);
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.84rem;
    transition: background var(--t-fast), border-color var(--t-fast);
}

.ops-logbook-head > *,
.ops-logbook-row > * {
    min-width: 0;
}

.ops-logbook-row:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(94,174,227,0.25);
}

.ops-logbook-row strong { color: var(--c-white); font-weight: 700; }
.ops-logbook-row span { color: rgba(255,255,255,0.68); }
.ops-logbook-row em { color: rgba(255,255,255,0.55); font-style: normal; }

.ops-logbook-row b {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.40);
    white-space: nowrap;
}

.ops-flight-state {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.1rem 0.48rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.68);
}

.ops-flight-state.is-open {
    color: #83C9EC;
    border-color: rgba(94,174,227,0.32);
    background: rgba(94,174,227,0.12);
}

.ops-flight-state.is-locked {
    color: #fbbf24;
    border-color: rgba(251,191,36,0.34);
    background: rgba(251,191,36,0.12);
}

.ops-flight-hash {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.73rem;
    line-height: 1.2;
    color: rgba(255,255,255,0.52);
    white-space: nowrap;
}

.ops-logbook-row button {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.72);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: var(--glass-blur-sm);
    transition: background var(--t-fast);
}

.ops-logbook-row button:hover { background: rgba(255,255,255,0.14); color: var(--c-white); }

.ops-logbook-row button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Mini map */
.ops-mini-map {
    min-height: 120px;
    border-radius: var(--r-md);
    background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 25% 40%, rgba(94,174,227,0.22), transparent 30%),
        radial-gradient(circle at 75% 65%, rgba(34,197,94,0.14), transparent 28%),
        rgba(6,11,24,0.5);
    background-size: 32px 32px, 32px 32px, auto, auto, auto;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.80);
}

.ops-mini-map span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(94,174,227,0.80);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--r-full);
    padding: 0.3rem 0.7rem;
    box-shadow: 0 4px 16px rgba(94,174,227,0.35);
}

.ops-mini-map span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-white);
    display: block;
}

/* Table compact */
.ops-table {
    display: grid;
    gap: 0.6rem;
}

.ops-table-compact div {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.875rem;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 0.86rem;
}

.ops-table-compact strong { color: var(--c-white); font-weight: 700; }
.ops-table-compact span { color: rgba(255,255,255,0.58); }

.ops-table-compact b {
    font-size: 0.74rem;
    font-weight: 700;
    color: #22C55E;
    white-space: nowrap;
}

/* Capture card */
.ops-capture-card { grid-column: 1 / -1; }
.ops-priority-card { align-self: start; }

/* Priority card */
.ops-priority-card .ops-card-header { padding-bottom: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.07); }

/* FAB */
.quick-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.625rem;
}

.quick-fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--c-white);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 8px 32px rgba(94,174,227,0.50), inset 0 1px 0 rgba(255,255,255,0.30);
    transition: transform var(--t-base), box-shadow var(--t-base);
    cursor: pointer;
}

.quick-fab-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 44px rgba(94,174,227,0.65), inset 0 1px 0 rgba(255,255,255,0.30);
}

.quick-fab.is-open .quick-fab-toggle { transform: rotate(45deg); }

.quick-fab-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height var(--t-base), opacity var(--t-base);
}

.quick-fab.is-open .quick-fab-menu { max-height: 400px; opacity: 1; }

.quick-fab-menu a {
    display: inline-flex;
    align-items: center;
    height: 2.4rem;
    padding: 0 1rem;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: var(--glass-blur);
    color: var(--c-white);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--glass-shadow-sm);
    transition: background var(--t-fast), transform var(--t-fast);
}

.quick-fab-menu a:hover { background: rgba(255,255,255,0.18); transform: translateX(-3px); }


/* ================================================================
   17. DASHBOARD ENTRY – Login Page
================================================================ */
.entry-page {
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    background:
        radial-gradient(ellipse 60% 50% at 10% 5%, rgba(94,174,227,0.20) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 95%, rgba(21,43,85,0.30) 0%, transparent 55%),
        linear-gradient(160deg, #060b18 0%, #080e20 100%);
    background-attachment: fixed;
}

.entry-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
    width: 100%;
}

.entry-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem);
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

.entry-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(94,174,227,0.14) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}

.entry-logo {
    position: absolute;
    top: 2rem;
    left: clamp(2rem, 6vw, 5rem);
}

.entry-heading {
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.entry-heading p {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--c-sky-light);
    margin-bottom: 0.75rem;
}

.entry-heading h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-white);
    margin-bottom: 1rem;
}

.entry-heading span {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
}

/* Login card */
.entry-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem);
    gap: 2rem;
}

.entry-login-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.40);
    margin-bottom: 0.25rem;
}

.entry-login-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-white);
    letter-spacing: -0.02em;
}

.entry-login-form {
    display: grid;
    gap: 1rem;
    max-width: 400px;
}

.entry-login-form label {
    display: grid;
    gap: 0.4rem;
}

.entry-login-form label span {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.48);
}

.entry-login-form input {
    width: 100%;
    min-height: 2.875rem;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.07);
    color: var(--c-white);
    padding: 0.75rem 1rem;
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    backdrop-filter: var(--glass-blur-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.entry-login-form input::placeholder { color: rgba(255,255,255,0.28); }

.entry-login-form input:focus {
    border-color: rgba(94,174,227,0.60);
    box-shadow: 0 0 0 4px rgba(94,174,227,0.14);
}

.pw-field {
    position: relative;
}
.pw-field input {
    padding-right: 2.75rem !important;
}
.pw-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color var(--t-fast);
}
.pw-toggle:hover { color: rgba(255,255,255,0.75); }

.entry-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.entry-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.entry-check input {
    width: 1rem !important;
    height: 1rem !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    cursor: pointer;
    accent-color: var(--c-sky);
    width: auto !important; /* Allow browser default or small size */
    width: 1.15rem !important;
}

.entry-check span {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: rgba(255,255,255,0.62) !important;
}

.entry-login-row a {
    font-size: 0.875rem;
    color: var(--c-sky-light);
    font-weight: 500;
    transition: color var(--t-fast);
}

.entry-login-row a:hover { color: var(--c-white); }

.entry-login-form button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    width: 100%;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.22);
    background: linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    color: var(--c-white);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(94,174,227,0.42), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: box-shadow var(--t-base), transform var(--t-base);
}

.entry-login-form button[type="submit"]:hover {
    box-shadow: 0 10px 36px rgba(94,174,227,0.58), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.entry-login-footer {
    margin-top: 2rem;
    text-align: left;
    max-width: 400px;
}

@media (max-width: 700px) {
    .entry-shell { grid-template-columns: 1fr; }
    .entry-panel { display: none; }
    .entry-login-card { padding: 2rem 1.5rem; justify-content: flex-start; padding-top: 5rem; }
    .entry-login-form { max-width: 100%; }
}


/* ================================================================
   18. EINSTELLUNGEN PAGE
================================================================ */
.settings-page {
    min-height: 100svh;
    background: var(--ops-bg, linear-gradient(160deg, #060b18 0%, #080e20 100%));
}


/* ================================================================
   19. RESPONSIVE – OPS DASHBOARD
================================================================ */

/* ── Burger toggle button (always in DOM, hidden on desktop) ── */
.ops-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.07);
    color: var(--c-white);
    cursor: pointer;
    transition: background var(--t-fast);
}
.ops-burger:hover { background: rgba(255,255,255,0.13); }
.ops-burger svg { pointer-events: none; }

/* ── Backdrop overlay ── */
.ops-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.60);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 399;
}
.ops-nav-backdrop--visible { display: block; animation: opsBackdropIn 0.2s ease; }
@keyframes opsBackdropIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
    .ops-shell { grid-template-columns: 1fr; }

    /* Sidebar: off-canvas drawer, slides in from left */
    .ops-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100svh;
        width: 265px;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.28s ease;
        z-index: 400;
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem 1rem;
        border-right: 1px solid rgba(255,255,255,0.10);
        border-bottom: none;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ops-sidebar--open {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0,0,0,0.55);
    }

    .ops-brand {
        padding: 0 0 1rem 0;
        margin-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.09);
        flex-shrink: 0;
    }
    .ops-brand .logo-image { height: 2.25rem; }

    .ops-nav {
        flex-direction: column;
        padding-top: 0.5rem;
        overflow: visible;
        gap: 0.15rem;
    }
    .ops-nav-label { display: flex; }
    .ops-nav a { height: auto; white-space: normal; }

    .ops-sidebar-user { display: flex; }

    .ops-burger { display: flex; }

    .ops-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-grid { grid-template-columns: 1fr; }
    .ops-layout { grid-template-columns: 1fr; }
    .ops-capture-card { grid-column: auto; }
    .ops-logbook-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Light mode burger */
.light-mode .ops-burger { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.05); color: #0f172a; }
.light-mode .ops-burger:hover { background: rgba(0,0,0,0.10); }
.light-mode .ops-nav-backdrop { background: rgba(0,0,0,0.35); }

@media (max-width: 700px) {
    .ops-main { padding: 1rem; }

    .ops-topbar { gap: 0.75rem; flex-wrap: wrap; }

    /* Hide search and clock on very small screens to keep topbar clean */
    .ops-navbar-center { display: none; }
    .ops-clock { display: none; }

    .ops-topbar-title p { font-size: 0.72rem; }
    .ops-topbar-title h1 { font-size: 1.1rem; }

    .ops-topbar-actions { width: 100%; }
    .ops-search input { min-width: 0; width: 100%; }

    .ops-metrics { grid-template-columns: repeat(2, 1fr); }

    .ops-logbook-form,
    .ops-flight-form {
        grid-template-columns: 1fr;
    }

    .ops-logbook-head {
        display: none;
    }

    .ops-logbook-row {
        grid-template-columns: 1fr 1fr;
        font-size: 0.78rem;
    }
}


/* ================================================================
   20. EINSTELLUNGEN PAGE  (st-* namespace)
================================================================ */
.settings-page {
    min-height: 100svh;
    background:
        radial-gradient(ellipse 60% 50% at 8% 5%, rgba(94,174,227,0.16) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 92% 95%, rgba(21,43,85,0.30) 0%, transparent 55%),
        linear-gradient(160deg, #060b18 0%, #080e20 100%);
    background-attachment: fixed;
    color: var(--c-white);
    font-family: var(--font);
}

/* Top bar */
.st-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem var(--container-pad);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(6,11,24,0.55);
    backdrop-filter: var(--glass-blur);
    position: sticky;
    top: 0;
    z-index: 100;
}

.st-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.60);
    transition: color var(--t-fast);
}

.st-back:hover { color: var(--c-white); }

.st-logo .logo-image { height: 2.5rem; }

.st-user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.11);
}

.st-user-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--c-white);
}

.st-user-pill span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.80);
}

/* Shell: settings tabs + content */
.st-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 1160px;
    margin-inline: auto;
    padding: 1.25rem var(--container-pad) 4rem;
    gap: 1.5rem;
    align-items: start;
}

/* Settings tabs */
.st-sidenav {
    position: sticky;
    top: 4.7rem;
    z-index: 80;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.45rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-lg);
    background: rgba(7,14,31,0.72);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 16px 40px rgba(0,0,0,0.20);
    scrollbar-width: none;
}

.st-sidenav::-webkit-scrollbar { display: none; }

.st-sidenav-label {
    display: none;
}

.st-sidenav-label:first-child { padding-top: 0; }

.st-sidenav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    height: 2.45rem;
    padding: 0 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}

.st-sidenav-link svg { flex-shrink: 0; opacity: 0.65; transition: opacity var(--t-fast); }

.st-sidenav-link:hover { color: var(--c-white); background: rgba(255,255,255,0.07); }
.st-sidenav-link:hover svg { opacity: 1; }

.st-sidenav-link.is-active {
    color: var(--c-white);
    background: rgba(94,174,227,0.15);
    font-weight: 600;
}

.st-sidenav-link.is-active svg { opacity: 1; }

/* Sections – only active is shown */
.st-section { display: none; }
.st-section.is-active { display: block; }

/* Section header */
.st-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.st-section-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.st-section-header p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.55;
}

.st-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.st-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 6.25rem;
    padding: 1.1rem;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.06);
    color: var(--c-white);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.st-action-card:hover {
    transform: translateY(-1px);
    border-color: rgba(94,174,227,0.34);
    background: rgba(255,255,255,0.09);
}

.st-action-card--primary {
    background: linear-gradient(135deg, rgba(94,174,227,0.20), rgba(21,43,85,0.18));
    border-color: rgba(94,174,227,0.32);
}

.st-action-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-sky-light);
    background: rgba(94,174,227,0.13);
    border: 1px solid rgba(94,174,227,0.22);
}

.st-action-card__body {
    min-width: 0;
}

.st-action-card__body strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.96rem;
    font-weight: 800;
}

.st-action-card__body span {
    display: block;
    color: rgba(255,255,255,0.50);
    font-size: 0.84rem;
    line-height: 1.45;
}

.st-action-card__cta {
    align-self: center;
    padding: 0.45rem 0.75rem;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Avatar row */
.st-avatar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: var(--glass-blur-sm);
}

.st-avatar-big {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-white);
    box-shadow: 0 6px 20px rgba(94,174,227,0.38);
}

.st-avatar-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 0.2rem;
}

.st-avatar-info span {
    display: block;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.48);
    margin-bottom: 0.625rem;
}

/* Form */
.st-form { }

.st-form-intro {
    margin-bottom: 1rem;
}

.st-form-intro h2 {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--c-white);
    margin-bottom: 0.3rem;
}

.st-form-intro p {
    max-width: 46rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.54);
}

.st-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.st-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.st-field label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.42);
}

.st-field input,
.st-field select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.07);
    color: var(--c-white);
    padding: 0.65rem 0.875rem;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    backdrop-filter: var(--glass-blur-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.st-field input::placeholder { color: rgba(255,255,255,0.28); }

.st-field input:focus,
.st-field select:focus {
    border-color: rgba(94,174,227,0.60);
    box-shadow: 0 0 0 4px rgba(94,174,227,0.14);
}

.st-field--hidden-sm { }

.st-form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.st-form-status {
    min-height: 1.2rem;
    margin: 0.85rem 0 0;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.56);
}

.st-form-status.is-success { color: #86efac; }
.st-form-status.is-error { color: #fca5a5; }

/* Buttons */
.st-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.625rem;
    padding: 0 1.375rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.20);
    background: linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    color: var(--c-white);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(94,174,227,0.38), inset 0 1px 0 rgba(255,255,255,0.22);
    transition: box-shadow var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
}

.st-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(94,174,227,0.52), inset 0 1px 0 rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.st-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.625rem;
    padding: 0 1.125rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.72);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: var(--glass-blur-sm);
    transition: background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}

.st-btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--c-white); }

.st-btn-danger { color: #f87171 !important; border-color: rgba(248,113,113,0.25) !important; }
.st-btn-danger:hover { background: rgba(248,113,113,0.10) !important; }

.st-btn-outline-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.625rem;
    padding: 0 1.125rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(248,113,113,0.40);
    background: rgba(248,113,113,0.08);
    color: #f87171;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast);
}

.st-btn-outline-danger:hover { background: rgba(248,113,113,0.16); }

/* Toggle list (shared by Schnellfunktionen + Benachrichtigungen) */
.st-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.st-toggle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: var(--glass-blur-sm);
    transition: background var(--t-fast), border-color var(--t-fast);
}

.st-toggle-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }

.st-toggle-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: var(--r-md);
    background: rgba(94,174,227,0.13);
    border: 1px solid rgba(94,174,227,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-sky-light);
}

.st-toggle-body { flex: 1; min-width: 0; }

.st-toggle-body strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 0.2rem;
}

.st-toggle-body span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.4;
}

/* Toggle switch */
.st-toggle-switch {
    position: relative;
    display: inline-block;
    width: 2.625rem;
    height: 1.5rem;
    flex-shrink: 0;
    cursor: pointer;
}

.st-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.st-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: var(--r-full);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background var(--t-base), border-color var(--t-base);
}

.st-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transition: transform var(--t-base), background var(--t-base);
}

.st-toggle-switch input:checked + .st-toggle-track {
    background: var(--c-sky);
    border-color: var(--c-sky-dark);
}

.st-toggle-switch input:checked + .st-toggle-track::after {
    transform: translateX(18px);
    background: var(--c-white);
}

/* License list */
.st-license-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.st-license-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
}

.st-license-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-license-icon--green { background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.28); color: #4ade80; }
.st-license-icon--amber { background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.28); color: #fbbf24; }

.st-license-body { flex: 1; }
.st-license-body strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--c-white); margin-bottom: 0.2rem; }
.st-license-body span { font-size: 0.82rem; color: rgba(255,255,255,0.48); }

.st-license-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.625rem;
    border-radius: var(--r-full);
    white-space: nowrap;
}

.st-license-status--ok { background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.28); color: #4ade80; }
.st-license-status--warn { background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.28); color: #fbbf24; }

/* Security list */
.st-security-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--r-lg);
    overflow: hidden;
    backdrop-filter: var(--glass-blur-sm);
}

.st-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.st-security-item:last-child { border-bottom: none; }

.st-security-left strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--c-white); margin-bottom: 0.2rem; }
.st-security-left span { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* Danger zone */
.st-danger-zone {
    padding: 1.25rem;
    border-radius: var(--r-lg);
    border: 1px solid rgba(248,113,113,0.42);
    background:
        linear-gradient(135deg, rgba(248,113,113,0.14), rgba(127,29,29,0.10)),
        rgba(248,113,113,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 34px rgba(127,29,29,0.16);
}

.st-danger-zone h2 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fca5a5;
    margin-bottom: 0.4rem;
}

.st-danger-zone p {
    font-size: 0.85rem;
    color: #fecaca;
    margin-bottom: 1rem;
}

.st-danger-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 760px) {
    .st-shell { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1rem; }
    .st-sidenav {
        position: sticky;
        top: 3.9rem;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }
    .st-sidenav-label { display: none; }
    .st-sidenav-link { height: 2.15rem; font-size: 0.82rem; }
    .st-section-header { flex-direction: column; align-items: stretch; }
    .st-section-header .st-btn-primary { width: 100%; }
    .st-action-grid { grid-template-columns: 1fr; }
    .st-action-card { grid-template-columns: auto minmax(0, 1fr); }
    .st-action-card__cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
    .st-form-grid { grid-template-columns: 1fr; }
    .st-field--hidden-sm { display: none; }
}


/* ================================================================
   21. NAVBAR - TOPBAR GRID + BELL + CLOCK
================================================================ */

.ops-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 0 1rem;
}

.ops-navbar-right { justify-self: end; }

.ops-topbar h1 { font-size: 1.4rem; }

.ops-navbar-center { display: flex; justify-content: center; }

.ops-navbar-search {
    display: flex; align-items: center; gap: 0.5rem;
    width: 100%; max-width: 360px;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255,255,255,0.13); border-radius: var(--r-full);
    background: rgba(255,255,255,0.07);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ops-navbar-search:focus-within {
    border-color: rgba(94,174,227,0.55); box-shadow: 0 0 0 4px rgba(94,174,227,0.12);
}

.ops-navbar-search svg {
    flex-shrink: 0; opacity: 0.45; pointer-events: none; color: currentColor;
}

.ops-navbar-search input[type="search"] {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none;
    color: var(--c-white); font: inherit; font-size: 0.875rem;
    -webkit-appearance: none;
}

.ops-navbar-search input[type="search"]::placeholder { color: rgba(255,255,255,0.32); }

.ops-navbar-search {
    position: relative;
}

.ops-search-results {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 220;
    max-height: min(24rem, 62vh);
    overflow-y: auto;
    padding: 0.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(10,18,36,0.96);
    box-shadow: 0 18px 42px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.ops-search-result {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    padding: 0.62rem 0.7rem;
    border-radius: 0.6rem;
    color: rgba(255,255,255,0.84);
    text-align: left;
    transition: background var(--t-fast), color var(--t-fast);
}

.ops-search-result:hover,
.ops-search-result.is-active {
    color: #ffffff;
    background: rgba(94,174,227,0.18);
}

.ops-search-result strong {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-search-result span,
.ops-search-empty {
    color: rgba(255,255,255,0.52);
    font-size: 0.76rem;
    line-height: 1.35;
}

.ops-search-empty {
    padding: 0.8rem;
}

.ops-search-hit {
    outline: 2px solid rgba(94,174,227,0.78);
    outline-offset: 4px;
    border-radius: 0.75rem;
}

.ops-navbar-right { display: flex; align-items: center; gap: 0.75rem; }

.ops-bell-btn {
    position: relative; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.13); background: rgba(255,255,255,0.07);
    backdrop-filter: var(--glass-blur-sm); -webkit-backdrop-filter: var(--glass-blur-sm);
    color: rgba(255,255,255,0.70); display: flex; align-items: center;
    justify-content: center; cursor: pointer; flex-shrink: 0;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.ops-bell-btn:hover {
    background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); color: var(--c-white);
}

.ops-bell-badge {
    position: absolute; top: -3px; right: -3px; min-width: 1.125rem; height: 1.125rem;
    padding: 0 0.25rem; border-radius: var(--r-full); background: #ef4444; color: #fff;
    font-size: 0.6rem; font-weight: 800; display: flex; align-items: center;
    justify-content: center; border: 2px solid #060b18; line-height: 1;
}

.ops-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }

.ops-clock-time {
    font-size: 0.9rem; font-weight: 700; color: var(--c-white);
    letter-spacing: 0.03em; font-variant-numeric: tabular-nums; line-height: 1.25;
}

.ops-clock-date { font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.42); line-height: 1.2; }

@media (max-width: 1100px) {
    .ops-topbar { grid-template-columns: auto auto; }
    .ops-navbar-center { display: none; }
}

@media (max-width: 700px) {
    .ops-topbar { grid-template-columns: 1fr auto; gap: 0.75rem; padding: 0.5rem 0 0.75rem; }
    .ops-clock { display: none; }
}


/* ================================================================
   22. LIGHT MODE
================================================================ */

.light-mode .ops-dashboard {
    background:
        radial-gradient(ellipse 70% 50% at 8% 5%, rgba(94,174,227,0.24) 0%, transparent 52%),
        radial-gradient(ellipse 50% 60% at 92% 90%, rgba(63,141,205,0.16) 0%, transparent 56%),
        linear-gradient(160deg, #eaf4ff 0%, #dcecff 52%, #eef6ff 100%);
    background-attachment: fixed;
    color: #0f172a;
}

/* ── Richer, darker text throughout light mode ── */
.light-mode .ops-topbar p,
.light-mode .ops-topbar-title p          { color: #475569; }
.light-mode .ops-topbar h1               { color: #0f172a; }
.light-mode .ops-nav-label               { color: #64748b; }
.light-mode .ops-nav a                   { color: #1e293b; }
.light-mode .ops-sidebar-user-info span  { color: #475569; }
.light-mode .ops-clock-time              { color: #0f172a; }
.light-mode .ops-clock-utc               { color: #475569; }
.light-mode .ops-clock-date              { color: #475569; }
.light-mode .ops-metrics article span    { color: #475569; }
.light-mode .ops-metrics article small   { color: #475569; }
.light-mode .ops-metrics article strong  { color: #0f172a; }
.light-mode .ops-card-header h2          { color: #0f172a; }
.light-mode .ops-card-header p           { color: #475569; }
.light-mode .ops-logbook-head            { color: #475569; }
.light-mode .ops-logbook-row strong      { color: #0f172a; }
.light-mode .ops-logbook-row span,
.light-mode .ops-logbook-row em          { color: #334155; }
.light-mode .ops-logbook-row b           { color: #475569; }
.light-mode .ops-logbook-row button      { color: #334155; }
.light-mode .ops-flight-state            { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.12); color: #334155; }
.light-mode .ops-flight-state.is-open    { background: rgba(94,174,227,0.14); border-color: rgba(63,141,205,0.25); color: #2563a8; }
.light-mode .ops-flight-state.is-locked  { background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.26); color: #b45309; }
.light-mode .ops-flight-hash             { color: #64748b; }
.light-mode .ops-clean-list li           { color: #1e293b; }
.light-mode .ops-task-list li            { color: #1e293b; }
.light-mode .ops-table-compact strong    { color: #0f172a; }
.light-mode .ops-table-compact span      { color: #475569; }
.light-mode .ops-table div strong        { color: #0f172a; }
.light-mode .ops-table div span          { color: #334155; }
.light-mode .ops-flight-form label span,
.light-mode .ops-logbook-form label span { color: #475569; }
.light-mode .ops-navbar-search input[type="search"]::placeholder { color: #94a3b8; }
.light-mode .ops-bell-notif-body strong  { color: #0f172a; }
.light-mode .ops-bell-notif-body span    { color: #334155; }
.light-mode .ops-bell-notif-body time    { color: #64748b; }
.light-mode .ops-bell-dd-header strong   { color: #0f172a; }

.light-mode .ops-main {
    background: transparent;
}

.light-mode .ops-sidebar {
    background: linear-gradient(180deg, rgba(240,248,255,0.92), rgba(226,240,255,0.84));
    border-right-color: rgba(63,141,205,0.18);
    box-shadow: inset -1px 0 0 rgba(63,141,205,0.08), 4px 0 24px rgba(63,141,205,0.10);
}
.light-mode .ops-brand { border-bottom-color: rgba(0,0,0,0.09); }
.light-mode .ops-nav-label { color: rgba(15,23,42,0.45); }
.light-mode .ops-nav-label svg { opacity: 0.55; }
.light-mode .ops-nav a { color: #0f172a; }
.light-mode .ops-nav a:hover { background: rgba(0,0,0,0.05); color: #0f172a; }
.light-mode .ops-nav a.is-active { background: rgba(20,184,166,0.12); color: #0f172a; box-shadow: inset 3px 0 0 rgba(20,184,166,0.65); }
.light-mode .ops-nav-divider { background: rgba(0,0,0,0.08); }
.light-mode .ops-sidebar-user { border-top-color: rgba(0,0,0,0.09); }
.light-mode .ops-sidebar-user:hover { background: rgba(0,0,0,0.04); }
.light-mode .ops-sidebar-user-info strong { color: #0f172a; }
.light-mode .ops-sidebar-user-info span { color: rgba(15,23,42,0.98); }
.light-mode .ops-sidebar-settings { color: rgba(15,23,42,0.35); }
.light-mode .ops-sidebar-settings:hover { color: #0f172a; background: rgba(0,0,0,0.06); }

.light-mode .ops-topbar { border-bottom-color: rgba(0,0,0,0.09); }
.light-mode .ops-topbar p { color: rgba(15,23,42,0.98); }
.light-mode .ops-topbar h1 { color: #0f172a; }
.light-mode .ops-navbar-search {
    background: rgba(240,248,255,0.94); border-color: rgba(63,141,205,0.22);
}
.light-mode .ops-navbar-search svg { color: #475569; }
.light-mode .ops-navbar-search input[type="search"] { color: #0f172a; }
.light-mode .ops-navbar-search input[type="search"]::placeholder { color: #94a3b8; }
.light-mode .ops-search-results {
    background: rgba(255,255,255,0.98);
    border-color: rgba(15,23,42,0.12);
    box-shadow: 0 18px 42px rgba(15,23,42,0.16), inset 0 1px 0 rgba(255,255,255,0.80);
}
.light-mode .ops-search-result {
    color: #334155;
}
.light-mode .ops-search-result:hover,
.light-mode .ops-search-result.is-active {
    color: #0f172a;
    background: rgba(94,174,227,0.16);
}
.light-mode .ops-search-result span,
.light-mode .ops-search-empty {
    color: rgba(15,23,42,0.56);
}
.light-mode .ops-search-hit {
    outline-color: rgba(63,141,205,0.78);
}
.light-mode .ops-bell-btn {
    background: rgba(255,255,255,0.80); border-color: rgba(0,0,0,0.12); color: #0f172a;
}
.light-mode .ops-bell-btn:hover { background: rgba(255,255,255,0.96); color: #0f172a; }
.light-mode .ops-bell-badge { border-color: #f0f6ff; }
.light-mode .ops-clock-time { color: #0f172a; }
.light-mode .ops-clock-date { color: rgba(15,23,42,0.98); }

.light-mode .ops-card, .light-mode .ops-metrics article {
    background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(238,247,255,0.82));
    border-color: rgba(63,141,205,0.16);
}
.light-mode .ops-card::before, .light-mode .ops-metrics article::before {
    background: linear-gradient(145deg, rgba(94,174,227,0.12) 0%, rgba(255,255,255,0.48) 48%, transparent 68%);
}
.light-mode .ops-card-header h2 { color: #0f172a; }
.light-mode .ops-card-header p { color: rgba(15,23,42,0.98); }
.light-mode .ops-card-header a { color: var(--c-sky-dark); }
.light-mode .ops-badge { background: rgba(0,0,0,0.07); color: #0f172a; border-color: rgba(0,0,0,0.11); }
.light-mode .ops-metrics article span { color: rgba(15,23,42,0.98); }
.light-mode .ops-metrics article strong { color: #0f172a; }
.light-mode .ops-metrics article small { color: rgba(15,23,42,0.95); }

.light-mode .ops-logbook-head { color: rgba(15,23,42,0.50); border-bottom-color: rgba(0,0,0,0.10); }
.light-mode .ops-logbook-row { border-bottom-color: rgba(0,0,0,0.07); }
.light-mode .ops-logbook-row strong { color: #0f172a; }
.light-mode .ops-logbook-row span, .light-mode .ops-logbook-row em { color: #0f172a; }
.light-mode .ops-logbook-row b { color: rgba(15,23,42,0.98); }
.light-mode .ops-logbook-row button {
    background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #0f172a;
}
.light-mode .ops-flight-state {
    background: rgba(15,23,42,0.04);
    border-color: rgba(15,23,42,0.12);
    color: #334155;
}
.light-mode .ops-flight-state.is-open {
    background: rgba(94,174,227,0.14);
    border-color: rgba(63,141,205,0.25);
    color: #2563a8;
}
.light-mode .ops-flight-state.is-locked {
    background: rgba(245,158,11,0.14);
    border-color: rgba(245,158,11,0.26);
    color: #b45309;
}
.light-mode .ops-flight-hash { color: #64748b; }

.light-mode .ops-link-button,
.light-mode .ops-action-strip a:not(.is-primary),
.light-mode .ops-form-actions button:not(:first-child) {
    background: rgba(255,255,255,0.80); border-color: rgba(0,0,0,0.12); color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.90);
}
.light-mode .ops-link-button:hover, .light-mode .ops-action-strip a:not(.is-primary):hover {
    background: rgba(255,255,255,0.96); border-color: rgba(0,0,0,0.18);
}

.light-mode .ops-clean-list li { color: #0f172a; border-bottom-color: rgba(0,0,0,0.07); }
.light-mode .ops-table div { border-bottom-color: rgba(0,0,0,0.07); }
.light-mode .ops-table div strong { color: #0f172a; }
.light-mode .ops-table div span { color: #0f172a; }

.light-mode .ops-flight-form input, .light-mode .ops-flight-form select, .light-mode .ops-flight-form textarea,
.light-mode .ops-logbook-form input, .light-mode .ops-logbook-form select, .light-mode .ops-logbook-form textarea {
    background: rgba(255,255,255,0.90); border-color: rgba(0,0,0,0.14); color: #0f172a;
}
.light-mode .ops-flight-form label span, .light-mode .ops-logbook-form label span { color: rgba(15,23,42,0.98); }
.light-mode .ops-task-list li span { color: #0f172a; }
.light-mode .ops-main select {
    background: rgba(255,255,255,0.85) !important; border-color: rgba(0,0,0,0.13) !important; color: #0f172a !important;
}

.light-mode .settings-page {
    background:
        radial-gradient(ellipse 60% 50% at 8% 5%, rgba(94,174,227,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 45% 55% at 92% 88%, rgba(63,141,205,0.12) 0%, transparent 58%),
        linear-gradient(160deg, #eaf4ff 0%, #dfeeff 100%);
    background-attachment: fixed; color: #0f172a;
}
.light-mode .st-topbar { background: rgba(240,248,255,0.88); border-bottom-color: rgba(63,141,205,0.18); }
.light-mode .st-back { color: rgba(15,23,42,0.98); }
.light-mode .st-back:hover { color: #0f172a; }
.light-mode .st-user-pill { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.10); }
.light-mode .st-user-pill span { color: #0f172a; }
.light-mode .st-sidenav { background: rgba(238,247,255,0.86); border-color: rgba(63,141,205,0.18); box-shadow: 0 16px 40px rgba(63,141,205,0.11); }
.light-mode .st-sidenav-label { color: rgba(15,23,42,0.95); }
.light-mode .st-sidenav-link { color: #0f172a; }
.light-mode .st-sidenav-link:hover { background: rgba(0,0,0,0.05); color: #0f172a; }
.light-mode .st-sidenav-link.is-active { background: rgba(94,174,227,0.20); color: #0f172a; }
.light-mode .st-section-header { border-bottom-color: rgba(0,0,0,0.09); }
.light-mode .st-section-header h1 { color: #0f172a; }
.light-mode .st-section-header p { color: rgba(15,23,42,0.98); }
.light-mode .st-action-card { background: rgba(240,248,255,0.86); border-color: rgba(63,141,205,0.16); color: #0f172a; }
.light-mode .st-action-card:hover { background: rgba(255,255,255,0.96); border-color: rgba(94,174,227,0.42); }
.light-mode .st-action-card--primary { background: linear-gradient(135deg, rgba(94,174,227,0.20), rgba(255,255,255,0.82)); }
.light-mode .st-action-card__body span { color: rgba(15,23,42,0.72); }
.light-mode .st-action-card__cta { background: rgba(15,23,42,0.06); color: #0f172a; }
.light-mode .st-avatar-row { background: rgba(240,248,255,0.86); border-color: rgba(63,141,205,0.16); }
.light-mode .st-avatar-info strong { color: #0f172a; }
.light-mode .st-avatar-info span { color: rgba(15,23,42,0.98); }
.light-mode .st-form-intro h2 { color: #0f172a; }
.light-mode .st-form-intro p { color: #475569; }
.light-mode .st-form-status { color: #475569; }
.light-mode .st-form-status.is-success { color: #15803d; }
.light-mode .st-form-status.is-error { color: #b91c1c; }
.light-mode .st-field label { color: #0f172a; }
.light-mode .st-field input, .light-mode .st-field select, .light-mode .st-field textarea {
    background: rgba(255,255,255,0.90); border-color: rgba(0,0,0,0.14); color: #0f172a;
}
.light-mode .st-license-item { background: rgba(240,248,255,0.86); border-color: rgba(63,141,205,0.16); }
.light-mode .st-license-body strong { color: #0f172a; }
.light-mode .st-license-body span { color: rgba(15,23,42,0.98); }
.light-mode .st-security-list { border-color: rgba(0,0,0,0.10); }
.light-mode .st-security-item { background: rgba(240,248,255,0.86); border-bottom-color: rgba(63,141,205,0.14); }
.light-mode .st-security-left strong { color: #0f172a; }
.light-mode .st-security-left span { color: rgba(15,23,42,0.98); }
.light-mode .st-toggle-item { border-bottom-color: rgba(0,0,0,0.08); }
.light-mode .st-toggle-body strong { color: #0f172a; }
.light-mode .st-toggle-body span { color: rgba(15,23,42,0.98); }
.light-mode .st-btn-ghost { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #0f172a; }
.light-mode .st-danger-zone {
    border-color: rgba(185,28,28,0.42);
    background:
        linear-gradient(135deg, rgba(254,226,226,0.96), rgba(255,241,242,0.92)),
        #fff7f7;
    box-shadow: 0 14px 34px rgba(185,28,28,0.12), inset 0 1px 0 rgba(255,255,255,0.88);
}
.light-mode .st-danger-zone h2 { color: #991b1b; }
.light-mode .st-danger-zone p { color: #7f1d1d; }
.light-mode .st-danger-zone .st-btn-outline-danger {
    background: #fee2e2;
    border-color: rgba(153,27,27,0.42);
    color: #7f1d1d;
}
.light-mode .st-danger-zone .st-btn-outline-danger:hover {
    background: #fecaca;
    color: #7f1d1d;
}

.st-theme-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.25rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-lg); backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm); margin-bottom: 1rem;
}
.st-theme-row-left strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--c-white); margin-bottom: 0.25rem; }
.st-theme-row-left span { font-size: 0.85rem; color: rgba(255,255,255,0.50); }
.st-theme-options { display: flex; gap: 0.5rem; }
.st-theme-option {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 1rem; border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--r-md); background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.65); font: inherit; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.st-theme-option:hover { background: rgba(255,255,255,0.13); color: var(--c-white); }
.st-theme-option.is-active { background: rgba(94,174,227,0.18); border-color: rgba(94,174,227,0.40); color: var(--c-white); }

.st-timezone-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.st-timezone-controls select {
    min-width: min(100%, 14rem);
    min-height: 2.45rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.76);
    padding: 0 0.85rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
}

.light-mode .st-theme-row { background: rgba(240,248,255,0.86); border-color: rgba(63,141,205,0.16); }
.light-mode .st-theme-row-left strong { color: #0f172a; }
.light-mode .st-theme-row-left span { color: rgba(15,23,42,0.98); }
.light-mode .st-theme-option { background: rgba(255,255,255,0.80); border-color: rgba(0,0,0,0.12); color: #0f172a; }
.light-mode .st-theme-option:hover { background: rgba(255,255,255,0.96); color: #0f172a; }
.light-mode .st-theme-option.is-active { background: rgba(94,174,227,0.20); border-color: rgba(94,174,227,0.40); color: #0f172a; }
.light-mode .st-timezone-controls select { background: rgba(240,248,255,0.92); border-color: rgba(63,141,205,0.20); color: #0f172a; }


/* ================================================================
   23. BELL DROPDOWN + UTC CLOCK
================================================================ */

.ops-bell-wrap { position: relative; }

.ops-bell-dropdown {
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    width: 300px;
    background: rgba(8,14,28,0.97);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.10);
    z-index: 200;
    overflow: hidden;
}

.ops-bell-dropdown[hidden] { display: none; }

.ops-bell-dd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ops-bell-dd-header strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-white);
}

.ops-bell-dd-clear {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-sky-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--t-fast);
}

.ops-bell-dd-clear:hover { color: var(--c-white); }

.ops-bell-notif {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--t-fast);
    cursor: default;
}

.ops-bell-notif:last-of-type { border-bottom: none; }

.ops-bell-notif:hover { background: rgba(255,255,255,0.04); }

.ops-bell-notif--unread { background: rgba(94,174,227,0.06); }

.ops-bell-notif-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.ops-bell-notif-dot--warn { background: #fbbf24; }
.ops-bell-notif-dot--sky  { background: var(--c-sky-light); }
.ops-bell-notif-dot--green { background: #4ade80; }

.ops-bell-notif-body { flex: 1; min-width: 0; }

.ops-bell-notif-body strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

.ops-bell-notif-body span {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.45;
    margin-bottom: 0.25rem;
}

.ops-bell-notif-body time {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.30);
    font-weight: 500;
}

.ops-bell-dd-footer {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-sky-light);
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: background var(--t-fast), color var(--t-fast);
}

.ops-bell-dd-footer:hover { background: rgba(255,255,255,0.04); color: var(--c-white); }

/* UTC time row */
.ops-clock-utc {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.34);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.ops-topbar .ops-clock-utc {
    display: none;
}

/* Light mode — dropdown */
.light-mode .ops-bell-dropdown {
    background: rgba(255,255,255,0.97);
    border-color: rgba(0,0,0,0.11);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.90);
}

.light-mode .ops-bell-dd-header { border-bottom-color: rgba(0,0,0,0.08); }
.light-mode .ops-bell-dd-header strong { color: #0f172a; }
.light-mode .ops-bell-dd-clear { color: var(--c-sky-dark); }
.light-mode .ops-bell-dd-clear:hover { color: #0f172a; }

.light-mode .ops-bell-notif { border-bottom-color: rgba(0,0,0,0.06); }
.light-mode .ops-bell-notif:hover { background: rgba(0,0,0,0.03); }
.light-mode .ops-bell-notif--unread { background: rgba(94,174,227,0.08); }

.light-mode .ops-bell-notif-body strong { color: #0f172a; }
.light-mode .ops-bell-notif-body span { color: rgba(15,23,42,0.98); }
.light-mode .ops-bell-notif-body time { color: rgba(15,23,42,0.95); }

.light-mode .ops-bell-dd-footer { border-top-color: rgba(0,0,0,0.08); color: var(--c-sky-dark); }
.light-mode .ops-bell-dd-footer:hover { background: rgba(0,0,0,0.03); color: #0f172a; }

.light-mode .ops-clock-utc { color: rgba(15,23,42,0.95); }


/* ================================================================
   24. LIGHT MODE - IMPROVED ACTION STRIP + FAB VISIBILITY
================================================================ */

.light-mode .ops-action-strip a:not(.is-primary) {
    background: #ffffff;
    border-color: rgba(15,23,42,0.14);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,1);
}

.light-mode .ops-action-strip a:not(.is-primary):hover {
    background: #f8faff;
    border-color: rgba(94,174,227,0.50);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10), inset 0 1px 0 #fff;
    transform: translateY(-1px);
}

.light-mode .ops-link-button {
    background: #ffffff;
    border-color: rgba(15,23,42,0.14);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,1);
}

.light-mode .ops-link-button:hover {
    background: #f8faff;
    border-color: rgba(94,174,227,0.50);
    box-shadow: 0 4px 12px rgba(0,0,0,0.09), inset 0 1px 0 #fff;
}

.light-mode .quick-fab-menu a {
    background: rgba(255,255,255,0.95);
    border-color: rgba(15,23,42,0.13);
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.light-mode .quick-fab-menu a:hover {
    background: #ffffff;
    border-color: rgba(94,174,227,0.45);
    transform: translateX(-3px);
}

/* ── Missing light-mode overrides ── */
.light-mode .ops-table-compact div { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.08); }
.light-mode .ops-table-compact strong { color: #0f172a; }
.light-mode .ops-table-compact span { color: rgba(15,23,42,0.60); }

.light-mode .ops-search input { background: rgba(255,255,255,0.90); border-color: rgba(0,0,0,0.14); color: #0f172a; }
.light-mode .ops-search input::placeholder { color: rgba(15,23,42,0.40); }
.light-mode .ops-search span { color: rgba(15,23,42,0.45); }

.light-mode .ops-task-list li { color: #0f172a; background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }

.light-mode .ops-mini-map { color: #334155; background: rgba(255,255,255,0.55); border-color: rgba(0,0,0,0.10); }
.light-mode .ops-priority-card .ops-card-header { border-bottom-color: rgba(0,0,0,0.08); }

/* Loading/empty state paragraphs with inline white text */
.light-mode p[style*="rgba(255,255,255"] { color: rgba(15,23,42,0.45) !important; }
.light-mode div[style*="rgba(255,255,255"] { color: rgba(15,23,42,0.45) !important; }


/* ================================================================
   TRUEFLIGHT APP TOP NAVIGATION
================================================================ */

:root {
    --ops-app-navbar-height: 4.25rem;
}

.ops-shell {
    min-height: 100svh;
    display: block;
    width: 100%;
    max-width: 100vw;
}

.ops-shell > .ops-sidebar,
.ops-dashboard .ops-sidebar,
.ops-dashboard .ops-burger,
.ops-dashboard .ops-nav-backdrop {
    display: none !important;
}

.ops-main {
    width: 100%;
    max-width: min(1440px, 100%);
    margin-inline: auto;
    padding: 1.25rem var(--container-pad) 4rem;
}

.ops-app-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--ops-app-navbar-height);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(6,11,24,0.55);
    box-shadow: none;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.ops-app-navbar::before {
    display: none;
}

.ops-app-navbar::after {
    display: none;
}

.ops-app-navbar__inner {
    min-height: var(--ops-app-navbar-height);
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--container-pad);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ops-app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: var(--ops-app-navbar-height);
    padding-right: 0.75rem;
    color: var(--c-white);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity var(--t-fast);
}

.ops-app-brand:hover {
    opacity: 0.86;
}

.ops-app-brand__logo {
    display: block;
    width: auto;
    height: 2.45rem;
    max-width: 10rem;
    object-fit: contain;
    flex: 0 0 auto;
    filter: brightness(1.08);
}

.ops-app-brand__mark {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,0.38), transparent 32%),
        linear-gradient(135deg, var(--c-sky-light), var(--c-sky-dark));
    color: var(--c-white);
    box-shadow: 0 8px 22px rgba(94,174,227,0.32), inset 0 1px 0 rgba(255,255,255,0.32);
}

.ops-app-brand__mark svg {
    width: 1.12rem;
    height: 1.12rem;
}

.ops-app-brand__text {
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

.ops-app-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    margin-left: auto;
    padding-left: 0.55rem;
}

.ops-app-notifications {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ops-app-clock {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.16rem;
    min-height: 3.25rem;
    padding: 0.36rem 0.75rem;
    border-radius: 0.7rem;
    color: rgba(255,255,255,0.82);
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.12);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ops-app-clock__line {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.42rem;
    width: 100%;
    white-space: nowrap;
    line-height: 1;
}

.ops-app-clock__line--local {
    opacity: 1;
}

.ops-app-clock__line--utc,
.ops-app-clock__line--date {
    opacity: 0.86;
}

.ops-app-actions .ops-bell-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.65rem;
}

.ops-app-actions .ops-bell-dropdown {
    top: calc(100% + 0.85rem);
    z-index: 130;
}

.ops-topbar .ops-navbar-right.is-promoted-to-navbar,
.ops-app-navbar ~ .ops-main .ops-topbar .ops-navbar-right {
    display: none;
}

.ops-app-clock__label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--c-sky-light);
}

.ops-app-clock__time,
.ops-app-clock__local-time {
    font-size: 0.88rem;
    font-weight: 800;
}

.ops-app-clock__time {
    color: rgba(255,255,255,0.72);
}

.ops-app-clock__local-time {
    color: var(--c-white);
}

.ops-app-clock__date {
    font-size: 0.74rem;
    font-weight: 650;
    color: rgba(255,255,255,0.58);
}

.ops-app-nav {
    position: sticky;
    top: 4.7rem;
    z-index: 80;
    width: min(1160px, calc(100% - 2rem));
    margin: 1.25rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch;
    align-self: center;
    min-height: 0;
    min-width: 0;
    gap: 0.25rem;
    padding: 0.35rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-lg);
    background: rgba(7,14,31,0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
}

@media (min-width: 761px) {
    .ops-app-navbar__inner {
        display: flex !important;
    }

    .ops-app-nav {
        display: grid !important;
        position: sticky !important;
        order: initial !important;
        width: min(1160px, calc(100% - 2rem)) !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-self: center;
        margin: 1.25rem auto 0 !important;
        border-top: 0 !important;
    }

    .ops-app-nav-toggle {
        display: none !important;
    }
}

.ops-app-nav__link {
    position: relative;
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 0.85rem;
    border-radius: 0.5rem;
    color: rgba(255,255,255,0.66);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.ops-app-nav__link:hover {
    color: var(--c-white);
    background: rgba(255,255,255,0.07);
}

.ops-app-nav__link::after {
    display: none;
}

.ops-app-nav__link.is-active {
    color: var(--c-white);
    background: rgba(255,255,255,0.08);
    box-shadow: none;
}

.ops-app-nav__link.is-active::after {
    background: transparent;
    box-shadow: none;
}

.ops-app-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0;
    border-radius: 0.65rem;
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.70);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    flex: 0 0 auto;
    transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.ops-app-settings:hover {
    color: var(--c-white);
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
}

.ops-app-settings svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.ops-app-settings span {
    display: none;
}

.ops-app-nav-toggle {
    display: none;
    width: 2.4rem;
    height: 2.4rem;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 0.65rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.075);
    color: var(--c-white);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: background var(--t-fast), border-color var(--t-fast);
}

.ops-app-nav-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
}

.ops-app-nav-toggle span {
    width: 1.25rem;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform var(--t-base), opacity var(--t-base);
}

.ops-app-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ops-app-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.ops-app-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.light-mode .ops-app-navbar {
    background: linear-gradient(180deg, rgba(246,251,255,0.92), rgba(229,241,255,0.86));
    border-bottom-color: rgba(63,141,205,0.18);
    box-shadow: 0 8px 22px rgba(63,141,205,0.08);
}

.light-mode .ops-app-navbar::before {
    display: none;
}

.light-mode .ops-app-nav {
    background: rgba(238,247,255,0.58);
    border-color: rgba(63,141,205,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.light-mode .ops-app-brand,
.light-mode .ops-app-nav__link.is-active {
    color: #0f172a;
}

.light-mode .ops-app-nav__link {
    color: #475569;
}

.light-mode .ops-app-nav__link:hover {
    color: #0f172a;
    background: rgba(94,174,227,0.14);
}

.light-mode .ops-app-nav__link.is-active {
    background: rgba(94,174,227,0.22);
    border-color: rgba(63,141,205,0.20);
    box-shadow: none;
}

.light-mode .ops-app-settings {
    color: #1e3a5f;
    background: rgba(240,248,255,0.86);
    border-color: rgba(63,141,205,0.18);
}

.light-mode .ops-app-settings:hover {
    color: #0f172a;
    background: rgba(255,255,255,0.96);
    border-color: rgba(63,141,205,0.28);
}

.light-mode .ops-app-clock {
    color: #1e3a5f;
    background: rgba(226,240,255,0.84);
    border-color: rgba(63,141,205,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.light-mode .ops-app-clock__label { color: #3F8DCD; }
.light-mode .ops-app-clock__time { color: #334155; }
.light-mode .ops-app-clock__local-time { color: #0f172a; }
.light-mode .ops-app-clock__date { color: #475569; }

.light-mode .ops-app-nav-toggle {
    color: #0f172a;
    background: rgba(15,23,42,0.05);
    border-color: rgba(15,23,42,0.12);
}

.light-mode .ops-app-nav-toggle:hover {
    background: rgba(15,23,42,0.09);
    border-color: rgba(15,23,42,0.18);
}

@media (max-width: 760px) {
    :root {
        --ops-app-navbar-height: 4.15rem;
    }

    .ops-main {
        padding: 1rem var(--container-pad) 4rem;
    }

    .ops-app-navbar__inner {
        padding-inline: 1rem;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.55rem;
        padding-block: 0;
    }

    .ops-app-brand {
        min-height: var(--ops-app-navbar-height);
        padding-right: 0.75rem;
    }

    .ops-app-brand__logo {
        height: 2.2rem;
        max-width: 8.75rem;
    }

    .ops-app-brand__mark {
        width: 2.05rem;
        height: 2.05rem;
    }

    .ops-app-brand__text {
        font-size: 1rem;
    }

    .ops-app-nav-toggle {
        display: inline-flex;
        margin-left: 0;
    }

    .ops-app-actions {
        flex: 0 0 auto;
        gap: 0.45rem;
        margin-left: auto;
        padding-left: 0.35rem;
    }

    .ops-app-clock {
        padding-inline: 0.55rem;
        gap: 0.32rem;
    }

    .ops-app-clock__date {
        display: inline;
    }

    .ops-app-nav {
        display: none;
        position: static;
        order: 3;
        width: calc(100% - 2rem);
        min-height: 3.15rem;
        margin: 0.75rem auto 0;
        padding: 0.35rem;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.25rem;
        overflow-x: auto;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: var(--r-lg);
        background: rgba(7,14,31,0.72);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
        scrollbar-width: none;
    }

    .ops-app-nav::-webkit-scrollbar {
        display: none;
    }

    .ops-app-nav.is-open {
        display: flex;
    }

    .ops-app-nav__link {
        flex: 1 0 auto;
        justify-content: center;
        min-height: 2.45rem;
        padding: 0 0.75rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
    }

    .ops-app-nav__link::after {
        width: calc(100% - 1.2rem);
        bottom: 0;
    }

    .light-mode .ops-app-nav {
        background: rgba(238,247,255,0.82);
        border-color: rgba(63,141,205,0.18);
    }
}

@media (max-width: 430px) {
    .ops-app-brand__text,
    .ops-app-clock__label {
        display: none;
    }

    .ops-app-actions {
        gap: 0.35rem;
    }

    .ops-app-clock {
        padding-inline: 0.5rem;
    }

    .ops-app-brand__logo {
        height: 2rem;
        max-width: 7.5rem;
    }
}


/* ================================================================
   TRUEFLIGHT MVP STRUCTURE + DARK HIERARCHY
================================================================ */

.ops-section-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 1.35rem;
    padding: 0.35rem;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    scrollbar-width: none;
}

.ops-section-tabs::-webkit-scrollbar {
    display: none;
}

.ops-section-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 0.9rem;
    border-radius: 0.55rem;
    color: rgba(255,255,255,0.62);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}

.ops-section-tabs a:hover {
    color: var(--c-white);
    background: rgba(255,255,255,0.07);
}

.ops-section-tabs a.is-active {
    color: var(--c-white);
    background: rgba(94,174,227,0.18);
}

.tf-dashboard-actions {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    margin: 0 0 1.35rem;
    flex-wrap: wrap;
}

.tf-primary-action,
.tf-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    border-radius: 0.85rem;
    font-weight: 800;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.tf-primary-action {
    position: relative;
    flex: 1 1 320px;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.85rem;
    overflow: hidden;
    padding: 0.85rem 1.2rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 52%, #3F8DCD 100%);
    border: 1px solid rgba(255,255,255,0.34);
    box-shadow: 0 18px 38px rgba(14,116,144,0.34), 0 0 0 4px rgba(94,174,227,0.12), inset 0 1px 0 rgba(255,255,255,0.32);
}

.tf-primary-action::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0 36%, rgba(255,255,255,0.24) 48%, transparent 62%);
    transform: translateX(-115%);
    transition: transform 520ms ease;
}

.tf-primary-action__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tf-primary-action__eyebrow {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.tf-primary-action strong {
    font-size: 1.18rem;
    color: #ffffff;
}

.tf-primary-action__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.tf-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px rgba(14,116,144,0.42), 0 0 0 5px rgba(94,174,227,0.16), inset 0 1px 0 rgba(255,255,255,0.36);
}

.tf-primary-action:hover::after {
    transform: translateX(115%);
}

.tf-secondary-action {
    flex: 0 1 auto;
    padding: 0 1rem;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
}

.tf-secondary-action:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.085);
    border-color: rgba(255,255,255,0.18);
}

.tf-recent-flights {
    gap: 0.7rem;
}

.tf-recent-flight-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.8fr) minmax(140px, 1.4fr) minmax(80px, 0.7fr) minmax(84px, 0.7fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
}

.tf-recent-flight-row strong {
    color: var(--c-white);
    font-size: 0.9rem;
}

.tf-recent-flight-row span,
.tf-recent-flight-row em {
    color: rgba(255,255,255,0.62);
    font-style: normal;
    font-size: 0.88rem;
}

.tf-recent-flight-row b {
    justify-self: end;
    color: var(--c-sky-light);
    font-size: 0.9rem;
}

.fleet-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fleet-aircraft-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.85rem;
}

.fleet-aircraft-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ops-table-compact .fleet-aircraft-main {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start !important;
    gap: 0.15rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.fleet-aircraft-main em {
    color: rgba(255,255,255,0.58);
    font-size: 0.76rem;
    font-style: normal;
}

.fleet-edit-btn {
    min-height: 2rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.78rem !important;
}

html:not(.light-mode) .ops-dashboard {
    background:
        radial-gradient(ellipse 58% 42% at 12% 0%, rgba(94,174,227,0.10), transparent 58%),
        linear-gradient(160deg, #090d18 0%, #0d1220 45%, #080b13 100%);
}

html:not(.light-mode) .ops-card,
html:not(.light-mode) .ops-metrics article {
    background: rgba(24,30,45,0.92);
    border-color: rgba(255,255,255,0.095);
    box-shadow: 0 18px 44px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}

html:not(.light-mode) .ops-metrics article:hover,
html:not(.light-mode) .ops-card:hover {
    border-color: rgba(255,255,255,0.13);
}

.ops-card {
    padding: 1.45rem;
}

.ops-metrics {
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.ops-metrics article {
    padding: 1.35rem;
}

.light-mode .ops-section-tabs,
.light-mode .tf-secondary-action {
    background: rgba(255,255,255,0.72);
    border-color: rgba(15,23,42,0.10);
}

.light-mode .ops-section-tabs a,
.light-mode .tf-secondary-action {
    color: #475569;
}

.light-mode .ops-section-tabs a:hover,
.light-mode .tf-secondary-action:hover {
    color: #0f172a;
    background: rgba(15,23,42,0.05);
}

.light-mode .ops-section-tabs a.is-active {
    color: #0f172a;
    background: rgba(94,174,227,0.22);
}

.light-mode .tf-recent-flight-row {
    background: rgba(255,255,255,0.72);
    border-color: rgba(15,23,42,0.09);
}

.light-mode .tf-recent-flight-row strong {
    color: #0f172a;
}

.light-mode .tf-recent-flight-row span,
.light-mode .tf-recent-flight-row em {
    color: #475569;
}

.light-mode .tf-recent-flight-row b {
    color: var(--c-sky-dark);
}

.light-mode .fleet-aircraft-main em {
    color: rgba(15,23,42,0.62);
}

@media (max-width: 760px) {
    .ops-section-tabs {
        width: 100%;
    }

    .ops-section-tabs a {
        flex: 1 0 auto;
    }

    .tf-dashboard-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tf-primary-action {
        min-height: 4.6rem;
    }

    .tf-secondary-action {
        min-height: 2.85rem;
    }

    .tf-recent-flight-row {
        grid-template-columns: 1fr auto;
    }

    .fleet-form {
        grid-template-columns: 1fr;
    }

    .fleet-aircraft-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tf-recent-flight-row span {
        grid-column: 1 / -1;
    }

    .tf-recent-flight-row b {
        justify-self: end;
    }
}


/* ================================================================
   SCROLLBAR – thin & subtle
================================================================ */

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.light-mode * { scrollbar-color: rgba(15,23,42,0.18) transparent; }

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }
::-webkit-scrollbar-corner { background: transparent; }

.light-mode ::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.18); }
.light-mode ::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.32); }


/* ================================================================
   MOBILE – Dashboard UI Optimierungen
================================================================ */

/* ── Section-Padding entfernen: inline padding auf <section> in ops-main ── */
@media (max-width: 760px) {
    .ops-main > section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ── Cards: kompakteres Padding auf kleinen Screens ── */
@media (max-width: 760px) {
    .ops-card              { padding: 1rem; }
    .ops-metrics article   { padding: 1rem; }

    .ops-card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ops-metrics strong {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
}

/* ── FAB: Mobile-Position (iOS-Browser-Chrome berücksichtigen) ── */
@media (max-width: 760px) {
    .quick-fab {
        bottom: 1.25rem;
        right: 1rem;
    }
    .quick-fab-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

/* ── Metrics: 1 Spalte auf sehr kleinen Screens ── */
@media (max-width: 400px) {
    .ops-metrics {
        grid-template-columns: 1fr !important;
    }
}

/* ── Utility: 2-Spalten-Grid mit mobilem Fallback ── */
.ue-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 760px) {
    .ue-two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Bell-Dropdown: Bottom Sheet auf Mobile ── */
@media (max-width: 760px) {
    /* Backdrop-Overlay hinter dem Bottom Sheet */
    .ops-bell-dropdown:not([hidden])::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: -1;
        pointer-events: none;
    }

    .ops-bell-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 1.25rem 1.25rem 0 0 !important;
        border-bottom: none !important;
        border-inline: none !important;
        max-height: 75vh;
        overflow-y: auto;
        z-index: 1001 !important;
        box-shadow: 0 -8px 48px rgba(0,0,0,0.55) !important;
        overscroll-behavior: contain;
    }

    /* Drag-Handle */
    .ops-bell-dd-header {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        position: relative;
    }
    .ops-bell-dd-header::before {
        content: '';
        position: absolute;
        top: 0.6rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2.75rem;
        height: 4px;
        border-radius: 99px;
        background: rgba(255,255,255,0.25);
    }
    .light-mode .ops-bell-dd-header::before {
        background: rgba(15,23,42,0.15);
    }

    /* Titel größer */
    .ops-bell-dd-header strong {
        font-size: 1rem;
    }

    /* "Alle gelesen" – besserer Touch-Target */
    .ops-bell-dd-clear {
        font-size: 0.82rem;
        padding: 0.35rem 0.75rem;
        border-radius: 6px;
        background: rgba(94,174,227,0.12);
        border: 1px solid rgba(94,174,227,0.25);
        min-height: 2rem;
    }

    /* Jede Benachrichtigung: mehr Padding für Touch */
    .ops-bell-notif {
        padding: 1rem 1.25rem;
        gap: 0.875rem;
    }
    .ops-bell-notif-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        margin-top: 0.2rem;
    }
    .ops-bell-notif-body strong { font-size: 0.9rem; }
    .ops-bell-notif-body span   { font-size: 0.82rem; }
    .ops-bell-notif-body time   { font-size: 0.74rem; margin-top: 0.2rem; }

    /* Footer-Link: volle Breite, gut klickbar */
    .ops-bell-dd-footer {
        padding: 1rem 1.25rem;
        font-size: 0.88rem;
        min-height: 3.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .light-mode .ops-bell-dd-clear {
        background: rgba(63,141,205,0.10);
        border-color: rgba(63,141,205,0.22);
        color: #2563eb;
    }
}

/* ── Profil-Modal: Bottom Sheet auf Mobile ── */
@media (max-width: 640px) {
    .pf-modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .pf-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 92vh !important;
        border-radius: 1.25rem 1.25rem 0 0 !important;
        border-bottom: none !important;
        border-inline: none !important;
    }
    .pf-modal-header {
        padding-top: 1.375rem;
        position: relative;
    }
    .pf-modal-header::before {
        content: '';
        position: absolute;
        top: 0.55rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2.5rem;
        height: 3px;
        border-radius: 99px;
        background: rgba(255,255,255,0.22);
    }
    .light-mode .pf-modal-header::before {
        background: rgba(15,23,42,0.18);
    }
    .pf-modal-form {
        grid-template-columns: 1fr !important;
    }
}

/* ── Zeilen-Kebab-Menü: Bottom Sheet auf Mobile ── */
@media (max-width: 640px) {
    .row-kebab-menu {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 1rem 1rem 0 0 !important;
        border-bottom: none !important;
        border-inline: none !important;
        padding: 0.625rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 600 !important;
        box-shadow: 0 -4px 32px rgba(0,0,0,0.42) !important;
    }
    .row-kebab-menu::before {
        content: '';
        display: block;
        width: 2.5rem;
        height: 3px;
        border-radius: 99px;
        background: rgba(255,255,255,0.22);
        margin: 0 auto 0.5rem;
    }
    .row-kebab-menu li {
        padding: 0.875rem 1.375rem !important;
        font-size: 0.925rem !important;
        min-height: 3rem;
    }
    .light-mode .row-kebab-menu::before {
        background: rgba(15,23,42,0.18);
    }
}

/* ── Profil-Picker Dropdown: Bottom Sheet auf Mobile ── */
@media (max-width: 640px) {
    .pf-picker-list {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 1rem 1rem 0 0 !important;
        border-bottom: none !important;
        border-inline: none !important;
        padding: 0.625rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 600 !important;
        box-shadow: 0 -4px 32px rgba(0,0,0,0.42) !important;
    }
    .pf-picker-list::before {
        content: '';
        display: block;
        width: 2.5rem;
        height: 3px;
        border-radius: 99px;
        background: rgba(255,255,255,0.22);
        margin: 0 auto 0.5rem;
    }
    .pf-picker-list li {
        padding: 0.875rem 1.375rem !important;
        font-size: 0.925rem !important;
    }
    .light-mode .pf-picker-list::before {
        background: rgba(15,23,42,0.18);
    }
}

/* ── Log-Tabelle: Touch-Scroll ── */
@media (max-width: 760px) {
    .ops-log-table-wrap {
        -webkit-overflow-scrolling: touch;
    }
    /* Tap-Ziele in der Tabelle größer */
    .ops-log-table td {
        padding: 0.875rem 0.75rem;
    }
    .ops-log-table .btn-corr,
    .ops-log-table .btn-kebab {
        min-height: 2.25rem;
        min-width: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ── Formular: Touch-freundlichere Inputs ── */
@media (max-width: 760px) {
    .ops-logbook-form input,
    .ops-logbook-form select,
    .ops-logbook-form textarea,
    .ops-flight-form input,
    .ops-flight-form select,
    .ops-flight-form textarea {
        min-height: 3rem;
        font-size: 1rem;   /* verhindert Auto-Zoom auf iOS */
    }
    .ops-form-actions button,
    .ops-link-button {
        min-height: 3rem;
    }
}

/* ── Topbar: kompakter wenn App-Navbar vorhanden ── */
@media (max-width: 760px) {
    .ops-topbar {
        margin-bottom: 1rem;
        padding-bottom: 0.875rem;
    }
    .ops-topbar p {
        font-size: 0.68rem;
    }
}

/* ── Settings-Seite: Formular 1-spaltig auf Mobile ── */
@media (max-width: 640px) {
    .st-form-grid {
        grid-template-columns: 1fr !important;
    }
    .st-action-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Formulare: inline grid-template-columns überschreiben (mit !important) ── */
/* Nötig weil manche Formulare inline style="grid-template-columns:1fr 1fr" nutzen */
@media (max-width: 700px) {
    .ops-logbook-form,
    .ops-flight-form {
        grid-template-columns: 1fr !important;
    }
}

/* ── Rating-Header in uebersicht: auf Mobile verstecken ── */
@media (max-width: 640px) {
    .ue-rating-header {
        display: none;
    }
    .ue-rating-row {
        grid-template-columns: 1fr auto !important;
    }
    .ue-rating-row > span:nth-child(2) {
        grid-column: 1;
    }
}

/* ── Topbar-Suche: verstecken wenn App-Navbar vorhanden ── */
.ops-app-navbar ~ .ops-main .ops-topbar .ops-navbar-center {
    display: none;
}
.ops-app-navbar ~ .ops-main .ops-topbar {
    flex-wrap: nowrap;
}

/* ── Safe-Area: Padding am unteren Rand (iOS Notch / Home Indicator) ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .quick-fab {
        bottom: calc(1.25rem + env(safe-area-inset-bottom));
    }
    @media (max-width: 760px) {
        .ops-main {
            padding-bottom: calc(4rem + env(safe-area-inset-bottom));
        }
    }
}

/* ── Register-Seite: Vor/Nachname-Grid auf kleinen Screens ── */
@media (max-width: 500px) {
    .entry-login-form div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── iOS: font-size ≥ 16px auf Inputs verhindert Auto-Zoom ── */
@media (max-width: 760px) {
    .entry-login-form input,
    .st-field input,
    .st-field select,
    .st-field textarea,
    .ops-navbar-search input[type="search"] {
        font-size: 1rem !important;
    }
}

/* ── Tracking + Nutzer + Signaturen: allgemeine Card-Anpassungen ── */
@media (max-width: 760px) {
    /* Breite Grids (tracking, nutzer) responsive machen */
    .ops-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Log-Tabelle im Flugbuch: Card-Darstellung auf kleinen Screens ── */
@media (max-width: 640px) {
    /* Logbook-Rows: kompaktere Darstellung */
    .ops-logbook-row {
        grid-template-columns: 1fr 1fr !important;
        font-size: 0.78rem !important;
        row-gap: 0.25rem;
    }
    /* Logbook-Header ausblenden (Labels nicht sinnvoll bei 2-Spalten) */
    .ops-logbook-head {
        display: none !important;
    }
    /* Logbook-Row-Buttons: größere Touch-Targets */
    .ops-logbook-row button {
        min-height: 2.25rem;
        padding: 0.3rem 0.75rem;
    }
}

/* ══════════════════════════════════════════════════════
   MOBILE FIXES
══════════════════════════════════════════════════════ */

/* ── 1. Burger-Menü: alle Punkte vertikal anzeigen ── */
@media (max-width: 760px) {
    .ops-app-nav.is-open {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible;
        height: auto;
        min-height: 0;
    }
    .ops-app-nav__link {
        justify-content: flex-start !important;
        min-height: 3rem !important;
        padding: 0 1rem !important;
        font-size: 1rem !important;
        border-radius: 0.6rem !important;
    }
    .ops-app-nav__link::after {
        display: none;
    }
}

/* ── 3. Letzte Flüge: 2-Spalten Layout auf Mobile ── */
@media (max-width: 640px) {
    .tf-recent-flight-row {
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        row-gap: 0.2rem !important;
    }
    .tf-recent-flight-row strong {
        grid-area: 1 / 1;
        font-size: 0.85rem;
    }
    .tf-recent-flight-row b {
        grid-area: 1 / 2;
        justify-self: end;
        font-size: 0.85rem;
    }
    .tf-recent-flight-row span {
        grid-area: 2 / 1 / 2 / 3;
        font-size: 0.8rem;
    }
    .tf-recent-flight-row em {
        display: none;
    }
}

/* ── 4. App-Clock: kompakter auf mittleren Mobilbildschirmen ── */
@media (max-width: 760px) {
    .ops-app-clock__time,
    .ops-app-clock__local-time {
        font-size: 0.78rem;
    }
    .ops-app-clock__date {
        font-size: 0.66rem;
    }
    .ops-app-clock__label {
        font-size: 0.60rem;
    }
    .ops-app-clock {
        gap: 0.12rem;
        padding: 0.28rem 0.6rem;
        min-height: 0;
    }
}
