/* One native input keeps typing, paste, autofill and keyboard editing accessible. */
.receive-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 28px 0;
    padding: 30px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.receive-copy { min-width: 0; max-width: 370px; }
.receive-copy h2 { margin: 8px 0 8px; font-size: 23px; line-height: 1.3; letter-spacing: -.65px; }
.receive-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.receive-eyebrow, .receive-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: 1.55px; color: var(--accent); text-transform: uppercase; }
.receive-eyebrow svg { height: 15px; width: 15px; }
.receive-form { flex: 1; max-width: 560px; min-width: 0; }
.receive-label { display: block; margin: 0 0 10px; color: var(--text); font-size: 11px; font-weight: 600; }
.receive-entry { display: flex; align-items: stretch; gap: 14px; }
.receive-code-field { position: relative; flex: 1; min-width: 0; }
.receive-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.digit-slot {
    position: relative;
    display: grid;
    place-items: center;
    height: 56px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    font-size: 25px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
}
.digit-slot:empty::after { content: ''; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.digit-slot.is-filled { border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); background: var(--blue-soft); }
.digit-slot.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); background: var(--card); transform: translateY(-1px); }
.digit-slot.is-active:empty::after { width: 2px; height: 22px; border-radius: 1px; background: var(--accent); animation: receive-caret 1s step-end infinite; }
.digit-slot.is-popping { animation: receive-pop .23s ease-out; }
.receive-code-field input#receiveCode {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 9px;
    padding: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 25px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: .7em;
    outline: none;
    box-shadow: none;
}
.receive-code-field input#receiveCode::selection { background: transparent; color: transparent; }
.receive-code-field input#receiveCode::placeholder { color: transparent; }
.receive-code-field input#receiveCode:-webkit-autofill { -webkit-text-fill-color: transparent; transition: background-color 99999s; }
.receive-form .receive-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.receive-form .receive-submit:hover { border-color: var(--accent); color: var(--accent); }
.receive-form .receive-submit.is-ready { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 16%, transparent); }
.receive-form .receive-submit.is-ready:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.receive-submit-arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.receive-submit:hover .receive-submit-arrow { transform: translateX(3px); }
.receive-form.is-opening .receive-submit-arrow { animation: receive-arrow .65s ease-in-out infinite; }
.receive-form .receive-submit:disabled { cursor: wait; opacity: .75; }
.receive-hint { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.receive-status { margin: 7px 0 0; min-height: 16px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.receive-status[data-state='error'] { color: #c14249; }
.receive-form.has-error .digit-slot { border-color: #c14249; }
body.dark .receive-status[data-state='error'] { color: #f38d99; }
body.dark .receive-form.has-error .digit-slot { border-color: #f38d99; }
@keyframes receive-pop { 0% { transform: translateY(3px) scale(.93); } 65% { transform: translateY(-2px) scale(1.04); } 100% { transform: translateY(0) scale(1); } }
@keyframes receive-caret { 50% { opacity: 0; } }
@keyframes receive-arrow { 50% { transform: translateX(3px); } }
@media (max-width: 980px) {
    .receive-panel { gap: 26px; padding: 26px; }
    .receive-copy { max-width: 260px; }
    .receive-copy h2 { font-size: 21px; }
    .receive-entry { gap: 11px; }
    .receive-form .receive-submit { padding: 0 13px; font-size: 11px; gap: 7px; }
    .receive-slots { gap: 6px; }
    .digit-slot { height: 52px; font-size: 23px; }
    .receive-form .receive-submit { min-height: 52px; }
}
@media (max-width: 780px) {
    .receive-panel { align-items: flex-start; flex-direction: column; gap: 22px; }
    .receive-copy { max-width: 100%; }
    .receive-form { flex: auto; width: 100%; max-width: 560px; }
}
@media (max-width: 440px) {
    .receive-panel { padding: 22px 19px; border-radius: 14px; margin: 20px 0; }
    .receive-entry { flex-direction: column; gap: 12px; }
    .receive-slots { gap: 8px; }
    .digit-slot { height: 54px; font-size: 25px; }
    .receive-form .receive-submit { min-height: 45px; font-size: 12px; justify-content: space-between; padding: 0 16px; }
    .receive-hint { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .digit-slot, .receive-form .receive-submit, .receive-submit-arrow { transition: none; }
    .digit-slot.is-popping, .digit-slot.is-active:empty::after, .receive-form.is-opening .receive-submit-arrow { animation: none; }
}
