/*!
 * 9wickets Pro — Homepage v2 additions
 * Four new components inspired by veelki.live, redesigned:
 *   1. .nw-ticker      — sticky date-ticker top bar
 *   2. .nw-hero        — slider conversion (extends existing .nw-hero)
 *   3. .nw-games       — game categories strip with sub-tab filter
 *   4. .nw-tabs        — tabbed Agents | Help | Downloads panel
 *
 * Loaded AFTER nine-wickets-home.css so it can override hero styles.
 * Uses --vk-* tokens from nine-wickets-brand.css.
 */

/* ============================================================
   1. DATE-TICKER TOP BAR
   ============================================================ */
.nw-ticker {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px clamp(12px, 2.5vw, 28px);
    background:
        linear-gradient(90deg, rgba(211, 32, 48, 0.18) 0%, rgba(10, 11, 16, 0.95) 25%, rgba(10, 11, 16, 0.95) 75%, rgba(245, 177, 0, 0.12) 100%),
        var(--vk-bg-dark, #06070C);
    border-bottom: 1px solid rgba(245, 177, 0, 0.18);
    font-family: var(--vk-font-bn, "Hind Siliguri", sans-serif);
    font-size: 13px;
    color: var(--vk-text, #F2F0EA);
    min-height: 38px;
}
.nw-ticker::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 200% at 50% -80%, rgba(245, 177, 0, 0.10) 0%, transparent 60%);
    pointer-events: none;
}
.nw-ticker__date {
    display: inline-flex; align-items: center; gap: 8px;
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 1px solid rgba(245, 177, 0, 0.18);
    color: var(--vk-gold, #F5B100);
    font-weight: 700;
    letter-spacing: 0.01em;
}
.nw-ticker__live {
    display: inline-flex; align-items: center; gap: 6px;
    color: #FFD66B;
}
.nw-ticker__live::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 999px;
    background: #FF3B47;
    box-shadow: 0 0 0 0 rgba(255, 59, 71, 0.7);
    animation: nw-ticker-pulse 1.6s infinite;
}
@keyframes nw-ticker-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0.7); }
    50%     { box-shadow: 0 0 0 8px rgba(255, 59, 71, 0); }
}

.nw-ticker__stream {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.nw-ticker__track {
    display: inline-flex;
    gap: 36px;
    white-space: nowrap;
    animation: nw-ticker-scroll 48s linear infinite;
    padding-right: 36px;
}
.nw-ticker:hover .nw-ticker__track { animation-play-state: paused; }
.nw-ticker__item {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--vk-text-mid, #B6B0A2);
}
.nw-ticker__item b {
    color: var(--vk-gold, #F5B100);
    font-weight: 700;
}
.nw-ticker__item svg {
    width: 13px; height: 13px;
    color: var(--vk-gold, #F5B100);
    flex-shrink: 0;
}
@keyframes nw-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.nw-ticker__quick {
    display: inline-flex; gap: 8px;
    flex-shrink: 0;
}
.nw-ticker__quick a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 177, 0, 0.18);
    color: var(--vk-gold, #F5B100);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nw-ticker__quick a:hover {
    background: rgba(245, 177, 0, 0.16);
    border-color: rgba(245, 177, 0, 0.45);
    transform: translateY(-1px);
}
.nw-ticker__quick svg { width: 14px; height: 14px; }

.nw-ticker__close {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--vk-text-mid, #B6B0A2);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: color .2s ease;
}
.nw-ticker__close:hover { color: var(--vk-gold, #F5B100); }

.nw-ticker[hidden] { display: none; }

@media (max-width: 720px) {
    .nw-ticker { font-size: 12px; gap: 10px; padding: 6px 12px; }
    .nw-ticker__date { padding-right: 10px; }
    .nw-ticker__date small { display: none; }
    .nw-ticker__quick a { width: 24px; height: 24px; }
}
@media (max-width: 520px) {
    .nw-ticker__quick { display: none; }
}

/* ============================================================
   2. HERO SLIDER (extends existing .nw-hero)
   ============================================================ */
body.vk .nw-hero { overflow: hidden; }

.nw-hero__slider {
    position: relative;
    width: 100%;
}
.nw-hero__slides {
    position: relative;
}
.nw-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .55s ease, transform .55s ease, visibility 0s .55s;
    pointer-events: none;
}
.nw-hero__slide:first-child { position: relative; }
.nw-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .55s ease, transform .55s ease, visibility 0s 0s;
    pointer-events: auto;
}

/* Slide 2 (bonus) — promo styling */
.nw-hero__slide--bonus .nw-hero__copy { max-width: 640px; }
.nw-hero__bonus-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(245, 181, 0, 0.22), rgba(245, 181, 0, 0.08));
    border: 1px solid rgba(245, 181, 0, 0.45);
    color: #ffd966;
    font-family: "Hind Siliguri", var(--vk-font-bn, system-ui), sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow:
        0 6px 18px -8px rgba(245, 181, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nw-hero__bonus-tag::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 230, 163, 0.22) 50%, transparent 75%);
    transform: translateX(-110%);
    animation: vkBonusSheen 3.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes vkBonusSheen {
    0%   { transform: translateX(-110%); }
    55%  { transform: translateX(110%); }
    100% { transform: translateX(110%); }
}
.nw-hero__bonus-tag > svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #ffd34d;
    filter: drop-shadow(0 0 4px rgba(255, 211, 77, 0.65));
    position: relative;
    z-index: 1;
}
.nw-hero__bonus-tag > span {
    position: relative;
    z-index: 1;
}
.nw-hero__bonus-amount {
    font-family: var(--vk-font-en, system-ui);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    line-height: 0.95;
    background: var(--vk-grad-text, linear-gradient(95deg, #FFE6A3, #F5B100, #FFD66B, #E29F00));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.nw-hero__bonus-line {
    font-family: var(--vk-font-bn, sans-serif);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    color: var(--vk-text, #F2F0EA);
    margin: 0 0 18px;
}
.nw-hero__bonus-line em {
    font-style: normal;
    color: var(--vk-gold, #F5B100);
}

/* Slide 3 (live cricket) */
.nw-hero__match {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 177, 0, 0.20);
    border-radius: 18px;
    margin: 22px 0;
    max-width: 580px;
}
.nw-hero__match-team {
    flex: 1;
    text-align: center;
}
.nw-hero__match-flag {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245,177,0,0.25), rgba(211,32,48,0.20));
    margin: 0 auto 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--vk-font-en, sans-serif);
    font-weight: 900;
    font-size: 18px;
    color: var(--vk-gold, #F5B100);
    border: 1px solid rgba(245, 177, 0, 0.35);
}
.nw-hero__match-name {
    font-size: 13px;
    color: var(--vk-text, #F2F0EA);
    font-weight: 600;
    margin: 0;
}
.nw-hero__match-vs {
    font-family: var(--vk-font-en, sans-serif);
    font-size: 22px;
    font-weight: 900;
    color: var(--vk-gold, #F5B100);
    letter-spacing: 0.1em;
}
.nw-hero__match-time {
    font-size: 11px;
    color: var(--vk-text-mid, #B6B0A2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
}

/* Slider controls — flow-positioned sibling below the slides; cannot overlap copy/CTA */
.nw-hero__slider { padding-bottom: 0; }
.nw-hero__nav {
    position: static;
    margin: 18px auto 4px;
    transform: none;
    width: max-content;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 5;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(10, 11, 16, 0.55), rgba(10, 11, 16, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.6);
}
.nw-hero__dots {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0; padding: 0;
}
.nw-hero__dot {
    appearance: none;
    width: 28px; height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 177, 0, 0.22);
    cursor: pointer;
    padding: 0;
    transition: background .25s ease, width .25s ease;
    position: relative;
    overflow: hidden;
}
.nw-hero__dot.is-active {
    width: 48px;
    background: rgba(245, 177, 0, 0.30);
}
.nw-hero__dot.is-active::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--vk-grad-gold, linear-gradient(135deg, #FFD66B, #F5B100, #C98800));
    transform-origin: left center;
    animation: nw-hero-progress var(--nw-slider-interval, 6s) linear forwards;
}
@keyframes nw-hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nw-hero__slider.is-paused .nw-hero__dot.is-active::after { animation-play-state: paused; }

.nw-hero__arrow {
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 177, 0, 0.30);
    color: var(--vk-gold, #F5B100);
    width: 36px; height: 36px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.nw-hero__arrow:hover {
    background: rgba(245, 177, 0, 0.15);
    border-color: rgba(245, 177, 0, 0.55);
    transform: scale(1.06);
}
.nw-hero__arrow svg { width: 16px; height: 16px; }
.nw-hero__arrow:focus-visible {
    outline: 2px solid var(--vk-gold, #F5B100);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .nw-hero__match { padding: 16px 14px; gap: 12px; }
    .nw-hero__match-flag { width: 40px; height: 40px; font-size: 14px; }
    .nw-hero__nav { gap: 10px; margin: 14px auto 2px; }
    .nw-hero__arrow { width: 32px; height: 32px; }
}

/* ============================================================
   2b. BANNER IMAGE SLIDER (real veelki banners)
   ============================================================ */
.nw-banners {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(20px, 2.5vw, 32px) clamp(16px, 4vw, 56px) 0;
}
.nw-banners__track {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(245, 177, 0, 0.20);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.05) inset;
    aspect-ratio: 750 / 120;
    background: #0A0B10;
}
.nw-banners__slide {
    position: absolute; inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s .5s;
}
.nw-banners__slide.is-active {
    opacity: 1; visibility: visible;
    transition: opacity .5s ease, visibility 0s 0s;
}
.nw-banners__slide a, .nw-banners__slide img { display: block; width: 100%; height: 100%; }
.nw-banners__slide img { object-fit: cover; }

.nw-banners__nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    left: clamp(20px, 5vw, 60px);
    right: clamp(20px, 5vw, 60px);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.nw-banners__arrow {
    pointer-events: auto;
    appearance: none;
    width: 40px; height: 40px;
    border-radius: 999px;
    background: rgba(10, 11, 16, 0.65);
    border: 1px solid rgba(245, 177, 0, 0.35);
    color: var(--vk-gold, #F5B100);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.nw-banners__arrow:hover {
    background: rgba(245, 177, 0, 0.95);
    border-color: rgba(245, 177, 0, 1);
    color: #0A0500;
    transform: scale(1.06);
}
.nw-banners__arrow svg { width: 16px; height: 16px; }

.nw-banners__dots {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
}
.nw-banners__dot {
    appearance: none;
    width: 10px; height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.30);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, width .2s ease;
}
.nw-banners__dot.is-active {
    width: 28px;
    background: var(--vk-grad-gold, linear-gradient(135deg, #FFD66B, #F5B100, #C98800));
}

@media (max-width: 720px) {
    .nw-banners__track { aspect-ratio: 5/2; }
    .nw-banners__arrow { width: 34px; height: 34px; }
    .nw-banners__nav { left: 10px; right: 10px; }
}

/* ============================================================
   3a. VELKI ICON NAV (large category icons row)
   ============================================================ */
.nw-vnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.nw-vnav__item {
    appearance: none;
    background: linear-gradient(180deg, rgba(245, 177, 0, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(245, 177, 0, 0.18);
    border-radius: 14px;
    padding: 14px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nw-vnav__item:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 177, 0, 0.45);
    background: linear-gradient(180deg, rgba(245, 177, 0, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
}
.nw-vnav__item.is-active {
    border-color: rgba(245, 177, 0, 0.55);
    background: linear-gradient(180deg, rgba(245, 177, 0, 0.18) 0%, rgba(211, 32, 48, 0.10) 100%);
    box-shadow: 0 8px 24px rgba(245, 177, 0, 0.22), 0 0 0 1px rgba(245, 177, 0, 0.35) inset;
}
.nw-vnav__icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.nw-vnav__icon img { width: 100%; height: 100%; object-fit: contain; }
.nw-vnav__label {
    font-family: var(--vk-font-bn, sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--vk-text, #F2F0EA);
    text-align: center;
    line-height: 1.2;
}
.nw-vnav__sub {
    font-family: var(--vk-font-en, sans-serif);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vk-text-mid, #B6B0A2);
}
@media (max-width: 720px) {
    .nw-vnav { gap: 6px; }
    .nw-vnav__item { padding: 10px 6px 8px; }
    .nw-vnav__icon { width: 36px; height: 36px; }
    .nw-vnav__label { font-size: 11px; }
    .nw-vnav__sub { display: none; }
}

/* ============================================================
   3b. PROMO BANNER (inside games section)
   ============================================================ */
.nw-promo {
    margin: 18px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(245, 177, 0, 0.20);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    display: block;
    position: relative;
    aspect-ratio: 750 / 120;
    background: linear-gradient(135deg, #0F1015, #1A1B22);
}
.nw-promo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nw-promo:hover { border-color: rgba(245, 177, 0, 0.40); }
@media (max-width: 720px) {
    .nw-promo { aspect-ratio: 5/2; }
}

/* ============================================================
   3c. LIVE ODDS TABLE
   ============================================================ */
.nw-odds {
    margin-top: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(245, 177, 0, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.40);
}
.nw-odds__head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    background: rgba(10, 11, 16, 0.55);
    border-bottom: 1px solid rgba(245, 177, 0, 0.18);
    color: var(--vk-gold, #F5B100);
    font-family: var(--vk-font-en, sans-serif);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.nw-odds__head::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #FF3B47;
    box-shadow: 0 0 12px rgba(255,59,71,0.7);
    animation: nw-ticker-pulse 1.6s infinite;
}
.nw-odds__table {
    width: 100%;
    border-collapse: collapse;
    color: var(--vk-text, #F2F0EA);
    font-family: var(--vk-font-en, sans-serif);
    font-size: 13px;
}
.nw-odds__table thead tr {
    background: rgba(0, 0, 0, 0.45);
    color: var(--vk-text-mid, #B6B0A2);
    font-size: 10.5px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.nw-odds__table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid rgba(245, 177, 0, 0.12);
}
.nw-odds__table th:nth-child(3),
.nw-odds__table th:nth-child(4) { text-align: center; width: 84px; }
.nw-odds__table th:nth-child(3) { background: linear-gradient(135deg, #1E4D80, #0F3A66); color: #fff; }
.nw-odds__table th:nth-child(4) { background: linear-gradient(135deg, #B83A52, #8D2A3F); color: #fff; }

.nw-odds__table tbody tr { border-top: 1px solid rgba(255, 255, 255, 0.04); transition: background .15s ease; }
.nw-odds__table tbody tr:hover { background: rgba(245, 177, 0, 0.04); }
.nw-odds__table td { padding: 12px 14px; vertical-align: middle; }
.nw-odds__match { font-weight: 700; color: var(--vk-text, #F2F0EA); margin: 0; font-size: 13.5px; }
.nw-odds__league { margin: 2px 0 0; font-size: 11px; color: var(--vk-gold, #F5B100); opacity: 0.85; }
.nw-odds__market { font-size: 12px; color: var(--vk-text-mid, #B6B0A2); }

.nw-odds__back, .nw-odds__lay {
    text-align: center;
    font-family: var(--vk-font-en, sans-serif);
    font-weight: 800;
    font-size: 14px;
    color: #0A0500;
    transition: filter .15s ease, transform .1s ease;
    cursor: pointer;
}
.nw-odds__back { background: #72BBEF; }
.nw-odds__lay  { background: #FAA9BA; }
.nw-odds__back:hover, .nw-odds__lay:hover { filter: brightness(1.06); }
.nw-odds__back:active, .nw-odds__lay:active { transform: scale(0.97); }

.nw-odds__sport-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: rgba(245, 177, 0, 0.14);
    border: 1px solid rgba(245, 177, 0, 0.25);
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--vk-gold, #F5B100);
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .nw-odds__table th, .nw-odds__table td { padding: 10px 8px; font-size: 12px; }
    .nw-odds__match { font-size: 12.5px; }
    .nw-odds__league { font-size: 10.5px; }
    .nw-odds__market { display: none; }
    .nw-odds__table th:nth-child(2), .nw-odds__table td:nth-child(2) { display: none; }
}

/* ============================================================
   3. GAME CATEGORIES STRIP
   ============================================================ */
.nw-games {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(28px, 3vw, 44px) clamp(16px, 4vw, 56px) clamp(20px, 2.5vw, 36px);
}
.nw-games__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}
.nw-games__title {
    margin: 0;
    font-family: var(--vk-font-bn, sans-serif);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--vk-text, #F2F0EA);
}
.nw-games__title em {
    font-style: normal;
    background: var(--vk-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nw-games__subtabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 177, 0, 0.16);
    border-radius: 999px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}
.nw-games__subtabs::-webkit-scrollbar { display: none; }
.nw-games__subtab {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--vk-text-mid, #B6B0A2);
    font-family: var(--vk-font-en, sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.nw-games__subtab:hover { color: var(--vk-text, #F2F0EA); }
.nw-games__subtab.is-active {
    background: var(--vk-grad-gold, linear-gradient(135deg, #FFD66B, #F5B100, #C98800));
    color: #0A0500;
    box-shadow: 0 6px 16px rgba(245, 177, 0, 0.25);
}

.nw-games__panels { position: relative; }
.nw-games__panel { display: none; animation: nw-games-in .35s ease; }
.nw-games__panel.is-active { display: block; }
@keyframes nw-games-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.nw-games__grid {
    display: grid;
    grid-template-columns: repeat(var(--n, 5), 1fr);
    gap: 14px;
}
.nw-games__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 18px 18px;
    background:
        linear-gradient(180deg, rgba(245, 177, 0, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(245, 177, 0, 0.16);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nw-games__card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: var(--vk-grad-gold, linear-gradient(135deg, #FFD66B, #F5B100, #C98800));
    border-radius: inherit;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: -1;
}
.nw-games__card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 177, 0, 0.45);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
}
.nw-games__card-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(245, 177, 0, 0.20), rgba(211, 32, 48, 0.12));
    border: 1px solid rgba(245, 177, 0, 0.30);
    color: var(--vk-gold, #F5B100);
}
.nw-games__card-icon svg { width: 28px; height: 28px; }
.nw-games__card-title {
    margin: 0;
    font-family: var(--vk-font-bn, sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--vk-text, #F2F0EA);
    line-height: 1.25;
}
.nw-games__card-sub {
    margin: 0;
    font-family: var(--vk-font-en, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vk-text-mid, #B6B0A2);
}
.nw-games__card-foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed rgba(245, 177, 0, 0.16);
}
.nw-games__card-count {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px;
    color: var(--vk-text-mid, #B6B0A2);
}
.nw-games__card-count::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 999px;
    background: #7FB069;
    box-shadow: 0 0 8px rgba(127, 176, 105, 0.7);
}
.nw-games__card-arrow {
    width: 24px; height: 24px;
    border-radius: 999px;
    background: rgba(245, 177, 0, 0.12);
    border: 1px solid rgba(245, 177, 0, 0.28);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--vk-gold, #F5B100);
    transition: background .2s ease, transform .2s ease;
}
.nw-games__card:hover .nw-games__card-arrow {
    background: var(--vk-grad-gold, linear-gradient(135deg, #FFD66B, #F5B100, #C98800));
    color: #0A0500;
    transform: translateX(2px);
}
.nw-games__card-arrow svg { width: 12px; height: 12px; }

@media (max-width: 1100px) {
    .nw-games__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .nw-games__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nw-games__card { padding: 16px 14px 14px; gap: 10px; }
    .nw-games__card-icon { width: 44px; height: 44px; }
    .nw-games__card-icon svg { width: 24px; height: 24px; }
    .nw-games__card-title { font-size: 14px; }
}

/* ============================================================
   4. TABBED AGENT / HELP / DOWNLOADS PANEL
   ============================================================ */
.nw-tabs__head {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.nw-tabs__nav {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 177, 0, 0.18);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45) inset;
}
.nw-tabs__tab {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 10px 22px;
    border-radius: 999px;
    color: var(--vk-text-mid, #B6B0A2);
    font-family: var(--vk-font-en, sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}
.nw-tabs__tab svg { width: 14px; height: 14px; }
.nw-tabs__tab:hover { color: var(--vk-text, #F2F0EA); }
.nw-tabs__tab[aria-selected="true"] {
    background: var(--vk-grad-gold, linear-gradient(135deg, #FFD66B, #F5B100, #C98800));
    color: #0A0500;
    box-shadow: 0 6px 18px rgba(245, 177, 0, 0.28);
}
.nw-tabs__tab[aria-selected="true"] svg { color: #0A0500; }

.nw-tabs__panel {
    display: none;
    animation: nw-tabs-in .35s ease;
}
.nw-tabs__panel.is-active { display: block; }
@keyframes nw-tabs-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Help Center grid */
.nw-help__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.nw-help__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(245, 177, 0, 0.16);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nw-help__card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 177, 0, 0.42);
    background: rgba(245, 177, 0, 0.04);
}
.nw-help__card-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 177, 0, 0.18), rgba(211, 32, 48, 0.10));
    border: 1px solid rgba(245, 177, 0, 0.30);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--vk-gold, #F5B100);
}
.nw-help__card-icon svg { width: 22px; height: 22px; }
.nw-help__card-body { flex: 1; min-width: 0; }
.nw-help__card-title {
    margin: 0 0 4px;
    font-family: var(--vk-font-bn, sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--vk-text, #F2F0EA);
}
.nw-help__card-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--vk-text-mid, #B6B0A2);
}

@media (max-width: 1024px) {
    .nw-help__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .nw-help__grid { grid-template-columns: 1fr; }
}

/* Downloads tab */
.nw-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}
.nw-downloads__card {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(245, 177, 0, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(245, 177, 0, 0.22);
    border-radius: 18px;
    text-align: center;
}
.nw-downloads__icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 177, 0, 0.22), rgba(211, 32, 48, 0.12));
    border: 1px solid rgba(245, 177, 0, 0.35);
    display: flex; align-items: center; justify-content: center;
    color: var(--vk-gold, #F5B100);
}
.nw-downloads__icon svg { width: 32px; height: 32px; }
.nw-downloads__title {
    margin: 0 0 4px;
    font-family: var(--vk-font-bn, sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--vk-text, #F2F0EA);
}
.nw-downloads__meta {
    margin: 0 0 18px;
    font-size: 12px;
    color: var(--vk-text-mid, #B6B0A2);
    letter-spacing: 0.04em;
}
.nw-downloads__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    background: var(--vk-grad-gold, linear-gradient(135deg, #FFD66B, #F5B100, #C98800));
    color: #0A0500;
    border-radius: 999px;
    font-family: var(--vk-font-en, sans-serif);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nw-downloads__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 177, 0, 0.32);
}
.nw-downloads__btn svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
    .nw-downloads { grid-template-columns: 1fr; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .nw-ticker__track { animation: none; }
    .nw-hero__slide { transition: none; }
    .nw-hero__dot.is-active::after { animation: none; transform: scaleX(1); }
    .nw-ticker__live::before { animation: none; }
}
