.crypto-trade-calculator,
.crypto-trade-calculator * {
    box-sizing: border-box;
}

.crypto-trade-calculator {
    position: relative;
    width: 100%;
    min-height: 690px;
    padding: 70px 24px;
    overflow: hidden;
    background: #030405;
    color: #ffffff;
    font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
    isolation: isolate;
}

.crypto-trade-calculator::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 212px 212px;
}

.crypto-trade-calculator--grid-yes .crypto-trade-calculator::before {
    opacity: .62;
}

.crypto-trade-calculator__stars {
    --crypto-trade-star-duration: 42s;
    --crypto-trade-star-opacity: .72;
    --crypto-trade-star-size: 1px;
    --crypto-trade-star-space: 280px;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.crypto-trade-calculator__stars::before,
.crypto-trade-calculator__stars::after {
    content: "";
    position: absolute;
    inset: -45%;
    background-repeat: repeat;
    background-size: var(--crypto-trade-star-space) var(--crypto-trade-star-space);
    will-change: background-position;
}

.crypto-trade-calculator__stars::before {
    opacity: .92;
    background-image:
        radial-gradient(circle at 8% 18%, rgba(255,255,255,.88) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px)),
        radial-gradient(circle at 29% 7%, rgba(255,255,255,.58) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px)),
        radial-gradient(circle at 52% 32%, rgba(255,255,255,.72) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px)),
        radial-gradient(circle at 76% 12%, rgba(255,255,255,.55) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px)),
        radial-gradient(circle at 91% 41%, rgba(255,255,255,.82) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px)),
        radial-gradient(circle at 18% 71%, rgba(255,255,255,.56) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px)),
        radial-gradient(circle at 46% 88%, rgba(255,255,255,.76) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px)),
        radial-gradient(circle at 83% 79%, rgba(255,255,255,.62) 0 var(--crypto-trade-star-size), transparent calc(var(--crypto-trade-star-size) + .7px));
    animation: cryptoTradeStarsDrift var(--crypto-trade-star-duration) linear infinite;
}

.crypto-trade-calculator__stars::after {
    opacity: .5;
    background-image:
        radial-gradient(circle at 17% 36%, rgba(255,255,255,.68) 0 calc(var(--crypto-trade-star-size) - .2px), transparent calc(var(--crypto-trade-star-size) + .55px)),
        radial-gradient(circle at 39% 15%, rgba(255,255,255,.5) 0 calc(var(--crypto-trade-star-size) - .2px), transparent calc(var(--crypto-trade-star-size) + .55px)),
        radial-gradient(circle at 64% 54%, rgba(255,255,255,.7) 0 calc(var(--crypto-trade-star-size) - .2px), transparent calc(var(--crypto-trade-star-size) + .55px)),
        radial-gradient(circle at 88% 24%, rgba(255,255,255,.52) 0 calc(var(--crypto-trade-star-size) - .2px), transparent calc(var(--crypto-trade-star-size) + .55px)),
        radial-gradient(circle at 11% 91%, rgba(255,255,255,.6) 0 calc(var(--crypto-trade-star-size) - .2px), transparent calc(var(--crypto-trade-star-size) + .55px)),
        radial-gradient(circle at 71% 84%, rgba(255,255,255,.56) 0 calc(var(--crypto-trade-star-size) - .2px), transparent calc(var(--crypto-trade-star-size) + .55px));
    animation: cryptoTradeStarsDriftReverse var(--crypto-trade-star-duration) linear infinite;
}

.crypto-trade-calculator--stars-yes .crypto-trade-calculator__stars {
    opacity: var(--crypto-trade-star-opacity);
}


@keyframes cryptoTradeStarsDrift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: var(--crypto-trade-star-space) var(--crypto-trade-star-space);
    }
}

@keyframes cryptoTradeStarsDriftReverse {
    from {
        background-position: 0 0;
    }
    to {
        background-position: calc(0px - var(--crypto-trade-star-space)) var(--crypto-trade-star-space);
    }
}

.crypto-trade-calculator__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    min-height: 550px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: center;
    gap: clamp(60px, 9vw, 150px);
}

.crypto-trade-calculator__content {
    max-width: 650px;
}

.crypto-trade-calculator__heading {
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 4.2vw, 68px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.crypto-trade-calculator__description {
    max-width: 650px;
    margin: 24px 0 0;
    color: #c4c4c4;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

.crypto-trade-calculator__content-actions {
    margin-top: 42px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 42px;
}

.crypto-trade-calculator__cta {
    min-height: 48px;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #f7df00;
    color: #050505;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.crypto-trade-calculator__cta:hover {
    color: #050505;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(247,223,0,.18);
}

.crypto-trade-calculator__cta span {
    font-size: 25px;
    line-height: 0;
}

.crypto-trade-calculator__partner {
    display: block;
    max-width: 132px;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.crypto-trade-calculator__card-wrap {
    display: flex;
    justify-content: center;
}

.crypto-trade-calculator__card {
    width: 402px;
    max-width: 100%;
    overflow: visible;
    border: 1px solid #424242;
    border-radius: 22px;
    background: #050505;
    box-shadow: 0 32px 70px rgba(0,0,0,.42);
}

.crypto-trade-calculator__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 62px;
}

.crypto-trade-calculator__tab {
    position: relative;
    border: 0;
    padding: 14px 20px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.crypto-trade-calculator__tab:first-child {
    border-radius: 20px 20px 20px 0;
}

.crypto-trade-calculator__tab:last-child {
    border-radius: 20px 20px 0 20px;
}

.crypto-trade-calculator__tab.is-active {
    background: #ffffff;
    color: #000000;
}

.crypto-trade-calculator__body {
    position: relative;
    padding: 24px 24px 20px;
}

.crypto-trade-calculator__field {
    position: relative;
    min-height: 84px;
    padding: 15px 20px;
    border: 1px solid #333333;
    border-radius: 17px;
    background: #070707;
}

.crypto-trade-calculator__field + .crypto-trade-calculator__field {
    margin-top: 15px;
}

.crypto-trade-calculator__field label {
    display: block;
    margin-bottom: 4px;
    color: #aeb0b5;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.crypto-trade-calculator__field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.crypto-trade-calculator__field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    -moz-appearance: textfield;
}

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

.crypto-trade-calculator__currency {
    min-width: max-content;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.crypto-trade-calculator__fiat-display,
.crypto-trade-calculator__asset-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.crypto-trade-calculator__asset-toggle {
    cursor: pointer;
}

.crypto-trade-calculator__coin-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: contain;
}

.crypto-trade-calculator__coin-icon--fallback {
    background: #f7941d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.crypto-trade-calculator__fiat-icon--fallback {
    background: #ffffff;
    color: #111111;
}

.crypto-trade-calculator__chevron {
    font-size: 13px;
    transform: rotate(0deg);
    transition: transform .18s ease;
}

.crypto-trade-calculator__asset-toggle[aria-expanded="true"] .crypto-trade-calculator__chevron {
    transform: rotate(180deg);
}

.crypto-trade-calculator__asset-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(100%, 220px);
    padding: 6px;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: #252525;
    box-shadow: 0 18px 36px rgba(0,0,0,.55);
}

.crypto-trade-calculator__asset-option {
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.crypto-trade-calculator__asset-option:hover,
.crypto-trade-calculator__asset-option.is-selected {
    background: rgba(255,255,255,.09);
}

.crypto-trade-calculator__asset-option span {
    min-width: 0;
    white-space: nowrap;
}

.crypto-trade-calculator__estimate {
    margin: 20px 0 0;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.4;
}

.crypto-trade-calculator__submit {
    width: 100%;
    min-height: 56px;
    margin-top: 38px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.crypto-trade-calculator__submit:hover {
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255,255,255,.12);
}

.crypto-trade-calculator__disclaimer {
    margin: 15px 0 0;
    color: #a5a5a5;
    font-size: 10px;
    line-height: 1.32;
}

@media (max-width: 1024px) {
    .crypto-trade-calculator__container {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 402px);
        gap: 52px;
    }

    .crypto-trade-calculator__heading {
        font-size: clamp(42px, 5vw, 58px);
    }
}

@media (max-width: 767px) {
    .crypto-trade-calculator {
        min-height: 0;
        padding: 54px 18px;
    }

    .crypto-trade-calculator::before {
        background-size: 130px 130px;
    }

    .crypto-trade-calculator__container {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .crypto-trade-calculator__content {
        max-width: none;
    }

    .crypto-trade-calculator__heading {
        font-size: 42px;
        line-height: 1.05;
    }

    .crypto-trade-calculator__description {
        margin-top: 18px;
        font-size: 17px;
    }

    .crypto-trade-calculator__content-actions {
        margin-top: 28px;
        gap: 24px;
    }

    .crypto-trade-calculator__card {
        width: 100%;
        max-width: 430px;
    }

    .crypto-trade-calculator__body {
        padding: 20px 16px 18px;
    }

    .crypto-trade-calculator__field {
        padding: 14px 15px;
    }

    .crypto-trade-calculator__field input {
        font-size: 21px;
    }

    .crypto-trade-calculator__asset-menu {
        width: min(100%, 240px);
    }
}

@media (max-width: 430px) {
    .crypto-trade-calculator__heading {
        font-size: 36px;
    }

    .crypto-trade-calculator__tab {
        font-size: 18px;
    }

    .crypto-trade-calculator__field-row {
        gap: 8px;
    }

    .crypto-trade-calculator__fiat-display,
    .crypto-trade-calculator__asset-toggle {
        font-size: 16px;
    }

    .crypto-trade-calculator__coin-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }
}

/* PandaEX 1.0.26 — buy and sell calculator section */

/* PandaEX 1.0.30 — seamless animated looping star field for trade calculator */



/* PandaEX 1.0.32 — removed comet feature; animated star background preserved */
