@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body {
    background: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(111, 179, 39, 0.08) 0, transparent 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f8fafc;
}

.hero-section {
    display: flex;
    flex-direction: row;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 20px;
    flex: 1 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-text h1 span {
    background: linear-gradient(90deg, #6fb327, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.status-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
}

.pulse-icon {
    width: 10px;
    height: 10px;
    background: #6fb327;
    border-radius: 50%;
    position: relative;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.main-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 32px;
    width: 460px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6);
}


.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px; 
}


input, .display-val {
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: right;
    width: 100%;        
    min-width: 0;      
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}


.custom-select {
    position: relative;
    cursor: pointer;
    flex-shrink: 0; 
}

.selected-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-flag {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.current-code {
    font-weight: 700;
}

.options-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 250px;
    max-height: 250px;
    background: #1e293b;
    border-radius: 12px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.options-dropdown::-webkit-scrollbar {
    width: 6px;
}

.options-dropdown::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
}

.options-dropdown::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

.options-dropdown::-webkit-scrollbar-thumb:hover {
    background: #6fb327;
}

.options-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #475569 rgba(30, 41, 59, 0.5);
}

.options-dropdown.show {
    display: block;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    transition: 0.2s;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.option-item.active {
    color: #6fb327;
}

.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
}

#swapBtn {
    background: #334155;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    color: white;
    flex-shrink: 0;
}

#swapBtn:hover {
    background: #475569;
    transform: rotate(180deg);
}

#swapBtn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


.info-badge {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.footer {
    width: 100%;
    flex-shrink: 0;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer p span {
    color: #f8fafc;
    border-bottom: 1px solid #6fb327;
    white-space: nowrap;
}

@media (max-width: 900px) {
    body {
        padding: 20px 15px;
        justify-content: flex-start;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        justify-content: center;
        margin-top: 20px;
        flex: none;
    }

    .hero-text h1 {
        font-size: 2.4rem;
        margin-bottom: 10px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .status-box {
        justify-content: center;
    }

    .main-card {
        width: 100%;
        max-width: 400px;
        padding: 25px 20px;
    }


    input, .display-val {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .footer {
        padding: 30px 10px;
    }
}