#depositModal .crypto-deposit-modal {
    width: min(640px, 94vw);
    max-width: 640px;
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: 0;
    color: #e7edf7;
    background:
        radial-gradient(circle at 92% 4%, rgba(59, 130, 246, 0.17), transparent 28%),
        linear-gradient(160deg, #151c2a 0%, #0e1420 70%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.crypto-deposit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 26px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.crypto-deposit-heading-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 15px;
    color: #93c5fd;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.24), rgba(30, 64, 175, 0.1));
    font-size: 20px;
}

.crypto-deposit-heading-copy {
    flex: 1;
    min-width: 0;
}

.crypto-deposit-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #7dd3fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.crypto-deposit-heading-copy h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.25;
}

.crypto-deposit-heading-copy p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.crypto-deposit-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 11px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.035);
    font-size: 15px;
}

.crypto-deposit-close:hover {
    color: #fff;
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.crypto-deposit-form,
.crypto-payment-summary,
.crypto-payment-progress,
.crypto-address-panel,
.crypto-deposit-footnote,
.crypto-deposit-actions,
.crypto-gateway-notice,
.crypto-inline-error,
.crypto-deposit-blocked {
    margin-left: 26px;
    margin-right: 26px;
}

.crypto-deposit-form {
    padding: 22px 0 24px;
}

.crypto-form-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.crypto-form-section-heading > span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 9px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.13);
    font-size: 10px;
    font-weight: 800;
}

.crypto-form-section-heading div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.crypto-form-section-heading strong {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.crypto-form-section-heading small {
    color: #8190a5;
    font-size: 11px;
}

.crypto-amount-label {
    display: block;
    margin-bottom: 7px;
    color: #aab7c8;
    font-size: 11px;
    font-weight: 650;
}

.crypto-amount-input-wrap {
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.21);
    border-radius: 13px;
    background: rgba(4, 9, 17, 0.5);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crypto-amount-input-wrap:focus-within {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.crypto-amount-input-wrap > span {
    margin-right: 11px;
    color: #60a5fa;
    font-size: 18px;
    font-weight: 750;
}

.crypto-amount-input-wrap input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    color: #f8fafc;
    background: transparent;
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.crypto-amount-input-wrap input::placeholder {
    color: #506076;
}

.crypto-amount-limits {
    margin-top: 7px;
    color: #748399;
    font-size: 10px;
}

.crypto-amount-limits span {
    margin: 0 5px;
    color: #475569;
}

.crypto-network-heading {
    margin-top: 24px;
}

.crypto-currency-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.crypto-currency-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 70px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.crypto-currency-option:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(37, 99, 235, 0.07);
}

.crypto-currency-option:has(input:checked) {
    border-color: rgba(96, 165, 250, 0.7);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.06));
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.crypto-currency-option input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.crypto-currency-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 10px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.13);
    font-size: 15px;
    font-weight: 800;
}

.crypto-currency-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.crypto-currency-copy strong {
    overflow: hidden;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crypto-currency-copy small {
    overflow: hidden;
    color: #8291a6;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crypto-currency-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #60a5fa;
    font-size: 11px;
    opacity: 0;
}

.crypto-currency-option:has(input:checked) .crypto-currency-check {
    opacity: 1;
}

.crypto-deposit-assurance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 14px;
    padding: 11px 12px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 11px;
    color: #91a3b8;
    background: rgba(16, 185, 129, 0.04);
    font-size: 10px;
}

.crypto-deposit-assurance > i {
    color: #34d399;
    font-size: 13px;
}

.crypto-sandbox-badge {
    margin-left: auto;
    padding: 4px 7px;
    border: 1px solid rgba(250, 204, 21, 0.22);
    border-radius: 6px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.07);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.crypto-deposit-submit,
.crypto-primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid rgba(96, 165, 250, 0.55);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(110deg, #1d4ed8, #2563eb 55%, #3b82f6);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.crypto-deposit-submit:not(:disabled):hover,
.crypto-primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: 0 11px 28px rgba(37, 99, 235, 0.3);
}

.crypto-deposit-submit:disabled {
    cursor: not-allowed;
    color: #8291a6;
    border-color: rgba(148, 163, 184, 0.15);
    background: rgba(148, 163, 184, 0.08);
    box-shadow: none;
}

.crypto-deposit-terms {
    margin: 10px 0 0;
    color: #65748a;
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}

.crypto-gateway-notice,
.crypto-inline-error {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
    padding: 13px 14px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 12px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.06);
}

.crypto-gateway-notice > i,
.crypto-inline-error > i {
    margin-top: 2px;
    font-size: 14px;
}

.crypto-gateway-notice div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crypto-gateway-notice strong {
    color: #fde68a;
    font-size: 11px;
}

.crypto-gateway-notice span,
.crypto-inline-error {
    font-size: 10px;
    line-height: 1.5;
}

.crypto-inline-error {
    border-color: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.06);
}

.crypto-payment-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 13px;
    background: rgba(37, 99, 235, 0.08);
}

.crypto-payment-progress-dot {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.2);
}

.crypto-payment-progress:not(.is-complete):not(.is-failed) .crypto-payment-progress-dot i {
    animation: cryptoSpin 1.8s linear infinite;
}

.crypto-payment-progress > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.crypto-payment-progress strong {
    color: #dbeafe;
    font-size: 12px;
}

.crypto-payment-progress > div span {
    overflow: hidden;
    color: #8192a9;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crypto-payment-status-label {
    padding: 5px 7px;
    border-radius: 6px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.crypto-payment-progress.is-complete {
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(16, 185, 129, 0.06);
}

.crypto-payment-progress.is-complete .crypto-payment-progress-dot,
.crypto-payment-progress.is-complete .crypto-payment-status-label {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.14);
}

.crypto-payment-progress.is-failed {
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(239, 68, 68, 0.06);
}

.crypto-payment-progress.is-failed .crypto-payment-progress-dot,
.crypto-payment-progress.is-failed .crypto-payment-status-label {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.crypto-payment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.crypto-payment-summary > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.crypto-payment-summary span {
    color: #8391a6;
    font-size: 9px;
}

.crypto-payment-summary strong {
    overflow-wrap: anywhere;
    color: #f1f5f9;
    font-size: 15px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.crypto-address-panel {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 13px;
    background: rgba(3, 8, 16, 0.48);
}

.crypto-network-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
}

.crypto-address-panel > label {
    display: block;
    margin-bottom: 6px;
    color: #8291a5;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.crypto-address-copy-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.crypto-address-copy-row code {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    overflow-wrap: anywhere;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 9px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.035);
    font-size: 10px;
    line-height: 1.5;
    user-select: all;
}

.crypto-address-copy-row button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 89px;
    padding: 0 10px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 9px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.12);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.crypto-extra-id {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(250, 204, 21, 0.18);
    border-radius: 8px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.05);
    font-size: 9px;
}

.crypto-extra-id code {
    overflow-wrap: anywhere;
    color: #fef3c7;
    text-align: right;
}

.crypto-address-warning {
    display: flex;
    gap: 7px;
    margin: 12px 0 0;
    color: #fbbf24;
    font-size: 9px;
    line-height: 1.55;
}

.crypto-address-warning i {
    margin-top: 1px;
    flex: 0 0 auto;
}

.crypto-deposit-footnote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    color: #8291a6;
    font-size: 9px;
    line-height: 1.6;
}

.crypto-deposit-footnote > i {
    margin-top: 2px;
    color: #60a5fa;
}

.crypto-deposit-footnote strong {
    color: #cbd5e1;
}

.crypto-deposit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 17px;
    margin-bottom: 22px;
}

.crypto-secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.crypto-deposit-actions .crypto-primary-button {
    min-height: 45px;
    font-size: 11px;
}

.crypto-deposit-blocked {
    padding: 35px 0 40px;
    text-align: center;
}

.crypto-deposit-blocked-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 17px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.08);
    font-size: 21px;
}

.crypto-deposit-blocked h3 {
    margin: 0 0 7px;
    color: #f8fafc;
    font-size: 17px;
}

.crypto-deposit-blocked p {
    max-width: 390px;
    margin: 0 auto 18px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}

.crypto-deposit-blocked .crypto-deposit-submit {
    width: auto;
    margin: 0 auto;
}

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

@media (max-width: 600px) {
    #depositModal .crypto-deposit-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 24px);
        margin: 12px auto;
        border-radius: 17px;
    }

    .crypto-deposit-header {
        gap: 11px;
        padding: 18px 16px 16px;
    }

    .crypto-deposit-heading-icon {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 12px;
        font-size: 17px;
    }

    .crypto-deposit-heading-copy h2 {
        font-size: 17px;
    }

    .crypto-deposit-heading-copy p {
        font-size: 10px;
    }

    .crypto-deposit-close {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .crypto-deposit-form,
    .crypto-payment-summary,
    .crypto-payment-progress,
    .crypto-address-panel,
    .crypto-deposit-footnote,
    .crypto-deposit-actions,
    .crypto-gateway-notice,
    .crypto-inline-error,
    .crypto-deposit-blocked {
        margin-left: 16px;
        margin-right: 16px;
    }

    .crypto-deposit-form {
        padding: 17px 0 18px;
    }

    .crypto-currency-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .crypto-currency-option {
        min-height: 58px;
    }

    .crypto-currency-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .crypto-payment-summary > div {
        padding: 10px;
    }

    .crypto-payment-summary strong {
        font-size: 12px;
    }

    .crypto-address-panel {
        padding: 12px;
    }

    .crypto-address-copy-row {
        flex-direction: column;
    }

    .crypto-address-copy-row button {
        min-height: 38px;
    }

    .crypto-deposit-assurance {
        flex-wrap: wrap;
        font-size: 9px;
    }

    .crypto-sandbox-badge {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crypto-currency-option,
    .crypto-deposit-submit,
    .crypto-primary-button,
    .crypto-payment-progress-dot i {
        animation: none !important;
        transition: none !important;
    }
}
