* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f1419;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Space Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridFloat 20s linear infinite;
    z-index: -3;
    opacity: 0.3;
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(0, 255, 255, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 85% 75%, rgba(147, 51, 234, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 45% 15%, rgba(0, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 75% 45%, rgba(147, 51, 234, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 25% 85%, rgba(0, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 65% 25%, rgba(147, 51, 234, 0.2) 1px, transparent 1px);
    background-size: 200px 200px, 250px 250px, 150px 150px, 180px 180px, 220px 220px, 160px 160px;
    animation: particleFloat 30s linear infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes gridFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes particleFloat {
    0% { 
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
    100% { 
        transform: translateY(0) rotate(360deg);
        opacity: 1;
    }
}

@keyframes breathe {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes borderGlow {
    0%, 100% { 
        opacity: 0.5;
        transform: scaleX(1);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1.02);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes floatLarge {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px;
    margin: 0 16px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #00FFFF, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 80px;
    height: 80px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(60, 60, 60, 0.6);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(147, 51, 234, 0.2));
    border: 1px solid rgba(0, 255, 255, 0.4);
}

.new-badge {
    background: linear-gradient(135deg, #00FFFF, #9333EA);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn,
.close-btn {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-btn:hover,
.close-btn:hover {
    color: #ffffff;
    background: rgba(60, 60, 60, 0.9);
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.2);
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    min-height: auto;
}

.main::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, rgba(147, 51, 234, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: breathe 8s ease-in-out infinite;
    z-index: -1;
}

.main::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 12s ease-in-out infinite reverse;
    z-index: -1;
}

.swap-container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.swap-card {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
}

.swap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), rgba(147, 51, 234, 0.8), transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

.swap-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 255, 0.05), transparent, rgba(147, 51, 234, 0.05), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.swap-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.swap-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.lock-icon {
    width: 12px;
    height: 12px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 50px;
}

.input-group:focus-within {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.amount-input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    min-height: 44px;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
}

.currency-selector:hover {
    background: rgba(0, 255, 255, 0.12);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.currency-selector:active {
    transform: translateY(0) scale(0.98);
}

.currency-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Currency Dropdown */
.currency-dropdown {
    position: fixed;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    min-width: 320px;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 255, 255, 0.15),
        0 12px 40px rgba(0, 255, 255, 0.25);
    display: none;
    animation: dropdownSlide 0.3s ease;
    transform-origin: top center;
    padding: 8px 0;
}

/* Mobile dropdown optimizations */
@media (max-width: 768px) {
    .currency-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 40px) !important;
        max-width: 350px !important;
        max-height: calc(100vh - 100px) !important;
        border-radius: 24px;
        animation: mobileDropdownSlide 0.4s ease;
    }
}

@keyframes mobileDropdownSlide {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.currency-dropdown.active {
    display: block;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling for dropdown */
.currency-dropdown::-webkit-scrollbar {
    width: 4px;
}

.currency-dropdown::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.5);
}

.currency-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 2px;
}

.currency-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}

.address-input {
    width: 100%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    min-height: 50px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
}

.address-input:focus {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.address-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.swap-arrow-container {
    display: flex;
    justify-content: center;
    margin: -6px 0;
    position: relative;
    z-index: 1;
}

.swap-arrow {
    background: rgba(40, 40, 40, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.swap-arrow:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(147, 51, 234, 0.2));
    border-color: rgba(0, 255, 255, 0.5);
    color: #ffffff;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.3);
}

.referral-banner {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(147, 51, 234, 0.08));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    min-height: 42px;
}

.referral-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.gift-icon {
    width: 16px;
    height: 16px;
}

.submit-btn {
    background: linear-gradient(135deg, #00FFFF, #9333EA);
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    color: #000000;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 255, 255, 0.5);
    text-shadow: none;
    min-height: 48px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.submit-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: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 255, 255, 0.6);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



.currency-list {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.currency-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(25, 30, 35, 0.6);
    color: #ffffff;
    text-align: left;
    width: calc(100% - 16px);
    border-radius: 14px;
    margin: 3px 8px;
    position: relative;
    min-height: 64px;
    backdrop-filter: blur(10px);
}

.currency-option:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.currency-option:active {
    transform: translateX(2px) scale(0.98);
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.currency-option .currency-icon {
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

.currency-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.currency-code {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
}

/* Mobile Touch Optimizations */
.mobile-device .currency-selector,
.mobile-device .swap-arrow,
.mobile-device .submit-btn,
.mobile-device .currency-option {
    -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.mobile-device .currency-selector.touch-active,
.mobile-device .swap-arrow.touch-active,
.mobile-device .submit-btn.touch-active,
.mobile-device .currency-option.touch-active {
    background: rgba(0, 255, 255, 0.2) !important;
    transform: scale(0.95) !important;
    transition: all 0.1s ease !important;
}

/* Enhanced mobile touch targets */
.mobile-device .currency-selector {
    min-height: 52px;
    min-width: 120px;
    padding: 12px 16px;
}

.mobile-device .swap-arrow {
    min-width: 44px;
    min-height: 44px;
}

.mobile-device .submit-btn {
    min-height: 52px;
    font-size: 16px;
    padding: 16px 24px;
}

.mobile-device .currency-option {
    min-height: 72px;
    padding: 16px 20px;
}

/* Prevent zoom on inputs */
.mobile-device input {
    font-size: 16px !important;
}

/* Mobile First Responsive Design */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0;
    }
    
    .header {
        margin: 0;
        border-radius: 0;
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .nav {
        display: none;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .share-btn,
    .close-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    .main {
        padding: 16px 12px;
    }
    
    .main::before {
        width: 250px;
        height: 250px;
    }
    
    .swap-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
        padding: 0 4px;
    }
    
    .swap-card {
        margin: 0 4px;
        padding: 16px 14px;
        min-height: 340px;
        border-radius: 16px;
    }
    
    .swap-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .swap-form {
        gap: 8px;
    }
    
    .input-section {
        gap: 4px;
    }
    
    .input-label {
        font-size: 12px;
        gap: 4px;
    }
    
    .input-group {
        padding: 8px 10px;
        min-height: 42px;
        border-radius: 12px;
    }
    
    .amount-input {
        font-size: 14px;
    }
    
    .currency-selector {
        padding: 12px 16px;
        min-height: 52px;
        font-size: 16px;
        font-weight: 800;
        gap: 10px;
        border-radius: 14px;
        border: 3px solid rgba(0, 255, 255, 0.4);
        background: rgba(0, 255, 255, 0.15);
        box-shadow: 0 6px 16px rgba(0, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .currency-selector:active {
        transform: scale(0.95);
        background: rgba(0, 255, 255, 0.25);
    }
    
    .currency-selector::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: left 0.5s;
    }
    
    .currency-selector:hover::before {
        left: 100%;
    }
    
    .currency-icon {
        width: 20px;
        height: 20px;
    }
    
    .dropdown-arrow {
        width: 10px;
        height: 10px;
    }
    
    .address-input {
        padding: 8px 10px;
        min-height: 42px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .swap-arrow {
        width: 28px;
        height: 28px;
    }
    
    .referral-banner {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 36px;
        border-radius: 8px;
    }
    
    .gift-icon {
        width: 14px;
        height: 14px;
    }
    
    .submit-btn {
        padding: 10px 16px;
        min-height: 40px;
        font-size: 12px;
        border-radius: 12px;
    }
    
    .exchange-info {
        padding: 10px;
        margin: 6px 0;
        border-radius: 10px;
    }
    
    .rate-value {
        font-size: 14px;
    }
    
    .detail-label,
    .detail-value {
        font-size: 12px;
    }
}

/* Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .header {
        padding: 14px 20px;
        margin: 0 8px;
        border-radius: 0 0 12px 12px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
    }
    
    .nav {
        display: none;
    }
    
    .main {
        padding: 20px 16px;
    }
    
    .main::before {
        width: 350px;
        height: 350px;
    }
    
    .swap-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 20px;
        padding: 0 8px;
    }
    
    .swap-card {
        padding: 18px 16px;
        min-height: 360px;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .swap-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .input-group {
        padding: 10px 12px;
        min-height: 46px;
    }
    
    .amount-input {
        font-size: 15px;
    }
    
    .currency-selector {
        padding: 14px 18px;
        min-height: 56px;
        font-size: 16px;
        font-weight: 800;
        gap: 12px;
        border-radius: 16px;
        border: 3px solid rgba(0, 255, 255, 0.35);
        background: rgba(0, 255, 255, 0.12);
        box-shadow: 0 5px 14px rgba(0, 255, 255, 0.2);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .currency-selector:active {
        transform: scale(0.96);
        background: rgba(0, 255, 255, 0.2);
    }
    
    .currency-icon {
        width: 22px;
        height: 22px;
    }
    
    .address-input {
        padding: 10px 12px;
        min-height: 46px;
        font-size: 12px;
    }
    
    .submit-btn {
        padding: 12px 18px;
        min-height: 44px;
        font-size: 13px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading .input-group {
    background: rgba(25, 25, 25, 0.8);
    overflow: hidden;
}

.loading .input-group::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Additional modern touches */
.input-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.lock-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.gift-icon {
    width: 18px;
    height: 18px;
}

/* Enhanced scrollbar for dropdown */
.currency-dropdown::-webkit-scrollbar {
    width: 6px;
}

.currency-dropdown::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.3);
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}
/* Ri
pple Animation */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced focus states */
.amount-input:focus,
.address-input:focus {
    caret-color: #00FFFF;
}

/* Floating label effect */
.input-section {
    position: relative;
}

.input-section.focused .input-label {
    color: #00FFFF;
    transform: translateY(-2px);
}

/* Modern selection styles */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
}

/* Enhanced button states */
.currency-selector:active {
    transform: scale(0.98);
}

.swap-arrow:active {
    transform: rotate(180deg) scale(0.95);
}

/* Improved dropdown animations */
.currency-dropdown {
    transform-origin: top right;
}

.currency-option:first-child {
    margin-top: 8px;
}

.currency-option:last-child {
    margin-bottom: 8px;
}

/* Loading state improvements */
.loading .currency-selector {
    pointer-events: none;
    opacity: 0.6;
}

/* Tablet Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 16px 24px;
        margin: 0 16px;
    }
    
    .nav {
        display: flex;
        gap: 16px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .main {
        padding: 32px 24px;
    }
    
    .swap-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 24px;
        margin: 0 auto;
    }
    
    .swap-card {
        padding: 24px 20px;
        min-height: 420px;
    }
    
    .swap-title {
        font-size: 22px;
        margin-bottom: 18px;
    }
    
    .info-panel {
        order: -1;
        gap: 20px;
    }
    
    .market-info-card,
    .recent-transactions-card {
        padding: 16px;
    }
}

/* Tablet Landscape (1025px - 1199px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    .swap-container {
        grid-template-columns: 1fr 280px;
        max-width: 900px;
        gap: 24px;
    }
    
    .swap-card {
        min-height: 420px;
    }
    
    .info-panel {
        gap: 16px;
    }
    
    .market-info-card,
    .recent-transactions-card {
        padding: 16px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .main::before {
        animation: none;
    }
    
    body {
        animation: none;
        background: linear-gradient(135deg, #8B5CF6 0%, #22C55E 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .swap-card {
        border: 2px solid #ffffff;
    }
    
    .input-group {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .currency-selector {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}
/* Ani
mated Background Particles */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(34, 197, 94, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(6, 182, 212, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(34, 197, 94, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleMove 25s linear infinite;
    z-index: -2;
    pointer-events: none;
}

.container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 50px, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(2px 2px at 100px 100px, rgba(34, 197, 94, 0.15), transparent),
        radial-gradient(1px 1px at 150px 150px, rgba(6, 182, 212, 0.2), transparent);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: particleMove 30s linear infinite reverse;
    z-index: -2;
    pointer-events: none;
}

@keyframes particleMove {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(50px); }
}

/* Floating Elements */
.floating-element {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    top: 70%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15), transparent);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite reverse;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.12), transparent);
    border-radius: 50%;
    animation: breathe 10s ease-in-out infinite;
}

/* Enhanced Glow Effects */
.swap-container {
    position: relative;
}

.swap-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50px;
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Additional Large Orbs */
.main {
    position: relative;
}

.main::after {
    content: '';
    position: absolute;
    top: 80%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(35px);
    animation: floatLarge 20s ease-in-out infinite;
    z-index: -1;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .main::after {
        width: 150px;
        height: 150px;
        top: 15%;
        right: 5%;
    }
    
    .container::before,
    .container::after {
        background-size: 150px 75px;
    }
    
    .floating-element {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .main::before,
    .main::after,
    .swap-card::before,
    .swap-card::after,
    .container::before,
    .container::after,
    .swap-container::before,
    .floating-element {
        animation: none !important;
    }
    
    body::after {
        animation: none !important;
    }
    
    body {
        background-image: none;
        animation: none !important;
    }
}/*
 Footer Styles */
.footer {
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding: 40px 24px 20px;
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), rgba(147, 51, 234, 0.5), transparent);
}

/* Crypto Prices Section */
.crypto-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(30, 35, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.crypto-item:hover {
    background: rgba(40, 45, 50, 0.8);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.1);
}

.crypto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.crypto-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.crypto-symbol {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.crypto-price {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.crypto-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.crypto-change.positive {
    color: #00FF88;
    background: rgba(0, 255, 136, 0.1);
}

.crypto-change.negative {
    color: #FF4757;
    background: rgba(255, 71, 87, 0.1);
}

.crypto-change.neutral {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer Content */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #00FFFF, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    text-align: center;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00FFFF, #9333EA);
    border-radius: 1px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-list li {
    margin-bottom: 6px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: #00FFFF;
    transform: translateX(4px);
}

.soon-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #00FFFF;
}

/* Footer Responsive Design */
@media (max-width: 480px) {
    .footer {
        padding: 20px 12px 10px;
    }
    
    .crypto-prices {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .crypto-item {
        padding: 8px 10px;
        border-radius: 8px;
    }
    
    .crypto-icon {
        width: 20px;
        height: 20px;
    }
    
    .crypto-symbol {
        font-size: 12px;
    }
    
    .crypto-price {
        font-size: 11px;
    }
    
    .crypto-change {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .footer-content {
        gap: 20px;
        padding: 20px 0;
    }
    
    .footer-logo-text {
        font-size: 16px;
    }
    
    .footer-logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: none;
    }
    
    .footer-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .footer-link {
        font-size: 11px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 0;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-bottom-links {
        gap: 12px;
    }
    
    .footer-bottom-link {
        font-size: 12px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .footer {
        padding: 25px 16px 12px;
    }
    
    .crypto-prices {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .crypto-item {
        padding: 9px 11px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-logo-icon {
        width: 70px;
        height: 70px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        gap: 35px;
    }
    
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
        max-width: 1200px;
    }
    
    .crypto-prices {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure consistent footer layout for medium screens */
@media (min-width: 600px) and (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        max-width: none;
    }
}

/* Footer Animation Effects */
.crypto-item {
    animation: fadeInUp 0.6s ease forwards;
}

.crypto-item:nth-child(1) { animation-delay: 0.1s; }
.crypto-item:nth-child(2) { animation-delay: 0.2s; }
.crypto-item:nth-child(3) { animation-delay: 0.3s; }
.crypto-item:nth-child(4) { animation-delay: 0.4s; }
.crypto-item:nth-child(5) { animation-delay: 0.5s; }
.crypto-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Crypto Price Updates Animation */
.crypto-change {
    transition: all 0.3s ease;
}

.price-flash {
    animation: priceFlash 1s ease-out;
}

@keyframes priceFlash {
    0% { 
        background-color: rgba(34, 197, 94, 0.2);
        transform: scale(1.02);
    }
    50% { 
        background-color: rgba(34, 197, 94, 0.1);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

/* Price update error notification */
.price-update-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.price-update-error button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-update-error button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Last update time indicator */
.last-update-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 8px;
}

/* Price Status Indicator */
.price-status {
    text-align: center;
    margin: 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

.status-dot.error {
    background: #ef4444;
    animation: none;
}

.status-dot.loading {
    background: #f59e0b;
    animation: pulse 1s infinite;
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Footer Glow Effect */
.footer::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
/* Route
s Section */
.routes-container {
    flex: 1;
    min-width: 400px;
}

.routes-card {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.routes-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), rgba(147, 51, 234, 0.8), transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

.routes-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.routes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-item {
    background: rgba(30, 35, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.route-item:hover {
    background: rgba(40, 45, 50, 0.8);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.15);
}

.route-item.best-price {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.route-item.best-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.8), transparent);
}

.route-item.faster {
    border-color: rgba(147, 51, 234, 0.4);
    background: rgba(147, 51, 234, 0.05);
}

.route-item.faster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.8), transparent);
}

.route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.route-provider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-provider-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.route-provider-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.route-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.route-badge.best-price {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.route-badge.faster {
    background: rgba(147, 51, 234, 0.2);
    color: #9333EA;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.route-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.route-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.route-path {
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-path-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.route-path-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.route-fee {
    font-weight: 600;
}

.route-fee.positive {
    color: #22C55E;
}

.route-fee.negative {
    color: #FF4757;
}

.route-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-time-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Loading state for routes */
.routes-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.routes-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-top: 2px solid #00FFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Routes */
@media (max-width: 1200px) {
    .swap-container {
        flex-direction: column;
        max-width: 420px;
    }
    
    .routes-container {
        min-width: auto;
        width: 100%;
    }
    
    .swap-card {
        flex: none;
    }
}

@media (max-width: 768px) {
    .routes-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .route-item {
        padding: 14px;
    }
    
    .route-amount {
        font-size: 16px;
    }
}/* Ne
twork Selection Modal */
.network-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.network-modal {
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        0 8px 32px rgba(0, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.network-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), rgba(147, 51, 234, 0.8), transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

.network-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.network-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.network-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.network-modal-content {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.network-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(30, 35, 40, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    text-align: left;
    width: 100%;
    font-size: 16px;
}

.network-option:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.15);
}

.network-option:active {
    transform: translateY(0) scale(0.98);
}

.network-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.network-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.network-code {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    background: rgba(0, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* Network Modal Responsive */
@media (max-width: 480px) {
    .network-modal {
        width: calc(100% - 20px);
        margin: 10px;
        border-radius: 16px;
    }
    
    .network-modal-header {
        padding: 16px 16px 8px;
    }
    
    .network-modal-title {
        font-size: 16px;
    }
    
    .network-modal-close {
        padding: 6px;
    }
    
    .network-modal-content {
        padding: 8px 16px 16px;
        gap: 8px;
    }
    
    .network-option {
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 14px;
    }
    
    .network-name {
        font-size: 14px;
    }
    
    .network-code {
        font-size: 12px;
        padding: 3px 6px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .network-modal {
        width: 90%;
        margin: 15px;
    }
    
    .network-modal-header {
        padding: 18px 18px 10px;
    }
    
    .network-modal-content {
        padding: 10px 18px 18px;
    }
    
    .network-option {
        padding: 12px 14px;
    }
    
    .network-modal-title {
        font-size: 17px;
    }
}/* 
Enhanced Typography and Form Improvements */
.swap-form .input-section:first-of-type {
    margin-top: 8px;
}

.swap-form .input-section:last-of-type {
    margin-bottom: 8px;
}

/* Better number input styling */
.amount-input[type="number"] {
    -moz-appearance: textfield;
}

.amount-input[type="number"]::-webkit-outer-spin-button,
.amount-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Enhanced focus states with better visibility */
.input-group:focus-within {
    border-color: rgba(0, 255, 255, 0.8);
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 0 0 6px rgba(0, 255, 255, 0.15);
    transform: translateY(-3px);
}

.address-input:focus {
    border-color: rgba(0, 255, 255, 0.8);
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 0 0 6px rgba(0, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Address validation styles */
.address-input.address-valid {
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(16, 185, 129, 0.05);
}

.address-input.address-invalid {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(239, 68, 68, 0.05);
}

.address-validation {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
}

.address-validation-valid {
    color: rgba(16, 185, 129, 0.9);
}

.address-validation-invalid {
    color: rgba(239, 68, 68, 0.9);
}

.address-validation .validation-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.address-validation-valid .validation-icon {
    stroke: rgba(16, 185, 129, 0.9);
}

.address-validation-invalid .validation-icon {
    stroke: rgba(239, 68, 68, 0.9);
}

.validation-message {
    font-size: 13px;
    line-height: 1.4;
}

/* Network info in address label */
.network-info {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 255, 255, 0.8);
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Better currency selector hover states */
.currency-selector:hover {
    background: rgba(70, 70, 70, 0.9);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 255, 255, 0.25);
}

/* Enhanced submit button */
.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 255, 255, 0.7);
}

/* Better monospace font for addresses and amounts */
.amount-input {
    font-family: 'JetBrains Mono', 'Inter', monospace;
}

.address-input {
    font-family: 'JetBrains Mono', 'Inter', monospace;
}

/* Improved placeholder styling */
.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.address-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

/* Better visual hierarchy */
.swap-card h2.swap-title {
    position: relative;
}

.swap-card h2.swap-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00FFFF, #9333EA);
    border-radius: 2px;
}

/* Enhanced spacing for better readability */
.swap-form > * + * {
    margin-top: 4px;
}

/* Better visual feedback for interactive elements */
.currency-selector:active {
    transform: translateY(0) scale(0.97);
}

.swap-arrow:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(147, 51, 234, 0.25));
    border-color: rgba(0, 255, 255, 0.6);
    color: #ffffff;
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 10px 28px rgba(0, 255, 255, 0.4);
}

/* Improved gift icon in referral banner */
.gift-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 255, 255, 0.3));
}

/* Better lock icon styling */
.lock-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Enhanced dropdown arrow */
.dropdown-arrow {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.currency-selector:hover .dropdown-arrow {
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.8);
}/* Enh
anced Currency Dropdown Styles */
.currency-search-header {
    padding: 20px 24px 16px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.15);
    margin-bottom: 8px;
}

.currency-dropdown-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.currency-search-container {
    position: relative;
    margin-bottom: 0;
}

.currency-search-input {
    width: 100%;
    background: rgba(30, 35, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px 16px 50px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.currency-search-input:focus {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(40, 45, 50, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1);
}

.currency-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.currency-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.currency-search-input:focus + .currency-search-icon {
    color: rgba(0, 255, 255, 0.8);
}

/* Enhanced currency option details */
.currency-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.currency-price-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.currency-change {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.currency-change.positive {
    color: #00FF88;
    background: rgba(0, 255, 136, 0.15);
}

.currency-change.negative {
    color: #FF4757;
    background: rgba(255, 71, 87, 0.15);
}

/* Better scrollbar for enhanced dropdown */
.currency-dropdown::-webkit-scrollbar {
    width: 8px;
}

.currency-dropdown::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.3);
    border-radius: 4px;
    margin: 8px 0;
}

.currency-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 4px;
}

.currency-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}

/* Enhanced dropdown animation */
@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Currency Dropdown Responsive */
@media (max-width: 480px) {
    .currency-dropdown {
        min-width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        left: 12px !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%);
        width: auto;
        max-height: 80vh;
        border-radius: 16px;
    }
    
    .currency-search-header {
        padding: 16px 18px 12px;
    }
    
    .currency-dropdown-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .currency-search-input {
        padding: 12px 16px 12px 40px;
        font-size: 16px;
        border-radius: 14px;
    }
    
    .currency-search-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }
    
    .currency-option {
        padding: 14px 18px;
        min-height: 64px;
        margin: 3px 8px;
        border-radius: 12px;
    }
    
    .currency-option .currency-icon {
        width: 28px;
        height: 28px;
    }
    
    .currency-name {
        font-size: 15px;
    }
    
    .currency-price {
        font-size: 13px;
    }
    
    .currency-change {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .currency-code {
        font-size: 13px;
        padding: 6px 8px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .currency-dropdown {
        min-width: 300px;
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px;
        width: auto;
    }
    
    .currency-search-header {
        padding: 14px 18px 10px;
    }
    
    .currency-dropdown-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .currency-option {
        padding: 12px 18px;
        min-height: 60px;
    }
    
    .currency-option .currency-icon {
        width: 28px;
        height: 28px;
    }
    
    .currency-name {
        font-size: 14px;
    }
    
    .currency-code {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Loading state for currency options */
.currency-option.loading {
    opacity: 0.6;
    pointer-events: none;
}

.currency-option.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

/* Enhanced focus states for keyboard navigation */
.currency-option:focus {
    outline: none;
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

/* Better visual hierarchy */
.currency-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), rgba(147, 51, 234, 0.8), transparent);
    border-radius: 24px 24px 0 0;
}/* Excha
nge Info Panel */
.exchange-info {
    background: rgba(25, 30, 35, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    backdrop-filter: blur(10px);
}

.exchange-rate {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.rate-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    font-weight: 500;
}

.rate-value {
    font-size: 16px;
    font-weight: 700;
    color: #00FFFF;
    font-family: 'JetBrains Mono', monospace;
}

.exchange-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

/* Info Panel */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.market-info-card,
.recent-transactions-card {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.info-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.market-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(30, 35, 40, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #00FFFF;
    font-family: 'JetBrains Mono', monospace;
}

/* Recent Transactions */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(30, 35, 40, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(40, 45, 50, 0.7);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.transaction-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tx-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.transaction-pair span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.transaction-amount {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
}

/* Loading states for recent swaps */
.loading-item {
    opacity: 0.6;
    pointer-events: none;
}

.loading-placeholder {
    height: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Info Panel Responsive */
@media (max-width: 480px) {
    .info-panel {
        gap: 12px;
        order: -1;
    }
    
    .market-info-card,
    .recent-transactions-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .info-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .market-stats {
        gap: 6px;
    }
    
    .stat-item,
    .transaction-item {
        padding: 8px 10px;
        border-radius: 8px;
    }
    
    .stat-label,
    .stat-value {
        font-size: 11px;
    }
    
    .transaction-amount {
        font-size: 11px;
    }
    
    .tx-icon {
        width: 16px;
        height: 16px;
    }
    
    .transaction-pair span {
        font-size: 10px;
    }
}

/* Desktop Responsive */
@media (min-width: 1200px) {
    .swap-container {
        max-width: 1200px;
        grid-template-columns: 1fr 360px;
        gap: 28px;
    }
    
    .swap-card {
        padding: 32px 28px;
    }
    
    .market-info-card,
    .recent-transactions-card {
        padding: 20px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .swap-container {
        max-width: 1400px;
        grid-template-columns: 1fr 400px;
        gap: 32px;
    }
    
    .swap-card {
        padding: 36px 32px;
    }
}/* Ad
ditional Mobile Optimizations */

/* Touch-friendly interactions */
@media (max-width: 768px) {
    .currency-selector,
    .swap-arrow,
    .submit-btn {
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
        touch-action: manipulation;
    }
    
    /* Prevent zoom on input focus */
    .amount-input,
    .address-input,
    .currency-search-input {
        font-size: 16px !important;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .main {
        padding: 12px 16px;
    }
    
    .swap-card {
        min-height: auto;
        padding: 16px 18px;
    }
    
    .swap-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .swap-form {
        gap: 6px;
    }
    
    .input-section {
        gap: 3px;
    }
    
    .footer {
        padding: 16px 12px 8px;
    }
    
    .crypto-prices {
        margin-bottom: 16px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .currency-icon,
    .tx-icon,
    .crypto-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0f14;
    }
    
    .swap-card,
    .market-info-card,
    .recent-transactions-card {
        background: rgba(10, 15, 20, 0.98);
    }
}

/* Reduced data mode */
@media (prefers-reduced-data: reduce) {
    body::before,
    body::after,
    .main::before,
    .main::after {
        display: none;
    }
    
    .floating-element {
        display: none;
    }
}

/* Print styles */
@media print {
    body::before,
    body::after,
    .main::before,
    .main::after,
    .floating-element {
        display: none !important;
    }
    
    .header,
    .footer {
        display: none !important;
    }
    
    .swap-card {
        box-shadow: none;
        border: 2px solid #000;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .main {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* Viewport height adjustments for mobile browsers */
@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .currency-selector:focus-visible,
    .swap-arrow:focus-visible,
    .submit-btn:focus-visible {
        outline: 2px solid #00FFFF;
        outline-offset: 2px;
    }
}

/* Hover states only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .currency-option:hover,
    .transaction-item:hover,
    .stat-item:hover {
        transform: translateY(-1px);
    }
}

/* Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .currency-option:hover,
    .transaction-item:hover,
    .stat-item:hover {
        transform: none;
        background: rgba(30, 35, 40, 0.5);
    }
}/* 
Enhanced Currency Selector Visibility */
.currency-selector::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.3), rgba(147, 51, 234, 0.3));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.currency-selector:hover::before {
    opacity: 1;
}

/* Mobile-specific currency selector enhancements */
@media (max-width: 768px) {
    .currency-selector {
        position: relative;
        overflow: visible;
    }
    
    .currency-selector::after {
        content: 'TAP TO SELECT';
        position: absolute;
        top: -8px;
        right: -8px;
        background: linear-gradient(135deg, #00FFFF, #9333EA);
        color: #000;
        font-size: 8px;
        font-weight: 800;
        padding: 2px 6px;
        border-radius: 6px;
        opacity: 0.8;
        animation: pulse 2s infinite;
        pointer-events: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .input-group:focus-within .currency-selector::after {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Make currency code more prominent on mobile */
@media (max-width: 480px) {
    .currency-selector .currency-code {
        background: rgba(0, 255, 255, 0.2);
        padding: 4px 8px;
        border-radius: 8px;
        border: 1px solid rgba(0, 255, 255, 0.4);
        font-weight: 900;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .currency-selector .currency-code {
        background: rgba(0, 255, 255, 0.15);
        padding: 3px 6px;
        border-radius: 6px;
        border: 1px solid rgba(0, 255, 255, 0.3);
        font-weight: 800;
    }
}

/* Add visual feedback for touch */
@media (hover: none) and (pointer: coarse) {
    .currency-selector:active {
        transform: scale(0.95);
        background: rgba(0, 255, 255, 0.2);
        border-color: rgba(0, 255, 255, 0.6);
    }
    
    .currency-selector:active::before {
        opacity: 1;
    }
}

/* Improve dropdown arrow visibility on mobile */
@media (max-width: 768px) {
    .dropdown-arrow {
        width: 16px;
        height: 16px;
        color: rgba(0, 255, 255, 0.8);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    }
}

/* Add focus ring for accessibility */
.currency-selector:focus {
    outline: 3px solid rgba(0, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Ensure currency selector is always visible */
.currency-selector {
    z-index: 10;
    position: relative;
}

/* Add subtle animation to draw attention */
@media (max-width: 768px) {
    .currency-selector {
        animation: subtleGlow 3s ease-in-out infinite;
    }
}

@keyframes subtleGlow {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(0, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(0, 255, 255, 0.25);
    }
}/
* Enhanced dropdown styling to match reference */
.currency-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.currency-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
    border-radius: 20px 20px 0 0;
}

.currency-search-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-option:first-child {
    margin-top: 6px;
}

.currency-option:last-child {
    margin-bottom: 6px;
}

.currency-option:active {
    transform: scale(0.98);
    background: rgba(0, 255, 255, 0.15);
}

/* Better scrollbar for dropdown */
.currency-dropdown::-webkit-scrollbar {
    width: 6px;
}

.currency-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 3px;
}

.currency-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}

/* Backdrop styling */
.dropdown-backdrop {
    animation: backdropFadeIn 0.2s ease;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile positioning improvements */
@media (max-width: 768px) {
    .currency-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 32px) !important;
        max-width: 400px !important;
        max-height: 80vh !important;
    }
}

/* Prevent body scroll when dropdown is open */
body.dropdown-open {
    overflow: hidden;
}
/* Refe
rral Modal Styles */
.referral-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.referral-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.referral-modal-content {
    position: relative;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 100%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 255, 255, 0.2);
    animation: modalSlideIn 0.4s ease;
    overflow: hidden;
}

.referral-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(147, 51, 234, 0.05));
}

.referral-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.referral-modal-body {
    padding: 28px;
}

.referral-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.referral-input {
    flex: 1;
    background: rgba(30, 35, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.referral-input:focus {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(40, 45, 50, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1);
}

.referral-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.referral-apply-btn {
    background: linear-gradient(135deg, #00FFFF, #9333EA);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.3);
}

.referral-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.4);
}

.referral-apply-btn:active {
    transform: translateY(0);
}

.referral-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.referral-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(30, 35, 40, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.referral-benefit-item:hover {
    background: rgba(40, 45, 50, 0.7);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.referral-benefit-icon {
    color: #00FF88;
    flex-shrink: 0;
}

.referral-benefit-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.referral-message {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.referral-message-success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00FF88;
}

.referral-message-error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #FF4757;
}

/* Referral Banner Applied State */
.referral-banner.referral-applied {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.08));
    border-color: rgba(0, 255, 136, 0.3);
    cursor: default;
}

.referral-banner.referral-applied:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.referral-banner {
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 255, 255, 0.2);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .referral-modal {
        padding: 16px;
    }
    
    .referral-modal-content {
        max-width: none;
        width: 100%;
        border-radius: 16px;
    }
    
    .referral-modal-header {
        padding: 20px 24px 16px;
    }
    
    .referral-modal-title {
        font-size: 18px;
    }
    
    .referral-modal-body {
        padding: 24px;
    }
    
    .referral-input-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .referral-input,
    .referral-apply-btn {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .referral-benefit-item {
        padding: 14px;
    }
    
    .referral-benefit-item span {
        font-size: 13px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .referral-modal-content {
        max-width: 380px;
    }
    
    .referral-modal-header {
        padding: 22px 26px 18px;
    }
    
    .referral-modal-body {
        padding: 26px;
    }
}
/* Curre
ncy Search Header */
.currency-search-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 25, 30, 0.8);
}

.currency-search-container {
    position: relative;
    margin-bottom: 12px;
}

.currency-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.currency-search-input {
    width: 100%;
    background: rgba(40, 45, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px 12px 44px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.currency-search-input:focus {
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(50, 55, 60, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.currency-dropdown-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.mobile-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Currency option enhancements */
.currency-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.currency-price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-price {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.currency-change {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.currency-change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.currency-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.currency-change.neutral {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Mobile currency option improvements */
@media (max-width: 768px) {
    .currency-option {
        min-height: 80px;
        padding: 18px 20px;
        margin: 4px 12px;
        border-radius: 16px;
    }
    
    .currency-option .currency-icon {
        width: 36px;
        height: 36px;
    }
    
    .currency-name {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .currency-code {
        font-size: 15px;
        padding: 8px 12px;
        border-radius: 10px;
    }
    
    .currency-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px 14px 48px;
    }
}

/* Touch feedback improvements */
.currency-option:active {
    background: rgba(0, 255, 255, 0.15) !important;
    transform: scale(0.98) !important;
}

/* Prevent text selection on touch elements */
.currency-selector,
.currency-option,
.swap-arrow,
.submit-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve tap targets for accessibility */
@media (pointer: coarse) {
    .currency-selector {
        min-height: 48px;
        min-width: 120px;
    }
    
    .currency-option {
        min-height: 72px;
    }
    
    .swap-arrow {
        min-width: 44px;
        min-height: 44px;
    }
}/* 
Network Modal Styles */
.network-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.network-modal {
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 255, 255, 0.15);
    animation: modalSlideIn 0.4s ease;
}

.network-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 25, 30, 0.8);
}

.network-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.network-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.network-modal-content {
    padding: 20px 24px;
}

.network-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(30, 35, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    text-align: left;
    width: 100%;
    min-height: 64px;
}

.network-option:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.network-option:active {
    transform: scale(0.98);
    background: rgba(0, 255, 255, 0.15);
}

.network-info {
    flex: 1;
}

.network-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.network-code {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'JetBrains Mono', monospace;
}

/* Mobile network modal */
@media (max-width: 768px) {
    .network-modal-overlay {
        padding: 20px;
    }
    
    .network-modal {
        max-width: none;
        width: calc(100% - 40px);
        max-width: 350px;
        border-radius: 24px;
    }
    
    .network-option {
        min-height: 72px;
        padding: 18px 20px;
        border-radius: 16px;
    }
    
    .network-name {
        font-size: 16px;
    }
    
    .network-code {
        font-size: 15px;
        padding: 8px 12px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}/* Ref
erral Modal Mobile Enhancements */
@media (max-width: 768px) {
    .referral-modal {
        padding: 20px;
    }
    
    .referral-modal-content {
        width: calc(100% - 40px);
        max-width: 350px;
        border-radius: 24px;
    }
    
    .referral-modal-header {
        padding: 20px 24px 16px;
    }
    
    .referral-modal-title {
        font-size: 18px;
    }
    
    .referral-modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .referral-modal-body {
        padding: 16px 24px 24px;
    }
    
    .referral-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
        min-height: 48px;
    }
    
    .referral-apply-btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .referral-benefit-item {
        padding: 12px 0;
        font-size: 14px;
    }
}

/* Enhanced touch feedback for referral elements */
.referral-apply-btn:active {
    transform: scale(0.95);
    background: rgba(0, 255, 255, 0.25);
}

.referral-modal-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.2);
}

/* Referral banner mobile improvements */
@media (max-width: 480px) {
    .referral-banner {
        padding: 12px 16px;
        min-height: 48px;
        font-size: 13px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .referral-banner:active {
        transform: scale(0.98);
        background: rgba(0, 255, 255, 0.15);
    }
    
    .gift-icon {
        width: 18px;
        height: 18px;
    }
}/
* Final Mobile Touch Optimizations */

/* Improve button touch targets */
@media (max-width: 768px) {
    .submit-btn {
        font-size: 16px !important;
        min-height: 52px !important;
        padding: 16px 24px !important;
        border-radius: 16px !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .submit-btn:active {
        transform: scale(0.96) !important;
        box-shadow: 0 8px 24px rgba(0, 255, 255, 0.4) !important;
    }
    
    /* Enhanced currency selector for mobile */
    .currency-selector {
        font-size: 16px !important;
        min-height: 52px !important;
        padding: 14px 18px !important;
        border-radius: 16px !important;
        border-width: 3px !important;
        font-weight: 800 !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .currency-selector:active {
        transform: scale(0.95) !important;
        background: rgba(0, 255, 255, 0.25) !important;
    }
    
    /* Swap arrow mobile enhancement */
    .swap-arrow {
        width: 44px !important;
        height: 44px !important;
        border-width: 3px !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .swap-arrow:active {
        transform: rotate(180deg) scale(0.9) !important;
        background: rgba(0, 255, 255, 0.2) !important;
    }
}

/* Prevent iOS zoom on form inputs */
@supports (-webkit-touch-callout: none) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Enhanced touch feedback */
.touch-active {
    background: rgba(0, 255, 255, 0.2) !important;
    transform: scale(0.95) !important;
    transition: all 0.1s ease !important;
}

/* Crypto item mobile touch improvements */
@media (max-width: 768px) {
    .crypto-item {
        min-height: 60px;
        padding: 12px 16px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
    }
    
    .crypto-item:active {
        transform: scale(0.98);
        background: rgba(0, 255, 255, 0.1);
    }
    
    .crypto-item.selected {
        background: rgba(0, 255, 255, 0.2) !important;
        border-color: rgba(0, 255, 255, 0.5) !important;
        transform: scale(1.02) !important;
    }
}

/* Address validation mobile improvements */
@media (max-width: 768px) {
    .address-validation {
        padding: 8px 12px;
        margin-top: 8px;
        border-radius: 10px;
        font-size: 13px;
    }
    
    .validation-icon {
        width: 16px;
        height: 16px;
    }
}

/* Exchange info mobile improvements */
@media (max-width: 768px) {
    .exchange-info {
        padding: 16px;
        margin: 12px 0;
        border-radius: 14px;
        background: rgba(20, 25, 30, 0.8);
        border: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    .exchange-rate {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .rate-value {
        font-size: 16px;
        font-weight: 700;
        color: #00FFFF;
    }
    
    .detail-item {
        padding: 8px 0;
        font-size: 14px;
    }
}

/* Routes container mobile improvements */
@media (max-width: 768px) {
    .routes-container {
        margin: 16px 0;
    }
    
    .routes-card {
        background: rgba(20, 25, 30, 0.8);
        border: 1px solid rgba(0, 255, 255, 0.2);
        border-radius: 16px;
        padding: 16px;
    }
    
    .routes-title {
        font-size: 16px;
        margin-bottom: 12px;
        color: #ffffff;
    }
    
    .route-item {
        padding: 14px 16px;
        margin-bottom: 10px;
        border-radius: 12px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
    }
    
    .route-item:active {
        transform: scale(0.98);
        background: rgba(0, 255, 255, 0.1);
    }
}

/* Disable text selection on interactive elements */
.currency-selector,
.currency-option,
.network-option,
.swap-arrow,
.submit-btn,
.crypto-item,
.route-item,
.referral-banner {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    .currency-dropdown,
    .network-modal {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* High contrast mode mobile support */
@media (prefers-contrast: high) and (max-width: 768px) {
    .currency-selector,
    .currency-option,
    .network-option,
    .submit-btn {
        border-width: 3px !important;
        border-color: #ffffff !important;
    }
}/* Re
move TAP TO SELL text completely */
*::before, *::after {
    content: "" !important;
}

.currency-selector::before,
.currency-selector::after,
.input-group::before,
.input-group::after {
    display: none !important;
    content: none !important;
}

/* Hide any potential overlay elements with tap/sell text */
[class*="tap"], [id*="tap"], [class*="sell"], [id*="sell"] {
    display: none !important;
}

/* Enhanced mobile touch support */
.mobile-device .currency-selector {
    -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3) !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

.mobile-device .currency-selector:active,
.mobile-device .currency-selector.touch-active {
    background: rgba(0, 255, 255, 0.25) !important;
    transform: scale(0.95) !important;
    transition: all 0.1s ease !important;
}

/* Ensure buttons work on mobile */
@media (max-width: 768px) {
    .currency-selector {
        min-height: 56px !important;
        min-width: 120px !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        border: 3px solid rgba(0, 255, 255, 0.4) !important;
        background: rgba(0, 255, 255, 0.15) !important;
        border-radius: 16px !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3) !important;
    }
    
    .currency-selector:hover {
        background: rgba(0, 255, 255, 0.2) !important;
        border-color: rgba(0, 255, 255, 0.6) !important;
        transform: translateY(-2px) !important;
    }
    
    .currency-selector:active {
        background: rgba(0, 255, 255, 0.3) !important;
        transform: scale(0.95) !important;
    }
    
    .swap-arrow {
        min-width: 48px !important;
        min-height: 48px !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3) !important;
    }
    
    .swap-arrow:active {
        transform: rotate(180deg) scale(0.9) !important;
        background: rgba(0, 255, 255, 0.2) !important;
    }
    
    .submit-btn {
        min-height: 56px !important;
        font-size: 16px !important;
        padding: 18px 24px !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .submit-btn:active {
        transform: scale(0.95) !important;
    }
}

/* Force remove any external overlays */
body > div:not(.container):not(#referralModal):not(.currency-dropdown):not(.network-modal-overlay) {
    display: none !important;
}

/* Prevent any text content injection */
.currency-selector * {
    pointer-events: auto !important;
}

/* Ensure proper z-index for interactive elements */
.currency-selector {
    position: relative !important;
    z-index: 10 !important;
}

.swap-arrow {
    position: relative !important;
    z-index: 10 !important;
}

/* Additional mobile optimizations */
@media (pointer: coarse) {
    .currency-selector,
    .swap-arrow,
    .submit-btn {
        min-height: 44px !important;
        min-width: 44px !important;
    }
}/* 
Enhanced Text Input Styling */
.amount-input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.amount-input:focus {
    color: #00FFFF;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* Enhanced Address Input */
.address-input {
    width: 100%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    min-height: 56px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.address-input:focus {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 
        0 0 0 4px rgba(0, 255, 255, 0.1),
        0 8px 24px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.address-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Enhanced Input Groups */
.input-group {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 64px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 
        0 0 0 4px rgba(0, 255, 255, 0.1),
        0 8px 24px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Input Group Glow Effect */
.input-group::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.3), 
        rgba(147, 51, 234, 0.3), 
        rgba(0, 255, 255, 0.3));
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.input-group:focus-within::before {
    opacity: 1;
}

/* Mobile Text Input Enhancements */
@media (max-width: 768px) {
    .amount-input {
        font-size: 20px;
        font-weight: 800;
        padding: 8px 0;
    }
    
    .address-input {
        font-size: 16px;
        padding: 18px 20px;
        min-height: 60px;
        border-radius: 18px;
        border-width: 3px;
    }
    
    .input-group {
        padding: 18px 20px;
        min-height: 68px;
        border-radius: 18px;
        border-width: 3px;
    }
    
    .input-label {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.9);
    }
}

/* Text Selection Styling */
.amount-input::selection,
.address-input::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
}

/* Input Animation Effects */
.input-group.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.input-group.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    animation: inputLoading 2s infinite;
}

@keyframes inputLoading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Address Validation Styling */
.address-input.address-valid {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.address-input.address-invalid {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.address-validation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    animation: validationSlide 0.3s ease;
}

.address-validation-valid {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.address-validation-invalid {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.validation-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes validationSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Input Focus States */
.input-section.focused .input-label {
    color: #00FFFF;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* Input Counter/Helper Text */
.input-helper {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}

/* Copy/Paste Button for Address */
.address-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.address-action-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-action-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    color: #ffffff;
}

/* Improved Mobile Input Experience */
@media (max-width: 480px) {
    .amount-input {
        font-size: 22px;
        text-align: center;
    }
    
    .address-input {
        font-size: 16px;
        line-height: 1.4;
        word-break: break-all;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 20px;
    }
    
    .currency-selector {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* Dark Mode Input Enhancements */
@media (prefers-color-scheme: dark) {
    .amount-input,
    .address-input {
        color: #ffffff;
    }
    
    .input-group {
        background: rgba(20, 25, 30, 0.9);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .input-group,
    .address-input {
        border-width: 3px;
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .amount-input,
    .address-input {
        color: #ffffff;
        font-weight: 700;
    }
}/* Input Fee
dback Animation */
@keyframes feedbackSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Address Actions */
.address-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.address-action-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.address-action-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.05);
}

.address-action-btn:active {
    transform: scale(0.95);
    background: rgba(0, 255, 255, 0.3);
}

/* Mobile Address Actions */
@media (max-width: 768px) {
    .address-actions {
        right: 20px;
        gap: 12px;
    }
    
    .address-action-btn {
        min-width: 40px;
        min-height: 40px;
        font-size: 16px;
        padding: 10px;
        border-radius: 10px;
    }
}

/* Input Helper Text */
.input-helper {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding-left: 4px;
}

/* Enhanced Input States */
.amount-input:focus {
    color: #00FFFF !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3) !important;
}

.amount-input.has-value {
    color: #00FFFF;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* Input Section Positioning */
.input-section {
    position: relative;
}

/* Improved Mobile Input Layout */
@media (max-width: 480px) {
    .input-section {
        margin-bottom: 20px;
    }
    
    .address-input {
        padding-right: 120px; /* Make room for action buttons */
    }
    
    .address-actions {
        right: 16px;
        flex-direction: row;
        gap: 8px;
    }
    
    .input-helper {
        font-size: 11px;
        margin-top: 8px;
        text-align: center;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .input-feedback,
    .address-action-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus Visible for Keyboard Navigation */
.address-action-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.6);
    outline-offset: 2px;
}

/* Input Loading State */
.input-group.calculating {
    background: rgba(30, 30, 30, 0.6);
    pointer-events: none;
}

.input-group.calculating .amount-input {
    color: rgba(255, 255, 255, 0.5);
}

.input-group.calculating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    animation: inputCalculating 1.5s infinite;
}

@keyframes inputCalculating {
    0% { left: -100%; }
    100% { left: 100%; }
}