/* =====================================================
   BlueTag - Premium Courier Management System
   Design System & Global Styles — Light Theme
   Inspired by UPS design language
   ===================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors */
    --color-primary: #01255e;
    --color-primary-light: #0a3d8f;
    --color-primary-dark: #001a45;
    --color-primary-glow: rgba(1, 37, 94, 0.12);

    --color-red: #f4581f;
    --color-red-light: #e03b37;
    --color-red-dark: #a81b18;

    --color-accent: #f4581f;
    --color-gold: #f4581f;

    /* UPS-inspired tones */
    --color-brown: #644117;
    --color-brown-dark: #4a2f10;
    --color-brown-bg: #0f2044;  
    --color-yellow-gold: #f4581f;

    /* Status Colors */
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #f4581f;
    --color-info: #0a3d8f;

    /* Neutrals — Light Theme */
    --color-bg: #ffffff;
    --color-bg-secondary: #f5f5f5;
    --color-bg-warm: #f7f2ec;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #f8f9fc;
    --color-bg-input: #ffffff;
    --color-border: #e0e0e0;
    --color-border-light: #ccc;

    --color-text: #1a1a1a;
    --color-text-secondary: #555555;
    --color-text-muted: #999999;

    /* Typography */
    --font-primary: 'Roboto', roboto-fallback, tahoma, helvetica, arial, sans-serif;
    --font-display: 'Roboto', roboto-fallback, tahoma, helvetica, arial, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* NOTE: overflow-x:hidden on html breaks vertical scroll in Safari/iOS — never set it here */
    overflow-y: auto;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* 'clip' prevents horizontal overflow without breaking vertical scroll */
    width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 960px;
}

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

.text-right {
    text-align: right;
}

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

.text-secondary {
    color: var(--color-text-secondary);
}

.text-success {
    color: var(--color-success);
}

.text-danger {
    color: var(--color-danger);
}

.text-warning {
    color: var(--color-warning);
}

.text-primary {
    color: var(--color-primary);
}

.text-red {
    color: var(--color-red);
}

.text-white {
    color: #fff;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-1 {
    gap: var(--space-sm);
}

.gap-2 {
    gap: var(--space-md);
}

.gap-3 {
    gap: var(--space-lg);
}

.gap-4 {
    gap: var(--space-xl);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

.heading-xl {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.heading-lg {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
}

.heading-md {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
}

.heading-sm {
    font-size: 1.05rem;
    font-weight: 600;
}

.subtext {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.brand-text {
    color: var(--color-primary);
}

.brand-text-red {
    color: var(--color-red);
}

/* ---------- Top Alert Banner ---------- */
.top-banner {
    background: var(--color-yellow-gold);
    color: #ffffff;
    text-align: center;
    padding: 8px var(--space-lg);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.top-banner a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

/* ---------- Utility Bar (UPS-style) ---------- */
.utility-bar {
    background: #f5f5f5;
    border-bottom: 1px solid var(--color-border);
    padding: 6px 0;
    font-size: 0.78rem;
}

.utility-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.utility-link {
    color: var(--color-text-secondary) !important;
    font-weight: 500;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.utility-link:hover {
    color: var(--color-primary) !important;
}

.utility-divider {
    color: var(--color-border-light);
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .utility-bar {
        display: none;
    }
}

/* ==========================================================
   NAVIGATION — UPS-inspired with Mega Menu
   ========================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-primary) !important;
    letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link,
.nav-links a {
    padding: 20px 18px;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: block;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active,
.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

/* Active indicator underline */
.nav-item.has-megamenu .nav-link.active {
    border-bottom: 3px solid var(--color-yellow-gold);
    padding-bottom: 17px;
}

/* Mega menu open state - underline */
.nav-item.has-megamenu.megamenu-open .nav-link {
    border-bottom: 3px solid var(--color-yellow-gold);
    padding-bottom: 17px;
}

/* Search button */
.nav-search-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.nav-search-btn:hover {
    opacity: 1;
}

/* Login button - gold style */
.btn-primary-gold {
    background: var(--color-yellow-gold);
    color: #ffffff;
    border: 2px solid var(--color-yellow-gold);
    font-weight: 700;
}

.btn-primary-gold:hover {
    background: #e6a300;
    border-color: #e6a300;
    color: #1a1a1a;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-sm);
}

/* ==========================================================
   MEGA MENU — UPS-style dropdown
   ========================================================== */

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-top: 3px solid var(--color-yellow-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 560px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.2s ease;
    z-index: 999;
}

.nav-item.has-megamenu.megamenu-open .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.megamenu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 28px 0;
}

.megamenu-col {
    padding: 0 32px;
    border-right: 1px solid var(--color-border);
}

.megamenu-col:last-child {
    border-right: none;
}

.megamenu-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    padding: 0 0 12px;
    margin-bottom: 4px;
}

.megamenu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-links li {
    margin: 0;
}

.megamenu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    color: var(--color-text-secondary) !important;
    font-size: 0.88rem;
    font-weight: 400;
    transition: color var(--transition-fast);
    text-decoration: none;
    border-bottom: none;
}

.megamenu-links a:hover {
    color: var(--color-primary) !important;
}

.megamenu-arrow {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: transform var(--transition-fast);
    margin-left: 8px;
}

.megamenu-links a:hover .megamenu-arrow {
    color: var(--color-primary);
    transform: translateX(3px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .megamenu {
        position: static;
        transform: none;
        min-width: auto;
        box-shadow: none;
        border-top: 1px solid var(--color-border);
        display: none;
    }

    .nav-item.has-megamenu.megamenu-open .megamenu {
        display: block;
        transform: none;
    }

    .megamenu-inner {
        grid-template-columns: 1fr;
    }

    .megamenu-col {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 12px 16px;
    }

    .megamenu-col:last-child {
        border-bottom: none;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(1, 37, 94, 0.2);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: #fff;
}

.btn-red {
    background: var(--color-red);
    color: #fff;
    box-shadow: 0 2px 6px rgba(202, 34, 30, 0.2);
}

.btn-red:hover {
    background: var(--color-red-light);
    color: #fff;
}

/* Gold/Yellow button (UPS-style) */
.btn-gold {
    background: var(--color-yellow-gold);
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(255, 181, 0, 0.25);
}

.btn-gold:hover {
    background: #e6a300;
    color: #1a1a1a;
}

/* Help button */
.btn-help {
    background: transparent;
    color: #fff;
    font-weight: 500;
    border: none;
    padding: 10px 14px;
}

.btn-help:hover {
    color: #fff;
    text-decoration: underline;
}

.btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #e8e8e8;
    color: var(--color-text);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

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

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Cards ---------- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: 20px !important; /* Standardized margin */
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--color-border-light);
}

.card-shadow {
    box-shadow: var(--shadow-card);
    border: none;
}

.card-shadow:hover {
    box-shadow: var(--shadow-lg);
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-glow:hover::before {
    opacity: 1;
}

/* Stat Cards */
.stat-card {
    padding: var(--space-xl);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
}

.form-label .required {
    color: var(--color-red);
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    background: var(--color-bg-input);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-control.is-invalid {
    border-color: var(--color-red);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.78rem;
    color: var(--color-red);
    margin-top: 4px;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-primary);
}

/* ---------- Tables ---------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

.table th {
    background: var(--color-bg-secondary);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--color-bg-secondary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

.badge-payment_pending {
    background: rgba(217, 119, 6, 0.15);
    color: #92400e;
}

.badge-order_created {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.badge-pickup_scheduled {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.badge-picked_up {
    background: rgba(1, 37, 94, 0.1);
    color: var(--color-primary);
}

.badge-in_transit {
    background: rgba(10, 61, 143, 0.1);
    color: var(--color-primary-light);
}

.badge-out_for_delivery {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.badge-delivered {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.badge-failed_delivery {
    background: rgba(202, 34, 30, 0.1);
    color: var(--color-red);
}

.badge-returned {
    background: rgba(249, 115, 22, 0.1);
    color: #c2410c;
}

.badge-cancelled {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ==========================================================
   HERO SECTION — UPS-inspired with tabs + character + wave
   ========================================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #0d1f3c 0%, #122c5a 40%, #1a3a7a 70%, #1e4494 100%);
    color: #ffffff;
    overflow: hidden;
    min-height: 78vh;
}

/* Subtle dot pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
    pointer-events: none;
}

/* Tabs area */
.hero-tabs-area {
    padding: 0;
    position: relative;
    z-index: 2;
    min-height: 78vh;
}

/* Two-column hero layout — centered and compact */
.hero-layout {
    display: flex;
    align-items: stretch;
    justify-content: center; /* Center the content */
    gap: 0;
    min-height: 78vh;
}

/* Left content area - very compact and centered */
.hero-left {
    flex: 0 1 540px; /* More compact width */
    max-width: 100%;
    margin: 0 auto;
    padding: 56px 0 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; /* Center text by default */
}

/* Right: character image fills full hero height */
.hero-right {
    flex-shrink: 0;
    width: 420px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 90px;
    /* account for wave */
    z-index: 3;
}

.hero-character-img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    object-position: bottom;
    display: block;
    /* Image has transparent bg — no blend-mode needed */
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.4));
    animation: heroCharSlide 0.8s ease-out;
}

@keyframes heroCharSlide {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@media (max-width: 900px) {
    .hero-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-tabs-area {
        min-height: auto;
        padding: 0 var(--space-md);
    }

    .hero-layout {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .hero-left {
        padding: 32px 0 100px;
        max-width: 100%;
        justify-content: flex-start;
    }

    .hero-left .heading-xl {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-left .subtext {
        font-size: 0.9rem;
    }

    .hero-tabs {
        gap: 0;
        margin-bottom: var(--space-lg);
    }

    .hero-tab {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .hero-track-form {
        flex-direction: column;
        gap: 10px;
    }

    .hero-track-form .form-control {
        min-width: unset;
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .hero-track-form .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .hero-wave svg {
        height: 60px;
    }
}

/* Tabs (Track / Ship) */
.hero-tabs {
    display: flex;
    justify-content: center; /* Center the tabs */
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.hero-tab {
    padding: 16px 32px;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.01em;
}

/* Ship tab — anchor styled as tab link */
.hero-tab-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.hero-tab-link:hover {
    color: #ffffff;
}

.hero-tab-link .hero-tab-caret {
    font-size: 1rem;
    opacity: 0.7;
}

.hero-tab:hover {
    color: #ffffff;
}

.hero-tab.active {
    color: #ffffff;
    border-bottom-color: var(--color-yellow-gold);
}

.hero-tab-caret {
    font-size: 0.55rem;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.hero-tab-caret.active-caret {
    opacity: 1;
}

.hero-tab-content {
    display: none;
}

.hero-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.hero-track-form {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
}

.hero-track-form .form-control {
    flex: 1;
    min-width: 180px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--color-text);
}

.hero-track-form .btn {
    border-radius: var(--radius-full);
    padding: 14px 28px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hero-help-text {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center; /* Center help text */
}

.hero-help-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Curved wave bottom */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Accent glow behind character */
.hero-right::before {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(100, 160, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================
   CONTENT SECTIONS
   ========================================================== */

.section {
    padding: 64px 0;
}

.section-warm {
    background: var(--color-bg-warm);
}

.section-grey {
    background: var(--color-bg-secondary);
}

.section-title-bar {
    width: 40px;
    height: 4px;
    background: var(--color-red);
    border-radius: 2px;
    margin-top: 12px;
}

/* Features */
.feature-card {
    padding: var(--space-2xl);
    text-align: center;
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto var(--space-md);
    background: rgba(1, 37, 94, 0.06);
}

.feature-card h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}

/* ---------- Page Header ---------- */
.page-header {
    padding: 80px 0 var(--space-2xl);
    background: var(--color-primary);
    color: #fff;
    margin-bottom: var(--space-2xl);
}

.page-header h1 {
    color: #fff;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.35);
}

.page-header .subtext {
    color: rgba(255, 255, 255, 0.75);
}

/* Track Box */
.track-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.track-input-group {
    display: flex;
    gap: 8px;
}

.track-input-group .form-control {
    flex: 1;
    font-size: 0.95rem;
    padding: 14px 16px;
    border-radius: var(--radius-md);
}

.track-input-group .btn {
    padding: 14px 24px;
}

@media (max-width: 768px) {
    .track-input-group {
        flex-direction: column;
        gap: 10px;
    }
    .track-input-group .btn {
        width: 100%;
    }
}

/* ---------- Tracking Progress ---------- */
.tracking-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    position: relative;
}

.tracking-progress::before {
    content: '';
    position: absolute;
    top: calc(var(--space-lg) + 11px);
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-border);
    transform: translateY(-50%);
}

.tracking-progress .progress-fill {
    position: absolute;
    top: calc(var(--space-lg) + 11px);
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.tracking-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tracking-step .step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--color-border);
    transition: all var(--transition-base);
}

.tracking-step.completed .step-dot {
    background: var(--color-success);
    border-color: var(--color-success);
}

.tracking-step.active .step-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.tracking-step .step-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 75px;
    font-weight: 500;
}

.tracking-step.completed .step-label,
.tracking-step.active .step-label {
    color: var(--color-text);
    font-weight: 600;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid;
    background: #fff;
    z-index: 1;
}

.timeline-dot.active {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.timeline-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
}

.timeline-content .timeline-status {
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: capitalize;
    margin-bottom: 2px;
}

.timeline-content .timeline-location {
    color: var(--color-text-secondary);
    font-size: 0.83rem;
}

.timeline-content .timeline-desc {
    color: var(--color-text-secondary);
    font-size: 0.83rem;
    margin-top: 2px;
}

.timeline-content .timeline-time {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin-top: 6px;
}

/* ==========================================================
   SHIPPING WIZARD — Vertical Steps (UPS-inspired)
   ========================================================== */

.wizard-page {
    min-height: 100vh;
    background: var(--color-bg-secondary);
    overflow-x: hidden;
}

.wizard-header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0 24px;
}

.wizard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.wizard-header .wizard-subtitle {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.wizard-header .wizard-bar {
    width: 40px;
    height: 4px;
    background: var(--color-red);
    border-radius: 2px;
    margin-top: 10px;
}

.wizard-layout {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
    align-items: start;
}

@media (max-width: 1024px) {
    .wizard-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg) 0;
    }

    .wizard-header {
        padding: 20px 0 16px;
    }

    .wizard-header h1 {
        font-size: 1.35rem;
    }

    .wizard-card {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .wizard-card-title {
        font-size: 1.05rem;
        margin-bottom: var(--space-lg);
    }

    .wizard-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .wizard-nav .btn {
        width: 100%;
        min-width: unset;
    }

    .wizard-summary {
        position: static;
    }

    .wizard-summary-card {
        padding: var(--space-lg);
    }
}

/* Vertical Step Indicator */
.wizard-vsteps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 80px;
}

.wizard-vstep {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    position: relative;
}

.wizard-vstep:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

@media (max-width: 1024px) {
    .wizard-vsteps {
        flex-direction: row;
        position: static;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: var(--space-xl);
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .wizard-vsteps::-webkit-scrollbar {
        display: none;
    }
    .wizard-vstep {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 100px;
        flex: 1;
        padding: 5px;
    }
    .wizard-vstep:not(:last-child)::before {
        width: 100%;
        height: 2px;
        left: 50%;
        top: 14px;
        bottom: auto;
    }
    .wizard-vstep-label {
        font-size: 0.75rem;
        margin-top: 8px;
    }
}

.wizard-vstep.completed:not(:last-child)::before {
    background: var(--color-primary);
}

.wizard-vstep-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.wizard-vstep.active .wizard-vstep-dot {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.wizard-vstep.completed .wizard-vstep-dot {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.wizard-vstep.completed .wizard-vstep-dot::after {
    content: '✓';
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
}

.wizard-vstep-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding-top: 1px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.wizard-vstep.active .wizard-vstep-label {
    color: var(--color-text);
    font-weight: 700;
}

.wizard-vstep.completed .wizard-vstep-label {
    color: var(--color-text-secondary);
}

/* Wizard Form Panel */
.wizard-form-area {
    min-height: 400px;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.wizard-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.wizard-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.wizard-nav .btn {
    min-width: 130px;
}

/* Shipping Summary Sidebar */
.wizard-summary {
    position: sticky;
    top: 80px;
}

.wizard-summary-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.wizard-summary-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.summary-empty {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
    padding: var(--space-lg) 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
}

.summary-row .summary-label {
    color: var(--color-text-muted);
}

.summary-row .summary-value {
    font-weight: 500;
    text-align: right;
    max-width: 140px;
    word-break: break-word;
}

.summary-row.total {
    border-top: 2px solid var(--color-border);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.summary-row.total .summary-value {
    color: var(--color-primary);
}

.summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: 10px 0;
}

/* Service Options */
.service-option {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.service-option:hover {
    border-color: rgba(1, 37, 94, 0.3);
    background: rgba(1, 37, 94, 0.02);
}

.service-option.selected {
    border-color: var(--color-primary);
    background: rgba(1, 37, 94, 0.04);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.service-option .service-emoji {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.service-option .service-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.service-option .service-time {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.service-option .service-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
}

.service-option .service-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Review */
.review-section {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.88rem;
}

.review-row .review-label {
    color: var(--color-text-muted);
}

.review-row .review-value {
    font-weight: 500;
    text-align: right;
}

/* ---------- Dashboard ---------- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
    position: fixed;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width var(--transition-base);
    z-index: 100;
}

/* Collapsed sidebar */
.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .nav-label {
    display: none;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 10px;
    gap: 0;
}

.sidebar.collapsed .sidebar-nav .nav-icon {
    width: auto;
    font-size: 1.2rem;
}

.sidebar.collapsed + .main-content {
    margin-left: 60px;
}

.sidebar-nav {
    list-style: none;
    padding: 0 12px;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(1, 37, 94, 0.05);
    color: var(--color-primary);
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
}

.sidebar-section {
    padding: 12px 16px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 700;
}

.main-content {
    flex: 1;
    margin-left: 240px;
    padding: var(--space-2xl);
    background: var(--color-bg-secondary);
    min-height: calc(100vh - 65px);
    transition: margin-left var(--transition-base);
}

.main-content.collapsed {
    margin-left: 60px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 37, 94, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 60px;
        bottom: 0;
        left: 0;
        width: 270px !important;
        max-width: 82vw;
        background: #ffffff;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
        padding-top: 10px;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .sidebar-mobile-header {
        display: flex !important;
    }

    .sidebar .sidebar-section,
    .sidebar .nav-label {
        display: block !important;
    }

    .sidebar .sidebar-nav a {
        justify-content: flex-start !important;
        padding: 10px 14px !important;
        font-size: 0.95rem !important;
    }

    .sidebar .sidebar-nav .nav-icon {
        font-size: 1.1rem !important;
        margin-right: 8px;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1.25rem 1rem !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

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

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

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
    color: #15803d;
}

.alert-danger {
    background: rgba(202, 34, 30, 0.08);
    border: 1px solid rgba(202, 34, 30, 0.18);
    color: var(--color-red);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.18);
    color: #b45309;
}

.alert-info {
    background: rgba(1, 37, 94, 0.05);
    border: 1px solid rgba(1, 37, 94, 0.12);
    color: var(--color-primary);
}

/* Pagination — Compact & Professional */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 0;
}

/* Hide giant SVG icons from default Laravel/Tailwind pagination */
.pagination svg {
    display: none !important;
}

.pagination .page-item .page-link,
.pagination .relative.inline-flex.items-center { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.pagination .page-item.active .page-link,
.pagination .z-10.bg-indigo-50 {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 700;
}

.pagination .page-item .page-link:hover:not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--color-primary);
}

.pagination .page-item.disabled .page-link,
.pagination .cursor-default {
    opacity: 0.4;
    pointer-events: none;
    background: #f1f5f9;
}

/* Force hide the 'Showing X to Y...' text if it looks bad */
nav[role="navigation"] p.text-sm {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Country Select (Tom-Select style overrides)
.ts-wrapper.form-control { padding: 0; border: none; }
.ts-control { min-height: 0; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; box-shadow: none !important; font-family: inherit; }
.ts-control input { font-family: inherit; font-size: 0.875rem; color: var(--color-text); }
.ts-dropdown { border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-family: inherit; font-size: 0.875rem; }
.ts-dropdown .option.active { background: var(--color-primary); color: #fff; }
*/

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
}

.detail-item {
    padding: 6px 0;
}

.detail-item .detail-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    font-weight: 600;
}

.detail-item .detail-value {
    font-weight: 500;
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing */
.pricing-breakdown {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px !important; /* Increased spacing */
    margin-bottom: 20px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 !important; /* Increased spacing */
    border-bottom: 1px dashed var(--color-border);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row.total {
    margin-top: 12px;
    padding-top: 15px !important;
    border-top: 2px solid var(--color-border);
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 800;
}    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

.pricing-row.total {
    border-top: 2px solid var(--color-border);
    padding-top: 12px;
    margin-top: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-primary);
    color: #fff;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    background: #fff;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-card .auth-header h1 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.auth-card .auth-header p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.filter-bar .form-control {
    max-width: 240px;
}

.filter-bar select.form-control {
    max-width: 170px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px var(--space-xl);
    color: var(--color-text-secondary);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    opacity: 0.2;
}

.empty-state h3 {
    margin-bottom: 6px;
    color: var(--color-text);
}

.empty-state p {
    margin-bottom: var(--space-xl);
    font-size: 0.88rem;
}

/* CTA section */
.cta-section {
    background: var(--color-primary);
    padding: 56px 0;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
}

/* Success */
.success-page {
    min-height: 100vh;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-card {
    text-align: center;
    max-width: 540px;
    padding: 48px;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

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

    to {
        transform: scale(1);
    }
}

.success-tracking {
    background: var(--color-bg-secondary);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.04em;
    margin: 24px 0;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.stagger>* {
    animation: fadeIn 0.4s ease backwards;
}

.stagger>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger>*:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger>*:nth-child(3) {
    animation-delay: 0.15s;
}

.stagger>*:nth-child(4) {
    animation-delay: 0.2s;
}

.stagger>*:nth-child(5) {
    animation-delay: 0.25s;
}

.stagger>*:nth-child(6) {
    animation-delay: 0.3s;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

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

/* ==========================================================
   PROGRESSIVE WEB APP (MOBILE EXPERIENCES)
   ========================================================== */

/* Prevent pull-to-refresh on mobile if scrolling down, remove tap highlights */
html, body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbars for app-like web views */
::-webkit-scrollbar {
    display: none;
}

/* Bottom App Navigation for Mobile */
/* Removed bottom nav styles */

/* ==========================================================
   MOBILE SIDEBAR DRAWER
   ========================================================== */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mobile-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-sidebar-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    flex: 1;
}

.mobile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}
.mobile-sidebar-link:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}
.mobile-sidebar-link.active {
    color: var(--color-primary);
    background: rgba(1, 37, 94, 0.06);
    border-left-color: var(--color-primary);
    font-weight: 600;
}
.mobile-sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.mobile-sidebar-link.active svg {
    opacity: 1;
}

.mobile-sidebar-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 20px;
}

.mobile-sidebar-actions {
    padding: 16px 20px;
    flex-shrink: 0;
}

.mobile-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}
.mobile-sidebar-footer p {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-align: center;
}

@media (max-width: 768px) {

    /* Hide desktop headers and footers */
    .top-banner, .utility-bar, .footer { 
        display: none !important; 
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: none !important;
    }

    /* Make space for the fixed bottom nav */
    body {
        padding-bottom: 68px !important;
    }

    /* Streamline top bar for mobile */
    .navbar .container {
        height: 50px;
        padding: 0 16px;
    }

    .navbar-brand img {
        height: 32px !important;
    }

    /* Enhance touch targets for form controls */
    .btn, input, select, textarea {
        min-height: 44px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: var(--radius-lg);
    }

    select.form-control {
        padding-right: 36px;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .form-group {
        margin-bottom: var(--space-md);
    }

    /* Container less padding on mobile */
    .container {
        padding: 0 var(--space-md);
    }

    .main-content {
        padding: var(--space-md) !important;
    }

    /* Cards less padding */
    .card {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    /* Buttons full-width on mobile where appropriate */
    .btn-lg {
        width: 100%;
    }

    /* Tables: allow horizontal scroll */
    .table-responsive, table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Section padding reduction */
    .section {
        padding: var(--space-2xl) 0;
    }

    /* Tom Select touch friendly */
    .ts-control {
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 1rem !important;
    }
}
/* --- Auth UI Refinements --- */
.phone-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.phone-input-group .ts-wrapper {
    width: 130px !important;
    flex-shrink: 0;
}

.phone-input-group .ts-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.phone-input-group .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.password-wrapper {
    position: relative;
    display: block;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--color-primary-light);
}

.password-wrapper .form-control {
    padding-right: 45px !important;
}

/* --- Enhanced Auth UI Fixes --- */
.phone-input-group {
    display: flex !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100%;
}

.phone-input-group .ts-wrapper {
    width: 120px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}

.phone-input-group .form-control {
    flex: 1;
    margin-bottom: 0 !important;
}

.password-wrapper {
    position: relative !important;
    display: block !important;
    width: 100%;
}

.password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.password-wrapper .form-control {
    padding-right: 40px !important;
    margin-bottom: 0 !important;
}

/* --- Robust Support for Auth UI Alignment --- */
.phone-input-group {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
}

.phone-input-group .ts-wrapper {
    width: 140px !important;
    margin-bottom: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.phone-input-group .ts-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.phone-input-group > input {
    flex-grow: 1 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-bottom: 0 !important;
}

.password-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.password-toggle svg {
    display: block !important;
    color: #64748b !important;
}

.password-wrapper .form-control {
    padding-right: 45px !important;
}

/* --- ULTIMATE AUTH UI FIXES --- */
.phone-input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.phone-input-group .ts-wrapper {
    width: 120px !important;
    flex: 0 0 120px !important;
    margin-bottom: 0 !important;
}

.phone-input-group .ts-control {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    height: 100% !important;
    padding-left: 12px !important;
}

.phone-input-group input#phone {
    flex: 1 1 auto !important;
    border-radius: 0 8px 8px 0 !important;
    margin-bottom: 0 !important;
    height: 48px !important; /* Standardized height */
}

.password-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 0 !important;
}

.password-wrapper input {
    width: 100% !important;
    padding-right: 48px !important; /* Space for the icon */
    height: 48px !important;
}

.password-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    z-index: 5 !important;
    box-shadow: none !important;
    outline: none !important;
}

.password-toggle:focus, .password-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.password-toggle svg {
    color: #94a3b8 !important;
    pointer-events: none !important;
}

/* --- PROFESSIONAL PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 25px 0;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination li a, .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination li.active span {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination li a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--color-primary);
}

.pagination li.disabled span {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* --- GLOBAL TOMSELECT CLEANUP --- */
.ts-wrapper { 
    width: 100%; 
    border: none !important; 
    padding: 0 !important; 
}

.ts-control { 
    padding: 8px 12px !important; 
    border-color: var(--color-border, #e0e0e0) !important; 
    border-radius: 8px !important; 
    box-shadow: none !important; 
    font-size: 0.85rem !important; 
    min-height: 40px !important; 
    line-height: var(--line-height-base) !important;
}

.ts-dropdown { 
    border: 1px solid var(--color-border, #e0e0e0) !important; 
    border-radius: 8px !important; 
    box-shadow: var(--shadow-lg) !important; 
    font-size: 0.85rem !important; 
    z-index: 9999 !important; 
}

.ts-dropdown .option { 
    padding: 8px 12px !important; 
}

.ts-dropdown .option.selected, .ts-dropdown .option:hover { 
    background: var(--color-primary) !important; 
    color: #fff !important; 
}

/* ==========================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================== */
.mob-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mob-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        justify-content: space-around;
        align-items: center;
    }
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 8px 4px;
    color: #9ca3af;
    text-decoration: none !important;
    font-size: 0.68rem;
    font-weight: 500;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mob-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    flex-shrink: 0;
}

.mob-nav-item span {
    font-size: 0.68rem;
    line-height: 1;
}

.mob-nav-item:hover,
.mob-nav-item:active {
    color: var(--color-primary);
}

.mob-nav-item.mob-active {
    color: var(--color-primary);
}

.mob-nav-item.mob-active svg {
    stroke: var(--color-primary);
}

/* ==========================================================
   USER & ADMIN DASHBOARD MOBILE RESPONSIVENESS
   ========================================================== */

/* Tablet & Mobile Dashboard Adjustments (<= 1024px) */
@media (max-width: 1024px) {
    .dashboard-layout {
        position: relative;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1.5rem 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .report-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .charts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.75rem !important;
    }

    /* Top Headers */
    .heading-lg {
        font-size: 1.4rem !important;
    }

    .flex.items-center.justify-between,
    div.flex.justify-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .flex.items-center.justify-between > .btn,
    .flex.items-center.justify-between > a.btn,
    .flex.items-center.justify-between > button,
    .flex.items-center.justify-between > form {
        width: 100% !important;
    }

    /* Grids & Cards */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .stat-card {
        padding: 1rem !important;
    }

    .stat-card .stat-value {
        font-size: 1.5rem !important;
    }

    .report-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* Filter Bars across All Dashboard Views */
    .filter-bar,
    form.filter-bar,
    form.filter-bar.card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
        width: 100% !important;
    }

    .filter-bar > div,
    form.filter-bar > div,
    .filter-bar input,
    .filter-bar select,
    .filter-bar button,
    .filter-bar a.btn,
    form.filter-bar input,
    form.filter-bar select,
    form.filter-bar button,
    form.filter-bar a.btn {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #custom-date-inputs,
    #customDateFields {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    #custom-date-inputs > div,
    #customDateFields > div,
    #custom-date-inputs input,
    #customDateFields input {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Table Wrappers & Touch Scroll */
    .table-wrapper,
    .table-wrapper.card,
    .card .table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: var(--radius-md) !important;
        margin-bottom: 1rem !important;
    }

    .table {
        min-width: 600px !important;
        font-size: 0.84rem !important;
    }

    .table th,
    .table td {
        padding: 10px 10px !important;
        white-space: nowrap;
    }

    /* Cards general */
    .card {
        padding: 1rem !important;
        border-radius: var(--radius-md) !important;
    }

    /* Navbar items */
    .profile-name-text {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    /* Sales Report header form */
    div.flex.items-center.justify-between.mb-6 > form.flex {
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    div.flex.items-center.justify-between.mb-6 > form.flex select,
    div.flex.items-center.justify-between.mb-6 > form.flex input,
    div.flex.items-center.justify-between.mb-6 > form.flex button {
        width: 100% !important;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem 0.5rem !important;
    }

    .heading-lg {
        font-size: 1.25rem !important;
    }

    .stat-card .stat-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
    }

    .btn {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }
}

