/*=================================================================
    International Couriers Mancherial — Full Responsive CSS
=================================================================*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
    --ink:          #1f2937;
    --ink-2:        #374151;
    --ocean:        #2563eb;
    --teal:         #52A0D8;
    --teal-light:   #93c5fd;
    --gold:         #52A0D8;
    --gold-light:   #D3EBFB;
    --cream:        #ffffff;
    --smoke:        #f3f4f6;
    --mist:         #e5e7eb;
    --slate:        #6b7280;
    --white:        #ffffff;

    --font-head:    'Syne', sans-serif;
    --font-body:    'Instrument Sans', sans-serif;

    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur:          0.35s;

    --r-sm:  10px;
    --r-md:  18px;
    --r-lg:  28px;
    --r-xl:  40px;

    --sec-pad: clamp(4rem, 8vw, 8rem);
    --nav-h:   80px;

    --sh-sm:  0 2px 12px rgba(0,0,0,.03);
    --sh-md:  0 8px 32px rgba(0,0,0,.06);
    --sh-lg:  0 20px 60px rgba(0,0,0,.08);
    --sh-xl:  0 32px 80px rgba(0,0,0,.12);
}

/* ══════════════════════════════════════════
   RESET & BASE (NUCLEAR OVERFLOW FIXES)
══════════════════════════════════════════ */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden !important; /* Hard lock */
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* Hard lock */
    position: relative;
}

/* Global text wrapping to prevent long URLs/Emails from blowing out layout */
a, p, span, div, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img, svg { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color var(--dur) ease; 
}

h1,h2,h3,h4,h5,h6 { 
    font-family: var(--font-head); 
    line-height: 1.15; 
    color: var(--ink); 
    font-weight: 700; 
}

p { 
    color: var(--slate); 
    margin-bottom: 1rem; 
    line-height: 1.75; 
}

/* Force specific flex/grid children to shrink */
input, select, textarea {
    max-width: 100% !important;
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.container {
    width: min(92%, 1200px);
    margin-inline: auto;
    max-width: 100%;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.sh-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem 1rem; border-radius: 50px;
    background: rgba(82,160,216,.1); border: 1px solid rgba(82,160,216,.2);
    color: var(--teal); font-size: .78rem; font-weight: 600;
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 1.1rem;
}

.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 640px; margin-inline: auto; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: .75rem; }
.section-header p  { font-size: clamp(.95rem, 1.5vw, 1.1rem); max-width: 520px; margin-inline: auto; margin-bottom: 0; }
.section-header.left-aligned { text-align: left; margin-inline: 0; max-width: none; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.8rem; border-radius: 50px;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    border: none; cursor: pointer; text-decoration: none !important;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, background var(--dur) ease;
    white-space: normal; /* Allows button text to wrap on tiny screens if needed */
    text-align: center;
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(82,160,216,.3); }
.btn-primary:hover { background: #418bc2; transform: translateY(-3px); box-shadow: 0 12px 25px rgba(82,160,216,.4); }
.btn-secondary { background: transparent; border: 2px solid rgba(82,160,216,.4); color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: var(--white); }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.home-nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background .4s ease, box-shadow .4s ease, height .3s ease;
    width: 100%;
}
.home-nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 70px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1320px;
    padding-inline: clamp(1rem, 4vw, 2rem);
    margin-inline: auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; }
.nb-main { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.3px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nl { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: #4b5563; transition: color var(--dur) ease; }
.nl:hover, .nl.active { color: var(--ink); font-weight: 600; }
.nav-links .nav-login-link { display: none; }

.nav-action-wrapper { display: flex; align-items: center; gap: 1rem; }

.btn-nav-track {
    display: inline-flex; align-items: center;
    padding: .5rem 1.6rem; background: transparent;
    color: var(--teal) !important; border: 1.5px solid var(--teal);
    border-radius: 50px; font-family: var(--font-body);
    font-weight: 600; font-size: .9rem; transition: all var(--dur) ease;
}
.btn-nav-track:hover { background: var(--teal); color: var(--white) !important; }

/* Hamburger */
.nav-hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 38px; height: 38px;
    border: none; background: none; cursor: pointer; padding: .4rem;
    flex-shrink: 0;
}
.nav-hamburger span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    isolation: isolate;
    padding-top: var(--nav-h);
    padding-bottom: 4rem;
    width: 100%;
}

.hero-blob {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #D3EBFB;
    clip-path: ellipse(60% 65% at 20% 15%);
    z-index: -1;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 1320px;
    padding-inline: clamp(1rem, 4vw, 2rem);
    margin-inline: auto;
    position: relative;
    z-index: 2;
    gap: 2.5rem;
}

.hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    flex-wrap: wrap;
}

.hero-left { flex: 1; display: flex; justify-content: flex-start; min-width: 0; }
.hero-plane-img {
    width: 100%;
    max-width: 620px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: floatPlane 6s ease-in-out infinite;
}

@keyframes floatPlane {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    min-width: 0; /* Prevents text blowout */
    width: 100%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
    color: var(--slate);
    max-width: 440px;
    line-height: 1.65;
    margin-bottom: 0;
}

.hero-actions { margin-top: 2rem; }

.btn-hero-wa {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(115deg, #25d366, #128c7e) !important;
    color: #ffffff !important;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    border-radius: 50px; text-decoration: none;
    box-shadow: 0 8px 20px rgba(37,211,102,.3);
    transition: transform var(--dur) ease, box-shadow var(--dur) ease;
    white-space: normal;
    text-align: center;
}
.btn-hero-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(37,211,102,.4); }

.hero-search-box-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-search-box {
    background: #ffffff;
    border-radius: 100px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    width: 100%;
}

.hsb-group { display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem; flex: 1; min-width: 0; }
.hsb-icon { display: flex; flex-shrink: 0; }
.hsb-text { display: flex; flex-direction: column; text-align: left; min-width: 0; flex: 1; }
.hsb-text label { font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.hsb-text .val { font-size: 0.85rem; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsb-text input {
    font-size: 0.85rem; color: var(--ink);
    border: none; outline: none; background: transparent;
    padding: 0; width: 100%; min-width: 0;
}
.hsb-text input::placeholder { color: #a1a1aa; }
.hsb-divider { width: 1px; height: 40px; background: #e5e7eb; }
.hsb-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--teal); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hsb-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(82,160,216,0.3); }

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
.stats-section {
    background: var(--white);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--mist);
    border-bottom: 1px solid var(--mist);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.stat-block {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
    position: relative;
    border-right: 1px solid var(--mist);
    transition: background 0.25s ease;
    min-width: 0;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: var(--smoke); }

.stat-block::before {
    content: ''; position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px; height: 3px;
    background: var(--teal);
    border-radius: 0 0 4px 4px;
    transition: transform 0.3s var(--ease-out);
}
.stat-block:hover::before { transform: translateX(-50%) scaleX(1); }

.sb-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--gold-light);
    border-radius: var(--r-sm);
    margin: 0 auto 1rem;
    color: var(--teal);
}

.sb-number-row {
    display: flex; align-items: baseline; justify-content: center;
    gap: 0.1rem; line-height: 1; margin-bottom: 0.5rem; flex-wrap: wrap;
}
.sb-value { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.sb-plus { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; color: var(--teal); line-height: 1; }
.sb-label { color: var(--slate); font-size: clamp(0.8rem, 1.1vw, 0.9rem); font-weight: 500; line-height: 1.4; }

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services-section { padding-block: var(--sec-pad); background: var(--smoke); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--white); border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    transition: transform .4s var(--ease-out), box-shadow .4s ease; box-shadow: var(--sh-sm);
    min-width: 0;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--sh-xl); }
.sc-icon-wrap { width: 64px; height: 64px; border-radius: var(--r-md); background: var(--gold-light); display: grid; place-items: center; margin-bottom: 1.5rem; }
.sc-icon .icon { color: var(--teal); }
.service-card h3 { font-size: 1.2rem; margin-bottom: .65rem; color: var(--ink); }
.service-card > p { font-size: .9rem; flex-grow: 1; margin-bottom: 1.25rem; line-height: 1.65; }
.sc-cta { font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--teal); }

/* ══════════════════════════════════════════
   WHY US
══════════════════════════════════════════ */
.whyus-section { padding-block: var(--sec-pad); background: var(--white); }
.whyus-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.why-point { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.1rem; border-radius: var(--r-md); transition: all .3s ease; min-width: 0; }
.why-point:hover { background: var(--smoke); transform: translateX(6px); }
.wp-icon { flex-shrink: 0; width: 46px; height: 46px; background: var(--white); border-radius: var(--r-sm); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.wp-icon .icon { color: var(--teal); }
.wp-text { min-width: 0; }
.wp-text strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: .2rem; }

.trust-panel { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--sh-xl); border: 1px solid var(--mist); }
.tp-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--mist); }
.tp-rating { text-align: center; margin-bottom: 1.75rem; padding: 1.25rem; background: var(--smoke); border-radius: var(--r-md); }
.tpr-stars { display: flex; justify-content: center; gap: .2rem; margin-bottom: .5rem; flex-wrap: wrap; }
.tp-testimonials { position: relative; min-height: 110px; background: var(--gold-light); border-radius: var(--r-md); margin-bottom: 1rem; overflow: hidden; }
.testimonial { position: absolute; inset: 0; padding: 1.25rem 1.5rem; opacity: 0; transition: opacity .5s ease; display: flex; flex-direction: column; justify-content: center; }
.testimonial.active { opacity: 1; }
.tp-dots { display: flex; justify-content: center; gap: .4rem; padding-bottom: .25rem; }
.tp-dot { width: 8px; height: 8px; background: var(--mist); border-radius: 50%; cursor: pointer; }
.tp-dot.active { background: var(--teal); }

/* ══════════════════════════════════════════
   TRACK SECTION
══════════════════════════════════════════ */
.home-track-section { padding-block: var(--sec-pad); background: var(--smoke); }
.home-track-card { max-width: 660px; margin-inline: auto; background: var(--white); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); text-align: center; box-shadow: var(--sh-lg); width: 100%; }
.main-search-box { max-width: 600px; margin-inline: auto; margin-bottom: .5rem; width: 100%; }
.msb-row { display: flex; align-items: center; gap: .5rem; background: var(--smoke); border: 1.5px solid var(--mist); border-radius: var(--r-md); padding: .5rem .5rem .5rem 1.1rem; min-width: 0; }
.msb-input { flex: 1; background: none; border: none; outline: none; font-size: 1.1rem; font-family: var(--font-head); font-weight: 600; letter-spacing: 2px; min-width: 0; }
.msb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.6rem; border: none; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 700; font-size: .95rem; cursor: pointer; white-space: normal; text-align: center; }
.htc-route { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.htc-line { flex-grow: 1; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--teal) 0px, var(--teal) 6px, transparent 6px, transparent 12px); opacity: 0.3; }
.htc-plane { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); padding: 0 .6rem; color: var(--teal); }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.home-contact-section { padding-block: var(--sec-pad); background: var(--white); }
.home-contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-xl); border: 1px solid var(--mist); }
.hcg-info { background: var(--teal); color: var(--white); padding: clamp(2.5rem, 5vw, 4rem); position: relative; min-width: 0; }
.hci-item { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.5rem; min-width: 0; }
.hci-item > div { min-width: 0; } /* Flex shrink fix */
.hci-icon { color: var(--gold-light); flex-shrink: 0; }
.hci-item strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--white); margin-bottom: .3rem; }
.hci-item a, .hci-item p { font-size: .875rem; color: rgba(255,255,255,.8); margin: 0; display: block; word-break: break-word; }
.hcg-form { background: var(--white); padding: clamp(2.5rem, 5vw, 4rem); min-width: 0; }
.hf-group { margin-bottom: 1.1rem; }
.hf-group label { display: block; font-size: .75rem; font-weight: 700; color: var(--slate); margin-bottom: .4rem; text-transform: uppercase; }
.hf-group input, .hf-group select, .hf-group textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--mist); border-radius: var(--r-sm); font-size: .95rem; background: var(--smoke); outline: none; transition: border-color .3s ease; font-family: var(--font-body); }
.hf-group input:focus, .hf-group select:focus, .hf-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--gold-light); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.home-footer { background: var(--ink); color: var(--white); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-brand { min-width: 0; }
.ft-links h4, .ft-services h4, .ft-contact h4 { font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--white); }
.ft-links a, .ft-services a { display: block; color: rgba(255,255,255,.6); font-size: .875rem; margin-bottom: .7rem; word-break: break-word; }
.ft-links a:hover, .ft-services a:hover { color: var(--white); }
.ft-contact p { color: rgba(255,255,255,.6); font-size: .875rem; word-break: break-word; }
.footer-bottom { padding-block: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

/* ══════════════════════════════════════════
   FLOATING BUTTONS
══════════════════════════════════════════ */
.floating-actions { position: fixed; bottom: 1.75rem; right: 1.75rem; display: flex; flex-direction: column; gap: .7rem; z-index: 999; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--white); box-shadow: var(--sh-lg); transition: transform .3s var(--ease-spring); }
.fab:hover { transform: scale(1.1); }
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--teal); }

/* ══════════════════════════════════════════
   TRACKING RESULT CARD
══════════════════════════════════════════ */
.track-result-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.08); border: 1px solid var(--mist); text-align: left; min-width: 0; }
.trc-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; background: var(--smoke); flex-wrap: wrap; gap: 10px; }
.trc-label { font-size: .68rem; font-weight: 700; color: var(--slate); text-transform: uppercase; }
.trc-awb-val { font-family: 'Times New Roman', serif; font-size: 1.6rem; font-weight: 800; color: var(--ink); display: block; word-break: break-all; }
.trc-status { display: inline-flex; padding: .4rem 1rem; border-radius: 50px; font-weight: 700; font-size: .82rem; border: 1.5px solid; text-align: center; }
.tracking-table { width: 100%; border-collapse: collapse; }
.tracking-table td { padding: 0.9rem 1.4rem; border-bottom: 1px solid var(--mist); font-size: 0.95rem; }
.tracking-table td:first-child { font-weight: 700; color: var(--slate); text-transform: uppercase; font-size: 0.7rem; width: 40%; background: var(--smoke); }
.tracking-table td:last-child { font-family: var(--font-head); font-weight: 600; color: var(--ink); word-break: break-word; }
.tr-progress { padding: 1rem 1.4rem; border-top: 1px solid var(--mist); background: var(--smoke); }
.tr-error, .tr-loading { background: var(--smoke); padding: 1rem 1.2rem; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; text-align: center; color: var(--ink); border: 1px solid var(--mist); width: 100%; box-sizing: border-box; }

/* ══════════════════════════════════════════
   AUTH & ADMIN PAGES (FULLY RESPONSIVE)
══════════════════════════════════════════ */
.auth-page .home-nav { position: sticky; top: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); height: 70px; }
.auth-main { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 70px - 85px); padding: 2rem 1rem; background: var(--smoke); }
.auth-container { width: 100%; max-width: 420px; margin-inline: auto; }
.auth-card { background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid var(--mist); text-align: center; width: 100%; }
.auth-card h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 0.5rem; }
.auth-card > p { color: var(--slate); margin-bottom: 2rem; font-size: 0.95rem; }
.auth-card .form-group { text-align: left; margin-bottom: 1.25rem; width: 100%; }
.auth-card .form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .5rem; }
.auth-card .form-group input { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--mist); border-radius: var(--r-sm); font-size: .95rem; background: var(--smoke); outline: none; transition: border-color .3s ease, box-shadow .3s ease; box-sizing: border-box; }
.auth-card .form-group input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--gold-light); }
.auth-switch { margin-top: 1.5rem; font-size: .9rem; }
.auth-switch a { color: var(--teal); font-weight: 600; }

.flash-message { padding: 1rem; border-radius: var(--r-sm); margin-bottom: 1.5rem; font-weight: 600; border: 1px solid; word-break: break-word; }
.flash-message.success { background: #f0fdf4; color: #166534; border-color: #22c55e; }
.flash-message.error { background: #fef2f2; color: #991b1b; border-color: #ef4444; }

.admin-page { background: var(--smoke); width: 100%; overflow-x: hidden; }
.admin-wrapper { display: flex; flex-direction: column; min-height: 100vh; width: 100%; max-width: 100vw; }
.admin-header { background: var(--white); box-shadow: var(--sh-md); padding: 0 clamp(1rem, 3vw, 2rem); height: 70px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; width: 100%; }
.admin-header .logo-area { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-head); font-weight: 700; min-width: 0; }
.admin-header .logo-area img { height: 40px; width: 40px; border-radius: 50%; flex-shrink: 0; }
.admin-header .logo-area span { font-size: 1.1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-header .header-right { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.admin-header .user-info { font-size: 0.9rem; color: var(--slate); white-space: nowrap; }
.admin-nav a { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); margin-left: 1.5rem; transition: color 0.3s ease; white-space: nowrap; }
.admin-nav a:hover { color: var(--teal); }
.admin-main { flex-grow: 1; padding: clamp(1rem, 3vw, 2rem); width: 100%; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.admin-content .dashboard-header { margin-bottom: 2rem; }
.admin-content .dashboard-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.25rem; }
.admin-content .dashboard-header p { color: var(--slate); font-size: 1rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; width: 100%; }
.stat-card { background: var(--white); padding: 1.5rem; border-radius: var(--r-md); box-shadow: var(--sh-sm); display: flex; flex-direction: column; position: relative; min-width: 0; }
.stat-card h4 { font-size: 0.9rem; color: var(--slate); margin-bottom: 0.5rem; text-transform: uppercase; font-weight: 600; }
.stat-card p { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--ink); margin: 0; }
.stat-card .stat-icon { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; opacity: 0.5; }

.content-card { background: var(--white); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); box-shadow: var(--sh-sm); margin-bottom: 2rem; width: 100%; box-sizing: border-box; overflow: hidden; }
.content-card h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 1rem; }

.shipment-form .sf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; width: 100%; }
.shipment-form .sf-full { grid-column: 1 / -1; }
.shipment-form .form-group label, .content-card .form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .5rem; }

/* Critical Fix for Admin Tables */
.table-container { overflow-x: auto; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-container table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 800px; /* Forces scroll on small screens instead of crushing */ }
.table-container th, .table-container td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--mist); vertical-align: middle; }
.table-container th { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; color: var(--slate); background: var(--smoke); }
.table-container tbody tr:hover { background: #f9fafb; }
.awb-badge { background: var(--gold-light); color: var(--teal); padding: 0.3rem 0.6rem; border-radius: var(--r-sm); font-weight: 700; white-space: nowrap; }
.status-form select { padding: 0.4rem 0.8rem; border-radius: var(--r-sm); border: 1px solid var(--mist); font-weight: 600; font-size: 0.85rem; cursor: pointer; max-width: 100%; }
.actions { white-space: nowrap; }
.actions .btn-sm { padding: 0.4rem 0.7rem; font-size: 0.8rem; border-radius: var(--r-sm); text-decoration: none; display: inline-block; margin-right: 0.5rem; border: 1px solid transparent; text-align: center; }
.actions .btn-edit { background-color: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }
.actions .btn-delete { background-color: #fef2f2; color: #ef4444; border-color: #fecaca; }

/* Status badges for customer dashboard */
.status-badge { padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; display: inline-block; }
.status-order-placed { background: #fef3c7; color: #d97706; }
.status-processing { background: #dbeafe; color: #2563eb; }
.status-in-transit { background: #fef3c7; color: #d97706; }
.status-out-for-delivery { background: #ecfdf5; color: #059669; }
.status-delivered { background: #d1fae5; color: #047857; }
.status-on-hold { background: #fee2e2; color: #dc2626; }
.status-returned { background: #f3f4f6; color: #374151; }

.admin-footer { text-align: center; padding: 1.5rem; color: var(--slate); font-size: 0.85rem; background: var(--white); border-top: 1px solid var(--mist); width: 100%; }

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    /* Nav */
    .nav-links, .btn-nav-track { display: none; }
    .btn-nav-login { display: none; }
    .nav-hamburger { display: flex; z-index: 1001; }
    .nav-action-wrapper { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .nav-links.open {
        display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
        flex-direction: column; align-items: center; justify-content: center;
        z-index: 999; gap: 0.75rem; padding-top: 1rem;
    }
    .nav-links.open .nav-login-link { display: inline-flex; }
    .nav-links.open .nl { font-size: 1.4rem; padding: 1rem 1.5rem; }
    .nav-links.open .nl { font-size: 1.4rem; padding: 1rem 1.5rem; }

    .nav-logo { width: 100%; justify-content: flex-start; }
    .nb-main { white-space: normal; font-size: 0.95rem; }

    /* Hero */
    .hero-section { padding-top: var(--nav-h); padding-bottom: 2.5rem; min-height: auto; }
    .hero-blob { clip-path: ellipse(120% 50% at 50% -10%); }
    .hero-content-wrapper { gap: 2rem; }
    .hero-top-row { flex-direction: column; text-align: center; gap: 1.5rem; }
    .hero-left { width: 100%; display: flex; justify-content: center; }
    .hero-plane-img { width: 80%; max-width: 420px; animation: none; }
    .hero-right { align-items: center; text-align: center; width: 100%; }
    .hero-desc { max-width: 100%; }

    /* Search box stacked */
    .hero-search-box { flex-direction: column; border-radius: var(--r-lg); padding: 1.25rem; gap: 0.75rem; align-items: stretch; }
    .hsb-group { width: 100%; padding: 0.5rem 0; flex-direction: column; align-items: flex-start; }
    .hsb-divider { width: 100%; height: 1px; margin: 0; }
    .hsb-btn { width: 100%; border-radius: var(--r-sm); height: 52px; margin-top: 0.5rem; }

    /* Stats 2×2 Grid Fix */
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .stat-block { border-right: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
    .stat-block:nth-child(2n) { border-right: none; }
    .stat-block:nth-last-child(-n+2) { border-bottom: none; }

    /* Other sections */
    .whyus-inner { grid-template-columns: minmax(0, 1fr) !important; }
    .home-contact-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }

    /* Admin */
    .admin-header { padding: 0 1rem; }
    .admin-header .header-right { gap: 1rem; }
    .admin-nav a { margin-left: 0.75rem; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .shipment-form .sf-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .home-nav { height: var(--nav-h); }
    .home-nav.scrolled { height: 56px; }
    .nb-main { font-size: 1rem; }

    .hero-section { padding-top: var(--nav-h); padding-bottom: 2rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
    .hero-desc { font-size: 0.95rem; }
    .hero-plane-img { width: 90%; max-width: 340px; }
    .btn-hero-wa { font-size: 0.9rem; padding: 0.8rem 1.5rem; width: 100%; justify-content: center; }

    .services-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .whyus-inner { gap: 2rem; }
    .hcg-info, .hcg-form { padding: 2rem 1.5rem; }
    .footer-top { grid-template-columns: minmax(0, 1fr) !important; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

    .admin-main { padding: 1rem; }
    .admin-header .user-info { display: none; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .stat-card { padding: 1rem; }
    .stat-card p { font-size: 2rem; }
    .content-card { padding: 1rem; }
    .shipment-form .sf-grid { grid-template-columns: 1fr; gap: 1rem; }
    .table-container table { min-width: 600px; font-size: 0.8rem; }
    .table-container th, .table-container td { padding: 0.6rem 0.5rem; }

    .floating-actions { bottom: 1.25rem; right: 1.25rem; gap: 0.5rem; }
    .fab { width: 48px; height: 48px; }

    .trc-grid { grid-template-columns: minmax(0, 1fr); }
    .trc-item { border-right: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Small phones (≤480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
    :root { --nav-h: 60px; }

    .hero-title { font-size: clamp(1.8rem, 9vw, 2.2rem); }
    .hero-plane-img { width: 95%; }

    .sb-value { font-size: clamp(1.8rem, 7vw, 2.4rem); }

    .home-contact-grid { border-radius: var(--r-lg); }

    .home-footer { padding-top: 2.5rem; }

    .stats-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .stat-card { padding: 0.8rem; }
    .stat-card p { font-size: 1.5rem; }
    .content-card { padding: 0.8rem; margin-bottom: 1rem; }
    .table-container table { min-width: 500px; font-size: 0.75rem; }
    .table-container th, .table-container td { padding: 0.5rem 0.3rem; }

    .floating-actions { bottom: 1rem; right: 1rem; }
    .fab { width: 44px; height: 44px; }

    .msb-row { flex-wrap: wrap; padding: 0.8rem; }
    .msb-input { width: 100%; font-size: 1rem; text-align: center; }
    .msb-icon { display: none; } /* Hide icon on tiny screens to save space */
    .msb-btn { width: 100%; justify-content: center; margin-top: 0.5rem; padding: 1rem; }
    
    .shipment-form .sf-grid { grid-template-columns: minmax(0, 1fr) !important; }
}