/* ================================================================
   Buyer app — deep blue palette, premium consumer feel.
   Distinct from merchant (green) and rider (dark green) shells.
   ================================================================ */

/* --- header --- */
.buyer .bar {
    background: linear-gradient(135deg, #1B3A5C 0%, #0F2440 100%);
    box-shadow: 0 2px 12px rgba(15,36,64,.25);
}
.buyer .brand { color: #fff; }
.buyer .mark { color: rgba(255,255,255,.9); }
.buyer .bar nav a {
    color: rgba(255,255,255,.8);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.buyer .bar nav a:hover,
.buyer .bar nav a:focus {
    color: #fff;
    background: rgba(255,255,255,.12);
    text-decoration: none;
}
.buyer .bar .btn-link { color: rgba(255,255,255,.65); }
.buyer .bar .btn-link:hover { color: #fff; text-decoration: underline; }

/* --- cards --- */
.buyer .card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 2px 16px rgba(27,58,92,.07);
    margin-bottom: 20px;
    transition: box-shadow .2s, transform .2s;
}
.buyer .card:hover {
    box-shadow: 0 6px 28px rgba(27,58,92,.12);
    transform: translateY(-1px);
}

/* --- buttons --- */
.buyer .btn,
.buyer button:not(.btn-link):not(.chat-toggle):not(.star-btn):not(.chip) {
    min-height: 50px;
    font-size: 1.02rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform .1s, box-shadow .15s;
}
.buyer .btn:active,
.buyer button:not(.btn-link):active { transform: scale(.98); }

.buyer .btn-wide {
    background: linear-gradient(135deg, #1B3A5C, #264e78);
    color: #fff;
    border: none;
    width: 100%;
    cursor: pointer;
}
.buyer .btn-wide:hover {
    background: linear-gradient(135deg, #264e78, #1B3A5C);
    box-shadow: 0 4px 16px rgba(27,58,92,.2);
}

.buyer .btn-accent {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    border: none;
    cursor: pointer;
}
.buyer .btn-accent:hover {
    box-shadow: 0 4px 16px rgba(14,122,58,.25);
}

.buyer .btn-outline {
    background: transparent;
    color: #1B3A5C;
    border: 2px solid #1B3A5C;
    cursor: pointer;
}
.buyer .btn-outline:hover {
    background: #1B3A5C;
    color: #fff;
}

/* --- status pills --- */
.buyer .tag { border-radius: 20px; padding: 3px 14px; font-size: .82rem; font-weight: 600; display: inline-block; }
.buyer .tag-done { background: #e8f5e9; color: #2e7d32; }
.buyer .tag-wait { background: #fff3e0; color: #e65100; }
.buyer .tag-stop { background: #fbe9e7; color: #c62828; }
.buyer .tag-info { background: #e3f2fd; color: #1565c0; }

/* --- stat cards on dashboard --- */
.buyer .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.buyer .stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(27,58,92,.06);
    transition: transform .2s, box-shadow .2s;
}
.buyer .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(27,58,92,.1);
}
.buyer .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1B3A5C;
    line-height: 1.1;
}
.buyer .stat-label {
    font-size: .82rem;
    color: #6b7b8d;
    margin-top: 4px;
    font-weight: 500;
}

/* --- section headings --- */
.buyer .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 32px;
}
.buyer .section-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1B3A5C;
    margin: 0;
}
.buyer .section-head a {
    font-size: .88rem;
    color: #264e78;
    font-weight: 600;
}

/* --- order cards --- */
.buyer .order-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 8px rgba(27,58,92,.05);
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .2s, transform .15s;
    border-left: 4px solid #1B3A5C;
}
.buyer .order-card:hover {
    box-shadow: 0 4px 20px rgba(27,58,92,.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.buyer .order-card .order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.buyer .order-card .order-ref {
    font-family: monospace;
    font-weight: 700;
    font-size: .88rem;
    color: #1B3A5C;
}
.buyer .order-card .order-item {
    font-weight: 600;
    margin: 6px 0 4px;
}
.buyer .order-card .order-meta {
    font-size: .84rem;
    color: #6b7b8d;
}
.buyer .order-card .order-amount {
    font-weight: 700;
    color: #1B3A5C;
    font-size: 1rem;
}

/* delivered orders get green accent */
.buyer .order-card.done { border-left-color: var(--green); }
.buyer .order-card.bad  { border-left-color: #c62828; }

/* --- merchant cards --- */
.buyer .merchant-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 8px rgba(27,58,92,.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow .15s;
}
.buyer .merchant-card:hover { box-shadow: 0 4px 20px rgba(27,58,92,.1); }
.buyer .merchant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1B3A5C, #264e78);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}
.buyer .merchant-info { flex: 1; min-width: 0; }
.buyer .merchant-name { font-weight: 700; color: #1B3A5C; }
.buyer .merchant-meta { font-size: .82rem; color: #6b7b8d; }

.buyer .star-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: transform .15s;
    min-height: 0;
}
.buyer .star-btn:hover { transform: scale(1.2); }
.buyer .star-btn.active { color: #f59e0b; }
.buyer .star-btn:not(.active) { color: #cbd5e1; }

/* --- address cards --- */
.buyer .address-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(27,58,92,.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.buyer .address-label { font-weight: 700; color: #1B3A5C; }
.buyer .address-text { font-size: .88rem; color: #4a5568; margin-top: 2px; }
.buyer .address-default { font-size: .75rem; color: var(--green); font-weight: 600; }

/* --- timeline --- */
.buyer .timeline { position: relative; padding-left: 28px; }
.buyer .timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e2e8f0;
}
.buyer .timeline-item {
    position: relative;
    padding-bottom: 20px;
}
.buyer .timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1B3A5C;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #1B3A5C;
}
.buyer .timeline-item.current::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.buyer .timeline-time { font-size: .78rem; color: #6b7b8d; }
.buyer .timeline-label { font-weight: 600; color: #1B3A5C; }

/* --- dispute cards --- */
.buyer .dispute-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 8px rgba(27,58,92,.05);
    border-left: 4px solid #e65100;
}
.buyer .dispute-card.resolved { border-left-color: var(--green); }

/* --- request cards --- */
.buyer .request-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 8px rgba(27,58,92,.05);
    border-left: 4px solid #1565c0;
}
.buyer .request-card.accepted { border-left-color: var(--green); }
.buyer .request-card.declined { border-left-color: #c62828; }

/* --- forms --- */
.buyer .field { margin-bottom: 20px; }
.buyer .field label {
    display: block;
    font-weight: 600;
    color: #1B3A5C;
    margin-bottom: 6px;
    font-size: .92rem;
}
.buyer .field input,
.buyer .field textarea,
.buyer .field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.buyer .field input:focus,
.buyer .field textarea:focus,
.buyer .field select:focus {
    border-color: #1B3A5C;
    box-shadow: 0 0 0 3px rgba(27,58,92,.12);
    outline: none;
}
.buyer .hint { font-size: .82rem; color: #6b7b8d; margin-top: 4px; }
.buyer .lede { font-size: 1.05rem; color: #4a5568; margin-bottom: 24px; line-height: 1.5; }

/* --- alerts --- */
.buyer .note { background: #e3f2fd; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; color: #1565c0; }
.buyer .good { background: #e8f5e9; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; color: #2e7d32; }
.buyer .warn { background: #fff3e0; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; color: #e65100; }
.buyer .bad  { background: #fbe9e7; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; color: #c62828; }

/* --- welcome banner --- */
.buyer .welcome-banner {
    background: linear-gradient(135deg, #1B3A5C 0%, #264e78 50%, #1B3A5C 100%);
    border-radius: 20px;
    padding: 28px 24px;
    color: #fff;
    margin-bottom: 28px;
}
.buyer .welcome-banner h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.buyer .welcome-banner p {
    opacity: .85;
    margin: 0;
    font-size: .95rem;
}

/* --- empty state --- */
.buyer .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7b8d;
}
.buyer .empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.buyer .empty-state p { font-size: 1.05rem; margin: 0 0 16px; }

/* --- receipt block --- */
.buyer .receipt {
    border: 2px dashed #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
}
.buyer .receipt-row { display: flex; justify-content: space-between; padding: 6px 0; }
.buyer .receipt-row.total { border-top: 2px solid #1B3A5C; margin-top: 8px; padding-top: 12px; font-weight: 700; }

/* --- filters --- */
.buyer .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.buyer .chip {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: .84rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
    min-height: 0;
}
.buyer .chip:hover { border-color: #1B3A5C; color: #1B3A5C; text-decoration: none; }
.buyer .chip.active { background: #1B3A5C; color: #fff; border-color: #1B3A5C; }

/* --- notification items --- */
.buyer .notif-item {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.buyer .notif-item.unread { background: #f0f7ff; margin: 0 -20px; padding: 14px 20px; border-radius: 10px; }
.buyer .notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #1B3A5C; margin-top: 6px; flex-shrink: 0; }
.buyer .notif-body { flex: 1; }
.buyer .notif-time { font-size: .78rem; color: #6b7b8d; }

/* --- footer --- */
.buyer .foot { color: rgba(0,0,0,.35); text-align: center; }

/* --- utility classes (CSP: no inline style= allowed) --- */
.buyer .row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.buyer a.stat-card { text-decoration: none; color: inherit; }
.buyer .stat-icon { font-size: 1.6rem; }
.buyer .back-link { color: #264e78; font-weight: 600; }
.buyer .detail-item { font-size: 1.15rem; }
.buyer .detail-ref { font-size: 1.1rem; }
.buyer .cta-block { display: block; text-align: center; text-decoration: none; padding: 14px; margin-bottom: 20px; }
.buyer .cta-inline { display: inline-block; text-align: center; text-decoration: none; padding: 12px; max-width: 200px; }
.buyer .cta-wide { display: inline-block; text-align: center; text-decoration: none; max-width: 280px; }
.buyer .cta-primary { background: #1B3A5C; color: #fff; }
.buyer .success-card { text-align: center; padding: 40px 24px; }
.buyer .success-icon { font-size: 3rem; margin-bottom: 16px; }
.buyer .success-card h1 { margin: 0 0 8px; }
.buyer .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.buyer .separator { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
.buyer .separator-lg { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.buyer .detail-muted { font-size: .92rem; color: #4a5568; }
.buyer .detail-muted-sm { font-size: .88rem; color: #4a5568; }
.buyer .resolution-label { font-size: .82rem; color: var(--green); }
.buyer .resolution-label-dark { font-size: .85rem; }
.buyer .notif-title { font-weight: 600; margin-bottom: 2px; }
.buyer .notif-text { font-size: .9rem; color: #4a5568; }
.buyer .card-flush { padding: 0 20px; }
.buyer .btn-delete { color: #c62828; font-size: .85rem; }
.buyer .otp-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.buyer .original-order { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.buyer .buyer-note-block { margin-top: 8px; padding: 10px 14px; background: #f8fafc; border-radius: 8px; font-size: .9rem; }
.buyer .tracking-link { display: block; text-align: center; text-decoration: none; margin-top: 16px; padding: 14px; background: #f8fafc; color: #1B3A5C; border: 2px solid #e2e8f0; border-radius: 12px; }
.buyer .dispute-cta-link { display: block; text-align: center; text-decoration: none; }
.buyer h2.flush { margin-top: 0; }
.buyer .mb-0 { margin-bottom: 0; }
.buyer .mb-xs { margin-bottom: 4px; }
.buyer .mb-m { margin-bottom: 16px; }
.buyer .mb-l { margin-bottom: 20px; }
.buyer .mb-xl { margin-bottom: 24px; }
.buyer .mt-xs { margin-top: 4px; }
.buyer .mt-m { margin-top: 16px; }
.buyer .mt-hint { margin-top: 8px; }
.buyer .dispute-ref { font-weight: 700; color: #1B3A5C; }
.buyer .request-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.buyer .request-action { flex: 1; }
.buyer .btn-accept { width: 100%; background: var(--green); color: #fff; border: none; cursor: pointer; }
.buyer .btn-decline-order { width: 100%; background: #fff; color: #c62828; border: 2px solid #c62828; cursor: pointer; }
.buyer .meta-note { margin-top: 8px; font-size: .85rem; color: #4a5568; }
.buyer .order-section { margin-bottom: 20px; }
.buyer .inline-form { display: inline; }
.buyer .hint-mb { margin-bottom: 12px; }
.buyer .request-sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.buyer .btn-sm-accent { display: inline-block; padding: 8px 20px; font-size: .88rem; text-decoration: none; border-radius: 10px; color: #fff; }
.buyer .mb-hint { margin-bottom: 6px; }

/* --- confirmation code display --- */
.buyer .code-card { text-align: center; }
.buyer .otp-display {
    font-family: monospace;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: .35em;
    color: #1B3A5C;
    padding: 20px 16px;
    margin: 16px 0;
    background: #f0f7ff;
    border-radius: 14px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: all;
    transition: background .15s;
}
.buyer .otp-display.otp-visible { background: #e8f5e9; }
.buyer .otp-hidden { font-family: inherit; font-size: 1rem; font-weight: 600; color: #6b7b8d; letter-spacing: normal; }

/* --- rider card --- */
.buyer .rider-card {
    display: flex;
    align-items: center;
    gap: 16px;
}
.buyer .rider-avatar {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 14px;
    flex-shrink: 0;
}
.buyer .rider-info { flex: 1; min-width: 0; }
.buyer .rider-info strong { display: block; color: #1B3A5C; font-size: 1.05rem; }
.buyer .badge {
    display: inline-block;
    background: #c62828;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 2px 7px;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- photo grid --- */
.buyer .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.buyer .photo-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27,58,92,.08);
}
.buyer .photo-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.buyer .photo-item figcaption { padding: 8px 10px; background: #fff; }

/* --- rating stars (interactive) --- */
.buyer .stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.buyer .stars .star-btn { font-size: 2rem; color: #cbd5e1; transition: color .1s, transform .1s; }
.buyer .stars .star-btn.on { color: #f59e0b; }
.buyer .stars .star-btn:hover { transform: scale(1.15); }
.buyer .mt-s { margin-top: 8px; }

/* --- tip chips --- */
.buyer .tip-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.buyer .tip-chip {
    padding: 10px 22px;
    border-radius: 20px;
    font-size: .95rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #1B3A5C;
    cursor: pointer;
    transition: all .15s;
    min-height: 0;
}
.buyer .tip-chip:hover { border-color: var(--green); color: var(--green); }
.buyer .tip-chip.on { background: var(--green); color: #fff; border-color: var(--green); }

/* --- cancel / delete buttons --- */
.buyer .btn-delete {
    background: #fff;
    color: #c62828;
    border: 2px solid #c62828;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
}
.buyer .btn-delete:hover { background: #c62828; color: #fff; }

/* --- order actions row --- */
.buyer .order-actions { margin-bottom: 8px; }

/* --- share section --- */
.buyer .share-section { margin-top: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }

/* --- chat --- */
.buyer .chat-container {
    min-height: 280px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.buyer .chat-empty { text-align: center; padding: 40px 16px; }
.buyer .chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    word-break: break-word;
}
.buyer .chat-mine {
    align-self: flex-end;
    background: #1B3A5C;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.buyer .chat-theirs {
    align-self: flex-start;
    background: #fff;
    color: #2d3748;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.buyer .chat-sender { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; opacity: .7; }
.buyer .chat-body { font-size: .95rem; line-height: 1.4; }
.buyer .chat-time { font-size: .72rem; margin-top: 4px; opacity: .55; }
.buyer .chat-form { position: sticky; bottom: 0; background: #fff; padding: 12px 0; }
.buyer .chat-input-row { display: flex; gap: 8px; }
.buyer .chat-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
}
.buyer .chat-input:focus { border-color: #1B3A5C; outline: none; box-shadow: 0 0 0 3px rgba(27,58,92,.12); }
.buyer .chat-send { min-width: 80px; }

/* --- notification preferences --- */
.buyer .pref-channels {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.buyer .toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .92rem;
    color: #2d3748;
}
.buyer .toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1B3A5C;
    cursor: pointer;
}
.buyer .toggle-text { font-weight: 500; }

/* --- delete account --- */
.buyer .delete-list {
    padding-left: 20px;
    margin: 12px 0 16px;
    line-height: 1.8;
    color: #4a5568;
}

/* --- receipt page (print-friendly) --- */
.buyer .receipt-page { max-width: 600px; margin: 0 auto; }
.buyer .receipt-header { text-align: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #1B3A5C; }
.buyer .receipt-header h1 { margin: 0 0 4px; color: #1B3A5C; }
.buyer .receipt-section { padding: 8px 0; margin-bottom: 8px; border-bottom: 1px dashed #e2e8f0; }
.buyer .receipt-footer { text-align: center; margin-top: 24px; padding-top: 16px; border-top: 2px solid #1B3A5C; }

@media print {
    .buyer .bar, .buyer .foot, .buyer .back-link, #print-btn { display: none; }
    .buyer .card { box-shadow: none; border: 1px solid #ccc; }
}

/* --- flash messages --- */
.buyer .flash {
    max-width: 720px; margin: 16px auto 0; padding: 14px 20px;
    border-radius: 10px; font-weight: 600; font-size: .95rem;
    transition: opacity .4s ease;
}
.buyer .flash-error {
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}
.buyer .flash-note {
    background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}

/* --- install + push banners --- */
.buyer .install-banner,
.buyer .push-banner {
    max-width: 720px; margin: 12px auto 0; padding: 14px 20px;
    background: #eef4fa; border: 1px solid #c8d9eb; border-radius: 10px;
    display: flex; align-items: center; gap: 12px; font-size: .9rem;
}
.buyer .install-banner p,
.buyer .push-banner p { flex: 1; margin: 0; color: #334155; }
.buyer .btn-sm {
    padding: 8px 16px; font-size: .85rem; border-radius: 8px;
    font-weight: 600; border: none; cursor: pointer;
}
.buyer .btn-accent.btn-sm {
    background: linear-gradient(135deg, #1B3A5C, #143050); color: #fff;
}
.buyer .btn-accent.btn-sm:hover { background: linear-gradient(135deg, #143050, #0F2440); }

/* --- TOTP setup --- */
.buyer .totp-secret {
    font-family: 'Courier New', Courier, monospace; font-size: 1.4rem;
    letter-spacing: .25em; text-align: center; padding: 20px;
    background: #f1f5f9; border: 2px dashed #cbd5e1; border-radius: 12px;
    color: #1e293b; font-weight: 700; margin: 16px 0;
    user-select: all; word-break: break-all;
}
.buyer .good {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    padding: 16px 20px; color: #166534;
}
.buyer .good p { margin: 0; }

/* --- VoIP call button --- */
.buyer .call-btn {
    position: fixed; bottom: 90px; right: 16px; z-index: 900;
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, #1B3A5C, #143050); color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(27, 58, 92, .35);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.buyer .call-btn:hover {
    background: linear-gradient(135deg, #143050, #0F2440);
    box-shadow: 0 6px 18px rgba(27, 58, 92, .45);
}
.buyer .call-btn:active { transform: scale(.92); }
.buyer .call-btn:focus-visible { outline: 3px solid rgba(27, 58, 92, .45); outline-offset: 3px; }

.buyer .call-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, .65);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.buyer .call-overlay[hidden] { display: none; }
.buyer .call-card {
    background: #fff; border-radius: 20px; padding: 36px 28px;
    text-align: center; max-width: 340px; width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.buyer .call-status { font-size: 1.1rem; font-weight: 700; color: #1B3A5C; margin-bottom: 8px; }
.buyer .call-timer {
    font-size: 2.2rem; font-weight: 800; color: #1B3A5C;
    font-variant-numeric: tabular-nums; margin-bottom: 20px;
}
.buyer .call-actions { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.buyer .call-hangup {
    width: 60px; height: 60px; border-radius: 50%; border: none;
    background: #dc2626; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.buyer .call-hangup:hover { background: #b91c1c; }
.buyer .call-fallback {
    margin-top: 16px; padding: 12px; border-radius: 10px;
    background: #fef3c7; color: #92400e; font-size: .9rem;
}

/* --- payment history --- */
.buyer .payment-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    padding: 16px 20px; background: #fff; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 10px;
    transition: box-shadow .15s, transform .15s;
}
.buyer .payment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-1px);
}
.buyer .payment-info { flex: 1; min-width: 200px; }
.buyer .payment-ref { font-family: monospace; font-weight: 600; color: #1B3A5C; }
.buyer .payment-merchant { color: #64748b; font-size: .9rem; }
.buyer .payment-amount { font-weight: 700; font-size: 1.1rem; color: #1e293b; }
.buyer .payment-date { color: #94a3b8; font-size: .85rem; }

/* --- quick links grid --- */
.buyer .quick-links {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px; margin-top: 16px;
}
.buyer .quick-link {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; background: #fff; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); color: #1B3A5C;
    text-decoration: none; font-weight: 600; font-size: .9rem;
    transition: box-shadow .15s, transform .15s;
}
.buyer .quick-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px);
}
.buyer .quick-link-icon { font-size: 1.3rem; flex-shrink: 0; }

/* --- rider card in order detail --- */
.buyer .rider-card {
    display: flex; align-items: center; gap: 14px; padding: 16px 0;
}
.buyer .rider-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #1B3A5C, #2d5a8e); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.buyer .rider-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.buyer .rider-info { flex: 1; }
.buyer .rider-name { font-weight: 700; color: #1e293b; }
.buyer .rider-vehicle { font-size: .9rem; color: #64748b; }

/* --- dispute open form --- */
.buyer .dispute-promise {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 16px 20px; margin-bottom: 16px; color: #475569; font-size: .95rem;
}

/* --- settings extras --- */
.buyer .setting-links {
    display: flex; flex-direction: column; gap: 6px; margin: 16px 0;
}
.buyer .setting-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: #fff; border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06); text-decoration: none;
    color: #1e293b; font-weight: 600; transition: box-shadow .15s;
}
.buyer .setting-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.buyer .setting-link .arrow { color: #94a3b8; font-size: 1.2rem; }
.buyer .totp-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: .8rem; font-weight: 600;
}
.buyer .totp-badge.active { background: #dcfce7; color: #166534; }
.buyer .totp-badge.inactive { background: #f1f5f9; color: #64748b; }

/* --- receipt links (settings navigation) --- */
.buyer .receipt-link {
    display: flex;
    text-decoration: none;
    color: #1B3A5C;
    transition: background .15s;
    padding: 8px 0;
}
.buyer .receipt-link:hover { background: #f0f7ff; }
.buyer .receipt-link span:last-child { color: #94a3b8; }

/* --- VoIP widget inline (order detail rider card) --- */
.buyer .voip-widget { display: inline-flex; align-items: center; }

/* --- responsive --- */
@media (max-width: 600px) {
    .buyer .bar nav { gap: 2px; }
    .buyer .bar nav a { padding: 6px 8px; font-size: .82rem; }
    .buyer .stats { grid-template-columns: repeat(2, 1fr); }
    .buyer .welcome-banner { padding: 20px 18px; }
    .buyer .welcome-banner h1 { font-size: 1.25rem; }
    .buyer .quick-links { grid-template-columns: repeat(2, 1fr); }
    .buyer .call-btn { bottom: 80px; right: 12px; }
    .buyer .payment-card { flex-direction: column; align-items: flex-start; }
    .buyer .install-banner, .buyer .push-banner { flex-direction: column; text-align: center; }
}
