/* ========================================
   SPEEDPOST TRACK - ULTRA MODERN UI
   Fresh Design with Bento Grid & Vibrant Gradients
   ======================================== */

:root {
    /* Vibrant Color Palette */
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --orange-500: #f97316;
    --green-500: #10b981;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Theme Colors */
    --bg: var(--white);
    --text: var(--gray-900);
    --text-muted: var(--gray-600);
    --border: var(--gray-200);
    --card-bg: var(--white);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--cyan-500) 0%, var(--blue-600) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--purple-500) 0%, var(--pink-500) 100%);
    --gradient-success: linear-gradient(135deg, var(--green-500) 0%, var(--cyan-500) 100%);
    --gradient-vibrant: linear-gradient(135deg, var(--cyan-500) 0%, var(--purple-600) 50%, var(--pink-600) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;
}

/* ========================================
   COURIER-SPECIFIC THEMES
   ======================================== */

/* BlueDart Theme */
[data-courier="bluedart"] {
    --courier-primary: #0047AB;
    --courier-secondary: #003380;
    --courier-gradient: linear-gradient(135deg, #0047AB 0%, #003380 100%);
}

[data-courier="bluedart"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="bluedart"] .track-btn,
[data-courier="bluedart"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.3);
}

[data-courier="bluedart"] .track-btn:hover,
[data-courier="bluedart"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(0, 71, 171, 0.4);
}

[data-courier="bluedart"] .step-number {
    background: var(--courier-gradient);
}

/* Delhivery Theme */
[data-courier="delhivery"] {
    --courier-primary: #EA1B2E;
    --courier-secondary: #C41622;
    --courier-gradient: linear-gradient(135deg, #EA1B2E 0%, #C41622 100%);
}

[data-courier="delhivery"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="delhivery"] .track-btn,
[data-courier="delhivery"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(234, 27, 46, 0.3);
}

[data-courier="delhivery"] .track-btn:hover,
[data-courier="delhivery"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(234, 27, 46, 0.4);
}

[data-courier="delhivery"] .step-number {
    background: var(--courier-gradient);
}

/* Flipkart Theme */
[data-courier="flipkart"] {
    --courier-primary: #FFC200;
    --courier-secondary: #F7A200;
    --courier-gradient: linear-gradient(135deg, #FFC200 0%, #F7A200 100%);
}

[data-courier="flipkart"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="flipkart"] .track-btn,
[data-courier="flipkart"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(255, 194, 0, 0.3);
}

[data-courier="flipkart"] .track-btn:hover,
[data-courier="flipkart"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(255, 194, 0, 0.4);
}

[data-courier="flipkart"] .step-number {
    background: var(--courier-gradient);
}

/* Ekart Theme */
[data-courier="ekart"] {
    --courier-primary: #FF9F00;
    --courier-secondary: #E68A00;
    --courier-gradient: linear-gradient(135deg, #FF9F00 0%, #E68A00 100%);
}

[data-courier="ekart"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="ekart"] .track-btn,
[data-courier="ekart"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(255, 159, 0, 0.3);
}

[data-courier="ekart"] .track-btn:hover,
[data-courier="ekart"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(255, 159, 0, 0.4);
}

[data-courier="ekart"] .step-number {
    background: var(--courier-gradient);
}

/* DTDC Theme */
[data-courier="dtdc"] {
    --courier-primary: #ED1C24;
    --courier-secondary: #C4161C;
    --courier-gradient: linear-gradient(135deg, #ED1C24 0%, #C4161C 100%);
}

[data-courier="dtdc"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="dtdc"] .track-btn,
[data-courier="dtdc"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.3);
}

[data-courier="dtdc"] .track-btn:hover,
[data-courier="dtdc"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(237, 28, 36, 0.4);
}

[data-courier="dtdc"] .step-number {
    background: var(--courier-gradient);
}

/* Saudi Post Theme */
[data-courier="saudipost"] {
    --courier-primary: #005C55;
    --courier-secondary: #004A44;
    --courier-gradient: linear-gradient(135deg, #005C55 0%, #004A44 100%);
}

[data-courier="saudipost"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="saudipost"] .track-btn,
[data-courier="saudipost"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(0, 92, 85, 0.3);
}

[data-courier="saudipost"] .track-btn:hover,
[data-courier="saudipost"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(0, 92, 85, 0.4);
}

[data-courier="saudipost"] .step-number {
    background: var(--courier-gradient);
}

/* Emirates Post Theme */
[data-courier="emiratespost"] {
    --courier-primary: #D71921;
    --courier-secondary: #B2151B;
    --courier-gradient: linear-gradient(135deg, #D71921 0%, #B2151B 100%);
}

[data-courier="emiratespost"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="emiratespost"] .track-btn,
[data-courier="emiratespost"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(215, 25, 33, 0.3);
}

[data-courier="emiratespost"] .track-btn:hover,
[data-courier="emiratespost"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(215, 25, 33, 0.4);
}

[data-courier="emiratespost"] .step-number {
    background: var(--courier-gradient);
}

/* Oman Post Theme */
[data-courier="omanpost"] {
    --courier-primary: #007A33;
    --courier-secondary: #C8102E;
    --courier-gradient: linear-gradient(135deg, #007A33 0%, #C8102E 100%);
}

[data-courier="omanpost"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="omanpost"] .track-btn,
[data-courier="omanpost"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(0, 122, 51, 0.3);
}

[data-courier="omanpost"] .track-btn:hover,
[data-courier="omanpost"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(0, 122, 51, 0.4);
}

[data-courier="omanpost"] .step-number {
    background: var(--courier-gradient);
}

/* Pos Indonesia Theme */
[data-courier="posindonesia"] {
    --courier-primary: #F26522;
    --courier-secondary: #58595B;
    --courier-gradient: linear-gradient(135deg, #F26522 0%, #58595B 100%);
}

[data-courier="posindonesia"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="posindonesia"] .track-btn,
[data-courier="posindonesia"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.3);
}

[data-courier="posindonesia"] .track-btn:hover,
[data-courier="posindonesia"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(242, 101, 34, 0.4);
}

[data-courier="posindonesia"] .step-number {
    background: var(--courier-gradient);
}

/* PHLPost Theme */
[data-courier="phlpost"] {
    --courier-primary: #0038A8;
    --courier-secondary: #CE1126;
    --courier-gradient: linear-gradient(135deg, #0038A8 0%, #CE1126 100%);
}

[data-courier="phlpost"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="phlpost"] .track-btn,
[data-courier="phlpost"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(0, 56, 168, 0.3);
}

[data-courier="phlpost"] .track-btn:hover,
[data-courier="phlpost"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(0, 56, 168, 0.4);
}

[data-courier="phlpost"] .step-number {
    background: var(--courier-gradient);
}

/* Akash Ganga Theme */
[data-courier="akashganga"] {
    --courier-primary: #1d4ed8;
    --courier-secondary: #0f766e;
    --courier-gradient: linear-gradient(135deg, #1d4ed8 0%, #115e59 100%);
}

[data-courier="akashganga"] .gradient-text {
    background: var(--courier-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-courier="akashganga"] .track-btn,
[data-courier="akashganga"] .action-btn.primary {
    background: var(--courier-gradient);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

[data-courier="akashganga"] .track-btn:hover,
[data-courier="akashganga"] .action-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

[data-courier="akashganga"] .step-number {
    background: var(--courier-gradient);
}

/* ========================================
   COURIERS SECTION STYLES
   ======================================== */

.couriers-section {
    padding: 40px 20px 40px;
    background: var(--gray-50);
}

/* Couriers Card Container */
.couriers-card-container {
    max-width: var(--container-width);
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

/* Unified Header inside Card */
.couriers-unified-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-icon i {
    font-size: 28px;
    color: white;
}

.header-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

.header-text p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.courier-total-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--gray-100);
    border-radius: 50px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

.courier-total-badge i {
    font-size: 18px;
    color: var(--cyan-600);
}

.courier-total-badge span {
    font-size: 15px;
}

.courier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.courier-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.courier-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--card-bg);
}

.courier-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: white;
    transition: all 0.3s ease;
}

.courier-card[data-courier="bluedart"] .courier-icon {
    background: linear-gradient(135deg, #0047AB 0%, #003380 100%);
}

.courier-card[data-courier="delhivery"] .courier-icon {
    background: linear-gradient(135deg, #EA1B2E 0%, #C41622 100%);
}

.courier-card[data-courier="flipkart"] .courier-icon {
    background: linear-gradient(135deg, #FFC200 0%, #F7A200 100%);
}

.courier-card[data-courier="ekart"] .courier-icon {
    background: linear-gradient(135deg, #FF9F00 0%, #E68A00 100%);
}

.courier-card[data-courier="dtdc"] .courier-icon {
    background: linear-gradient(135deg, #ED1C24 0%, #C4161C 100%);
}

.courier-card[data-courier="saudipost"] .courier-icon {
    background: linear-gradient(135deg, #005C55 0%, #004A44 100%);
}

.courier-card[data-courier="emiratespost"] .courier-icon {
    background: linear-gradient(135deg, #D71921 0%, #B2151B 100%);
}

.courier-card[data-courier="omanpost"] .courier-icon {
    background: linear-gradient(135deg, #007A33 0%, #C8102E 100%);
}

.courier-card[data-courier="posindonesia"] .courier-icon {
    background: linear-gradient(135deg, #F26522 0%, #58595B 100%);
}

.courier-card[data-courier="phlpost"] .courier-icon {
    background: linear-gradient(135deg, #0038A8 0%, #CE1126 100%);
}

.courier-card[data-courier="akashganga"] .courier-icon {
    background: linear-gradient(135deg, #1d4ed8 0%, #115e59 100%);
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.22);
}

.courier-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.courier-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.courier-card:hover .courier-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Courier Search */
.courier-search-wrapper {
    margin-bottom: 32px;
}

.courier-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    transition: all 0.3s ease;
}

.courier-search-box:focus-within {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.courier-search-box i.fa-search {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 18px;
}

.courier-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
}

.courier-search-input::placeholder {
    color: var(--text-muted);
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    background: var(--gray-100);
    color: var(--text);
}

.courier-card.hidden {
    display: none;
}

.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.no-results-message i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Show More/Pagination */
.courier-load-more {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--gray-100);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

.load-more-btn.expanded i {
    transform: rotate(180deg);
}

.showing-count {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Initially hide couriers beyond the limit */
.courier-card.initially-hidden {
    display: none;
}

/* Courier Dropdown in Navigation */
.courier-dropdown {
    position: relative;
}

.courier-dropdown-btn {
    padding: 10px 20px;
    border-radius: 30px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.courier-dropdown-btn:hover {
    background: var(--gray-100);
    color: var(--text);
}

.courier-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.courier-dropdown:hover .courier-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.courier-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.courier-dropdown-menu a:hover {
    background: var(--gray-100);
}

.courier-dropdown-menu i {
    font-size: 16px;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --text: #f9fafb;
    --text-muted: var(--gray-400);
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: #1a1a1a;
    --gray-50: #1a1a1a;
    --gray-100: #252525;
    --gray-200: rgba(255, 255, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ========================================
   FLOATING NAVIGATION
   ======================================== */

/* ========================================
   FLOATING NAVIGATION - PREMIUM REDESIGN
   ======================================== */

.floating-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: var(--container-width);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-container {
    background: rgba(20, 20, 20, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    padding-left: 8px;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow:
        0 12px 24px -10px rgba(15, 23, 42, 0.6),
        0 6px 12px -6px rgba(15, 23, 42, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-5deg);
}

.logo:hover .logo-icon::after {
    opacity: 1;
}

.logo-text .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px;
    border-radius: 20px;
}

[data-theme="dark"] .nav-right {
    background: rgba(255, 255, 255, 0.03);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 10px 24px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    background: var(--white);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-link.active {
    background: var(--gray-800);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.theme-toggle:hover {
    background: var(--white);
    color: var(--orange-500);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gray-800);
    color: var(--yellow-400);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 14px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 16px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    z-index: 999;
    flex-direction: column;
    gap: 8px;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

[data-theme="dark"] .mobile-menu {
    background: rgba(20, 20, 20, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-menu a {
    padding: 14px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.mobile-menu a:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

[data-theme="dark"] .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu a:before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mobile-menu a:hover:before {
    opacity: 1;
    transform: scale(1.2);
}

/* ========================================
   HERO SECTION - SPLIT SCREEN
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 20px 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-left {
    animation: fadeInUp 0.8s ease;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
}

.gradient-text {
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-pill:hover {
    border-color: var(--cyan-500);
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.feature-pill i {
    font-size: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pill Wrapper with Tag */
.pill-wrapper {
    position: relative;
    display: inline-block;
}

.pill-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.hero-right {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ========================================
   MODERN TRACKING CARD
   ======================================== */

.tracking-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-500);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.modern-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.5px;
}

.modern-input:focus {
    outline: none;
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.input-icons {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.char-count {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 8px;
}

.track-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.4);
}

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

.tracking-form-error {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(254, 242, 242, 0.95);
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Results Area */
.results-area {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.5s ease;
}

.result-status {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.status-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.status-icon.success {
    background: linear-gradient(135deg, var(--green-500), var(--cyan-500));
    color: white;
}

.status-info {
    flex: 1;
}

.status-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tracking-id {
    font-size: 13px;
    color: var(--text-muted);
}

.tracking-id strong {
    font-family: 'Space Grotesk', monospace;
    color: var(--text);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    width: 2px;
    height: calc(100% + 8px);
    background: var(--border);
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 3px solid var(--border);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-dot.active {
    background: var(--gradient-primary);
    border-color: var(--cyan-500);
}

.timeline-content {
    flex: 1;
    padding-bottom: 8px;
}

.timeline-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn.secondary {
    background: var(--gray-100);
    color: var(--text);
}

.action-btn.secondary:hover {
    background: var(--gray-200);
}

.action-btn.primary {
    background: var(--gradient-success);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-success);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: 20px 20px var(--section-padding);
    background: var(--gray-50);
}

/* FAQ Card Container */
.faq-card-container {
    max-width: var(--container-width);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .faq-card-container {
    background: rgba(30, 30, 30, 0.8);
}

/* FAQ Header */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

.faq-header p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.faq-item {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h4 {
    font-size: 16px;
    font-weight: 700;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   INFO SECTIONS (How To Track, Consignment Info)
   ======================================== */

.info-section {
    padding: 40px 20px;
    background: var(--gray-50);
}

.info-card-container {
    max-width: var(--container-width);
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

/* Info Card Header */
.info-card-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.info-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 28px;
    color: white;
}

.info-card-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
    border-color: var(--cyan-500);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Info Content */
.info-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

/* Tracking Format Example */
.tracking-format-example {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.tracking-format-example h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracking-format-example h4 i {
    color: var(--cyan-600);
}

.format-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.format-example {
    font-family: 'Space Grotesk', monospace;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border: 2px solid var(--cyan-500);
    border-radius: 12px;
    color: var(--cyan-600);
    letter-spacing: 2px;
}

.format-parts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.format-part {
    text-align: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.part-highlight {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 24px;
    font-weight: 800;
    color: var(--cyan-600);
    margin-bottom: 8px;
}

.format-part p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Article Types */
.article-types {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.article-types h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-types h4 i {
    color: var(--cyan-600);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.type-item:hover {
    border-color: var(--cyan-500);
    box-shadow: var(--shadow);
}

.type-code {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', monospace;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.type-item p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

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

/* ========================================
   FOOTER - PREMIUM REDESIGN
   ======================================== */

.footer {
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--gray-50) 100%);
    border-top: 1px solid var(--border);
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .footer {
    background: linear-gradient(180deg, var(--card-bg) 0%, #000000 100%);
}

/* Footer Background Glow */
.footer::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Disclaimer & Warning Cards */
.footer-disclaimer,
.footer-warning {
    display: flex;
    gap: 20px;
    padding: 24px 32px;
    border-radius: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-disclaimer {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-warning {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.footer-disclaimer:hover,
.footer-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.disclaimer-icon,
.warning-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.disclaimer-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.warning-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.disclaimer-content h4,
.warning-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

.disclaimer-content p,
.warning-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: var(--text-muted);
}

/* Footer Links */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-links span {
    color: var(--border);
    font-size: 12px;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 0;
    padding-bottom: 20px;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.8;
}

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

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 32px;
    max-width: 480px;
    width: calc(100% - 40px);
    box-shadow: var(--shadow-2xl);
    animation: modalSlideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.modal-header {
    text-align: center;
    padding: 40px 40px 24px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-success);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
}

.modal-body {
    padding: 0 40px 40px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.modal-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.modal-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */

.fab-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.fab.visible {
    opacity: 1;
    pointer-events: auto;
}

.fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   ======================================== */

/* Tablet & Large Phones (1024px and below) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .floating-nav {
        max-width: calc(100% - 32px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 8px;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-stats {
        justify-content: center;
    }

    .feature-pills {
        margin-top: 28px;
        justify-content: center;
    }

    .hero-right {
        width: 100%;
        max-width: 100%;
    }

    /* Footer */
    .footer-disclaimer,
    .footer-warning {
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
    }

    .footer-links {
        gap: 8px;
        font-size: 13px;
    }

    /* Info Sections */
    .info-card-container {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .info-icon {
        width: 56px;
        height: 56px;
    }

    .info-icon i {
        font-size: 24px;
    }

    .info-card-header h2 {
        font-size: 28px;
    }

    .format-example {
        font-size: 24px;
    }

    .format-parts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Navigation */
    .nav-container {
        padding: 10px 16px;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Hero */
    .hero {
        padding: 140px 20px 120px;
        min-height: 100vh;
    }

    .hero-container {
        gap: 48px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 40px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .feature-pills {
        margin-top: 24px;
        gap: 10px;
    }

    .feature-pill {
        padding: 10px 16px;
        font-size: 13px;
    }

    .feature-pill i {
        font-size: 14px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Tracking Card */
    .tracking-card-modern {
        padding: 28px;
        border-radius: 20px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    }

    .card-header h3 {
        font-size: 20px;
    }

    .modern-input {
        padding: 16px 48px 16px 16px;
        font-size: 15px;
        border-radius: 12px;
    }

    .track-btn {
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    .result-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Section Headers */
    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Unified Header inside Card */
    .couriers-unified-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-bottom: 24px;
        margin-bottom: 28px;
    }

    .header-icon {
        width: 56px;
        height: 56px;
    }

    .header-icon i {
        font-size: 24px;
    }

    .header-text h2 {
        font-size: 28px;
    }

    .header-text p {
        font-size: 14px;
    }

    .courier-total-badge {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Couriers Card */
    .couriers-card-container {
        padding: 32px 24px;
        border-radius: 24px;
    }

    /* Courier Search */
    .courier-search-wrapper {
        margin-bottom: 24px;
    }

    .courier-search-box {
        padding: 12px 14px;
    }

    .courier-search-input {
        font-size: 15px;
    }

    .courier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .courier-card {
        padding: 20px;
    }

    .courier-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .courier-card h3 {
        font-size: 16px;
    }

    .courier-card p {
        font-size: 12px;
    }

    /* FAQ */
    .faq-card-container {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .faq-header {
        margin-bottom: 32px;
        padding-bottom: 28px;
    }

    .faq-header h2 {
        font-size: 28px;
    }

    .faq-header p {
        font-size: 14px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h4 {
        font-size: 15px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 32px 16px 24px;
    }

    .footer-disclaimer,
    .footer-warning {
        padding: 16px 18px;
    }

    .disclaimer-icon,
    .warning-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .disclaimer-content h4,
    .warning-content h4 {
        font-size: 15px;
    }

    .disclaimer-content p,
    .warning-content p {
        font-size: 13px;
    }

    .footer-links {
        font-size: 13px;
        gap: 8px;
    }

    .footer-copyright p {
        font-size: 13px;
    }

    /* Info Sections */
    .info-card-container {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .info-card-header {
        margin-bottom: 32px;
        padding-bottom: 28px;
    }

    .info-icon {
        width: 48px;
        height: 48px;
    }

    .info-icon i {
        font-size: 20px;
    }

    .info-card-header h2 {
        font-size: 24px;
    }

    .step-item {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 14px;
    }

    .tracking-format-example,
    .article-types {
        padding: 20px;
    }

    .format-example {
        font-size: 20px;
        padding: 16px;
        letter-spacing: 1px;
    }

    .format-parts {
        grid-template-columns: 1fr;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }

    .type-code {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .type-item p {
        font-size: 13px;
    }

    /* Modal */
    .modal-content {
        width: calc(100% - 32px);
        border-radius: 24px;
    }

    .modal-header {
        padding: 32px 24px 20px;
    }

    .modal-body {
        padding: 0 24px 32px;
    }

    .modal-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    /* FAB */
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    /* Navigation */
    .floating-nav {
        top: 12px;
        width: calc(100% - 24px);
    }

    .nav-container {
        padding: 8px 12px;
        border-radius: 40px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 10px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Hero */
    .hero {
        padding: 120px 20px 120px;
        min-height: 100vh;
    }

    .hero-container {
        gap: 32px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 10px;
    }

    .badge-dot {
        width: 6px;
        height: 6px;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 14px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 16px;
        flex-direction: row;
    }

    .feature-pills {
        margin-top: 20px;
        gap: 8px;
    }

    .feature-pill {
        padding: 8px 14px;
        font-size: 12px;
    }

    .feature-pill i {
        font-size: 13px;
    }

    /* Tracking Card */
    .tracking-card-modern {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .modern-input {
        padding: 14px 44px 14px 14px;
        font-size: 14px;
    }

    .track-btn {
        padding: 14px 20px;
        font-size: 14px;
    }


    .stat-item {
        flex: 1;
        text-align: center;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Courier Search */
    .courier-search-box {
        padding: 12px 14px;
    }

    .courier-search-box i.fa-search {
        font-size: 16px;
        margin-right: 10px;
    }

    .courier-search-input {
        font-size: 14px;
    }

    .courier-search-input::placeholder {
        font-size: 13px;
    }

    .no-results-message {
        padding: 32px 16px;
        font-size: 14px;
    }

    .no-results-message i {
        font-size: 40px;
    }

    /* Unified Header inside Card */
    .couriers-unified-header {
        padding-bottom: 20px;
        margin-bottom: 24px;
    }

    .header-icon {
        width: 48px;
        height: 48px;
    }

    .header-icon i {
        font-size: 20px;
    }

    .header-text h2 {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .header-text p {
        font-size: 13px;
    }

    .courier-total-badge {
        padding: 10px 16px;
        font-size: 14px;
    }

    .courier-total-badge i {
        font-size: 16px;
    }

    /* Couriers Card */
    .couriers-card-container {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .courier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Make last odd item span full width (e.g., 5th courier) */
    .courier-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
    }

    .courier-card {
        padding: 18px;
    }

    .courier-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .courier-card h3 {
        font-size: 15px;
    }

    .courier-card p {
        font-size: 12px;
    }

    /* Load More Button */
    .courier-load-more {
        margin-top: 24px;
        padding-top: 20px;
    }

    .load-more-btn {
        padding: 12px 24px;
        font-size: 14px;
        gap: 8px;
    }

    .showing-count {
        font-size: 12px;
        margin-top: 10px;
    }

    /* Tracking Card */
    .tracking-card-modern {
        padding: 20px;
        border-radius: 20px;
    }

    .card-header {
        margin-bottom: 20px;
    }

    .card-header h3 {
        font-size: 16px;
    }

    .live-indicator {
        font-size: 11px;
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
    }

    .modern-input {
        padding: 14px 44px 14px 14px;
        font-size: 14px;
        border-radius: 14px;
    }

    .input-icons {
        right: 12px;
        gap: 8px;
    }

    .input-icons i {
        font-size: 14px;
    }

    .char-count {
        font-size: 11px;
        padding: 3px 8px;
    }

    .track-btn {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 14px;
        gap: 8px;
    }

    /* Results */
    .results-area {
        margin-top: 24px;
        padding-top: 24px;
    }

    .result-status {
        gap: 12px;
    }

    .status-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 14px;
    }

    .status-title {
        font-size: 16px;
    }

    .tracking-id {
        font-size: 12px;
    }

    .timeline {
        gap: 16px;
    }

    .timeline-dot {
        width: 28px;
        height: 28px;
    }

    .timeline-title {
        font-size: 14px;
    }

    .timeline-meta {
        font-size: 12px;
    }

    .action-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Section Headers */
    .section-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Bento Cards */
    .bento-card {
        padding: 20px;
        border-radius: 20px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .bento-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .bento-card p {
        font-size: 14px;
    }

    .tracking-demo {
        gap: 12px;
    }

    .demo-step span {
        font-size: 13px;
    }

    .mini-stat {
        flex: 1;
    }

    .mini-number {
        font-size: 24px;
    }

    .mini-label {
        font-size: 12px;
    }

    /* Steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: -12px;
        border-radius: 10px;
    }

    .step-card {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }

    .step-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin: 20px auto 16px;
        border-radius: 16px;
    }

    .step-card h3 {
        font-size: 17px;
    }

    .step-card p {
        font-size: 13px;
    }

    .step-arrow {
        font-size: 20px;
    }

    /* FAQ */
    .faq-card-container {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .faq-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .faq-header h2 {
        font-size: 24px;
    }

    .faq-header p {
        font-size: 13px;
    }

    .faq-item {
        border-radius: 14px;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-question h4 {
        font-size: 14px;
        line-height: 1.4;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 13px;
    }

    /* Footer - Mobile Specific */
    .footer-disclaimer,
    .footer-warning {
        padding: 14px 16px;
        gap: 10px;
    }

    .disclaimer-icon,
    .warning-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .disclaimer-content h4,
    .warning-content h4 {
        font-size: 14px;
    }

    .disclaimer-content p,
    .warning-content p {
        font-size: 12px;
    }

    .footer-links {
        font-size: 12px;
        gap: 6px;
        padding: 20px 0;
    }

    .footer-copyright p {
        font-size: 12px;
    }

    /* Modal */
    .modal-content {
        width: calc(100% - 24px);
        border-radius: 20px;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .modal-header {
        padding: 28px 20px 16px;
    }

    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-header p {
        font-size: 14px;
    }

    .modal-body {
        padding: 0 20px 28px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-group label {
        font-size: 13px;
    }

    .modal-input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .modal-btn {
        padding: 14px;
        font-size: 14px;
        border-radius: 10px;
        margin-top: 20px;
    }

    .modal-note {
        font-size: 12px;
        margin-top: 12px;
    }

    /* Mobile Menu */
    .mobile-menu {
        top: 84px;
        left: 12px;
        right: 12px;
        padding: 20px;
        border-radius: 20px;
    }

    .mobile-menu a {
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 14px;
        gap: 10px;
    }

    .mobile-menu a:before {
        width: 5px;
        height: 5px;
    }

    /* Background Orbs */
    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* ========================================
   RECENT SEARCHES
   ======================================== */

.recent-searches-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
    min-height: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.recent-searches-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.recent-search-chip {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    /* Prevent overflow */
}

.recent-search-chip:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.recent-search-chip:only-child {
    flex: 0 1 auto;
}

.recent-search-text {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recent-search-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s ease;
    opacity: 0.6;
}

.recent-search-remove:hover {
    background: var(--red-100, #fee2e2);
    color: var(--red-500, #ef4444);
    opacity: 1;
}

[data-theme="dark"] .recent-search-chip {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .recent-search-chip:hover {
    background: var(--gray-700);
    border-color: var(--gray-600);
}

[data-theme="dark"] .recent-search-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Hide 3rd item on mobile */
@media (max-width: 768px) {
    .recent-search-chip:nth-child(3) {
        display: none;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-number {
        font-size: 18px;
    }

    .tracking-card-modern {
        padding: 16px;
    }

    .bento-card {
        padding: 16px;
    }

    .step-card {
        padding: 24px 16px 20px;
    }
}

/* ========================================
   TRACKING RESULT PAGE STYLES
   ======================================== */

/* Tracking Result Page Body */
body.tracking-result-page {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    color: #1a1a1a;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

[data-theme="dark"] body.tracking-result-page {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text);
}

/* Page Background */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    bottom: -150px;
    left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Container */
.container {
    width: calc(100% - 48px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 120px 0 40px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.content-grid>div:first-child {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}

.content-grid>div:first-child .card {
    margin-bottom: 0;
}

.content-grid>div:first-child #bookingDetailsCard {
    flex: 1;
    min-height: 0;
}

.content-grid>div:last-child .card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-grid>div:last-child .card .timeline {
    flex: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1a1a1a;
}

[data-theme="dark"] .back-link {
    color: var(--text-muted);
}

[data-theme="dark"] .back-link:hover {
    color: var(--text);
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn i {
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.btn-share {
    background: #ffffff;
    color: #6366f1;
    border: 2px solid #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .btn-share {
    background: var(--card-bg);
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-share i {
    color: #6366f1;
}

.btn-share:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-share:hover i {
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.btn-wrapper-whatsapp {
    position: relative;
    display: inline-flex;
}

.badge-coming-soon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-500, #06b6d4) 0%, var(--blue-600, #2563eb) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.4);
}

/* Main Card */
.card {
    background: var(--card-bg, #ffffff);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 20px;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

.tracking-number-card .card-glow {
    animation: none;
}

.tracking-number-card {
    margin-bottom: 0;
}

.action-buttons-card {
    padding: 20px;
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.action-buttons .btn {
    flex: 1;
}

/* Tracking Info */
.tracking-header {
    margin-bottom: 0;
}

.tracking-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tracking-number {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--text, #1a1a1a);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status.delivered::before {
    background: #10b981;
}

.status.in-transit {
    background: #dbeafe;
    color: #1e40af;
}

.status.in-transit::before {
    background: #3b82f6;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.pending::before {
    background: #f59e0b;
}

[data-theme="dark"] .status.delivered {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

[data-theme="dark"] .status.in-transit {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    font-family: 'Space Grotesk', sans-serif;
}

/* Booking Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1a1a1a);
    line-height: 1.5;
}

.detail-value.null {
    color: #9ca3af;
    font-style: italic;
}

[data-theme="dark"] .detail-value.null {
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
}

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

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 28px;
    width: 2px;
    height: calc(100% - 4px);
    background: #e5e7eb;
}

[data-theme="dark"] .timeline-item:not(:last-child)::before {
    background: var(--border);
}

.timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.timeline-dot.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.timeline-dot.delivered {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.timeline-dot.dispatched {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.timeline-dot.pickup {
    background: #14b8a6;
    border-color: #14b8a6;
    color: white;
}

.timeline-dot.hub {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.timeline-dot.received {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.timeline-dot.out-for-delivery {
    background: #f97316;
    border-color: #f97316;
    color: white;
}

.timeline-dot.warning {
    background: #eab308;
    border-color: #eab308;
    color: white;
}

.timeline-dot.in-transit {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.timeline-dot.undelivered {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.timeline-dot:not(.delivered):not(.dispatched):not(.pickup):not(.hub):not(.received):not(.out-for-delivery):not(.warning):not(.in-transit):not(.active):not(.undelivered) {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
}

[data-theme="dark"] .timeline-dot:not(.delivered):not(.dispatched):not(.pickup):not(.hub):not(.received):not(.out-for-delivery):not(.warning):not(.in-transit):not(.active):not(.undelivered) {
    background: var(--gray-100);
    border-color: var(--border);
    color: var(--text-muted);
}

.timeline-content {
    flex: 1;
    padding-top: 2px;
}

.timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    margin-bottom: 6px;
    line-height: 1.4;
}

.timeline-meta {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-meta i {
    font-size: 11px;
    opacity: 0.7;
}

.timeline-contact {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.timeline-contact i {
    font-size: 11px;
    opacity: 0.7;
}

/* Loading & Error */
.loading,
.error {
    text-align: center;
    padding: 40px 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

[data-theme="dark"] .loading-spinner {
    border-color: var(--gray-100);
    border-top-color: #3b82f6;
}

.error-icon {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}

.error-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-message {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

[data-theme="dark"] .error-message {
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.modal-timeline {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-timeline .timeline {
    padding: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
}

[data-theme="dark"] .modal-close {
    color: var(--text-muted);
}

[data-theme="dark"] .modal-close:hover {
    background: var(--gray-100);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin-bottom: 12px;
}

.modal-input:focus {
    outline: none;
    border-color: #3b82f6;
}

[data-theme="dark"] .modal-input {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .modal-input:focus {
    border-color: #3b82f6;
}

/* Footer */
.footer {
    background: var(--card-bg, #ffffff);
    border-top: 1px solid var(--border, #e5e7eb);
    padding: 40px 20px 30px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* Tracking Result Page Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 48px);
        padding: 70px 0 16px;
    }

    body.tracking-result-page .container {
        padding-top: 110px;
    }

    .content-grid {
        gap: 8px;
    }

    .card {
        padding: 16px;
        margin-bottom: 8px;
    }

    .tracking-number-card {
        padding: 14px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .tracking-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .result-track-another {
        width: auto;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 14px;
    }

    .result-courier-name {
        font-size: 18px;
        line-height: 1.2;
    }

    .tracking-kicker {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .package-location-block {
        margin-bottom: 12px;
        padding: 12px 14px;
    }

    .package-location-value {
        font-size: 18px;
    }

    .btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }

    .btn span:not(.badge-coming-soon) {
        display: inline;
        margin-left: 6px;
    }

    .btn i {
        font-size: 16px;
    }

    .whatsapp-icon {
        width: 18px;
        height: 18px;
    }

    .badge-coming-soon {
        font-size: 8px;
        padding: 3px 6px;
        top: -6px;
        right: -6px;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }

    .tracking-number {
        font-size: 18px;
    }

    .timeline-item {
        padding-bottom: 12px;
    }

    .timeline-dot {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .timeline-item:not(:last-child)::before {
        left: 13px;
        top: 24px;
    }
}


/* ========================================
   PREMIUM ERROR STATE
   ======================================== */

.error-container {
    width: 100%;
    margin: 40px auto 20px;
    animation: fadeInUp 0.5s ease-out;
}

.error-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .error-card {
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--border);
    box-shadow: var(--shadow-xl);
}

.error-icon-wrapper {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.error-icon-wrapper i {
    font-size: 42px;
    color: #ef4444;
    animation: pulse-error 2s infinite;
}

.error-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    animation: spin-slow 10s linear infinite;
}

.error-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

.error-courier-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.error-message {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-support {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -8px 0 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.error-support a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.error-support a:hover {
    text-decoration: underline;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-retry {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.25);
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(239, 68, 68, 0.35);
}

.btn-home-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-home-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

@keyframes pulse-error {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

