/* ==========================================================================
   1wincasino.co.in — Unified Dark-Navy Design System & Mobile Polish (v2.0)
   Restores authentic 1win India dark-navy aesthetic, fixes menu/dropdowns,
   eliminates parent theme bleed, and hardens mobile (360px–1200px) UX.
   ========================================================================== */

:root {
    --bgr-color: #0e1320;
    --bg-color: #0e1320;
    --surface-1: #151d30;
    --surface-2: #1c2740;
    --surface-border: rgba(255, 255, 255, 0.10);
    --surface-border-strong: rgba(255, 255, 255, 0.18);

    --accent-color: #0275ff;
    --accent-hover: #268aff;
    --accent-glow: rgba(2, 117, 255, 0.34);
    --cta-green: #16a34a;
    --cta-green-hover: #22c55e;

    --primary-text-color: #f1f5f9;
    --body-text: #cbd5e1;
    --muted-text: #94a3b8;

    --color-light: rgba(255, 255, 255, 0.06);
    --color-table: #182542;
    --footer-color: #0b101b;

    --link-color: #60a5fa;
    --link-color-hover: #93c5fd;

    --font-family: "Helvetica", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size: 16px;
    --line-height: 1.65;
    --content-width: 1200px;
    --border-radius: 10px;
}

/* Base & Browser Surfaces */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background-color: var(--bgr-color);
    color-scheme: dark;
    overflow-x: clip;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #141f38 0%, #0e1320 420px, #0e1320 100%) !important;
    background-color: var(--bgr-color) !important;
    color: var(--body-text) !important;
    font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body::before {
    background: radial-gradient(ellipse at top center, rgba(2, 117, 255, 0.14), transparent 65%);
    pointer-events: none;
}

::selection {
    background: rgba(2, 117, 255, 0.35);
    color: #ffffff;
}

a {
    color: var(--link-color);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
    color: var(--link-color-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION (DESKTOP + MOBILE DRAWER)
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 19, 32, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--surface-border);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.header.headroom--not-top {
    background: rgba(11, 16, 27, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.header .container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 20px;
}

.header .logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header .logo__img {
    display: block;
    width: auto;
    height: 30px;
    object-fit: contain;
}

.header__nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.header__nav-top,
.header__nav-buttons {
    display: none;
}

.header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.header__menu > li {
    position: relative;
    border: none;
    border-radius: 8px;
    margin: 0;
}

.header__menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.header__menu > li:hover > a,
.header__menu > li.is-open > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.header__menu > li.current-menu-item > a,
.header__menu > li.current-menu-ancestor > a {
    color: #ffffff;
    background: rgba(2, 117, 255, 0.18);
    border-color: rgba(2, 117, 255, 0.50);
}

/* Remove old ugly white box from header.css */
.header__menu .current-menu-item,
.header__menu li:hover {
    border-color: transparent;
}

/* Submenu chevron */
.header__menu > .menu-item-has-children .sub-menu__expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin-left: 2px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.header__menu > .menu-item-has-children .sub-menu__expand::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5px solid currentColor;
}

.header__menu > .menu-item-has-children:hover .sub-menu__expand,
.header__menu > .menu-item-has-children.is-open .sub-menu__expand {
    color: #ffffff;
    transform: rotate(180deg);
}

/* Elevated Desktop Dropdown Panel */
.header__menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #141d31;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.62);
    z-index: 150;
}

/* Invisible hover bridge so cursor moving from link to dropdown never drops hover */
.header__menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

@media (min-width: 1201px) {
    .header__menu .menu-item-has-children:hover > .sub-menu,
    .header__menu .menu-item-has-children:focus-within > .sub-menu,
    .header__menu .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    /* 2-column sleek grid for tall Games dropdown (Aviator) */
    .header__menu .menu-item-has-children:hover > .sub-menu.sub-menu--grid,
    .header__menu .menu-item-has-children:focus-within > .sub-menu.sub-menu--grid,
    .header__menu .menu-item-has-children.is-open > .sub-menu.sub-menu--grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(148px, 1fr));
        gap: 4px;
        min-width: 320px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.header__menu .sub-menu li {
    border: none;
    margin: 0;
}

.header__menu .sub-menu li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    background: transparent !important;
    color: #e2e8f0 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.header__menu .sub-menu li a:hover,
.header__menu .sub-menu li.current-menu-item > a {
    background: rgba(2, 117, 255, 0.22) !important;
    color: #ffffff !important;
}

/* Header CTA Buttons */
.header__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

/* Primary CTA (Login in header / Claim in hero & bonus) */
.header .btn--primary {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.09) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.header .btn--primary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
    color: #ffffff !important;
}

/* Secondary CTA (Register button — Electric 1win Blue) */
.btn--secondary {
    background: linear-gradient(135deg, #0a84ff 0%, #0265e0 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(2, 117, 255, 0.34) !important;
}

.btn--secondary:hover {
    background: linear-gradient(135deg, #2193ff 0%, #0973f5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 26px rgba(2, 117, 255, 0.48) !important;
    transform: translateY(-1px);
}

.btn--secondary svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Hero & Main CTA buttons */
main .btn--primary,
.hero .btn--primary,
.hero .btn--secondary,
.bonus .btn--primary,
.subscribe__form .btn--primary {
    background: linear-gradient(135deg, #0a84ff 0%, #0265e0 100%) !important;
    color: #ffffff !important;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(2, 117, 255, 0.34) !important;
}

main .btn--primary:hover,
.hero .btn--primary:hover,
.bonus .btn--primary:hover,
.subscribe__form .btn--primary:hover {
    background: linear-gradient(135deg, #2193ff 0%, #0973f5 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Mobile Burger & Slide-in Drawer (<= 1200px) */
.burger {
    display: none;
}

.burger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
}

.burger-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.burger__overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 18, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 190;
}

.burger__overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media screen and (max-width: 1200px) {
    .burger {
        display: flex;
        align-items: center;
    }

    .header .container {
        padding: 10px 16px;
        gap: 12px;
    }

    .header__buttons {
        margin-left: auto;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 86vw);
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: #101728;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.6);
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 200;
        padding-bottom: 32px;
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header__nav-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #ffffff;
        cursor: pointer;
    }

    .header__nav-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header__nav-buttons .btn {
        width: 100%;
        padding: 11px 12px;
        font-size: 14px;
    }

    .header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 12px;
    }

    .header__menu > li {
        border-radius: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .header__menu > li > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 13px 12px;
        font-size: 15px;
        white-space: normal;
    }

    .header__menu > .menu-item-has-children .sub-menu__expand {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        color: #cbd5e1;
        margin-left: auto;
    }

    .header__menu .sub-menu {
        position: static;
        min-width: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.24);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        padding: 4px 0 8px 0;
        margin-bottom: 6px;
        transform: none;
    }

    .header__menu .sub-menu::before {
        display: none;
    }

    .header__menu .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .header__menu .sub-menu li a {
        padding: 10px 16px 10px 26px;
        font-size: 14px;
        color: #cbd5e1 !important;
    }
}

@media screen and (max-width: 576px) {
    .header .logo__img {
        height: 25px;
    }
    .header__buttons .btn--primary {
        display: none;
    }
    .header__buttons .btn--secondary {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs_list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 0 6px 0;
    list-style: none;
}

.breadcrumbs__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-text);
}

.breadcrumbs__link:not(.last):hover {
    color: #ffffff;
}

.breadcrumbs__link.last {
    color: var(--link-color);
}

/* ==========================================================================
   HERO SECTION (DESKTOP & CLEAN IN-FLOW MOBILE)
   ========================================================================== */

.hero {
    padding: 14px 20px 10px 20px;
    margin: 0;
}

.hero > .container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 28px;
    padding: clamp(24px, 3.5vw, 48px);
    background: linear-gradient(135deg, #16233e 0%, #101729 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero__content {
    padding: 0 !important;
    min-width: 0;
}

.hero__title,
.hero h1 {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: clamp(26px, 3.2vw, 40px) !important;
    line-height: 1.16 !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero__description,
.hero__content p {
    margin: 0 0 22px 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
}

.hero__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
}

.hero__bottom-title {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
}

.hero__bottom-sub-title {
    color: #ffffff;
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 800;
    line-height: 1.25;
    display: block;
}

.hero__image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero__image img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 960px) {
    .hero > .container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }

    .hero__image {
        display: flex !important;
        order: 2;
    }

    .hero__image img {
        max-width: 420px;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        padding: 10px 14px 8px 14px;
        margin-bottom: 12px !important;
    }

    .hero > .container {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .hero__bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 14px 16px;
    }

    /* Kill broken absolute positioning hack from legacy hero.css */
    .hero__bottom a,
    .hero__bottom .btn {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        min-height: 48px;
    }
}

/* ==========================================================================
   MAIN CONTENT TYPOGRAPHY, LISTS, IMAGES & TABLES
   ========================================================================== */

main.content {
    flex: 1;
    padding-bottom: 40px;
}

section,
article {
    padding: 0 20px;
}

section:nth-child(n + 3) {
    margin: 28px 0;
}

.block-wrapper > .container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.block-wrapper h2,
section > .container h2 {
    margin: 34px 0 14px 0;
    color: #ffffff;
    font-size: clamp(22px, 2.3vw, 30px) !important;
    line-height: 1.25 !important;
    font-weight: 700;
    letter-spacing: -0.015em;
    scroll-margin-top: 96px;
}

.block-wrapper > .container > h2:first-child {
    margin-top: 8px;
}

.block-wrapper h3,
section > .container h3 {
    margin: 24px 0 10px 0;
    color: #f8fafc;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.3;
    font-weight: 700;
    scroll-margin-top: 96px;
}

.block-wrapper p,
.content p {
    margin: 0 0 16px 0;
    color: var(--body-text);
    line-height: 1.7;
}

.block-wrapper strong,
.content strong {
    color: #ffffff;
    font-weight: 700;
}

/* Clean Lists (fix missing bullets / colliding ::before dots) */
.content ul,
.block-wrapper ul {
    display: block !important;
    margin: 0 0 18px 0;
    padding-left: 22px;
    list-style: none !important;
}

.content ul li,
.block-wrapper ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 4px;
    color: var(--body-text);
    line-height: 1.65;
}

.content ul li::before,
.block-wrapper ul li::before {
    content: "" !important;
    position: absolute;
    top: 0.62em;
    left: -16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color) !important;
}

.content ol,
.block-wrapper ol {
    display: block !important;
    margin: 0 0 18px 0;
    padding-left: 24px;
    list-style-type: decimal !important;
}

.content ol li,
.block-wrapper ol li {
    display: list-item !important;
    margin-bottom: 10px;
    color: var(--body-text);
    line-height: 1.65;
}

.content ol li::before,
.block-wrapper ol li::before,
.toc-block li::before,
.breadcrumbs_list li::before,
.header__menu li::before,
.info__items li::before {
    display: none !important;
}

/* Responsive Tables (Zero horizontal overflow on mobile!) */
.wca-table-scroll,
.table-wrapper > .container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 24px 0;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    background: var(--surface-1);
}

main table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

main table thead th,
main table th {
    background: var(--color-table);
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 13px 16px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

main table td {
    padding: 12px 16px;
    color: var(--body-text);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    vertical-align: top;
}

main table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

main table tbody tr:last-child td {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    section,
    article {
        padding: 0 14px;
    }

    main table {
        min-width: 480px;
        font-size: 13.5px;
    }

    main table th,
    main table td {
        padding: 10px 12px;
    }
}

/* ==========================================================================
   TOC BLOCK & FAQ ACCORDION
   ========================================================================== */

.toc-block {
    padding: 16px 20px;
    margin: 12px 0;
}

.toc-block__wrapper {
    background: var(--surface-1);
    border: 1px solid var(--surface-border);
    border-left: 3px solid var(--accent-color);
    border-radius: 14px;
}

.toc-block__header {
    padding: 18px 22px;
}

.toc-block__title {
    font-size: 18px;
    line-height: 1.3;
    color: #ffffff;
}

.toc-block__nav {
    padding: 0 22px 20px 22px;
}

.toc-block__list {
    gap: 8px;
}

.toc-block__item--h2 {
    padding-left: 18px !important;
}

.toc-block__item--h3 {
    padding-left: 34px !important;
}

.toc-block__link {
    color: #cbd5e1;
    font-size: 15px;
}

.toc-block__link:hover {
    color: #ffffff;
}

.faq {
    padding: 28px 20px 44px 20px;
}

.faq .faq-heading {
    color: #ffffff;
    font-size: clamp(22px, 2.3vw, 30px);
    margin: 0 0 20px 0;
}

.faq__items {
    gap: 12px;
}

.faq__item {
    background: var(--surface-1);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
}

.faq__item:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.16);
}

.faq__item.active {
    border-color: rgba(2, 117, 255, 0.45);
}

.faq__item-title {
    padding: 18px 20px;
    color: #ffffff;
    font-size: 16.5px;
    line-height: 1.4;
    font-weight: 600;
}

.faq__item-title:hover {
    color: var(--link-color-hover);
}

.faq__item-response {
    color: var(--body-text);
    font-size: 15.5px;
    line-height: 1.65;
    opacity: 1;
}

/* Game cards / screenshots / promo code / image-text blocks */
.games__item {
    background: var(--surface-1);
    border: 1px solid var(--surface-border);
    color: #ffffff;
}

.games__item:hover {
    background: var(--surface-2);
    border-color: rgba(2, 117, 255, 0.45);
}

.promo-code-block__wrapper,
.image-text-block__container,
.image-list-block__container {
    max-width: var(--content-width);
}

/* ==========================================================================
   STICKY BONUS BAR & SCROLL-TO-TOP
   ========================================================================== */

.bonus {
    position: sticky;
    bottom: 0;
    z-index: 80;
    background: rgba(11, 16, 27, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
    padding: 0 56px 0 20px;
}

.bonus .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.bonus .logo__img {
    height: 28px;
    width: auto;
}

.bonus__body {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.bonus__body i {
    font-style: normal;
    color: #ffffff;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.25;
    font-weight: 800;
}

.bonus__close {
    position: absolute;
    top: 50% !important;
    right: 16px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    cursor: pointer;
}

.bonus__close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.scroll-to-top {
    bottom: 92px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(2, 117, 255, 0.45);
    z-index: 85;
}

@media screen and (max-width: 768px) {
    .scroll-to-top {
        bottom: 24px;
        right: 16px;
    }
}

/* ==========================================================================
   FOOTER (3-COLUMN GRID + CLEAN MOBILE STACK)
   ========================================================================== */

.footer {
    background: var(--footer-color);
    border-top: 1px solid var(--surface-border);
    padding: 36px 20px 28px 20px;
}

.footer .container {
    gap: 28px;
    padding: 0;
}

.footer__head {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 32px;
    align-items: start;
}

.support__title,
.info__col-title {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.support__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.support__item-title {
    color: var(--muted-text);
    font-size: 13px;
}

.support__item-link {
    color: var(--link-color);
    font-size: 15px;
    font-weight: 600;
}

.info__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.info__items {
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.info__items li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info__items a {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.4;
}

.info__items a:hover {
    color: #ffffff;
}

.footer__body .subscribe {
    background: var(--surface-1);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 20px;
}

.subscribe__title {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 4px;
}

.subscribe__subtitle {
    color: var(--muted-text);
    font-size: 14px;
}

.subscribe__form input {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: #ffffff !important;
    font-size: 14px;
}

.subscribe__form input::placeholder {
    color: #94a3b8;
}

.devices__item {
    background: var(--surface-1);
    border: 1px solid var(--surface-border);
    color: #ffffff;
}

.devices__item:hover {
    background: var(--surface-2);
    border-color: rgba(2, 117, 255, 0.4);
}

.devices__item-title i {
    font-style: normal;
    color: var(--muted-text);
    font-size: 12px;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--surface-border);
}

.footer__bottom .payment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    justify-content: flex-start;
}

.payment__item img {
    display: block;
    height: 26px;
    width: auto;
    opacity: 0.88;
}

.footer__bottom .copiryte {
    color: var(--muted-text);
    font-size: 13.5px;
    align-items: center;
}

.footer__bottom .copiryte p {
    margin: 0;
}

@media screen and (max-width: 992px) {
    .footer__head {
        grid-template-columns: 1fr;
    }
    .info__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .footer {
        padding: 28px 14px 24px 14px;
    }
    .info__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }
    .footer__bottom .payment {
        justify-content: center;
    }
    .footer__bottom .copiryte {
        justify-content: center;
    }
}

@media screen and (max-width: 400px) {
    .info__columns {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MOBILE VIEWPORT CONTAINMENT GUARD (v2.0.1)
   Prevents body flex-item expansion (510px bug on 390px phones) from tables
   or wide media so EVERY header, hero, section & footer fits 100% in 390px.
   ========================================================================== */

body {
    display: block !important;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: clip;
}

main.content,
.header,
.footer,
section,
article,
.block-wrapper,
.block-wrapper > .container,
.hero > .container,
.footer .container,
.footer__head,
.footer__head > *,
.footer__body,
.footer__body > *,
.info,
.info__columns,
.info__col,
.wca-table-scroll,
.table-wrapper,
.table-wrapper > .container {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Re-assert desktop max-width centering on .container */
.header .container,
.hero > .container,
.block-wrapper > .container,
.toc-block > .container,
.faq > .container,
.footer .container,
.bonus .container,
.breadcrumbs {
    max-width: var(--content-width) !important;
    width: 100% !important;
}

@media screen and (max-width: 768px) {
    .tabs__content.show {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .image-text-block__container,
    .image-list-block__container,
    .screenshots-gallery-block__grid {
        grid-template-columns: 1fr !important;
    }
    .support__item-link,
    .support__item-title {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}
