/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    /* Новая цветовая палитра - серый/белый/черный с акцентами */
    --primary: #2563EB;        /* Синий акцент */
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    
    --secondary: #10B981;      /* Зеленый акцент */
    --secondary-dark: #059669;
    
    --accent: #8B5CF6;         /* Фиолетовый акцент */
    --accent-dark: #7C3AED;
    
    /* Основная палитра */
    --dark: #0F172A;           /* Темно-синий/черный */
    --darker: #020617;         /* Почти черный */
    --dark-gray: #1E293B;      /* Темно-серый */
    --gray: #334155;           /* Серый */
    --light-gray: #64748B;     /* Светло-серый */
    --lighter-gray: #CBD5E1;   /* Очень светло-серый */
    --white: #F8FAFC;          /* Белый с оттенком серого */
    --pure-white: #FFFFFF;     /* Чистый белый */
    
    /* Статусные цвета */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #8B5CF6 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Стеклянный эффект */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Анимации */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Дополнительные переменные из оригинальной темы (обновлены под новую палитру) */
    --light: var(--white);
    --glass: var(--glass-bg);
    --gradient: var(--gradient-primary);
    --gradient-reverse: linear-gradient(135deg, #8B5CF6 0%, #2563EB 100%);
    --shadow: var(--shadow-xl);
    --shadow-light: var(--shadow-md);
    --border-radius: 16px;
    --border-radius-small: 8px;

}

.light-theme {
    --dark: #f5f5ff;
    --darker: #e0e0ff;
    --light: #0f0f23;
    --glass: rgba(15, 15, 35, 0.05);
    --glass-border: rgba(15, 15, 35, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 5px 15px rgba(108, 99, 255, 0.15);
}

html { background-color: #050615; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition-slow);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.quantum-loader {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantum-dot {
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    animation: quantum-pulse 1.5s ease-in-out infinite;
}

.quantum-dot:nth-child(2) { animation-delay: 0.2s; }
.quantum-dot:nth-child(3) { animation-delay: 0.4s; }
.quantum-dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes quantum-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* ===== BACKGROUND ANIMATIONS ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: 10%;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #36D1DC;
    top: 50%;
    left: 80%;
    animation: float 30s infinite ease-in-out;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: #5B86E5;
    bottom: 30%;
    left: 20%;
    animation: float 22s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-15px, 15px) rotate(-5deg); }
    75% { transform: translate(10px, 10px) rotate(3deg); }
}

/* ===== HEADER & NAVIGATION ===== */
.glass-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-highlight {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    width: 50px;
    height: 26px;
    background: var(--glass);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.05);
}

#theme-icon {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 14px;
    transition: var(--transition);
    color: var(--primary);
}

.light-theme #theme-icon {
    left: calc(100% - 19px);
    color: var(--warning);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
}

.title-line {
    display: block;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    animation: underline-pulse 2s infinite;
}

@keyframes underline-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(15, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(240, 240, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.blink {
    color: var(--secondary);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


.hero-tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-tag {
    padding: 4px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.hero-tag-official {
    border-style: solid;
    border-color: rgba(139, 92, 246, 0.7); /* фиолетовый акцент */
    color: rgba(191, 164, 255, 0.95);
    font-weight: 500;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    min-width: 180px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-light);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(240, 240, 255, 0.7);
}

/* ===== EXCHANGE SECTION ===== */
.exchange-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    color: rgba(240, 240, 255, 0.7);
    font-size: 1.1rem;
}

.calculator-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.exchange-card {
    background: rgba(15, 15, 35, 0.3);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.exchange-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
}

.from-card {
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.balance, .fee {
    font-size: 0.9rem;
    color: rgba(240, 240, 255, 0.7);
}

.balance-amount, .fee-amount {
    color: var(--success);
    font-weight: 600;
}

.amount-input-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.amount-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    padding: 20px;
    font-size: 2rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--light);
    outline: none;
    transition: var(--transition);
}

.amount-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.currency-selector {
    position: relative;
    min-width: 180px;
}

.selected-currency {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 500;
}

.selected-currency:hover {
    border-color: var(--primary);
}

.selected-currency img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.selected-currency i {
    margin-left: auto;
    transition: var(--transition);
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 240px;
    max-height: 260px;
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(15,23,42,0.98), rgba(30,64,175,0.95));
    border: 1px solid rgba(148,163,184,0.55);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.75);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
}

.currency-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-option {
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 999px;
    font-size: 0.9rem;
}

.currency-option:hover {
    background: rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

.currency-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.amount-slider {
    margin-top: 20px;
}

.slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(240, 240, 255, 0.6);
}

.exchange-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    position: relative;
}

.swap-currencies {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.swap-currencies:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.5);
}

.live-rate {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(108, 99, 255, 0); }
}

.rate-change {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
}

.rate-change.down {
    color: var(--error);
}

.estimated-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: rgba(240, 240, 255, 0.7);
}

.estimated-time i {
    color: var(--primary);
}

.continue-btn {
    width: 100%;
    background: var(--gradient);
    border: none;
    border-radius: var(--border-radius-small);
    padding: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn i {
    transition: var(--transition);
}

.continue-btn:hover i {
    transform: translateX(5px);
}

/* ===== KYC MODAL ===== */
.kyc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 22, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.kyc-modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.terms-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.terms-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.terms-modal-content {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.terms-modal-header h3 {
    font-size: 1.2rem;
}

.close-terms-modal {
    background: none;
    border: none;
    color: rgba(240, 240, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.close-terms-modal:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.terms-modal-body {
    padding: 18px 24px 22px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-modal-body ul {
    margin: 12px 0 12px 18px;
    padding-left: 0;
}

.terms-modal-body li {
    margin-bottom: 6px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.kyc-modal-content {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.kyc-modal-content::-webkit-scrollbar {
    width: 8px;
}

.kyc-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.kyc-modal-content::-webkit-scrollbar-thumb {
    background: rgba(90, 90, 120, 0.8);
    border-radius: 4px;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.kyc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--glass-border);
}

.kyc-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.kyc-header i {
    color: var(--primary);
}

.close-kyc {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(240, 240, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.close-kyc:hover {
    background: rgba(255, 101, 132, 0.1);
    color: var(--secondary);
}

.kyc-progress {
    padding: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--glass-border);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--gradient);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
}

.step.completed .step-circle::after {
    content: '✓';
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: rgba(240, 240, 255, 0.7);
    transition: var(--transition);
}

.step.active .step-label {
    color: var(--light);
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.kyc-step {
    padding: 30px;
    display: none;
}

.kyc-step.active {
    display: block;
    animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kyc-step h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.exchange-summary {
    background: rgba(15, 15, 35, 0.3);
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: rgba(240, 240, 255, 0.7);
}

.user-data-form {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: rgba(240, 240, 255, 0.9);
}

.form-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    padding: 15px;
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.kyc-info {
    background: rgba(108, 99, 255, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
    margin-bottom: 30px;
    color: rgba(240, 240, 255, 0.9);
}

.passport-upload {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-area {
    background: rgba(15, 15, 35, 0.3);
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 250px;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-area p {
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.9rem;
    color: rgba(240, 240, 255, 0.6);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: none;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-container.active {
    display: block;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.captcha-box {
    background: var(--darker);
    border-radius: var(--border-radius-small);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--glass-border);
}

.captcha-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.captcha-refresh:hover {
    color: var(--primary);
    transform: rotate(180deg);
}

#captchaInput {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    padding: 15px;
    font-size: 1.1rem;
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

#captchaInput:focus {
    outline: none;
    border-color: var(--primary);
}

.kyc-buttons {
    display: flex;
    gap: 15px;
}

.kyc-next-btn, .kyc-back-btn {
    flex: 1;
    padding: 18px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.kyc-next-btn {
    background: var(--gradient);
    color: white;
}

.kyc-next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.kyc-back-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 1px solid var(--glass-border);
}

.kyc-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.processing-animation {
    text-align: center;
    margin: 40px 0;
}

.quantum-loader.large {
    transform: scale(1.5);
    margin-bottom: 40px;
}

.processing-text {
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 500;
    color: var(--primary);
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.processing-steps {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.processing-step {
    background: rgba(15, 15, 35, 0.3);
    border-radius: var(--border-radius-small);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.processing-step.completed {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.05);
}

.processing-step.processing {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.processing-step.completed .step-icon {
    background: var(--success);
    color: white;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-status {
    color: rgba(240, 240, 255, 0.7);
    font-size: 0.9rem;
}

.processing-step.completed .step-status {
    color: var(--success);
}

.processing-step.processing .step-status {
    color: var(--primary);
    animation: processing 1.5s infinite;
}

@keyframes processing {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.processing-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(15, 15, 35, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    color: rgba(240, 240, 255, 0.7);
}

.processing-time i {
    color: var(--primary);
}

.success-animation {
    text-align: center;
    padding: 20px 0;
}

.success-checkmark {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--success);
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
}

.check-icon::before, .check-icon::after {
    content: '';
    height: 4px;
    background: var(--success);
    position: absolute;
    border-radius: 2px;
}

.icon-line {
    height: 4px;
    background-color: var(--success);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, 0.5);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.success-message {
    font-size: 1.1rem;
    margin: 20px 0 40px;
    color: rgba(240, 240, 255, 0.9);
    line-height: 1.6;
}

.contact-info {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.contact-item {
    background: rgba(15, 15, 35, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--glass-border);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item a, .contact-item span {
    color: var(--secondary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.final-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.new-exchange-btn, .copy-order-btn {
    flex: 1;
    padding: 18px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
}

.new-exchange-btn {
    background: var(--gradient);
    color: white;
}

.new-exchange-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.copy-order-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 1px solid var(--glass-border);
}

.copy-order-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== RATES SECTION ===== */
.rates-section {
    padding: 80px 0;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rate-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.rate-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-light);
}

.rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.rate-card:hover::before {
    opacity: 0.05;
}

.rate-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rate-icon {
    width: 50px;
    height: 50px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.rate-icon img {
    width: 30px;
    height: 30px;
}

.rate-name {
    flex: 1;
}

.rate-name h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.rate-name span {
    font-size: 0.9rem;
    color: rgba(240, 240, 255, 0.7);
}

.rate-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rate-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.rate-change.positive {
    color: var(--success);
}

.rate-change.negative {
    color: var(--error);
}

.rates-update {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: rgba(240, 240, 255, 0.7);
    font-size: 0.9rem;
}

.rates-update i {
    color: var(--primary);
    animation: spin 2s linear infinite;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0 100px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(108, 99, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: rgba(240, 240, 255, 0.9);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 50px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo i {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgba(240, 240, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--light);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.footer-copyright {
    text-align: center;
    color: rgba(240, 240, 255, 0.5);
    font-size: 0.9rem;
    max-width: 600px;
}

.footer-copyright p {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ===== NOTIFICATIONS ===== */
.notification-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
}

.notification {
    background: var(--darker);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-small);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInRight 0.3s forwards, fadeOut 0.3s forwards 2.7s;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--error);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.9rem;
    color: rgba(240, 240, 255, 0.8);
}

@keyframes slideInRight {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .calculator-container {
        padding: 30px;
    }
    
    .kyc-modal-content {
        max-width: 95%;
    }
    
    .passport-upload {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
        gap: 16px;
        background: rgba(3, 6, 24, 0.98);
        border-radius: var(--border-radius);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow);
        z-index: 120;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .lang-switcher,
    .theme-toggle {
        margin-left: 0;
    }

.hero-title {
        font-size: 2.2rem;
    }
    

    .hero-tags {
        justify-content: center;
    }

    .hero-tag {
        min-width: 140px;
        padding-inline: 16px;
        text-align: center;
    }
    .hero-stats {
        gap: 20px;
    }
    
    .stat-card {
        min-width: 150px;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .amount-input-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .currency-selector {
        min-width: 100%;
    }
    
    .exchange-arrow {
        flex-direction: column;
        gap: 20px;
    }
    
    .live-rate {
        position: relative;
    }
    
    .kyc-progress {
        padding: 20px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .kyc-step {
        padding: 20px 0;
    }

    .kyc-modal-content {
        max-width: 100%;
        border-radius: 0;
    }

    .kyc-buttons, .final-actions {
        flex-direction: column;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .exchange-card {
        padding: 20px;
    }
    
    .amount-input {
        font-size: 1.5rem;
        padding: 15px;
    }
    
    .selected-currency {
        padding: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 250px;
    }
}


.documents-section {
    padding: 60px 0;
    background: radial-gradient(circle at top, rgba(120, 120, 255, 0.12), transparent);
}

.documents-section h2 {
    margin-bottom: 20px;
}

.documents-text {
    max-width: 720px;
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.document-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(10, 10, 25, 0.6);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--glass-border);
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.document-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}


.document-thumb {
    border-radius: calc(var(--border-radius-small) - 4px);
    overflow: hidden;
    position: relative;
    padding-top: 70%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-thumb {
    background-size: cover;
    background-position: center;
}

.document-preview {
    border-radius: calc(var(--border-radius-small) - 4px);
    overflow: hidden;
    position: relative;
    padding-top: 70%;
    background: #050616;
}

.document-preview embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-preview::after {
    content: 'PDF';
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.document-title {
    font-weight: 500;
}

.document-meta {
    opacity: 0.7;
}

.legal-section {
    padding: 60px 0;
}

.legal-section h2 {
    margin-bottom: 20px;
}
/* === Extra animations & sections from styles1.css === */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-gray);
    animation: badge-pulse 3s infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.benefits-section {
    padding: 120px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 24px;
    transition: var(--transition);
}

.benefit-card:hover .icon-wrapper {
    transform: rotateY(180deg);
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.benefit-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* === Custom enhancements (currency selects, video KYC, light theme) === */

/* ===== FULL CURRENCY SELECTS ===== */
.full-currency-select {
    margin-top: 15px;
}

.full-currency-select label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--light-gray);
}

.currency-full-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    color: var(--light-gray);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.currency-full-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Light theme tweaks for select */
.light-theme .currency-full-select {
    background: #f1f5f9;
    color: #0f172a;
}

/* ===== KYC VIDEO UPLOAD ===== */
.video-upload {
    margin-top: 25px;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
}

.video-upload h4 {
    margin-bottom: 8px;
}

.video-upload .kyc-info.small {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.video-preview-wrapper {
    position: relative;
    border-radius: var(--border-radius-small);
    border: 1px dashed var(--glass-border);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    min-height: 180px;
    margin-bottom: 12px;
}

.video-preview-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--light-gray);
    background: radial-gradient(circle at top, rgba(37,99,235,0.16), transparent 55%);
    text-align: center;
    pointer-events: none;
}

.video-placeholder i {
    font-size: 1.6rem;
    color: var(--primary);
}

.video-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.kyc-video-btn {
    flex: 1;
    border-radius: var(--radius-full);
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--gradient-primary);
    color: var(--pure-white);
    transition: var(--transition-fast);
}

.kyc-video-btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--light-gray);
}

.kyc-video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kyc-video-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Light theme tweaks */
.light-theme .video-preview-wrapper {
    background: #e5e7eb;
}

.light-theme .video-upload {
    background: rgba(255,255,255,0.85);
}

/* ===== LIGHT THEME IMPROVEMENTS ===== */

/* Базовый фон и текст */
body.light-theme {
    background-color: #f4f7fb;
    color: #0f172a;
}

/* Главные блоки и модалки */
body.light-theme .navbar {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(148,163,184,0.4);
}

body.light-theme .calculator-container,
body.light-theme .exchange-card,
body.light-theme .kyc-modal-content,
body.light-theme .exchange-summary,
body.light-theme .upload-area,
body.light-theme .video-preview-wrapper,
body.light-theme .captcha-container,
body.light-theme .notification,
body.light-theme .rate-card,
body.light-theme .faq-item,
body.light-theme .stat-card {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.6);
}

/* Тексты в секциях и хиро */
body.light-theme .hero-section,
body.light-theme .hero-section *,
body.light-theme .section-title,
body.light-theme .hero-title {
    color: #0f172a !important;
}

body.light-theme .section-subtitle,
body.light-theme .hero-subtitle,
body.light-theme .stat-label {
    color: #475569 !important;
}

/* Поля ввода, суммы */
body.light-theme .amount-input,
body.light-theme .form-group input {
    background: #e5edf7;
    color: #0f172a;
}

/* Навигация */
body.light-theme .nav-link {
    color: #0f172a;
}

body.light-theme .nav-link:hover {
    color: var(--primary);
}

/* Выпадающие списки валют */
body.light-theme .selected-currency,
body.light-theme .currency-dropdown {
    background: #ffffff;
    color: #0f172a;
}

body.light-theme .currency-option:hover {
    background: rgba(37, 99, 235, 0.08);
}

/* Инфо-блоки */
body.light-theme .kyc-info {
    background: rgba(37, 99, 235, 0.08);
    border-color: #2563EB;
}

/* Кнопки, оставляем цветными */
body.light-theme .live-rate,
body.light-theme .continue-btn {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Хард оверрайд шагов KYC на зелёный */
.step.completed .step-number {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.step.completed .step-label {
  color: #22c55e;
}

.terms-agreement {
    margin: 20px 0 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* ===== AML / KYC / KYT POLICY PAGE ===== */
.policy-section {
    padding: 120px 0 80px;
}

.policy-section .page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.policy-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.policy-content {
    background: rgba(8, 10, 24, 0.9);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    padding: 30px 30px 32px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.policy-content p + p {
    margin-top: 12px;
}

.policy-content ol {
    margin: 16px 0 0 18px;
    padding: 0;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content ul {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 18px;
}

.policy-content strong {
    color: #e5e7ff;
}

.policy-aside {
    background: radial-gradient(circle at top, rgba(120, 120, 255, 0.16), transparent);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    padding: 24px 22px 26px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.policy-aside h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.policy-aside ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.policy-aside li {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .policy-section {
        padding: 100px 0 60px;
    }

    .policy-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .policy-content {
        padding: 22px 18px 24px;
    }
}

/* ===== Language switcher ===== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 2px 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(226, 232, 255, 0.7);
    padding: 2px 8px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.lang-active {
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
}

[data-lang="ru"] .lang-en {
    display: none !important;
}

[data-lang="en"] .lang-ru {
    display: none !important;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
    }
}

/* ===== User Agreement two-column layout ===== */
.agreement-section .page-title {
    text-align: center;
    margin-bottom: 32px;
}

.agreement-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.agreement-grid .policy-content h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .agreement-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* ===== Custom responsive improvements (desktop + mobile) ===== */

/* Desktop refinements */
@media (min-width: 992px) {
    .exchange-section {
        padding: 80px 0 90px;
    }

    .calculator-container {
        max-width: 1100px;
        margin: 0 auto;
    }

    .rates-section,
    .faq-section,
    .documents-section {
        padding: 80px 0 100px;
    }
}

/* Tablet & mobile */
@media (max-width: 992px) {
    body {
        font-size: 15px;
    }

    .glass-header {
        padding: 10px 16px;
    }

    .exchange-section,
    .rates-section,
    .faq-section,
    .documents-section {
        padding: 60px 0 70px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .calculator-container {
        padding: 24px 18px;
    }

    .exchange-card {
        padding: 22px 18px;
        margin-bottom: 18px;
    }

    .documents-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 110px 16px 40px;
        text-align: center;
    }

    .hero-content {
        gap: 18px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .rates-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .exchange-card {
        padding: 20px;
    }
    
    .amount-input {
        font-size: 1.5rem;
        padding: 15px;
    }
    
    .selected-currency {
        padding: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 250px;
    }
}


.documents-section {
    padding: 60px 0;
    background: radial-gradient(circle at top, rgba(120, 120, 255, 0.12), transparent);
}

.documents-section h2 {
    margin-bottom: 20px;
}

.documents-text {
    max-width: 720px;
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.document-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(10, 10, 25, 0.6);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--glass-border);
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.document-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}


.document-thumb {
    border-radius: calc(var(--border-radius-small) - 4px);
    overflow: hidden;
    position: relative;
    padding-top: 70%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-thumb {
    background-size: cover;
    background-position: center;
}

.document-preview {
    border-radius: calc(var(--border-radius-small) - 4px);
    overflow: hidden;
    position: relative;
    padding-top: 70%;
    background: #050616;
}

.document-preview embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-preview::after {
    content: 'PDF';
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.document-title {
    font-weight: 500;
}

.document-meta {
    opacity: 0.7;
}

.legal-section {
    padding: 60px 0;
}

.legal-section h2 {
    margin-bottom: 20px;
}
/* === Extra animations & sections from styles1.css === */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-gray);
    animation: badge-pulse 3s infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.benefits-section {
    padding: 120px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 24px;
    transition: var(--transition);
}

.benefit-card:hover .icon-wrapper {
    transform: rotateY(180deg);
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.benefit-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* === Custom enhancements (currency selects, video KYC, light theme) === */

/* ===== FULL CURRENCY SELECTS ===== */
.full-currency-select {
    margin-top: 15px;
}

.full-currency-select label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--light-gray);
}

.currency-full-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    color: var(--light-gray);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.currency-full-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Light theme tweaks for select */
.light-theme .currency-full-select {
    background: #f1f5f9;
    color: #0f172a;
}

/* ===== KYC VIDEO UPLOAD ===== */
.video-upload {
    margin-top: 25px;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
}

.video-upload h4 {
    margin-bottom: 8px;
}

.video-upload .kyc-info.small {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.video-preview-wrapper {
    position: relative;
    border-radius: var(--border-radius-small);
    border: 1px dashed var(--glass-border);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    min-height: 180px;
    margin-bottom: 12px;
}

.video-preview-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--light-gray);
    background: radial-gradient(circle at top, rgba(37,99,235,0.16), transparent 55%);
    text-align: center;
    pointer-events: none;
}

.video-placeholder i {
    font-size: 1.6rem;
    color: var(--primary);
}

.video-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.kyc-video-btn {
    flex: 1;
    border-radius: var(--radius-full);
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--gradient-primary);
    color: var(--pure-white);
    transition: var(--transition-fast);
}

.kyc-video-btn.secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--light-gray);
}

.kyc-video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kyc-video-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Light theme tweaks */
.light-theme .video-preview-wrapper {
    background: #e5e7eb;
}

.light-theme .video-upload {
    background: rgba(255,255,255,0.85);
}

/* ===== LIGHT THEME IMPROVEMENTS ===== */

/* Базовый фон и текст */
body.light-theme {
    background-color: #f4f7fb;
    color: #0f172a;
}

/* Главные блоки и модалки */
body.light-theme .navbar {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(148,163,184,0.4);
}

body.light-theme .calculator-container,
body.light-theme .exchange-card,
body.light-theme .kyc-modal-content,
body.light-theme .exchange-summary,
body.light-theme .upload-area,
body.light-theme .video-preview-wrapper,
body.light-theme .captcha-container,
body.light-theme .notification,
body.light-theme .rate-card,
body.light-theme .faq-item,
body.light-theme .stat-card {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.6);
}

/* Тексты в секциях и хиро */
body.light-theme .hero-section,
body.light-theme .hero-section *,
body.light-theme .section-title,
body.light-theme .hero-title {
    color: #0f172a !important;
}

body.light-theme .section-subtitle,
body.light-theme .hero-subtitle,
body.light-theme .stat-label {
    color: #475569 !important;
}

/* Поля ввода, суммы */
body.light-theme .amount-input,
body.light-theme .form-group input {
    background: #e5edf7;
    color: #0f172a;
}

/* Навигация */
body.light-theme .nav-link {
    color: #0f172a;
}

body.light-theme .nav-link:hover {
    color: var(--primary);
}

/* Выпадающие списки валют */
body.light-theme .selected-currency,
body.light-theme .currency-dropdown {
    background: #ffffff;
    color: #0f172a;
}

body.light-theme .currency-option:hover {
    background: rgba(37, 99, 235, 0.08);
}

/* Инфо-блоки */
body.light-theme .kyc-info {
    background: rgba(37, 99, 235, 0.08);
    border-color: #2563EB;
}

/* Кнопки, оставляем цветными */
body.light-theme .live-rate,
body.light-theme .continue-btn {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Хард оверрайд шагов KYC на зелёный */
.step.completed .step-number {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.step.completed .step-label {
  color: #22c55e;
}

.terms-agreement {
    margin: 20px 0 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* ===== AML / KYC / KYT POLICY PAGE ===== */
.policy-section {
    padding: 120px 0 80px;
}

.policy-section .page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.policy-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.policy-content {
    background: rgba(8, 10, 24, 0.9);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    padding: 30px 30px 32px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.policy-content p + p {
    margin-top: 12px;
}

.policy-content ol {
    margin: 16px 0 0 18px;
    padding: 0;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content ul {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 18px;
}

.policy-content strong {
    color: #e5e7ff;
}

.policy-aside {
    background: radial-gradient(circle at top, rgba(120, 120, 255, 0.16), transparent);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    padding: 24px 22px 26px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.policy-aside h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.policy-aside ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.policy-aside li {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .policy-section {
        padding: 100px 0 60px;
    }

    .policy-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .policy-content {
        padding: 22px 18px 24px;
    }
}

/* ===== Language switcher ===== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    padding: 2px 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(226, 232, 255, 0.7);
    padding: 2px 8px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.lang-active {
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
}

[data-lang="ru"] .lang-en {
    display: none !important;
}

[data-lang="en"] .lang-ru {
    display: none !important;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
    }
}

/* ===== User Agreement two-column layout ===== */
.agreement-section .page-title {
    text-align: center;
    margin-bottom: 32px;
}

.agreement-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.agreement-grid .policy-content h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .agreement-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* ===== Custom responsive improvements (desktop + mobile) ===== */

/* Desktop refinements */
@media (min-width: 992px) {
    .exchange-section {
        padding: 80px 0 90px;
    }

    .calculator-container {
        max-width: 1100px;
        margin: 0 auto;
    }

    .rates-section,
    .faq-section,
    .documents-section {
        padding: 80px 0 100px;
    }
}

/* Tablet & mobile */
@media (max-width: 992px) {
    body {
        font-size: 15px;
    }

    .glass-header {
        padding: 10px 16px;
    }

    .exchange-section,
    .rates-section,
    .faq-section,
    .documents-section {
        padding: 60px 0 70px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .calculator-container {
        padding: 24px 18px;
    }

    .exchange-card {
        padding: 22px 18px;
        margin-bottom: 18px;
    }

    .documents-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 110px 16px 40px;
        text-align: center;
    }

    .hero-content {
        gap: 18px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .rates-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-item {
        padding: 16px 14px;
    }

    .documents-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
