#credits-modal {
    width: min(450px, calc(100vw - 16px));
    height: auto;
    max-height: calc(100dvh - 16px);
    padding: 12px 16px;
    overflow-y: auto;
    border: 3px solid #252525;
    border-radius: 30px;
    background: white;
    color: #555;
    text-align: center;
}
#credits-modal::backdrop { background: rgb(15 23 42 / 55%); }
#credits-modal [hidden] { display: none; }
.credits-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#credits-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #555; font-size: 28px; line-height: 1; }
#credits-close:focus-visible { outline: 2px solid #3c6493; outline-offset: 2px; }
.credits-brand { display: flex; align-items: center; gap: 6px; color: #3c6493; font-size: 24px; font-weight: 700; }
.credits-brand img { width: 40px; height: 40px; object-fit: contain; }
#credits-title { margin: 16px 0 12px; font-size: 24px; }
#credits-recipient { margin: 24px 0 18px; font-size: 12px; line-height: 1.3; }
#credits-recipient span { display: block; color: #999; }
#credits-recipient strong { display: block; color: #171717; }
.credits-increments { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; max-width: 185px; margin: auto; }
#credits-modal .credits-increments button { padding: 6px; min-width: 46px; min-height: 42px; border: 1px solid #888; border-radius: 6px; background: #f3f3f3; color: #555; font-size: 14px; font-weight: 400; }
.credits-total { margin: 12px 0; color: #1900ff; font-weight: 700; }
.credits-total small { font-size: 12px; }
#credits-amount { font-size: 38px; }
.credits-actions { display: grid; gap: 5px; width: min(100%, 220px); margin: 5px auto 0; }
#credits-modal .credits-actions button, #credits-copy, #credits-adjust { min-height: 36px; padding: 5px 10px; border: 1px solid #bbb; border-radius: 4px; background: white; color: #00b6eb; font-size: 14px; }
#credits-copy, #credits-adjust { display: block; width: min(100%, 220px); margin: 5px auto 0; }
#credits-modal button:disabled { opacity: .45; cursor: not-allowed; }
#credits-modal button:hover:not(:disabled) { background: #eaf7ff; }
#credits-pix { margin-top: 10px; }
#credits-pix label { display: block; margin-bottom: 4px; font-weight: 700; }
#credits-key { display: block; width: 100%; min-height: 76px; margin-bottom: 6px; padding: 8px; resize: vertical; font: 14px monospace; overflow-wrap: anywhere; }
#credits-status { margin: 20px 0 8px; font-size: 14px; line-height: 1.3; }
#credits-status:empty { display: none; }
#credits-modal:has(#credits-copied:not([hidden])) .credits-total { color: #555; margin: 24px 0; }
#credits-modal:has(#credits-copied:not([hidden])) #credits-amount { font-size: 52px; }
#credits-copied-title { margin: 24px 0 20px; font-size: 24px; }
.credits-instructions { display: grid; gap: 22px; padding: 0; margin: 0; list-style: none; color: #1900ff; font-size: 18px; line-height: 1.4; }
#credits-return { min-height: 44px; margin: 20px 0 12px; padding: 8px 16px; border: 0; background: transparent; color: #1900ff; font-size: 18px; }
@media (max-height: 650px) {
    #credits-title { margin: 8px 0; }
    .credits-total { margin: 8px 0; }
    #credits-pix { margin-top: 8px; }
}
