/* GLOBAL */

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

:root {
    --bg: #07111f;
    --bg-secondary: #0b1728;
    --card: rgba(15, 29, 48, 0.75);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-two: #818cf8;
    --success: #22c55e;
    --hero-bg: rgba(10, 24, 42, 0.75);
    --status-bg: rgba(10, 24, 42, 0.72);

    --border: rgba(255, 255, 255, 0.12);

    --glass-highlight: rgba(255, 255, 255, 0.08);

    --shadow: rgba(0, 0, 0, 0.35);
}


body {
    font-family:
        Inter,
        Segoe UI,
        Arial,
        sans-serif;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(56, 189, 248, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(129, 140, 248, 0.14),
            transparent 30%
        ),
        var(--bg);
    overflow-x: hidden;
    transition:
        background 0.4s,
        color 0.4s;
}

/* BACKGROUND GLOW */
.background-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

.glow-one {
    background: #0ea5e9;
    top: 20%;
    left: -150px;
}

.glow-two {
    background: #6366f1;
    bottom: -150px;
    right: -100px;
}

/* NAVBAR */
.navbar {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: relative;
    z-index: 100;
    /* Bottom navbar line */
    border-bottom: 1px solid
        rgba(148, 163, 184, 0.20);
    background:
        rgba(3, 10, 20, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); 
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 20px;
}

/* NAV LINKS */
.nav-link {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition:
        color 0.3s ease;
}

.nav-link:hover {
    color: #f8fafc;
}

/* ACTIVE HOME */
.nav-link.active {
    color: #38bdf8;
}

/* BLUE ACTIVE LINE */
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            #0ea5e9,
            #6366f1
        );
    box-shadow:
        0 0 10px
        rgba(14, 165, 233, 0.7);
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: 1%;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}
.brand-icon img {
    width: 70px;
    height: 90px;
    margin-right: 10px;
    /* object-fit: contain;
    display: block; */
}

.brand-text h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #f8fafc;
}

.brand-text h2 span {
    background:
        linear-gradient(
            90deg,
            #3b82f6,
            #8b5cf6
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-text p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

/* REFRESH BUTTON */
.refresh-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background:
        rgba(7, 17, 31, 0.7);
    border: 1px solid
        rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition:
        all 0.3s ease;
}

.refresh-button:hover {
    border-color:
        rgba(56, 189, 248, 0.6);
    background:
        rgba(14, 165, 233, 0.10);
    box-shadow:
        0 0 20px
        rgba(14, 165, 233, 0.15);
}

.refresh-icon {
    font-size: 18px;
    transition:
        transform 0.5s ease;
}

.refresh-button:hover
.refresh-icon {
    transform:
        rotate(180deg);
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: auto;
    padding: 30px 40px 80px;
}

/* SECTION */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
    margin-top: 40px;
}

.section-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin-top: 7px;
    font-size: 28px;
}

.section-description {
    color: var(--muted);
}

/* STATUS BAR */
.status-bar {
    margin-top: 25px;
    margin-bottom: 65px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 18px;
    background: var(--status-bg);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    
    -webkit-backdrop-filter: blur(18px);

    transition:
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    box-shadow:
        0 12px 35px var(--shadow),
        inset 0 1px 0 var(--glass-highlight);
}
.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.status-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border-radius: 12px;
    background:
        rgba(59, 130, 246, 0.1);
}

.calendar-icon {
    color: #38bdf8;
}

.clock-icon {
    color: #22c55e;
}

.bank-icon {
    color: #a855f7;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-content span {
    font-size: 0.85rem;
    color: var(--muted);
}

.status-content strong {
    font-size: 1rem;
    color: #38bdf8;
    white-space: nowrap;
}

.status-item:nth-of-type(3)
.status-content strong {
    color: #22c55e;
}

/* =========================================
   STATUS DIVIDER
========================================= */

.status-divider {
    width: 1px;
    height: 55px;
    background:
        rgba(148, 163, 184, 0.25);
}


/* =========================================
   LIVE STATUS
========================================= */
.live-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 100px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid
        rgba(34, 197, 94, 0.4);
    color: #22c55e;
    background:
        rgba(34, 197, 94, 0.08);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 12px
        #22c55e;
    animation:
        livePulse
        2s
        infinite;
}

.live-status small {
    color: var(--muted);
}

@keyframes livePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.source-name {
    color: #a855f7 !important;
}

/* MARKET GRID */
.market-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 80px;
}

.market-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 18px;
    border:
        1px solid var(--border);
    background:
        var(--card);
    backdrop-filter:
        blur(15px);
    cursor: pointer;
    transition:
        0.3s ease;
}
.market-card.active {
    border-color: #38bdf8;
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.4),
        0 15px 40px rgba(56,189,248,0.15);
    transform: translateY(-4px);
}

.market-card.active .market-icon {
    background: rgba(56,189,248,0.15);
}

.market-card.active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(56,189,248,0.10),
            transparent
        );
}
.market-card:hover {
    transform:
        translateY(-6px);
    border-color:
        rgba(56,189,248,0.5);
    box-shadow:
        0 15px 40px
        rgba(0,0,0,0.25);
}

.market-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        rgba(255,255,255,0.06);
    font-size: 25px;
}

.market-info {
    flex: 1;
}

.market-info h3 {
    font-size: 15px;
}

.market-info p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.market-status {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4ade80;
}

.live-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* SEARCH */
.search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    border:
        1px solid var(--border);
    background:
        var(--card);
}

.search-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    width: 180px;
}

/* FOREX CARDS */
.rates-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 18px;
}

/* ==========================================
   FOREX CARD
========================================== */

.rate-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    min-height: 240px;
    border-radius: 18px;
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.035) 25%,
            rgba(255, 255, 255, 0.015) 50%,
            rgba(255, 255, 255, 0.04) 100%
        );

    border: 1px solid
        color-mix(
            in srgb,
            var(--accent) 60%,
            transparent
        );

    box-shadow:
        0 0 5px rgba(0,255,255,0.3),
        0 0 15px rgba(0,255,255,0.15),
        inset 0 0 15px rgba(0,255,255,0.05);

    transition:

        transform 0.35s ease,

        box-shadow 0.35s ease,

        border-color 0.35s ease;

    cursor: pointer;
}

.rate-card:hover {

    transform:
        translateY(-8px)
        scale(1.015);

    border-color:
        var(--accent);

    box-shadow:

        0 0 0 1px
        var(--accent),

        0 0 20px
        color-mix(
            in srgb,
            var(--accent) 35%,
            transparent
        ),

        0 20px 45px
        rgba(0, 0, 0, 0.45);
}

.currency-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -10px;
    margin-bottom: 30px;
    margin-left: -10px;
}
.currency-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.currency-symbol {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    opacity: 0.7;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}
.rate-card:hover .currency-symbol {

    opacity: 0.22;

    transform:
        scale(1.12)
        rotate(-5deg);
}

.currency-code {

    font-size: 28px;

    font-weight: 700;

    letter-spacing: 1px;

    color: var(--accent);

    text-shadow:

        0 0 10px
        color-mix(
            in srgb,
            var(--accent) 35%,
            transparent
        );

    transition:

        text-shadow 0.35s ease,

        transform 0.35s ease;
}
.rate-card:hover
.currency-code {

    transform:
        translateX(4px);

    text-shadow:

        0 0 8px
        var(--accent),

        0 0 20px
        color-mix(
            in srgb,
            var(--accent) 50%,
            transparent
        );
}

.currency-flag {

    width: 54px;

    height: 54px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform 0.35s ease,

        box-shadow 0.35s ease;
}

.currency-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rate-card:hover
.currency-flag {

    transform:
        scale(1.1)
        rotate(3deg);

    box-shadow:

        0 0 0 5px
        color-mix(
            in srgb,
            var(--accent) 20%,
            transparent
        ),

        0 0 20px
        color-mix(
            in srgb,
            var(--accent) 30%,
            transparent
        );
}
.currency-name {
    font-size: 14px;
    color: var(--muted);
    transition:
        color 0.3s ease;
}

.rate-card:hover
.currency-name {

    color: var(--text);
}

.unit-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: -200px;
    margin-left: -10px;
    padding: 6px 6px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;

    color: var(--accent);

    background:
        color-mix(
            in srgb,
            var(--accent) 10%,
            transparent
        );

    border: 1px solid
        color-mix(
            in srgb,
            var(--accent) 20%,
            transparent
        );

    transition:

        background 0.3s ease,

        transform 0.3s ease;
}
.rate-card:hover
.unit-badge {

    transform:
        translateX(4px);

    background:
        color-mix(
            in srgb,
            var(--accent) 16%,
            transparent
        );
}
.rate-divider {

    height: 1px;

    margin: 20px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            color-mix(
                in srgb,
                var(--accent) 30%,
                transparent
            ),
            transparent
        );
}
.rate-row {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 6px 0;
}

.rate-label {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 14px;
}


.buy-icon {

    color: var(--accent);

    font-size: 18px;

    transition:
        transform 0.3s ease;
}


.sell-icon {

    color: #ff4757;

    font-size: 17px;

    transition:
        transform 0.3s ease;
}


.rate-card:hover
.buy-icon {

    transform:
        translateY(-3px)
        scale(1.15);
}


.rate-card:hover
.sell-icon {

    transform:
        rotate(-10deg)
        scale(1.15);
}

.rate-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    width: 260px;
    height: 180px;

    top: -100px;
    left: -80px;

    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 75%
    );

    filter: blur(25px);

    pointer-events: none;

    z-index: -1;

    transition:
        transform 0.6s ease,
        opacity 0.6s ease;
}


.rate-card:hover::before {

    left: 130%;
}

.rate-value {
    font-weight: 700;
}

.rate-value.buy {

    color: var(--accent);

    font-weight: 700;

    font-size: 16px;

    text-shadow:

        0 0 8px
        color-mix(
            in srgb,
            var(--accent) 30%,
            transparent
        );

    transition:

        transform 0.3s ease,

        text-shadow 0.3s ease;
}
.rate-card:hover
.rate-value.buy {

    transform:
        scale(1.05);

    text-shadow:

        0 0 8px
        var(--accent),

        0 0 18px
        color-mix(
            in srgb,
            var(--accent) 40%,
            transparent
        );
}

.rate-value.sell {

    color: #ff4757;

    font-weight: 700;

    font-size: 16px;

    text-shadow:

        0 0 8px
        rgba(255, 71, 87, 0.3);

    transition:

        transform 0.3s ease,

        text-shadow 0.3s ease;
}


.rate-card:hover
.rate-value.sell {

    transform:
        scale(1.05);

    text-shadow:

        0 0 8px
        rgba(255, 71, 87, 0.8),

        0 0 18px
        rgba(255, 71, 87, 0.4);
}

/* LOADING */

.loading {
    padding: 60px;
    text-align: center;
    color: var(--muted);
}

.loader {
    width: 40px;
    height: 40px;
    margin: auto;
    border-radius: 50%;
    border:
        3px solid
        rgba(255,255,255,0.1);
    border-top-color:
        var(--accent);
    animation:
        spin 1s linear infinite;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background:
        rgba(0,0,0,0.7);
    backdrop-filter:
        blur(10px);
    z-index: 1000;
}

.modal.active {
    display: grid;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    border-radius: 25px;
    background:
        #101c2e;
    border:
        1px solid var(--border);
    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.5);
    animation:
        modalIn 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
}

.modal-icon {
    font-size: 50px;
}

.modal-content h2 {
    margin-top: 15px;
}

.modal-content p {
    margin-top: 15px;
    color: var(--muted);
    line-height: 1.6;
}

.modal-badge {
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    background:
        rgba(56,189,248,0.1);
    color: var(--accent);
    font-size: 12px;
}

.modal-button {
    margin-top: 25px;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    background:
        linear-gradient(
            90deg,
            #0ea5e9,
            #6366f1
        );
    color: white;
    cursor: pointer;
    font-weight: 700;
}

/* FOOTER */
footer {

    margin-top: 40px;

    padding: 30px;

    text-align: center;

    border-top:
        1px solid var(--border);

    background:
        rgba(3, 10, 20, 0.78);

    font-size: 13px;
}

.copyright {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copyright img {
    width: 18px;
    height: auto;
    object-fit: contain;
    margin-right: -10px;
}

.footer-note {
    color: white;
    margin-top: 8px;
    font-size: 11px;
}

/* ANIMATIONS */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 300%;
    }
}

@keyframes modalIn {
    from {
        transform:
            scale(0.8);
        opacity: 0;
    }
    to {
        transform:
            scale(1);
        opacity: 1;
    }
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 60px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--hero-bg);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow:
        0 15px 40px var(--shadow),
        inset 0 1px 0 var(--glass-highlight);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


/* =========================================
   HERO CONTENT
========================================= */

.hero-content {

    position: relative;

    z-index: 5;

    max-width: 650px;

}


.hero-line {
    width: 70px;
    height: 3px;
    margin-bottom: 20px;
    border-radius: 10px;
    background:
        linear-gradient(
            90deg,
            #00c6ff,
            #7c3aed
        );
    box-shadow:
        0 0 15px
        rgba(0, 198, 255, 0.7);
}


.hero-content h1 {

    margin: 0;

    font-size: clamp(
        2.5rem,
        5vw,
        4rem
    );

    line-height: 1.1;
    color: var(--text);
    font-weight: 800;

    letter-spacing: -2px;

}


.gradient-text {

    display: inline-block;

    background:
        linear-gradient(
            90deg,
            #38bdf8,
            #818cf8,
            #c084fc
        );

    -webkit-background-clip: text;

    -webkit-text-fill-color:
        transparent;

    background-clip: text;

}


.hero-content p {
    color: var(--muted);
    margin-top: 20px;

    color: var(--muted);

    font-size: 1.1rem;

}


/* =========================================
   HERO CURRENCY VISUAL
========================================= */
.hero-visual {
    position: relative;
    width: 400px;
    height: 200px;
    flex-shrink: 0;
    margin-right: 30px;
}


/* =========================================
   CENTRAL CURRENCY
========================================= */

.currency-center {

    position: absolute;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 100px;

    height: 100px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 3rem;

    font-weight: 800;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    border: 2px solid
        rgba(255, 255, 255, 0.25);

    box-shadow:

        0 0 20px
        rgba(37, 99, 235, 0.7),

        0 0 60px
        rgba(124, 58, 237, 0.5),

        inset 0 0 25px
        rgba(255, 255, 255, 0.15);

    animation:
        currencyPulse
        3s
        ease-in-out
        infinite;

    z-index: 5;

}


/* =========================================
   ROTATING RINGS
========================================= */

.currency-ring {

    position: absolute;

    top: 50%;

    left: 50%;

    border-radius: 50%;

    border: 1px solid
        rgba(56, 189, 248, 0.25);

    transform:
        translate(-50%, -50%);

}


.ring-one {

    width: 160px;

    height: 160px;

    animation:
        rotateRing
        12s
        linear
        infinite;

}


.ring-two {

    width: 240px;

    height: 240px;

    border-color:
        rgba(168, 85, 247, 0.2);

    animation:
        rotateRingReverse
        18s
        linear
        infinite;

}


/* =========================================
   FLOATING CURRENCY SYMBOLS
========================================= */

.currency-orbit {
    position: absolute;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    background:
        linear-gradient(
            145deg,
            rgba(15, 30, 55, 0.95),
            rgba(15, 30, 55, 0.55)
        );

    border: 1px solid
        rgba(255, 255, 255, 0.15);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.3),

        0 0 20px
        rgba(59, 130, 246, 0.2),

        inset 0 0 15px
        rgba(255, 255, 255, 0.05);

    z-index: 6;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.orbit-one {
    top: -15px;
    left: 75px;
    color: #22c55e;

    animation:
        floatingMoney
        4s
        ease-in-out
        infinite;
}


.orbit-two {

    top: 20px;

    right: 35px;

    color: #38bdf8;

    animation:
        floatingMoney
        5s
        ease-in-out
        infinite
        0.5s;

}


.orbit-three {

    bottom: -25px;

    right: 100px;

    color: #c084fc;

    animation:
        floatingMoney
        4.5s
        ease-in-out
        infinite
        1s;

}

.orbit-four {

    top: -40px;
    left: 200px;

    color: #facc15;

    animation:
        floatingMoney
        5.5s
        ease-in-out
        infinite
        0.8s;

}

.orbit-five {

    bottom: 50px;
    left: 35px;

    color: #f472b6;

    animation:
        floatingMoney
        4.8s
        ease-in-out
        infinite
        1.2s;

}


.orbit-six {

    top: 105px;
    right: 50px;

    color: #22d3ee;

    animation:
        floatingMoney
        5.2s
        ease-in-out
        infinite
        1.5s;

}


.orbit-seven {

    bottom: -40px;
    left: 120px;

    color: #f97316;

    animation:
        floatingMoney
        4.2s
        ease-in-out
        infinite
        1.8s;

}

.currency-orbit:hover {

    transform:
        translateY(-5px)
        scale(1.12);

    box-shadow:

        0 15px 40px
        rgba(0, 0, 0, 0.4),

        0 0 30px
        currentColor;

}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes currencyPulse {

    0%,
    100% {

        transform:
            translate(-50%, -50%)
            scale(1);

    }

    50% {

        transform:
            translate(-50%, -50%)
            scale(1.08);

    }

}


@keyframes floatingMoney {

    0%,
    100% {

        transform:
            translateY(0)
            rotate(0deg);

    }

    50% {

        transform:
            translateY(-15px)
            rotate(5deg);

    }

}


@keyframes rotateRing {

    from {

        transform:
            translate(-50%, -50%)
            rotate(0deg);

    }

    to {

        transform:
            translate(-50%, -50%)
            rotate(360deg);

    }

}


@keyframes rotateRingReverse {

    from {

        transform:
            translate(-50%, -50%)
            rotate(360deg);

    }

    to {

        transform:
            translate(-50%, -50%)
            rotate(0deg);

    }

}

/* ERROR STATE */
 
.error-message {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 25px 0;
    padding: 22px;
    border-radius: 16px;

    background:
        rgba(239, 68, 68, 0.08);

    border:
        1px solid
        rgba(239, 68, 68, 0.25);

    color: var(--text);
}

.error-icon {
    font-size: 30px;
}

.error-content {
    flex: 1;
}

.error-content strong {
    display: block;
    font-size: 16px;
}

.error-content p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}

#errorMessage {
    margin-bottom: 12px;
}

#retryButton {
    margin-top: 12px;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            #0ea5e9,
            #6366f1
        );

    color: white;
    font-weight: 600;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#retryButton:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(14, 165, 233, 0.25);
}

[hidden] {
    display: none !important;
}

/* ==========================
   Currency Converter
========================== */

.converter-section {
  margin: 2rem 0 3rem;
}

.converter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(16px);
}

.converter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.converter-field {
  flex: 1;
  min-width: 220px;
}

.converter-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.converter-field input,
.converter-field select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
}

.converter-result {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.converter-result span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.converter-result strong {
  font-size: 2rem;
  font-weight: 700;
}

#forexChart {
    margin-bottom: 60px;
}

/* Gold section */
.gold-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.gold-placeholder h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.gold-placeholder p {
    opacity: .8;
}
.gold-topbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gold-date-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
}

.gold-date-card span {
    display: block;
    opacity: .7;
    margin-bottom: 6px;
}

.gold-unit-toggle {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.gold-toggle {
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
}

.gold-toggle.active {
    background: #f59e0b;
    color: white;
}

.gold-rates-grid{
    display:flex;
    justify-content:center;
    margin-top:30px;
}

.gold-rate-card{
    width:100%;
    max-width:850px;
    padding:20px 28px;
    border-radius:24px;
    background:var(--card);
    border:1px solid var(--border);
    overflow:hidden;
}

.gold-movement{
    padding:10px 18px;

    border-radius:999px;

    background:#fee2e2;

    color:#dc2626;

    font-weight:700;

    font-size:20px;
}
.gold-price{
    font-size:45px;
    font-weight:800;
    color:#d97706;
    line-height:1;
}
.gold-unit-label{
    font-size:22px;
    font-weight: 600;
    color:#00c6ff;
    margin-bottom:10px;
}
.gold-slash{
    font-size:22px;
    opacity:.7;
}

.gold-yesterday{
    margin-top:30px;
    color:var(--muted);
}

.gold-card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.gold-icon{
    font-size:42px;
}
.gold-rate-card h3{
    font-size:48px;
    margin-bottom:8px;
}
.gold-price-row{
    display:flex;
    align-items:flex-end;
    gap: 8px;
    margin:8px 0;
}

.gold-currency{
    font-size:22px;
    color:var(--muted);
}

.gold-slash{
    font-size:40px;
    color:var(--muted);
}
.gold-bottom-line{
    height:6px;
    width:100%;
    margin-top:40px;
    border-radius:999px;
    background:linear-gradient(
        90deg,
        #eab308,
        #d97706
    );
}
.gold-updated{
    margin-top:10px;
    color:#94a3b8;
    font-size:18px;
}
.gold-calculator-section{
    margin-top:60px;
}

.gold-calculator-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:24px;
    padding:25px;
}

.calculator-row{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:20px;
}

.calculator-field label{
    display:block;
    margin-bottom:8px;
}

.calculator-field input,
.calculator-field select{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid var(--border);
    background:transparent;
    color:var(--text);
}

.calculator-result{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.calculator-result strong{
    font-size:28px;
    color:#d97706;
}