/* Thai Charm — Tra cứu đơn (editorial sync landing/shop) */

:root {
  --primary: var(--gold);
  --primary2: var(--terracotta);
  --accent: var(--gold-soft);
  --gold2: oklch(78% 0.1 78);
  --bg: var(--bg-deep);
  --card: var(--bg-raised);
  --border: var(--border);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --track-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --track-ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes trackFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes trackPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}
@keyframes trackOrb {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 8px oklch(72% 0.14 75 / 0.06), 0 8px 28px oklch(52% 0.14 38 / 0.2); }
  50% { box-shadow: 0 0 0 10px oklch(72% 0.14 75 / 0.1), 0 12px 36px oklch(52% 0.14 38 / 0.28); }
}
@keyframes statusHeroIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes tlRipple {
  0% { transform: scale(0.85); opacity: 0.85; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes statusHeroConfirmedPing {
  0% { box-shadow: 0 0 0 0 oklch(62% 0.12 155 / 0.4), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  70% { box-shadow: 0 0 0 14px oklch(62% 0.12 155 / 0), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px oklch(8% 0.02 40 / 0.35); }
}
@keyframes statusHeroPendingPing {
  0% { box-shadow: 0 0 0 0 oklch(70% 0.12 68 / 0.45), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  70% { box-shadow: 0 0 0 14px oklch(70% 0.12 68 / 0), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px oklch(8% 0.02 40 / 0.35); }
}
@keyframes statusHeroProcessingPing {
  0% { box-shadow: 0 0 0 0 oklch(65% 0.1 72 / 0.4), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  70% { box-shadow: 0 0 0 14px oklch(65% 0.1 72 / 0), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px oklch(8% 0.02 40 / 0.35); }
}
@keyframes statusHeroShippedPing {
  0% { box-shadow: 0 0 0 0 oklch(72% 0.14 75 / 0.4), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  70% { box-shadow: 0 0 0 14px oklch(72% 0.14 75 / 0), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px oklch(8% 0.02 40 / 0.35); }
}
@keyframes statusHeroCompletedPing {
  0% { box-shadow: 0 0 0 0 oklch(62% 0.12 155 / 0.45), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  70% { box-shadow: 0 0 0 14px oklch(62% 0.12 155 / 0), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px oklch(8% 0.02 40 / 0.35); }
}
@keyframes statusHeroCancelledPing {
  0% { box-shadow: 0 0 0 0 oklch(58% 0.16 25 / 0.4), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  70% { box-shadow: 0 0 0 14px oklch(58% 0.16 25 / 0), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px oklch(8% 0.02 40 / 0.35); }
}
@keyframes statusHeroRefundedPing {
  0% { box-shadow: 0 0 0 0 oklch(58% 0.12 340 / 0.35), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  70% { box-shadow: 0 0 0 14px oklch(58% 0.12 340 / 0), 0 12px 32px oklch(8% 0.02 40 / 0.35); }
  100% { box-shadow: 0 0 0 0 transparent, 0 12px 32px oklch(8% 0.02 40 / 0.35); }
}
@keyframes tlActiveGlow {
  0%, 100% { box-shadow: 0 4px 18px oklch(70% 0.12 68 / 0.35), 0 0 0 3px oklch(70% 0.12 68 / 0.12); }
  50% { box-shadow: 0 8px 26px oklch(70% 0.12 68 / 0.45), 0 0 0 5px oklch(70% 0.12 68 / 0.06); }
}
@keyframes tlDoneGlow {
  0%, 100% { box-shadow: 0 4px 16px oklch(62% 0.12 155 / 0.32); }
  50% { box-shadow: 0 8px 24px oklch(62% 0.12 155 / 0.42); }
}

/* CERTIFICATE RESULT */
.rc{width:100%;max-width:460px;margin: 0 auto;border-radius:18px;overflow:hidden;background:var(--card);border:1px solid var(--border);backdrop-filter:blur(16px);box-shadow:0 30px 60px rgba(0,0,0,.6),0 0 0 1px rgba(201,168,76,.2)}
.rc-valid-hdr{background:linear-gradient(135deg,rgba(16,185,129,0.15),rgba(16,185,129,0.05));padding:22px 20px;display:flex;align-items:center;gap:14px;border-bottom:1px solid rgba(16,185,129,0.2)}
.valid-icon{width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,rgba(16,185,129,0.2),rgba(52,211,153,0.1));border:1px solid rgba(16,185,129,0.4);display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;box-shadow:0 4px 14px rgba(16,185,129,.2)}
.valid-text h2{font-family:var(--font-display),serif;font-size:18px;font-weight:700;color:var(--success); margin-bottom:0;}
.valid-text p{font-size:11px;color:var(--muted);margin-top:3px;}
.rc-serial-bar{background:linear-gradient(90deg,transparent,rgba(201,168,76,0.15),transparent);padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,0.05)}
.rc-serial-bar span{font-size:10px;font-weight:800;letter-spacing:1.8px;color:var(--gold)}
.rc-body{padding:18px 16px}
.rc-shop{display:flex;align-items:center;gap:11px;background:rgba(255,255,255,0.03);border:1px solid rgba(201,168,76,.2);border-radius:10px;padding:12px;margin-bottom:16px}
.rc-sav{width:42px;height:42px;border-radius:50%;border:2px solid rgba(201,168,76,.5);background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;overflow:hidden}
.rc-sav img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.rc-snm{font-family:var(--font-display),serif;font-size:15px;font-weight:700;color:var(--gold)}
.rc-stp{font-size:10px;color:var(--muted);margin-top:2px}
.rc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.rc-cell{background:oklch(22% 0.03 52 / 0.6);border-radius:var(--radius-md);padding:12px;border:1px solid var(--border)}
.rc-cell .l{font-size:9px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.rc-cell .v{font-size:13px;font-weight:700;color:var(--text-primary)}
.spill{display:inline-flex;padding:2px 9px;border-radius:20px;font-size:10px;font-weight:800;background:rgba(16,185,129,0.15);color:var(--success);border:1px solid rgba(16,185,129,0.3)}
.spill.w{background:rgba(245,158,11,0.15);color:var(--warning);border-color:rgba(245,158,11,0.3)}
.cert-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,rgba(201,168,76,.2),rgba(201,168,76,.1));border:1px solid rgba(201,168,76,.5);color:var(--gold);font-size:14px;font-weight:800;padding:14px;border-radius:12px;text-decoration:none;margin-top:8px;transition:all .2s;box-shadow:0 4px 15px rgba(201,168,76,.15);letter-spacing:.5px}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font-body), sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px;
}
/* Premium animated background */
.bg-blob {
    position: fixed; top:0; left:0; right:0; bottom:0; z-index:0;
    background:
        radial-gradient(ellipse 75% 55% at 18% -8%, oklch(52% 0.14 38 / 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 82% 8%, oklch(72% 0.14 75 / 0.35), transparent 55%),
        radial-gradient(ellipse 65% 45% at 50% 100%, oklch(65% 0.1 72 / 0.3), transparent 50%),
        radial-gradient(ellipse 90% 60% at 50% 40%, oklch(18% 0.03 50 / 0.9), transparent),
        var(--bg-deep);
    animation: trackOrb 18s var(--track-ease) infinite;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px 40px; position: relative; z-index:1; animation: trackFadeUp 0.55s var(--track-ease) both; }

/* Header */
.page-header { text-align: center; padding: 36px 0 32px; }
.logo-circle {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, oklch(52% 0.14 38 / 0.35), oklch(72% 0.14 75 / 0.35));
    border: 1.5px solid oklch(72% 0.14 75 / 0.35); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 18px;
    box-shadow: 0 0 0 8px oklch(72% 0.14 75 / 0.35), 0 8px 32px oklch(52% 0.14 38 / 0.35);
    animation: glow 4s ease-in-out infinite;
}
.logo-circle i {
    font-size: 28px;
    color: rgba(255,255,255,0.92);
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}
.page-header p { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 0.3px; }

/* Alert box */
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 24px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.alert-danger  { background: rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.2); color: #fca5a5; }
.alert-success { background: rgba(52,211,153,.08); border:1px solid rgba(52,211,153,.2); color: var(--success); }

/* Status Hero */
.status-hero {
    border-radius: 24px; padding: 32px 24px 28px;
    background: linear-gradient(160deg, rgba(34, 28, 52, 0.94), rgba(20, 18, 34, 0.95));
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    backdrop-filter: blur(24px); margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.08);
}
.status-icon-big {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    font-size: 46px;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
    animation: statusHeroIconFloat 3.2s ease-in-out infinite;
}
.status-icon-big > i {
    font-size: 42px;
    line-height: 1;
    color: rgba(248, 250, 252, 0.98);
    --fa-animation-duration: 1.35s;
    --fa-beat-scale: 1.15;
    --fa-fade-opacity: 0.55;
}
.status-hero--confirmed .status-icon-big > i {
    color: #022c22;
}
.status-hero--pending .status-icon-big > i {
    color: #422006;
}
.status-hero--processing .status-icon-big > i {
    color: #082f49;
}
.status-hero--shipped .status-icon-big > i {
    color: #3b0764;
}
.status-hero--completed .status-icon-big > i {
    color: #14532d;
}
.status-hero--cancelled .status-icon-big > i {
    color: #450a0a;
}
.status-hero--refunded .status-icon-big > i {
    color: #500724;
}
.status-hero--confirmed .status-icon-big {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.38), oklch(65% 0.1 72 / 0.3));
    border-color: rgba(165, 243, 252, 0.55);
    animation:
        statusHeroIconFloat 3.2s ease-in-out infinite,
        statusHeroConfirmedPing 2.5s ease-out infinite;
}
.status-label {
    font-family: var(--font-display), serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}
.status-hero--confirmed .status-label {
    
}
.status-hero--pending .status-icon-big {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.4), rgba(245, 158, 11, 0.24));
    border-color: rgba(253, 224, 71, 0.52);
    animation:
        statusHeroIconFloat 3.2s ease-in-out infinite,
        statusHeroPendingPing 2.65s ease-out infinite;
}
.status-hero--pending .status-label {
    
}
.status-hero--processing .status-icon-big {
    background: linear-gradient(145deg, oklch(65% 0.1 72 / 0.3), rgba(14, 165, 233, 0.2));
    border-color: rgba(125, 211, 252, 0.52);
    animation:
        statusHeroIconFloat 3.2s ease-in-out infinite,
        statusHeroProcessingPing 2.55s ease-out infinite;
}
.status-hero--processing .status-icon-big > i {
    --fa-animation-duration: 2.4s;
}
.status-hero--processing .status-label {
    
}
.status-hero--shipped .status-icon-big {
    background: linear-gradient(145deg, oklch(72% 0.14 75 / 0.35), oklch(52% 0.14 38 / 0.35));
    border-color: rgba(216, 180, 254, 0.48);
    animation:
        statusHeroIconFloat 3.2s ease-in-out infinite,
        statusHeroShippedPing 2.55s ease-out infinite;
}
.status-hero--shipped .status-label {
    
}
.status-hero--completed .status-icon-big {
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.42), rgba(201, 168, 76, 0.28));
    border-color: rgba(167, 243, 208, 0.55);
    animation:
        statusHeroIconFloat 3.2s ease-in-out infinite,
        statusHeroCompletedPing 2.6s ease-out infinite;
}
.status-hero--completed .status-label {
    
}
.status-hero--cancelled .status-icon-big {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.38), rgba(185, 28, 28, 0.22));
    border-color: rgba(254, 202, 202, 0.45);
    animation:
        statusHeroIconFloat 3.2s ease-in-out infinite,
        statusHeroCancelledPing 2.5s ease-out infinite;
}
.status-hero--cancelled .status-label {
    
}
.status-hero--refunded .status-icon-big {
    background: linear-gradient(145deg, rgba(244, 114, 182, 0.38), rgba(219, 39, 119, 0.22));
    border-color: rgba(251, 207, 232, 0.48);
    animation:
        statusHeroIconFloat 3.2s ease-in-out infinite,
        statusHeroRefundedPing 2.55s ease-out infinite;
}
.status-hero--refunded .status-label {
    
}
.order-num {
    font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 500;
    background: rgba(255,255,255,0.04); display: inline-block;
    padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.07);
}

/* Timeline — hiệu ứng tiến trình đơn hàng */
.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 28px 0 0;
    padding: 8px 4px 10px;
    gap: 2px;
}
.tl-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}
.tl-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 62%;
    width: 76%;
    height: 3px;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 4px;
}
.tl-step.done:not(:last-child)::after {
    background: linear-gradient(90deg, var(--success), rgba(52, 211, 153, 0.55));
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.28);
}
.tl-step.active:not(:last-child)::after {
    background: linear-gradient(90deg, var(--success), rgba(251, 191, 36, 0.65), rgba(255, 255, 255, 0.14));
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.22);
}
.tl-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: rgba(248, 250, 252, 0.92);
    z-index: 2;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.25s,
        background 0.25s,
        box-shadow 0.25s;
}
.tl-dot-icon {
    font-size: 11px;
    line-height: 1;
}
.tl-step.done .tl-dot {
    background: linear-gradient(145deg, #4ade80, #059669);
    border-color: #86efac;
    color: #022c22;
    animation: tlDoneGlow 2.8s ease-in-out infinite;
}
.tl-step.active .tl-dot {
    background: linear-gradient(145deg, #fde68a, #f59e0b);
    border-color: #fcd34d;
    color: #422006;
    transform: scale(1.18);
    animation: tlActiveGlow 2s ease-in-out infinite;
}
.tl-step.active .tl-dot::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.55);
    animation: tlRipple 2s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
.tl-label {
    font-size: 9px;
    color: var(--muted);
    text-align: center;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    max-width: 72px;
    transition: color 0.25s, transform 0.25s, text-shadow 0.25s;
}
.tl-step.done .tl-label {
    color: #86efac;
    font-weight: 800;
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.28);
}
.tl-step.active .tl-label {
    color: #fef3c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    animation: tlLabelActive 2.3s ease-in-out infinite;
    max-width: none;
}

/* Card */
.card {
    background: linear-gradient(160deg, rgba(30, 26, 44, 0.92), rgba(20, 18, 32, 0.94));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; padding: 20px; margin-bottom: 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    transition: border-color .2s;
}
.card:hover { border-color: oklch(72% 0.14 75 / 0.35); }
.card-title {
    font-size: 11px; font-weight: 800; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.card-title i { color: var(--primary); opacity: 0.7; }

/* Info rows */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); font-size: 13px; }
.info-val   { font-weight: 600; text-align: right; max-width: 60%; word-break: break-word; }

/* Items */
.item-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.item-row:last-child { border-bottom: none; }
.item-icon { width: 42px; height: 42px; background: oklch(72% 0.14 75 / 0.35); border: 1px solid oklch(72% 0.14 75 / 0.35); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.item-name { font-size: 14px; font-weight: 600; }
.item-qty  { font-size: 12px; color: var(--muted); margin-top: 3px; }
.item-price { font-weight: 700; font-size: 14px; margin-left: auto; white-space: nowrap; color: var(--primary); }

/* Total */
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; margin-top: 10px; border-top: 1px dashed rgba(255,255,255,0.08); }
.total-label { font-size: 15px; font-weight: 700; color: var(--muted); }
.total-val   { font-family: var(--font-display), serif; font-size: 26px; font-weight: 700; color: var(--gold); }

/* Link box */
.link-box {
    background: oklch(72% 0.14 75 / 0.35); border: 1px solid oklch(72% 0.14 75 / 0.35);
    border-radius: 16px; padding: 18px; margin-bottom: 14px;
}
.link-box-title { font-size: 12px; font-weight: 800; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.8px; }
.link-url {
    background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px; padding: 10px 14px; font-size: 11px; color: var(--muted);
    word-break: break-all; cursor: pointer; transition: all .2s;
}
.link-url:hover { background: oklch(72% 0.14 75 / 0.35); border-color: oklch(72% 0.14 75 / 0.35); }
.copy-note { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }

/* Buttons */
.btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 15px; border-radius: 14px; font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    color: white; text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 8px 24px oklch(52% 0.14 38 / 0.35); transition: all .3s;
    letter-spacing: 0.3px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px oklch(52% 0.14 38 / 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 600;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,0.12);
    color: var(--muted); text-decoration: none; transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--text-primary); border-color: rgba(255,255,255,0.18); }

/* Search card */
.search-card {
    background: linear-gradient(160deg, rgba(32, 28, 48, 0.95), rgba(22, 20, 36, 0.96));
    border: 1px solid oklch(72% 0.14 75 / 0.35); border-radius: 24px; padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.search-card h2 { font-family: var(--font-display), serif; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.search-card > p { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.search-input {
    width: 100%; padding: 15px 18px; background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,0.12); border-radius: 14px; color: var(--text);
    font-size: 14px; font-family: var(--font-body), sans-serif;
    outline: none; transition: all .25s;
}
.search-input:focus {
    border-color: oklch(72% 0.14 75 / 0.35);
    box-shadow: 0 0 0 4px oklch(72% 0.14 75 / 0.35), 0 4px 20px rgba(0,0,0,0.2);
    background: rgba(255,255,255,.09);
}
.search-input::placeholder { color: rgba(248,250,252,0.35); }
.search-hint {
    font-size: 12px; color: rgba(148, 163, 184, 0.95); margin-top: 12px; margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 8px; line-height: 1.7;
    background: rgba(255,255,255,0.05); padding: 12px 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}
.search-hint i { margin-top: 2px; flex-shrink: 0; color: var(--primary); opacity: 0.7; }
.search-hint code { color: var(--accent); background: oklch(65% 0.1 72 / 0.3); padding: 1px 6px; border-radius: 4px; font-size: 11px; }
.search-hint strong { color: rgba(255,255,255,0.5); font-weight: 600; }

/* Refresh pulse */
.refresh-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pulse-dot { width:7px; height:7px; background: var(--success); border-radius:50%; animation: trackPulse 2s var(--track-ease) infinite; box-shadow: 0 0 6px var(--success); }

/* ── VietQR / CK đơn hàng (?pay=) — giao diện chuyên nghiệp ── */
.bank-pay-shell {
    position: relative;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(145deg, oklch(65% 0.1 72 / 0.3), oklch(52% 0.14 38 / 0.35), rgba(201,168,76,0.2));
    box-shadow:
        0 24px 80px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.06) inset,
        0 1px 0 rgba(255,255,255,0.08) inset;
    margin-bottom: 20px;
    overflow: hidden;
}
.bank-pay-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, oklch(65% 0.1 72 / 0.3), transparent);
    pointer-events: none;
}
.bank-pay-inner {
    position: relative;
    border-radius: 27px;
    background: linear-gradient(165deg, rgba(14,14,22,0.98), rgba(8,8,14,0.99));
    padding: 26px 20px 24px;
    backdrop-filter: blur(20px);
}
.bank-pay-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.bank-pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.85);
}
.bank-pay-pill svg, .bank-pay-pill i { opacity: 0.85; font-size: 12px; }
.bank-pay-pill.secure {
    border-color: rgba(52,211,153,0.35);
    background: rgba(52,211,153,0.08);
    color: #a7f3d0;
}
.bank-pay-title {
    font-family: var(--font-display), serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}
.bank-pay-sub {
    text-align: center;
    font-size: 13px;
    color: rgba(148,163,184,0.95);
    line-height: 1.55;
    max-width: 340px;
    margin: 0 auto 22px;
}
.bank-pay-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}
.bank-pay-step {
    text-align: center;
    padding: 12px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.bank-pay-step-num {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, oklch(65% 0.1 72 / 0.3), oklch(52% 0.14 38 / 0.35));
    border: 1px solid oklch(65% 0.1 72 / 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body), sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-soft);
}
.bank-pay-step strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 2px;
}
.bank-pay-step span {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.35;
}
.bank-pay-timer-card {
    text-align: center;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(239,68,68,0.08), rgba(15,15,22,0.6));
    border: 1px solid rgba(248,113,113,0.22);
}
.bank-pay-timer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fca5a5;
    margin-bottom: 6px;
}
.bank-timer {
    font-family: ui-monospace, monospace, monospace;
    font-size: 36px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fecaca;
    letter-spacing: 0.06em;
    text-shadow: 0 0 40px rgba(248,113,113,0.35);
    line-height: 1.1;
}
.bank-pay-timer-note {
    font-size: 12px;
    color: rgba(248,250,252,0.55);
    margin-top: 8px;
}
.bank-pay-orders-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.bank-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: oklch(65% 0.1 72 / 0.3);
    border: 1px solid oklch(65% 0.1 72 / 0.3);
    color: #bae6fd;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-family: ui-monospace, monospace, monospace;
}
.bank-pay-qr-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
}
.bank-pay-qr-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148,163,184,0.9);
    margin-bottom: 12px;
}
.bank-qr-img-wrap {
    position: relative;
    background: var(--text-primary);
    border-radius: 20px;
    padding: 18px;
    box-shadow:
        0 24px 48px rgba(0,0,0,0.45),
        0 0 0 1px oklch(65% 0.1 72 / 0.3),
        0 0 40px oklch(65% 0.1 72 / 0.3);
}
.bank-qr-img {
    width: 100%;
    max-width: 272px;
    display: block;
    height: auto;
    border-radius: 12px;
}
.bank-pay-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bank-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0,0,0,0.35);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
}
.bank-pay-row .lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 0;
}
.bank-pay-row .lbl i { color: oklch(65% 0.1 72 / 0.3); font-size: 13px; width: 18px; text-align: center; }
.bank-pay-row .val {
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    color: #f1f5f9;
    line-height: 1.45;
}
.bank-pay-val-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: 62%;
}
.bank-pay-row.highlight {
    border-color: oklch(65% 0.1 72 / 0.3);
    background: linear-gradient(135deg, oklch(65% 0.1 72 / 0.3), oklch(52% 0.14 38 / 0.35));
}
.bank-pay-row.amount .val {
    font-family: var(--font-display), serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}
.bank-pay-transfer-val {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.bank-mono { font-family: ui-monospace, monospace, monospace; letter-spacing: 0.03em; font-size: 13px; }
.bank-pay-acc-name {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    font-family: var(--font-body), sans-serif;
    margin-top: 4px;
    letter-spacing: 0;
}
.bank-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: oklch(65% 0.1 72 / 0.3);
    border: 1px solid oklch(65% 0.1 72 / 0.3);
    color: var(--gold-soft);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.bank-copy-btn:hover {
    background: oklch(65% 0.1 72 / 0.3);
    box-shadow: 0 4px 16px oklch(65% 0.1 72 / 0.3);
}
.bank-copy-btn:active { transform: scale(0.97); }
.bank-pay-warning {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    font-size: 12px;
    font-weight: 600;
    color: #fecaca;
    line-height: 1.55;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.bank-pay-warning i { margin-top: 2px; color: #f87171; flex-shrink: 0; }
.bank-pay-wait {
    margin-top: 20px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(52,211,153,0.06);
    border: 1px solid rgba(52,211,153,0.2);
    font-size: 12px;
    color: rgba(167,243,208,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}
.bank-pay-wait .pulse-dot {
    flex-shrink: 0;
}
/* Toast copy */
#bankPayToast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10001;
    padding: 12px 20px;
    border-radius: 14px;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(52,211,153,0.4);
    color: #ecfdf5;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    pointer-events: none;
    max-width: 92vw;
    text-align: center;
}
#bankPayToast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Overlay timeout / success */
.bank-pay-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3,7,18,0.88);
    backdrop-filter: blur(12px);
}
.bank-pay-overlay-inner {
    text-align: center;
    max-width: 340px;
    padding: 36px 28px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(18,18,28,0.98), rgba(10,10,16,0.99));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.bank-pay-overlay-inner.success {
    border-color: rgba(52,211,153,0.35);
}
.bank-pay-overlay-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 24px rgba(52,211,153,0.35));
}
.bank-pay-overlay-title {
    font-family: var(--font-display), serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.bank-pay-overlay-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}
@media (max-width: 380px) {
    .bank-pay-steps { grid-template-columns: 1fr; }
    .bank-timer { font-size: 30px; }
}

/* ═══ Track Order — chỉnh toàn trang ═══ */
.track-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(18, 18, 28, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.track-brand {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}
.track-top-link {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.track-top-link:hover {
    color: var(--text-primary);
    border-color: oklch(72% 0.14 75 / 0.35);
    background: oklch(52% 0.14 38 / 0.35);
}

.page-header--payment {
    padding: 20px 0 24px;
}
.page-header--payment .logo-circle {
    width: 58px;
    height: 58px;
    font-size: 22px;
    animation: none;
}
.page-header--payment h1 {
    font-size: 22px;
}
.page-header--payment p {
    font-size: 12px;
    opacity: 0.85;
}

/* Search */
.search-card {
    border-radius: 26px;
    padding: 30px 22px;
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.search-card h2 {
    font-size: 23px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.search-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, oklch(52% 0.14 38 / 0.35), oklch(72% 0.14 75 / 0.35));
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    font-size: 18px;
}

/* Certificate */
.rc {
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.rc-invalid {
    padding: 48px 28px;
    text-align: center;
}
.rc-invalid .inv-icon {
    font-size: 52px;
    margin-bottom: 16px;
    filter: grayscale(0.2);
}
.rc-invalid .inv-title {
    font-family: var(--font-display), serif;
    font-size: 22px;
    font-weight: 800;
    color: #fca5a5;
    margin-bottom: 8px;
}
.rc-invalid .inv-code {
    font-family: ui-monospace, monospace, monospace;
    font-size: 12px;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
    margin-bottom: 14px;
    word-break: break-all;
    max-width: 100%;
}
.rc-invalid .inv-sub {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
}
.rc-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.cert-btn {
    border-radius: 14px;
    padding: 15px;
    margin-top: 12px;
}
.cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 168, 76, 0.25);
}

/* Alerts */
.alert {
    border-radius: 16px;
    align-items: flex-start;
    line-height: 1.5;
}
.alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Hero / cards */
.status-hero {
    border-radius: 26px;
    padding: 34px 22px 30px;
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card {
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.11);
}
.card.card--accent {
    border-color: oklch(72% 0.14 75 / 0.35);
    box-shadow: 0 16px 48px oklch(52% 0.14 38 / 0.35);
}
.link-box {
    border-radius: 20px;
    padding: 20px;
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    background: linear-gradient(145deg, oklch(72% 0.14 75 / 0.35), oklch(52% 0.14 38 / 0.35));
}
.link-url {
    border-radius: 12px;
    padding: 12px 14px;
    font-family: ui-monospace, monospace, monospace;
    font-size: 10px;
    line-height: 1.5;
}

/* —— Đơn của bạn (chọn từ danh sách) —— */
.order-pick-panel {
  padding-top: var(--space-sm);
}

.order-pick-panel__intro {
  margin-bottom: var(--space-md);
}

.order-pick-panel__intro h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.order-pick-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.45rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  background: oklch(52% 0.14 38 / 0.35);
  color: var(--gold);
  border: 1px solid var(--border-strong);
}

.order-pick-panel__sub {
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.5;
}

.order-pick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 0;
  padding: 0;
}

.order-pick-list__item {
  margin: 0;
}

.order-pick-form {
  margin: 0;
}

.order-pick-card {
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--track-ease),
    box-shadow var(--dur-fast) var(--track-ease),
    transform var(--dur-fast) var(--track-ease-out);
}

.order-pick-card__body {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  background: transparent;
  border: none;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.order-pick-card__body:focus-visible {
  outline: none;
}

.order-pick-form:focus-within .order-pick-card,
.order-pick-card:has(:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.order-pick-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
}

.order-pick-card__row--head {
  align-items: flex-start;
}

.order-pick-card__id {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  word-break: break-all;
}

.order-pick-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: oklch(28% 0.04 55 / 0.65);
  color: var(--text-secondary);
}

.order-pick-pill i {
  font-size: 0.7rem;
  opacity: 0.9;
}

.order-pick-pill--pending {
  background: oklch(70% 0.12 68 / 0.15);
  border-color: oklch(70% 0.12 68 / 0.35);
  color: oklch(78% 0.1 68);
}

.order-pick-pill--confirmed,
.order-pick-pill--processing {
  background: oklch(72% 0.14 75 / 0.12);
  border-color: oklch(72% 0.14 75 / 0.3);
  color: var(--gold-soft);
}

.order-pick-pill--shipped {
  background: oklch(68% 0.12 55 / 0.14);
  border-color: oklch(68% 0.12 55 / 0.32);
  color: oklch(82% 0.08 75);
}

.order-pick-pill--completed {
  background: oklch(62% 0.12 155 / 0.14);
  border-color: oklch(62% 0.12 155 / 0.32);
  color: oklch(78% 0.1 155);
}

.order-pick-pill--cancelled {
  background: oklch(58% 0.16 25 / 0.14);
  border-color: oklch(58% 0.16 25 / 0.32);
  color: oklch(72% 0.12 25);
}

.order-pick-pill--refunded {
  background: oklch(62% 0.1 340 / 0.12);
  border-color: oklch(62% 0.1 340 / 0.28);
  color: oklch(78% 0.08 340);
}

.order-pick-card__row--meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.order-pick-card__row--meta i {
  margin-right: 0.25rem;
  opacity: 0.75;
}

.order-pick-card__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.order-pick-card__shop {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.order-pick-card__shop i {
  color: var(--gold-soft);
  font-size: 0.75rem;
}

.order-pick-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.order-pick-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: oklch(28% 0.04 55 / 0.55);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.order-pick-tag--inst {
  background: oklch(52% 0.14 38 / 0.2);
  border-color: oklch(52% 0.14 38 / 0.4);
  color: var(--gold-soft);
}

.order-pick-plan {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: oklch(20% 0.03 52 / 0.65);
  border: 1px solid var(--border);
}

.order-pick-plan__bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: oklch(28% 0.04 55 / 0.8);
  overflow: hidden;
}

.order-pick-plan__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--terracotta);
  transition: width 0.45s var(--track-ease-out);
}

.order-pick-plan__stats {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.order-pick-plan__stats strong {
  color: var(--text-primary);
  font-weight: 700;
}

.order-pick-plan__note {
  font-size: 0.75rem;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.order-pick-plan__note--ok {
  color: var(--success);
}

.order-pick-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--border);
  background: oklch(22% 0.03 52 / 0.45);
}

.order-pick-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: oklch(52% 0.14 38 / 0.18);
  border: 1px solid oklch(72% 0.14 75 / 0.35);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.order-pick-cert:hover {
  background: oklch(52% 0.14 38 / 0.28);
  border-color: var(--gold-soft);
  color: var(--text-primary);
}

.order-pick-card__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.25rem 0;
}

.order-pick-card__cta i {
  font-size: 0.65rem;
  opacity: 0.85;
  transition: transform 0.2s var(--track-ease-out);
}

.order-pick-card__cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.order-pick-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: var(--space-lg);
  text-align: center;
}

/* Trả góp — QR panel */
.inst-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.04);
    padding: 18px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.inst-summary-col {
    text-align: center;
    flex: 1;
}
.inst-summary-col .lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.inst-summary-col .lbl.ok {
    color: var(--success);
}
.inst-summary-col .lbl.warn {
    color: var(--danger);
}
.inst-summary-col .num {
    font-weight: 800;
    font-size: 15px;
    margin-top: 6px;
}
.inst-summary-col .num.ok {
    color: var(--success);
}
.inst-summary-col .num.warn {
    color: var(--danger);
}
.inst-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
}
.inst-qr-panel {
    text-align: center;
    margin-bottom: 22px;
    border-radius: 22px;
    padding: 22px 18px;
    background: linear-gradient(180deg, rgba(42, 38, 62, 0.92), rgba(26, 24, 42, 0.95));
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.inst-qr-panel h4 {
    font-family: var(--font-body), sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 10px;
}
.inst-qr-panel .inst-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.5;
}
.inst-qr-panel .inst-desc strong {
    color: #f1f5f9;
}
.deposit-countdown-box {
    margin: 0 auto 16px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px dashed rgba(248, 113, 113, 0.4);
    color: #fca5a5;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.45;
}
.inst-qr-inner {
    display: inline-block;
    background: var(--text-primary);
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.inst-qr-inner img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    display: block;
}
.inst-bank-box {
    margin-top: 18px;
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.6);
    font-size: 12px;
    color: #475569;
}
.inst-bank-box strong {
    color: #0f172a;
}
.inst-bank-box .inst-copy {
    cursor: pointer;
    opacity: 0.7;
    margin-left: 4px;
    transition: opacity 0.15s;
}
.inst-bank-box .inst-copy:hover {
    opacity: 1;
}
.inst-warn-foot {
    color: #fecaca;
    font-size: 11px;
    font-weight: 700;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.inst-done-banner {
    text-align: center;
    padding: 24px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 18px;
    color: var(--success);
    font-weight: 700;
    margin-bottom: 22px;
    font-size: 14px;
}
.inst-done-banner i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}
.inst-history-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.inst-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
}
.inst-history-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

/* Actions */
.actions-stack {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.btn-cert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.28), rgba(201, 168, 76, 0.12));
    border: 1px solid rgba(201, 168, 76, 0.55);
    color: #fde68a;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    padding: 15px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.15);
    letter-spacing: 0.02em;
}
.btn-cert:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(201, 168, 76, 0.22);
}
.inst-wait-cert {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.track-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 11px;
    color: #64748b;
    line-height: 1.7;
}
.track-footer a {
    color: #94a3b8;
    font-weight: 600;
    text-decoration: none;
    margin: 0 8px;
}
.track-footer a:hover {
    color: var(--accent);
}

#trackToastEl {
    position: fixed;
    bottom: calc(var(--dock-h) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 99999;
    padding: 12px 22px;
    border-radius: 14px;
    background: oklch(20% 0.03 52 / 0.96);
    border: 1px solid oklch(62% 0.12 155 / 0.45);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 16px 48px oklch(8% 0.02 40 / 0.55);
    transition: transform 0.4s var(--track-ease-out), opacity 0.3s var(--track-ease);
    opacity: 0;
    pointer-events: none;
    max-width: 92vw;
    text-align: center;
}
#trackToastEl.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.refresh-hint a {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid oklch(65% 0.1 72 / 0.3);
}
.refresh-hint-ico {
    font-size: 11px;
    color: var(--accent);
    opacity: 0.85;
    flex-shrink: 0;
}

/* ── Tra cứu (form) ── */
.search-lead {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
}
.search-card h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 400px) {
    .search-card h2 {
        flex-direction: row;
        align-items: center;
    }
}
.search-field-wrap {
    position: relative;
    margin-bottom: 4px;
}
.search-field-wrap .field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: oklch(72% 0.14 75 / 0.35);
    font-size: 15px;
    pointer-events: none;
}
.search-field-wrap .search-input {
    padding-left: 46px;
}
.search-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 18px;
}
.search-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.search-chip:hover,
.search-chip:focus-visible {
    background: oklch(52% 0.14 38 / 0.35);
    border-color: oklch(72% 0.14 75 / 0.35);
    color: var(--gold-soft);
    outline: none;
}

/* ── Chi tiết đơn (trong tra cứu) ── */
.card.card--detail {
    padding: 0;
    overflow: hidden;
}
.card.card--detail .card-title {
    margin: 0;
    padding: 18px 20px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    letter-spacing: 0.14em;
}
.card.card--detail .card-body-pad {
    padding: 8px 14px 16px;
}
.card.card--detail .info-row {
    padding: 13px 10px;
    margin: 4px 0;
    border-radius: 12px;
    border-bottom: none;
    align-items: flex-start;
    gap: 12px;
}
.card.card--detail .info-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}
.card.card--detail .info-label {
    flex-shrink: 0;
    width: 38%;
    max-width: 140px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.4;
}
.card.card--detail .info-val {
    flex: 1;
    text-align: right;
    max-width: none;
    font-family: ui-monospace, monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.45;
}
.card.card--detail .info-val--copy {
    cursor: pointer;
    color: var(--accent);
    transition: color 0.2s, filter 0.2s;
}
.card.card--detail .info-val--copy:hover {
    filter: brightness(1.08);
}
.card.card--detail .item-stack {
    padding: 12px 14px 18px;
}
.card.card--detail .item-row {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    align-items: flex-start;
}
.card.card--detail .item-row:last-of-type {
    margin-bottom: 0;
}
.card.card--detail .item-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 20px;
}
.card.card--detail .total-row {
    margin: 16px 14px 18px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px dashed oklch(72% 0.14 75 / 0.35);
    background: oklch(52% 0.14 38 / 0.35);
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: ui-monospace, monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

/* ── Trả góp (bổ sung) ── */
.inst-head {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid oklch(72% 0.14 75 / 0.35);
}
.inst-head h3 {
    font-family: var(--font-display), serif;
    font-size: 20px;
    font-weight: 800;
    color: #f5f3ff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.inst-head h3 i {
    color: var(--primary);
    font-size: 18px;
}
.inst-head-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.5;
}
.inst-progress-wrap {
    margin-bottom: 22px;
}
.inst-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}
.inst-progress-label span.ok {
    color: var(--success);
}
.inst-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.inst-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399, #10b981, #6ee7b7);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.35);
    transition: width 0.5s ease;
}
.inst-summary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.inst-qr-panel {
    position: relative;
    overflow: hidden;
}
.inst-qr-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary2), var(--primary), var(--accent));
    opacity: 0.85;
}
.inst-bank-row {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.inst-bank-row:last-child {
    margin-bottom: 0;
}
.inst-history-row {
    border-left: 3px solid transparent;
    transition: background 0.2s;
}
.inst-history-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-left-color: rgba(52, 211, 153, 0.45);
}
.inst-history-empty {
    padding: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.inst-history-title {
    font-size: 11px;
    margin-bottom: 12px;
    margin-top: 8px;
    letter-spacing: 0.12em;
    opacity: 0.95;
}
.hist-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.hist-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}
.hist-amt {
    font-size: 15px;
    font-weight: 800;
    color: var(--success);
    font-family: ui-monospace, monospace, monospace;
}
.hist-badge {
    font-size: 10px;
    padding: 4px 9px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
}

/* ═══ Polish: nhất quán & chuyên nghiệp ═══ */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.page-header p {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.92);
}

.search-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(168deg, rgba(36, 32, 56, 0.96), rgba(24, 22, 40, 0.97));
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.42),
        0 0 0 1px oklch(72% 0.14 75 / 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    opacity: 0.85;
    pointer-events: none;
}
.search-card > p:not(.search-lead) {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    color: rgba(148, 163, 184, 0.95);
}
.search-lead {
    letter-spacing: 0.16em;
    color: rgba(148, 163, 184, 0.88);
}
.search-field-wrap .search-input {
    border-radius: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}
.search-chip {
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.search-chip:active {
    transform: scale(0.98);
}
.btn-primary {
    border-radius: 16px;
    box-shadow:
        0 10px 28px oklch(52% 0.14 38 / 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:focus-visible {
    outline: 2px solid oklch(72% 0.14 75 / 0.35);
    outline-offset: 3px;
}

.status-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, rgba(38, 32, 58, 0.95), rgba(22, 20, 38, 0.96));
    border: 1px solid oklch(72% 0.14 75 / 0.35);
    box-shadow:
        0 32px 88px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        inset 0 -40px 80px oklch(52% 0.14 38 / 0.35);
}
.status-hero::before {
    content: '';
    position: absolute;
    inset: -30% -20% auto;
    height: 70%;
    background: radial-gradient(ellipse 70% 55% at 50% 0%, oklch(72% 0.14 75 / 0.35), transparent 72%);
    pointer-events: none;
}
.status-hero > * {
    position: relative;
    z-index: 1;
}
.status-label {
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-pill {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: oklch(72% 0.14 75 / 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timeline {
    padding-left: 2px;
    padding-right: 2px;
}

.card {
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.card:hover {
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px oklch(72% 0.14 75 / 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card.card--accent {
    padding: 22px 20px 20px;
    background: linear-gradient(168deg, rgba(34, 30, 52, 0.95), rgba(22, 20, 40, 0.97));
    border-color: oklch(72% 0.14 75 / 0.35);
    box-shadow:
        0 22px 64px rgba(0, 0, 0, 0.36),
        0 0 80px oklch(52% 0.14 38 / 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.inst-head {
    border-bottom: none;
    padding-bottom: 18px;
    margin-bottom: 20px;
    position: relative;
}
.inst-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, oklch(72% 0.14 75 / 0.35), transparent 95%);
    opacity: 0.9;
}
.inst-head-sub {
    max-width: 420px;
    line-height: 1.6;
}

.inst-progress-track {
    height: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}
.inst-progress-fill {
    position: relative;
    overflow: hidden;
}
.inst-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 60%
    );
    animation: instBarShine 2.8s ease-in-out infinite;
}
@keyframes instBarShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.inst-summary-col .num {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, monospace, var(--font-body), monospace;
    letter-spacing: -0.02em;
}

/* Hạn chót trả góp (tra cứu đơn) */
.inst-deadline {
    margin: 6px 0 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(145deg, rgba(30, 27, 48, 0.92), rgba(17, 16, 32, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 18px rgba(0, 0, 0, 0.18);
}
.inst-deadline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.55), rgba(100, 116, 139, 0.35));
}
.inst-deadline--ahead::before {
    background: linear-gradient(180deg, #6ee7b7, #059669);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}
.inst-deadline--overdue::before {
    background: linear-gradient(180deg, #fca5a5, #dc2626);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.28);
}
.inst-deadline--completed::before {
    background: linear-gradient(180deg, #a7f3d0, #10b981);
    opacity: 0.85;
}
.inst-deadline--unknown::before {
    background: linear-gradient(180deg, rgba(196, 181, 253, 0.75), oklch(52% 0.14 38 / 0.35));
}
.inst-deadline-inner {
    padding: 8px 10px 8px 14px;
}
.inst-deadline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 10px;
}
.inst-deadline-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cbd5e1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
.inst-deadline-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gold-soft);
    font-size: 12px;
    flex-shrink: 0;
}
.inst-deadline--ahead .inst-deadline-ico {
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.1);
}
.inst-deadline--overdue .inst-deadline-ico {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(239, 68, 68, 0.12);
}
.inst-deadline--completed .inst-deadline-ico {
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
}
.inst-deadline-date {
    font-family: ui-monospace, monospace, ui-monospace, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding: 4px 0 0;
    max-width: 100%;
}
.inst-deadline-date--empty {
    color: #64748b;
    font-weight: 600;
}
.inst-deadline-msg {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
}
.inst-deadline-msg > i:first-child {
    width: 28px;
    flex-shrink: 0;
    text-align: center;
    margin-top: 2px;
    opacity: 0.92;
}
.inst-deadline-msg--ok {
    color: #a7f3d0;
    font-weight: 600;
}
.inst-deadline-msg--ok > i {
    color: #6ee7b7;
}
.inst-deadline-msg--warn {
    color: #fecaca;
    font-weight: 600;
}
.inst-deadline-msg--warn > i {
    color: #f87171;
}
.inst-deadline-msg--muted {
    color: #94a3b8;
    font-weight: 500;
    padding-left: 36px;
}
.inst-deadline-msg--done {
    color: #86efac;
    font-weight: 600;
    gap: 8px;
}
.inst-deadline-msg--done > i {
    color: #34d399;
}
.inst-deadline-pill {
    display: inline-block;
    min-width: 1.6em;
    padding: 1px 6px;
    border-radius: 999px;
    text-align: center;
    font-weight: 800;
    font-size: 11px;
    font-family: ui-monospace, monospace, ui-monospace, monospace;
    background: rgba(248, 113, 113, 0.22);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
    vertical-align: baseline;
}
.inst-deadline-pill--soft {
    background: rgba(52, 211, 153, 0.18);
    color: #d1fae5;
    border-color: rgba(52, 211, 153, 0.32);
}
.inst-deadline-sub {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    font-size: 11px;
}
.inst-deadline-sub-lbl {
    color: #cbd5e1;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.inst-deadline-sub-val {
    font-family: ui-monospace, monospace, ui-monospace, monospace;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 11px;
    letter-spacing: -0.02em;
}
@media (max-width: 380px) {
    .inst-deadline-head {
        flex-direction: column;
        align-items: stretch;
    }
    .inst-deadline-date {
        text-align: left;
        padding-left: 36px;
    }
    .inst-deadline-msg--muted {
        padding-left: 0;
    }
}

/* Tiến trình trả góp — một hàng gọn (tra cứu đơn) */
.inst-journey {
    margin: 6px 0 0;
    padding: 7px 8px 7px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.inst-journey-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
    margin-bottom: 5px;
}
.inst-journey-hd {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5f3ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
.inst-journey-hd i {
    font-size: 11px;
    opacity: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}
.inst-journey-note {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 11px;
    line-height: 1.42;
    color: #cbd5e1;
    font-weight: 500;
    font-style: italic;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inst-journey-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.inst-journey-strip::-webkit-scrollbar {
    display: none;
}
.inst-strip-chev {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 0 2px;
    user-select: none;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.inst-strip-node {
    flex: 1 1 0;
    min-width: 44px;
    max-width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    cursor: default;
}
.inst-strip-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 2px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.65);
    color: #94a3b8;
}
.inst-strip-node--done .inst-strip-dot {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}
.inst-strip-node--current .inst-strip-dot {
    border-color: rgba(196, 181, 253, 0.65);
    background: oklch(52% 0.14 38 / 0.35);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px oklch(52% 0.14 38 / 0.35);
}
.inst-strip-node--upcoming .inst-strip-dot {
    border-style: dashed;
    opacity: 0.88;
}
.inst-strip-node--off .inst-strip-dot {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(127, 29, 29, 0.16);
    color: #fca5a5;
}
.inst-strip-lbl {
    font-family: var(--font-body), var(--font-body), system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
@media (max-width: 380px) {
    .inst-journey-top {
        flex-direction: column;
        align-items: stretch;
    }
    .inst-journey-note {
        text-align: left;
    }
}

.inst-qr-inner {
    position: relative;
    border-radius: 20px;
    padding: 18px;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.42),
        0 0 0 1px oklch(72% 0.14 75 / 0.35),
        0 0 36px oklch(52% 0.14 38 / 0.35);
}
.inst-qr-inner img {
    border-radius: 14px;
}

.inst-bank-box {
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.inst-history-wrap {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.inst-history-empty {
    line-height: 1.65;
    max-width: 300px;
    margin: 0 auto;
}

.total-val,
.card.card--detail .item-price {
    font-variant-numeric: tabular-nums;
}

.link-box {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.order-pick-form:hover .order-pick-card,
.order-pick-form:focus-within .order-pick-card {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: 0 14px 36px oklch(8% 0.02 40 / 0.45);
}

.order-pick-form:hover .order-pick-card__cta i,
.order-pick-form:focus-within .order-pick-card__cta i {
    transform: translateX(3px);
}

.order-pick-form:active .order-pick-card {
    transform: translateY(0);
}

.refresh-hint {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.track-footer {
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .inst-progress-fill::after {
        animation: none;
    }
    .order-pick-form:hover .order-pick-card,
    .order-pick-form:focus-within .order-pick-card {
        transform: none;
    }
    .tl-step.active .tl-dot::before,
    .tl-step.active .tl-dot,
    .tl-step.done .tl-dot,
    .tl-step.active .tl-label {
        animation: none !important;
    }
    .tl-step.active .tl-dot {
        transform: scale(1.12);
    }
    .tl-step.active .tl-label {
        transform: scale(1.08);
    }
    .status-icon-big {
        animation: none !important;
    }
    .status-hero .status-label {
        animation: none !important;
    }
    .status-icon-big > i {
        animation: none !important;
    }
}


/* Fade-in utility (previously inline before </body>) */
@keyframes animFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-fadein {
    animation: animFadeIn 0.45s cubic-bezier(.22, 1, .36, 1) both;
}

/* Installment payment method tabs (track_order) */
.inst-pay-section {
    margin-bottom: 22px;
}
.inst-pay-section-title {
    font-family: var(--font-body), sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.inst-pay-section-title i {
    color: var(--gold-soft);
}
.inst-pay-section-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.45;
}
.inst-pay-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.inst-pay-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.inst-pay-tab:hover {
    border-color: oklch(72% 0.14 75 / 0.35);
    color: var(--text-primary);
}
.inst-pay-tab.active {
    border-color: oklch(72% 0.14 75 / 0.35);
    background: linear-gradient(135deg, oklch(52% 0.14 38 / 0.35), rgba(59, 130, 246, 0.12));
    color: var(--text-primary);
    box-shadow: 0 4px 18px oklch(52% 0.14 38 / 0.35);
}
.inst-pay-panel {
    /* Visibility controlled by [hidden] attribute (set by JS) */
    display: block;
}
.inst-pay-panel[hidden] {
    display: none !important;
}
.inst-qr-panel--nested {
    margin-bottom: 0;
}
.inst-card-panel,
.inst-wallet-panel {
    text-align: left;
    padding: 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(36, 32, 56, 0.95), rgba(22, 20, 36, 0.98));
    border: 1px solid oklch(72% 0.14 75 / 0.35);
}
.inst-card-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.inst-card-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.45;
}
.inst-card-step span {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: oklch(72% 0.14 75 / 0.35);
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inst-card-hint {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 14px;
    line-height: 1.5;
}
.inst-card-hint strong {
    color: #f1f5f9;
}
.inst-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: var(--text-primary) !important;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 28px oklch(52% 0.14 38 / 0.35);
}
.inst-card-cta:hover {
    filter: brightness(1.06);
}
.inst-card-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}
.inst-card-auto-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--gold-soft);
    background: oklch(52% 0.14 38 / 0.35);
    border: 1px solid rgba(167, 139, 250, 0.25);
}
.inst-card-auto-note i {
    margin-right: 6px;
}
.inst-card-form {
    margin-top: 4px;
}
.inst-card-field-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin: 10px 0 6px;
}
.inst-card-field-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-size: 15px;
    font-family: ui-monospace, monospace, monospace;
}
.inst-card-field-input:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 0 3px oklch(52% 0.14 38 / 0.35);
}
.inst-card-form-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}
.inst-card-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
}
.inst-card-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}
.inst-card-status--ok {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}
.inst-card-status--err {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}
.inst-card-status--pending {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #fcd34d;
}
.inst-wallet-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: oklch(65% 0.1 72 / 0.3);
    border: 1px solid oklch(65% 0.1 72 / 0.3);
    margin-bottom: 14px;
    font-size: 13px;
    color: #94a3b8;
}
.inst-wallet-balance strong {
    font-family: ui-monospace, monospace, monospace;
    font-size: 16px;
    color: #38bdf8;
}
.inst-wallet-warn {
    font-size: 12px;
    color: #fcd34d;
    margin: 0 0 12px;
    line-height: 1.45;
}
.inst-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--gold-soft);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.inst-wallet-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
}
.inst-wallet-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.inst-wallet-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-size: 15px;
    font-family: ui-monospace, monospace, monospace;
}
.inst-wallet-submit {
    flex-shrink: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}
.inst-wallet-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.inst-wallet-submit--all {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #059669, #10b981);
    font-size: 14px;
}
.inst-wallet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.inst-wallet-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.inst-wallet-chip:hover {
    border-color: oklch(72% 0.14 75 / 0.35);
    color: var(--text-primary);
}
.inst-card-telcos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.inst-card-telco {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 90px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: border-color 0.15s, background 0.15s;
}
.inst-card-telco i {
    font-size: 16px;
    color: var(--gold-soft);
}
.inst-card-telco.active,
.inst-card-telco:hover {
    border-color: oklch(72% 0.14 75 / 0.35);
    background: oklch(52% 0.14 38 / 0.35);
    color: var(--text-primary);
}
.inst-card-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 36px;
}
.inst-card-amounts:empty::after {
    content: 'Chọn loại thẻ trước';
    font-size: 12px;
    color: #64748b;
}
.inst-card-amt {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: ui-monospace, monospace, monospace;
}
.inst-card-amt.active,
.inst-card-amt:hover {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}
.inst-card-amt.recommended {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5);
}
.inst-card-calc {
    padding: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}
.inst-card-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.inst-card-calc-row:last-of-type {
    border-bottom: none;
}
.inst-card-calc-row strong {
    color: #f1f5f9;
    font-family: ui-monospace, monospace, monospace;
    font-size: 13px;
}
.inst-card-calc-row--recv strong {
    color: #34d399;
    font-size: 15px;
}
.inst-card-calc-row--target strong {
    color: var(--gold-soft);
}
.inst-card-verdict {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    padding: 10px 12px;
    border-radius: 10px;
}
.inst-card-verdict--ok {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.inst-card-verdict--warn {
    background: rgba(251, 191, 36, 0.1);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.inst-card-verdict--muted {
    color: #94a3b8;
    font-weight: 500;
}
@media (max-width: 480px) {
    .inst-pay-tab {
        flex: 1 1 100%;
    }
    .inst-wallet-input-row {
        flex-direction: column;
    }
    .inst-wallet-submit {
        width: 100%;
    }
    .inst-card-telco {
        flex: 1 1 calc(50% - 8px);
    }
    .inst-card-hero {
        flex-wrap: wrap;
    }
    .inst-card-target-pill {
        width: 100%;
        text-align: center;
    }
}

/* ── Nạp thẻ track_order (redesign) ── */
.inst-card-panel {
    padding: 0;
    background: transparent;
    border: none;
}
.inst-card-hero {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, oklch(52% 0.14 38 / 0.35), rgba(79, 70, 229, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.28);
}
.inst-card-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(52% 0.14 38 / 0.35);
    color: var(--gold-soft);
    font-size: 22px;
    flex-shrink: 0;
}
.inst-card-hero-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.inst-card-hero-sub {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}
.inst-card-hero-sub strong {
    color: var(--gold-soft);
}
.inst-card-target-pill {
    margin-left: auto;
    text-align: right;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    flex-shrink: 0;
}
.inst-card-target-pill span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6ee7b7;
    font-weight: 700;
}
.inst-card-target-pill strong {
    font-family: ui-monospace, monospace, monospace;
    font-size: 16px;
    color: #ecfdf5;
}
.inst-card-flow {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.inst-card-flow-step {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    padding: 8px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.inst-card-flow-step span {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 4px;
    background: rgba(255, 255, 255, 0.08);
}
.inst-card-flow-step--on {
    color: var(--gold-soft);
    border-color: rgba(167, 139, 250, 0.45);
    background: oklch(52% 0.14 38 / 0.35);
}
.inst-card-flow-step--on span {
    background: rgba(167, 139, 250, 0.35);
    color: var(--text-primary);
}
.inst-card-section-lbl {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 8px;
}
.inst-card-telco--vt.active { border-color: rgba(239, 68, 68, 0.55); background: rgba(239, 68, 68, 0.12); }
.inst-card-telco--vp.active { border-color: rgba(59, 130, 246, 0.55); background: rgba(59, 130, 246, 0.12); }
.inst-card-telco--mb.active { border-color: rgba(234, 179, 8, 0.55); background: rgba(234, 179, 8, 0.12); }
.inst-card-calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.inst-card-calc-highlight--recv {
    border-color: rgba(52, 211, 153, 0.45) !important;
    background: rgba(16, 185, 129, 0.14) !important;
}
.inst-card-calc-grid > div {
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}
.inst-card-calc-grid span {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.inst-card-calc-grid strong {
    font-family: ui-monospace, monospace, monospace;
    font-size: 13px;
    color: #f1f5f9;
}
.inst-card-calc-highlight {
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(16, 185, 129, 0.1) !important;
}
.inst-card-calc-highlight strong {
    color: #6ee7b7 !important;
}
.inst-card-fields-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.inst-card-field {
    display: flex;
    flex-direction: column;
}
.inst-card-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 6px;
}
.inst-card-field label i {
    color: #a78bfa;
    font-size: 11px;
}
.inst-card-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
    transition: filter 0.15s, transform 0.15s;
}
.inst-card-submit:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.inst-card-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.inst-mono {
    font-family: ui-monospace, monospace, monospace;
    font-size: 12px;
}
.inst-accent {
    color: var(--gold-soft) !important;
}
@media (max-width: 520px) {
    .inst-card-calc-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline copy button trong inst-bank-box */
.inst-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.inst-copy-btn:hover {
    border-color: oklch(72% 0.14 75 / 0.35);
    background: oklch(52% 0.14 38 / 0.35);
    color: var(--gold-soft);
}
.inst-bank-row--hl {
    background: oklch(52% 0.14 38 / 0.35);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 4px -4px;
    border: 1px solid var(--border);
}

/* —— Track page shell (landing / shop sync) —— */
body.track-page {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100dvh;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

body.track-page .bg-blob {
  display: none;
}

body.track-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, oklch(42% 0.08 55 / 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, oklch(38% 0.1 38 / 0.25), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, oklch(18% 0.03 50) 100%);
  animation: trackOrb 18s var(--track-ease) infinite;
}

.track-wrap {
  position: relative;
  z-index: 1;
}

.track-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: oklch(18% 0.03 50 / 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-med) var(--track-ease), border-color var(--dur-med) var(--track-ease);
}

.track-nav.is-scrolled {
  background: oklch(16% 0.03 48 / 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px oklch(8% 0.02 40 / 0.55);
}

.track-nav .nav-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: max(0px, env(safe-area-inset-top, 0px)) max(var(--space-md), env(safe-area-inset-right, 0px)) 0 max(var(--space-md), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.track-nav .logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.track-nav .logo-section img {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
}

.track-nav .logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.track-nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.track-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.track-nav__link:hover,
.track-nav__link.is-active {
  color: var(--gold);
}

.track-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.track-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: oklch(16% 0.03 48 / 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.track-dock__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.track-dock__item i {
  font-size: 1.15rem;
}

.track-dock__item.is-active,
.track-dock__item:hover {
  color: var(--gold);
}

/* —— Polish: rõ tầng, bớt rối —— */
body.track-page .wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--space-md) max(var(--space-md), env(safe-area-inset-left, 0px)) calc(var(--dock-h) + var(--space-2xl));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

body.track-page .page-header {
  padding: var(--space-lg) 0 var(--space-md);
}

body.track-page .logo-circle {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.25rem;
  animation: none;
  box-shadow: 0 0 0 6px oklch(72% 0.14 75 / 0.08);
  border-color: var(--border-strong);
  background: oklch(28% 0.04 55 / 0.65);
}

body.track-page .logo-circle i {
  color: var(--gold-soft);
}

body.track-page .page-header h1 {
  font-size: clamp(1.4rem, 4.5vw, 1.65rem);
}

body.track-page .page-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.track-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-xs);
}

.track-eyebrow--spaced {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

body.track-page #trackSearchForm {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

body.track-page .search-hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: oklch(20% 0.03 52 / 0.5);
  border: 1px solid var(--border);
}

.track-surface {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 16px 48px oklch(8% 0.02 40 / 0.35);
}

.track-surface__head {
  margin-bottom: var(--space-md);
}

.track-surface__head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-xs);
}

.track-surface__lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

body.track-page .search-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 16px 48px oklch(8% 0.02 40 / 0.35);
}

body.track-page .search-card::before {
  display: none;
}

body.track-page .search-lead {
  color: var(--gold-soft);
}

body.track-page .search-field-wrap .search-input {
  font-size: 1rem;
  min-height: 3rem;
  border-color: var(--border-strong);
  background: oklch(20% 0.03 52 / 0.8);
}

body.track-page .search-field-wrap .search-input:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px oklch(72% 0.14 75 / 0.15);
}

body.track-page .search-chip {
  background: oklch(24% 0.03 52 / 0.8);
  border-color: var(--border);
  color: var(--text-secondary);
}

body.track-page .search-chip:hover,
body.track-page .search-chip:focus-visible {
  border-color: var(--gold-soft);
  color: var(--gold);
}

body.track-page .status-hero {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  backdrop-filter: none;
  box-shadow: 0 20px 56px oklch(8% 0.02 40 / 0.4);
  padding: var(--space-xl) var(--space-lg);
}

body.track-page .status-icon-big {
  animation: none;
  width: 4.5rem;
  height: 4.5rem;
  box-shadow: 0 8px 28px oklch(8% 0.02 40 / 0.35);
}

body.track-page .status-icon-big > i {
  --fa-animation-duration: 0s;
  animation: none !important;
}

body.track-page .status-hero--confirmed .status-icon-big,
body.track-page .status-hero--pending .status-icon-big,
body.track-page .status-hero--processing .status-icon-big,
body.track-page .status-hero--shipped .status-icon-big,
body.track-page .status-hero--completed .status-icon-big,
body.track-page .status-hero--cancelled .status-icon-big,
body.track-page .status-hero--refunded .status-icon-big {
  animation: none;
}

body.track-page .status-label {
  font-size: 1.35rem;
  animation: none !important;
}

body.track-page .hero-pill {
  margin-top: var(--space-md);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: oklch(24% 0.03 52 / 0.8);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

body.track-page .card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  backdrop-filter: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px oklch(8% 0.02 40 / 0.28);
}

body.track-page .card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

body.track-page .alert {
  border-radius: var(--radius-md);
}

/* Đơn của bạn — polish v2 */
body.track-page .order-pick-panel {
  padding: var(--space-lg) var(--space-md);
}

body.track-page .order-pick-panel__intro {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

body.track-page .order-pick-panel__intro h2 {
  font-size: 1.35rem;
  gap: var(--space-sm);
}

body.track-page .order-pick-panel__count {
  background: var(--terracotta);
  color: oklch(96% 0.02 85);
  border: none;
  font-size: 0.75rem;
  min-width: 1.5rem;
  height: 1.5rem;
}

body.track-page .order-pick-panel__sub {
  font-size: 0.8125rem;
  margin-top: var(--space-xs);
}

body.track-page .order-pick-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: 0;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: oklch(14% 0.025 48 / 0.85);
  border: 1px solid var(--border);
}

body.track-page .order-pick-list__item {
  position: relative;
}

body.track-page .order-pick-list__item + .order-pick-list__item::before {
  content: none;
}

body.track-page .order-pick-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 0 oklch(10% 0.02 45 / 0.5),
    0 12px 32px oklch(8% 0.02 40 / 0.38);
  overflow: hidden;
}

/* Vạch trên full width — phân biệt trạng thái, không dùng viền trái */
body.track-page .order-pick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: oklch(38% 0.04 55 / 0.8);
  z-index: 1;
  pointer-events: none;
}

body.track-page .order-pick-card--pending::before {
  background: oklch(70% 0.12 68);
}

body.track-page .order-pick-card--confirmed::before,
body.track-page .order-pick-card--processing::before {
  background: var(--gold-soft);
}

body.track-page .order-pick-card--shipped::before {
  background: oklch(68% 0.12 55);
}

body.track-page .order-pick-card--completed::before {
  background: var(--success);
}

body.track-page .order-pick-card--cancelled::before {
  background: var(--danger);
}

body.track-page .order-pick-card--refunded::before {
  background: oklch(62% 0.1 340);
}

body.track-page .order-pick-card__index {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: oklch(20% 0.03 52 / 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 8px oklch(8% 0.02 40 / 0.35);
  pointer-events: none;
}

body.track-page .order-pick-form:hover .order-pick-card,
body.track-page .order-pick-form:focus-within .order-pick-card {
  border-color: oklch(72% 0.14 75 / 0.55);
  box-shadow:
    0 6px 0 oklch(10% 0.02 45 / 0.45),
    0 20px 48px oklch(8% 0.02 40 / 0.5),
    0 0 0 1px oklch(72% 0.14 75 / 0.15);
  transform: translateY(-4px);
}

body.track-page .order-pick-card--busy {
  pointer-events: none;
  opacity: 0.88;
}

body.track-page .order-pick-card--busy::after {
  content: 'Đang mở đơn…';
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  background: oklch(14% 0.025 48 / 0.72);
  border-radius: inherit;
}

body.track-page .order-pick-card__body {
  padding: calc(var(--space-md) + 4px) var(--space-md) var(--space-sm);
  padding-left: calc(var(--space-md) + 1.75rem);
  gap: var(--space-sm);
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

body.track-page .order-pick-card__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-sm) 0;
  margin-top: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

body.track-page .order-pick-card__id {
  font-family: ui-monospace, monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

body.track-page .order-pick-card__amount {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

body.track-page .order-pick-card__subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

body.track-page .order-pick-pill {
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

body.track-page .order-pick-pill i {
  display: none;
}

body.track-page .order-pick-card__when::before,
body.track-page .order-pick-card__pm::before {
  content: '·';
  margin-right: 0.35rem;
  opacity: 0.5;
}

body.track-page .order-pick-card__pm {
  color: var(--gold-soft);
  font-weight: 600;
}

body.track-page .order-pick-card__shop {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-left: 0.1rem;
}

body.track-page .order-pick-card__shop::before {
  display: none;
}

body.track-page .order-pick-plan {
  padding: var(--space-sm);
  background: oklch(18% 0.03 50 / 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 0.5rem;
}

body.track-page .order-pick-plan__bar {
  height: 5px;
  background: oklch(28% 0.04 55 / 0.9);
}

body.track-page .order-pick-plan__fill {
  background: linear-gradient(90deg, var(--terracotta), var(--gold-soft));
}

body.track-page .order-pick-plan__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

body.track-page .order-pick-plan__line strong {
  color: var(--text-primary);
}

body.track-page .order-pick-plan__flag {
  margin-left: auto;
  font-weight: 600;
  color: var(--gold-soft);
}

body.track-page .order-pick-plan__flag--ok {
  color: var(--success);
}

body.track-page .order-pick-card__foot {
  padding: var(--space-sm) var(--space-md);
  padding-left: calc(var(--space-md) + 1.75rem);
  background: oklch(18% 0.03 50 / 0.75);
  border-top: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  gap: var(--space-sm);
}

body.track-page .order-pick-cert {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0;
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.track-page .order-pick-cert:hover {
  color: var(--gold);
  background: none;
  filter: none;
}

body.track-page .order-pick-card__cta {
  margin-left: auto;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--terracotta);
  color: oklch(96% 0.02 85);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid oklch(48% 0.12 38);
  box-shadow: 0 6px 20px oklch(42% 0.12 38 / 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

body.track-page .order-pick-card__cta:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

body.track-page .order-pick-card__cta i {
  font-size: 0.7rem;
  opacity: 1;
  transition: transform 0.2s var(--track-ease-out);
}

body.track-page .order-pick-back {
  margin-top: var(--space-md);
}

@media (max-width: 380px) {
  body.track-page .order-pick-list {
    padding: var(--space-sm);
    gap: var(--space-md);
  }

  body.track-page .order-pick-card__body,
  body.track-page .order-pick-card__foot {
    padding-left: var(--space-md);
  }

  body.track-page .order-pick-card__index {
    position: static;
    align-self: flex-start;
    margin-bottom: var(--space-xs);
  }

  body.track-page .order-pick-card__body {
    display: flex;
    flex-direction: column;
  }

  body.track-page .order-pick-card__hero {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }

  body.track-page .order-pick-card__amount {
    font-size: 1.25rem;
  }

  body.track-page .order-pick-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  body.track-page .order-pick-card__cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  body.track-page .order-pick-plan__flag {
    margin-left: 0;
    width: 100%;
  }
}

body.track-page .btn-primary {
  background: var(--terracotta);
  border: 1px solid oklch(48% 0.12 38);
  color: oklch(96% 0.02 85);
  box-shadow: 0 10px 28px oklch(42% 0.12 38 / 0.4);
}

body.track-page .btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

body.track-page .bank-pay-shell {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
}

@media (min-width: 768px) {
  :root {
    --dock-h: 0px;
  }

  body.track-page {
    padding-bottom: 0;
  }

  .track-nav__links {
    display: flex;
  }

  .track-dock {
    display: none;
  }

  body.track-page .wrap {
    max-width: 40rem;
    padding-bottom: var(--space-2xl);
  }
}

@media (min-width: 900px) {
  body.track-page .wrap {
    max-width: 42rem;
  }
}

