.deposit-dialog {
    --deposit-cta: #16a34a;
    --deposit-select: #3b82f6;
    --deposit-bonus: #fcd34d;
    --deposit-pix: #32bcad;
    width: min(460px, calc(100vw - 32px));
    max-height: min(820px, calc(100dvh - 40px));
    padding: 0;
    overflow: hidden;
    border-color: var(--surface-border);
    border-radius: 20px;
    background: var(--surface);
}
.deposit-dialog[open] {
    display: flex;
    flex-direction: column;
}
.deposit-profile-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-inset);
    text-align: left;
}
.deposit-profile-symbol {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #2563eb20;
    color: #8fb8ff;
}
.deposit-profile-symbol .icon {
    width: 18px;
    height: 18px;
}
.deposit-profile-summary > span:nth-child(2) {
    display: grid;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.deposit-profile-summary strong {
    font-size: 12px;
    color: var(--foreground);
}
.deposit-profile-summary small {
    font-size: 10px;
    color: var(--surface-muted);
}
.deposit-profile-edit {
    color: #8fb8ff;
    font-size: 11px;
    font-weight: 700;
}
.deposit-profile-dialog {
    width: min(420px, calc(100vw - 28px));
    padding: 28px 24px 24px;
}
.deposit-profile-heading {
    margin-bottom: 22px;
}
.deposit-profile-heading-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border: 1px solid #2563eb40;
    border-radius: 14px;
    background: #2563eb20;
    color: #8fb8ff;
}
.deposit-profile-heading h2 {
    margin: 0 24px 8px 0;
    font-size: 19px;
    color: var(--foreground);
}
.deposit-profile-heading p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--surface-muted);
}
.deposit-profile-dialog form {
    display: grid;
    gap: 16px;
}
.deposit-profile-dialog .input {
    min-height: 46px;
    font-size: 16px;
}
.deposit-profile-dialog .finance-submit {
    margin-top: 4px;
    background: #16a34a;
    color: #fff;
}
html:has(.sheet-dialog[open]) {
    overflow: hidden;
}

/* Abertura e fechamento */
.sheet-dialog[open] {
    animation: dialog-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet-dialog[open]::backdrop {
    animation: backdrop-in 0.24s ease-out;
}
.sheet-dialog.is-closing {
    animation: dialog-out 0.18s ease-in forwards;
}
.sheet-dialog.is-closing::backdrop {
    animation: backdrop-out 0.18s ease-in forwards;
}
@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
}
@keyframes dialog-out {
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}
@keyframes sheet-in {
    from {
        transform: translateY(100%);
    }
}
@keyframes sheet-out {
    to {
        transform: translateY(100%);
    }
}
@keyframes backdrop-in {
    from {
        opacity: 0;
    }
}
@keyframes backdrop-out {
    to {
        opacity: 0;
    }
}

/* Cabeçalho */
.sheet-handle {
    display: none;
}
.deposit-sheet-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 12px 11px;
    border-bottom: 1px solid var(--surface-border);
}
.deposit-sheet-header h2 {
    outline: none;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    text-align: center;
    white-space: nowrap;
}
.deposit-sheet-start,
.deposit-sheet-tools {
    display: flex;
    align-items: center;
    gap: 2px;
}
.deposit-sheet-tools {
    justify-content: flex-end;
}
.deposit-tool {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8ea4c7;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
}
.deposit-tool:hover {
    background: var(--surface-raised);
    color: #e6efff;
}
.deposit-tool .icon {
    width: 19px;
    height: 19px;
}

/* Corpo do formulário */
.deposit-dialog .deposit-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}
.deposit-form-body,
.deposit-payment-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 18px 16px;
}
.deposit-form-body {
    display: grid;
    align-content: start;
    gap: 14px;
}
.deposit-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c9d6ee;
    font-size: 13px;
    font-weight: 600;
}
.deposit-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 4px 3px 8px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: var(--surface-inset);
}
.deposit-balance-chip .brazil-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}
.deposit-balance-chip strong {
    color: var(--deposit-bonus);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.deposit-balance-chip button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #2563eb24;
    color: #8fb8ff;
    cursor: pointer;
}
.deposit-balance-chip button .icon {
    width: 14px;
    height: 14px;
}
.deposit-balance-chip button.is-loading .icon,
.payment-meta-action.is-loading .icon {
    animation: deposit-spin 0.8s linear infinite;
}
@keyframes deposit-spin {
    to {
        transform: rotate(360deg);
    }
}
.deposit-section {
    display: grid;
    gap: 8px;
    margin: 0;
}
.deposit-label {
    display: block;
    color: #c9d6ee;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* Método */
.deposit-method {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1.5px solid var(--deposit-select);
    border-radius: 12px;
    background: color-mix(in srgb, var(--deposit-select) 10%, var(--surface-raised));
}
.deposit-method-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #32bcad1f;
    color: var(--deposit-pix);
}
.deposit-method-logo .pix-mark {
    width: 22px;
    height: 22px;
}
.deposit-method-text {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.deposit-method-text strong {
    font-size: 14px;
    line-height: 1.2;
}
.deposit-method-text small {
    color: var(--surface-muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.deposit-method.has-options {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}
.deposit-method.is-unavailable {
    border-color: var(--surface-border);
    background: var(--surface-raised);
}
.deposit-gateway-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    gap: 10px;
}
.deposit-gateway-option {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 58px;
    padding: 10px;
    border: 1.5px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-raised);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.deposit-gateway-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}
.deposit-gateway-option .deposit-method-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}
.deposit-gateway-option strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #c9d6ee;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}
.deposit-gateway-check {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--deposit-select);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
}
.deposit-gateway-check .icon {
    width: 11px;
    height: 11px;
    stroke-width: 3;
}
.deposit-gateway-option:has(input:checked) {
    border-color: var(--deposit-select);
    background: #2563eb24;
    box-shadow: inset 0 0 0 1px var(--deposit-select);
}
.deposit-gateway-option:has(input:checked) strong {
    color: #e6efff;
}
.deposit-gateway-option:has(input:checked) .deposit-gateway-check {
    opacity: 1;
}
.deposit-gateway-option:has(input:focus-visible) {
    outline: 2px solid #8fb8ff;
    outline-offset: 2px;
}
.deposit-method-check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--deposit-select);
    color: #fff;
}
.deposit-method-check .icon {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

/* Valor */
.deposit-dialog .currency-input {
    min-height: 52px;
    padding: 0 14px;
    gap: 9px;
    border-color: var(--surface-border);
    border-radius: 12px;
    background: var(--surface-inset);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.deposit-dialog .currency-input:focus-within {
    border-color: var(--deposit-select);
    box-shadow: 0 0 0 3px #3b82f626;
}
.deposit-dialog .currency-input:has(input:user-invalid) {
    border-color: #f05276;
    box-shadow: 0 0 0 3px #f0527620;
}
.deposit-dialog .currency-input > span {
    color: #8ea4c7;
    font-size: 16px;
    font-weight: 700;
}
.deposit-dialog .currency-input input {
    padding: 13px 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.deposit-dialog .currency-input input::placeholder {
    color: #647a9e;
    font-size: 14px;
    font-weight: 500;
}

/* Valores rápidos */
.deposit-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.deposit-chips button {
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    min-height: 46px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-raised);
    color: #eaf1ff;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s,
        transform 0.1s;
}
.deposit-chips button:hover {
    border-color: #3b82f680;
}
.deposit-chips button:active {
    transform: scale(0.97);
}
.deposit-chips button.is-active {
    border-color: var(--deposit-select);
    background: #173063;
    box-shadow: inset 0 0 0 1px var(--deposit-select);
}
.deposit-chips strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 3px 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.deposit-chips strong small {
    color: #8ea4c7;
    font-size: 9px;
    font-weight: 700;
}
.deposit-chips button > span {
    display: block;
    padding: 4px 2px;
    background: #0a142866;
    color: var(--deposit-bonus);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.deposit-chips button.is-active > span {
    background: #fcd34d1f;
}

/* Oferta de bônus */
.deposit-offer {
    display: grid;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #fcd34d2e;
    border-radius: 12px;
    background: linear-gradient(135deg, #fcd34d10, transparent 60%), var(--surface-raised);
}
.deposit-offer-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.deposit-offer-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fcd34d22;
    color: var(--deposit-bonus);
}
.deposit-offer-icon .icon {
    width: 16px;
    height: 16px;
}
.deposit-offer-heading strong {
    font-size: 13px;
}
.deposit-offer-heading small {
    margin-left: auto;
    color: var(--surface-muted);
    font-size: 10.5px;
    text-align: right;
}
.deposit-dialog .deposit-bonus-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.25fr);
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: var(--surface-inset);
}
.deposit-bonus-summary[hidden] {
    display: none !important;
}
.deposit-dialog .deposit-bonus-summary div {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.deposit-dialog .deposit-bonus-summary div > span {
    color: var(--surface-muted);
    font-size: 10px;
}
.deposit-dialog .deposit-bonus-summary strong {
    font-size: 13px;
    line-height: 1.2;
    color: #eaf1ff;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}
.deposit-dialog .deposit-bonus-summary .bonus-math {
    display: block;
    color: #647a9e;
    font-size: 14px;
    font-weight: 700;
}
.deposit-dialog .deposit-bonus-summary .bonus-total {
    padding: 0;
    border: 0;
}
.deposit-dialog .deposit-bonus-summary .bonus-total strong {
    color: #4ade80;
    font-size: 15px;
}
.deposit-offer-hint {
    margin: 0;
    color: var(--surface-muted);
    font-size: 11px;
    line-height: 1.5;
}

/* CPF e regras */
.deposit-dialog .input {
    min-height: 46px;
    padding: 11px 13px;
    border-color: var(--surface-border);
    border-radius: 12px;
    background: var(--surface-inset);
    font-size: 15px;
    line-height: 1.25;
}
.deposit-dialog .input:focus {
    border-color: var(--deposit-select);
    box-shadow: 0 0 0 3px #3b82f626;
}
.deposit-holder,
.deposit-rules {
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-raised);
}
.deposit-holder summary,
.deposit-rules summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    padding: 11px 12px;
}
.deposit-holder summary::-webkit-details-marker,
.deposit-rules summary::-webkit-details-marker {
    display: none;
}
.deposit-holder-value {
    color: #eaf1ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}
.deposit-holder-edit {
    margin-left: auto;
    color: #8fb8ff;
    font-size: 12px;
    font-weight: 700;
}
.deposit-holder[open] .deposit-holder-edit {
    color: var(--surface-muted);
}
.deposit-holder-field {
    display: grid;
    gap: 7px;
    padding: 0 12px 12px;
}
.deposit-holder-field > span {
    color: var(--surface-muted);
    font-size: 11px;
}
.deposit-rules summary {
    color: var(--surface-muted);
    font-size: 11px;
}
.deposit-rules summary .icon {
    width: 16px;
    height: 16px;
    color: #7fb0ff;
}
.deposit-rules summary > span:last-child {
    margin-left: auto;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s;
}
.deposit-rules[open] summary > span:last-child {
    transform: rotate(180deg);
}
.deposit-rules[open] summary {
    border-bottom: 1px solid var(--surface-border);
}
.deposit-rules-content {
    display: grid;
    gap: 8px;
    padding: 11px 13px;
}
.deposit-rules-content p {
    margin: 0;
    color: var(--surface-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* Rodapé fixo */
.deposit-dialog-footer {
    display: grid;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 18px 14px;
    border-top: 1px solid var(--surface-border);
    background: var(--surface);
}
.deposit-dialog .button {
    border: 1px solid var(--surface-border);
    background: var(--surface-raised);
    color: #dbe6f8;
}
.deposit-dialog .button:hover {
    border-color: #3b82f680;
    background: #16294a;
}
.deposit-dialog .finance-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}
.deposit-dialog .button.primary.finance-submit {
    border-color: #22c55e;
    background: linear-gradient(110deg, #15913f, #1fb356);
    color: #f4fff7;
    box-shadow: 0 8px 22px #16a34a33;
}
.deposit-dialog .button.primary.finance-submit:hover {
    background: linear-gradient(110deg, #19a349, #23c060);
}
.deposit-dialog .finance-submit .icon {
    width: 18px;
    height: 18px;
}
.deposit-dialog .finance-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}
.deposit-secondary {
    min-height: 44px;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.deposit-dialog-footer > small {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--surface-muted);
    font-size: 10.5px;
    line-height: 1.4;
}
.deposit-dialog-footer > small .icon {
    width: 13px;
    height: 13px;
}
.deposit-dialog .button:focus-visible,
.deposit-tool:focus-visible,
.deposit-chips button:focus-visible,
.deposit-balance-chip button:focus-visible,
.deposit-holder summary:focus-visible,
.deposit-rules summary:focus-visible,
.payment-copy:focus-visible,
.payment-meta-action:focus-visible {
    outline: 2px solid #8fb8ff;
    outline-offset: 2px;
}

/* Pagamento Pix */
.payment-details {
    display: grid;
    gap: 14px;
}
.deposit-dialog .payment-details > * {
    margin: 0;
}
.payment-hero {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 4px 0 2px;
    text-align: center;
}
.payment-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--deposit-pix);
}
.payment-brand .pix-mark {
    width: 28px;
    height: 28px;
}
.payment-brand b {
    color: #c8d3e6;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1;
}
.payment-amount {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.payment-state-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    animation: payment-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.payment-state-icon .icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.8;
}
.payment-state-icon.is-paid {
    background: #22c55e;
    box-shadow: 0 0 0 8px #22c55e1f;
}
.payment-state-icon.is-failed {
    background: #e2445f;
    box-shadow: 0 0 0 8px #e2445f1f;
}
@keyframes payment-pop {
    from {
        transform: scale(0.4);
        opacity: 0;
    }
}
.deposit-dialog .payment-bonus-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #fcd34d2e;
    border-radius: 12px;
    background: var(--surface-raised);
    color: var(--surface-muted);
    font-size: 11px;
}
.deposit-dialog .payment-bonus-summary > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.deposit-dialog .payment-bonus-summary .icon {
    width: 15px;
    height: 15px;
    color: var(--deposit-bonus);
}
.deposit-dialog .payment-bonus-summary strong {
    color: var(--deposit-bonus);
    font-size: 12px;
}
.deposit-dialog .payment-bonus-summary > span:last-child strong {
    color: #4ade80;
}
.payment-steps {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.payment-steps li {
    position: relative;
    padding-left: 15px;
    color: #b8c7e2;
    font-size: 12px;
    line-height: 1.5;
}
.payment-steps li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5b98ff;
}
.payment-steps li:last-child {
    color: var(--deposit-bonus);
}
.payment-steps li:last-child::before {
    background: var(--deposit-bonus);
}
.deposit-dialog .payment-qr {
    display: block;
    width: 196px;
    height: 196px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
}
.payment-code {
    display: grid;
    gap: 7px;
}
.payment-code label {
    color: #c9d6ee;
    font-size: 12px;
    font-weight: 700;
}
.payment-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.deposit-dialog .payment-code textarea {
    height: 46px;
    min-height: 46px;
    resize: none;
    overflow: hidden;
    white-space: pre;
    color: #b8c7e2;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 22px;
    padding-block: 11px;
}
.payment-copy {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-raised);
    color: #8fb8ff;
    cursor: pointer;
}
.payment-copy:hover {
    border-color: #3b82f680;
}
.payment-copy .icon {
    width: 18px;
    height: 18px;
}
.payment-link {
    justify-content: center;
    min-height: 44px;
}
.payment-message {
    margin: 0;
    color: var(--surface-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}
.payment-meta {
    display: grid;
    margin: 0;
    padding: 2px 12px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    background: var(--surface-raised);
}
.payment-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 6px 0;
}
.payment-meta > div + div {
    border-top: 1px dashed var(--surface-border);
}
.payment-meta dt {
    flex-shrink: 0;
    color: var(--surface-muted);
    font-size: 12px;
}
.payment-meta dd {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: #dbe6f8;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}
.payment-reference {
    min-width: 0;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}
.payment-status-text.is-pending {
    color: #f6c667;
}
.payment-status-text.is-paid {
    color: #44df9d;
}
.payment-status-text.is-failed {
    color: #ff7896;
}
.payment-meta-action {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #2563eb24;
    color: #8fb8ff;
    cursor: pointer;
}
.payment-meta-action .icon {
    width: 14px;
    height: 14px;
}
.payment-refresh {
    display: grid;
    gap: 8px;
    margin: 0;
}
.deposit-dialog .payment-refresh .finance-submit {
    min-height: 44px;
    font-size: 13px;
}
.payment-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--surface-muted);
    font-size: 11px;
}
.payment-live[hidden] {
    display: none;
}
.payment-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f6c667;
    animation: payment-pulse 1.6s ease-in-out infinite;
}
@keyframes payment-pulse {
    50% {
        opacity: 0.3;
        transform: scale(0.7);
    }
}

/* Confirmação ao sair de um Pix pendente */
.deposit-leave {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: inherit;
    background: #020617b8;
    backdrop-filter: blur(4px);
    animation: backdrop-in 0.18s ease-out;
}
.deposit-leave[hidden] {
    display: none;
}
.deposit-leave-card {
    display: grid;
    gap: 10px;
    width: min(340px, 100%);
    padding: 22px 18px 18px;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: var(--surface-raised);
    box-shadow: 0 24px 60px #0009;
    text-align: center;
    animation: dialog-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.deposit-leave-card strong {
    color: #fff;
    font-size: 17px;
}
.deposit-leave-card p {
    margin: 0 0 6px;
    color: var(--surface-muted);
    font-size: 13px;
    line-height: 1.55;
}
.deposit-leave-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.deposit-leave-actions .button {
    justify-content: center;
    min-width: 0;
    white-space: normal;
    text-align: center;
    min-height: 44px;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}
.deposit-dialog .deposit-leave-actions .button.primary {
    border-color: #3b82f6;
    background: #2563eb;
    color: #fff;
}

/* Celular: painel que sobe do rodapé */
@media (max-width: 360px) {
    .deposit-leave-actions {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .deposit-dialog {
        width: 100%;
        max-width: 100%;
        max-height: min(90dvh, calc(100dvh - 44px));
        margin: auto 0 0;
        border-width: 1px 0 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -18px 50px #0008;
    }
    .sheet-dialog[open] {
        animation: sheet-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .sheet-dialog.is-closing {
        animation: sheet-out 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
    }
    .sheet-handle {
        display: flex;
        justify-content: center;
        flex-shrink: 0;
        padding: 8px 0 0;
        touch-action: none;
        cursor: grab;
    }
    .sheet-handle span {
        width: 40px;
        height: 4px;
        border-radius: 4px;
        background: #3a5178;
    }
    .deposit-sheet-header {
        padding: 4px 10px 10px;
        touch-action: none;
    }
    .deposit-form-body,
    .deposit-payment-body {
        padding: 12px 14px 14px;
    }
    .deposit-form-body {
        gap: 12px;
    }
    .deposit-chips {
        gap: 7px;
    }
    .deposit-chips strong {
        font-size: 13px;
    }
    .deposit-chips button > span {
        font-size: 10px;
    }
    .deposit-offer-heading small {
        display: none;
    }
    .deposit-dialog .deposit-bonus-summary {
        gap: 4px;
        padding: 8px;
    }
    .deposit-dialog .deposit-bonus-summary strong {
        font-size: 12px;
    }
    .deposit-dialog .deposit-bonus-summary .bonus-total strong {
        font-size: 14px;
    }
    .deposit-dialog .input {
        font-size: 16px;
    }
    .deposit-dialog-footer {
        padding: 11px 14px calc(12px + env(safe-area-inset-bottom));
    }
    .deposit-dialog .payment-qr {
        width: 172px;
        height: 172px;
    }
    .payment-amount {
        font-size: 27px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sheet-dialog[open],
    .sheet-dialog[open]::backdrop,
    .sheet-dialog.is-closing,
    .sheet-dialog.is-closing::backdrop,
    .deposit-leave,
    .deposit-leave-card,
    .payment-state-icon,
    .payment-live span {
        animation: none;
    }
}

/* Notificação de saque */
.withdrawal-notice {
    width: min(380px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--foreground);
}
.withdrawal-notice[open] {
    display: grid;
    justify-items: center;
    gap: 16px;
    animation: notice-in 0.34s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.withdrawal-notice::backdrop {
    background: #02051ad6;
    backdrop-filter: blur(5px);
}
.withdrawal-notice[open]::backdrop {
    animation: backdrop-in 0.24s ease-out;
}
.withdrawal-notice.is-closing {
    animation: dialog-out 0.18s ease-in forwards;
}
.withdrawal-notice.is-closing::backdrop {
    animation: backdrop-out 0.18s ease-in forwards;
}
@keyframes notice-in {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
}
.withdrawal-notice-card {
    --notice-accent: #22c55e;
    --notice-text: #4ade80;
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 22px 18px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    background:
        radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--notice-accent) 16%, transparent), transparent 70%),
        var(--surface);
    box-shadow: 0 30px 90px #000a;
    text-align: center;
}
.withdrawal-notice.is-rejected .withdrawal-notice-card {
    --notice-accent: #e2445f;
    --notice-text: #ff7896;
}
.withdrawal-notice-eyebrow {
    color: #8fb8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.withdrawal-notice-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 4px 0 2px;
    border-radius: 50%;
    background: var(--notice-accent);
    color: #fff;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--notice-accent) 18%, transparent);
    animation: notice-ring 1.8s ease-out 0.35s 2;
}
.withdrawal-notice-icon svg {
    width: 34px;
    height: 34px;
}
.withdrawal-notice-check path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: notice-draw 0.45s ease-out 0.2s forwards;
}
.withdrawal-notice-alert,
.withdrawal-notice.is-rejected .withdrawal-notice-check {
    display: none;
}
.withdrawal-notice.is-rejected .withdrawal-notice-alert {
    display: block;
}
@keyframes notice-draw {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes notice-ring {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--notice-accent) 45%, transparent);
    }
    100% {
        box-shadow: 0 0 0 18px transparent;
    }
}
.withdrawal-notice-card h2 {
    margin: 0;
    color: var(--notice-text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.withdrawal-notice-card > p {
    margin: 0 0 4px;
    color: var(--surface-muted);
    font-size: 13px;
    line-height: 1.55;
}
.withdrawal-notice-details {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 2px 14px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface-raised);
    text-align: left;
}
.withdrawal-notice-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 6px 0;
}
.withdrawal-notice-details > div + div {
    border-top: 1px dashed var(--surface-border);
}
.withdrawal-notice-details > div[hidden] {
    display: none;
}
.withdrawal-notice-details dt {
    flex-shrink: 0;
    color: var(--surface-muted);
    font-size: 12px;
}
.withdrawal-notice-details dd {
    min-width: 0;
    margin: 0;
    color: #dbe6f8;
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}
.withdrawal-notice-details .withdrawal-notice-amount {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}
.withdrawal-notice-reference {
    font-size: 11.5px !important;
}
.withdrawal-notice-ok {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.withdrawal-notice-link {
    color: #8fb8ff;
    font-size: 12px;
    font-weight: 700;
}
.withdrawal-notice-link:hover {
    text-decoration: underline;
}
.withdrawal-notice-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #8fb8ff66;
    border-radius: 50%;
    background: #0b1830cc;
    color: #cfe0ff;
    cursor: pointer;
}
.withdrawal-notice-close:hover {
    border-color: #8fb8ff;
}
.withdrawal-notice-close .icon {
    width: 20px;
    height: 20px;
}
.withdrawal-notice-ok:focus-visible,
.withdrawal-notice-link:focus-visible,
.withdrawal-notice-close:focus-visible {
    outline: 2px solid #8fb8ff;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .withdrawal-notice[open],
    .withdrawal-notice[open]::backdrop,
    .withdrawal-notice.is-closing,
    .withdrawal-notice.is-closing::backdrop,
    .withdrawal-notice-icon {
        animation: none;
    }
    .withdrawal-notice-check path {
        animation: none;
        stroke-dashoffset: 0;
    }
}
