/*
 * EndCore — Gradient Glass UI
 * Palette: #545EB6 → #E5ADFD
 * Inspired by modern iOS spatial materials and layered glass surfaces.
 */

:root {
    --color-accent: #545EB6;
    --color-accent-rgb: 84, 94, 182;
    --color-accent-secondary: #E5ADFD;
    --color-accent-secondary-rgb: 229, 173, 253;
    --color-success: #73E2B7;

    --bg-main: #080914;
    --bg-header: rgba(18, 18, 38, 0.58);
    --bg-card: rgba(255, 255, 255, 0.075);
    --bg-card-hover: rgba(255, 255, 255, 0.115);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(244, 241, 255, 0.68);
    --text-tertiary: rgba(244, 241, 255, 0.48);

    --border-color: rgba(255, 255, 255, 0.13);
    --border-hover: rgba(229, 173, 253, 0.42);
    --glass-highlight: rgba(255, 255, 255, 0.24);
    --glass-shadow: 0 24px 70px rgba(3, 4, 18, 0.34);
    --glass-shadow-strong: 0 34px 100px rgba(3, 4, 18, 0.52);
    --shadow-glow: 0 18px 48px rgba(84, 94, 182, 0.30), 0 10px 36px rgba(229, 173, 253, 0.18);
    --card-glow: rgba(229, 173, 253, 0.18);
    --brand-gradient: linear-gradient(135deg, #545EB6 0%, #8D78D7 48%, #E5ADFD 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(84, 94, 182, 0.30), rgba(229, 173, 253, 0.20));
    --transition-speed: 0.34s;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    background: var(--bg-main) !important;
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", sans-serif;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background-color: var(--bg-main) !important;
    background-image:
        radial-gradient(circle at 12% 3%, rgba(229, 173, 253, 0.25), transparent 31%),
        radial-gradient(circle at 88% 13%, rgba(84, 94, 182, 0.31), transparent 34%),
        radial-gradient(circle at 50% 55%, rgba(125, 100, 212, 0.14), transparent 46%),
        linear-gradient(160deg,
            var(--bg-main) 0%,
            #0E1024 46%,
            #111026 76%,
            var(--bg-main) 94%,
            var(--bg-main) 100%) !important;
    background-attachment: fixed !important;
    padding-top: 122px;
}

body.new-year {
    background-image:
        radial-gradient(circle at 12% 3%, rgba(229, 173, 253, 0.25), transparent 31%),
        radial-gradient(circle at 88% 13%, rgba(84, 94, 182, 0.31), transparent 34%),
        radial-gradient(circle at 50% 55%, rgba(125, 100, 212, 0.14), transparent 46%),
        linear-gradient(160deg,
            var(--bg-main) 0%,
            #0E1024 46%,
            #111026 76%,
            var(--bg-main) 94%,
            var(--bg-main) 100%) !important;
}

body::before,
body::after {
    width: 520px;
    height: 520px;
    opacity: 0.28;
    filter: blur(135px);
    animation: glassAmbient 16s ease-in-out infinite alternate;
}

body::before {
    background: #545EB6;
    top: -220px;
    left: -90px;
}

body::after {
    background: #E5ADFD;
    right: -120px;
    bottom: -230px;
    animation-delay: -8s;
}

@keyframes glassAmbient {
    0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.20; }
    100% { transform: translate3d(55px, -28px, 0) scale(1.12); opacity: 0.32; }
}

::selection {
    color: #fff;
    background: rgba(141, 120, 215, 0.72);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(8, 9, 20, 0.8);
}

::-webkit-scrollbar-thumb {
    border: 3px solid rgba(8, 9, 20, 0.8);
    border-radius: 999px;
    background: linear-gradient(#545EB6, #E5ADFD);
}

.container {
    max-width: 1180px;
}

/* Shared spatial-glass material */
.header,
.hero-banner,
.stat-card,
.item-id,
.payment-id.window,
.faq-item,
.category-text .panel,
.modal > .wrapper > .modal-content,
.server-buttons,
.purchase-toast {
    isolation: isolate;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)) !important;
    border: 1px solid var(--border-color) !important;
    -webkit-backdrop-filter: blur(30px) saturate(165%);
    backdrop-filter: blur(30px) saturate(165%);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.20), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* Floating navigation */
.header {
    top: calc(18px + env(safe-area-inset-top));
    width: calc(100% - 32px);
    max-width: 1120px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(31, 31, 63, 0.70), rgba(20, 20, 43, 0.48)) !important;
    box-shadow: 0 20px 70px rgba(2, 3, 16, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.15), transparent 30%, transparent 70%, rgba(229, 173, 253, 0.08));
    z-index: -1;
}

.navbar {
    height: 72px;
    padding: 0 20px 0 24px;
}

.logo {
    gap: 11px;
    font-size: 20px;
    letter-spacing: -0.25px;
}

.logo-text,
.logo span {
    color: #fff;
}

.logo-text {
    background: linear-gradient(105deg, #FFFFFF 15%, #E5ADFD 57%, #A89DE9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    width: 11px;
    height: 11px;
    background: var(--brand-gradient);
    box-shadow: 0 0 0 5px rgba(229, 173, 253, 0.09), 0 0 22px rgba(229, 173, 253, 0.72);
}

.navbar-wrapper ul {
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 17px;
    background: rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-wrapper ul li a {
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 20px;
}

.navbar-wrapper ul li a::after {
    display: none;
}

.navbar-wrapper ul li a:hover,
.navbar-wrapper ul li.active a {
    color: #fff;
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.50), rgba(229, 173, 253, 0.23));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 8px 20px rgba(5, 6, 24, 0.24);
}

.nav-actions {
    gap: 10px;
}

.btn-vk,
.navbar-mobile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-vk {
    height: 42px;
    border-radius: 14px;
    color: #fff;
}

.btn-vk:hover {
    color: #fff;
    background: var(--brand-gradient);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.navbar-mobile {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero-section {
    position: relative;
}

.hero-banner {
    min-height: 430px;
    padding: 62px 58px;
    border-radius: 38px;
    background:
        radial-gradient(circle at 78% 28%, rgba(229, 173, 253, 0.21), transparent 28%),
        radial-gradient(circle at 15% 12%, rgba(84, 94, 182, 0.28), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)) !important;
    box-shadow: var(--glass-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.hero-banner::before {
    inset: 0;
    width: auto;
    height: auto;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, 0.18), transparent 25%, transparent 70%, rgba(229, 173, 253, 0.09)),
        radial-gradient(circle at 76% 84%, rgba(84, 94, 182, 0.30), transparent 34%);
    border-radius: inherit;
}

.hero-banner::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 8%;
    right: 8%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    opacity: 0.56;
    pointer-events: none;
}

.hero-header-row {
    margin-bottom: 34px;
}

.hero-badge,
.online-pill,
.promo-timer {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 28px rgba(3, 4, 18, 0.16);
}

.hero-badge {
    padding: 8px 15px;
    color: #F0D8FF;
    letter-spacing: 1.2px;
}

.online-pill {
    padding: 8px 16px;
    background: rgba(115, 226, 183, 0.10);
    border-color: rgba(115, 226, 183, 0.22);
}

.online-count {
    color: #9CF0CF;
}

.pulse-dot {
    background: #73E2B7;
    box-shadow: 0 0 16px rgba(115, 226, 183, 0.70);
}

.hero-title {
    max-width: 720px;
    font-size: clamp(44px, 6vw, 70px);
    font-weight: 800;
    letter-spacing: -3.3px;
    line-height: 0.98;
    background: linear-gradient(118deg, #FFFFFF 8%, #F8EDFF 42%, #E5ADFD 72%, #A99FEA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 14px 28px rgba(84, 94, 182, 0.16));
}

.hero-subtitle {
    max-width: 610px;
    color: rgba(247, 244, 255, 0.72);
    font-size: 17px;
    line-height: 1.72;
}

.hero-character {
    right: 26px;
    opacity: 0.96;
    filter: drop-shadow(0 26px 38px rgba(3, 4, 18, 0.44));
}

.hero-character img {
    height: 94%;
    max-height: 350px;
}

.promo-timer {
    padding: 9px 13px 9px 18px;
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.18), rgba(229, 173, 253, 0.10));
}

.promo-text {
    color: #F2D9FF;
}

.time-box {
    min-width: 48px;
    justify-content: center;
    background: rgba(7, 8, 22, 0.28);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Buttons */
.btn {
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px rgba(3, 4, 18, 0.13);
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 173, 253, 0.35);
    background: rgba(255, 255, 255, 0.11);
}

.btn:active,
.btn-vk:active,
.item-id:active,
.server-btn:active,
.tabs .tab-links > li > a:active {
    transform: scale(0.975);
    transition-duration: 0.09s;
}

.btn-hero,
.item-id .price,
.modal-footer #submitBtn,
.server-btn.active {
    color: #fff !important;
    background: var(--brand-gradient) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

.btn-hero {
    height: 56px;
    padding: 0 28px;
    border-radius: 18px;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.01);
    filter: saturate(1.08) brightness(1.04);
}

/* Stats */
.stats-section {
    margin-top: 28px;
    margin-bottom: 70px;
}

.stats-grid {
    gap: 18px;
}

.stat-card {
    min-height: 116px;
    padding: 24px;
    border-radius: 27px;
    transition: transform var(--transition-speed) cubic-bezier(0.2, 0.8, 0.2, 1), border-color var(--transition-speed), background var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.012);
    border-color: var(--border-hover) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.135), rgba(255, 255, 255, 0.055)) !important;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 19px;
    color: #fff;
    background: var(--brand-gradient-soft);
    border: 1px solid rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 14px 32px rgba(84, 94, 182, 0.19);
}

.stat-number {
    font-size: 26px;
    letter-spacing: -0.8px;
}

.stat-label {
    color: var(--text-secondary);
}

/* Server segmented control */
.server-selector-container {
    position: relative;
    z-index: 2;
}

.server-buttons {
    padding: 6px !important;
    gap: 5px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.065) !important;
}

.server-btn {
    min-height: 46px;
    padding: 11px 24px !important;
    border-radius: 15px !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.server-btn:not(.active):hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.server-btn.active {
    color: #fff !important;
}

/* Tabs */
.tabs-wrapper {
    padding: 8px;
    margin-bottom: 34px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.045);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 20px 48px rgba(3, 4, 18, 0.16);
}

.tabs .tab-links {
    gap: 6px;
}

.tabs .tab-links > li > a {
    height: 46px;
    padding: 0 18px;
    border-color: transparent;
    border-radius: 15px;
    background: transparent;
}

.tabs .tab-links > li.active > a {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--brand-gradient-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 28px rgba(84, 94, 182, 0.20);
}

.tabs .tab-links > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
}

.tabs-wrapper .block-right .btn {
    border-radius: 15px;
}

.category-text .panel {
    padding: 18px 22px;
    border-radius: 20px;
    color: rgba(247, 244, 255, 0.72);
}

.blockname {
    color: rgba(244, 241, 255, 0.56);
    letter-spacing: 1.4px;
}

/* Product and content cards */
.items {
    gap: 20px;
}

.item-id {
    min-height: 282px;
    padding: 34px 26px;
    border-radius: 31px;
    overflow: hidden;
    transition: transform var(--transition-speed) cubic-bezier(0.2, 0.8, 0.2, 1), border-color var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}

.item-id::before {
    top: -35%;
    left: -55%;
    width: 72%;
    height: 170%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: rotate(20deg);
    opacity: 0;
    transition: left 0.8s ease, opacity 0.25s ease;
}

.item-id::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(31px - 1px);
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 38%);
    opacity: 0.62;
    z-index: 0;
}

.item-id > * {
    position: relative;
    z-index: 1;
}

.item-id:hover::before {
    left: 92%;
    opacity: 0.7;
}

.item-id:hover {
    transform: translateY(-9px) scale(1.018);
    border-color: rgba(229, 173, 253, 0.36) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.145), rgba(255, 255, 255, 0.060)) !important;
    box-shadow: 0 30px 78px rgba(3, 4, 18, 0.42), 0 18px 52px rgba(84, 94, 182, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.item-id .image {
    width: 94px;
    height: 94px;
    margin-bottom: 24px;
    filter: drop-shadow(0 16px 24px rgba(3, 4, 18, 0.40));
}

.item-id .title {
    color: #fff;
    letter-spacing: 0.25px;
}

.item-id .price {
    min-height: 42px;
    padding: 10px 21px;
    border-radius: 14px;
}

.item-id .price i {
    color: #fff;
}

.item-id .discount {
    top: 16px;
    right: 16px;
    color: #FFE9F7;
    background: linear-gradient(135deg, rgba(255, 92, 152, 0.60), rgba(229, 173, 253, 0.35));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px rgba(255, 80, 145, 0.18);
}

/* FAQ and recent payments */
.payments,
.faq-section {
    border-top-color: rgba(255, 255, 255, 0.10);
}

.payment-list {
    gap: 12px;
}

.payment-id.window {
    min-height: auto;
    padding: 13px 17px;
    border-radius: 19px;
}

.payment-id.window:hover {
    transform: translateY(-3px) scale(1.005);
}

.payment-id.window .amount {
    background: rgba(229, 173, 253, 0.14);
    color: #F3DEFF;
}

.faq-accordion {
    max-width: 820px;
}

.faq-item {
    border-radius: 23px;
}

.faq-item.active {
    border-color: rgba(229, 173, 253, 0.34) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)) !important;
}

.faq-question {
    min-height: 66px;
    padding: 20px 24px;
}

.faq-question i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #F1D6FF;
    background: rgba(229, 173, 253, 0.12);
}

.faq-answer p {
    color: var(--text-secondary);
    padding: 0 24px 22px;
}

/* Modal and forms */
.modal {
    background: rgba(5, 6, 18, 0.62);
    -webkit-backdrop-filter: blur(34px) saturate(135%);
    backdrop-filter: blur(34px) saturate(135%);
}

.modal > .wrapper > .modal-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 90% 0%, rgba(229, 173, 253, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(36, 35, 69, 0.86), rgba(18, 18, 40, 0.76)) !important;
    box-shadow: 0 42px 110px rgba(2, 3, 16, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.modal-header,
.modal-footer,
.modal-right {
    border-color: rgba(255, 255, 255, 0.10);
}

.input-block input,
.method-card {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.input-block input {
    height: 52px;
    border-radius: 16px;
}

.input-block input::placeholder {
    color: rgba(244, 241, 255, 0.34);
}

.input-block input:focus {
    border-color: rgba(229, 173, 253, 0.62);
    background: rgba(255, 255, 255, 0.105);
    box-shadow: 0 0 0 4px rgba(84, 94, 182, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.method-card {
    min-height: 50px;
    border-radius: 16px;
}

.payment-method input[type="radio"]:checked + .method-card {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.20);
    background: var(--brand-gradient-soft);
    box-shadow: 0 0 0 3px rgba(84, 94, 182, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.modal-footer button {
    border-radius: 16px;
}

.modal-footer .btn-clear {
    color: rgba(247, 244, 255, 0.72);
    background: rgba(255, 255, 255, 0.065);
}

/* Alerts and purchase notifications */
.a-alert .alert,
.purchase-toast,
.test-success-alert {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(26, 27, 52, 0.75) !important;
    -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
    backdrop-filter: blur(28px) saturate(160%) !important;
    box-shadow: 0 26px 70px rgba(3, 4, 18, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.purchase-toast {
    border-radius: 24px;
}

/* Footer */
.footer {
    width: min(1120px, calc(100% - 32px));
    margin: 96px auto 18px;
    padding: 38px 28px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    backdrop-filter: blur(28px) saturate(155%);
    box-shadow: 0 26px 70px rgba(3, 4, 18, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.footer-copy {
    color: var(--text-secondary);
}

.contact-value:hover {
    color: #E5ADFD;
}

/* Seasonal elements adapted to the palette */
body.new-year .lightbulb {
    background: linear-gradient(135deg, #FFFFFF, #E5ADFD) !important;
    animation-name: glassBulb !important;
    box-shadow: 0 0 10px rgba(229, 173, 253, 0.55);
}

@keyframes glassBulb {
    0%, 100% { opacity: 0.55; transform: scale(0.88); filter: brightness(0.8); }
    50% { opacity: 1; transform: scale(1.08); filter: brightness(1.25); box-shadow: 0 0 16px rgba(229, 173, 253, 0.9); }
}

.snowflake {
    color: #F4E8FF;
    text-shadow: 0 0 12px rgba(229, 173, 253, 0.7);
}

.bg-item {
    opacity: 0.12 !important;
    mix-blend-mode: screen;
}

/* Accessibility and platform behavior */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(229, 173, 253, 0.58);
    outline-offset: 3px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header,
    .hero-banner,
    .stat-card,
    .item-id,
    .payment-id.window,
    .faq-item,
    .category-text .panel,
    .modal > .wrapper > .modal-content,
    .server-buttons,
    .purchase-toast {
        background: #18182D !important;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 104px;
    }

    .hero-banner {
        min-height: auto;
        padding: 52px 36px;
    }

    .hero-title {
        font-size: clamp(40px, 8vw, 56px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 92px;
    }

    .header {
        top: calc(10px + env(safe-area-inset-top));
        width: calc(100% - 20px);
        border-radius: 23px;
    }

    .navbar {
        min-height: 64px;
        height: auto;
        padding: 10px 12px 10px 16px;
        flex-wrap: wrap;
    }

    .navbar-mobile {
        display: inline-flex;
    }

    .btn-vk {
        display: none;
    }

    .navbar-wrapper {
        display: none;
        order: 3;
        width: 100%;
        padding-top: 10px;
    }

    .navbar.active .navbar-wrapper {
        display: block;
        animation: menuReveal 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .navbar-wrapper ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        padding: 6px;
    }

    .navbar-wrapper ul li a {
        justify-content: center;
        display: flex;
        text-align: center;
    }

    @keyframes menuReveal {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-banner {
        padding: 40px 22px;
        border-radius: 31px;
        text-align: center;
    }

    .hero-header-row {
        justify-content: center;
        margin-bottom: 28px;
    }

    .hero-title {
        margin-left: auto;
        margin-right: auto;
        letter-spacing: -2.2px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin: 0 auto 28px;
    }

    .promo-timer {
        flex-direction: column;
        border-radius: 22px;
        padding: 13px;
        gap: 9px;
    }

    .timer-countdown {
        gap: 3px;
    }

    .time-box {
        min-width: 44px;
        padding: 4px 7px;
    }

    .stats-section {
        margin-bottom: 54px;
    }

    .stat-card {
        border-radius: 24px;
    }

    .server-buttons {
        display: grid !important;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-btn {
        justify-content: center;
        padding: 11px 14px !important;
    }

    .tabs-wrapper {
        padding: 7px;
        border-radius: 22px;
    }

    .tabs .tab-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .tabs .tab-links > li > a {
        justify-content: center;
        padding: 0 10px;
    }

    .item-id {
        min-height: 260px;
        border-radius: 27px;
    }

    .modal {
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .modal > .wrapper > .modal-content {
        padding: 24px 18px;
        border-radius: 28px;
    }

    .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .modal-footer button {
        width: 100%;
    }

    .footer {
        width: calc(100% - 20px);
        margin-top: 70px;
        padding: 32px 18px;
        border-radius: 28px;
    }

    .footer-contacts {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .logo {
        font-size: 18px;
    }

    .hero-banner {
        padding: 34px 17px;
    }

    .hero-title {
        font-size: clamp(36px, 12vw, 48px);
    }

    .hero-badge {
        font-size: 9px;
        line-height: 1.4;
    }

    .online-pill {
        width: 100%;
        justify-content: center;
    }

    .btn-hero {
        width: 100%;
        padding: 0 18px;
    }

    .server-buttons,
    .tabs .tab-links,
    .navbar-wrapper ul {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .items {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 20px;
    }

    .payment-list {
        flex-direction: column;
    }

    .purchase-toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

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

/* =========================================================================
   MINEJESTIC home hero — night Minecraft backdrop and store benefits
   ========================================================================= */
.home-page .hero-banner {
    min-height: 710px;
    padding: 48px 52px 44px;
    text-align: left;
    background:
        linear-gradient(90deg, rgba(8, 9, 20, 0.96) 0%, rgba(8, 9, 20, 0.88) 36%, rgba(11, 13, 31, 0.60) 68%, rgba(8, 9, 20, 0.52) 100%),
        linear-gradient(0deg, rgba(8, 9, 20, 0.96) 0%, rgba(84, 94, 182, 0.16) 49%, rgba(229, 173, 253, 0.16) 100%),
        url('../img/minecraft-night-bg.jpeg') center 48% / cover no-repeat !important;
    border-color: rgba(229, 173, 253, 0.21) !important;
    box-shadow:
        0 38px 110px rgba(2, 3, 16, 0.58),
        0 20px 70px rgba(84, 94, 182, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.home-page .hero-banner::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background:
        radial-gradient(circle at 78% 22%, rgba(229, 173, 253, 0.22), transparent 31%),
        radial-gradient(circle at 15% 8%, rgba(84, 94, 182, 0.31), transparent 35%),
        linear-gradient(112deg, rgba(255, 255, 255, 0.11), transparent 26%, transparent 72%, rgba(229, 173, 253, 0.07));
    mix-blend-mode: screen;
    opacity: 0.88;
}

.home-page .hero-header-row,
.home-page .hero-main-content {
    position: relative;
    z-index: 5;
}

.home-page .hero-header-row {
    margin-bottom: 42px;
}

.home-page .hero-main-content {
    max-width: 100%;
}

.home-page .hero-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 34px;
}

.home-page .hero-title {
    max-width: none;
    margin: 0;
    font-size: clamp(46px, 6.2vw, 76px);
    line-height: 0.94;
    letter-spacing: -4px;
    text-shadow: 0 20px 42px rgba(3, 4, 18, 0.34);
}

.home-page .hero-store-label {
    margin: 7px 0 0;
    color: rgba(247, 244, 255, 0.83);
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.35px;
}

.home-page .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.home-page .hero-benefit {
    min-height: 214px;
    padding: 22px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(26, 27, 58, 0.64), rgba(12, 14, 34, 0.47));
    -webkit-backdrop-filter: blur(21px) saturate(145%);
    backdrop-filter: blur(21px) saturate(145%);
    box-shadow:
        0 18px 44px rgba(2, 3, 16, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.17);
    transition: transform var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
}

.home-page .hero-benefit:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 173, 253, 0.38);
    background: linear-gradient(145deg, rgba(40, 40, 81, 0.71), rgba(15, 17, 42, 0.56));
}

.home-page .hero-benefit-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 17px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.88), rgba(229, 173, 253, 0.55));
    box-shadow:
        0 13px 30px rgba(84, 94, 182, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.home-page .hero-benefit h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.7px;
}

.home-page .hero-benefit p {
    margin: 0;
    color: rgba(247, 244, 255, 0.68);
    font-size: 12.5px;
    line-height: 1.58;
}

.home-page .hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.home-page .hero-bottom-row .promo-timer {
    margin: 0;
}

.home-page .hero-actions {
    flex: 0 0 auto;
}

.home-page .hero-character {
    display: none !important;
}

.home-page .stats-section {
    margin-top: 30px;
}

@media (max-width: 992px) {
    .home-page .hero-banner {
        min-height: 0;
        padding: 44px 38px 40px;
        background-position: 58% center !important;
    }

    .home-page .hero-benefits {
        grid-template-columns: 1fr;
    }

    .home-page .hero-benefit {
        min-height: 0;
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 17px;
        align-items: start;
    }

    .home-page .hero-benefit-icon {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .home-page .hero-bottom-row {
        align-items: stretch;
        flex-direction: column;
    }

    .home-page .hero-actions,
    .home-page .hero-actions .btn-hero {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .home-page .hero-banner {
        padding: 36px 22px 28px;
        text-align: left;
        background-position: 62% center !important;
    }

    .home-page .hero-header-row {
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 34px;
    }

    .home-page .hero-badge {
        margin: 0;
    }

    .home-page .online-pill {
        width: fit-content;
    }

    .home-page .hero-title {
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -3px;
    }

    .home-page .hero-store-label {
        margin-top: 6px;
    }

    .home-page .hero-benefit {
        padding: 18px;
        border-radius: 20px;
    }

    .home-page .hero-bottom-row .promo-timer {
        width: 100%;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .home-page .hero-banner {
        padding: 30px 16px 20px;
        border-radius: 28px;
        background-position: 67% center !important;
    }

    .home-page .hero-header-row {
        gap: 10px;
        margin-bottom: 28px;
    }

    .home-page .hero-brand-block {
        margin-bottom: 26px;
    }

    .home-page .hero-title {
        font-size: 39px;
        letter-spacing: -2.5px;
    }

    .home-page .hero-store-label {
        font-size: 18px;
    }

    .home-page .hero-benefit {
        grid-template-columns: 42px 1fr;
        column-gap: 13px;
        padding: 16px;
    }

    .home-page .hero-benefit-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 18px;
    }

    .home-page .hero-benefit h2 {
        font-size: 11px;
        letter-spacing: 0.45px;
    }

    .home-page .hero-benefit p {
        font-size: 12px;
    }
}

/* Header width aligned with the main content and hero banner. */
.header {
    width: calc(100% - 48px);
    max-width: 1132px;
}

@media (max-width: 480px) {
    .header {
        width: calc(100% - 28px);
    }
}


/* Shared inner-page alignment and agreement layout. */
.content-page .page-hero,
.content-page .hero-banner {
    text-align: center;
}

.content-page .hero-banner > .hero-badge {
    display: inline-flex;
    margin: 0 auto 20px;
}

.content-page .hero-banner > .hero-title {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content-page .hero-banner > .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content-page .section-title {
    width: 100%;
    max-width: none;
    margin: 0 auto 32px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
}

.agreement-document {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 4px 16px 10px;
    color: var(--text-secondary);
    text-align: left;
}

.agreement-intro {
    margin: 0 0 36px;
    color: rgba(244, 241, 255, 0.82);
    font-size: 15px;
    line-height: 1.85;
}

.agreement-section {
    padding: 0 0 28px;
}

.agreement-section + .agreement-section {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.agreement-section h2 {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.agreement-section h2 span {
    margin-right: 9px;
    color: var(--color-accent-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.agreement-section p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.85;
}

.agreement-section p + p {
    margin-top: 14px;
}

@media (max-width: 768px) {
    .content-page .hero-banner > .hero-title {
        max-width: 100%;
    }

    .agreement-document {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (max-width: 480px) {
    .content-page .section-title {
        font-size: 21px;
    }

    .agreement-intro {
        margin-bottom: 30px;
        font-size: 14px;
        line-height: 1.75;
    }

    .agreement-section {
        padding-bottom: 24px;
    }

    .agreement-section + .agreement-section {
        padding-top: 24px;
    }

    .agreement-section h2 {
        font-size: 17px;
    }

    .agreement-section p {
        font-size: 13px;
        line-height: 1.8;
    }
}

/* Legal pages dropdown navigation. */
.navbar-wrapper .nav-dropdown {
    position: relative;
}

.navbar-wrapper .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

/* Fixed square keeps the chevron perfectly centred while it rotates. */
.navbar-wrapper .nav-dropdown-toggle .fa {
    position: relative;
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    font-size: 0;
    line-height: 0;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 0.2s ease;
}

.navbar-wrapper .nav-dropdown-toggle .fa::before,
.navbar-wrapper .nav-dropdown-toggle .fa::after {
    content: "";
    position: absolute;
    top: 7px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.navbar-wrapper .nav-dropdown-toggle .fa::before {
    left: 2px;
    transform: rotate(45deg);
    transform-origin: 100% 50%;
}

.navbar-wrapper .nav-dropdown-toggle .fa::after {
    right: 2px;
    transform: rotate(-45deg);
    transform-origin: 0 50%;
}

.navbar-wrapper .nav-dropdown-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 9px);
    left: 50%;
    display: flex;
    width: max-content;
    min-width: 0;
    padding: 8px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -8px);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    background: rgba(20, 20, 43, 0.96);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 20px 50px rgba(2, 3, 16, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.navbar-wrapper .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 10px;
}

.navbar-wrapper .nav-dropdown:hover > .nav-dropdown-menu,
.navbar-wrapper .nav-dropdown:focus-within > .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.navbar-wrapper .nav-dropdown:hover > .nav-dropdown-toggle .fa,
.navbar-wrapper .nav-dropdown:focus-within > .nav-dropdown-toggle .fa {
    transform: rotate(180deg);
}

.navbar-wrapper .nav-dropdown-menu li,
.navbar-wrapper .nav-dropdown-menu li a {
    width: fit-content;
    max-width: 100%;
}

.navbar-wrapper .nav-dropdown-menu li a,
.navbar-wrapper ul li.active .nav-dropdown-menu li a {
    min-height: 42px;
    padding: 10px 13px;
    justify-content: flex-start;
    color: var(--text-secondary);
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
}

.navbar-wrapper .nav-dropdown-menu li a:hover,
.navbar-wrapper .nav-dropdown-menu li a:focus-visible,
.navbar-wrapper .nav-dropdown-menu li a.active,
.navbar-wrapper ul li.active .nav-dropdown-menu li a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.50), rgba(229, 173, 253, 0.23));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 8px 20px rgba(5, 6, 24, 0.24);
}

/* Continuous legal document typography. */
.agreement-section-first {
    padding-top: 0;
}

.agreement-section p strong,
.agreement-final strong {
    color: rgba(244, 241, 255, 0.9);
    font-weight: 700;
}

.agreement-list {
    margin: 10px 0 18px;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.85;
}

.agreement-list li + li {
    margin-top: 5px;
}

.agreement-final {
    margin: 4px 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(244, 241, 255, 0.86);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.85;
}

@media (max-width: 768px) {
    .navbar-wrapper .nav-dropdown {
        grid-column: 1 / -1;
    }

    .navbar-wrapper .nav-dropdown > .nav-dropdown-toggle {
        width: 100%;
        cursor: pointer;
    }

    .navbar-wrapper .nav-dropdown-toggle .fa {
        display: inline-block;
    }

    .navbar-wrapper .nav-dropdown-menu {
        position: static;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
        margin-top: 6px;
        padding: 6px;
        gap: 6px;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.10);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .navbar-wrapper .nav-dropdown.is-open > .nav-dropdown-menu {
        display: grid;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        animation: legalMenuReveal 0.22s ease-out;
    }

    .navbar-wrapper .nav-dropdown:not(.is-open) > .nav-dropdown-toggle .fa {
        transform: rotate(0deg);
    }

    .navbar-wrapper .nav-dropdown.is-open > .nav-dropdown-toggle .fa {
        transform: rotate(180deg);
    }

    .navbar-wrapper .nav-dropdown-menu li,
    .navbar-wrapper .nav-dropdown-menu li a {
        width: 100%;
    }

    .navbar-wrapper .nav-dropdown-menu li a,
    .navbar-wrapper ul li.active .nav-dropdown-menu li a {
        min-height: 38px;
        padding: 6px 10px;
        justify-content: center;
        text-align: center;
        line-height: 16px;
        white-space: normal;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    @keyframes legalMenuReveal {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 480px) {
    .navbar-wrapper .nav-dropdown-menu {
        grid-template-columns: 1fr;
    }

    .agreement-list {
        padding-left: 20px;
        font-size: 13px;
        line-height: 1.8;
    }

    .agreement-final {
        font-size: 13px;
        line-height: 1.8;
    }
}

/* Duration selector for privilege purchases */
.price-period {
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.62;
    white-space: nowrap;
}

.period-select-wrap {
    position: relative;
    width: 100%;
}

.period-select-wrap select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 52px;
    padding: 0 48px 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    outline: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--transition-speed), background var(--transition-speed), box-shadow var(--transition-speed);
}

.period-select-wrap select:focus {
    border-color: rgba(229, 173, 253, 0.62);
    background: rgba(255, 255, 255, 0.105);
    box-shadow: 0 0 0 4px rgba(84, 94, 182, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.period-select-wrap select option {
    color: #fff;
    background: #17172b;
}

.period-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: rgba(255, 255, 255, 0.72);
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
    transform-origin: 50% 50%;
}

#perioded[hidden] {
    display: none !important;
}

/* Bottom edge / iOS safe-area fix.
 * Keep the browser safe area and the document canvas on the same dark color,
 * and move the decorative lower glow away from the physical viewport edge. */
html,
body {
    min-height: 100%;
    background-color: var(--bg-main) !important;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    background-repeat: no-repeat !important;
}

body::after {
    bottom: -340px;
}

.footer {
    margin-bottom: max(18px, env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll !important;
    }

    .footer {
        margin-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* Final viewport-edge normalization.
 * Mobile Safari/Chrome may paint the fixed lower ambient pseudo-element into
 * the browser safe-area, which appears as a solid purple strip. */
html {
    min-height: 100%;
    background: var(--bg-main) !important;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-main) !important;
}

body::after {
    bottom: -420px;
    opacity: 0.16;
}

@media (max-width: 768px) {
    body::after {
        display: none !important;
    }
}


/* Mobile browser-chrome colour bridge.
 * iOS Safari paints its bottom toolbar from <meta name="theme-color">, while
 * the document previously ended on the purple final stop of the page gradient.
 * The page now fades to --bg-main before the viewport edge, matching the
 * server-rendered theme-color exactly and removing the visible horizontal seam. */
@media (max-width: 768px) {
    html {
        min-height: 100%;
        background-color: var(--bg-main) !important;
        overscroll-behavior-y: none;
    }

    body,
    body.new-year {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        background-color: var(--bg-main) !important;
        background-image:
            radial-gradient(circle at 12% 3%, rgba(229, 173, 253, 0.25), transparent 31%),
            radial-gradient(circle at 88% 13%, rgba(84, 94, 182, 0.31), transparent 34%),
            radial-gradient(circle at 50% 55%, rgba(125, 100, 212, 0.14), transparent 46%),
            linear-gradient(160deg,
                var(--bg-main) 0%,
                #0E1024 44%,
                #111026 72%,
                var(--bg-main) 91%,
                var(--bg-main) 100%) !important;
        background-attachment: scroll !important;
        background-repeat: no-repeat !important;
        padding-bottom: max(1px, env(safe-area-inset-bottom));
    }

    .footer {
        margin-bottom: max(1px, env(safe-area-inset-bottom));
    }
}


/* Vanilla+ privilege descriptions */
.item-id .short-description {
    width: 100%;
    min-height: 58px;
    margin: -10px 0 10px;
    color: rgba(244, 241, 255, 0.70);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.item-id .description-hint {
    margin: 0 0 18px;
    color: rgba(229, 173, 253, 0.78);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.15px;
}

.item-id .description-hint strong {
    color: #fff;
}

.product-details {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.product-details-summary {
    margin: 0 0 14px;
    color: rgba(247, 244, 255, 0.84);
    font-size: 12px;
    line-height: 1.65;
}

.product-details-title,
.wiki-feature-title {
    margin-bottom: 9px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.product-details-features,
.wiki-feature-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(244, 241, 255, 0.68);
    font-size: 11px;
    line-height: 1.62;
}

.product-details-features {
    max-height: 190px;
    overflow-y: auto;
    padding-right: 7px;
}

.product-details-features li + li,
.wiki-feature-list li + li {
    margin-top: 4px;
}

.wiki-privilege-card {
    min-height: auto;
}

.wiki-privilege-card .title {
    margin-bottom: 12px;
    color: var(--color-accent);
    font-size: 18px;
}

.wiki-privilege-description {
    margin: 0 0 18px;
    color: rgba(244, 241, 255, 0.72);
    font-size: 13px;
    line-height: 1.65;
}

.wiki-price-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.wiki-price-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
    font-size: 11px;
}

.wiki-price-chip strong {
    color: rgba(229, 173, 253, 0.86);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

@media (max-width: 768px) {
    .item-id .short-description {
        min-height: 54px;
        font-size: 11px;
    }

    .product-details {
        padding: 15px;
    }

    .product-details-features {
        max-height: 155px;
    }
}


.item-id .price .buy-label {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.82;
}

/* Checkout usability and explicit category labels — 2026-07-23 */
.tabs .tab-links > li > a .tab-icon {
    flex: 0 0 auto;
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tabs .tab-links > li > a .tab-label {
    display: inline-block !important;
    min-width: 0;
    color: inherit;
    white-space: nowrap;
}

.method-card {
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.method-card-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 24px;
}

.method-card-heading .card-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.payment-provider-logo {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(3, 4, 18, 0.28);
}

.platega-card {
    padding: 15px;
}

.platega-capabilities {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.platega-capability {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.platega-capability.crypto-capability {
    background: rgba(84, 94, 182, 0.10);
}

.payment-brand-stack {
    display: flex;
    align-items: center;
    min-width: 68px;
}

.payment-brand-stack img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(3, 4, 18, 0.24);
}

.payment-brand-stack img + img {
    margin-left: -7px;
}

.capability-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.capability-copy strong {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.capability-copy small {
    color: rgba(244, 241, 255, 0.58);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
}

.payment-method input[type="radio"]:checked + .method-card .platega-capability {
    border-color: rgba(229, 173, 253, 0.22);
}

html.modal-open {
    overflow: hidden;
}

body.modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.modal {
    overflow: hidden;
    overscroll-behavior: contain;
}

.modal > .wrapper {
    min-height: 0;
}

.modal > .wrapper > .modal-content {
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@media (max-width: 768px) {
    .tabs .tab-links > li > a {
        gap: 9px;
    }

    .tabs .tab-links > li > a .tab-label {
        font-size: 13px;
    }

    .modal {
        height: 100vh;
        height: 100dvh;
    }

    .modal > .wrapper {
        height: 100%;
        align-items: stretch;
    }

    .modal > .wrapper > .modal-content {
        align-self: stretch;
        max-height: 100%;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .modal-split {
        gap: 22px;
    }

    .modal-right {
        padding-top: 22px;
    }
}

@media (max-width: 480px) {
    .tabs .tab-links > li > a {
        justify-content: flex-start;
        padding: 0 15px;
    }

    .platega-capability {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    .payment-brand-stack {
        min-width: 62px;
    }

    .payment-brand-stack img {
        width: 26px;
        height: 26px;
    }
}

/* Navigation pill geometry fix: keep every button centred inside the rounded rail. */
.navbar-wrapper {
    min-width: 0;
}

.navbar-wrapper > ul {
    min-height: 50px;
    margin: 0;
    align-items: center;
    box-sizing: border-box;
    line-height: 1;
}

.navbar-wrapper > ul > li {
    display: flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
}

.navbar-wrapper > ul > li > a {
    display: inline-flex;
    height: 38px;
    min-height: 38px;
    padding-block: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 1.2;
    vertical-align: top;
    background-clip: padding-box;
}

/* The old drop shadow bled outside the rounded navigation background. */
.navbar-wrapper > ul > li > a:hover,
.navbar-wrapper > ul > li.active > a {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

@media (max-width: 768px) {
    .navbar-wrapper > ul > li,
    .navbar-wrapper > ul > li > a {
        width: 100%;
    }

    .navbar-wrapper > ul > li.nav-dropdown {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================================================
   Exact title and legal-menu repair — 2026-07-23
   ======================================================================== */

/* Unbounded draws the breve above uppercase Й outside a tight 0.98 line box.
   Keep real space above the glyph; do not compensate it with a negative margin. */
.content-page .page-title {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 0.22em 0.10em 0.10em;
    box-sizing: border-box;
    line-height: 1.16;
    overflow: visible;
    text-align: center;
    text-wrap: balance;
}

.content-page .hero-banner > .page-title.page-title--wiki {
    max-width: 920px;
    font-size: clamp(38px, 5.7vw, 68px);
    letter-spacing: clamp(-2.4px, -0.20vw, -1px);
}

/* Long legal headings must always remain inside the hero's padded content box. */
.content-page .hero-banner > .page-title.page-title--legal {
    max-width: 880px;
    font-size: clamp(30px, 4.35vw, 52px);
    letter-spacing: clamp(-1.8px, -0.12vw, -0.7px);
    line-height: 1.20;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Scope the active and hover styles to the direct navigation level so the
   active parent does not accidentally paint every link inside its submenu. */
.navbar-wrapper > ul > li > a:hover,
.navbar-wrapper > ul > li > a:focus-visible,
.navbar-wrapper > ul > li.active > a {
    color: #fff;
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.50), rgba(229, 173, 253, 0.23));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* A visible, even gutter around both legal links. */
.navbar-wrapper .nav-dropdown-menu {
    width: 304px;
    min-width: 304px;
    padding: 12px;
    gap: 8px;
    align-items: stretch;
    box-sizing: border-box;
}

.navbar-wrapper .nav-dropdown-menu > li,
.navbar-wrapper .nav-dropdown-menu > li > a {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.navbar-wrapper .nav-dropdown-menu > li > a,
.navbar-wrapper > ul > li.active .nav-dropdown-menu > li > a {
    display: flex;
    min-height: 42px;
    padding: 10px 14px;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: none;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease,
                color 0.18s ease, transform 0.18s ease;
}

/* Current page remains indicated, while hover is visibly stronger. */
.navbar-wrapper .nav-dropdown-menu > li > a.active,
.navbar-wrapper > ul > li.active .nav-dropdown-menu > li > a.active {
    color: #fff;
    border-color: rgba(229, 173, 253, 0.20);
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.42), rgba(229, 173, 253, 0.18));
}

.navbar-wrapper .nav-dropdown-menu > li > a:hover,
.navbar-wrapper .nav-dropdown-menu > li > a:focus-visible,
.navbar-wrapper > ul > li.active .nav-dropdown-menu > li > a:hover,
.navbar-wrapper > ul > li.active .nav-dropdown-menu > li > a:focus-visible {
    color: #fff;
    border-color: rgba(229, 173, 253, 0.46);
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.70), rgba(229, 173, 253, 0.34));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transform: translateX(3px);
}

/* Hovering the legal toggle itself also has a clear state, including on an
   already active legal page. */
.navbar-wrapper .nav-dropdown:hover > .nav-dropdown-toggle,
.navbar-wrapper .nav-dropdown:focus-within > .nav-dropdown-toggle {
    color: #fff;
    background: linear-gradient(135deg, rgba(84, 94, 182, 0.66), rgba(229, 173, 253, 0.32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@media (max-width: 768px) {
    .content-page .page-title {
        padding-top: 0.24em;
        line-height: 1.18;
    }

    .content-page .hero-banner > .page-title.page-title--wiki {
        font-size: clamp(34px, 8.4vw, 54px);
    }

    .content-page .hero-banner > .page-title.page-title--legal {
        font-size: clamp(25px, 6.1vw, 40px);
        letter-spacing: -0.8px;
    }

    .navbar-wrapper .nav-dropdown-menu {
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        padding: 12px;
        gap: 8px;
    }

    .navbar-wrapper .nav-dropdown-menu > li > a,
    .navbar-wrapper > ul > li.active .nav-dropdown-menu > li > a {
        min-height: 42px;
        padding: 9px 12px;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .navbar-wrapper .nav-dropdown-menu > li > a:hover,
    .navbar-wrapper .nav-dropdown-menu > li > a:focus-visible,
    .navbar-wrapper > ul > li.active .nav-dropdown-menu > li > a:hover,
    .navbar-wrapper > ul > li.active .nav-dropdown-menu > li > a:focus-visible {
        transform: none;
    }
}

@media (max-width: 480px) {
    .content-page .hero-banner > .page-title.page-title--wiki {
        font-size: clamp(30px, 10.4vw, 43px);
    }

    .content-page .hero-banner > .page-title.page-title--legal {
        font-size: clamp(22px, 7.2vw, 31px);
        line-height: 1.22;
    }
}

@media (max-width: 360px) {
    .content-page .hero-banner > .page-title.page-title--legal {
        font-size: 18px;
        letter-spacing: -0.4px;
        overflow-wrap: anywhere;
    }
}

/* Desktop footer/canvas seam fix.
 * The footer was the last block on every page and had a bottom margin.
 * On desktop that margin collapsed outside the body painting area, exposing
 * the flat html background underneath the page gradient as a solid strip.
 * Keep the spacing as body padding instead, so the same page background
 * paints continuously all the way to the document edge. */
body {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.footer {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: max(1px, env(safe-area-inset-bottom));
    }
}
