/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

:root {
    /* Colors */
    --primary-blue: #2196F3;
    --primary-dark: #0d4a8f;
    --primary-light: #40a9ff;
    --success-green: #52c41a;
    --error-red: #ff4d4f;
    --warning-orange: #fa8c16;
    
    /* Neutrals */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d9d9d9;
    --gray-400: #bfbfbf;
    --gray-600: #595959;
    --gray-800: #262626;
    --gray-900: #141414;
    
    /* Gradients */
    --hero-gradient: linear-gradient(180deg, #0a1e3d 0%, #1a3a6b 50%, #2563a8 100%);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    background: var(--hero-gradient);
    color: white;
    min-height: 65vh;
    padding: var(--spacing-md) 0 0;
    overflow: hidden;
}

/* Animated light beam elements */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    width: 500px;
    height: 2px;
    transform-origin: left center;
    animation: lightBeam 8s infinite ease-in-out;
}

.hero::before {
    top: 10%;
    right: 0;
    animation-delay: 0s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero::after {
    top: 30%;
    right: -100px;
    animation-delay: 2s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes lightBeam {
    0%, 100% { 
        transform: rotate(-20deg) translateX(0); 
        opacity: 0.6;
    }
    50% { 
        transform: rotate(-15deg) translateX(-50px); 
        opacity: 0.9;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo:active {
    transform: scale(0.98);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-cainiao {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-get {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding-left: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.logo-text {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cainiao Button */
.cainiao-button-wrapper {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 10;
}

.cainiao-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.cainiao-button:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

/* Hero Content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    font-weight: 400;
}

/* Search Form */
.search-form {
    margin-bottom: var(--spacing-md);
}

.search-wrapper {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 8px 8px 8px 20px;
}

.search-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 0;
    border: none;
    font-size: 0.95rem;
    background: transparent;
    color: var(--gray-800);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-input.error {
    border-color: var(--error-red);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.search-btn {
    padding: 0.75rem 2.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    white-space: nowrap;
    position: relative;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn.loading {
    pointer-events: none;
    opacity: 0.8;
    color: transparent;
}

.search-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    margin-top: var(--spacing-sm);
    color: #fff;
    background: rgba(255, 77, 79, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recent Searches */
.recent-searches {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
}

.recent-item {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.625rem 1.75rem 0.625rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    font-family: monospace;
    font-weight: 500;
    color: white;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recent-item-delete {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 18px;
    height: 18px;
    background: rgba(255, 77, 79, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    line-height: 1;
    padding: 0;
}

.recent-item:hover .recent-item-delete {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.recent-item-delete:hover {
    background: var(--error-red);
    transform: translateY(-50%) scale(1.15);
}

/* Last Tracked */
.last-tracked {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

#lastTrackedNumber {
    font-family: monospace;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

#lastTrackedNumber:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Hero Illustration */
.hero-illustration {
    margin-top: 6rem;
    position: relative;
    height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Hero Info Cards Section */
.hero-info-section {
    margin-top: 0;
    padding: var(--spacing-xl) 0 var(--spacing-xl);
    background: white;
    transition: all 0.5s ease;
}

.hero-info-section.hidden {
    display: none;
}

.hero-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.hero-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 180px;
    display: flex;
    flex-direction: column;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Product Guidance Card */
.product-guidance {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.guidance-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.guidance-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.help-center-btn {
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.help-center-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.card-title-with-line {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    text-align: left;
    position: relative;
    padding-left: 12px;
}

.card-title-with-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.card-title-with-line .highlight {
    color: var(--primary-blue);
}

.hero-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-800);
    text-align: left;
}

.hero-card-title .highlight {
    color: var(--primary-blue);
}

.hero-card-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-600);
    text-align: left;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.view-all-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: var(--spacing-xs);
}

.view-all-link:hover {
    color: var(--primary-dark);
}

.countries-visual {
    width: calc(100% + 1.6rem);
    height: 110px;
    margin: auto -0.8rem -0.8rem -0.8rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: visible;
    border-radius: 0 0 12px 12px;
}

.earth-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    bottom: 0;
}

/* ========================================
   DELIVERY PROVIDERS SECTION
   ======================================== */

.delivery-providers-section {
    background: white;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--gray-200);
}

.providers-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.highlight-green {
    color: #52c41a;
}

.providers-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
}

.provider-logo {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
    min-height: 60px;
}

.provider-logo:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #fafafa;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-md);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.footer-legal a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-blue);
}

.copyright {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.footer-disclaimer {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-disclaimer p {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--gray-400);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gray-800);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

.modal-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
    text-align: justify;
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading-container {
    display: none;
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: white;
}

.loading-container.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ========================================
   RESULTS SECTION
   ======================================== */

.results-section {
    display: none;
    padding: var(--spacing-xl) 0;
    background: var(--gray-50);
}

.results-section.show {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tracking Header Card */
.tracking-header {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.tracking-icon {
    flex-shrink: 0;
}

.tracking-header-content {
    flex: 1;
}

.tracking-status {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tracking-status h2 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin: 0;
    font-weight: 600;
}

.tracking-days {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 400;
}

.tracking-number-small {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.tracking-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tracking-label-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.copy-details-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-details-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Progress Card */
.progress-card {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--card-shadow);
}

.progress-route {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
    align-items: center;
}

.progress-location {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.progress-value {
    font-size: 1rem;
    color: var(--gray-800);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.country-code {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
    background: var(--gray-100);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.25rem;
}

.progress-bar-wrapper {
    flex: 1;
    min-width: 0;
}

.progress-line {
    position: relative;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    transition: width 1s ease;
}

.progress-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.progress-start {
    left: 0;
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.progress-current {
    left: 50%;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

.progress-end {
    right: 0;
    border-color: var(--gray-300);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.progress-step {
    flex: 1;
    text-align: center;
}

.progress-step:first-child {
    text-align: left;
}

.progress-step:last-child {
    text-align: right;
}

.progress-step.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.flag {
    font-size: 2rem;
    margin-right: 0.75rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
    font-style: normal;
    font-weight: normal;
    min-width: 2rem;
    text-align: center;
}

/* Fallback for browsers that don't support flag emojis */
.flag:empty::before {
    content: '🏳️';
    opacity: 0.3;
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline-wrapper {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: var(--card-shadow);
}

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    position: relative;
}

.timeline-item:not(:last-child) {
    border-bottom: none;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: calc(var(--spacing-md) + 24px);
    bottom: calc(-1 * var(--spacing-md));
    width: 2px;
    background: var(--gray-200);
}

.timeline-marker {
    width: 12px;
    height: 12px;
    background: var(--gray-300);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-item:first-child .timeline-marker {
    background: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
    width: 14px;
    height: 14px;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.timeline-status {
    flex: 1;
}

.status-text {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.status-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.status-location {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 140px;
}

.date-day {
    font-size: 0.9rem;
    color: var(--gray-800);
    font-weight: 500;
}

.date-time {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.timeline-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #EBF5FF 0%, #D6EBFF 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.timeline-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   INFO SECTION (FOOTER)
   ======================================== */

.info-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.card-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.card-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.card-illustration {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 3rem;
    opacity: 0.5;
}

.guidance-card {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

.card-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.view-all-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.highlight {
    color: var(--success-green);
    font-weight: 700;
}

.world-map {
    font-size: 5rem;
    text-align: center;
    margin-top: var(--spacing-md);
    opacity: 0.5;
}

/* ========================================
   RESPONSIVE DESIGN
   Mobile-First Responsive Styles
   ======================================== */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .search-wrapper {
        max-width: 750px;
    }
}

/* Desktop (1200px and above) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Tablet Landscape (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-info-cards {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        min-height: auto;
        padding: 1.25rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait and Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 1rem 0 1.5rem;
    }
    
    .header {
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .logo {
        flex: 1;
        min-width: 150px;
        margin-left: -3rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-cainiao,
    .logo-get {
        font-size: 1.25rem;
    }
    
    .logo-text {
        font-size: 0.7rem;
    }
    
    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Hero Content */
    .hero-content {
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    /* Search Form */
    .search-wrapper {
        padding: 6px 6px 6px 16px;
        flex-wrap: nowrap;
    }
    
    .search-icon {
        margin-right: 8px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.65rem 0;
    }
    
    .search-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .error-message {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
    
    /* Recent Searches */
    .recent-searches {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .recent-item {
        padding: 0.5rem 1.5rem 0.5rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .last-tracked {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
    
    /* Hero Illustration */
    .hero-illustration {
        height: 180px;
        margin-top: 5rem;
    }
    
    .hero-image {
        max-width: 300px;
    }
    
    /* Info Cards */
    .hero-info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-card {
        padding: 1.25rem;
    }
    
    .card-title-with-line {
        font-size: 1.1rem;
    }
    
    .hero-card-text {
        font-size: 0.9rem;
    }
    
    /* Tracking Results Mobile */
    .results-section {
        padding: 1.5rem 0;
    }
    
    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tracking-number-display {
        font-size: 1rem;
    }
    
    .copy-details-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tracking-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .progress-card {
        padding: 1.25rem;
    }
    
    .progress-route {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .progress-bar-wrapper {
        order: 2;
    }
    
    .progress-steps {
        font-size: 0.75rem;
    }
    
    .location-item {
        padding: 0.75rem;
    }
    
    /* Timeline */
    .timeline-wrapper {
        padding: 1.25rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .timeline-date {
        align-items: flex-start;
        width: 100%;
    }
    
    .timeline-event {
        padding-left: 2.5rem;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        left: 0;
    }
    
    .timeline-content h4 {
        font-size: 0.95rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Providers */
    .providers-logos {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 0.75rem;
    }
    
    .provider-logo {
        padding: 1rem;
        font-size: 0.85rem;
        min-height: 55px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-links {
        gap: 0.5rem 1rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .container {
        padding: 0 0.875rem;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 0.875rem 0 1.25rem;
    }
    
    .header {
        margin-bottom: 0.875rem;
    }
    
    .logo-image {
        height: 36px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.75rem;
    }
    
    .search-wrapper {
        padding: 5px 5px 5px 14px;
    }
    
    .search-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .hero-illustration {
        height: 160px;
        margin-top: 4.5rem;
    }
    
    .hero-image {
        max-width: 260px;
    }
}

/* Small Mobile (480px and below) - Perfect Mobile Design */
@media (max-width: 480px) {
    /* Base adjustments */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hero Section - Optimized for small screens */
    .hero {
        padding: 0.75rem 0 1rem;
    }
    
    .hero-content {
        margin-top: 2.5rem;
    }
    
    .header {
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }
    
    .logo {
        min-width: 120px;
        margin-left: -3rem;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .logo-cainiao,
    .logo-get {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .logo-text {
        font-size: 0.65rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .lang-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .cainiao-button {
        padding: 0.65rem 1.75rem;
        font-size: 0.85rem;
    }
    
    /* Hero Content - Perfect for small screens */
    .hero-title {
        font-size: 1.625rem;
        line-height: 1.2;
        margin-bottom: 0.375rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    /* Search Form - Touch-friendly */
    .search-wrapper {
        padding: 4px 4px 4px 12px;
        border-radius: 40px;
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }
    
    .search-input::placeholder {
        font-size: 0.8rem;
    }
    
    .search-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 40px;
    }
    
    .error-message {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
        margin-top: 0.75rem;
    }
    
    /* Recent Searches - Compact */
    .recent-searches {
        gap: 0.4rem;
        margin-top: 0.875rem;
    }
    
    .recent-item {
        padding: 0.45rem 1.4rem 0.45rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .recent-item-delete {
        width: 16px;
        height: 16px;
        right: 0.35rem;
    }
    
    .last-tracked {
        font-size: 0.75rem;
        margin-top: 0.875rem;
    }
    
    /* Hero Illustration - Compact */
    .hero-illustration {
        height: 140px;
        margin-top: 3.5rem;
    }
    
    .hero-image {
        max-width: 220px;
    }
    
    /* Info Cards - Mobile Optimized */
    .hero-info-section {
        padding: 1.25rem 0;
    }
    
    .hero-info-cards {
        gap: 0.875rem;
    }
    
    .hero-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .product-guidance {
        padding: 0.75rem;
    }
    
    .guidance-image {
        max-height: 120px;
    }
    
    .card-title-with-line {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-card-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .highlight {
        font-size: 1.125rem;
    }
    
    .view-all-link {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .countries-visual {
        height: 90px;
    }
    
    /* Tracking Results - Mobile Perfect */
    .results-section {
        padding: 1.25rem 0;
    }
    
    .timeline-wrapper,
    .tracking-header,
    .progress-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .tracking-status h2 {
        font-size: 1.125rem;
    }
    
    .tracking-status p {
        font-size: 0.8rem;
    }
    
    .tracking-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .tracking-number-display {
        font-size: 0.9rem;
    }
    
    .detail-item {
        padding: 0.75rem;
    }
    
    .detail-label {
        font-size: 0.75rem;
    }
    
    .detail-value {
        font-size: 0.875rem;
    }
    
    .country-flag {
        width: 18px;
        height: 18px;
    }
    
    .progress-header h3 {
        font-size: 1rem;
    }
    
    .progress-steps {
        font-size: 0.65rem;
    }
    
    .location-item {
        padding: 0.65rem;
    }
    
    .location-icon {
        width: 28px;
        height: 28px;
    }
    
    .location-name {
        font-size: 0.875rem;
    }
    
    .location-type {
        font-size: 0.7rem;
    }
    
    /* Timeline - Mobile Optimized */
    .timeline-icon {
        width: 45px;
        height: 45px;
    }
    
    .timeline-icon img,
    .timeline-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .timeline-event {
        padding-left: 2.25rem;
        padding-bottom: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
    }
    
    .timeline-time {
        font-size: 0.7rem;
    }
    
    /* Share Buttons - Touch Friendly */
    .share-buttons {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .share-btn {
        padding: 0.7rem 0.875rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
    
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Providers - Compact Grid */
    .delivery-providers-section {
        padding: 1.5rem 0;
    }
    
    .providers-title {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .providers-logos {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 0.625rem;
    }
    
    .provider-logo {
        padding: 0.75rem;
        font-size: 0.75rem;
        min-height: 48px;
    }
    
    /* Footer - Mobile Friendly */
    .footer {
        padding: 1.5rem 0 0.875rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal a {
        font-size: 0.725rem;
    }
    
    .copyright {
        font-size: 0.725rem;
    }
    
    .footer-disclaimer p {
        font-size: 0.7rem;
    }
    
    /* Modal - Full Screen on Small Mobile */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 1.25rem;
    }
    
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
    }
}

/* Extra Small Mobile (360px and below) - Ultra Compact */
@media (max-width: 360px) {
    .container {
        padding: 0 0.625rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .search-btn {
        padding: 0.55rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .recent-item {
        font-size: 0.7rem;
        padding: 0.4rem 1.25rem 0.4rem 0.65rem;
    }
    
    .hero-illustration {
        height: 120px;
        margin-top: 4rem;
    }
    
    .hero-image {
        max-width: 180px;
    }
    
    .providers-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-btn {
        min-width: 100%;
    }
}

/* Landscape Mode Optimization (all mobile devices) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 0.5rem 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-illustration {
        height: 100px;
        margin-top: 0.75rem;
    }
    
    .hero-image {
        max-width: 160px;
    }
    
    .hero-info-section {
        padding: 1rem 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility improvements */
.search-input:focus-visible,
.search-btn:focus-visible,
.lang-btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
