:root {
    --brand: #0b5ed7;
    --brand-dark: #093d8f;
    --ok: #198754;
    --bad: #dc3545;
    --warn: #f0ad4e;
}

body {
    background: #f4f6fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.card {
    border: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    font-weight: 600;
}

.payform .form-control,
.payform .form-select {
    height: 48px;
    font-size: 1rem;
}

.payform label { font-weight: 500; color: #495057; }

.brand-pill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f3f9;
    color: #344;
    vertical-align: middle;
}

.amount-input {
    font-size: 1.4rem !important;
    font-weight: 600;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-SaleSuccess { background: #d1e7dd; color: #0f5132; }
.status-SaleFailed,
.status-EnrollmentFailed,
.status-ThreeDFailed { background: #f8d7da; color: #842029; }
.status-Pending { background: #fff3cd; color: #664d03; }

.receipt {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
}

.receipt-head {
    text-align: center;
    padding: 24px 16px 8px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
}

.receipt-head .tick {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; line-height: 1;
}

.receipt-amount {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 4px 0 8px;
}

.receipt-body { padding: 16px 20px; }
.receipt-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px dashed #e9ecef;
    font-size: 0.95rem;
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row .lbl { color: #6c757d; }
.receipt-row .val { font-weight: 600; color: #212529; }

.receipt-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 0 16px 20px;
}
.receipt-actions a {
    display: flex; align-items: center; justify-content: center;
    height: 44px; border-radius: 8px; text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
}
.receipt-actions .btn-whatsapp { background: #25D366; color: #fff; }
.receipt-actions .btn-share   { background: #0d6efd; color: #fff; }
.receipt-actions .btn-copy    { background: #f1f3f5; color: #212529; border: 1px solid #dee2e6; }
.receipt-actions .btn-print   { background: #f1f3f5; color: #212529; border: 1px solid #dee2e6; }

@media print {
    body { background: #fff; }
    header, footer, .receipt-actions { display: none !important; }
    .receipt { box-shadow: none; }
}

.admin-table th { font-size: 0.85rem; color: #495057; }
.admin-table td { font-size: 0.9rem; vertical-align: middle; }

.small-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; color: #6c757d; }
