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

:root {
    --primary: #6C63FF;
    --primary-dark: #554fd8;
    --secondary: #FF6584;
    --dark: #0f0f23;
    --darker: #0a0a16;
    --light: #f0f0ff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #f44336;
    --gradient: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --gradient-reverse: linear-gradient(135deg, #FF6584 0%, #6C63FF 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 5px 15px rgba(108, 99, 255, 0.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);
    --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);
}

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-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% + 5px);
    left: 0;
    width: 100%;
    background: var(--darker);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

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

.currency-option {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.currency-option:hover {
    background: rgba(108, 99, 255, 0.1);
}

.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; }
}

.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;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@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: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .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;
    }
    
    .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;
    }
	/* ===== CURRENCY SELECTOR UPDATES ===== */
.currency-search {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.currency-search i {
    color: var(--primary);
}

.currency-search input {
    background: transparent;
    border: none;
    color: var(--light);
    width: 100%;
    font-size: 0.9rem;
}

.currency-search input:focus {
    outline: none;
}

.currency-options {
    max-height: 300px;
    overflow-y: auto;
}

.currency-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.currency-option:hover {
    background: rgba(108, 99, 255, 0.1);
}

.currency-option i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.currency-option.selected {
    background: rgba(108, 99, 255, 0.2);
}

.currency-option.selected::after {
    content: '✓';
    margin-left: auto;
    color: var(--success);
}
}