.exchange-page {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .exchange-wrapper {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .exchange-main {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        width: 100%;
    }

    .exchange-card {
        align-self: center;
        background: #000000;
        border: 1px solid #222222;
        border-radius: 16px;
        padding: 1.75rem 2rem;
        width: 100%;
        max-width: 520px;
        flex-shrink: 0;
        position: relative;
    }

    .coin-loader-overlay {
        position: absolute;
        inset: 0;
        background: transparent;
        border-radius: 16px;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        opacity: 0;
        pointer-events: none;
    }

    .clo-main {
        background: rgba(0, 0, 0, 0.80);
    }

    .coin-loader-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #10b981;
        animation: dotWave 1s ease-in-out infinite;
    }

        .coin-loader-dot:nth-child(2) {
            animation-delay: 0.15s;
        }

        .coin-loader-dot:nth-child(3) {
            animation-delay: 0.3s;
        }

    body:has(.currency-option:focus) .clo-main,
    body:has(.swap-direction-btn:focus) .clo-main {
        animation: showOverlay 8s 80ms;
    }

    body:has(.submit-btn:focus) .clo-main,
    body:has(.btn-cancel:focus) .clo-main,
    body:has(.btn-refresh:focus) .clo-main,
    body:has(.btn-confirm:focus) .clo-main {
        animation: showOverlay 15s 80ms;
    }

    @keyframes showOverlay {
        0%, 95% {
            opacity: 1;
        }

        100% {
            opacity: 0;
        }
    }

    @keyframes dotWave {
        0%, 100% {
            transform: scale(0.5);
            opacity: 0.35;
        }

        50% {
            transform: scale(1.3);
            opacity: 1;
        }
    }

    .exchange-card.quote-mode {
        max-width: 600px;
        padding: 2rem 2.25rem;
    }


    .flank-col {
        width: 240px;
        flex-shrink: 0;
        padding: 0.5rem 1.5rem;
    }

    .flank-label {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #333333;
        margin-bottom: 0.65rem;
    }

    .flank-left {
        text-align: right;
    }

        .flank-left .flank-label {
            text-align: right;
        }

    .update-item {
        padding: 0.6rem 0;
    }

        .update-item + .update-item {
            border-top: 1px solid rgba(255, 255, 255, 0.03);
        }

    .update-date {
        font-size: 0.68rem;
        font-family: var(--font-mono);
        color: rgba(0, 170, 170, 0.6);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        display: block;
        margin-bottom: 0.15rem;
    }

    .update-text {
        font-size: 0.8rem;
        color: #555555;
        line-height: 1.45;
    }

    .flank-right {
        text-align: left;
    }

    .comm-link {
        display: block;
        font-size: 0.9rem;
        font-family: var(--font-mono);
        color: #444444;
        text-decoration: none;
        font-weight: 600;
        padding: 0.45rem 0;
        letter-spacing: 0.03em;
        transition: color 0.2s;
    }

        .comm-link:hover {
            color: #00cccc;
        }

    .comm-link-desc {
        font-size: 0.68rem;
        color: #444444;
        margin-top: 0.05rem;
        font-family: inherit;
    }


    .how-strip {
        width: 100%;
        max-width: 460px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 2.5rem;
        padding: 0.6rem 0.8rem;
        border-top: 1px solid #111111;
    }

    .how-step {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .how-step-num {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1.5px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 600;
        font-family: var(--font-mono);
        color: #666666;
        flex-shrink: 0;
    }

    .how-step-title {
        font-size: 0.82rem;
        font-weight: 600;
        color: #777777;
        white-space: nowrap;
    }

    .how-step-desc {
        font-size: 0.7rem;
        color: #555555;
        white-space: nowrap;
    }


    @media (max-width: 900px) {
        .exchange-main {
            flex-direction: column;
            align-items: center;
        }

        .flank-col {
            width: 100%;
            max-width: 520px;
            padding: 0.75rem 0.25rem;
        }

        .flank-left {
            text-align: left;
            order: 2;
            border-top: 1px solid #111111;
            margin-top: 0.5rem;
            padding-top: 1rem;
        }

            .flank-left .flank-label {
                text-align: left;
            }

        .flank-right {
            order: 3;
            border-top: 1px solid #111111;
            padding-top: 1rem;
        }

        .exchange-card {
            order: 1;
        }

        .update-item {
            display: flex;
            align-items: baseline;
            gap: 0.5rem;
        }

        .update-date {
            flex-shrink: 0;
        }
    }





    .alert-error {
        background: rgba(255, 68, 68, 0.1);
        border: 1px solid rgba(255, 68, 68, 0.3);
        color: #ff6b6b;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }



    .alert-error {
        background: rgba(255, 68, 68, 0.1);
        border: 1px solid rgba(255, 68, 68, 0.3);
        color: #ff6b6b;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .currency-section {
        margin-bottom: 2.5rem;
        width: 100%;
    }

    .currency-grid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }

    .currency-panel {
        position: relative;
        width: 100%;
    }

    .currency-panel-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 0.4rem;
        text-align: center;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .currency-dropdown {
        position: relative;
        width: 100%;
    }

    .dropdown-checkbox {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .dropdown-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 99;
        cursor: default;
    }

    #dropdown-from:checked ~ .dropdown-overlay-from,
    #dropdown-to:checked ~ .dropdown-overlay-to {
        display: block;
    }

    .dropdown-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        transition: all 0.15s ease;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 100;
    }

        .dropdown-header:hover {
            border-color: rgba(255, 255, 255, 0.15);
            background: rgba(0, 0, 0, 0.5);
        }

    #dropdown-from:checked ~ .exchange-wrapper .from-header,
    #dropdown-to:checked ~ .exchange-wrapper .to-header {
        border-color: rgba(16, 185, 129, 0.4);
        border-radius: 12px 12px 0 0;
        border-bottom-color: transparent;
    }

    .dropdown-trigger {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        flex: 1;
    }

    .currency-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0a0a !important;
        border: 1px solid rgba(16, 185, 129, 0.4);
        border-top: none;
        border-radius: 0 0 12px 12px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 320px;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        scrollbar-width: thin;
        scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
    }

        .currency-dropdown-menu::-webkit-scrollbar {
            width: 4px;
        }

        .currency-dropdown-menu::-webkit-scrollbar-track {
            background: transparent;
        }

        .currency-dropdown-menu::-webkit-scrollbar-thumb {
            background: rgba(16, 185, 129, 0.3);
            border-radius: 4px;
        }

    #dropdown-from:checked ~ .exchange-wrapper .from-menu,
    #dropdown-to:checked ~ .exchange-wrapper .to-menu {
        display: block;
    }

    .currency-selected-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .currency-selected-info {
        flex: 1;
        min-width: 0;
    }

    .currency-amount-input {
        width: 90px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #f1f5f9;
        font-size: 1.05rem;
        font-family: 'JetBrains Mono', monospace;
        padding: 0.5rem 0.6rem;
        margin-right: 0.5rem;
        outline: none;
        transition: all 0.15s ease;
    }

        .currency-amount-input:focus {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(16, 185, 129, 0.4);
        }

        .currency-amount-input:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }

        .currency-amount-input::placeholder {
            color: #4a5568;
        }

        .currency-amount-input::-webkit-outer-spin-button,
        .currency-amount-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .currency-amount-input[type=number] {
            -moz-appearance: textfield;
        }

    .currency-selected-symbol {
        font-size: 1.05rem;
        font-weight: 600;
        color: #f1f5f9;
        line-height: 1.2;
    }

    .currency-selected-name {
        font-size: 0.65rem;
        color: #64748b;
        line-height: 1.2;
    }

    .currency-selected-liquidity {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        margin-left: auto;
        padding-right: 0;
        min-width: 70px;
        flex-shrink: 0;
    }

        .currency-selected-liquidity .liquidity-value {
            font-size: 0.7rem;
            color: #ffffff;
            font-weight: 500;
            line-height: 1.15;
            white-space: nowrap;
        }

        .currency-selected-liquidity .liquidity-label {
            font-size: 0.65rem;
            color: #94a3b8;
            text-transform: none;
            letter-spacing: 0;
            line-height: 1.15;
            font-weight: 400;
        }

    .currency-dropdown-arrow {
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid #64748b;
        margin-left: 0.15rem;
        transition: transform 0.15s ease;
        flex-shrink: 0;
    }

    #dropdown-from:checked ~ .exchange-wrapper .from-arrow,
    #dropdown-to:checked ~ .exchange-wrapper .to-arrow {
        transform: rotate(180deg);
    }

    label.dropdown-header {
        cursor: pointer;
    }

    .currency-option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.6rem 0.85rem;
        background: #0a0a0a !important;
        border: none !important;
        cursor: pointer;
        transition: background 0.15s ease;
        text-align: left;
        color: #ffffff !important;
    }

    button.currency-option {
        background: #0a0a0a !important;
        border: none !important;
        outline: none !important;
    }

        button.currency-option:focus {
            background: #0a0a0a !important;
            outline: none !important;
        }

        .currency-option:hover,
        button.currency-option:hover {
            background: rgba(16, 185, 129, 0.15) !important;
        }

    .currency-option:first-child {
        padding-top: 0.7rem;
    }

    .currency-option:last-child {
        padding-bottom: 0.7rem;
    }

    .currency-option-icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        background: transparent !important;
    }

    .currency-option-info {
        flex: 1;
        min-width: 0;
        background: transparent !important;
    }

    .currency-option-symbol {
        font-size: 0.9rem;
        font-weight: 600;
        color: #e2e8f0;
        line-height: 1.2;
        background: transparent !important;
    }

    .currency-option-name {
        font-size: 0.6rem;
        color: #64748b;
        line-height: 1.2;
        font-weight: 700;
        background: transparent !important;
    }

    .currency-option.unavailable {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .currency-option.unavailable:hover {
            background: transparent !important;
        }

    .currency-option.coming-soon {
        opacity: 0.4;
        cursor: default;
        pointer-events: none;
    }

    .currency-coming-soon-badge {
        font-size: 0.45rem;
        color: #f59e0b;
        background: rgba(245, 158, 11, 0.1);
        padding: 1px 4px;
        border-radius: 3px;
        margin-left: 4px;
        font-weight: 600;
        text-transform: uppercase;
        border: 1px solid rgba(245, 158, 11, 0.25);
        white-space: nowrap;
    }

    .currency-unavailable-badge {
        font-size: 0.5rem;
        color: #666666;
        background: rgba(255, 255, 255, 0.05);
        padding: 1px 4px;
        border-radius: 3px;
        margin-left: 4px;
        font-weight: 600;
        text-transform: uppercase;
        border: 1px solid #333333;
    }

    .currency-option-liquidity {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        margin-left: auto;
        padding-left: 0.35rem;
        background: transparent !important;
    }

    .liquidity-value {
        font-size: 0.7rem;
        color: #ffffff;
        font-weight: 500;
        line-height: 1.2;
        background: transparent !important;
    }

    .liquidity-label {
        font-size: 0.6rem;
        color: #94a3b8;
        text-transform: none;
        letter-spacing: 0;
        line-height: 1.2;
        font-weight: 400;
        background: transparent !important;
    }

    .swap-button-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 1rem;
        flex-shrink: 0;
    }

    .swap-direction-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #e2e8f0;
        border: 1px solid #e2e8f0;
        color: #0a0a0a;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .swap-direction-btn span {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 15px;
            font-weight: 700;
            line-height: 1;
            transform: scaleX(1.18);
        }

            .swap-direction-btn span::before {
                content: "\21c4";
            }

        .swap-direction-btn:hover {
            background: #f1f5f9;
            border-color: #f1f5f9;
            color: #0a0a0a;
        }

    .currency-info-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
        margin-top: 0.85rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .currency-info-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

        .currency-info-item.spacer {
            width: 32px;
        }

        .currency-info-item .label {
            color: #999999;
        }

        .currency-info-item .value {
            color: #ffffff;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 500;
        }

        .currency-info-item .usd {
            color: #999999;
        }

    .pool-warning {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 6px 10px;
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        border-radius: 6px;
        color: #ef4444;
        font-size: 11px;
        margin-top: 4px;
    }

        .pool-warning .warning-icon {
            font-size: 12px;
        }

    .pool-warning-inline {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #f59e0b;
        font-size: 0.8rem;
    }

        .pool-warning-inline .warning-icon {
            font-size: 0.75rem;
        }

    .input-section {
        margin-bottom: 2rem;
    }

    .input-group {
        margin-bottom: 0.25rem;
        width: 100%;
    }

    .input-floating {
        position: relative;
    }

        .input-floating .input-field {
            width: 100%;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            padding: 1.1rem 1rem 0.7rem 1rem;
            color: #f1f5f9;
            font-size: 0.95rem;
            font-family: 'JetBrains Mono', monospace;
            transition: border-color 0.2s;
        }

            .input-floating .input-field:focus {
                outline: none;
                border-color: rgba(255, 255, 255, 0.5);
            }

            .input-floating .input-field::placeholder {
                color: #8994a8;
            }

        .input-floating .floating-label {
            position: absolute;
            top: -0.5rem;
            left: 0.75rem;
            padding: 0 0.35rem;
            background: #000000;
            color: #ffffff;
            font-size: 0.65rem;
            font-family: 'JetBrains Mono', monospace;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 700;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .input-floating .input-field:focus + .floating-label {
            color: #ffffff;
        }

    .input-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #94a3b8;
        margin-bottom: 0.4rem;
        display: block;
        text-align: center;
    }

    .input-wrapper {
        position: relative;
    }

    .input-field {
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.75rem 0.9rem;
        color: #e2e8f0;
        font-size: 0.95rem;
        font-family: 'JetBrains Mono', monospace;
        transition: border-color 0.2s;
    }

        .input-field:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.4);
        }

        .input-field::placeholder {
            color: #4a5568;
        }

    .address-input {
        font-size: 0.85rem;
        font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
        letter-spacing: -0.01em;
    }

    .address-input-long {
        font-size: 0.65rem;
        letter-spacing: -0.03em;
        resize: none;
        line-height: 1.4;
        padding: 1rem 0.7rem 0.45rem 0.7rem !important;
        min-height: auto;
        overflow: hidden;
    }

    textarea.address-input-long {
        height: auto;
    }

    .captcha-submit-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.1rem;
        width: 100%;
    }

    .captcha-group {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0 0.75rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        min-width: 0;
        width: 100%;
    }

    .captcha-group img {
        width: 100%;
        max-width: 200px;
        min-width: 0;
        object-fit: fill;
    }

    .captcha-question {
        color: #ffffff;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.95rem;
        font-weight: 600;
    }

    .captcha-input {
        width: 48px;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        padding: 0.4rem 0.45rem;
        color: #ffffff;
        font-size: 0.95rem;
        font-family: 'JetBrains Mono', monospace;
        text-align: center;
    }

        .captcha-input:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.4);
        }

    .captcha-input-text {
        width: 72px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .captcha-expired-notice {
        font-size: 0.7rem;
        color: #f59e0b;
        opacity: 0;
        max-height: 0;
        animation: showExpired 0.3s 180s forwards;
    }

    @keyframes showExpired {
        to {
            opacity: 1;
            max-height: 2rem;
        }
    }

    .submit-btn {
        width: 100%;
        min-width: 0;
        padding: 0.9rem 1.5rem;
        background: #ffffff;
        border: none;
        border-radius: 10px;
        color: #000000;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .submit-btn:hover {
            background: #e5e5e5;
            transform: translateY(-1px);
        }

        .submit-btn:active {
            transform: translateY(0);
            background: #d4d4d4;
        }

    .info-footer {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .info-row {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: #64748b;
        font-size: 0.8rem;
        position: relative;
    }

    .info-item-value {
        color: #94a3b8;
    }

    .fee-tooltip-trigger {
        cursor: help;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 13px;
        height: 13px;
        border: 1.25px solid #94a3b8;
        border-radius: 50%;
        color: #94a3b8;
        font-family: 'JetBrains Mono', monospace;
        font-size: 8.5px;
        font-weight: 600;
        line-height: 13px;
        opacity: 0.9;
        transition: opacity 0.2s;
        position: relative;
        top: -1px;
        vertical-align: middle;
    }

        .fee-tooltip-trigger::before {
            content: "i";
        }

        .fee-tooltip-trigger:hover {
            opacity: 1;
        }

    .fee-tooltip-container {
        position: relative;
        display: inline-block;
    }

    .fee-tooltip {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #0a0a0a;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        padding: 0.65rem 0.85rem;
        min-width: 185px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s;
        z-index: 100;
        margin-bottom: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

        .fee-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: rgba(255, 255, 255, 0.3);
        }

    .fee-tooltip-container:hover .fee-tooltip {
        opacity: 1;
        visibility: visible;
    }

    .fee-tooltip.anchor-right {
        left: auto;
        right: 0;
        transform: none;
    }

        .fee-tooltip.anchor-right::after {
            left: auto;
            right: 3px;
            transform: none;
        }

    .fee-tooltip.tooltip-lg {
        min-width: 215px;
    }

        .fee-tooltip.tooltip-lg .fee-tooltip-title {
            font-size: 0.82rem;
        }

        .fee-tooltip.tooltip-lg .fee-tooltip-note {
            font-size: 0.8rem;
            line-height: 1.45;
        }

    .fee-tooltip-title {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #ffffff;
        margin-bottom: 0.4rem;
        text-align: center;
    }

    .fee-tooltip-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        padding: 0.2rem 0;
        color: #94a3b8;
    }

        .fee-tooltip-row span:last-child {
            color: #e2e8f0;
            font-family: 'JetBrains Mono', monospace;
        }

    .fee-tooltip-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.35rem 0;
    }

    .fee-tooltip-note {
        font-size: 0.65rem;
        color: #64748b;
        text-align: center;
    }


    .rp-section {
        margin-top: 0.75rem;
        padding: 0.6rem 1rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rp-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        list-style: none;
        font-size: 0.7rem;
        color: #94a3b8;
        gap: 0.75rem;
    }



    .rp-summary {
        flex: 1;
        min-width: 0;
    }

        .rp-summary strong {
            color: #00c896;
        }

    .rp-summary-min {
        color: #64748b;
        margin-left: 4px;
        font-size: 0.65rem;
    }

    .rp-info-tooltip {
        position: relative;
        display: inline-flex;
        margin-left: 2px;
    }

        .rp-info-tooltip .fee-tooltip-trigger {
            cursor: help;
        }

    .rp-info-popup {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: #0a0a0a;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        padding: 0.6rem 0.75rem;
        width: 220px;
        font-size: 0.65rem;
        line-height: 1.4;
        color: #94a3b8;
        opacity: 0;
        visibility: hidden;
        transition: all 0.15s;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .rp-info-tooltip:hover .rp-info-popup {
        opacity: 1;
        visibility: visible;
    }

    .rp-change {
        color: #64748b;
        font-size: 0.65rem;
        border-bottom: 1px dashed #64748b;
        transition: color 0.15s;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .rp-toggle:hover .rp-change {
        color: #00c896;
        border-color: #00c896;
    }

    details.rp-section[open] .rp-change {
        display: none;
    }

    .rp-content {
        padding-top: 0.6rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rp-picker {
        display: flex;
        gap: 4px;
    }

    .rp-option {
        flex: 1;
        cursor: pointer;
    }

        .rp-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

    .rp-option-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 6px 4px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        transition: all 0.15s;
    }

    .rp-option:hover .rp-option-content {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .rp-option input[type="radio"]:checked + .rp-option-content {
        background: rgba(0, 200, 150, 0.15);
        border-color: #00c896;
    }

    .rp-option-percent {
        font-size: 0.7rem;
        font-weight: 600;
        color: #e2e8f0;
    }

    .rp-option input[type="radio"]:checked + .rp-option-content .rp-option-percent {
        color: #00c896;
    }

    .rp-option-min {
        font-size: 0.55rem;
        color: #64748b;
        font-family: 'JetBrains Mono', monospace;
        margin-top: 2px;
    }

    .rp-option-usd {
        font-size: 0.5rem;
        color: #475569;
    }

    .rp-help {
        font-size: 0.6rem;
        color: #64748b;
        text-align: center;
        margin-top: 0.5rem;
    }

    .quote-header {
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .quote-title {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: #64748b;
        margin-bottom: 0.6rem;
    }

    .quote-conversion {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .quote-amount {
        text-align: center;
    }

    .quote-amount-crypto {
        font-size: 1.4rem;
        font-weight: 600;
        font-family: 'JetBrains Mono', monospace;
        color: #e2e8f0;
    }

        .quote-amount-crypto.receiving {
            color: #ffffff;
        }

    .quote-amount-usd {
        font-size: 0.85rem;
        color: #999999;
        margin-top: 0.15rem;
    }

    .quote-amount-usd-inline {
        font-size: 0.85rem;
        color: #999999;
        margin-left: 0.4rem;
        font-weight: 400;
    }

    .quote-arrow {
        display: inline-block;
        position: relative;
        width: 32px;
        height: 2px;
        background: #00ffff;
        margin: 0 0.5rem;
        vertical-align: middle;
        top: 0;
    }

        .quote-arrow::after {
            content: '';
            position: absolute;
            right: -2px;
            top: -4px;
            border: solid #00ffff;
            border-width: 0 2px 2px 0;
            padding: 4px;
            transform: rotate(-45deg);
        }

    .quote-details {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 0.75rem 0.85rem;
        margin-bottom: 0.75rem;
    }

    .quote-detail-row {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

        .quote-detail-row:last-child {
            border-bottom: none;
        }

    .quote-detail-label {
        color: #64748b;
        font-size: 0.85rem;
    }

    .quote-detail-value {
        color: #e2e8f0;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.85rem;
    }

        .quote-detail-value.highlight {
            color: #ffffff;
        }

        .quote-detail-value .usd {
            color: #64748b;
            margin-left: 0.3rem;
            font-size: 0.75rem;
        }

    .quote-fees {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.7rem 1rem;
        margin-bottom: 0.75rem;
    }

    .quote-fees-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.3rem;
    }

    .quote-fees-title {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #999999;
    }

    .quote-fees-total {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.75rem;
        color: #ffffff;
    }

    .quote-fee-item {
        display: flex;
        justify-content: space-between;
        font-size: 0.7rem;
        padding: 0.15rem 0;
        color: #94a3b8;
    }

    .fee-secondary {
        font-size: 0.6rem;
        color: #64748b;
    }

    .quote-actions {
        display: grid;
        grid-template-columns: auto auto 1fr;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .btn-cancel {
        padding: 0.65rem 1rem;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.3);
            color: #ffffff;
        }

    .btn-refresh {
        padding: 0.65rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        color: #e2e8f0;
        font-size: 0.75rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .btn-refresh:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.25);
            color: #ffffff;
        }

    .btn-confirm {
        padding: 0.65rem 1.25rem;
        background: #ffffff;
        border: none;
        border-radius: 8px;
        color: #000000;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .btn-confirm:hover {
            background: #e5e5e5;
            transform: translateY(-1px);
        }

        .btn-confirm:active {
            transform: translateY(0);
            background: #d4d4d4;
        }

    .quote-note {
        text-align: center;
        font-size: 0.65rem;
        color: #4a5568;
        margin-top: 0.6rem;
    }

    .quote-timer-detail {
        margin: 0.75rem 0 0 0;
    }

        .quote-timer-detail summary {
            list-style: none;
            cursor: default;
        }



    .quote-timer {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        background: rgba(100, 116, 139, 0.08);
        border-radius: 6px;
    }

    .quote-timer-label {
        font-size: 11px;
        color: #64748b;
        white-space: nowrap;
    }

    .quote-timer-help {
        font-size: 11px;
        color: #64748b;
        cursor: pointer;
        flex-shrink: 0;
    }

    .quote-timer-detail-text {
        margin-top: 6px;
        padding: 8px 10px;
        background: rgba(100, 116, 139, 0.08);
        border-radius: 6px;
        font-size: 0.65rem;
        line-height: 1.5;
        color: #94a3b8;
    }

    .quote-cd-wrap {
        position: relative;
        min-width: 3.2em;
        height: 1em;
        font-size: 12px;
        color: #e2e8f0;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

    .quote-cd-frame {
        position: absolute;
        left: 0;
        top: -3px;
        opacity: 0;
    }

    .quote-timer-track {
        flex: 1;
        height: 3px;
        background: rgba(100, 116, 139, 0.15);
        border-radius: 2px;
    }

    .quote-timer-bar {
        height: 100%;
        border-radius: 2px;
    }

    .quote-expired-hint {
        font-size: 11px;
        color: #f59e0b;
        text-align: center;
        margin: 0.5rem 0 0 0;
    }

    @keyframes cd-tick {
        from {
            opacity: 1;
        }

        to {
            opacity: 0;
        }
    }

    @keyframes cd-tick-last {
        from {
            opacity: 1;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes quote-drain {
        from {
            width: 100%;
            background: #3b82f6;
        }

        80% {
            background: #3b82f6;
        }

        95% {
            background: #f59e0b;
        }

        to {
            width: 0%;
            background: #ef4444;
        }
    }

    .destination-preview {
        font-size: 0.75rem;
        color: #ffffff;
        word-break: break-all;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.4);
        padding: 0.7rem 0.9rem;
        border-radius: 8px;
        margin: 0.75rem 0 0 0;
    }

        .destination-preview strong {
            color: #ffffff;
            font-weight: 700;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            display: block;
            margin-bottom: 0.4rem;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .destination-preview .address-text {
            font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
            font-size: 0.72rem;
            color: #f1f5f9;
            display: block;
            line-height: 1.5;
            padding: 0.4rem 0.55rem;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 6px;
        }

    .slippage-warning {
        display: flex;
        gap: 0.5rem;
        padding: 0.7rem 0.85rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }

        .slippage-warning .warning-icon {
            font-size: 1.2rem;
            line-height: 1;
            flex-shrink: 0;
        }

        .slippage-warning .warning-content {
            flex: 1;
        }

        .slippage-warning strong {
            color: #ffffff;
            font-size: 0.75rem;
            display: block;
            margin-bottom: 0.2rem;
        }

        .slippage-warning p {
            color: #cccccc;
            font-size: 0.7rem;
            margin: 0;
            line-height: 1.35;
        }

        .slippage-warning .warning-suggestion {
            color: #999999;
            font-style: italic;
            margin-top: 0.25rem;
        }

    .back-order-notice {
        padding: 0.85rem 1rem;
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 152, 0, 0.08));
        border: 1px solid rgba(255, 193, 7, 0.35);
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }

        .back-order-notice .back-order-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .back-order-notice .back-order-icon {
            font-size: 1.1rem;
        }

        .back-order-notice strong {
            color: #ffc107;
            font-size: 0.8rem;
        }

        .back-order-notice .back-order-content p {
            color: #cccccc;
            font-size: 0.72rem;
            margin: 0.3rem 0;
            line-height: 1.4;
        }

        .back-order-notice .back-order-expiry {
            color: #ffb74d;
            font-size: 0.7rem;
        }

        .back-order-notice .back-order-tolerance {
            margin-top: 0.85rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

            .back-order-notice .back-order-tolerance label {
                display: flex;
                justify-content: space-between;
                align-items: center;
                color: rgba(255,255,255,0.85);
                font-size: 0.78rem;
                margin-bottom: 0.5rem;
            }

                .back-order-notice .back-order-tolerance label strong {
                    color: #ffffff;
                    font-size: 0.85rem;
                    background: rgba(255,255,255,0.1);
                    padding: 0.2rem 0.5rem;
                    border-radius: 4px;
                }

            .back-order-notice .back-order-tolerance input[type="range"] {
                width: 100%;
                height: 8px;
                background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0.25));
                border-radius: 4px;
                outline: none;
                -webkit-appearance: none;
                cursor: pointer;
                border: 1px solid rgba(255,255,255,0.2);
            }

                .back-order-notice .back-order-tolerance input[type="range"]::-webkit-slider-thumb {
                    -webkit-appearance: none;
                    width: 20px;
                    height: 20px;
                    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
                    border-radius: 50%;
                    cursor: pointer;
                    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.8);
                    border: 2px solid rgba(255,255,255,0.9);
                    transition: transform 0.15s ease;
                }

                    .back-order-notice .back-order-tolerance input[type="range"]::-webkit-slider-thumb:hover {
                        transform: scale(1.1);
                    }

                .back-order-notice .back-order-tolerance input[type="range"]::-moz-range-thumb {
                    width: 20px;
                    height: 20px;
                    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
                    border-radius: 50%;
                    cursor: pointer;
                    border: 2px solid rgba(255,255,255,0.9);
                    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.8);
                }



        .back-order-notice .tolerance-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.68rem;
            color: rgba(255,255,255,0.5);
            margin-top: 0.35rem;
            padding: 0 2px;
        }

        .back-order-notice .tolerance-help {
            color: rgba(255,255,255,0.6);
            font-size: 0.68rem;
            margin-top: 0.6rem;
            line-height: 1.4;
        }

    @media (max-width: 500px) {
        .exchange-card {
            padding: 1.25rem;
        }

        .currency-grid {
            grid-template-columns: 1fr;
            gap: 0.3rem;
        }

        .swap-button-container {
            transform: rotate(90deg);
            padding: 0.25rem 0;
        }

        .currency-dropdown-menu {
            position: relative;
            border-top: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 0 0 10px 10px;
            max-height: 280px;
        }

        .currency-info-row {
            grid-template-columns: 1fr;
            gap: 0.3rem;
        }

        .currency-info-item:first-child,
        .currency-info-item:last-child {
            justify-content: center;
        }

        .captcha-submit-row {
            grid-template-columns: 1fr;
        }

        .captcha-group {
            width: 100%;
            justify-content: center;
        }

        .submit-btn {
            width: 100%;
        }

        .quote-conversion {
            flex-direction: column;
            gap: 0.35rem;
        }

        .quote-arrow {
            width: 2px;
            height: 20px;
            margin: 0.15rem 0 0.25rem;
            transform: none;
            top: auto;
        }

            .quote-arrow::after {
                right: auto;
                left: 50%;
                top: auto;
                bottom: -2px;
                padding: 4px;
                transform: translateX(-50%) rotate(45deg);
            }

        .quote-amount-crypto {
            line-height: 1.2;
        }

        .quote-actions {
            grid-template-columns: 1fr 1fr;
            position: sticky;
            bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
            z-index: 8;
            padding-top: 0.45rem;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000000 42%);
        }

        .btn-confirm {
            grid-column: 1 / -1;
            grid-row: 1;
            min-height: 3rem;
        }

        .quote-actions .btn-cancel {
            grid-column: 1;
            grid-row: 2;
        }

        .quote-actions .btn-refresh {
            grid-column: 2;
            grid-row: 2;
        }
    }

    .optional-section {
        margin-top: 0.15rem;
    }

    .optional-toggle {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        cursor: pointer;
        color: #64748b;
        font-size: 0.7rem;
        transition: color 0.2s;
        list-style: none;
    }



        .optional-toggle::before {
            content: '+';
            font-size: 0.75rem;
            font-weight: bold;
            width: 0.9rem;
            text-align: center;
            transition: transform 0.2s;
        }

    details.optional-section[open] .optional-toggle::before {
        content: '−';
    }

    .optional-toggle:hover {
        color: #ffffff;
    }

    .optional-content {
        padding-top: 0.5rem;
    }

    .input-hint {
        font-size: 0.7rem;
        color: #64748b;
        margin-top: 0.3rem;
        text-align: center;
    }
