/* ============================================================
   BundleOW — Main Stylesheet
   Matches the design from the reference image.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #007A3D;   /* MTN green / brand */
    --accent:       #FFC107;   /* gold */
    --bg:           #F4F6F8;
    --surface:      #FFFFFF;
    --border:       #E2E6EA;
    --text:         #1A1A2E;
    --text-muted:   #6B7280;
    --success:      #16A34A;
    --danger:       #DC2626;
    --radius:       14px;
    --radius-sm:    8px;
    --shadow:       0 2px 12px rgba(0,0,0,.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,.14);
    --transition:   .2s ease;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; }

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { font-size: 1.5rem; }
.logo-text  { font-size: 1.25rem; font-weight: 800; letter-spacing: -.5px; }
.header-tagline { font-size: .75rem; opacity: .8; }

/* ── Main layout ──────────────────────────────────────────── */
main {
    flex: 1;
    padding: 24px 16px 48px;
}

.section-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ── Network cards ────────────────────────────────────────── */
.network-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.network-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 6px;
    background: var(--card-bg, #fff);
    color: var(--card-color, #333);
    border: 2px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
    box-shadow: var(--shadow);
    font-family: inherit;
    white-space: nowrap;
}

.network-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.network-card.active {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.net-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.net-name {
    font-size: .75rem;
    font-weight: 600;
    text-align: left;
    line-height: 1;
}

/* ── Bundle section ───────────────────────────────────────── */
.bundle-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 16px 24px;
    box-shadow: var(--shadow);
    animation: fadeIn .3s ease;
}

.bundle-section-label {
    font-size: .9rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 360px) {
    .bundle-grid { grid-template-columns: repeat(2, 1fr); }
}

.bundle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 8px;
    background: #F9FAFB;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    font-family: inherit;
}

.bundle-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.bundle-card:active {
    transform: scale(.97);
}

.bundle-size {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.bundle-price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--success);
}

.bundle-network-tag {
    font-size: .6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 2px;
    color: #333;
    background: var(--accent); /* default / MTN */
}

/* AirtelTigo — blue */
.bundle-network-tag[data-net="airteltigo"] {
    background: #0077C8;
    color: #fff;
}

/* Telecel — red */
.bundle-network-tag[data-net="telecel"] {
    background: #CC0000;
    color: #fff;
}

/* MTN price — gold/green (default already set) */

.no-bundles {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    padding: 24px 0;
    font-size: .9rem;
}

/* ── Loading skeleton (while AJAX refreshes) ──────────────── */
.skeleton {
    background: linear-gradient(90deg, #e8eaed 25%, #f4f6f8 50%, #e8eaed 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: var(--radius-sm);
    min-height: 80px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Modal overlay ────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: fadeIn .2s ease;
}

.modal-overlay.open {
    display: flex;
}

@media (min-width: 500px) {
    .modal-overlay { align-items: center; padding: 16px; }
}

.modal {
    background: var(--surface);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 28px 20px 32px;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: slideUp .25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 500px) {
    .modal { border-radius: var(--radius); animation: scaleIn .2s ease; }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(.95); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0 4px;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.modal-bundle-summary {
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.summary-size  { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.summary-price { font-size: 1.1rem; font-weight: 700; color: var(--success); }
.summary-net   { font-size: .7rem; font-weight: 600; background: var(--accent); color: #333; padding: 2px 10px; border-radius: 20px; }

/* ── Form ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,122,61,.12);
}

.form-group small {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-pay {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    font-family: inherit;
    margin-top: 4px;
}

.btn-pay:hover  { background: #005f2f; }
.btn-pay:active { transform: scale(.98); }

.modal-note {
    text-align: center;
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: opacity .5s ease, transform .5s ease, margin .4s ease, padding .4s ease, max-height .4s ease;
    max-height: 100px;
    overflow: hidden;
}

.alert.alert-hiding {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.alert-success { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.alert-error   { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }

/* ── Result page (callback) ───────────────────────────────── */
.result-card {
    max-width: 480px;
    margin: 48px auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    text-align: center;
}

.result-success { border-top: 5px solid var(--success); }
.result-failure { border-top: 5px solid var(--danger); }

.result-icon  { font-size: 3rem; margin-bottom: 12px; }
.result-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.result-message { font-size: .95rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }

.result-details {
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 20px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }
.detail-row span  { color: var(--text-muted); }
.detail-row strong { color: var(--text); font-weight: 600; }

.result-note { font-size: .78rem; color: var(--text-muted); margin-bottom: 24px; }

.btn-back {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background var(--transition);
}

.btn-back:hover { background: #005f2f; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ── Track Order link (header) ────────────────────────────── */
.track-link {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    background: rgba(255,255,255,.15);
    padding: 6px 12px;
    border-radius: 20px;
    transition: background var(--transition);
    white-space: nowrap;
}

.track-link:hover {
    background: rgba(255,255,255,.28);
    color: #fff;
}

/* ── Track Order page ─────────────────────────────────────── */
.track-card {
    max-width: 480px;
    margin: 36px auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 24px 36px;
    box-shadow: var(--shadow);
}

.track-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.track-subtitle {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.track-form { margin-bottom: 20px; }

.track-input-wrap {
    display: flex;
    gap: 8px;
}

.track-input-wrap input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 0;
}

.track-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,122,61,.12);
}

.track-input-wrap button {
    padding: 11px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition);
    white-space: nowrap;
}

.track-input-wrap button:hover { background: #005f2f; }

.track-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.5;
}

.track-result--success {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.track-result--error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

.track-result-icon { font-size: 1.1rem; flex-shrink: 0; }
.track-result-label { font-weight: 700; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    background: #F1F3F5;
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 8px 6px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.tab-btn:hover { color: var(--text); }

.tab-btn--active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
}

.tab-count {
    background: var(--primary);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

.tab-btn--active .tab-count { background: var(--primary); }

/* ── Tab panels ───────────────────────────────────────────── */
.tab-panel        { display: none; }
.tab-panel--active { display: block; animation: fadeIn .2s ease; }

/* ── Order list ───────────────────────────────────────────── */
.orders-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: .88rem;
    padding: 32px 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-row {
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-size {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.order-net {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--border);
    padding: 2px 8px;
    border-radius: 20px;
}

.order-badge {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}

.order-badge--ok      { background: #DCFCE7; color: #15803D; }
.order-badge--fail    { background: #FEE2E2; color: #B91C1C; }
.order-badge--pending { background: #FEF9C3; color: #854D0E; }

.order-row-meta {
    display: flex;
    gap: 12px;
    font-size: .78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.order-time { margin-left: auto; }

.order-ref {
    font-size: .68rem;
    color: #9CA3AF;
    font-family: monospace;
    word-break: break-all;
}

/* ── Admin portal link (footer) ───────────────────────────── */
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-portal-link {
    font-size: .7rem;
    color: #C4C9D4;
    text-decoration: none;
    transition: color .2s;
}

.admin-portal-link:hover { color: var(--text-muted); }

/* ── Confirm number modal ─────────────────────────────────── */
.confirm-intro {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.confirm-intro strong { color: var(--danger, #DC2626); }

.confirm-details {
    background: #F9FAFB;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: .85rem;
    border-bottom: 1px solid var(--border);
}

.confirm-row:last-child { border-bottom: none; }
.confirm-row span  { color: var(--text-muted); }
.confirm-row strong { color: var(--text); font-weight: 700; }

.confirm-number {
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-edit {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.btn-edit:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
}

/* ── Receipt ──────────────────────────────────────────────── */
.receipt {
    max-width: 400px;
    margin: 32px auto 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    overflow: hidden;
}

.receipt-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 20px 20px;
}

.receipt-net-badge {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.receipt-header-text { flex: 1; }
.receipt-brand { font-size: 1rem; font-weight: 800; }
.receipt-label { font-size: .72rem; font-weight: 500; }

.receipt-check {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.receipt-bundle-hero {
    text-align: center;
    padding: 24px 20px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.receipt-bundle-size {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.receipt-bundle-net {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt-success-msg {
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
    margin: 10px 0 2px;
}

.receipt-phone {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 16px;
}

/* Ticket tear divider */
.receipt-divider {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 -1px;
}

.receipt-notch {
    width: 20px;
    height: 20px;
    background: var(--bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.receipt-notch--left  { margin-left: -10px; }
.receipt-notch--right { margin-right: -10px; }

.receipt-dashes {
    flex: 1;
    border-top: 2px dashed var(--border);
    margin: 0 4px;
}

/* Receipt rows */
.receipt-rows {
    padding: 16px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .82rem;
    border-bottom: 1px dashed var(--border);
}

.receipt-row:last-child { border-bottom: none; }
.receipt-row span  { color: var(--text-muted); }
.receipt-row strong { font-weight: 700; color: var(--text); text-align: right; max-width: 60%; word-break: break-all; }

.receipt-ref { font-size: .7rem; font-family: monospace; }

.receipt-footer-note {
    text-align: center;
    font-size: .72rem;
    color: var(--text-muted);
    padding: 10px 20px 4px;
}

.receipt-footer-brand {
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    color: #C4C9D4;
    padding: 0 20px 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Action buttons below receipt */
.receipt-actions {
    max-width: 400px;
    margin: 16px auto 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-receipt-action {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn-receipt-action:active { transform: scale(.98); }

.btn-receipt-print {
    background: var(--primary);
    color: #fff;
}
.btn-receipt-print:hover { background: #005f2f; }

.btn-receipt-back {
    background: #F3F4F6;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-receipt-back:hover { background: var(--border); }

/* ── Print styles ─────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }

    body { background: #fff; }

    .receipt {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .receipt-notch { background: #fff; }
}

/* ── Datamart live order status card ──────────────────────── */
.dm-order-card {
    background: #F9FAFB;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 16px;
}

.dm-order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 10px;
    gap: 10px;
}

.dm-order-size {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.dm-order-net {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 3px;
}

/* Live status badge */
.dm-status-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.dm-status--completed  { background: #DCFCE7; color: #15803D; }
.dm-status--processing { background: #DBEAFE; color: #1D4ED8; }
.dm-status--pending    { background: #FEF9C3; color: #854D0E; }
.dm-status--failed     { background: #FEE2E2; color: #B91C1C; }
.dm-status--refunded   { background: #F3E8FF; color: #6B21A8; }

/* Status description strip */
.dm-status-desc {
    font-size: .8rem;
    font-weight: 500;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.dm-status-desc.dm-status--completed  { background: #F0FDF4; color: #15803D; }
.dm-status-desc.dm-status--processing { background: #EFF6FF; color: #1D4ED8; }
.dm-status-desc.dm-status--pending    { background: #FEFCE8; color: #854D0E; }
.dm-status-desc.dm-status--failed     { background: #FFF1F2; color: #B91C1C; }
.dm-status-desc.dm-status--refunded   { background: #FAF5FF; color: #6B21A8; }

/* Detail rows */
.dm-order-details {
    padding: 4px 0 8px;
}

.dm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 16px;
    font-size: .82rem;
    border-bottom: 1px solid #F3F4F6;
}

.dm-detail-row:last-child { border-bottom: none; }
.dm-detail-row span   { color: var(--text-muted); }
.dm-detail-row strong { font-weight: 600; color: var(--text); text-align: right; max-width: 60%; word-break: break-all; }

.dm-mono { font-family: monospace; font-size: .75rem; }

/* ── Track: found orders label ────────────────────────────── */
.track-found-label {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 16px 0 10px;
}

.track-found-label strong { color: var(--text); }

/* ── Contact bar ──────────────────────────────────────────── */
.contact-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}

.contact-btn:hover  { opacity: .88; transform: translateY(-1px); }
.contact-btn:active { transform: scale(.97); }

.contact-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.contact-btn--call {
    background: #1A1A1A;
    color: #fff;
}
