/* KPI Dashboard — Responsive: Media Queries, Mobile Nav, Persona Carousel */


/* ================================================================
   MOBILE BOTTOM NAV â€” â‰¤768px only
   ================================================================ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 300;
        background: rgba(8, 10, 17, 0.85);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 6px 0 env(safe-area-inset-bottom, 6px);
        justify-content: space-around;
        align-items: center;
    }

    /* Add bottom padding to main content for nav clearance */
    .main-content {
        padding-bottom: 80px;
    }
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    background: none;
    border: none;
    color: #5A6478;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-btn.active {
    color: #00E5FF;
}

.mobile-nav-btn.active svg {
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}

.mobile-nav-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #00E5FF;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* ================================================================
   MOBILE "MORE" DRAWER â€” slide-up panel
   ================================================================ */
.mobile-more-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-more-overlay.visible {
    display: block;
    opacity: 1;
}

.mobile-more-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 410;
    background: rgba(13, 17, 26, 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px 32px;
    transition: bottom 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-more-drawer.open {
    bottom: 0;
}

.drawer-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.drawer-title {
    font-size: 13px;
    font-weight: 700;
    color: #5A6478;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-left: 4px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.drawer-item:hover,
.drawer-item:active {
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
}

.drawer-item svg {
    color: #8B95A5;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.drawer-item:hover svg {
    color: #00E5FF;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5));
}

/* ================================================================
   SKELETON LOADING STATE â€” Neural Pulse Animation
   ================================================================ */

/* Neural pulse sweep animation */
@keyframes neuralPulse {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Base skeleton shape */
.skeleton-shape {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Neural pulse sweep overlay */
.loading-state .skeleton-shape {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(0, 229, 255, 0.08) 40%,
            rgba(0, 229, 255, 0.12) 50%,
            rgba(0, 229, 255, 0.08) 60%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: neuralPulse 2s ease-in-out infinite;
}

/* Skeleton shape dimensions */
.skeleton-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.skeleton-trend {
    width: 60px;
    height: 22px;
    border-radius: 12px;
}

.skeleton-value {
    width: 140px;
    height: 28px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.skeleton-label {
    width: 100px;
    height: 12px;
    border-radius: 4px;
}

.skeleton-graph {
    width: 100%;
    height: 60px;
    border-radius: 0 0 12px 12px;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Stagger animation timing for each card */
.loading-state:nth-child(1) .skeleton-shape {
    animation-delay: 0s;
}

.loading-state:nth-child(2) .skeleton-shape {
    animation-delay: 0.15s;
}

.loading-state:nth-child(3) .skeleton-shape {
    animation-delay: 0.3s;
}

.loading-state:nth-child(4) .skeleton-shape {
    animation-delay: 0.45s;
}

.loading-state:nth-child(5) .skeleton-shape {
    animation-delay: 0.6s;
}

.loading-state:nth-child(6) .skeleton-shape {
    animation-delay: 0.75s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .skeleton-shape {
        animation: none !important;
        background: rgba(255, 255, 255, 0.06);
    }
}

/* ================================================================
   MOBILE COMMAND CENTER â€” Thumb-First Native App Experience
   ================================================================ */

/* --- Hide mobile-only components on desktop --- */
.mobile-bottom-nav,
.mobile-persona-carousel,
.neural-action-feed,
.mobile-more-overlay,
.mobile-more-drawer {
    display: none;
}

/* ================================================================
   NEURAL SCAN SKELETON LOADING
   ================================================================ */
.skeleton-panel {
    background: rgba(13, 17, 26, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.skeleton-block {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.skeleton-pill {
    width: 120px;
    height: 24px;
    border-radius: 20px;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.skeleton-data-primary {
    width: 60%;
    height: 32px;
    margin-bottom: 8px;
}

.skeleton-data-secondary {
    width: 40%;
    height: 14px;
    margin-bottom: 40px;
}

.skeleton-graph {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    border-radius: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

/* The Sweeping Cyan Laser */
.skeleton-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 229, 255, 0.05) 40%,
            rgba(0, 229, 255, 0.2) 50%,
            rgba(0, 229, 255, 0.05) 60%,
            transparent 100%);
    animation: neural-scan 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes neural-scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ================================================================
   MOBILE BREAKPOINT â€” Command Center Activation
   ================================================================ */
@media (max-width: 768px) {

    /* --- Show mobile components --- */
    .mobile-bottom-nav,
    .mobile-persona-carousel,
    .neural-action-feed {
        display: flex;
    }

    /* --- Hide desktop sidebar completely --- */
    .sidebar {
        display: none !important;
    }

    /* --- Main content: full width, bottom padding for nav --- */
    .main-content {
        margin-left: 0;
        padding-bottom: 100px;
    }

    /* --- Simplified mobile header --- */
    .top-header {
        padding: 12px 16px;
    }

    .menu-toggle {
        display: none;
    }

    /* ============================================================
       MOBILE BOTTOM NAVIGATION
       ============================================================ */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 72px;
        background: rgba(8, 10, 17, 0.92);
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 999;
    }

    .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        background: none;
        border: none;
        color: #8B95A5;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        cursor: pointer;
        padding: 8px 12px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-btn svg {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .mobile-nav-btn.active {
        color: #00E5FF;
    }

    .mobile-nav-btn.active svg {
        filter: drop-shadow(0px -4px 12px rgba(0, 229, 255, 0.4));
        transform: translateY(-3px);
    }

    .mobile-nav-btn:active {
        transform: scale(0.92);
    }

    /* ============================================================
       SWIPEABLE PERSONA CAROUSEL
       ============================================================ */
    .mobile-persona-carousel {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 16px 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-persona-carousel::-webkit-scrollbar {
        display: none;
    }

    .mobile-persona-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        background: rgba(13, 17, 26, 0.6);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.03);
        border-top: 1px solid rgba(0, 229, 255, 0.4);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Persona-specific top border glows */
    .mobile-persona-card.persona-heist {
        border-top-color: rgba(255, 180, 0, 0.5);
    }

    .mobile-persona-card.persona-columnini {
        border-top-color: rgba(0, 255, 150, 0.5);
    }

    .mobile-persona-card.persona-redeye {
        border-top-color: rgba(0, 229, 255, 0.5);
    }

    /* Card header â€” avatar + info + status */
    .persona-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .persona-avatar {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        object-fit: cover;
        filter: brightness(1.3) saturate(1.4);
    }

    .persona-heist .persona-avatar {
        border: 2px solid rgba(255, 180, 0, 0.5);
        box-shadow: 0 0 12px rgba(255, 180, 0, 0.2);
    }

    .persona-columnini .persona-avatar {
        border: 2px solid rgba(0, 255, 150, 0.5);
        box-shadow: 0 0 12px rgba(0, 255, 150, 0.2);
    }

    .persona-redeye .persona-avatar {
        border: 2px solid rgba(0, 229, 255, 0.5);
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
    }

    .persona-info {
        flex: 1;
    }

    .persona-name {
        font-size: 14px;
        font-weight: 700;
        color: #FFFFFF;
        letter-spacing: 0.5px;
    }

    .persona-role {
        font-size: 13px;
        font-weight: 600;
        color: #8B95A5;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 2px;
    }

    /* Status indicator */
    .persona-status {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 4px 10px;
        border-radius: 20px;
    }

    .persona-status.online {
        color: #00FFCC;
        background: rgba(0, 255, 204, 0.1);
        border: 1px solid rgba(0, 255, 204, 0.2);
    }

    .persona-status.running {
        color: #00E5FF;
        background: rgba(0, 229, 255, 0.1);
        border: 1px solid rgba(0, 229, 255, 0.2);
    }

    .status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        animation: status-pulse 2s infinite;
    }

    @keyframes status-pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.4;
        }
    }

    /* Last action summary */
    .persona-last-action {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .action-label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #8B95A5;
        margin-bottom: 4px;
    }

    .action-text {
        font-size: 13px;
        color: #E2E8F0;
        line-height: 1.4;
    }

    /* CTA button */
    .persona-cta {
        display: block;
        text-align: center;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .persona-cta.heist {
        color: #ffb400;
        background: rgba(255, 180, 0, 0.08);
        border: 1px solid rgba(255, 180, 0, 0.25);
    }

    .persona-cta.heist:active {
        background: rgba(255, 180, 0, 0.15);
    }

    .persona-cta.columnini {
        color: #00ff96;
        background: rgba(0, 255, 150, 0.08);
        border: 1px solid rgba(0, 255, 150, 0.25);
    }

    .persona-cta.columnini:active {
        background: rgba(0, 255, 150, 0.15);
    }

    .persona-cta.redeye {
        color: #00E5FF;
        background: rgba(0, 229, 255, 0.08);
        border: 1px solid rgba(0, 229, 255, 0.25);
    }

    .persona-cta.redeye:active {
        background: rgba(0, 229, 255, 0.15);
    }

    /* ============================================================
       NEURAL ACTION FEED
       ============================================================ */
    .neural-action-feed {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 20px 20px 20px;
    }

    .feed-section-label {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #8B95A5;
        padding: 4px 0;
    }

    .feed-action-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        background: rgba(13, 17, 26, 0.4);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.03);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .feed-action-item.feed-positive {
        border-left: 2px solid #00FFCC;
    }

    .feed-action-item.feed-alert {
        border-left: 2px solid #FF4D4D;
    }

    .feed-icon {
        font-size: 18px;
        line-height: 1;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .feed-content {
        flex: 1;
    }

    .feed-title {
        font-size: 13px;
        font-weight: 600;
        color: #E2E8F0;
        line-height: 1.4;
        margin-bottom: 3px;
    }

    .feed-meta {
        font-size: 13px;
        color: #8B95A5;
        letter-spacing: 0.3px;
    }

    /* ============================================================
       "MORE" SLIDE-UP DRAWER
       ============================================================ */
    .mobile-more-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-more-overlay.open {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .mobile-more-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(13, 17, 26, 0.95);
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
        border-top: 1px solid rgba(0, 229, 255, 0.3);
        border-radius: 20px 20px 0 0;
        padding: 16px 20px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        z-index: 1001;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .mobile-more-drawer.open {
        display: block;
        transform: translateY(0);
    }

    .drawer-handle {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 2px;
        margin: 0 auto 16px auto;
    }

    .drawer-title {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #8B95A5;
        margin-bottom: 12px;
        padding-left: 4px;
    }

    .drawer-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 8px;
        color: #E2E8F0;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.3px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .drawer-item:last-child {
        border-bottom: none;
    }

    .drawer-item svg {
        color: #8B95A5;
        flex-shrink: 0;
    }

    .drawer-item:active {
        background: rgba(0, 229, 255, 0.06);
        color: #00E5FF;
    }

    .drawer-item:active svg {
        color: #00E5FF;
        filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
    }
}

/* ================================================================
   WOW OVERHAUL — TABULAR NUMS on all numeric readouts
   ================================================================ */
.ring-value,
.metric-big-number,
.health-number,
.pulse-stat-value,
.stat-num,
.kpi-trend {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ================================================================
   WOW OVERHAUL — Enhanced Hover Micro-Interactions
   ================================================================ */
.metric-card:hover {
    transform: translateY(-4px) scale(1.015);
}

.scraper-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6),
        0 0 20px rgba(20, 184, 166, 0.08);
}

.node-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6),
        0 0 24px rgba(20, 184, 166, 0.08);
}

.chart-card:hover {
    transform: translateY(-2px);
    border-top-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5),
        0 0 16px rgba(0, 229, 255, 0.04);
}

.table-card:hover {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.pulse-stat-card:hover {
    transform: translateY(-4px) scale(1.015);
}

/* Staggered reveal children — cards inside revealed sections */
.dashboard-section.revealed .kpi-card,
.dashboard-section.revealed .metric-card,
.dashboard-section.revealed .scraper-card,
.dashboard-section.revealed .node-card,
.dashboard-section.revealed .chart-card,
.dashboard-section.revealed .table-card,
.dashboard-section.revealed .pulse-stat-card {
    animation: revealChild 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes revealChild {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger delays for children */
.dashboard-section.revealed>*:nth-child(1),
.dashboard-section.revealed .kpi-grid>*:nth-child(1),
.dashboard-section.revealed .billing-grid>*:nth-child(1),
.dashboard-section.revealed .scraper-grid>*:nth-child(1),
.dashboard-section.revealed .nodes-grid>*:nth-child(1),
.dashboard-section.revealed .pulse-stats-row>*:nth-child(1) {
    animation-delay: 0.05s;
}

.dashboard-section.revealed .kpi-grid>*:nth-child(2),
.dashboard-section.revealed .billing-grid>*:nth-child(2),
.dashboard-section.revealed .scraper-grid>*:nth-child(2),
.dashboard-section.revealed .nodes-grid>*:nth-child(2),
.dashboard-section.revealed .pulse-stats-row>*:nth-child(2) {
    animation-delay: 0.1s;
}

.dashboard-section.revealed .kpi-grid>*:nth-child(3),
.dashboard-section.revealed .billing-grid>*:nth-child(3),
.dashboard-section.revealed .scraper-grid>*:nth-child(3),
.dashboard-section.revealed .nodes-grid>*:nth-child(3),
.dashboard-section.revealed .pulse-stats-row>*:nth-child(3) {
    animation-delay: 0.15s;
}

.dashboard-section.revealed .kpi-grid>*:nth-child(4),
.dashboard-section.revealed .billing-grid>*:nth-child(4),
.dashboard-section.revealed .scraper-grid>*:nth-child(4),
.dashboard-section.revealed .nodes-grid>*:nth-child(4),
.dashboard-section.revealed .pulse-stats-row>*:nth-child(4) {
    animation-delay: 0.2s;
}

.dashboard-section.revealed .kpi-grid>*:nth-child(5),
.dashboard-section.revealed .pulse-stats-row>*:nth-child(5) {
    animation-delay: 0.25s;
}

.dashboard-section.revealed .kpi-grid>*:nth-child(6),
.dashboard-section.revealed .pulse-stats-row>*:nth-child(6) {
    animation-delay: 0.3s;
}

/* ================================================================
   WOW OVERHAUL — LIVE PULSING DOT
   ================================================================ */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    animation: liveDotPulse 2s ease-in-out infinite;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    animation: liveDotRing 2s ease-in-out infinite;
}

@keyframes liveDotPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    }
}

@keyframes liveDotRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ================================================================
   WOW OVERHAUL — COMMAND PALETTE (Ctrl+K)
   ================================================================ */
.cmd-palette-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    padding-top: 15vh;
}

.cmd-palette-overlay.open {
    display: flex;
    animation: cmdFadeIn 0.15s ease;
}

@keyframes cmdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cmd-palette {
    width: 560px;
    max-width: 90vw;
    background: rgba(13, 17, 26, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 1px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(0, 229, 255, 0.05);
    overflow: hidden;
    animation: cmdSlideIn 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

@keyframes cmdSlideIn {
    from {
        transform: translateY(-12px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cmd-search-wrap {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.cmd-search-icon {
    color: #8B95A5;
    flex-shrink: 0;
}

.cmd-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    caret-color: #00E5FF;
}

.cmd-search-input::placeholder {
    color: #5A6478;
}

.cmd-kbd {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #5A6478;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    flex-shrink: 0;
}

.cmd-results {
    overflow-y: auto;
    max-height: 320px;
    padding: 8px;
}

.cmd-results::-webkit-scrollbar {
    width: 4px;
}

.cmd-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.cmd-result-group {
    padding: 0;
    margin-bottom: 4px;
}

.cmd-result-group-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #5A6478;
    padding: 8px 12px 4px;
}

.cmd-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #E2E8F0;
    font-size: 14px;
    font-weight: 500;
}

.cmd-result-item:hover,
.cmd-result-item.active {
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
}

.cmd-result-item .cmd-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cmd-result-item .cmd-result-text {
    flex: 1;
}

.cmd-result-item .cmd-result-hint {
    font-size: 13px;
    color: #5A6478;
    flex-shrink: 0;
}

.cmd-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #5A6478;
    font-size: 13px;
}

.cmd-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #5A6478;
}

.cmd-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Header Ctrl+K hint badge */
.header-cmd-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #5A6478;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-cmd-hint:hover {
    border-color: rgba(0, 229, 255, 0.3);
    color: #00E5FF;
    background: rgba(0, 229, 255, 0.04);
}

.header-cmd-hint svg {
    opacity: 0.5;
}