/* ========== TRACKING WRAPPER ========== */
.track-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.track-header {
    text-align: center;
    margin-bottom: 32px;
}

.track-header .order-num {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 500;
}

.track-header .track-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ========== CURRENT STATUS BANNER ========== */
.current-status-banner {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), rgba(201, 169, 110, 0.05));
    border: 2px solid var(--gold);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
}

.current-status-banner .status-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: statusPulse 2s ease-in-out infinite;
}

.current-status-banner .status-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-primary);
}

.current-status-banner .status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.current-status-banner .status-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(201, 169, 110, 0);
    }
}

/* ========== STATUS TIMELINE ========== */
.timeline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 32px;
    transition: all 0.3s ease;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed::before {
    background: var(--gold);
}

.timeline-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.5s ease;
}

.timeline-step.completed .timeline-dot {
    border-color: var(--gold);
    background: var(--gold);
}

.timeline-step.completed .timeline-dot svg {
    color: var(--bg-primary);
}

.timeline-step.active .timeline-dot {
    width: 56px;
    height: 56px;
    margin-left: -4px;
    border-color: var(--gold);
    border-width: 3px;
    background: rgba(201, 169, 110, 0.15);
    box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.2);
    animation: activePulse 2s ease-in-out infinite;
}

.timeline-step.active .timeline-dot svg {
    color: var(--gold);
    width: 24px;
    height: 24px;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.2);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(201, 169, 110, 0.1);
    }
}

.timeline-dot svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.timeline-info {
    padding-top: 4px;
}

.timeline-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-step.completed .timeline-info h4 {
    color: var(--text-primary);
}

.timeline-step.active .timeline-info h4 {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-step.active .timeline-info {
    padding-top: 8px;
}

.current-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.timeline-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.timeline-step.active .timeline-info p {
    color: var(--text-secondary);
}

/* ========== STATUS MESSAGE ========== */
.status-message {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.status-message.served {
    border-left-color: var(--success);
}

/* ========== ORDER ITEMS ========== */
.track-items {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.track-items h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.track-item {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== RECENT ORDERS LIST ========== */
.orders-list {
    max-width: 600px;
    margin: 0 auto;
}

.order-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.order-list-item:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.order-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-list-num {
    color: var(--gold);
    font-weight: 500;
}

.order-list-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-pill {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.status-pill.received {
    background: rgba(201, 169, 110, 0.15);
    color: var(--gold);
}

.status-pill.preparing {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.status-pill.almost_ready {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.status-pill.served {
    background: rgba(76, 175, 80, 0.25);
    color: var(--success);
}

.status-pill.cancelled {
    background: rgba(229, 57, 53, 0.15);
    color: var(--danger);
}

.track-actions {
    text-align: center;
    margin-top: 24px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .current-status-banner {
        padding: 16px 20px;
    }

    .current-status-banner .status-icon {
        width: 44px;
        height: 44px;
    }

    .current-status-banner .status-icon svg {
        width: 22px;
        height: 22px;
    }

    .current-status-banner .status-text {
        font-size: 1.2rem;
    }

    .timeline {
        padding: 24px 16px;
    }

    .timeline-step {
        gap: 12px;
        padding-bottom: 28px;
    }

    .timeline-dot {
        width: 40px;
        height: 40px;
    }

    .timeline-dot svg {
        width: 18px;
        height: 18px;
    }

    .timeline-step::before {
        left: 19px;
        top: 40px;
    }

    .timeline-step.active .timeline-dot {
        width: 48px;
        height: 48px;
        margin-left: -4px;
    }

    .timeline-step.active .timeline-dot svg {
        width: 22px;
        height: 22px;
    }

    .timeline-info h4 {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .timeline-step.active .timeline-info h4 {
        font-size: 1rem;
    }

    .current-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .timeline-info p {
        font-size: 0.8rem;
    }
}
