/* ========== 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;
}

/* ========== 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;
}

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

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

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

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

.timeline-dot {
    width: 32px;
    height: 32px;
    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 {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(201, 169, 110, 0.1); }
}

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

.timeline-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

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

.timeline-step.active .timeline-info h4 {
    color: var(--gold);
}

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

/* ========== 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) {
    .timeline {
        padding: 24px 20px;
    }
}
