/* Fonts loaded via link in head for better performance */
*,
::after,
::before {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: "Outfit", "Montserrat", sans-serif;
}

a {
    text-decoration: none;
    color: grey;
    text-align: center;
}

.dc-ico {
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 auto;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.dc-ico use {
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

svg[data-fixed-stroke="true"] {
    overflow: visible;
    shape-rendering: geometricPrecision;
}

svg[data-fixed-stroke="true"] use,
svg[data-fixed-stroke="true"] path,
svg[data-fixed-stroke="true"] line,
svg[data-fixed-stroke="true"] polyline,
svg[data-fixed-stroke="true"] polygon,
svg[data-fixed-stroke="true"] rect,
svg[data-fixed-stroke="true"] circle,
svg[data-fixed-stroke="true"] ellipse {
    vector-effect: non-scaling-stroke;
}

:root {
    --background-color: #0e2245;
    --header-color: #02173c;
    --border-style: 0.2px solid rgba(181, 181, 181, 0.142);
    --box-border: 0.8px solid rgba(181, 181, 181, 0.142);
    --unactive-color: #b9b9b9bb;
    --purple-light: #6b2aa3;
    --purple-dark: #3b1357;
    --purple-darker: #2a0e41;
}

html,
body {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    /* Support for mobile viewport height */
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    background-color: #2a0e41;
    background: linear-gradient(120deg, rgba(42, 14, 65, 1) 0%, rgba(59, 19, 87, 1) 100%);
    /* Rigid fix for scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Base cursor hiding - REMOVED */


.container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    flex: 1 0 auto;
}

.urgent-site-banner {
    position: relative;
    z-index: 140;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 214, 102, 0.35), transparent 28%),
        linear-gradient(90deg, #ff8a00 0%, #ff5a1f 36%, #ff3b30 72%, #ff0066 100%);
    box-shadow: 0 12px 28px rgba(255, 59, 48, 0.24);
}

.urgent-site-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
}

.urgent-site-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 13px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.urgent-site-banner__content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.urgent-site-banner__badge-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.urgent-site-banner__icon {
    color: #fff4d6;
    flex-shrink: 0;
}

.urgent-site-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(70, 12, 12, 0.22);
    white-space: normal;
    overflow-wrap: anywhere;
}

.urgent-site-banner__close {
    position: relative;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.urgent-site-banner__close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.urgent-site-banner__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    transition: all 0.3s ease;
}

.urgent-site-banner__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.urgent-site-banner__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.urgent-site-banner-mobile {
    display: none;
}

.urgent-site-banner.is-dismissed,
.urgent-site-banner-mobile.is-dismissed {
    display: none !important;
}

.microheader-urgent-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 18px;
    padding: 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(90deg, rgba(255, 138, 0, 0.95) 0%, rgba(255, 59, 48, 0.95) 52%, rgba(255, 0, 102, 0.95) 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.microheader-urgent-strip.is-dismissed {
    display: none !important;
}

.microheader-urgent-strip__arrow {
    flex: 0 0 auto;
    color: #fff7e6;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-1px);
}

.microheader-urgent-strip__text {
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

header {
    width: 100%;
    height: 110px;
    background: linear-gradient(120deg, var(--purple-darker) 0%, var(--purple-dark) 100%);
    border-bottom: 2px solid rgba(107, 42, 163, 0.25);
    box-shadow: 0 8px 32px 0 rgba(59, 19, 87, 0.25);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    z-index: 100;
    position: relative;
    flex-shrink: 0;
}

header>div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(59, 19, 87, 0.10);
    box-shadow: 0 2px 12px rgba(107, 42, 163, 0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-container a {
    display: block;
}

.logo {
    height: auto;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transform: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Use the complete wordmark on desktop; keep the compact mark for tablets. */
.logo-full {
    display: block;
}

.logo-mini {
    display: none;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .logo-full {
        display: none !important;
    }

    .logo-mini {
        display: block !important;
        height: auto;
        max-height: 38px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .urgent-site-banner__inner {
        padding: 12px 16px;
        align-items: flex-start;
        gap: 12px;
    }

    .urgent-site-banner__content {
        align-items: flex-start;
        gap: 12px;
    }

    .urgent-site-banner__badge-wrap {
        padding-top: 1px;
    }

    .urgent-site-banner__text {
        font-size: 13px;
        line-height: 1.45;
        white-space: pre-wrap;
    }

    .logo-full {
        display: block !important;
        height: auto;
        max-height: 32px;
        width: auto;
    }

    .logo-mini {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .urgent-site-banner {
        display: none;
    }

    .urgent-site-banner-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 50%;
        width: min(368px, calc(100vw - 20px));
        z-index: 2100;
        pointer-events: none;
        opacity: 0;
        transform: translateX(-50%) translateY(-18px);
        transition:
            opacity 0.32s ease,
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
        filter: none;
    }

    .urgent-site-banner-mobile.is-mounted {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .urgent-site-banner-mobile.is-dismissed {
        display: none !important;
    }

    .urgent-site-banner-mobile__shell {
        position: relative;
        width: 100%;
        min-height: calc(env(safe-area-inset-top, 0px) + 86px);
        pointer-events: none;
    }

    .urgent-site-banner-mobile__shell::after {
        content: none;
    }

    .urgent-site-banner-mobile__toggle {
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) - 44px);
        left: 50%;
        z-index: 2;
        width: 106px;
        min-width: 106px;
        height: 92px;
        border: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 32%, rgba(255, 255, 255, 0) 100%),
            linear-gradient(180deg, #ffba59 0%, #ff9c3f 44%, #ff7048 100%);
        color: #fff8ef;
        display: inline-flex;
        align-items: flex-end;
        justify-content: center;
        cursor: pointer;
        box-shadow: none;
        transition:
            opacity 0.22s ease,
            transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.24s ease;
        padding: 0 0 17px;
        transform: translateX(-50%);
        -webkit-tap-highlight-color: transparent;
        pointer-events: auto;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 106 92' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,0H106V37C95,37,85,46,85,60C85,80,72,92,53,92C34,92,21,80,21,60C21,46,11,37,0,37Z'/%3E%3C/svg%3E");
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 100% 100%;
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 106 92' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,0H106V37C95,37,85,46,85,60C85,80,72,92,53,92C34,92,21,80,21,60C21,46,11,37,0,37Z'/%3E%3C/svg%3E");
        mask-repeat: no-repeat;
        mask-size: 100% 100%;
    }

    .urgent-site-banner-mobile__toggle:active {
        transform: translateX(-50%) scale(0.96);
    }

    .urgent-site-banner-mobile__toggle-icon {
        position: relative;
        z-index: 1;
        color: #fff6e8;
        filter: drop-shadow(0 2px 6px rgba(95, 28, 5, 0.22));
        transform: translateY(-3px);
    }

    .urgent-site-banner-mobile.is-open .urgent-site-banner-mobile__toggle,
    .urgent-site-banner-mobile.has-opened .urgent-site-banner-mobile__toggle,
    .urgent-site-banner-mobile.is-hiding .urgent-site-banner-mobile__toggle {
        opacity: 0;
        transform: translateX(-50%) translateY(-16px) scale(0.82);
        pointer-events: none;
    }

    .urgent-site-banner-mobile.is-open .urgent-site-banner-mobile__shell::after,
    .urgent-site-banner-mobile.has-opened .urgent-site-banner-mobile__shell::after,
    .urgent-site-banner-mobile.is-hiding .urgent-site-banner-mobile__shell::after {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.82);
    }

    .urgent-site-banner-mobile__panel {
        position: relative;
        margin-top: calc(env(safe-area-inset-top, 0px) + 8px);
        padding: 16px 16px 18px;
        border-radius: 24px;
        background:
            radial-gradient(circle at top center, rgba(255, 238, 188, 0.28) 0%, rgba(255, 238, 188, 0) 34%),
            linear-gradient(180deg, rgba(255, 190, 100, 0.98) 0%, rgba(255, 146, 63, 0.98) 54%, rgba(255, 94, 83, 0.96) 100%);
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        box-shadow:
            0 20px 42px rgba(255, 104, 62, 0.18);
        opacity: 0;
        transform: translateY(-22px) scale(0.95);
        transform-origin: top center;
        transition:
            opacity 0.28s ease,
            transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
        overflow: hidden;
    }

    .urgent-site-banner-mobile__panel::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 28%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    }

    .urgent-site-banner-mobile.is-open .urgent-site-banner-mobile__panel {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .urgent-site-banner-mobile.is-hiding .urgent-site-banner-mobile__panel {
        opacity: 0;
        transform: translateY(-34px) scale(0.96);
        pointer-events: none;
    }

    .urgent-site-banner-mobile__panel-head {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
    }

    .urgent-site-banner-mobile__panel-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .urgent-site-banner-mobile__panel-icon-svg {
        color: #fff6eb;
        filter: drop-shadow(0 1px 2px rgba(95, 28, 5, 0.2));
    }

    .urgent-site-banner-mobile__text {
        position: relative;
        z-index: 1;
        margin: 0;
        padding-right: 8px;
        color: #ffffff;
        font-size: 14px;
        line-height: 1.55;
        font-weight: 700;
        text-shadow: 0 1px 0 rgba(90, 18, 18, 0.18);
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .urgent-site-banner-mobile__close {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
        width: 36px;
        min-width: 36px;
        height: 36px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .urgent-site-banner-mobile__close:hover {
        transform: rotate(90deg) scale(1.06);
        background: rgba(255, 255, 255, 0.16);
    }

    .urgent-site-banner-mobile__close span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        transition: all 0.3s ease;
    }

    .urgent-site-banner-mobile__close span:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .urgent-site-banner-mobile__close span:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

@media (max-width: 420px) {
    .urgent-site-banner-mobile {
        width: calc(100vw - 14px);
    }

    .urgent-site-banner-mobile__toggle {
        width: 94px;
        min-width: 94px;
        height: 84px;
        padding-bottom: 16px;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 94 84' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,0H94V34C84,34,75,43,75,55C75,73,63,84,47,84C31,84,19,73,19,55C19,43,10,34,0,34Z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 94 84' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,0H94V34C84,34,75,43,75,55C75,73,63,84,47,84C31,84,19,73,19,55C19,43,10,34,0,34Z'/%3E%3C/svg%3E");
    }

    .urgent-site-banner-mobile__shell::after {
        top: calc(env(safe-area-inset-top, 0px) + 62px);
        width: 82px;
    }

    .urgent-site-banner-mobile__panel {
        padding: 15px 14px 16px;
        border-radius: 22px;
    }

    .urgent-site-banner-mobile__text {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 867px) and (min-width: 769px) {

    .social,
    .nav-desktop .social {
        display: none !important;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Navigation styles */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-mobile {
    display: none;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(107, 42, 163, 0.13);
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.06);
}

.hamburger-menu:hover {
    background-color: rgba(107, 42, 163, 0.22);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.10);
}

.hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 20020;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* The document is locked by mobile-menu.js. Keep this layer passive so
       the panel below can own its vertical gesture on iOS. */
    touch-action: auto;
    overscroll-behavior: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* A stale inline swipe style must never leave the drawer over the page. */
.mobile-menu-overlay:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mobile-menu-overlay:not(.active) .mobile-menu-content {
    transform: translateX(100%) !important;
}


.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100dvh;
    max-height: 100dvh;
    background: linear-gradient(120deg, #2c2650 60%, #3c3278 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 2px solid rgba(107, 42, 163, 0.25);
    box-shadow: -8px 0 32px 0 rgba(59, 19, 87, 0.25);
    padding: 0;
    /* The drawer is the only scroll surface while the menu is open. */
    overflow-x: hidden;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    isolation: isolate;
    z-index: 1;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* Keep iOS scrolling functional without showing a desktop-style scrollbar. */
.mobile-menu-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.mobile-menu-open header {
    z-index: 20010;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(107, 42, 163, 0.18);
    background: #2a0e41;
    position: relative;
    overflow: hidden;
}

.mobile-logo {
    position: relative;
    z-index: 20;
}

.mobile-logo img {
    height: 32px;
}

.mobile-menu-close {
    position: relative;
    z-index: 20;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(107, 42, 163, 0.13);
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    transition: background 0.2s, transform 0.2s;
}

.mobile-menu-close:hover {
    background-color: rgba(107, 42, 163, 0.22);
    transform: rotate(180deg);
}

.mobile-menu-close span {
    display: block;
    width: 16px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-menu-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.mobile-balance-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-balance-block {
    display: flex;
    align-items: center;
    background-color: rgba(107, 42, 163, 0.13);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.06);
    font-weight: 600;
    font-size: 1.1em;
    color: #22c55e;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.mobile-balance-block:hover {
    background-color: rgba(107, 42, 163, 0.22);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.10);
}

.mobile-balance-coin {
    height: 24px;
    width: 24px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.mobile-balance-label {
    font-size: 1em;
    color: #22c55e;
    margin-right: 2px;
}

.mobile-balance-value {
    font-size: 1em;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(34, 197, 94, 0.10);
}

.mobile-user-controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
    justify-content: space-between;
}

.mobile-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(107, 42, 163, 0.18);
    border: 1.5px solid rgba(107, 42, 163, 0.22);
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
    justify-content: center;
    flex: 1;
}

.mobile-profile-link:hover {
    background: rgba(107, 42, 163, 0.28);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.13);
}

.mobile-own-case-link {
    margin-top: 10px;
    flex: none;
    width: 100%;
    box-sizing: border-box;
}

.mobile-own-case-link i {
    font-size: 1.1rem;
    opacity: 0.92;
}

.mobile-logout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e11d48;
    /* Red color */
    width: 44px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.mobile-logout-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transition: transform 0.2s ease;
}

.mobile-logout-btn:hover {
    background-color: #f43f5e;
    /* Lighter red on hover */
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

.mobile-logout-btn:active {
    transform: translateY(1px);
    /* Darker red when active */
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.5);
}

.mobile-notif-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #9333ea;
    width: 44px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    cursor: pointer;
    margin-right: 0;
}

.mobile-notif-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transition: transform 0.2s ease;
}

.mobile-notif-btn:hover {
    background-color: #a855f7;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.mobile-notif-btn:active {
    transform: translateY(1px);
    background-color: #7e22ce;
    box-shadow: 0 2px 4px rgba(147, 51, 234, 0.5);
}

.mobile-profile-username {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.92;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(59, 19, 87, 0.18);
}

.mobile-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: #2a0e41;
    border: 1.5px solid rgba(107, 42, 163, 0.22);
}

.mobile-auth-section {
    display: flex;
    justify-content: center;
}

.mobile-auth-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.mobile-auth-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
    background-size: 200% 100%;
}

.mobile-auth-link i,
.mobile-auth-link span {
    position: relative;
    z-index: 2;
}

.mobile-auth-link:hover {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px) scale(1.03);
}

.mobile-auth-link:hover::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

.mobile-social-section h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.mobile-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(107, 42, 163, 0.13);
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
}

.mobile-social-link:hover {
    background: rgba(107, 42, 163, 0.22);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.10);
    color: #fff;
}

.mobile-social-link.active {
    background: rgba(107, 42, 163, 0.13);
    position: static;
}

.mobile-social-link.active::after {
    display: none;
    content: none;
}

.mobile-social-link img {
    width: 20px;
    height: 20px;
    filter: invert(80%);
}

.mobile-history-dropdown {
    position: relative;
    top: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
    max-height: 300px;
    background: linear-gradient(120deg, rgba(44, 38, 80, 0.98) 60%, rgba(60, 50, 120, 0.98) 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px 0 rgba(59, 19, 87, 0.22);
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    z-index: 10;
    padding: 20px 16px 14px 16px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 12px;
}

.mobile-history-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mobile-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.22);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(147, 51, 234, 0.13);
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.10);
    transition: background 0.18s, box-shadow 0.18s;
}

.mobile-history-item:hover {
    background: rgba(34, 197, 94, 0.10);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.13);
}

.mobile-history-type {
    font-size: 0.9em;
    font-weight: 700;
    color: #22c55e;
    min-width: 40px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mobile-history-name {
    color: #fff;
    font-size: 0.95em;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-history-price {
    color: #22c55e;
    font-size: 0.95em;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

.mobile-history-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.mobile-history-actions .topup-btn,
.mobile-history-actions .popup-button {
    height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-sizing: border-box;
    gap: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.mobile-history-actions .topup-btn {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.18);
}

.mobile-history-actions .topup-btn:hover {
    background: #16a34a;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.22);
}

.mobile-history-actions .popup-button {
    background: linear-gradient(45deg, #6b21a8, #7e22ce);
    color: #fff;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
}

.mobile-history-actions .popup-button:hover {
    background: linear-gradient(45deg, #7e22ce, #9333ea);
    box-shadow: 0 4px 16px rgba(126, 34, 206, 0.3);
    color: #fff;
}

.social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social a {
    background-color: rgba(107, 42, 163, 0.13);
    padding: 0 12px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.06);
    margin: 0;
}

.social a:hover {
    background-color: rgba(107, 42, 163, 0.22);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.10);
    transform: none;
}

/* Social SVGs are external <img> files, so keep their whitening filter intact. */
body .social a img.social-img,
body .mobile-social-link img.social-img,
body .mobile-social .mobile-social-link img.social-img,
body .footer-modern-social img.social-img,
body img.social-img.icon-filter-preserve,
body img.icon-filter-preserve {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
}

.profile-link {
    border-radius: 8px;
    background: rgba(107, 42, 163, 0.18);
    border: 1.5px solid rgba(107, 42, 163, 0.22);
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.10);
    padding: 0 16px 0 12px;
    height: 40px;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    justify-content: center;
}

.profile-link:hover {
    background: rgba(107, 42, 163, 0.28);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.13);
}

.profile-link i,
.profile-link .profile-avatar {
    margin-left: 0;
    margin-right: 0;
}

.profile-username {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 500;
    opacity: 0.92;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    user-select: text;
    text-shadow: 0 1px 6px rgba(59, 19, 87, 0.18);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: #2a0e41;
    border: 1.5px solid rgba(107, 42, 163, 0.22);
}

.auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 6px;
    background: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.auth-link i {
    font-size: 18px;
    position: relative;
    z-index: 2;
}

.auth-link span {
    display: none;
    /* Будет отображаться только на десктопах, добавим позже */
    position: relative;
    z-index: 2;
    margin-left: 6px;
}

.auth-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
    background-size: 200% 100%;
}

.auth-link:hover {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px) scale(1.03);
}

.auth-link:hover::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

@media (min-width: 768px) {
    .auth-link {
        width: auto;
    }

    .auth-link span {
        display: inline-block;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

nav {
    width: 100%;
    height: 100%;
}

#menu ul>li.sign-in {
    background-color: #6a0dad;
    height: 50%;
    border-radius: 8px;
}

#menu ul>li>a {
    text-decoration: none;
    color: white;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#menu ul>li>a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: rgba(181, 181, 181, 0.142);
    bottom: 0;
    left: 0;
    display: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#menu ul>li>a:hover::after {
    display: block;
}

#menu ul>li {
    width: 50%;
    height: 100%;
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    align-items: center;


}

#menu ul {
    display: flex;
    list-style: none;
    justify-content: space-evenly;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

/* Auth Button Dropdown Menu Styles */
.auth-button-container {
    position: relative;
}

.profile-link-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-link-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 0 12px;
    height: 40px;
    border-radius: 8px;
    background: rgba(107, 42, 163, 0.18);
    border: 1.5px solid rgba(107, 42, 163, 0.22);
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
}

.profile-link-trigger:hover {
    background: rgba(107, 42, 163, 0.28);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.13);
}

.profile-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    background: linear-gradient(145deg, rgba(42, 14, 65, 0.98) 0%, rgba(59, 19, 87, 0.98) 100%);
    border: 1.5px solid rgba(126, 34, 206, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(126, 34, 206, 0.25);
    padding: 6px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible;
    margin-top: 4px;
}

.profile-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, rgba(42, 14, 65, 0.98) 0%, rgba(59, 19, 87, 0.98) 100%);
    border-top: 1.5px solid rgba(126, 34, 206, 0.3);
    border-left: 1.5px solid rgba(126, 34, 206, 0.3);
    transform: rotate(45deg);
    z-index: 1001;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
}

/* Show dropdown menu on hover */
.profile-link-dropdown:hover .profile-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-left: 3px solid transparent;
}

button.dropdown-item {
    width: 100%;
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 3px solid transparent;
    cursor: pointer;
    font: inherit;
}

.dropdown-item i {
    margin-right: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: rgba(255, 255, 255, 1);
}

.dropdown-item:hover {
    background: rgba(126, 34, 206, 0.2);
    color: #ffffff;
    border-left: 3px solid #7e22ce;
    box-shadow: inset 0 0 10px rgba(126, 34, 206, 0.1);
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(126, 34, 206, 0.1);
}

main {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

footer,
.modern-footer {
    width: 100%;
    /* background: linear-gradient(180deg,
        rgba(107,42,163,0.00) 0%,
        rgba(107,42,163,0.10) 20%,
        rgba(107,42,163,0.22) 40%,
        rgba(107,42,163,0.45) 80%,
        rgba(107,42,163,0.18) 92%,
        rgba(107,42,163,0.00) 100%
    ); */
    border-top: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 20px 0;
    flex-shrink: 0;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

footer>p {
    color: var(--unactive-color);
}

.card {
    width: 100%;
    max-width: 290px;
    height: 100px;
    background: var(--header-color);
    border-radius: 2px;
    border: var(--box-border);
    display: flex;
    align-items: center;
    justify-content: left;
    backdrop-filter: blur(10px);
    transition: 0.5s ease-in-out;
    position: absolute;
    bottom: 5%;
    right: 2%;
}

.card>.img {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    border-radius: 10px;
    background: linear-gradient(#d7cfcf, #9198e5);
}

.card:hover>.img {
    transition: 0.5s ease-in-out;
    background: linear-gradient(#9198e5, #712020);
}

.card>.textBox {
    width: calc(100% - 90px);
    margin-left: 10px;
    color: white;
    font-family: 'Poppins' sans-serif;
}

.card .textContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card .textContent .span {
    font-size: 10px;
}

.card .textContent .h1 {
    font-size: 16px;
    font-weight: bold;
}

.card> {
    font-size: 12px;
    font-weight: lighter;
}

.content_container {
    overflow: hidden;
}

.all-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.0);
    z-index: 9999;
    pointer-events: none;
    /* By default, allow clicks */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.all-screen-overlay.active {
    pointer-events: all;
    /* Block clicks when active */
    opacity: 1;
}

.profile-avatar:not([src]),
.profile-avatar[src=""],
.profile-avatar[src="#"] {
    padding: 4px;
    background-color: var(--unactive-color);
}

/* Footer Styles */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6b2aa3, #9198e5);
    border-radius: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-section ul li a i {
    font-size: 0.8rem;
    color: #6b2aa3;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(107, 42, 163, 0.2);
    border: 1px solid rgba(107, 42, 163, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: rgba(107, 42, 163, 0.22);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.10);
    transform: none;
}

.footer-social a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(107, 42, 163, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: #6b2aa3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #9198e5;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 30px;
}

.footer-logo span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    footer {
        padding: 30px 0 15px 0;
    }
}

@media (max-width: 768px) {
    header {
        height: 56px;
    }
}

/* Landscape phones and short-height devices: enable mobile header/menu */
@media (orientation: landscape) and (max-height: 600px),
(max-height: 480px) {
    header {
        height: 56px;
        min-height: 56px;
    }

    .nav-desktop {
        display: none !important;
    }

    .nav-mobile {
        display: flex !important;
    }

    /* Make the drawer a bit wider on landscape for usability */
    .mobile-menu-content {
        width: 360px;
        max-width: 70vw;
    }
}

.modern-footer {
    width: 100%;
    min-height: 220px;
    background: linear-gradient(180deg, rgba(107, 42, 163, 0.00) 0%, rgba(107, 42, 163, 0.10) 40%, rgba(107, 42, 163, 0.22) 90%, rgba(107, 42, 163, 0.00) 100%);
    border-top: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 24px 0;
    margin-top: auto;
    border-radius: 0 0 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 44px;
    margin-top: 32px;
}

.footer-logo-img {
    height: 80px;
    max-width: 90vw;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.footer-divider {
    width: 100%;
    max-width: 420px;
    height: 3px;
    margin: 0 auto 48px auto;
    border: none;
    background: linear-gradient(90deg,
            transparent,
            #a855f7 20%,
            #9333ea 50%,
            #a855f7 80%,
            transparent);
    border-radius: 2px;
    opacity: 0.5;
}

.footer-logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 8px rgba(59, 19, 87, 0.18);
    font-family: "Outfit", serif;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
    margin-bottom: 18px;
    margin-top: 0;
    line-height: 1.5;
    font-family: "Outfit", serif;
}

.footer-social {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(107, 42, 163, 0.18);
    border: 1.5px solid rgba(107, 42, 163, 0.22);
    border-radius: 10px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.10);
}

.footer-social a:hover {
    background-color: rgba(107, 42, 163, 0.22);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.10);
    transform: none;
}

.footer-social a img {
    filter: brightness(0) invert(1);
    width: 22px;
    height: 22px;
}

.footer-bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 42, 163, 0.18);
    width: 100%;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.98rem;
    margin: 0;
    font-family: "Outfit", serif;
}

@media (max-width: 600px) {
    .footer-content {
        max-width: 98vw;
        padding: 0 8px;
    }

    .footer-logo-text {
        font-size: 1.1rem;
    }

    .footer-logo-img {
        height: 70px;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }

    .footer-social a img {
        width: 18px;
        height: 18px;
    }
}

.footer-logo-full {
    display: block;
    margin: 0 auto 18px auto;
    height: 48px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
}

.footer-modern {
    width: 100%;
    background: linear-gradient(to bottom, transparent, rgba(14, 20, 40, 0.4));
    padding: 80px 0 24px 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.footer-modern-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 56px;
    padding: 48px 5% 0 5%;
    color: #fff;
    align-items: flex-start;
}

.footer-modern-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    flex: 1 1 0;
    align-items: center;
}

.footer-modern-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    justify-content: center;
}

.footer-modern-logo img {
    height: 38px;
}

.footer-modern-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(59, 19, 87, 0.18);
    margin-bottom: 0.5em;
}

.footer-modern-payments {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 4px 0 0 0;
    justify-content: center;
}

.footer-modern-payments img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    margin: 0 6px;
}

.footer-modern-payments img:hover {
    opacity: 1;
}

.footer-modern-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.98rem;
    text-align: left;
}

.footer-modern-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-modern-links a:hover {
    color: #b9aaff;
}

.footer-modern-disclaimer {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
    margin-bottom: 6px;
    text-align: left;
}

.footer-modern-disclaimer strong {
    color: #ffe082;
    font-weight: 600;
}

.footer-modern-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.footer-modern-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(107, 42, 163, 0.18);
    border: 1.5px solid rgba(107, 42, 163, 0.22);
    border-radius: 8px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.10);
}

.footer-modern-social a:hover {
    background-color: rgba(107, 42, 163, 0.28);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.13);
}

.footer-modern-social img {
    filter: brightness(0) invert(1);
    width: 20px;
    height: 20px;
}

.footer-modern-bottom {
    width: 100%;
    text-align: center;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(107, 42, 163, 0.18);
}

.footer-modern-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.98rem;
    margin: 0;
    font-family: "Outfit", serif;
}

@media (max-width: 1100px) {
    .footer-modern-content {
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .footer-modern-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 32px 2% 0 2%;
    }
}

@media (max-width: 600px) {
    .footer-modern-content {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px 2% 0 2%;
    }

    .footer-modern-section {
        align-items: center;
        min-width: 0;
    }

    .footer-modern-logo,
    .footer-modern-payments,
    .footer-modern-social {
        justify-content: center;
    }

    .footer-modern-title,
    .footer-modern-disclaimer,
    .footer-modern-links {
        text-align: center;
    }

    .footer-modern-logo img {
        height: 28px;
    }

    .footer-modern-social a {
        width: 32px;
        height: 32px;
    }

    .footer-modern-social img {
        width: 16px;
        height: 16px;
    }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    background: rgba(107, 42, 163, 0.06);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #6b2aa3 0%, #3b1357 100%);
    border-radius: 8px;
    min-height: 40px;
    border: 2px solid rgba(107, 42, 163, 0.10);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, #8e44ec 0%, #6b2aa3 100%);
}

::-webkit-scrollbar-track {
    background: rgba(107, 42, 163, 0.03);
    border-radius: 8px;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #6b2aa3 rgba(107, 42, 163, 0.06);
}

.footer-modern-payments-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(20px, 3vw, 40px);
    margin: 0 auto 32px auto;
    max-width: 840px;
}

.footer-modern-payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-modern-payment-item img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 8px rgba(59, 19, 87, 0.10));
}

/* Specific size adjustment for NOWPayments logo */
.footer-modern-payment-item img[src*="nowpayments.svg"] {
    height: 38px;
    width: auto;
    margin-top: 5px;
    margin-bottom: 5px;
}

.footer-modern-payment-item span {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

@media (min-width: 701px) {
    .footer-modern-payments-row {
        max-width: 1000px;
        gap: clamp(14px, 2.2vw, 32px);
    }

    /* The BLIK asset has large transparent padding around the actual mark.
       Compensate visually without increasing the footer row height. */
    .footer-modern-payment-item img[src*="Blik_logo.webp"] {
        height: 82px;
        margin-top: -15px;
        margin-bottom: -15px;
    }

    .footer-modern-payment-item span {
        white-space: nowrap;
        font-size: 0.95rem;
    }
}

.footer-modern-disclaimers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0 auto 32px auto;
    max-width: 1200px;
}

.footer-modern-disclaimer-card {
    background: rgba(107, 42, 163, 0.07);
    border-radius: 12px;
    padding: 18px 16px 14px 16px;
    color: #fff;
    box-shadow: 0 2px 12px rgba(59, 19, 87, 0.08);
    text-align: left;
    min-width: 0;
}

.footer-modern-disclaimer-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffe082;
    letter-spacing: 0.01em;
}

.footer-modern-disclaimer-card p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.footer-modern-contact-row {
    display: flex;
    justify-content: center;
    margin: 0 auto 18px auto;
}

.footer-modern-contact-block {
    background: rgba(107, 42, 163, 0.10);
    border-radius: 12px;
    padding: 18px 32px 14px 32px;
    color: #fff;
    box-shadow: 0 2px 12px rgba(59, 19, 87, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-modern-contact-block h4 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffe082;
}

.footer-modern-contact-block a {
    color: #fff;
    font-size: 1.01rem;
    text-decoration: underline;
    margin-bottom: 6px;
}

.footer-modern-contact-block a.footer-contact-secondary {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.footer-modern-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    justify-content: center;
}

.footer-modern-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(107, 42, 163, 0.18);
    border: 1.5px solid rgba(107, 42, 163, 0.22);
    border-radius: 8px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.10);
}

.footer-modern-social a:hover {
    background-color: rgba(107, 42, 163, 0.28);
    box-shadow: 0 4px 16px rgba(107, 42, 163, 0.13);
}

.footer-modern-social img {
    width: 18px;
    height: 18px;
}

@media (max-width: 1100px) {
    .footer-modern-disclaimers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

@media (max-width: 700px) {
    .footer-modern-disclaimers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px;
    }
}

@media (max-width: 700px) {
    .footer-modern-payments-row {
        gap: clamp(8px, 3vw, 24px);
        padding: 0 12px;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .footer-modern-payment-item {
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
    }

    .footer-modern-payment-item img {
        height: clamp(20px, 6vw, 32px);
        width: auto;
        max-width: 100%;
    }

    .footer-modern-payment-item img[src*="nowpayments.svg"] {
        height: clamp(16px, 5vw, 26px);
    }

    .footer-modern-payment-item span {
        font-size: clamp(0.6rem, 2vw, 0.88rem);
    }
}

/* Очень узкие экраны — скрываем текстовые подписи, только иконки */
@media (max-width: 400px) {
    .footer-modern-payments-row {
        gap: clamp(6px, 2.5vw, 16px);
        padding: 0 8px;
    }

    .footer-modern-payment-item span {
        display: none;
    }

    .footer-modern-payment-item img {
        height: clamp(18px, 7vw, 28px);
        margin-bottom: 0;
    }
}


.footer-modern-payment-item {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.footer-modern-payment-item:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.footer-modern-disclaimer-card,
.footer-modern-contact-block {
    transition:
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1.5px solid rgba(107, 42, 163, 0.10);
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.06);
    background: rgba(107, 42, 163, 0.07);
}

.footer-modern-disclaimer-card:hover,
.footer-modern-contact-block:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #a855f7;
    box-shadow: 0 12px 24px rgba(126, 34, 206, 0.18), 0 0 18px rgba(147, 51, 234, 0.18) inset;
    background: rgba(107, 42, 163, 0.13);
    z-index: 2;
}

@media (max-width: 700px) {

    .footer-modern-disclaimer-card:hover,
    .footer-modern-contact-block:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 6px 12px rgba(126, 34, 206, 0.13), 0 0 8px rgba(147, 51, 234, 0.10) inset;
    }
}

@media (max-width: 700px) {

    .footer-section:hover,
    .footer-modern-section:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 6px 12px rgba(126, 34, 206, 0.13), 0 0 8px rgba(147, 51, 234, 0.10) inset;
    }
}

.footer-modern-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 18px 0 0 0;
    padding: 0 8px;
}

.footer-modern-links-row a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.01rem;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transition: color 0.22s;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}

.footer-modern-links-row a:hover {
    color: #a855f7;
    background: none;
    box-shadow: none;
    text-decoration: none;
}

@media (max-width: 700px) {
    .footer-modern-links-row {
        gap: 10px;
        font-size: 0.97rem;
        flex-direction: column;
        align-items: center;
        margin: 12px 0 0 0;
    }

    .footer-modern-links-row a {
        padding: 6px 10px;
        width: 100%;
        text-align: center;
    }
}

.footer-modern::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.footer-modern,
.footer-modern * {
    position: relative;
    z-index: 1;
}

.footer-bullets {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 2;
}

.footer-bullets .bullet {
    position: absolute;
    bottom: 0;
    width: 48px;
    opacity: 0.92;
    filter: drop-shadow(0 2px 8px rgba(59, 19, 87, 0.18));
    pointer-events: none;
}

.footer-bullets .bullet1 {
    left: 8%;
    transform: rotate(-18deg) scale(1.1);
}

.footer-bullets .bullet2 {
    left: 22%;
    transform: rotate(12deg) scale(0.95);
}

.footer-bullets .bullet3 {
    left: 41%;
    transform: rotate(-7deg) scale(1.05);
}

.footer-bullets .bullet4 {
    left: 63%;
    transform: rotate(22deg) scale(0.9);
}

.footer-bullets .bullet5 {
    left: 81%;
    transform: rotate(-14deg) scale(1.15);
}

.footer-bullets .bullet-large {
    width: 380px;
    opacity: 0.99;
}

.footer-bullets .bullet-left {
    left: 2%;
    transform: scale(1.7);
}

.footer-bullets .bullet-right {
    right: 2%;
    transform: scale(1.7);
}

.footer-modern .footer-comet {
    position: absolute;
    left: 50%;
    top: -3%;
    transform: translateX(-50%) rotate(-7deg);
    width: 700px;
    max-width: 120vw;
    filter: drop-shadow(0 0 24px #a855f7cc);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.footer-modern {
    position: relative;
}

@keyframes comet-glow {

    0%,
    100% {
        filter: blur(0.5px) drop-shadow(0 0 48px #a855f7ee) drop-shadow(0 0 96px #9333eaff);
        opacity: 0.32;
    }

    50% {
        filter: blur(1.2px) drop-shadow(0 0 72px #a855f7ff) drop-shadow(0 0 144px #9333eaff);
        opacity: 0.38;
    }
}

.footer-modern .footer-comet {
    animation: comet-glow 3.5s ease-in-out infinite;
}

.footer-bg-case {
    position: absolute;
    right: -140px;
    left: auto;
    bottom: -100px;
    width: 700px;
    max-width: none;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transform: none;
    filter: drop-shadow(0 8px 24px rgba(107, 42, 163, 0.15)) brightness(1.1) contrast(1.05);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.footer-bg-case:hover {
    opacity: 0.65;
    filter: drop-shadow(0 12px 32px rgba(107, 42, 163, 0.25)) brightness(1.2) contrast(1.1);
}

.footer-bg-case-left {
    position: absolute;
    left: -140px;
    right: auto;
    bottom: -120px;
    width: 700px;
    max-width: none;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transform: none;
    filter: drop-shadow(0 8px 24px rgba(107, 42, 163, 0.15)) brightness(1.1) contrast(1.05);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.footer-bg-case-left:hover {
    opacity: 0.65;
    filter: drop-shadow(0 12px 32px rgba(107, 42, 163, 0.25)) brightness(1.2) contrast(1.1);
}

@keyframes case-glow {

    0%,
    100% {
        opacity: 0.45;
        filter: drop-shadow(0 8px 24px rgba(107, 42, 163, 0.15)) brightness(1.1) contrast(1.05);
    }

    50% {
        opacity: 0.58;
        filter: drop-shadow(0 10px 28px rgba(107, 42, 163, 0.22)) brightness(1.15) contrast(1.08);
    }
}

.footer-bg-case,
.footer-bg-case-left {
    animation: case-glow 4s ease-in-out infinite;
}

.footer-bg-case:hover,
.footer-bg-case-left:hover {
    animation: none;
}

.footer-coins-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 0;
}

.footer-coin {
    position: absolute;
    opacity: 1;
    filter: drop-shadow(0 0 24px #ffe082ee);
    pointer-events: none;
    user-select: none;
    will-change: transform, filter, opacity;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s, opacity 0.7s;
    z-index: 0;
    animation: coin-float 6s ease-in-out infinite alternate;
}

.footer-coin-a {
    left: 1%;
    bottom: 10px;
    width: 90px;
    animation-delay: 0s;
}

.footer-coin-b {
    left: 7%;
    bottom: 170px;
    width: 60px;
    animation-delay: 1.2s;
}

.footer-coin-c {
    left: 15%;
    bottom: 60px;
    width: 140px;
    animation-delay: 2.1s;
}

.footer-coin-d {
    left: 23%;
    bottom: 150px;
    width: 50px;
    animation-delay: 0.7s;
}

.footer-coin-e {
    left: 32%;
    bottom: 30px;
    width: 110px;
    animation-delay: 2.7s;
}

.footer-coin-f {
    left: 41%;
    bottom: 170px;
    width: 70px;
    animation-delay: 1.8s;
}

.footer-coin-g {
    left: 53%;
    bottom: 80px;
    width: 160px;
    animation-delay: 3.1s;
}

.footer-coin-h {
    left: 62%;
    bottom: 20px;
    width: 100px;
    animation-delay: 0.9s;
}

.footer-coin-i {
    left: 71%;
    bottom: 160px;
    width: 80px;
    animation-delay: 1.5s;
}

.footer-coin-j {
    left: 80%;
    bottom: 50px;
    width: 150px;
    animation-delay: 2.3s;
}

.footer-coin-k {
    left: 89%;
    bottom: 180px;
    width: 60px;
    animation-delay: 0.4s;
}

.footer-coin-l {
    left: 96%;
    bottom: 15px;
    width: 100px;
    animation-delay: 2.9s;
}

@keyframes coin-float {
    0% {
        transform: translateY(0) scale(1) rotate(-10deg);
        opacity: 1;
    }

    50% {
        transform: translateY(-26px) scale(1.08) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-18px) scale(0.98) rotate(-7deg);
        opacity: 1;
    }
}

@media (max-width: 700px) {
    .footer-coins-bg {
        height: 90px;
    }

    .footer-coin-a {
        width: 32px;
        left: 1%;
        bottom: 4px;
    }

    .footer-coin-b {
        width: 18px;
        left: 7%;
        bottom: 60px;
    }

    .footer-coin-c {
        width: 34px;
        left: 15%;
        bottom: 18px;
    }

    .footer-coin-d {
        width: 14px;
        left: 23%;
        bottom: 70px;
    }

    .footer-coin-e {
        width: 24px;
        left: 32%;
        bottom: 10px;
    }

    .footer-coin-f {
        width: 28px;
        left: 41%;
        bottom: 80px;
    }

    .footer-coin-g {
        width: 38px;
        left: 53%;
        bottom: 30px;
    }

    .footer-coin-h {
        width: 24px;
        left: 62%;
        bottom: 60px;
    }

    .footer-coin-i {
        width: 20px;
        left: 71%;
        bottom: 70px;
    }

    .footer-coin-j {
        width: 30px;
        left: 80%;
        bottom: 20px;
    }

    .footer-coin-k {
        width: 18px;
        left: 89%;
        bottom: 80px;
    }

    .footer-coin-l {
        width: 22px;
        left: 96%;
        bottom: 8px;
    }

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.35;
        width: 320px;
        filter: drop-shadow(0 4px 12px rgba(107, 42, 163, 0.12)) brightness(1.1) contrast(1.05);
    }

    .footer-bg-case {
        right: -80px;
        bottom: -80px;
    }

    .footer-bg-case-left {
        left: -80px;
        bottom: -100px;
    }

    .footer-bg-case:hover,
    .footer-bg-case-left:hover {
        opacity: 0.55;
        filter: drop-shadow(0 6px 18px rgba(107, 42, 163, 0.18)) brightness(1.15) contrast(1.08);
    }
}

@media (min-width: 480px) and (max-width: 599px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.3;
        width: 300px;
    }

    .footer-bg-case {
        right: -75px;
        bottom: -75px;
    }

    .footer-bg-case-left {
        left: -75px;
        bottom: -95px;
    }
}

@media (max-width: 480px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.25;
        width: 240px;
    }

    .footer-bg-case {
        right: -60px;
        bottom: -60px;
    }

    .footer-bg-case-left {
        left: -60px;
        bottom: -80px;
    }
}



@media (max-width: 400px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.2;
        width: 200px;
    }

    .footer-bg-case {
        right: -50px;
        bottom: -50px;
    }

    .footer-bg-case-left {
        left: -50px;
        bottom: -70px;
    }
}

@media (max-width: 360px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.15;
        width: 160px;
    }

    .footer-bg-case {
        right: -30px;
        bottom: -30px;
    }

    .footer-bg-case-left {
        left: -30px;
        bottom: -50px;
    }
}

@media (max-width: 320px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.1;
        width: 140px;
    }

    .footer-bg-case {
        right: -20px;
        bottom: -20px;
    }

    .footer-bg-case-left {
        left: -20px;
        bottom: -40px;
    }
}

@media (min-width: 700px) and (max-width: 1024px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.4;
        width: 500px;
    }

    .footer-bg-case {
        right: -100px;
        bottom: -90px;
    }

    .footer-bg-case-left {
        left: -100px;
        bottom: -110px;
    }
}

@media (min-width: 600px) and (max-width: 700px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.35;
        width: 350px;
    }

    .footer-bg-case {
        right: -85px;
        bottom: -75px;
    }

    .footer-bg-case-left {
        left: -85px;
        bottom: -95px;
    }
}

@media (min-width: 700px) and (max-width: 900px) {

    .footer-bg-case,
    .footer-bg-case-left {
        opacity: 0.4;
        width: 450px;
    }

    .footer-bg-case {
        right: -95px;
        bottom: -85px;
    }

    .footer-bg-case-left {
        left: -95px;
        bottom: -105px;
    }
}

.mobile-balance-block {
    display: flex;
    align-items: center;
    background-color: rgba(107, 42, 163, 0.13);
    padding: 0 12px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.06);
    margin-right: 0;
    margin-left: 0;
    font-weight: 600;
    font-size: 0.98em;
    color: #22c55e;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.header-balance-block {
    display: flex;
    align-items: center;
    background-color: rgba(107, 42, 163, 0.13);
    padding: 0 12px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59, 19, 87, 0.06);
    margin-right: 0;
    margin-left: 0;
    font-weight: 600;
    font-size: 0.98em;
    color: #22c55e;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.header-add-balance {
    background: #22c55e;
    border: none;
    border-radius: 6px;
    padding: 4px 7px;
    margin-left: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.10);
}

.header-add-balance:hover {
    background: #16a34a;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.18);
}

/* Header Add Balance Icon (Plus inside balance block) */
/* Header Add Balance Icon (Plus inside balance block) */
.header-add-balance-btn {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.2s ease;
}

.header-add-balance-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
    transform: translateY(-1px);
    color: #4ade80;
}

.header-add-balance-btn:active {
    transform: translateY(0);
}

.header-balance-label {
    font-size: 1em;
    color: #22c55e;
    margin-right: 2px;
}

.header-balance-value {
    font-size: 0.98em;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(34, 197, 94, 0.10);
}

.header-balance-coin {
    height: 22px;
    width: 22px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.header-history-dropdown {
    position: absolute;
    top: 88px;
    right: 8vw;
    min-width: 340px;
    max-width: 420px;
    max-height: 420px;
    background: linear-gradient(145deg, rgba(42, 14, 65, 0.98) 0%, rgba(59, 19, 87, 0.98) 100%);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(126, 34, 206, 0.25);
    border: 1.5px solid rgba(126, 34, 206, 0.3);
    z-index: 9999;
    padding: 44px 0 0;
    overflow: visible;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-history-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 190px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, rgba(42, 14, 65, 0.98) 0%, rgba(59, 19, 87, 0.98) 100%);
    border-top: 1.5px solid rgba(126, 34, 206, 0.3);
    border-left: 1.5px solid rgba(126, 34, 206, 0.3);
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
}

.header-history-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-history-dropdown.hide {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.header-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    padding: 0;
}

.header-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(126, 34, 206, 0.12);
    border-left: 3px solid transparent;
    font-size: 14px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.header-history-item:hover {
    background: rgba(126, 34, 206, 0.2);
    border-left-color: rgba(168, 85, 247, 0.95);
    border-color: rgba(126, 34, 206, 0.28);
}

.header-history-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #22c55e;
    min-width: 56px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.header-history-name {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-history-price {
    color: #22c55e;
    font-size: 14px;
    font-weight: 700;
    min-width: 72px;
    text-align: right;
    flex-shrink: 0;
}

.header-history-date {
    color: #94a3b8;
    font-size: 0.93em;
    min-width: 90px;
    text-align: right;
}

.header-history-empty {
    text-align: center;
    color: #94a3b8;
    padding: 26px 18px 10px;
    font-size: 14px;
}

.header-history-empty-title {
    display: block;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.header-history-empty-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

.header-history-close {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    outline: none;
    border: 1px solid rgba(126, 34, 206, 0.24);
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    z-index: 999999;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: none;
    z-index: 4;
}

.header-history-close:hover {
    transform: rotate(90deg) scale(1.05);
    background-color: rgba(126, 34, 206, 0.2);
    border-color: rgba(168, 85, 247, 0.35);
}

.header-history-close img {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.header-history-list {
    margin-top: 0;
}

.header-history-more {
    text-align: center;
    margin-top: 10px;
}

.header-history-more a {
    color: #a78bfa;
    font-size: 0.98em;
    text-decoration: underline;
    transition: color 0.2s;
}

.header-history-more a:hover {
    color: #fff;
}

.header-history-topup {
    background: #22c55e !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-size: 1.08em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px 0;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.18);
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    min-width: 0;
    width: fit-content;
    opacity: 1;
    cursor: pointer;
}

.header-history-topup:hover,
.header-history-topup:focus {
    background: #16a34a !important;
    color: #fff !important;
    opacity: 1;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.22);
}

.header-history-topup img {
    filter: none;
    opacity: 1;
}

.topup-btn.purple {
    background: linear-gradient(45deg, #6b21a8, #7e22ce);
    color: #fff;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 140px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.topup-btn.purple:hover,
.topup-btn.purple:focus {
    background: linear-gradient(45deg, #7e22ce, #9333ea);
    color: #fff;
    box-shadow: 0 0 15px rgba(126, 34, 206, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.header-history-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(126, 34, 206, 0.16);
}

.header-history-actions .topup-btn,
.header-history-actions .popup-button {
    height: 44px;
    min-width: 148px;
    padding: 0 18px;
    font-size: 13px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-sizing: border-box;
    gap: 6px;
}

.header-history-actions .popup-button {
    background: linear-gradient(45deg, #6b21a8, #7e22ce);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(126, 34, 206, 0.22);
}

.header-history-actions .popup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #7e22ce, #9333ea, #7e22ce);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.header-history-actions .popup-button:hover::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

.header-history-actions .popup-button:hover {
    box-shadow: 0 0 15px rgba(126, 34, 206, 0.5);
    transform: translateY(-2px);
}

.header-history-actions .header-history-inventory-link {
    text-decoration: none;
}

.case-card.highlighted {
    box-shadow: 0 0 0 4px #22c55e, 0 8px 32px rgba(34, 197, 94, 0.18);
    border-radius: 16px;
    animation: highlight-case 1.2s;
    z-index: 2;
    position: relative;
}

@keyframes highlight-case {
    0% {
        box-shadow: 0 0 0 0 #22c55e, 0 8px 32px rgba(34, 197, 94, 0.18);
    }

    60% {
        box-shadow: 0 0 0 8px #22c55e, 0 8px 32px rgba(34, 197, 94, 0.18);
    }

    100% {
        box-shadow: 0 0 0 4px #22c55e, 0 8px 32px rgba(34, 197, 94, 0.18);
    }
}

.case-card {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.case-card--hidden {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.case-card--dimmed {
    opacity: 0.45;
    filter: grayscale(0.85) blur(1px);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card--top {
    order: -1 !important;
    z-index: 2;
}

.case-card--favtop {
    order: -2 !important;
    z-index: 3;
}

.search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: #181c2f;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.10), 0 1.5px 0 #312e81;
    padding: 0;
    margin-top: -2px;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    animation: fadeIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-dropdown-item {
    padding: 13px 22px;
    font-size: 1.08rem;
    color: #e0e7ef;
    cursor: pointer;
    border-bottom: 1px solid #23264a;
    transition: background 0.18s, color 0.18s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: #23264a;
    color: #a78bfa;
}

.search-dropdown-price {
    color: #a5b4fc;
    font-size: 0.98em;
    margin-left: 10px;
    font-weight: 400;
}

/* Skin search UI */
.skin-search-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.skin-type-select,
.skin-name-input-wrap input {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(145deg, rgba(34, 31, 72, 0.70), rgba(24, 20, 62, 0.65));
    color: #fff;
    padding: 0 12px;
    box-shadow: 0 4px 18px rgba(59, 19, 87, 0.20);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.skin-type-select:hover,
.skin-name-input-wrap input:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

.skin-type-select:focus,
.skin-name-input-wrap input:focus {
    outline: none;
    border-color: #7e22ce;
    box-shadow: 0 0 0 2px rgba(126, 34, 206, 0.30), 0 10px 22px rgba(107, 42, 163, 0.25);
}

.skin-name-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skin-name-input-wrap::before {
    content: "";
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    opacity: 0.8;
    background-image: url("../img/ico/search-muted-bg.svg");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    pointer-events: none;
    transition: opacity .2s ease;
}

.skin-name-input-wrap:focus-within::before {
    opacity: 1;
}

.skin-name-input-wrap input {
    padding-left: 38px;
}

.skin-name-input-wrap input::placeholder {
    color: rgba(226, 232, 240, 0.70);
}

/* Microheader skin search styles are now defined in home.css */

/* Fix text overlap with search icon in microheader */
.microheader-search .skin-name-input-wrap {
    position: relative;
}

.microheader-search .skin-name-input-wrap::before,
.microheader .skin-name-input-wrap::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.7;
    background-image: url("../img/ico/search-white-bg.svg");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 1;
}

.microheader-search .skin-name-input-wrap:focus-within::before,
.microheader .skin-name-input-wrap:focus-within::before {
    opacity: 1;
}

#microSkinSearchInput {
    padding-left: 40px !important;
}

/* Align skin search row vertically with other microheader elements */
.microheader-search .skin-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}


#addSkinBtn,
#microAddSkinBtn {
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(107, 42, 163, 0.45), rgba(59, 19, 87, 0.45));
    border: 1px solid rgba(147, 51, 234, 0.55);
    border-radius: 12px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

#addSkinBtn:hover,
#microAddSkinBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(107, 42, 163, 0.35);
}

#addSkinBtn:active,
#microAddSkinBtn:active {
    transform: scale(0.98);
}

.selected-skins {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skin-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(24, 28, 47, 0.92);
    border: 1px solid #312e81;
    color: #e0e7ef;
    box-shadow: 0 2px 10px rgba(49, 46, 129, 0.35);
}

.skin-chip img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.skin-chip .remove {
    background: none;
    border: none;
    color: #a78bfa;
    cursor: pointer;
    font-weight: 700;
    padding: 0 6px;
    border-left: 1px solid #312e81;
}

.skin-chip .remove:hover {
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styling for footer links as pill buttons */
.footer-modern-links-row a {
    padding: 8px 20px;
    border-radius: 20px;
    color: #c5c5c5;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-modern-links-row a:hover {
    background-color: var(--purple-light);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 42, 163, 0.4);
}

/* Profile Avatar Styles */
.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    /* Match container rounding */
    object-fit: cover;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-profile-avatar {
    width: 32px;
    height: 32px;
}

.microheader-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-header-avatar-link {
    position: absolute;
    top: 10px;
    right: 50px;
    z-index: 20;
    /* Adjust as needed */
}

.mobile-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-user-controls {
    display: flex;
    gap: 10px;
}

.mobile-profile-link {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(107, 42, 163, 0.13);
    border: 1.5px solid rgba(107, 42, 163, 0.18);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-profile-link:hover {
    background: rgba(107, 42, 163, 0.22);
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    background: #e53e3e;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-logout-btn:hover {
    background: #c53030;
}

html[data-i18n-wait] [data-translate] {
    color: transparent !important;
    position: relative;
    text-shadow: none !important;
}

html[data-i18n-wait] [data-translate]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 0.95em;
    width: var(--i18n-skeleton-width, 70%);
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 25%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.22) 75%);
    background-size: 200px 100%;
    animation: i18n-skeleton-shimmer 1.1s infinite linear;
}

html[data-i18n-wait] [replace-price],
html[data-i18n-wait] [data-skeleton] {
    color: transparent !important;
    position: relative;
}

html[data-i18n-wait] [replace-price]::after,
html[data-i18n-wait] [data-skeleton]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 0.95em;
    width: var(--i18n-skeleton-width, 70%);
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 25%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.22) 75%);
    background-size: 200px 100%;
    animation: i18n-skeleton-shimmer 1.1s infinite linear;
}

@keyframes i18n-skeleton-shimmer {
    from {
        background-position: -200px 0;
    }

    to {
        background-position: 200px 0;
    }
}

/* PC Version Bottom Blur Overlay - Global */
.bottom-blur-gradient {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.01);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    backdrop-filter: blur(16px) saturate(180%) brightness(80%);
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(80%);
    z-index: 2000;
    pointer-events: none;
    /* Smoother fade to top: fully transparent before the edge */
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 80%);

    /* Performance Optimizations */
    will-change: backdrop-filter, transform;
    transform: translateZ(0);
    contain: paint;
}

@media screen and (max-width: 1024px) {
    html.ios-constrained .microheader,
    html.ios-constrained .microheader-search-results,
    html.ios-constrained .mobile-search-bar,
    html.ios-constrained .mobile-ultra-microheader,
    html.ios-constrained .bottom-blur-gradient,
    html.ios-constrained .profile-dropdown-content,
    html.ios-constrained .search-dropdown,
    html.ios-constrained .footer-modern-disclaimer-card,
    html.ios-constrained .footer-modern-contact-block,
    html.ios-constrained .footer-modern-social a,
    html.ios-constrained .footer-modern-links-row a {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        filter: none !important;
        will-change: auto !important;
    }

    html.ios-constrained .footer-modern::before,
    html.ios-constrained .footer-modern .footer-comet,
    html.ios-constrained .footer-coins-bg,
    html.ios-constrained .footer-coin,
    html.ios-constrained .mobile-bottom-glow,
    html.ios-constrained .swipe-indicator,
    html.ios-constrained .home-bg-weapon-left,
    html.ios-constrained .home-bg-weapon-left-lower,
    html.ios-constrained .home-bg-weapon-right {
        display: none !important;
        animation: none !important;
        filter: none !important;
        will-change: auto !important;
    }

    html.ios-constrained .footer-modern-section,
    html.ios-constrained .footer-modern-disclaimer-card:hover,
    html.ios-constrained .footer-modern-contact-block:hover,
    html.ios-constrained .footer-modern-section:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

@media screen and (max-width: 1024px) {
    html.ios-constrained .microheader,
    html.ios-constrained .mobile-ultra-microheader,
    body.is-ios .microheader,
    body.is-ios .mobile-ultra-microheader {
        background: linear-gradient(180deg, rgba(58, 37, 96, 0.94) 0%, rgba(45, 27, 80, 0.9) 55%, rgba(24, 13, 46, 0.84) 100%) !important;
        border-bottom: 1px solid rgba(160, 122, 255, 0.24) !important;
        box-shadow: 0 10px 28px rgba(10, 4, 25, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        isolation: isolate;
        overflow: hidden;
    }

    html.ios-constrained .microheader::before,
    html.ios-constrained .mobile-ultra-microheader::before,
    body.is-ios .microheader::before,
    body.is-ios .mobile-ultra-microheader::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 28%),
            radial-gradient(120% 90% at 50% 0%, rgba(181, 129, 255, 0.18) 0%, rgba(181, 129, 255, 0) 58%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.03) 78%, rgba(255, 255, 255, 0) 100%);
    }

    html.ios-constrained .microheader>*,
    html.ios-constrained .mobile-ultra-microheader>*,
    body.is-ios .microheader>*,
    body.is-ios .mobile-ultra-microheader>* {
        position: relative;
        z-index: 1;
    }

    html.ios-constrained .microheader-content,
    body.is-ios .microheader-content {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html.ios-constrained .microheader-search-results,
    html.ios-constrained .search-dropdown,
    html.ios-constrained .profile-dropdown-content,
    body.is-ios .microheader-search-results,
    body.is-ios .search-dropdown,
    body.is-ios .profile-dropdown-content {
        background: linear-gradient(180deg, rgba(52, 31, 86, 0.96), rgba(29, 17, 56, 0.94)) !important;
        border: 1px solid rgba(160, 122, 255, 0.22) !important;
        box-shadow: 0 12px 28px rgba(10, 4, 25, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    }

    html.ios-constrained .mobile-ultra-microheader .hamburger-menu,
    body.is-ios .mobile-ultra-microheader .hamburger-menu {
        background: rgba(107, 42, 163, 0.18) !important;
        border-color: rgba(170, 132, 255, 0.22) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    }

    /* iPhone fallback for home bottom filter panel when WebKit drops backdrop blur. */
    html.ios-constrained body.page-home #mobile-search-bar,
    html.ios-constrained body.page-custom-cases-all #mobile-search-bar,
    body.is-ios.page-home #mobile-search-bar,
    body.is-ios.page-custom-cases-all #mobile-search-bar {
        background: linear-gradient(180deg, rgba(20, 16, 39, 0.18), rgba(7, 8, 20, 0.62)) !important;
        border-top: 1px solid rgba(173, 128, 255, 0.2) !important;
        box-shadow: 0 -10px 28px rgba(4, 1, 16, 0.26) !important;
        isolation: isolate;
    }

    html.ios-constrained body.page-home #mobile-search-bar::before,
    html.ios-constrained body.page-custom-cases-all #mobile-search-bar::before,
    body.is-ios.page-home #mobile-search-bar::before,
    body.is-ios.page-custom-cases-all #mobile-search-bar::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 8, 24, 0.1) 18%, rgba(6, 6, 16, 0.3) 100%),
            url('../img/backgrounds/blur2.webp');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        opacity: 0.88;
    }

    html.ios-constrained body.page-home #mobile-search-bar .mobile-search-inner,
    html.ios-constrained body.page-home #mobile-search-bar #mobileSelectedSkinsContainer,
    html.ios-constrained body.page-home #mobile-search-bar .mobile-filter-row,
    html.ios-constrained body.page-home #mobile-search-bar .mobile-safe-area,
    html.ios-constrained body.page-custom-cases-all #mobile-search-bar .mobile-search-inner,
    html.ios-constrained body.page-custom-cases-all #mobile-search-bar #mobileSelectedSkinsContainer,
    html.ios-constrained body.page-custom-cases-all #mobile-search-bar .mobile-filter-row,
    html.ios-constrained body.page-custom-cases-all #mobile-search-bar .mobile-safe-area,
    body.is-ios.page-home #mobile-search-bar .mobile-search-inner,
    body.is-ios.page-home #mobile-search-bar #mobileSelectedSkinsContainer,
    body.is-ios.page-home #mobile-search-bar .mobile-filter-row,
    body.is-ios.page-home #mobile-search-bar .mobile-safe-area,
    body.is-ios.page-custom-cases-all #mobile-search-bar .mobile-search-inner,
    body.is-ios.page-custom-cases-all #mobile-search-bar #mobileSelectedSkinsContainer,
    body.is-ios.page-custom-cases-all #mobile-search-bar .mobile-filter-row,
    body.is-ios.page-custom-cases-all #mobile-search-bar .mobile-safe-area {
        position: relative;
        z-index: 1;
    }

    html.ios-constrained body.page-home #mobile-search-bar .mobile-scroll-top,
    html.ios-constrained body.page-custom-cases-all #mobile-search-bar .mobile-scroll-top,
    body.is-ios.page-home #mobile-search-bar .mobile-scroll-top,
    body.is-ios.page-custom-cases-all #mobile-search-bar .mobile-scroll-top {
        z-index: 1;
    }
}

@media screen and (min-width: 1025px) {
    .bottom-blur-gradient {
        display: block;
    }
}

/* Disable effect on Firefox due to performance/compatibility risks */
@supports (-moz-appearance:none) {
    .bottom-blur-gradient {
        display: none !important;
    }
}

/* Predictable Cases menu icon follows the existing 16px dropdown icon column. */
.dropdown-item .predictable-menu-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
    vertical-align: middle;
}
.dropdown-item:hover .predictable-menu-icon { color: rgba(255, 255, 255, 1); }
.mobile-own-case-link .predictable-menu-icon { width: 18px; height: 18px; min-width: 18px; margin-right: 10px; }


/* Keep the two case shortcuts as compact as the mobile social links. */
.mobile-balance-section .mobile-own-case-link + .mobile-own-case-link {
    margin-top: 8px;
}
