.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
    font-weight: 720;
}

.primary-button:hover:not(:disabled) {
    background: var(--primary-dark);
}

.primary-button.full-width {
    width: 100%;
}

.text-button,
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.section-header p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 680;
}

.section-header h2 {
    margin: 0;
    font-size: 1.38rem;
    letter-spacing: -0.04em;
}

.merchant-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--primary-dark);
}

.purchase-copy {
    display: grid;
    gap: 2px;
}

.purchase-copy small {
    color: var(--muted);
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.09);
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 700;
}

.icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
}

.icon-button:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.icon-button.danger:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
}

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    animation: toast-in 180ms ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.secondary-button {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-solid);
    color: var(--text);
    font-weight: 700;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
}

.modal-card {
    width: min(560px, 100%);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface-solid);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    letter-spacing: -0.035em;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions button {
        width: 100%;
    }
}

.inline-empty,
.muted-row {
    margin: 0;
    color: var(--muted);
}

.muted-row {
    list-style: none;
}

.loading-pulse {
    animation: loading-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes loading-pulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}
