* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0e27 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* Light Theme Styles */
body.light-theme {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%) !important;
    color: #1a1a1a !important;
}

/* Light theme disabled for now */

body.light-theme::before {
    opacity: 0.3 !important;
    filter: brightness(1.3) contrast(0.8) saturate(0.8) !important;
}

body.light-theme::after {
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.03) 0%, transparent 50%) !important;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('images/newbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.6;
    will-change: transform;
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: ambientGlow 20s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

.container {
    width: 100%;
    max-width: 500px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(10, 14, 39, 0.6);
    position: relative;
    transition: all 0.3s ease;
}

/* Light Theme Container */
body.light-theme .container {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(10, 14, 39, 0.4) 100%);
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 64px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

/* Light Theme Text */
body.light-theme .logo {
    color: #1a1a1a !important;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .tagline {
    color: #6b7280 !important;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(15, 20, 25, 0.6);
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab.active {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Light Theme Tabs */
body.light-theme .tabs {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .tab {
    color: #6b7280 !important;
}

body.light-theme .tab.active {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Light Theme Form Elements */
body.light-theme .section-label {
    color: #374151 !important;
}

body.light-theme .input-group {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .input-group:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

body.light-theme .input-group input {
    color: #1a1a1a !important;
}

body.light-theme .input-group input::placeholder {
    color: #9ca3af !important;
}

body.light-theme .currency-selector {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .currency-selector:hover {
    background: rgba(255, 255, 255, 1) !important;
}

body.light-theme .currency-name {
    color: #1a1a1a !important;
}

body.light-theme .currency-symbol {
    color: #6b7280 !important;
}

body.light-theme .exchange-button {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

body.light-theme .exchange-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

/* Light Theme Rate Display */
body.light-theme .rate-display {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

body.light-theme .rate-display .rate-label {
    color: #6b7280 !important;
}

body.light-theme .rate-display .rate-value {
    color: #1a1a1a !important;
}

/* Light Theme Social Icons */
body.light-theme .social-icons a {
    color: #6b7280 !important;
}

body.light-theme .social-icons a:hover {
    color: #3b82f6 !important;
}

/* Light Theme Hamburger Menu */
body.light-theme .hamburger-menu {
    color: #1a1a1a !important;
}

body.light-theme .hamburger-menu:hover {
    color: #3b82f6 !important;
}

/* Light Theme Chat Button */
body.light-theme .chat-button {
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

body.light-theme .chat-button:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

.tab:hover:not(.active) {
    color: #94a3b8;
    background: rgba(59, 130, 246, 0.1);
}

.exchange-container {
    background: rgba(15, 20, 25, 0.4);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.input-section {
    margin-bottom: 20px;
}

.section-label {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(26, 31, 58, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: visible;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input {
    flex: 1 1 0;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
}

.input-group input::placeholder {
    color: #64748b;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(15, 20, 25, 0.6);
    border-left: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    max-width: none;
    width: fit-content;
    flex: 0 0 auto;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
}

.currency-selector:hover {
    background: rgba(59, 130, 246, 0.1);
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    position: relative;
    padding-top: 2px;
}

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

/* Move ticker text, icon, and chevron up slightly when network tag is present */
.currency-selector.has-network-tag .currency-icon {
    transform: translateY(-8px);
}

.currency-selector.has-network-tag .currency-symbol {
    transform: translateY(-8px);
}

.currency-selector.has-network-tag .dropdown-arrow {
    transform: translateY(-8px);
}

.currency-symbol {
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.currency-network-display {
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -40px;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 500;
    text-align: left;
    padding: 0.1rem 0.6rem 0.1rem 0.4rem;
    border-radius: 0 0 0.5rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    z-index: 1;
    margin: 0;
    transform: translateY(100%);
}

.dropdown-arrow {
    color: #64748b;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.lock-icon {
    padding: 16px 8px;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 40px;
    justify-content: center;
}

.exchange-info {
    margin: 20px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:nth-child(2) {
    margin-bottom: 0px;
}

.info-item i {
    color: #10b981;
    font-size: 0.6rem;
}

.no-fees, .rate-info {
    color: #94a3b8;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #10b981;
    text-underline-offset: 3px;
}

.fixedfloat-notice {
    border-top: none !important;
    padding-top: 8px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    line-height: 1.2;
}

.service-notice {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #10b981;
    text-underline-offset: 3px;
}

.service-notice a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.service-notice a:hover {
    color: #60a5fa;
}

.swap-button {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.swap-button button {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3b82f6;
}

.swap-button button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: scale(1.05);
}

.exchange-btn {
    width: 100%;
    background: linear-gradient(45deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Disabled input styling with error cursor */
.disabled-input {
    cursor: no-drop !important;
    opacity: 0.7;
    user-select: none !important;
}

.disabled-input,
.disabled-input * {
    cursor: no-drop !important;
}

.input-group:has(.disabled-input) {
    cursor: no-drop !important;
}

.disabled-currency-selector {
    cursor: no-drop !important;
}

.disabled-currency-selector:hover {
    background: rgba(15, 20, 25, 0.6) !important;
}

.exchange-btn:hover {
    background: linear-gradient(45deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.exchange-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .currency-selector {
        border-left: none;
        border-top: 1px solid rgba(59, 130, 246, 0.2);
        width: 100%;
        justify-content: center;
    }
    
    .lock-icon {
        border-top: 1px solid rgba(59, 130, 246, 0.2);
        width: 100%;
        justify-content: center;
    }
    
    /* Transaction Confirmation Mobile Styles */
    #transaction-confirmation {
        padding: 10px 15px 15px 15px !important;
        gap: 10px !important;
    }
    
    #qr-code-container {
        width: 180px !important;
        height: 180px !important;
        padding: 2px !important;
    }
    
    #qr-code-image {
        width: 100% !important;
        height: 100% !important;
    }
    
    #payin-address-display {
        font-size: 0.8rem !important;
        padding: 12px !important;
        max-width: 100% !important;
        word-break: break-all !important;
    }
    
    #transaction-info-card {
        max-width: 100% !important;
        padding: 12px !important;
        gap: 10px !important;
    }
    
    #transaction-info-card > div {
        font-size: 0.85rem !important;
    }
    
    /* Button container for Back/Cancel buttons */
    #transaction-confirmation > div:last-child {
        max-width: 100% !important;
        gap: 10px !important;
    }
    
    #transaction-confirmation button {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
    }
    
    /* Send to text */
    #transaction-confirmation > div:not(#qr-code-container):not(#payin-address-display):not(#transaction-info-card):not(button):not(:last-child) {
        font-size: 0.9rem !important;
    }
    
    /* Completion Page Mobile Styles */
    #transaction-completion {
        padding: 20px 15px !important;
        gap: 15px !important;
    }
    
    #transaction-completion > div:first-child {
        width: 60px !important;
        height: 60px !important;
    }
    
    #transaction-completion > div:first-child i {
        font-size: 30px !important;
    }
    
    #transaction-completion h2 {
        font-size: 1.4rem !important;
    }
    
    #transaction-completion p {
        font-size: 0.9rem !important;
    }
    
    #transaction-completion > div[style*="max-width: 420px"] {
        max-width: 100% !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    
    #transaction-completion > div[style*="max-width: 420px"] > div {
        font-size: 0.85rem !important;
    }
    
    #transaction-completion button {
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
        width: 100% !important;
    }
}

/* Social Media Icons */
.social-icons {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.social-icon svg {
    transition: all 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
    background-color: #3b82f6;
}

/* CA Button */
.ca-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ca-button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

/* Chat Support Button */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.chat-button:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.chat-button i {
    color: #ffffff;
    font-size: 1.5rem;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exchange-container {
    animation: fadeIn 0.6s ease-out;
}

/* High Contrast Mode */
body.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .container {
    background: #1a1a1a !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

body.high-contrast .input-group {
    background: #0a0a0a !important;
    border: 2px solid #ffffff !important;
}

body.high-contrast .input-group input {
    color: #ffffff !important;
}

body.high-contrast .currency-selector {
    background: #0a0a0a !important;
    border: 2px solid #ffffff !important;
}

body.high-contrast .exchange-button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

body.high-contrast .exchange-button:hover {
    background: #cccccc !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
}

body.high-contrast .rate-display {
    border: 2px solid #ffffff !important;
    background: #0a0a0a !important;
}

body.high-contrast .tab {
    border: 2px solid #ffffff !important;
}

body.high-contrast .tab.active {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

body.high-contrast .logo {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}
