/* Forex calculator section */
.forex-section {
    position: relative;
}

.forex-bg {
    background:
        radial-gradient(1000px 500px at 15% 20%, rgba(9, 45, 84, 0.45), transparent 60%),
        radial-gradient(700px 500px at 85% 10%, rgba(170, 131, 56, 0.35), transparent 55%),
        linear-gradient(135deg, #081b31 0%, #0d2745 45%, #4a3f22 100%);
}

.forex-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    pointer-events: none;
}

.forex-glow-one {
    top: -8rem;
    right: -8rem;
    width: 20rem;
    height: 20rem;
    background: rgba(170, 131, 56, 0.25);
}

.forex-glow-two {
    bottom: -7rem;
    left: -8rem;
    width: 18rem;
    height: 18rem;
    background: rgba(10, 47, 89, 0.45);
}

.forex-chip {
    color: #f2d08a;
    border: 1px solid rgba(242, 208, 138, 0.35);
    background: rgba(170, 131, 56, 0.12);
}

.forex-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #f2d08a;
    box-shadow: 0 0 10px rgba(242, 208, 138, 0.85);
}

.forex-title {
    color: #f3d894;
    letter-spacing: -0.02em;
}

.forex-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.forex-card {
    background: rgba(6, 20, 37, 0.66);
    backdrop-filter: blur(8px);
}

.forex-card-header {
    background: linear-gradient(90deg, #021a3b 0%, #052449 100%);
    border-bottom: 1px solid rgba(242, 208, 138, 0.22);
}

.forex-live-pill {
    color: #f2d08a;
    border: 1px solid rgba(242, 208, 138, 0.38);
    background: rgba(170, 131, 56, 0.2);
}

.forex-label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.forex-input-wrap {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(242, 208, 138, 0.2);
}

.forex-symbol {
    color: #f2d08a;
    background: rgba(0, 0, 0, 0.22);
    border-right: 1px solid rgba(242, 208, 138, 0.18);
    min-width: 4.5rem;
    text-align: center;
}

.forex-input,
.forex-select {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(242, 208, 138, 0.2);
}

.forex-input:focus,
.forex-select:focus {
    border-color: rgba(242, 208, 138, 0.6);
    outline: none;
    box-shadow: 0 0 0 2px rgba(242, 208, 138, 0.2);
}

.forex-select option {
    color: #ffffff;
    background: #0b213b;
}

.forex-input::-webkit-outer-spin-button,
.forex-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.forex-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.forex-swap-btn {
    color: #ffffff;
    background: linear-gradient(145deg, #c79d4a 0%, #8c6a2e 100%);
    box-shadow: 0 8px 24px rgba(170, 131, 56, 0.35);
    transition: transform 200ms ease;
}

.forex-swap-btn:hover {
    transform: rotate(180deg);
}

.forex-receive-box {
    border: 1px solid rgba(242, 208, 138, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(242, 208, 138, 0.03));
}

.forex-metric {
    border: 1px solid rgba(242, 208, 138, 0.18);
    background: rgba(3, 18, 33, 0.7);
}

.forex-rate-bar {
    border: 1px solid rgba(242, 208, 138, 0.25);
    background: linear-gradient(90deg, rgba(7, 33, 63, 0.95), rgba(9, 36, 63, 0.8));
}

.forex-refresh {
    background: #f6c84e;
    color: #081b31;
}

.forex-refresh:hover {
    filter: brightness(0.95);
}

/* Custom Currency Dropdown Styles */
.forex-currency-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(242, 208, 138, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.forex-currency-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(242, 208, 138, 0.35);
}

.forex-currency-button:focus {
    outline: none;
    border-color: rgba(242, 208, 138, 0.6);
    box-shadow: 0 0 0 2px rgba(242, 208, 138, 0.2);
}

.forex-currency-button[aria-expanded='true'] .forex-currency-chevron {
    transform: rotate(180deg);
}

.forex-currency-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.forex-currency-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 50;
    background: rgba(8, 20, 37, 0.95);
    border: 1px solid rgba(242, 208, 138, 0.25);
    border-radius: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 20px 44px rgba(8, 27, 49, 0.35);
    min-width: 100%;
}

.forex-currency-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.forex-currency-option:hover,
.forex-currency-option:focus {
    background: rgba(242, 208, 138, 0.15);
    color: #f2d08a;
    outline: none;
}

.forex-currency-option.active {
    background: rgba(242, 208, 138, 0.25);
    color: #f2d08a;
    font-weight: 600;
}

/* Scrollbar styling for currency menu */
.forex-currency-menu::-webkit-scrollbar {
    width: 6px;
}

.forex-currency-menu::-webkit-scrollbar-track {
    background: transparent;
}

.forex-currency-menu::-webkit-scrollbar-thumb {
    background: rgba(242, 208, 138, 0.2);
    border-radius: 3px;
}

.forex-currency-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 208, 138, 0.4);
}

@media (max-width: 768px) {
    .forex-title {
        font-size: 2rem;
    }
}
