/* Global Font */
body,
input,
button,
select,
textarea {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Mobile Responsive Fixes */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* CSS Variables for Element Plus */
:root {
    --el-dialog-padding-primary: 16px;
    --el-dialog-box-shadow: var(--el-box-shadow);
    --el-box-shadow: 0 12px 32px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.08);
    --el-border-radius-base: 12px;
    --el-dialog-bg-color: var(--white);
    --gray-900: #17181e;
    --primary-600: #8b5cf6;
    --primary: #8b5cf6;
    --gray-100: #f4f4f5;
    --gray-400: #9ca3af;
    --gray-700: #374151;
    --white: #fff;
}

@keyframes rotateZ {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#open-screen-loading {
    z-index: 10000;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#open-screen-loading.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loading-image {
    width: 40px;
    height: 40px;
    background: url(../static/loading-icon.png) center/cover no-repeat;
    animation: rotateZ 1s linear infinite;
}

/* Modal Styles - CRITICAL: Must be hidden by default */
.el-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2005;
    display: none !important; /* Force hidden */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
    pointer-events: none;
}

.el-overlay.show {
    display: flex !important;
    opacity: 1;
    visibility: visible !important;
    pointer-events: auto !important;
}

.el-overlay-dialog {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.el-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: var(--el-dialog-box-shadow);
    overflow: hidden;
    word-break: break-word;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
    position: relative;
}

.el-dialog.is-align-center {
    margin: auto;
}

.el-overlay.show .el-dialog {
    transform: scale(1);
}

/* Desktop styles */
@media (min-width: 1023.9px) {
    .el-dialog.\!lg\:w-520px {
        width: 520px !important;
    }
}

/* Mobile styles */
@media (max-width: 1023.9px) {
    .el-dialog.\!max-lg\:w-full {
        width: 100% !important;
    }

    .el-dialog.\!max-lg\:mx-16px {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
}

.el-dialog__header {
    padding: var(--el-dialog-padding-primary);
    padding-bottom: 0;
}

.el-dialog__header::after,
.el-dialog__header::before {
    content: "";
    box-sizing: border-box;
}

.el-overlay-dialog .el-dialog .el-dialog__header {
    padding-bottom: var(--el-dialog-padding-primary);
}

.el-dialog .el-dialog__header {
    border-bottom: 1px solid #f0f0f0;
}

.el-dialog__body {
    padding: 24px;
}

.el-form-item {
    margin-bottom: 16px;
}

.el-input {
    position: relative;
    width: 100%;
}

.el-input__wrapper {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    height: 44px;
    transition: border-color 0.3s;
}

.el-input__wrapper:hover {
    border-color: #c0c4cc;
}

.el-input__wrapper:focus-within {
    border-color: #8b5cf6;
}

.el-input__inner {
    flex: 1;
    width: 100%;
    min-width: 0;
    /* allows flex item to shrink below content size if needed */
    border: none;
    outline: none;
    font-size: 14px;
    padding: 0;
    background: transparent;
    color: #333;
}

.base-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-input.is-disabled .el-input__wrapper {
    background-color: #f5f7fa;
    cursor: not-allowed;
}

.el-input__suffix {
    display: flex;
    align-items: center;
    margin-left: 8px;
    z-index: 10;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

.el-input__suffix svg {
    pointer-events: none;
    /* Let clicks pass through SVG to the span */
}

/* Ensure the clickable span inside suffix also behaves like a flex container for centering */
.el-input__suffix .cursor-pointer {
    display: flex;
    align-items: center;
    height: 100%;
}

.button-wallet {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    transition: all 0.2s;
}

.button-wallet:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Wallet Promo Badges */
.wallet-promo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.badge-new {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

/* Premium Wallet Promo Card */
.wallet-promo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.wallet-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.promo-badge-new {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.promo-badge-bonus {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.promo-badge-bonus svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-title svg {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px;
}

.promo-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item svg {
    width: 14px;
    height: 14px;
    color: #4ade80;
}

.promo-wallet-btn {
    width: 100%;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.promo-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.promo-wallet-btn svg {
    width: 22px;
    height: 22px;
}

.el-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.el-checkbox__input {
    margin-right: 8px;
    position: relative;
    display: inline-block;
    margin-top: 2px;
}

.el-checkbox__original {
    opacity: 0;
    position: absolute;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.el-checkbox__inner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: white;
    transition: all 0.3s;
}

.el-checkbox__original:checked+.el-checkbox__inner {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
}

.el-checkbox__original:checked+.el-checkbox__inner::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.el-checkbox__label {
    font-size: 12px;
    line-height: 18px;
    color: #606266;
}

.button {
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.button-black {
    background-color: #000;
    color: white;
}

.button-black:hover {
    background-color: #333;
}

.cursor-pointer {
    cursor: pointer;
}

.ts {
    transition: all 0.3s;
}

/* ============================================
   UTILITY CLASSES - MISSING STYLES
   Эти классы используются в HTML но были пропущены
   ============================================ */

/* Responsive Breakpoints - HIDE/SHOW */
@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
}

@media (max-width: 1023.9px) {
    .max-lg\:hidden {
        display: none !important;
    }

    .max-lg\:w-full {
        width: 100% !important;
    }

    .max-lg\:mx-16px {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
}

@media (min-width: 1024px) {
    .lg\:w-520px {
        width: 520px !important;
    }

    .lg\:w-240px {
        width: 240px !important;
    }

    .lg\:w-1200px {
        width: 1200px !important;
    }
}

/* Important overrides */
.\!lg\:w-520px {
    width: 520px !important;
}

.\!max-lg\:w-full {
    width: 100% !important;
}

.\!max-lg\:mx-16px {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

.\!px-4px {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.\!mb-16px {
    margin-bottom: 16px !important;
}

.\!mb-0 {
    margin-bottom: 0 !important;
}

.\!absolute {
    position: absolute !important;
}

.\!flex {
    display: flex !important;
}

/* Dark mode classes */
@media (prefers-color-scheme: dark) {
    .dark\:bg-\[\#17181e\] {
        background-color: #17181e !important;
    }
}

.dark\:bg-\[\#17181e\],
.\[\.dark\]\:bg-\[\#17181e\] {
    background-color: #17181e;
}

/* Medium breakpoint styles */
@media (min-width: 768px) {
    .md\:shadow-\[inset_0_-1px_0_0_var\(--gray-100\)\] {
        box-shadow: inset 0 -1px 0 0 var(--gray-100) !important;
    }

    .dark\:md\:shadow-\[inset_0_-1px_0_0_var\(--gray-900\)\] {
        box-shadow: inset 0 -1px 0 0 var(--gray-900) !important;
    }
}

/* Spacing Utilities - Padding */
.px-16px {
    padding-left: 16px;
    padding-right: 16px;
}

.px-18px {
    padding-left: 18px;
    padding-right: 18px;
}

.px-20px {
    padding-left: 20px;
    padding-right: 20px;
}

.px-12px {
    padding-left: 12px;
    padding-right: 12px;
}

.py-12px {
    padding-top: 12px;
    padding-bottom: 12px;
}

.py-18px {
    padding-top: 18px;
    padding-bottom: 18px;
}

.py-20px {
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-80px {
    padding-top: 80px;
    padding-bottom: 80px;
}

.pt-10px {
    padding-top: 10px;
}

.pt-18px {
    padding-top: 18px;
}

.pt-20px {
    padding-top: 20px;
}

.pt-44px {
    padding-top: 44px;
}

.pb-18px {
    padding-bottom: 18px;
}

.pb-24px {
    padding-bottom: 24px;
}

.pb-40px {
    padding-bottom: 40px;
}

.pb-120px {
    padding-bottom: 120px;
}

.p-18px {
    padding: 18px;
}

.p-12px {
    padding: 12px;
}

.pl-14px {
    padding-left: 14px;
}

.pl-24px {
    padding-left: 24px;
}

/* Spacing Utilities - Margin */
.ml-16px {
    margin-left: 16px;
}

.mr-8px {
    margin-right: 8px;
}

.mr-14px {
    margin-right: 14px;
}

.mr-26px {
    margin-right: 26px;
}

.mb-4px {
    margin-bottom: 4px;
}

.mb-8px {
    margin-bottom: 8px;
}

.mb-10px {
    margin-bottom: 10px;
}

.mb-16\% {
    margin-bottom: 16%;
}

.mb-16px {
    margin-bottom: 16px;
}

.mb-20px {
    margin-bottom: 20px;
}

.mb-24px {
    margin-bottom: 24px;
}

.mb-40px {
    margin-bottom: 40px;
}

.mb-52px {
    margin-bottom: 52px;
}

.mt-4px {
    margin-top: 4px;
}

.mt-7px {
    margin-top: 7px;
}

.mt-8px {
    margin-top: 8px;
}

.mt-10px {
    margin-top: 10px;
}

.mt-16px {
    margin-top: 16px;
}

.mt-20px {
    margin-top: 20px;
}

.mt-22px {
    margin-top: 22px;
}

.mt-32px {
    margin-top: 32px;
}

.my-8px {
    margin-top: 8px;
    margin-bottom: 8px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ml-auto {
    margin-left: auto;
}

/* Spacing Utilities - Gap */
.gap-x-16px {
    column-gap: 16px;
}

.gap-x-24px {
    column-gap: 24px;
}

/* Size Utilities */
.min-h-dvh {
    min-height: 100dvh;
}

.min-h-56px {
    min-height: 56px;
}

.min-w-28px {
    min-width: 28px;
}

.w-full {
    width: 100%;
}

.w-1200px {
    width: 1200px;
}

.w-240px {
    width: 240px;
}

.w-3px {
    width: 3px;
}

.w-1 {
    width: 0.08333%;
    /* 1/12 for flex grid */
}

.h-full {
    height: 100%;
}

.h-40px {
    height: 40px;
}

.h-44px {
    height: 44px;
}

.h-48px {
    height: 48px;
}

.h-52px {
    height: 52px;
}

.h-520px {
    height: 520px;
}

.h-1px {
    height: 1px;
}

.h-20px {
    height: 20px;
}

.max-h-258px {
    max-height: 258px;
}

.m-h-100\% {
    max-height: 100%;
}

.size-14px {
    width: 14px;
    height: 14px;
}

.size-20px {
    width: 20px;
    height: 20px;
}

.size-24px {
    width: 24px;
    height: 24px;
}

.size-48px {
    width: 48px;
    height: 48px;
}

.size-72px {
    width: 72px;
    height: 72px;
}

.size-104px {
    width: 104px;
    height: 104px;
}

.size-132px {
    width: 132px;
    height: 132px;
}

/* Typography Utilities */
.text-12px {
    font-size: 12px;
}

.text-14px {
    font-size: 14px;
}

.text-16px {
    font-size: 16px;
}

.text-18px {
    font-size: 18px;
}

.text-20px {
    font-size: 20px;
}

.text-24px {
    font-size: 24px;
}

.text-36px {
    font-size: 36px;
}

.lh-16px {
    line-height: 16px;
}

.lh-18px {
    line-height: 18px;
}

.lh-20px {
    line-height: 20px;
}

.lh-22px {
    line-height: 22px;
}

.lh-24px {
    line-height: 24px;
}

.lh-28px {
    line-height: 28px;
}

.lh-30px {
    line-height: 30px;
}

.lh-34px {
    line-height: 34px;
}

.lh-44px {
    line-height: 44px;
}

.fw-400 {
    font-weight: 400;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.font-base {
    font-family: inherit;
}

/* Color Utilities */
.c-\[\--gray-900\],
.c-\[\--gray\] {
    color: var(--gray-900);
}

.c-\[\--gray-700\] {
    color: var(--gray-700);
}

.c-\[\--gray-500\] {
    color: var(--gray-500);
}

.c-\[\--gray-400\] {
    color: var(--gray-400);
}

.c-\[\--white\] {
    color: var(--white);
}

.c-white {
    color: #fff;
}

.c-\[\--primary\] {
    color: var(--primary);
}

.c-\[\--primary-600\] {
    color: var(--primary-600);
}

.c-black {
    color: #000;
}

.text-gray-400 {
    color: #9ca3af;
}

.\[\&>a\]\:c-\[\--primary-600\] > a {
    color: var(--primary-600);
}

.\[\&>a\]\:inline-block > a {
    display: inline-block;
}

.\[\&_span\]\:c-\[\--primary\] span {
    color: var(--primary);
}

.\[\&\.dark\]\:bg-\[\#17181e\].dark {
    background-color: #17181e;
}

.\[\&\.dark\]\:md\:shadow-\[inset_0_-1px_0_0_var\(--gray-900\)\].dark {
    box-shadow: inset 0 -1px 0 0 var(--gray-900);
}

/* Background Utilities */
.bg-white {
    background-color: #fff;
}

.bg-\[\--gray-100\] {
    background-color: var(--gray-100);
}

.bg-\[\--gray-900\] {
    background-color: var(--gray-900);
}

.bg-\[\--white\] {
    background-color: var(--white);
}

.bg-\[\--primary\] {
    background-color: var(--primary);
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-\[\#eee\] {
    background-color: #eee;
}

.bg-\[linear-gradient\(180deg\,\#fff_6\.27\%\,\#f4f4f5_100\%\)\] {
    background: linear-gradient(180deg, #fff 6.27%, #f4f4f5 100%);
}

.bg-\[linear-gradient\(90deg\,\#fff_0\%\,\#fcfaff_100\%\)\] {
    background: linear-gradient(90deg, #fff 0%, #fcfaff 100%);
}

/* Layout Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1 1 0%;
}

.grid {
    display: grid;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Position Utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.left-16px {
    left: 16px;
}

.right-16px {
    right: 16px;
}

.bottom-115px {
    bottom: 115px;
}

.-top-10px {
    top: -10px;
}

.-left-16px {
    left: -16px;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

/* Z-index */
.z-1999 {
    z-index: 1999;
}

/* Border Radius */
.rd-8px {
    border-radius: 8px;
}

.rd-10px {
    border-radius: 10px;
}

.rd-12px {
    border-radius: 12px;
}

.rd-16px {
    border-radius: 16px;
}

.rd-full {
    border-radius: 50%;
}

/* Border Utilities */
.border-0 {
    border: 0;
}

.border-1px {
    border-width: 1px;
}

.border-l-1px {
    border-left-width: 1px;
}

.border-t-1px {
    border-top-width: 1px;
}

.border-10px {
    border-width: 10px;
}

.border-16px {
    border-width: 16px;
}

.border-solid {
    border-style: solid;
}

.border-dashed {
    border-style: dashed;
}

.border-l-dashed {
    border-left-style: dashed;
}

.border-t-dashed {
    border-top-style: dashed;
}

.border-\[\#c7c7c7\] {
    border-color: #c7c7c7;
}

.border-\[\--white\] {
    border-color: var(--white);
}

.border-transparent {
    border-color: transparent;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Transition */
.ts {
    transition: all 0.3s;
}

.transition-transform {
    transition-property: transform;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transform */
.rotate-z-90 {
    transform: rotateZ(90deg);
}

/* Flex shrink/grow */
.shrink-0 {
    flex-shrink: 0;
}

/* Object */
.object-cover {
    object-fit: cover;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 16px;
    /* Moved to left margin to separate from other items */
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    z-index: 2001;
    /* Ensure it's above other header elements */
}

.language-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    /* More rounded/modern */
    transition: background-color 0.2s;
    background-color: #f5f7fa;
    /* Light background for visibility */
}

.language-current:hover {
    background-color: #e6e8eb;
    /* Slightly darker on hover */
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    padding: 8px;
    /* Padding inside the card */
    min-width: 160px;
    /* Wider dropdown */
    display: none;
    z-index: 2002;
    border: 1px solid #f0f0f0;
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

.language-option {
    padding: 10px 12px;
    /* Larger touch area */
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    /* Rounded items */
    font-size: 14px;
}

.language-option:hover {
    background-color: #f5f7fa;
    color: #000;
    /* Darker text on hover */
}

.language-option.active {
    color: #000;
    font-weight: 600;
    background-color: #f9f9f9;
}

.check-icon {
    color: #000;
    /* Black checkmark */
    font-weight: bold;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrow Icon for Switcher */
.arrow-down-icon {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    margin-left: 4px;
}

/* Specific fix for high contrast/visibility */
.language-current span {
    white-space: nowrap;
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* Mobile Text Overflow Fixes */
@media (max-width: 1023.9px) {
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix large text overflow */
    .text-36px,
    .text-20px,
    .text-24px {
        font-size: clamp(16px, 5vw, 36px) !important;
        line-height: 1.3 !important;
    }

    /* Modal full screen on mobile */
    .el-dialog {
        width: calc(100% - 32px) !important;
        margin: 16px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .el-dialog__body {
        padding: 16px !important;
    }

    /* Ensure buttons don't overflow */
    button {
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Fix grid layouts on mobile */
    .grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Prevent text from being cut off */
    p, span, div {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Fix large headings on mobile */
    .text-36px.lh-44px {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .text-20px.lh-28px {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    .text-18px.lh-24px {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    /* Wallet promo card mobile adjustments */
    .wallet-promo-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }

    .promo-title {
        font-size: 16px !important;
    }

    .benefit-item {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }

    .promo-wallet-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    /* Registration form mobile */
    .el-dialog__header {
        padding: 12px !important;
    }

    .el-dialog__header p {
        font-size: 16px !important;
    }

    .el-input__wrapper {
        height: 40px !important;
    }

    .el-checkbox__label {
        font-size: 11px !important;
        line-height: 16px !important;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .text-20px {
        font-size: 16px !important;
    }

    .text-24px {
        font-size: 18px !important;
    }

    .el-dialog {
        width: calc(100% - 16px) !important;
        margin: 8px !important;
    }

    /* Reduce padding on very small screens */
    .px-16px {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .py-18px {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}

/* Tablet landscape and below */
@media (max-width: 1280px) and (min-width: 1024px) {
    /* Adjust desktop layouts for smaller desktops */
    .w-1200px {
        width: 95% !important;
        max-width: 1200px;
    }
}

/* ============================================
   ENHANCED MOBILE RESPONSIVE FIXES
   Новые breakpoints: 320px, 375px, 428px, 768px
   ============================================ */

/* Container padding improvements for mobile */
@media (max-width: 1023.9px) {
    /* Ensure consistent container padding */
    .px-16px {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Prevent horizontal scroll from overflow elements */
    * {
        box-sizing: border-box;
    }

 

    /* Ensure all images fit properly */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Fix language dropdown on mobile */
    .language-dropdown {
        right: -50px !important;
        min-width: 150px !important;
    }
}

/* ============================================
   BREAKPOINT 768px - TABLET PORTRAIT
   ============================================ */
@media (max-width: 768px) {
    /* Reduce container padding slightly for tablets */
    .px-16px {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Adjust headings for tablet */
    .text-24px.lh-34px {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    /* Improve button sizing */
    .button-black {
        min-height: 44px !important;
        /* Touch-friendly minimum */
    }

    /* Fix carousel controls */
    #diversifyCarousel {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #diversifyCarousel li {
        scroll-snap-align: center !important;
    }

    /* Steps section improvements */
    .size-48px {
        width: 40px !important;
        height: 40px !important;
        font-size: 12px !important;
    }

    .size-104px {
        width: 80px !important;
        height: 80px !important;
    }

    /* FAQ items padding */
    .el-collapse-item__header {
        padding-right: 8px !important;
    }
}

/* ============================================
   BREAKPOINT 428px - LARGE MOBILE (iPhone 14 Pro Max)
   ============================================ */
@media (max-width: 428px) {
    /* Tighter padding for large phones */
    .px-16px {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .px-18px {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Improve text readability */
    .text-20px.lh-28px {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    .text-14px.lh-20px {
        font-size: 13px !important;
        line-height: 18px !important;
    }

    /* Carousel navigation buttons */
    .size-24px {
        width: 32px !important;
        height: 32px !important;
    }

    .size-14px {
        width: 18px !important;
        height: 18px !important;
    }

    /* Modal adjustments */
    .wallet-promo-card {
        padding: 14px !important;
    }

    .promo-title {
        font-size: 15px !important;
    }

    .benefit-item {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    .promo-wallet-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    /* Form inputs */
    .el-input__wrapper {
        height: 42px !important;
    }

    /* Steps images */
    .size-104px {
        width: 104px !important;
        height: 104px !important;
    }

    /* Checkbox label */
    .el-checkbox__label {
        font-size: 10px !important;
        line-height: 15px !important;
    }
}

/* ============================================
   BREAKPOINT 375px - STANDARD MOBILE (iPhone SE, iPhone 12)
   ============================================ */
@media (max-width: 375px) {
    /* Minimal padding for standard phones */
    .px-16px {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .px-18px {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Reduce heading sizes */
    .text-24px,
    .text-20px {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    .text-14px {
        font-size: 12px !important;
        line-height: 17px !important;
    }

    /* Modal full width with minimal margin */
    .el-dialog {
        width: calc(100% - 16px) !important;
        margin: 8px !important;
    }

    .el-dialog__body {
        padding: 12px !important;
    }

    /* Carousel buttons smaller */
    .size-24px {
        width: 28px !important;
        height: 28px !important;
    }

    /* Wallet promo card */
    .wallet-promo-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    .promo-title {
        font-size: 14px !important;
        gap: 6px !important;
    }

    .promo-title svg {
        width: 22px !important;
        height: 22px !important;
    }

    .benefit-item {
        font-size: 9px !important;
        padding: 3px 6px !important;
        gap: 4px !important;
    }

    .benefit-item svg {
        width: 10px !important;
        height: 10px !important;
    }

    .promo-wallet-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .promo-wallet-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Form elements */
    .el-input__wrapper {
        height: 40px !important;
        padding: 0 10px !important;
    }

    .el-input__inner {
        font-size: 13px !important;
    }

    /* Steps section */
    .size-48px {
        width: 36px !important;
        height: 36px !important;
        font-size: 11px !important;
        border-width: 8px !important;
    }

    .size-104px {
        width: 60px !important;
        height: 60px !important;
    }

    /* FAQ accordion */
    .el-collapse-item__header {
        padding-top: 10px !important;
    }

    .el-collapse-item__title h3 {
        font-size: 13px !important;
        line-height: 18px !important;
    }

    /* Submit button */
    .button.h-48px {
        height: 44px !important;
        font-size: 14px !important;
    }

    /* Language dropdown */
    .language-dropdown {
        min-width: 140px !important;
        font-size: 13px !important;
    }

    .language-option {
        padding: 8px 10px !important;
    }
}

/* ============================================
   BREAKPOINT 320px - SMALL MOBILE (Old Android, iPhone 5)
   ============================================ */
@media (max-width: 320px) {
    /* Minimal padding */
    .px-16px,
    .px-18px {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .py-18px {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* Further reduce text sizes */
    .text-24px,
    .text-20px,
    .text-18px {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .text-14px {
        font-size: 11px !important;
        line-height: 16px !important;
    }

    .text-12px {
        font-size: 10px !important;
        line-height: 14px !important;
    }

    /* Modal almost full screen */
    .el-dialog {
        width: calc(100% - 8px) !important;
        margin: 4px !important;
        max-height: 95vh !important;
    }

    .el-dialog__header {
        padding: 8px !important;
    }

    .el-dialog__header p {
        font-size: 14px !important;
    }

    .el-dialog__body {
        padding: 10px !important;
    }

    /* Wallet promo - very compact */
    .wallet-promo-card {
        padding: 10px !important;
    }

    .promo-header {
        margin-bottom: 10px !important;
    }

    .promo-badge-new {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .promo-badge-bonus {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    .promo-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .promo-title svg {
        width: 20px !important;
        height: 20px !important;
    }

    .promo-benefits {
        gap: 4px !important;
        margin-bottom: 10px !important;
    }

    .benefit-item {
        font-size: 8px !important;
        padding: 2px 5px !important;
        gap: 3px !important;
    }

    .benefit-item svg {
        width: 8px !important;
        height: 8px !important;
    }

    .promo-wallet-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .promo-wallet-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Form elements very compact */
    .el-input__wrapper {
        height: 36px !important;
        padding: 0 8px !important;
    }

    .el-input__inner {
        font-size: 12px !important;
    }

    .el-form-item {
        margin-bottom: 10px !important;
    }

    /* Checkbox very small */
    .el-checkbox__inner {
        width: 14px !important;
        height: 14px !important;
    }

    .el-checkbox__label {
        font-size: 9px !important;
        line-height: 13px !important;
    }

    /* Steps section minimal */
    .size-48px {
        width: 32px !important;
        height: 32px !important;
        font-size: 10px !important;
        border-width: 6px !important;
    }

    .size-104px {
        width: 50px !important;
        height: 50px !important;
    }

    /* FAQ minimal */
    .el-collapse-item__header {
        padding-top: 8px !important;
    }

    .el-collapse-item__title h3 {
        font-size: 11px !important;
        line-height: 16px !important;
    }

    .size-20px {
        width: 16px !important;
        height: 16px !important;
    }

    /* Buttons */
    .button-black,
    .button {
        min-height: 40px !important;
        font-size: 11px !important;
        padding: 0 12px !important;
    }

    /* Carousel navigation minimal */
    .size-24px {
        width: 24px !important;
        height: 24px !important;
    }

    .size-14px {
        width: 12px !important;
        height: 12px !important;
    }

    /* Language switcher minimal */
    .language-current {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .language-dropdown {
        min-width: 120px !important;
        font-size: 11px !important;
    }

    .language-option {
        padding: 6px 8px !important;
    }

    /* Footer text */
    .lh-16px {
        line-height: 14px !important;
    }
}

/* ============================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ============================================ */

/* Safe area support for iPhone X+ */
@supports (padding: max(0px)) {
    @media (max-width: 1023.9px) {
        .px-16px {
            padding-left: max(16px, env(safe-area-inset-left)) !important;
            padding-right: max(16px, env(safe-area-inset-right)) !important;
        }

        /* Modal safe areas */
        .el-dialog {
            margin-left: max(16px, env(safe-area-inset-left)) !important;
            margin-right: max(16px, env(safe-area-inset-right)) !important;
        }
    }
}

/* Prevent text from being too small on high DPI displays */
@media (max-width: 1023.9px) and (-webkit-min-device-pixel-ratio: 2), (max-width: 1023.9px) and (min-resolution: 192dpi) {
    .text-12px {
        font-size: 11px !important;
        /* Slightly smaller for retina */
    }

    .text-14px {
        font-size: 13px !important;
    }
}

/* Landscape mobile fixes */
@media (max-width: 1023.9px) and (orientation: landscape) {
    /* Reduce vertical spacing in landscape */
    .py-20px {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .py-18px {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Make modal fit landscape better */
    .el-dialog {
        max-height: 85vh !important;
    }

    /* Reduce carousel height */
    #diversifyCarousel li img {
        max-height: 200px !important;
        object-fit: contain !important;
    }
}

/* Touch-friendly improvements */
@media (max-width: 1023.9px) and (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    .cursor-pointer,
    button,
    a,
    .el-collapse-item__header {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Remove hover effects on touch devices */
    .button-black:hover,
    .language-current:hover,
    .language-option:hover,
    .promo-wallet-btn:hover {
        transform: none !important;
    }
}

/* ============================================
   NEW USER REWARDS SECTION
   ============================================ */

.new-user-rewards-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.new-user-rewards-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.rewards-header {
    padding: 16px 16px 12px;
    position: relative;
    z-index: 1;
}

.rewards-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rewards-gift-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.rewards-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.rewards-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 2px 0 0;
}

.rewards-subtitle strong {
    color: #fbbf24;
    font-weight: 700;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.reward-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s, background 0.2s;
}

.reward-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.reward-card-highlight {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

.reward-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
}

.reward-icon-verify {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.reward-icon-deposit {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.reward-icon-trade {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.reward-icon-pi {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.reward-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reward-card-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
}

.reward-card-amount {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.reward-amount-value {
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.reward-amount-unit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.reward-amount-highlight .reward-amount-value {
    color: #fbbf24;
    font-size: 26px;
}

.rewards-cta {
    padding: 16px;
    position: relative;
    z-index: 1;
}

/* ============================================
   KEY ADVANTAGES DETAILED CARDS
   ============================================ */

.advantage-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.advantage-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.advantage-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.advantage-icon-spot {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.advantage-icon-otc {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.advantage-icon-exchange {
    background: linear-gradient(135deg, #10b981, #059669);
}

.advantage-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
}

.advantage-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.8;
}

.advantage-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: 600;
}

/* ============================================
   FIXED BOTTOM CTA BUTTON
   ============================================ */

.fixed-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1998;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    cursor: pointer;
    box-shadow: 0 -4px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fixed-bottom-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 -6px 25px rgba(102, 126, 234, 0.5);
}

.fixed-bottom-cta:active {
    transform: translateY(0);
}

.fixed-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fixed-cta-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fixed-cta-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.fixed-cta-arrow {
    color: white;
    font-size: 18px;
    animation: slideRight 1s infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Add bottom padding to footer to account for fixed button */
@media (max-width: 1023.9px) {
    .pb-120px {
        padding-bottom: 140px !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR NEW SECTIONS
   ============================================ */

@media (max-width: 375px) {
    .rewards-title {
        font-size: 18px;
    }
    
    .rewards-subtitle {
        font-size: 12px;
    }
    
    .reward-card {
        padding: 10px;
    }
    
    .reward-card-icon {
        width: 30px;
        height: 30px;
    }
    
    .reward-card-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .reward-card-title {
        font-size: 11px;
    }
    
    .reward-amount-value {
        font-size: 18px;
    }
    
    .reward-amount-highlight .reward-amount-value {
        font-size: 22px;
    }
    
    .advantage-card {
        padding: 12px;
    }
    
    .advantage-icon {
        width: 38px;
        height: 38px;
    }
    
    .advantage-card-title {
        font-size: 14px;
    }
    
    .advantage-card-desc {
        font-size: 12px;
    }
    
    .advantage-features li {
        font-size: 12px;
    }
    
    .fixed-cta-text {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .rewards-grid {
        gap: 8px;
        padding: 0 12px;
    }
    
    .rewards-header {
        padding: 12px 12px 10px;
    }
    
    .reward-card {
        padding: 8px;
    }
    
    .reward-card-icon {
        width: 26px;
        height: 26px;
        margin-bottom: 6px;
    }
    
    .reward-card-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .reward-card-title {
        font-size: 10px;
    }
    
    .reward-amount-value {
        font-size: 16px;
    }
    
    .reward-amount-unit {
        font-size: 10px;
    }
    
    .advantage-card {
        padding: 10px;
    }
    
    .advantage-icon {
        width: 32px;
        height: 32px;
    }
    
    .advantage-card-title {
        font-size: 13px;
    }
    
    .advantage-card-desc {
        font-size: 11px;
    }
    
    .advantage-features li {
        font-size: 11px;
        padding-left: 16px;
    }
}