/* ==========================================================================
   TransVIP First Inc. — VIP Passenger Tracking (track.css)
   Aesthetic: Luxury Dark Glassmorphism, Platinum Chrome & Neon Cyan
   Instant Loading, Zero-Lag Architecture
   ========================================================================== */

:root {
    --trk-bg: #070d1e;
    --trk-card: rgba(13, 25, 54, 0.75);
    --trk-border: rgba(255, 255, 255, 0.12);
    
    --blue-primary: #0084ff;
    --cyan-accent: #00d2ff;
    --emerald: #10b981;
    --amber: #f59e0b;
    
    --text-white: #ffffff;
    --text-silver: #cbd5e1;
    --text-muted: #8899ac;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
}

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

body {
    background: radial-gradient(circle at 50% 0%, #0d1e45, var(--trk-bg) 65%);
    color: var(--text-white);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    padding: 1.5rem 1rem 3rem 1rem;
    -webkit-font-smoothing: antialiased;
}

.track-container {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Header */
.track-header {
    text-align: center;
    padding-bottom: 0.5rem;
}

.track-header img {
    height: 32px;
    width: auto;
    margin-bottom: 0.5rem;
}

.track-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.track-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Search Box when no code */
.search-track-box {
    background: var(--trk-card);
    border: 1px solid var(--trk-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.track-input {
    width: 100%;
    background: rgba(7, 13, 30, 0.8);
    border: 1px solid var(--trk-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    text-transform: uppercase;
    outline: none;
}

.track-input:focus {
    border-color: var(--cyan-accent);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
}

.btn-track-submit {
    background: linear-gradient(135deg, var(--blue-primary), #0056b3);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 132, 255, 0.4);
}

/* Card */
.track-card {
    background: var(--trk-card);
    border: 1px solid var(--trk-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.track-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
}

.code-pill {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 800;
    color: var(--cyan-accent);
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.35);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.status-live-pill {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Sequential VIP Timeline */
.vip-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    padding-left: 1.75rem;
}

.vip-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.timeline-step {
    position: relative;
    opacity: 0.45;
    transition: all 0.3s;
}

.timeline-step.active, .timeline-step.completed {
    opacity: 1;
}

.step-dot {
    position: absolute;
    left: -1.75rem;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d1a38;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}

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

.timeline-step.active .step-dot {
    background: var(--cyan-accent);
    border-color: #fff;
    box-shadow: 0 0 12px var(--cyan-accent);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.step-label strong {
    display: block;
    font-size: 0.85rem;
    color: #fff;
}

.step-label span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Chauffeur Card */
.chauffeur-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.driver-info-side {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.driver-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyan-accent);
}

.driver-txt strong {
    font-size: 0.95rem;
    color: #fff;
    display: block;
}

.driver-txt span {
    font-size: 0.72rem;
    color: var(--cyan-accent);
    font-weight: 600;
}

.btn-wa-driver {
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Curb Button */
.btn-curb-ping {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-curb-ping:active {
    transform: scale(0.98);
}
