/* ==========================================================================
   AHMADIYAD LUXURY LIVE ORDER TRACKING STYLES
   100% Mobile-First & Pixel-Perfect Responsive Masterpiece
   ========================================================================== */

/* Strict Zero-Overflow */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}
*, *::before, *::after {
    box-sizing: border-box !important;
}

.track-page-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 24px 16px 80px;
    width: 100%;
}

/* Header Hero Banner */
.track-hero-card {
    background: linear-gradient(135deg, #2D0B14 0%, #15050A 100%);
    border-radius: 18px;
    padding: 40px 24px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 26px;
    box-shadow: 0 16px 40px rgba(45, 11, 20, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.track-hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(213, 0, 109, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.track-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.track-hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* Search Form - Wide, Spacious & Luxurious */
.track-search-form {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    background: #FFFFFF;
    padding: 6px 8px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(213, 0, 109, 0.25);
    width: 100%;
}

.track-search-input {
    flex: 1;
    height: 52px;
    border: none;
    outline: none;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #0F172A;
    background: transparent;
    width: 100%;
}

.track-search-input::placeholder {
    color: #94A3B8;
    font-size: 14px;
    font-weight: 400;
}

.track-search-btn {
    height: 52px;
    padding: 0 28px;
    background: linear-gradient(135deg, var(--secondary, #D5006D), #FF4081);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(213, 0, 109, 0.35);
}

.track-search-btn:hover {
    box-shadow: 0 6px 20px rgba(213, 0, 109, 0.5);
    transform: translateY(-1px);
}

/* Main Order Card */
.track-result-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #F1E8EC;
    box-shadow: 0 8px 30px rgba(45, 11, 20, 0.06);
    padding: 26px;
    margin-bottom: 24px;
    width: 100%;
}

/* Order Meta Bar */
.track-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F8EEF2;
    margin-bottom: 24px;
}

.track-order-num {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 3px;
}

.track-order-date {
    font-size: 12.5px;
    color: #64748B;
}

.track-status-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Visual Timeline Tracker */
.tracker-timeline-wrap {
    padding: 10px 0 24px;
    width: 100%;
}

.tracker-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 0 20px;
}

.tracker-timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    z-index: 1;
}

.tracker-timeline-progress {
    position: absolute;
    top: 22px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #D5006D, #FF4081);
    border-radius: 4px;
    z-index: 2;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tracker-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.tracker-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #94A3B8;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tracker-step.active .tracker-node {
    background: #D5006D;
    border-color: #D5006D;
    color: #FFFFFF;
    box-shadow: 0 0 0 5px rgba(213, 0, 109, 0.2), 0 6px 14px rgba(213, 0, 109, 0.4);
    transform: scale(1.1);
}

.tracker-step.completed .tracker-node {
    background: #059669;
    border-color: #059669;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.tracker-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 2px;
    line-height: 1.3;
}

.tracker-step.active .tracker-title {
    color: #D5006D;
    font-weight: 800;
}

.tracker-step.completed .tracker-title {
    color: #0F172A;
}

.tracker-subtitle {
    font-size: 11px;
    color: #94A3B8;
}

/* Cancelled Box */
.tracker-cancelled-box {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #991B1B;
    margin: 10px 0 20px;
}

/* Grid for Details */
.track-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}

.track-card-section {
    background: #FAF8F9;
    border: 1px solid #F1E2E8;
    border-radius: 14px;
    padding: 20px;
    width: 100%;
}

.track-section-heading {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #EFE4E8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #F1E8EC;
}

.track-item-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.track-item-thumb {
    width: 48px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    background: #FFFFFF;
    flex-shrink: 0;
}

/* ==========================================================================
   MOBILE & TABLET OPTIMIZATIONS (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .track-page-container {
        padding: 16px 12px 60px;
    }

    .track-hero-card {
        padding: 26px 16px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .track-hero-title {
        font-size: 21px;
    }

    .track-hero-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    /* Mobile Search: Spacious, Wide and Touch Friendly */
    .track-search-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: #FFFFFF;
        padding: 14px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        border: 2px solid #FFD1DC;
        width: 100%;
        box-sizing: border-box;
    }

    .track-search-input {
        width: 100% !important;
        height: 56px !important;
        min-height: 56px !important;
        line-height: 56px !important;
        background: #FFFFFF !important;
        border: 2px solid #E2E8F0 !important;
        border-radius: 12px !important;
        padding: 0 18px 0 46px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #0F172A !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .track-search-input:focus {
        border-color: var(--secondary, #D5006D) !important;
        background: #FFFFFF !important;
        box-shadow: 0 0 0 4px rgba(213, 0, 109, 0.15) !important;
    }

    .track-search-btn {
        width: 100% !important;
        height: 56px !important;
        min-height: 56px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .track-result-card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .track-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Vertical Timeline on Mobile */
    .tracker-timeline {
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        padding-left: 14px;
        gap: 18px;
    }

    .tracker-timeline::before {
        top: 10px;
        bottom: 10px;
        left: 33px;
        width: 3px;
        height: auto;
        right: auto;
    }

    .tracker-timeline-progress {
        top: 10px;
        left: 33px;
        width: 3px !important;
    }

    .tracker-step {
        flex-direction: row;
        width: 100%;
        text-align: left;
        align-items: center;
        gap: 14px;
    }

    .tracker-node {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .tracker-title {
        font-size: 13px;
        margin-bottom: 2px;
    }
}
