header {
    border-radius: 12px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.detail-viewport {
    min-height: calc(100vh - 88px);
    background: var(--hero-mask), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=2000');
    display: flex;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 65px 2px 10px;
}

.hero, .main-banner {
    padding: 65px 2px 10px;
}

.selection-layout, .picker-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.selection-left, .picker-lft-col, .selection-right, .picker-rgt-col {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #fff;
    padding: 20px;
    padding-top: 20px;
    height: 100%;
    min-height: calc(100vh - 160px);
}
.selection-right, .picker-rgt-col{
    padding: 10px;
}

.selection-left, .picker-lft-col {
    width: calc(100% - 330px);
}

.content-limiter, .inner-bound {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-limiter, .inner-bound {
    max-width: 960px;
}
.w100, .w-full{
    width: 100%;
    max-width: 100%;
}

.left-ad-area {
    width: 700px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: 1px dashed rgba(255,255,255,0.4);
    border-radius: 12px;
    color: rgba(255,255,255,0.5);
}

.dff, .flex-col-box{
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    position: relative;
}

.tracking-summary, .track-sum-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    position: sticky;
    top: 0;
    z-index: 15;
    background: rgba(25, 26, 30, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
.content_box, .info-panel-box{
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: calc(100vh - 200px);
    overflow-x: hidden;
    overflow-y: auto;
    /* scrollbar styling */
    scrollbar-width: thin; /* for Firefox (approx) */
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    width: 100%;
}

/* WebKit browsers: set exact 2px width */
.content_box, .info-panel-box::-webkit-scrollbar {
    width: 2px;
}
.content_box, .info-panel-box::-webkit-scrollbar-track {
    background: transparent;
}
.content_box, .info-panel-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}



.summary-left, .sum-lft-part { display: flex; align-items: center; gap: 18px; }

.order-icon, .pkg-icon-wrap { 
    width: 52px; 
    height: 52px; 
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.2);
}

.tracking-label, .track-lbl-txt {
    font-size: 11px; 
    color: rgba(255,255,255,0.5); 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.order-num, .track-num-val { 
    font-size: 22px; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    /* single-line truncation with ellipsis */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 195px;
 }

.status-badge, .state-badge-wrap {
    padding: 8px 22px;
    background: linear-gradient(135deg, #00C853 0%, #009624 100%);
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 200, 83, 0.3), inset 0 1px 1px rgba(255,255,255,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.timeline-container, .hist-container {
    position: relative;
    border-radius: 16px;
    padding: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    height: calc(100% - 83px);
    padding-bottom: 250px;
}

.timeline-container, .hist-container::-webkit-scrollbar {
    width: 2px;
}
.timeline-container, .hist-container::-webkit-scrollbar-track {
    background: transparent;
}
.timeline-container, .hist-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.timeline-mask, .hist-mask-layer {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8) 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px;
    z-index: 10;
    display: none;
    height: 100%;
    padding-bottom: 200px;
}

.btn-more, .action-view-more {
    padding: 12px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    background-color: #1a73e8;
}
.btn-more, .action-view-more:hover { background: var(--primary); border-color: var(--primary); }

.list-item {
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 10px;
    padding-left: 25px;
    position: relative;
}
.list-item::before {
    content: "";
    position: absolute;
    left: -9px; top: 0;
    width: 12px; height: 12px;
    background: #333;
    border: 2px solid var(--primary);
    border-radius: 50%;
}
.list-item.latest::before { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.item-time { font-size: 13px; color: #aaa; width: 140px; flex-shrink: 0; }
.item-desc { font-size: 15px; line-height: 1.5; color: #eee; }

/* Additional timeline styles copied from main css to match rendering */
.i_r_t{
    line-height: 12px;
    font-size: 12px;
    color: #b6b8bb;
    font-weight: 700;
    position: relative;
    margin-bottom: 9px;
}
.serach-content-info, .track-res-info .nr, .hist-list-wrap li{
    display: flex;
    justify-content: start;
    align-items: center;
    border: none;
    min-height: 100px;
}

.i_r_b{
    font-size: 13px;
    color: #fff;
    line-height: 20px;
    text-align: left;
}
.i_l{
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .3);
    backdrop-filter: blur(8px);
    margin-right: 15px;
    position: relative;
    padding: 3px;
    font-weight: 700;
}
.serach-content-info, .track-res-info .nr, .hist-list-wrap p{
    margin: 0;
}
.serach-content-info, .track-res-info .nr, .hist-list-wrap.s1 li:nth-last-child(2) .i_l,.serach-content-info, .track-res-info .nr, .hist-list-wrap.s2 li:nth-last-child(2) .i_l{
    background-color: #065ff5;
    color: #fff;
}
.serach-content-info, .track-res-info .nr, .hist-list-wrap.s3 li:last-child .i_l{
    background-color: #065ff5;
    color: #fff;
}
.i_l::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 55px;
    background-color: #909398;
}
.i_l::before{
    content: '';
    position: absolute;
    top: calc(100% + 17px);
    left: calc(50% - 8px);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #909398;
    margin: 0px;
}
.serach-content-info, .track-res-info .nr, .hist-list-wrap li:last-child .i_l::after,.serach-content-info, .track-res-info .nr, .hist-list-wrap li:last-child .i_l::before{
    display: none;
}
.dis{
    display: flex;
    justify-content: center;
    align-items: center;
}
.g_icon{
    position: absolute;
    right: 0px;
    top: 0px;
}
.trk_icon{
    display: none;
    width: 28px;
    height: auto;
    border-radius: 4px;
}
.i_r{
    width: calc(100% - 60px);
}
.loading_box, .spin-box-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading_box, .spin-box-wrap img{
    width: 35px;
    height: auto;
}

.recognition-card, .detect-panel {
    padding: 70px 50px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(60px); -webkit-backdrop-filter: blur(60px);
    min-height: 480px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.recognition-card, .detect-panel::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.recognition-card, .detect-panel h2 { color: #fff; font-weight: 850; letter-spacing: -0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.recognition-card, .detect-panel p { color: rgba(255,255,255,0.6); font-size: 16px; font-weight: 500; }

.loader-wrap, .spin-container {
    width: 100%; max-width: 480px; margin-bottom: 10px; margin-top: 10px;
    display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1;
}

.radar-loader, .scan-anim {
    width: 90px; height: 90px; position: relative; margin-bottom: 50px;
    display: flex; align-items: center; justify-content: center;
}
.radar-loader, .scan-anim .radar-ring, .scan-circle {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.4);
    animation: radarPulse 2.5s cubic-bezier(0.2, 0, 0, 1) infinite;
    box-shadow: 0 0 20px inset rgba(37,99,235,0.2);
}
.radar-loader, .scan-anim .radar-ring, .scan-circle:nth-child(2) { animation-delay: 0.8s; }
.radar-loader, .scan-anim .radar-ring, .scan-circle:nth-child(3) { animation-delay: 1.6s; }
.radar-loader, .scan-anim .radar-core, .scan-center {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 40px rgba(37,99,235,0.6), inset 0 2px 4px rgba(255,255,255,0.4);
    position: relative; z-index: 2;
}
.radar-loader, .scan-anim .radar-core, .scan-center::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(255,255,255,0.8) 100%);
    animation: radarSpin 2s linear infinite;
    mask: radial-gradient(transparent 60%, black 61%);
    -webkit-mask: radial-gradient(transparent 60%, black 61%);
}
@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 1; border-width: 2px; }
    100% { transform: scale(2); opacity: 0; border-width: 0px; }
}
@keyframes radarSpin { 100% { transform: rotate(360deg); } }

.progress-track, .bar-bg {
    height: 4px; width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    overflow: visible;
    margin-bottom: 20px;
    position: relative;
}
.progress-fill, .bar-fg {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    border-radius: 100px;
    transition: width 3s cubic-bezier(0.1, 0, 0.3, 1);
    position: relative;
    box-shadow: 0 0 20px rgba(96,165,250,0.6);
}
.progress-fill, .bar-fg::after {
    content: ''; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px;
    background: #fff; border-radius: 50%; box-shadow: 0 0 16px 4px rgba(96,165,250,0.8);
}
#loadText {
    font-weight: 800; color: #fff; font-size: 18px;
    font-variant-numeric: tabular-nums; letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.carrier-results, .courier-outcomes {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease forwards;
}
.carrier-card_s, .courier-box-sm {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}
#header-select { display: none; }
.loading_icon, .spin-loader-img { width: 30px; height: 30px; }
.carrier-card_s, .courier-box-sm:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}
/* .carrier-card_s, .courier-box-sm.active_carrier, .selected-courier, .carrier-card_s, .courier-box-sm.carrier_item, .courier-itm {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
} */
.carrier-card_s, .courier-box-sm .c-icon, .c-logo-wrap {
    width: 36px; height: 36px; background: rgba(255,255,255,0.1);
    border-radius: 6px; margin-right: 12px; flex-shrink: 0;
}
.carrier-card_s, .courier-box-sm span { font-weight: 600; font-size: 14px; color: #eee; }
.c-icon, .c-logo-wrap img { width: 100%; height: 100%; border-radius: 5px; object-fit: cover; }
.btn-submit, .action-submit {
    display: none;
    padding: 14px 70px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}
.btn-submit, .action-submit:hover { transform: scale(1.05); }

.left-ad-area {
    width: 700px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.3);
}
.posa, .abs-pos-wrap{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(18px);
    height: auto;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.selection-right, .picker-rgt-col {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-ad { width: 300px; height: 250px; background: #000; border-radius: 8px; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: #444; }
.faq-title { font-size: 18px; margin-bottom: 15px; color: var(--primary); }
.faq-item { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; text-align: left;display: block; }
.faq-item b { font-size: 14px; color: #fff; }
.faq-item p { font-size: 13px; color: #999; margin-top: 5px; line-height: 1.5; }

.loading_box, .spin-box-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

:root {
    --accent-blue: #eef6ff;
    --accent-blue-text: #007aff;
    --accent-purple: #f8f7ff;
    --accent-purple-text: #6366f1;
    --accent-gold: #fffcf0;
    --accent-gold-text: #b7a018;
    --accent-green: #f2faf5;
    --accent-green-text: #34c759;
    --text-main: #1d1d1f;
    --text-sub: #6e6e73;
    --card-border: rgba(0, 0, 0, 0.05);
}

.modern-section { padding: 80px 0; background: #fff; }
.container-960 { max-width: 1160px; margin: 0 auto; padding: 0 25px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.glass-description {
    grid-column: span 2;
    padding: 40px;
    background: linear-gradient(145deg, #ffffff, #fcfcfd);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.info-tile {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
}
.info-tile:hover { transform: translateY(-5px); }

.tile-label { font-size: 11px; font-weight: 800; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }
.tile-content { font-size: 15px; color: var(--text-main); font-weight: 600; line-height: 1.4; }



.status-stack { display: flex; flex-direction: column; gap: 15px; }
.status-item {
    display: flex;
    align-items: center;
    padding: 25px 35px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}
.status-icon { width: 44px; height: 44px; border-radius: 12px; margin-right: 20px; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
@media (max-height:900px) {
    .recognition-card, .detect-panel {
        min-height: 330px;
        padding: 10px 50px;
    }
}
@media (max-height:860px) {
    .recognition-card, .detect-panel{
        min-height: 300px;
        padding: 5px;
    }
    .selection-left, .picker-lft-col, .selection-right, .picker-rgt-col{
        min-height: calc(100vh - 88px);
    }
    .dff, .flex-col-box{
        height: calc(100vh - 120px);
    }
    #header-select p{
        margin-bottom: 25px !important;
    }
    .carrier-results, .courier-outcomes{
        margin-bottom: 20px;
    }
}
@media (max-width: 1024px) {
    .selection-layout, .picker-layout { flex-direction: column; }
    .selection-left, .picker-lft-col, .selection-right, .picker-rgt-col { width: 100%; }
    .left-ad-area { width: 100%; }
}

@media (max-width: 768px) {
    .tile-content table tr, .tile-content table td,.tile-content table th{
        padding: 5px !important;
    }
    .info-tile{
        padding: 10px;
        max-width: 100%;
        overflow: hidden;
    }
    .serach-content-info, .track-res-info .nr, .hist-list-wrap li:nth-child(8) .i_l::before,.serach-content-info, .track-res-info .nr, .hist-list-wrap li:nth-child(18) .i_l::before,.serach-content-info, .track-res-info .nr, .hist-list-wrap li:nth-child(8) .i_l::after,.serach-content-info, .track-res-info .nr, .hist-list-wrap li:nth-child(18) .i_l::after{
        display: none;
    }
    .status-badge, .state-badge-wrap{
        padding: 6px 12px;
        font-size: 11px;
        min-width: 60px;
    }
    .timeline-mask, .hist-mask-layer{
        padding-bottom: 0;
    }
    .faq_item{
        grid-template-columns: 1fr !important;
    }
    .info-strip{
        grid-template-columns: repeat(1, 1fr);
    }
    #loading-header h2,#header-select h2{
        font-size: 20px !important;
    }
    .carrier-card_s, .courier-box-sm{
        padding: 6px;
    }
    #header-select p{
        margin-bottom: 10px !important;
    }
    .carrier-results, .courier-outcomes{
        margin-bottom: 20px;
        gap: 6px;
    }
    .hero, .main-banner{
        padding: 40px 2px 10px;
    }
    .selection-left, .picker-lft-col, .selection-right, .picker-rgt-col{
        padding: 3px;
        min-height: auto;
        height: auto;
    }
    .recognition-card, .detect-panel{
        min-height: auto;
        padding: 23px 8px;
    }
    .carrier-card_s, .courier-box-sm span{
        font-size: 12px;
    }
    .carrier-card_s, .courier-box-sm .c-icon, .c-logo-wrap{
        margin-right: 4px;
    }
    .left-ad-area{
        margin: 0;
    }
    .dff, .flex-col-box,.timeline-container, .hist-container{
        height: auto;
    }
    .dff, .flex-col-box{
        margin-top: 10px;
        min-height: 320px;
    }
    .content_box, .info-panel-box{
        height: auto;
    }
    .timeline-container, .hist-container{
        padding: 10px;
    }
    .container-960{
        padding: 0 10px;
    }
    .glass-description{
        padding: 15px;
    }
    .order-num, .track-num-val{
        font-size: 15px;
    }
}