.c-modal {
    background-color: var(--color-bg-surface);
    color: var(--color-text-light);
    border: 1px solid var(--color-gold-primary);
    border-radius: 8px;
    padding: 0;
    max-width: 520px;
    width: min(92%, 520px);
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
}

.c-modal::backdrop {
    background-color: rgba(13, 10, 8, 0.88);
    backdrop-filter: blur(5px);
}

.c-modal__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-surface);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.c-modal__title {
    color: var(--color-gold-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0;
}

.c-modal__close {
    background: transparent;
    color: var(--color-gold-primary);
    font-size: 1.75rem;
    cursor: pointer;
    border: 0;
    line-height: 1;
}

.c-modal__close:focus-visible {
    outline: 2px solid var(--color-gold-primary);
    outline-offset: 3px;
}

.c-modal__body {
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.c-modal__amount {
    font-size: 1.55rem;
    color: var(--color-gold-primary);
    font-weight: 700;
}

.c-modal__text,
.c-modal__support-code {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.c-modal__copypaste {
    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-light);
    padding: 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.76rem;
    border-radius: 6px;
    word-break: break-all;
    max-height: 92px;
    overflow-y: auto;
    text-align: left;
    user-select: all;
}

.c-modal__qrcode {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
}

.c-modal__qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.c-modal__status {
    padding: 0.8rem;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--color-text-light);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.c-modal__status[data-state="approved"] {
    background: rgba(46, 204, 113, 0.1);
    color: #8ce7b2;
    border-color: rgba(46, 204, 113, 0.28);
}

.c-modal__status[data-state="error"] {
    background: rgba(255, 80, 80, 0.1);
    color: #ffaaa3;
    border-color: rgba(255, 80, 80, 0.28);
}

.c-modal__actions {
    display: grid;
    gap: 0.75rem;
}

.c-modal__actions .c-btn {
    width: 100%;
}

.c-modal__link[hidden],
.c-modal__qrcode[hidden],
.c-modal__copypaste[hidden] {
    display: none;
}
