/* ============================================================ */
/* TRACK ORDER PAGE — loaded after styles.css + order-styles.css */
/* Reuses --o-* variables from order-styles.css for a consistent  */
/* dark, conversion-grade look.                                   */
/* ============================================================ */

.track-section { padding-top: 1.5rem; }

.track-layout {
    display: grid;
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
    gap: 24px;
    margin-top: 2rem;
}

.track-lookup-hint {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--o-paper-mute);
    text-align: center;
    line-height: 1.5;
}
.track-lookup-hint a { color: var(--o-pulse-bright); text-decoration: none; }
.track-lookup-hint a:hover { text-decoration: underline; }

.track-error-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 93, 93, 0.1);
    border: 1px solid rgba(255, 93, 93, 0.3);
    color: #ffb3b3;
    font-size: 0.85rem;
    line-height: 1.5;
}
.track-error-banner:empty { display: none; }

/* ---------- Result card ---------- */
.track-result {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.track-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.track-result-code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--o-paper);
}
.track-result-sub { margin-top: 4px; font-size: 0.85rem; color: var(--o-paper-mute); }
.track-result-total { font-size: 1.3rem; font-weight: 800; color: var(--o-pulse-bright); }

/* ---------- Timeline ---------- */
.track-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 68px;
    text-align: center;
}
.track-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--o-line-strong);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--o-ink);
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.track-step.done .track-step-dot {
    background: var(--o-success);
    border-color: var(--o-success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.track-step.active .track-step-dot {
    border-color: var(--o-pulse-bright);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.18);
    animation: track-pulse 1.8s ease-in-out infinite;
}
.track-step-label {
    font-size: 0.68rem;
    line-height: 1.3;
    color: var(--o-paper-mute);
    font-weight: 600;
}
.track-step.done .track-step-label,
.track-step.active .track-step-label { color: var(--o-paper); }

.track-step-line {
    flex: 1 1 auto;
    height: 2px;
    background: var(--o-line-strong);
    margin-top: 13px;
    min-width: 8px;
}

@keyframes track-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(77, 163, 255, 0.1); }
}

/* ---------- Status banners ---------- */
.track-info-note {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--o-line);
    color: var(--o-paper-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}
.track-info-note.track-info-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--o-success-bright);
}

.track-cancel-banner,
.track-customs-banner,
.track-pending-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
}
.track-cancel-banner {
    background: rgba(255, 93, 93, 0.08);
    border: 1px solid rgba(255, 93, 93, 0.3);
    color: #ffb3b3;
}
.track-cancel-banner p { margin: 4px 0 0; font-size: 0.82rem; color: var(--o-paper-mute); }

.track-customs-banner {
    background: rgba(255, 184, 74, 0.08);
    border: 1px solid rgba(255, 184, 74, 0.35);
}
.track-customs-icon { font-size: 1.6rem; line-height: 1; }
.track-customs-body { flex: 1; min-width: 0; }
.track-customs-body strong { color: var(--o-paper); font-size: 0.95rem; }
.track-customs-body p { margin: 6px 0 10px; font-size: 0.85rem; color: var(--o-paper-dim); line-height: 1.5; }
.track-customs-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--o-warn);
    margin-bottom: 12px;
}

.track-pending-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--o-line);
}

.track-pay-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1.4rem;
    background: linear-gradient(135deg, var(--o-tg), var(--o-tg-bright));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.track-pay-now-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(34, 158, 217, 0.6);
}

.track-help-note {
    font-size: 0.8rem;
    color: var(--o-paper-mute);
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid var(--o-line);
}
.track-help-note a { color: var(--o-pulse-bright); text-decoration: none; }
.track-help-note a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .track-step { width: 52px; }
    .track-step-label { font-size: 0.6rem; }
}
