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

:root {
    /* Premium Color Palette - Elegant Teal/Cyan Theme */
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --secondary: #14b8a6;
    --accent: #0ea5e9;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;

    --bg-primary: #0a0e1a;
    --bg-secondary: #121825;
    --bg-tertiary: #1e293b;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-color: rgba(6, 182, 212, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --gradient-success: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================= SMOOTH SCROLLING ================= */

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.5) rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.7);
}



.background-gradient,
.background-shapes,
.shape {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

.app-container {
    position: relative;
    min-height: 100vh;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-success);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes float {

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

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

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

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.15;
    }
}

/* ================= CONTENT WRAPPER ================= */

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem 0 1rem;
    display: flex;
    flex-direction: column;

}

/* ================= HEADER ================= */

.header {
    margin-bottom: 1.25rem;
    animation: fadeInDown 0.6s ease;
}

.header-content {
    text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.logo-container {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(20, 184, 166, 0.25));
    border-radius: 10px;
    padding: 0.4rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px -8px rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    text-align: left;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fafc 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.125rem;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

/* ================= TAB NAVIGATION ================= */

.tabs-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-button:hover:not(.active) {
    background: rgba(6, 182, 212, 0.1);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px -4px rgba(6, 182, 212, 0.5);
}

.tab-button.active::before {
    opacity: 1;
}

.tab-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* ================= TAB CONTENT WITH 3D COIN FLIP ================= */

.tab-content-wrapper {
    position: relative;
    min-height: 0px;
}

.tab-content {
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: none;
}




/* When showing Single tab (default state - front of coin) */
.single-tracking {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: rotateY(0deg);
    opacity: 1;
    will-change: transform, opacity;
}

.bulk-processing {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: rotateY(-180deg);
    opacity: 0;
    will-change: transform, opacity;
}


.tab-content-wrapper.tab-single .bulk-processing {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.tab-content-wrapper.tab-bulk .single-tracking {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}


/* When showing Bulk tab (flipped state - back of coin) */
.tab-content-wrapper.tab-bulk .bulk-processing {
    animation: flipToBack 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-content-wrapper.tab-single .single-tracking {
    animation: flipToFront 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


/* Flip from front (Single) to back (Bulk) - Coin flips to the right */
@keyframes flipToBack {
    from {
        transform: rotateY(-180deg);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* Flip from back (Bulk) to front (Single) - Coin flips to the left */
@keyframes flipToFront {
    from {
        transform: rotateY(180deg);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}



/* ================= BULK PROCESSING STYLES ================= */

.bulk-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.bulk-icon-wrapper {
    width: 38px;
    height: 38px;
    margin: 0 auto 0.625rem;
    background: var(--gradient-primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}



.bulk-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.bulk-description {
    font-size: 0.7rem;
    line-height: 1.6;
    color: var(--text-secondary);

    max-width: 520px;
    margin: 0 auto 1rem auto;
    text-align: center;
}


.bulk-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.30rem;
    margin-bottom: 0.29rem;
}

/* Adjust for very small screens if needed */
@media (max-width: 480px) {
    .bulk-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
    }

    .bulk-feature {
        padding: 0.5rem 0.55rem;
        border-radius: 8px;
    }

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

    .bulk-feature span {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}



.bulk-feature {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.bulk-feature:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.7);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--success);
    stroke-width: 2.5;
    flex-shrink: 0;
}

.bulk-feature span {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: left;
}

.whatsapp-bulk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.5);
    margin: clamp(16px, 3vw, 24px) 0;
}

.whatsapp-bulk-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
}



.bulk-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.info-icon-small {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.bulk-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
}

/* ================= HOW TO TRACK SECTION ================= */

.how-to-section {
    margin: 1.25rem 0;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
    position: relative;
    z-index: auto;
}

.how-to-toggle {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.how-to-toggle:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-1px);
}

.how-to-toggle:active {
    transform: translateY(0);
}

.how-to-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.help-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    flex-shrink: 0;
}

.how-to-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.chevron-icon {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.chevron-icon.expanded {
    transform: rotate(180deg);
}

.how-to-content {
    padding: 1.25rem;
    animation: slideDown 0.3s ease-out;
}

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

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

.step-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.step-card:last-of-type {
    margin-bottom: 1rem;
}

.step-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-left-color: var(--primary-light);
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.375rem 0;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
}

.step-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.detail-box {
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-box strong {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
}

.tracking-format,
.tracking-example {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px dashed var(--primary);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-light);
}

.info-box {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-top: 0.75rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--primary-light);
    stroke-width: 2;
}

.info-box strong {
    display: block;
    color: var(--primary-light);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.breakdown-list {
    margin: 0.375rem 0 0 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.breakdown-list li {
    margin: 0.25rem 0;
    line-height: 1.4;
    font-size: 0.8125rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tip-card {
    display: flex;
    gap: 0.625rem;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
}

.tip-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--gradient-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.tip-text {
    flex: 1;
    min-width: 0;
}

.tip-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    font-size: 0.8125rem;
}

.tip-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.process-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    min-width: 90px;
}

.process-icon {
    font-size: 1.5rem;
}

.process-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-align: center;
}

.process-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.6875rem;
    text-align: center;
}

.process-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.status-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.status-example {
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid;
    text-align: center;
}

.status-delivered-demo {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.status-transit-demo {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary);
}

.status-undelivered-demo {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.status-badge {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.status-example p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.additional-options {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.options-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.option-card {
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.option-card:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
}

.option-icon {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}

.option-card strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.option-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.6875rem;
    line-height: 1.3;
}

.faq-section {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.faq-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    text-align: center;
}

.faq-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.8125rem;
}

.contact-section {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.contact-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    text-align: center;
}

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

.contact-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.contact-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    stroke: var(--primary-light);
    stroke-width: 2;
}

.contact-card strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
}

.contact-card p {
    margin: 0.125rem 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.contact-hours {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    font-style: italic;
}

/* ================= BULK HOW TO BAR (PILL STYLE) ================= */

.bulk-how-to-section {
    margin: 1.25rem 0;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease;
    position: relative;
    z-index: auto;
}

.bulk-howto-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 52px;
    padding: 0 18px;
    width: 100%;

    background: linear-gradient(180deg,
            #12c6dc 0%,
            #0891b2 100%);

    border-radius: 14px;
    cursor: pointer;
    user-select: none;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


/* Left side */
.bulk-howto-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ? icon bubble */
.bulk-howto-icon {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    color: white;
    font-size: 14px;
    font-weight: 700;
}

/* Title text */
.bulk-howto-text {
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
}

/* Chevron */
.bulk-howto-chevron {
    width: 22px;
    height: 22px;
    color: white;
    transition: transform 0.25s ease;
}

.bulk-howto-chevron.open {
    transform: rotate(180deg);
}



/* ================= BULK HOW TO CONTENT ================= */

.bulk-how-to-content {
    padding: 1.25rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--border-color);
    border-top: none;
    margin-top: -1px;
    animation: slideDown 0.3s ease-out;
}

.bulk-step-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.bulk-step-card:last-of-type {
    margin-bottom: 1rem;
}

.bulk-step-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-left-color: var(--primary-light);
    transform: translateX(4px);
}

.bulk-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.bulk-step-content {
    flex: 1;
    min-width: 0;
}

.bulk-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.375rem 0;
}

.bulk-step-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
}

.bulk-example-box {
    padding: 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-top: 0.75rem;
}

.bulk-example-box strong {
    display: block;
    color: var(--primary-light);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.bulk-example-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    white-space: pre-line;
}

.bulk-tips-section {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bulk-tips-title {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.bulk-tips-title span {
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 700;
}

.bulk-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.bulk-tip-item {
    display: flex;
    gap: 0.625rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.bulk-tip-item:hover {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.7);
    transform: translateY(-2px);
}

.bulk-tip-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--gradient-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.bulk-tip-content {
    flex: 1;
    min-width: 0;
}

.bulk-tip-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    font-size: 0.8125rem;
}

.bulk-tip-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
}

.bulk-response-example {
    margin-top: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.bulk-response-title {
    padding: 0.625rem 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.bulk-response-title span {
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 700;
}

.bulk-response-preview {
    padding: 0.875rem;
    background: rgba(15, 23, 42, 0.6);
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.bulk-response-preview p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bulk-response-preview strong {
    color: var(--text-primary);
}


/* ================= MAIN CARD ================= */

.main-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
}

.card-header {
    text-align: center;
    margin-bottom: 1rem;
}

.icon-wrapper {
    width: 38px;
    height: 38px;
    margin: 0 auto 0.625rem;
    background: var(--gradient-primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
    }
}

.tracking-icon {
    width: 20px;
    height: 20px;
    color: white;
    stroke-width: 2;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ================= INPUT GROUP ================= */

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    stroke-width: 2;
    pointer-events: none;
    transition: color 0.3s;
}

.tracking-input {
    width: 100%;
    padding: 0.5rem 0.625rem 0.5rem 2rem;
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

.tracking-input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.tracking-input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

.tracking-input:focus+.input-icon,
.input-wrapper:hover .input-icon {
    color: var(--primary-light);
}

.tracking-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.validation-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin: -0.5rem 0 0.75rem 0;
    text-align: center;
}

/* ================= BUTTONS ================= */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-content {
    position: relative;
    display: inline-block;
    text-align: center;
}

/* ================= COUNTDOWN TIMER ================= */

.timer-display {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 700;
    color: #06b6d4;
    z-index: 10;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {

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

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* ================= END COUNTDOWN TIMER ================= */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(6, 182, 212, 0.2);
    border-top-color: #06b6d4;
    border-right-color: #14b8a6;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

.track-button {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px -4px rgba(6, 182, 212, 0.5);
}

.track-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(6, 182, 212, 0.6);
}

.track-button:active:not(:disabled) {
    transform: translateY(0);
}

.track-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.track-button.loading {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    cursor: wait;
    position: relative;
    overflow: hidden;
}

.track-button.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.button-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-right-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.4);
    border: none;
    cursor: pointer;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.5);
}

/* ================= ACTION BUTTONS ================= */

.action-buttons-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 50;
}

.action-buttons-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: white;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.whatsapp-button {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 12px -4px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(37, 211, 102, 0.5);
}

.refresh-button {
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px -4px rgba(6, 182, 212, 0.4);
}

.refresh-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(6, 182, 212, 0.5);
}

.refresh-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.share-button {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    box-shadow: 0 4px 12px -4px rgba(14, 165, 233, 0.4);
}

.share-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(14, 165, 233, 0.5);
}

.download-button-row {
    display: flex;
    justify-content: center;
}

.download-button-row .download-button {
    min-width: 200px;
}

/* ================= SHARE MENU DROPUP (FIXED) ================= */

.share-container {
    position: relative;
}

.share-container .share-button {
    width: 100%;
}

.share-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 -20px 40px -10px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    z-index: 9999;
    animation: shareMenuSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes shareMenuSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

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

.share-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-option:hover {
    background: rgba(6, 182, 212, 0.1);
    padding-left: 20px;
}

.share-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-option-icon svg {
    width: 18px;
    height: 18px;
}

.native-icon-bg {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.native-icon-bg svg {
    color: white;
    stroke-width: 2;
}

.whatsapp-icon-bg {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-icon-bg svg {
    color: white;
}

.email-icon-bg {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

.email-icon-bg svg {
    color: white;
    stroke-width: 2;
}

.sms-icon-bg {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
}

.sms-icon-bg svg {
    color: white;
    stroke-width: 2;
}

.copy-icon-bg {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.copy-icon-bg svg {
    color: white;
    stroke-width: 2;
}

/* ================= TOAST NOTIFICATION ================= */

.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.5);
    z-index: 10000;
    animation: toastSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9rem;
    font-weight: 600;
    max-width: calc(100% - 32px);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-icon {
    width: 22px;
    height: 22px;
    color: white;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* ================= ALERTS ================= */

.alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    border-radius: 10px;
    margin-bottom: 0.875rem;
    font-size: 0.85rem;
    animation: slideIn 0.4s ease;
}

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

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

.alert-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

.alert-error .alert-icon {
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.alert-warning .alert-icon {
    color: #f59e0b;
}

.alert-info {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #a5f3fc;
}

.alert-info .alert-icon {
    color: #06b6d4;
}

/* ================= STATUS BANNER ================= */

.status-banner {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.25rem; /* FIX: increased from 1rem for breathing room after recent chips */
    margin-bottom: 1.25rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

.status-delivered {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-undelivered {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-transit {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(8, 145, 178, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.status-processing {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.2) 0%, rgba(71, 85, 105, 0.1) 100%);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-not-found {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.2) 0%, rgba(71, 85, 105, 0.1) 100%);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* FIX: changed align-items from center to flex-start so multiline
   .status-text children (including .status-remark) are never clipped */
.status-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.status-modified {
    margin-left: auto;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Keep the modified badge itself vertically compact */
    align-self: flex-start;
}

.modified-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.status-delivered .modified-icon {
    color: rgba(255, 255, 255, 0.9);
}

.status-undelivered .modified-icon {
    color: rgba(255, 255, 255, 0.9);
}

.status-transit .modified-icon {
    color: rgba(255, 255, 255, 0.9);
}

.status-processing .modified-icon {
    color: rgba(255, 255, 255, 0.8);
}

.status-not-found .modified-icon {
    color: rgba(255, 255, 255, 0.8);
}

.modified-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.modified-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    font-weight: 600;
}

.modified-value {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Keep icon vertically aligned at the top with flex-start parent */
    align-self: flex-start;
    margin-top: 0.1rem;
}

.status-delivered .status-icon {
    background: rgba(16, 185, 129, 0.2);
}

.status-undelivered .status-icon {
    background: rgba(245, 158, 11, 0.2);
}

.status-transit .status-icon {
    background: rgba(6, 182, 212, 0.2);
}

.status-processing .status-icon {
    background: rgba(100, 116, 139, 0.2);
}

.status-not-found .status-icon {
    background: rgba(100, 116, 139, 0.2);
}

.status-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.status-delivered .status-icon svg {
    color: #10b981;
}

.status-undelivered .status-icon svg {
    color: #f59e0b;
}

.status-transit .status-icon svg {
    color: #06b6d4;
}

.status-processing .status-icon svg {
    color: #94a3b8;
}

.status-not-found .status-icon svg {
    color: #94a3b8;
}

.status-text {
    flex: 1;
    min-width: 0;
}

.status-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.status-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ================= STATUS REMARK (inline banner hint) ================= */

/* FIX: was previously hidden because parent used align-items:center.
   Now that parent is flex-start this renders correctly. */
.status-remark {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.45;
    opacity: 0.92;
}

/* Not Found remark — amber/orange tone */
.status-not-found .status-remark {
    color: #fbbf24;
}

/* Undelivered remark — softer warning tone */
.status-undelivered .status-remark {
    color: #fde68a;
}

/* ================= DETAILS GRID ================= */

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

/* Special styling for Last Modified card */
.detail-card-highlight {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    position: relative;
    overflow: hidden;
}

.detail-card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(6, 182, 212, 0.2),
            transparent);
    animation: shimmerSlide 3s infinite;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.detail-card-highlight:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(20, 184, 166, 0.15) 100%);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.detail-card-highlight .detail-icon {
    background: var(--gradient-primary);
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(6, 182, 212, 0);
    }
}

.detail-card-highlight .detail-icon svg {
    color: white;
}

.detail-card-highlight .detail-label {
    color: var(--primary-light);
    font-weight: 600;
}

.detail-card-highlight .detail-value {
    color: var(--text-primary);
    font-weight: 700;
}

.detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(20, 184, 166, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tracking-number-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(239, 68, 68, 0.2));
}

.detail-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
    stroke-width: 2;
}

.tracking-number-icon svg {
    color: #f472b6;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    word-wrap: break-word;
}

/* ================= HISTORY SECTION ================= */

.history-section {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease 0.2s both;
    position: relative;
    z-index: 10;
}

.history-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.history-header-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
    stroke-width: 2;
}

.history-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

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

.timeline-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-dot {
    width: 11px;
    height: 11px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 2px solid rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
    z-index: 1;
    animation: dotPulse 2s ease-in-out infinite;
}

.timeline-item:first-child .timeline-dot {
    animation: dotPulseFirst 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.15);
    }
}

@keyframes dotPulseFirst {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
        transform: scale(1.12);
    }
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom,
            rgba(6, 182, 212, 0.3) 0%,
            rgba(6, 182, 212, 0.1) 100%);
    margin-top: 0.3rem;
}

.timeline-content {
    flex: 1;
    padding: 0.875rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateX(3px);
}

.timeline-event {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-icon {
    width: 13px;
    height: 13px;
    color: var(--text-muted);
    stroke-width: 2;
}

.timeline-date,
.timeline-time,
.timeline-office {
    transition: color 0.3s;
}

.timeline-content:hover .timeline-date,
.timeline-content:hover .timeline-time,
.timeline-content:hover .timeline-office {
    color: var(--text-primary);
}

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

.footer-text {
    margin: 1.5rem auto 1rem auto;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-text {
        font-size: 0.8125rem;
        margin: 1.25rem auto 0.75rem auto;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-text {
        font-size: 0.75rem;
        margin: 1rem auto 0.5rem auto;
        padding: 0.5rem;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0.75rem 0.5rem;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

    .tabs-container {
        gap: 0.375rem;
        padding: 0.375rem;
    }

    .tab-button {
        font-size: 0.8rem;
        padding: 0.625rem 0.75rem;
        gap: 0.375rem;
    }

    .tab-icon {
        width: 16px;
        height: 16px;
    }




    .bulk-icon {
        width: 32px;
        height: 32px;
    }

    .bulk-title {
        font-size: 1.25rem;
    }




    .bulk-feature {
        padding: 0.75rem;
    }

    .feature-icon {
        width: 20px;
        height: 20px;
    }




    .how-to-section {
        margin-bottom: 1rem;
    }

    .how-to-toggle {
        padding: 0.875rem;
    }

    .how-to-title {
        font-size: 0.9375rem;
    }

    .help-icon {
        width: 22px;
        height: 22px;
    }

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

    .how-to-content {
        padding: 1rem;
    }

    .step-card {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .step-title {
        font-size: 0.9375rem;
    }

    .step-description {
        font-size: 0.8125rem;
    }

    .process-info {
        flex-direction: column;
        padding: 0.875rem;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .options-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .main-card,
    .history-section {
        padding: 0.875rem 0.75rem;
        border-radius: 12px;
    }

    .input-group {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .track-button {
        justify-content: center;
        padding: 0.625rem 1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .detail-card {
        padding: 0.625rem 0.75rem;
    }

    .status-content {
        gap: 0.625rem;
        flex-wrap: wrap;
    }

    .status-modified {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }

    .status-banner {
        padding: 0.75rem;
    }

    .status-title {
        font-size: 1rem;
    }

    .status-subtitle {
        font-size: 0.75rem;
    }

    .timeline-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    .history-title {
        font-size: 1rem;
    }

    .timeline-item {
        gap: 0.625rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content {
        padding: 0.625rem 0.75rem;
    }

    .timeline-event {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    .alert {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .action-buttons-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .action-button {
        padding: 0.625rem 1rem;
    }

    .download-button-row .download-button {
        min-width: auto;
        width: 100%;
    }

    .share-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 180px;
    }

    @keyframes shareMenuSlideUp {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(10px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }

    .toast-notification {
        bottom: 16px;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .toast-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .content-wrapper {
        padding: 0.5rem 0.375rem;
    }

    .brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .brand-text {
        text-align: center;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .tabs-container {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .tab-button {
        font-size: 0.75rem;
        padding: 0.5rem 0.625rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab-icon {
        width: 14px;
        height: 14px;
    }


    .bulk-icon {
        width: 28px;
        height: 28px;
    }

    .bulk-title {
        font-size: 1.125rem;
    }


    .bulk-feature {
        padding: 0.625rem;
    }

    .bulk-feature span {
        font-size: 0.8125rem;
    }



    .how-to-section {
        margin-bottom: 0.875rem;
    }

    .how-to-toggle {
        padding: 0.75rem;
    }

    .how-to-title {
        font-size: 0.875rem;
    }

    .help-icon {
        width: 20px;
        height: 20px;
    }

    .chevron-icon {
        width: 16px;
        height: 16px;
    }

    .how-to-content {
        padding: 0.875rem;
    }

    .step-card {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9375rem;
    }

    .step-title {
        font-size: 0.875rem;
    }

    .step-description {
        font-size: 0.75rem;
    }

    .step-details,
    .tips-grid,
    .status-examples {
        grid-template-columns: 1fr;
    }

    .detail-box,
    .tip-card,
    .option-card {
        padding: 0.625rem;
    }

    .process-step {
        min-width: 70px;
    }

    .process-icon {
        font-size: 1.25rem;
    }

    .faq-item,
    .contact-card {
        padding: 0.625rem;
    }

    .faq-item strong,
    .faq-item p {
        font-size: 0.75rem;
    }

    .contact-card strong,
    .contact-card p {
        font-size: 0.75rem;
    }

    .main-card,
    .history-section {
        padding: 0.75rem 0.625rem;
        border-radius: 10px;
    }

    .card-header {
        margin-bottom: 0.75rem;
    }

    .icon-wrapper {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

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

    .card-title {
        font-size: 1rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }

    .input-group {
        gap: 0.375rem;
        margin-bottom: 0.625rem;
    }

    .tracking-input {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem 0.5rem 1.875rem;
    }

    .input-icon {
        width: 14px;
        height: 14px;
        left: 0.5rem;
    }

    .track-button {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    .button-icon,
    .spinner {
        width: 14px;
        height: 14px;
    }

    .status-banner {
        padding: 0.625rem;
    }

    .status-icon {
        width: 34px;
        height: 34px;
    }

    .status-icon svg {
        width: 18px;
        height: 18px;
    }

    .status-title {
        font-size: 0.95rem;
    }

    .status-subtitle {
        font-size: 0.7rem;
    }

    .status-modified {
        padding: 0.375rem 0.5rem;
    }

    .modified-icon {
        width: 16px;
        height: 16px;
    }

    .modified-label {
        font-size: 0.6rem;
    }

    .modified-value {
        font-size: 0.7rem;
    }

    .details-grid {
        gap: 0.4rem;
    }

    .detail-card {
        padding: 0.8rem 0.7rem;
        min-height: 55px;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
    }

    .detail-icon svg {
        width: 16px;
        height: 16px;
    }

    .detail-label {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }

    .alert {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .alert-icon {
        width: 16px;
        height: 16px;
    }



    .history-header {
        margin-bottom: 0.875rem;
        gap: 0.5rem;
    }

    .history-header-icon {
        width: 20px;
        height: 20px;
    }

    .history-title {
        font-size: 0.95rem;
    }

    .timeline-item {
        gap: 0.5rem;
        margin-bottom: 0.625rem;
    }

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

    .timeline-content {
        padding: 0.5rem 0.625rem;
    }

    .timeline-event {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .timeline-meta {
        font-size: 0.7rem;
        gap: 0.25rem;
    }

    .meta-icon {
        width: 11px;
        height: 11px;
    }

    .download-button {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }

    .action-buttons-container {
        margin-top: 0.75rem;
    }

    .action-button {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .action-button span {
        font-size: 0.8rem;
    }
}

/* ================= FOCUS STYLES ================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ================= INVALID INPUT ================= */

.tracking-input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* ================= RESULT SPACER ================= */
/* Guarantees a gap between the recent-chips row and the
   status banner — both live inside the same .main-card */
.result-spacer {
    margin-top: 1rem;
}

/* ================= STATUS REMARK (inline banner hint) ================= */
/* Parent .status-content now uses align-items:flex-start so these render */
.status-remark {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 500;
}

.status-remark-not-found {
    color: #fbbf24;
}

.status-remark-undelivered {
    color: #fde68a;
}

/* ================= PRINT STYLES ================= */

@media print {
    .how-to-toggle {
        background: var(--primary);
        color: white;
    }

    .how-to-content {
        display: block !important;
    }

    .chevron-icon {
        display: none;
    }

    .background-gradient,
    .background-shapes {
        display: none;
    }

    .share-menu,
    .toast-notification {
        display: none !important;
    }

    .tabs-container {
        display: none;
    }

    .bulk-processing {
        display: none;
    }
}

/* ================= VERSION TEXT ================= */

.version-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

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

.recent-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    /* FIX: was 1.5rem — removed large bottom margin that caused overlap with status banner */
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================= STATUS REMARK ================= */

.recent-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
    flex-shrink: 0;
}

.recent-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid rgba(99, 179, 237, 0.25);
    background: rgba(99, 179, 237, 0.07);
    color: #90cdf4;
    font-size: 0.78rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}

.recent-chip:hover:not(:disabled) {
    background: rgba(99, 179, 237, 0.18);
    border-color: rgba(99, 179, 237, 0.55);
    transform: translateY(-1px);
}

.recent-chip:active:not(:disabled) {
    transform: translateY(0);
}

.recent-chip:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}