@keyframes nkv-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.82; }
}

@keyframes nkv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

@keyframes nkv-sheen {
    0% { transform: translateX(-120%) rotate(15deg); opacity: 0; }
    30% { opacity: .6; }
    100% { transform: translateX(120%) rotate(15deg); opacity: 0; }
}

@keyframes nkv-pop-in {
    0% { transform: translateY(12px) scale(.96); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes nkv-coin-burst {
    0% { transform: translate(-50%, -50%) scale(.45); opacity: 0; }
    16% { opacity: 1; }
    100% {
        transform: translate(calc(-50% + var(--nkv-x)), calc(-50% + var(--nkv-y))) scale(.92) rotate(var(--nkv-r));
        opacity: 0;
    }
}

.nkv-wallet-shell {
    --nkv-tier-color: #888888;
    font-family: inherit;
    max-width: 760px;
}

.nkv-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.nkv-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.42), rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, rgba(255,255,255,.22));
    transform: translateX(-120%) rotate(15deg);
    animation: nkv-sheen 9s linear infinite;
}

.nkv-hero {
    background: linear-gradient(135deg, rgba(251,186,0,.16), rgba(255,140,0,.07));
    border: 1px solid rgba(251,186,0,.24);
}

.nkv-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: stretch;
}

.nkv-coin-wrap {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.nkv-coin-svg {
    width: 88px;
    height: 88px;
    display: block;
}

.nkv-coin-float {
    animation: nkv-float 2.1s ease-in-out infinite;
    transform-origin: center;
}

.nkv-zero-pulse { animation: nkv-pulse 1.8s ease-in-out infinite; }

.nkv-shimmer-text {
    background: linear-gradient(90deg, #fbba00 25%, #fff6cc 50%, #fbba00 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nkv-shimmer 2.3s linear infinite;
}

.nkv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nkv-tier-color);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
}

.nkv-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nkv-metric { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 14px; padding: 12px 14px; }
.nkv-metric .label, .nkv-stat .label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .08em; }
.nkv-metric .value { font-size: 18px; font-weight: 900; color: #0f172a; margin-top: 4px; }

.nkv-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nkv-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ececec;
    color: #475569;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.nkv-progress-list, .nkv-missing-grid { display: grid; gap: 9px; }
.nkv-progress-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #edf2f7;
}
.nkv-progress-item .mark { width: 18px; text-align: center; flex: 0 0 18px; }

.nkv-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 14px;
}

.nkv-missing-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffdf4;
    border: 1px solid #f5e8b0;
    border-radius: 14px;
    padding: 12px 14px;
}

.nkv-missing-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex: 0 0 34px;
    box-shadow: 0 6px 14px rgba(0,0,0,.05);
    font-size: 18px;
}

.nkv-missing-title { font-size: 13px; font-weight: 800; color: #0f172a; }
.nkv-missing-desc { font-size: 12px; color: #64748b; margin-top: 3px; line-height: 1.4; }
.nkv-hero-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nkv-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.nkv-stat { background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; padding: 12px 14px; }
.nkv-stat .value { font-size: 17px; font-weight: 900; color: #0f172a; margin-top: 4px; }

.nkv-helpable {
    cursor: help;
    position: relative;
}

.nkv-helpable:focus-visible {
    outline: 2px solid #fbba00;
    outline-offset: 3px;
}

.nkv-helpable::after {
    content: "?";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, .08);
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: scale(.88);
    transition: opacity .16s ease, transform .16s ease, background .16s ease;
    pointer-events: none;
}

.nkv-helpable:hover::after,
.nkv-helpable:focus-visible::after,
.nkv-helpable.is-help-open::after {
    opacity: 1;
    transform: scale(1);
    background: #fbba00;
    color: #111827;
}

.nkv-badge.nkv-helpable::after,
.nkv-pill.nkv-helpable::after {
    top: -7px;
    right: -7px;
}

.nkv-help-popover {
    position: fixed;
    z-index: 100000;
    width: min(320px, calc(100vw - 28px));
    padding: 14px 15px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
    animation: nkv-pop-in .16s ease-out both;
    pointer-events: none;
}

.nkv-help-popover__title {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 5px;
}

.nkv-help-popover__body {
    font-size: 12px;
    line-height: 1.45;
    color: #dbeafe;
}

.nkv-help-popover__hint {
    margin-top: 8px;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.nkv-reward-toast {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(360px, calc(100vw - 36px));
    padding: 14px 16px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .25);
    animation: nkv-pop-in .22s ease-out both;
}

.nkv-reward-toast.is-leaving {
    opacity: 0;
    transform: translateY(12px) scale(.96);
    transition: opacity .22s ease, transform .22s ease;
}

.nkv-reward-toast__coin {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fbba00;
    color: #111827;
    font-weight: 900;
    flex: 0 0 38px;
}

.nkv-reward-toast__title { font-weight: 900; font-size: 14px; line-height: 1.25; }
.nkv-reward-toast__meta { color: #cbd5e1; font-size: 12px; margin-top: 2px; }

.nkv-burst-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99998;
}

.nkv-burst-coin {
    position: absolute;
    left: var(--nkv-origin-x);
    top: var(--nkv-origin-y);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 25%, #fff8cf 0 16%, #ffd86b 38%, #fbba00 70%, #9a6b00 100%);
    border: 1px solid #8d5f00;
    box-shadow: 0 5px 12px rgba(0,0,0,.16);
    animation: nkv-coin-burst 900ms cubic-bezier(.2, .9, .2, 1) forwards;
}

@media (max-width: 760px) {
    .nkv-hero-grid, .nkv-stat-strip, .nkv-metric-grid { grid-template-columns: 1fr; }
    .nkv-coin-wrap, .nkv-coin-svg { width: 76px; height: 76px; }
    .nkv-reward-toast { left: 14px; right: 14px; bottom: 16px; }
    .nkv-help-popover {
        left: 14px !important;
        right: 14px;
        bottom: 16px;
        top: auto !important;
        width: auto;
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nkv-card::before, .nkv-coin-float, .nkv-zero-pulse, .nkv-shimmer-text, .nkv-burst-coin {
        animation: none !important;
    }
}
