/* ══════════════════════════════════════════════════════════════
   GACA eAIP — Premium UX Enhancement Module
   Page transitions · Splash screens · Micro-animations
   Glass effects · Interactive feedback · Modern motion
   ══════════════════════════════════════════════════════════════ */

/* ───────────────────── VARIABLE DEFAULTS ───────────────────── */
:root {
    --grad-hero: linear-gradient(135deg, #0c1e3a 0%, #1a365d 40%, #0f2440 100%);
    --grad-btn: linear-gradient(135deg, #009552, #00c96b);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ink: var(--text-primary, #0f172a);
    --ink-2: var(--text-secondary, #334155);
    --ink-3: #64748b;
    --ink-4: var(--text-muted, #94a3b8);
    --line: var(--border, #e2e8f0);
    --line-lt: var(--border-light, #f1f5f9);
    --r: var(--radius, 12px);
    --r-sm: var(--radius-sm, 8px);
    --green: var(--logo-green, #009552);
}

/* ───────────────────── PAGE SPLASH SCREEN ───────────────────── */
.page-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #0c1e3a 0%, #122a4f 40%, #0a1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
    overflow: hidden;
    animation: splash-exit 0.5s var(--ease) 1.5s forwards;
}

/* ── Radar sweep ring ── */
.page-splash::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(0, 149, 82, 0.08);
    border-radius: 50%;
    animation: radar-pulse 2s ease-out 0.3s infinite;
}

.page-splash::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(0, 201, 107, 0.12) 40deg,
            transparent 80deg);
    animation: radar-sweep 2.5s linear 0.3s infinite;
}

/* ── Airplane silhouette flying across ── */
.page-splash .splash-airplane {
    position: absolute;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.15);
    animation: airplane-fly 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
    filter: blur(0px);
}

/* ── Runway approach lights ── */
.page-splash .splash-runway {
    position: absolute;
    bottom: 60px;
    display: flex;
    gap: 24px;
}

.page-splash .splash-runway span {
    width: 4px;
    height: 4px;
    background: rgba(0, 201, 107, 0.6);
    border-radius: 50%;
    animation: runway-blink 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0, 201, 107, 0.3);
}

.page-splash .splash-runway span:nth-child(2) {
    animation-delay: 0.15s;
}

.page-splash .splash-runway span:nth-child(3) {
    animation-delay: 0.3s;
}

.page-splash .splash-runway span:nth-child(4) {
    animation-delay: 0.45s;
}

.page-splash .splash-runway span:nth-child(5) {
    animation-delay: 0.6s;
}

.page-splash .splash-runway span:nth-child(6) {
    animation-delay: 0.75s;
}

.page-splash .splash-runway span:nth-child(7) {
    animation-delay: 0.9s;
}

/* ── Stars / waypoints background ── */
.page-splash .splash-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.15) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1px 1px at 50% 30%, rgba(255, 255, 255, 0.12) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.08) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.1) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 20% 75%, rgba(0, 201, 107, 0.15) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 15%, rgba(0, 201, 107, 0.12) 50%, transparent 100%);
    animation: stars-twinkle 3s ease-in-out infinite;
}

/* ── Logo ── */
.page-splash .splash-logo {
    width: auto;
    height: 80px;
    max-width: 200px;
    object-fit: contain;
    animation: splash-logo-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    filter: drop-shadow(0 0 40px rgba(0, 201, 107, 0.25));
    position: relative;
    z-index: 2;
}

/* ── Text ── */
.page-splash .splash-text {
    font-size: 26px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    animation: splash-text-enter 0.3s var(--ease) 0.4s both;
    position: relative;
    z-index: 2;
}

.page-splash .splash-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: splash-text-enter 0.3s var(--ease) 0.55s both;
    position: relative;
    z-index: 2;
}

/* ── Progress bar ── */
.page-splash .splash-bar {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 16px;
    animation: splash-text-enter 0.2s var(--ease) 0.6s both;
    position: relative;
    z-index: 2;
}

.page-splash .splash-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #009552, #00c96b);
    border-radius: 2px;
    animation: splash-progress 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.65s forwards;
}

/* ── Keyframes ── */
@keyframes splash-exit {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes radar-sweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.4;
        border-color: rgba(0, 149, 82, 0.15);
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
        border-color: rgba(0, 149, 82, 0);
    }
}

@keyframes airplane-fly {
    0% {
        transform: translate(-120px, 80px) rotate(-15deg) scale(0.6);
        opacity: 0;
    }

    15% {
        opacity: 0.2;
    }

    50% {
        transform: translate(0px, -10px) rotate(-8deg) scale(1);
        opacity: 0.2;
    }

    85% {
        opacity: 0.15;
    }

    100% {
        transform: translate(140px, -100px) rotate(-5deg) scale(0.7);
        opacity: 0;
    }
}

@keyframes runway-blink {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes stars-twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes splash-logo-enter {
    0% {
        transform: scale(0.3) translateY(20px);
        opacity: 0;
    }

    60% {
        transform: scale(1.05) translateY(-2px);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes splash-text-enter {
    from {
        transform: translateY(16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes splash-progress {
    0% {
        width: 0;
    }

    30% {
        width: 35%;
    }

    60% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ───────────────────── PAGE TRANSITION ───────────────────── */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(26, 33, 81, 0.92) 0%, rgba(37, 45, 101, 0.92) 40%, rgba(27, 58, 75, 0.90) 70%, rgba(13, 74, 58, 0.88) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

/* Subtle grid pattern overlay */
.page-transition-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 149, 82, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 149, 82, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Fine grid lines background */
.page-transition-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 149, 82, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 149, 82, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-transition-overlay.entering {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Floating Particles ─── */
.pt-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.pt-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 230, 118, 0.5);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.3);
}

.entering .pt-particle:nth-child(1) {
    animation: pt-float 2s ease-in-out 0.0s infinite;
    top: 20%;
    left: 15%;
}

.entering .pt-particle:nth-child(2) {
    animation: pt-float 2.4s ease-in-out 0.3s infinite;
    top: 70%;
    left: 80%;
}

.entering .pt-particle:nth-child(3) {
    animation: pt-float 1.8s ease-in-out 0.1s infinite;
    top: 40%;
    left: 85%;
}

.entering .pt-particle:nth-child(4) {
    animation: pt-float 2.2s ease-in-out 0.5s infinite;
    top: 80%;
    left: 25%;
}

.entering .pt-particle:nth-child(5) {
    animation: pt-float 2.6s ease-in-out 0.2s infinite;
    top: 30%;
    left: 60%;
}

.entering .pt-particle:nth-child(6) {
    animation: pt-float 2s ease-in-out 0.4s infinite;
    top: 60%;
    left: 40%;
}

/* ─── Outer Orbit Ring ─── */
.pt-orbit {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px dashed rgba(0, 149, 82, 0.12);
    border-radius: 50%;
    opacity: 0;
}

.entering .pt-orbit {
    opacity: 1;
    animation: pt-orbit-spin 4s linear infinite;
}

/* Orbit tracking dot */
.pt-orbit::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    margin-left: -3px;
    width: 6px;
    height: 6px;
    background: rgba(0, 230, 118, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

/* ─── Compass Cardinal Labels ─── */
.pt-cardinal {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(0, 230, 118, 0.35);
    font-family: 'Inter', 'Segoe UI', monospace;
    opacity: 0;
}

.entering .pt-cardinal {
    animation: pt-fade-in 0.2s ease 0.1s forwards;
}

.pt-n {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.pt-e {
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
}

.pt-s {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.pt-w {
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
}

/* ─── Radar Assembly ─── */
.pt-radar {
    position: relative;
    width: 120px;
    height: 120px;
    z-index: 1;
}

/* Outer ring — pulses gently */
.pt-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 149, 82, 0.25);
    border-radius: 50%;
    opacity: 0;
}

/* Second ring */
.pt-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1.5px solid rgba(0, 149, 82, 0.15);
    border-radius: 50%;
}

/* Third inner ring */
.pt-ring::after {
    content: '';
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(0, 149, 82, 0.10);
    border-radius: 50%;
}

.entering .pt-ring {
    animation: pt-pulse 1s ease-in-out infinite;
}

/* Crosshairs */
.pt-radar::before,
.pt-radar::after {
    content: '';
    position: absolute;
    background: rgba(0, 149, 82, 0.08);
}

.pt-radar::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.pt-radar::after {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
}

/* Sweep arm */
.pt-sweep {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(0, 149, 82, 0.45) 40deg,
            rgba(0, 201, 107, 0.15) 80deg,
            transparent 120deg);
    opacity: 0;
}

.entering .pt-sweep {
    opacity: 1;
    animation: pt-rotate 1s linear infinite;
}

/* Center dot */
.pt-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: radial-gradient(circle, #00e676 0%, #009552 100%);
    border-radius: 50%;
    box-shadow:
        0 0 8px rgba(0, 230, 118, 0.6),
        0 0 20px rgba(0, 149, 82, 0.4),
        0 0 40px rgba(0, 149, 82, 0.15);
    opacity: 0;
}

.entering .pt-dot {
    opacity: 1;
    animation: pt-blip 0.6s ease-in-out infinite alternate;
}

/* Loading label */
.pt-label {
    margin-top: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    opacity: 0;
    z-index: 1;
}

.entering .pt-label {
    animation: pt-fade-in 0.2s ease 0.1s forwards;
}

/* Bottom progress bar */
.pt-scanline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #009552, #00e676, #009552);
    background-size: 200% 100%;
    border-radius: 0 2px 2px 0;
    opacity: 0;
}

.entering .pt-scanline {
    opacity: 1;
    animation: pt-progress 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        pt-shimmer 0.4s ease infinite;
}

/* ─── Keyframes ─── */
@keyframes pt-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pt-pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes pt-blip {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 6px rgba(0, 230, 118, 0.4), 0 0 16px rgba(0, 149, 82, 0.2);
    }

    100% {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(0, 230, 118, 0.8), 0 0 30px rgba(0, 149, 82, 0.4), 0 0 50px rgba(0, 149, 82, 0.15);
    }
}

@keyframes pt-fade-in {
    to {
        opacity: 1;
    }
}

@keyframes pt-progress {
    0% {
        width: 0;
    }

    15% {
        width: 25%;
    }

    50% {
        width: 60%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pt-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@keyframes pt-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    25% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        transform: translateY(-15px) scale(1.4);
    }

    75% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
}

@keyframes pt-orbit-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ───────────────────── CONTENT ENTRANCE ANIMATIONS ───────────────────── */
.section-block,
.info-card,
.sidebar-card {
    animation: content-rise 0.5s var(--ease) both;
}

.section-block:nth-child(1) {
    animation-delay: 0.05s;
}

.section-block:nth-child(2) {
    animation-delay: 0.1s;
}

.section-block:nth-child(3) {
    animation-delay: 0.15s;
}

.section-block:nth-child(4) {
    animation-delay: 0.2s;
}

.section-block:nth-child(5) {
    animation-delay: 0.25s;
}

.section-block:nth-child(6) {
    animation-delay: 0.3s;
}

.info-card:nth-child(1) {
    animation-delay: 0.08s;
}

.info-card:nth-child(2) {
    animation-delay: 0.16s;
}

.info-card:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes content-rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ───────────────────── ENHANCED BUTTON SYSTEM (public only) ───────────────────── */
.public-layout .btn-primary,
.btn-green {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--grad-btn);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(0, 149, 82, 0.3);
    overflow: hidden;
    letter-spacing: 0.3px;
}

.public-layout .btn-primary::before,
.btn-green::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.public-layout .btn-primary:hover,
.btn-green:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 149, 82, 0.4);
}

.public-layout .btn-primary:hover::before,
.btn-green:hover::before {
    opacity: 1;
}

.public-layout .btn-primary:active,
.btn-green:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn-navy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--grad-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.25);
    letter-spacing: 0.3px;
}

.btn-navy:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(26, 54, 93, 0.35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--ink-2);
    border: 1.5px solid var(--line);
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--ink-4);
    transform: translateY(-1px);
    box-shadow: var(--sh-sm);
}

/* Ripple effect for interactive elements */
.ripple-target {
    position: relative;
    overflow: hidden;
}

.ripple-target .ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-expand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ───────────────────── ENHANCED SECTION BLOCKS ───────────────────── */
.section-block {
    position: relative;
    overflow: hidden;
}

.section-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-btn);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.section-block:hover::after {
    transform: scaleX(1);
}

/* ───────────────────── GLASSMORPHIC CARDS ───────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--r);
    box-shadow: var(--sh-md), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.35s var(--ease);
}

.glass-card:hover {
    box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Dark glass (for hero overlays) */
.glass-dark {
    background: rgba(12, 30, 58, 0.6);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ───────────────────── STATUS BADGES ───────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(0, 149, 82, 0.08);
    color: #009552;
    box-shadow: 0 0 0 1px rgba(0, 149, 82, 0.15);
}

.status-badge.active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #009552;
    animation: pulse-glow 2s infinite;
}

.status-badge.expired {
    background: rgba(107, 114, 128, 0.08);
    color: #6b7280;
    box-shadow: 0 0 0 1px rgba(107, 114, 128, 0.15);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15);
}

/* ───────────────────── ENHANCED HEADER EFFECTS ───────────────────── */
.main-header {
    transition: all 0.4s var(--ease);
}

.main-header.scrolled {
    box-shadow: var(--sh-md);
    background: rgba(255, 255, 255, 0.98);
}

.main-nav a {
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: all 0.3s var(--ease);
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-nav a:hover::before {
    width: 60%;
}

.main-nav a.active::before {
    width: 60%;
}

/* ───────────────────── FLOATING ACTION BUTTONS ───────────────────── */
.fab-group {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    box-shadow: var(--sh-lg);
}

.fab:hover {
    transform: scale(1.12);
    box-shadow: var(--sh-xl);
}

.fab:active {
    transform: scale(0.95);
}

.fab-primary {
    background: var(--grad-btn);
    color: white;
}

.fab-navy {
    background: var(--grad-blue);
    color: white;
}

/* ───────────────────── SCROLL-REVEAL ANIMATION ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ───────────────────── ENHANCED TABLE STYLES ───────────────────── */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table thead tr th {
    position: relative;
}

table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

table tbody tr:hover {
    background: var(--surface-hover) !important;
}

/* ───────────────────── TOOLTIP SYSTEM ───────────────────── */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--navy);
    color: white;
    padding: 6px 14px;
    border-radius: var(--r-xs);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s var(--ease);
    box-shadow: var(--sh-md);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ───────────────────── ENHANCED NOTAM TICKER ───────────────────── */
.notam-label {
    position: relative;
    overflow: hidden;
}

.notam-label::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ───────────────────── SKELETON LOADING ───────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--surface-dim) 25%, var(--surface-hover) 50%, var(--surface-dim) 75%);
    background-size: 200% 100%;
    animation: skeleton-wave 1.5s ease-in-out infinite;
    border-radius: var(--r-xs);
}

@keyframes skeleton-wave {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ───────────────────── COUNTER / NUMBER ANIMATIONS ───────────────────── */
.stat-number {
    display: inline-block;
    animation: count-up 0.8s var(--ease) both;
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ───────────────────── PROGRESS BAR ANIMATIONS ───────────────────── */
.progress-bar-animated {
    height: 4px;
    background: var(--border, var(--line));
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-animated .progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s var(--ease);
    background: var(--grad-btn);
    position: relative;
}

.progress-bar-animated .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* ───────────────────── ENHANCED SIDEBAR ───────────────────── */
.sidebar-links a {
    position: relative;
}

.sidebar-links a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--green);
    border-radius: 0 3px 3px 0;
    transition: all 0.25s var(--ease);
    transform: translateY(-50%);
}

.sidebar-links a:hover::after,
.sidebar-links a.active-section::after {
    height: 60%;
}

/* ───────────────────── ENHANCED HERO ───────────────────── */
.hero-content>* {
    animation: hero-stagger 0.6s var(--ease) both;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-content>*:nth-child(5) {
    animation-delay: 0.5s;
}

.hero-content>*:nth-child(6) {
    animation-delay: 0.55s;
}

@keyframes hero-stagger {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ───────────────────── LINK HOVER EFFECTS ───────────────────── */
a[href]:not(.nav-link):not(.btn-primary):not(.btn-navy):not(.btn-ghost):not(.btn-admin):not(.logo-group):not(.category-tab):not(.sidebar-links a) {
    transition: color 0.2s ease;
}

a[href]:not(.nav-link):not(.btn-primary):not(.btn-navy):not(.btn-ghost):not(.btn-admin):not(.logo-group) {
    position: relative;
}

/* ───────────────────── CARD HOVER GLOW ───────────────────── */
.info-card {
    position: relative;
}

.info-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--r) + 1px);
    background: linear-gradient(135deg, transparent, rgba(0, 149, 82, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.info-card:hover::after {
    opacity: 1;
}

/* ───────────────────── SMOOTH SCROLL INDICATOR ───────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--grad-btn);
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 149, 82, 0.4);
}

/* ───────────────────── BACK-TO-TOP ───────────────────── */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--sh-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 999;
    color: var(--ink-3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: var(--sh-lg);
}

/* ───────────────────── ENHANCED FOOTER ───────────────────── */
.main-footer {
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.footer-col a {
    transition: all 0.2s var(--ease) !important;
}

.footer-col a:hover {
    transform: translateX(4px) !important;
}

/* ───────────────────── CATEGORY TAB ENHANCED ───────────────────── */
.category-tab {
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-tab:hover::before {
    opacity: 1;
}

/* ───────────────────── NOTIFICATION TOAST ───────────────────── */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 14px 24px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--sh-lg);
    animation: toast-in 0.4s var(--spring) both;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    background: #009552;
    color: white;
}

.toast.error {
    background: #ef4444;
    color: white;
}

.toast.info {
    background: var(--navy);
    color: white;
}

.toast.hiding {
    animation: toast-out 0.3s var(--ease) forwards;
}

@keyframes toast-in {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
}

/* ───────────────────── GLOBAL FORM CONTROLS ───────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    font-size: 13.5px;
    color: var(--ink, var(--text-primary, #0f172a));
    background: var(--surface, #ffffff);
    border: 1.5px solid var(--line, var(--border, #e2e8f0));
    border-radius: var(--r-sm, 10px);
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: var(--green, #009552);
    box-shadow: 0 0 0 3px rgba(0, 149, 82, 0.1), 0 1px 2px rgba(0, 0, 0, 0.04);
    background: var(--surface, #ffffff);
}

input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
input[type="date"]:hover:not(:focus),
input[type="datetime-local"]:hover:not(:focus),
input[type="search"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
input[type="url"]:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--ink-4, #94a3b8);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-4, #94a3b8);
    font-weight: 400;
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ── Form Groups ── */
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2, var(--text-secondary, #334155));
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group {
    margin-bottom: 18px;
}

.form-hint {
    font-size: 11px;
    color: var(--ink-4, #94a3b8);
    margin-top: 4px;
}

/* ── Validation States ── */
.is-invalid,
input.error,
select.error,
textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.is-valid,
input.success,
select.success,
textarea.success {
    border-color: #009552 !important;
    box-shadow: 0 0 0 3px rgba(0, 149, 82, 0.1) !important;
}

.error-message {
    font-size: 11px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Checkboxes & Radios ── */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green, #009552);
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.1);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    animation: check-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes check-pop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ── File Inputs ── */
input[type="file"] {
    font-size: 12px;
    padding: 8px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    background: var(--grad-btn, linear-gradient(135deg, #009552, #00c96b));
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 149, 82, 0.3);
}

/* ───────────────────── GLOBAL BUTTON STYLES ───────────────────── */
button,
.btn,
input[type="submit"],
input[type="button"] {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

button:not([class]):hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
}

button:not([class]):active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.08s;
}

/* Danger button — only for non-admin contexts (admin has its own) */
.public-layout .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-layout .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Warning button — only for non-admin contexts */
.public-layout .btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-layout .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Explicit color ensure for all buttons */
.btn-primary {
    color: white !important;
}

.btn-danger {
    color: white !important;
}

.btn-success-sm {
    color: white !important;
}

/* Small buttons */
.btn-sm {
    padding: 6px 16px !important;
    font-size: 11.5px !important;
}

/* ───────────────────── GLOBAL TABLE ENHANCEMENT ───────────────────── */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

table thead th {
    background: var(--surface-dim, #f8fafc);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ink-3, #64748b);
    padding: 12px 14px;
    border-bottom: 2px solid var(--line, #e2e8f0);
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-lt, var(--line, #f1f5f9));
    vertical-align: middle;
    color: var(--ink-2, #334155);
}

table tbody tr {
    transition: background 0.15s ease;
}

table tbody tr:hover {
    background: var(--surface-hover, #f1f5f9) !important;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ───────────────────── PAGINATION ───────────────────── */
.pagination,
nav[aria-label*="Pagination"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
nav[aria-label*="Pagination"] a,
nav[aria-label*="Pagination"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.pagination a {
    color: var(--ink-2, #334155);
    background: var(--surface, #ffffff);
    border-color: var(--line, #e2e8f0);
}

.pagination a:hover {
    background: var(--surface-hover, #f1f5f9);
    border-color: var(--ink-4, #94a3b8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination .active span,
.pagination span[aria-current="page"] {
    background: var(--grad-btn, linear-gradient(135deg, #009552, #00c96b));
    color: white !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 149, 82, 0.25);
}

.pagination .disabled span {
    opacity: 0.4;
    pointer-events: none;
}

/* ───────────────────── ADMIN CARD ENHANCEMENTS ───────────────────── */
.card,
.admin-card,
[class*="stat-card"] {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover,
.admin-card:hover,
[class*="stat-card"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

/* ───────────────────── MODAL / DIALOG ENHANCEMENT ───────────────────── */
.modal-backdrop,
.overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(12, 30, 58, 0.5) !important;
}

.modal-content,
.dialog {
    animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    border-radius: var(--r, 16px) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15) !important;
}

@keyframes modal-in {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ───────────────────── ALERTS / FLASH MESSAGES ───────────────────── */
.alert,
.flash-message {
    border-radius: var(--r-sm, 10px);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    animation: alert-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-success,
.flash-success {
    background: rgba(0, 149, 82, 0.06);
    border: 1px solid rgba(0, 149, 82, 0.15);
    color: #007a42;
}

.alert-danger,
.alert-error,
.flash-error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.alert-warning,
.flash-warning {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.alert-info,
.flash-info {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

@keyframes alert-in {
    from {
        transform: translateY(-10px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ───────────────────── DROPDOWN MENUS ───────────────────── */
.dropdown-menu,
[class*="dropdown-content"] {
    border-radius: var(--r-sm, 10px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid var(--line, #e2e8f0) !important;
    animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    overflow: hidden;
}

.dropdown-menu a,
[class*="dropdown-content"] a {
    transition: all 0.15s ease !important;
    padding: 9px 16px !important;
}

.dropdown-menu a:hover,
[class*="dropdown-content"] a:hover {
    background: var(--surface-hover, #f1f5f9) !important;
    padding-left: 20px !important;
}

@keyframes dropdown-in {
    from {
        transform: translateY(-8px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ───────────────────── GLOBAL SCROLLBAR ───────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--ink-4, #94a3b8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-3, #64748b);
}

/* ───────────────────── SELECTION COLOR ───────────────────── */
::selection {
    background: rgba(0, 149, 82, 0.15);
    color: var(--ink, #0f172a);
}

/* ───────────────────── DARK MODE ───────────────────── */
body[data-theme="dark"] {
    --surface: #0f172a;
    --surface-dim: #0c1222;
    --surface-hover: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --border-light: #1e293b;
    --ink: #e2e8f0;
    --ink-2: #cbd5e1;
    --ink-3: #94a3b8;
    --ink-4: #64748b;
    --line: #1e293b;
    --line-lt: #1e293b;
    color: #e2e8f0;
    background: #0c1222;
}

body[data-theme="dark"] .container,
body[data-theme="dark"] .content-area,
body[data-theme="dark"] .main-content {
    color: #e2e8f0;
}

body[data-theme="dark"] .sidebar-card,
body[data-theme="dark"] .section-block,
body[data-theme="dark"] .card,
body[data-theme="dark"] .info-card {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: #334155 !important;
    color: #e2e8f0;
}

body[data-theme="dark"] .sidebar-card-header {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .sidebar-links a {
    color: #94a3b8 !important;
}

body[data-theme="dark"] .sidebar-links a:hover {
    color: #e2e8f0 !important;
    background: rgba(51, 65, 85, 0.4) !important;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] p,
body[data-theme="dark"] span,
body[data-theme="dark"] td,
body[data-theme="dark"] th,
body[data-theme="dark"] label,
body[data-theme="dark"] .section-content {
    color: #e2e8f0;
}

body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="email"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] input[type="number"],
body[data-theme="dark"] input[type="search"],
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

body[data-theme="dark"] table thead th {
    background: #0f172a;
    color: #94a3b8;
    border-color: #1e293b;
}

body[data-theme="dark"] table tbody td {
    border-color: #1e293b;
    color: #cbd5e1;
}

body[data-theme="dark"] table tbody tr:hover {
    background: rgba(30, 41, 59, 0.6) !important;
}

body[data-theme="dark"] .pagination a {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body[data-theme="dark"] .badge {
    opacity: 0.9;
}

body[data-theme="dark"] footer,
body[data-theme="dark"] .public-footer {
    background: #0c1222 !important;
    border-color: #1e293b !important;
}

body[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0c1222 0%, #1a365d 50%, #0f2440 100%) !important;
}

/* Dark mode toggle button */
.dark-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #334155;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
}

.dark-toggle::after {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .dark-toggle {
    background: var(--logo-green, #009552);
}

body[data-theme="dark"] .dark-toggle::after {
    transform: translateX(20px);
}

.dark-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #475569);
}

.dark-toggle-wrap svg {
    width: 16px;
    height: 16px;
}

/* ───────────────────── REDUCED MOTION ───────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .page-splash {
        display: none !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}