/* VitaCore Pro - premium mobile UI */
:root {
    --vc-dark: #020617;
    --vc-panel: #0f172a;
    --vc-emerald: #34d399;
    --vc-emerald-dark: #059669;
    --vc-blue: #38bdf8;
    --vc-purple: #a78bfa;
    --vc-rose: #fb7185;
}

html {
    scroll-behavior: smooth;
}

.vc-shell {
    width: min(1600px, calc(100% - 24px));
    margin: 0 auto;
    padding: 12px 0 24px;
}

.vc-sidebar {
    display: none;
}

.vc-main {
    width: 100%;
    border-radius: 28px;
}

.vc-gradient-bg {
    background:
        radial-gradient(circle at 15% 10%, rgba(52,211,153,.22), transparent 26%),
        radial-gradient(circle at 90% 0%, rgba(56,189,248,.16), transparent 24%),
        linear-gradient(145deg, #020617 0%, #0f172a 48%, #111827 100%);
}

.vc-card-premium {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 18px 40px rgba(15,23,42,.10);
    border-radius: 1.75rem;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.scroll-target {
    scroll-margin-top: 7.5rem;
}

.vc-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(15,23,42,.14);
    border-color: rgba(52,211,153,.34);
}

.vc-glass-dark {
    background: linear-gradient(145deg, rgba(15,23,42,.92), rgba(2,6,23,.98));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 22px 52px rgba(2,6,23,.34);
}

.vc-kpi {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.vc-kpi::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -46px;
    top: -50px;
    border-radius: 999px;
    background: var(--kpi-glow, rgba(52,211,153,.14));
    z-index: -1;
}

.vc-btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.vc-btn:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.03);
}

.vc-btn:active {
    transform: translateY(0) scale(.985);
}

.vc-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transition: transform .55s ease;
}

.vc-btn:hover::after {
    transform: translateX(120%) skewX(-20deg);
}

.vc-chip {
    border-radius: 999px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,.88);
    box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

.vc-chart-box {
    height: 230px;
    position: relative;
}

.vc-chart-box-sm {
    height: 190px;
    position: relative;
}

.vc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.64);
    backdrop-filter: blur(10px);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.vc-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.vc-modal {
    position: fixed;
    left: 50%;
    bottom: 18px;
    width: min(92vw, 420px);
    transform: translateX(-50%) translateY(30px) scale(.96);
    background: #fff;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 2rem;
    box-shadow: 0 34px 90px rgba(2,6,23,.38);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: transform .24s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}

.vc-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.vc-fade-up {
    animation: vcFadeUp .45s ease both;
}

.vc-fade-up-delay-1 { animation: vcFadeUp .48s ease .04s both; }
.vc-fade-up-delay-2 { animation: vcFadeUp .50s ease .08s both; }
.vc-fade-up-delay-3 { animation: vcFadeUp .52s ease .12s both; }

@keyframes vcFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.vc-pulse-dot {
    position: relative;
}

.vc-pulse-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    border: 2px solid rgba(52,211,153,.35);
    animation: vcPulse 1.6s infinite;
}

@keyframes vcPulse {
    0% { transform: scale(.7); opacity: .9; }
    100% { transform: scale(1.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (min-width: 1024px) {
    .vc-shell {
        display: grid;
        grid-template-columns: 292px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
        padding: 24px;
    }

    .vc-sidebar {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: sticky;
        top: 24px;
        align-self: start;
        min-height: calc(100vh - 48px);
        border-radius: 28px;
        padding: 16px;
        background: linear-gradient(145deg, rgba(2,6,23,.98), rgba(15,23,42,.96));
        box-shadow: 0 28px 60px rgba(2,6,23,.22);
    }

    .vc-main {
        border-radius: 32px;
        overflow: hidden;
    }

    .vc-mobile-bottom-nav {
        display: none !important;
    }
}
