/* ============================================
   PG TRUCKING SYSTEM - STYLESHEET
   ============================================
   Table of Contents:
   1. CSS Variables & Reset
   2. Typography & Base Styles
   3. Icon System
   4. Navigation Bar
   5. Layout Components
   6. Hero Section
   7. Buttons
   8. Cards
   9. Forms
   10. Alerts & Notices
   11. Badges & Status Indicators
   12. Tables
   13. Grid Systems
   14. Stats/Metrics
   15. Map Container
   16. Booking Code Display
   17. Receipt
   18. Modals
   19. Login Page
   20. Features Grid
   21. Info Sections
   22. Responsive Design
   23. Print Styles
   24. Animations
   ============================================ */

/* ============================================
   1. CSS RESET & VARIABLES
   ============================================ */
:root {

    --primary: #8B1538;
    --primary-dark: #C41E3A;
    --primary-light: #FF3366;

    /* Secondary Colors */
    --secondary: #1E3A5F;
    --secondary-dark: #152A45;
    --secondary-light: #2D5A8B;

    /* Accent Colors */
    --accent: #0066CC;

    /* Semantic Colors */
    --success: #059669;
    --success-light: #D1FAE5;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --info: #0284C7;
    --info-light: #DBEAFE;

    /* Gray Scale */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   2. TYPOGRAPHY & BASE STYLES
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Home page â€” Lexend headings + Source Sans 3 body */
#page-home {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#page-home h1,
#page-home h2,
#page-home h3,
#page-home h4,
#page-home .hero-title,
#page-home .hero-badge {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   3. ICON SYSTEM (SVG-based)
   ============================================ */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

/* ============================================
   3.5 TOP ANNOUNCEMENT & NOTIFICATION BANNER
   ============================================ */
.top-announcement-bar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 16px 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease, margin 0.4s ease;
    overflow: hidden;
    max-height: 120px;
}

body.hide-main-nav .top-announcement-bar-wrapper {
    display: none !important;
}

.top-announcement-bar-wrapper.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none !important;
}

.top-announcement-bar {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #0F172A 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.28), 0 2px 6px -1px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px 7px 14px;
    gap: 14px;
    color: #F8FAFC;
    position: relative;
    backdrop-filter: blur(16px);
}

.announcement-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.announcement-beacon {
    position: relative;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beacon-core {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38BDF8;
}

.beacon-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.45);
    animation: beaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes beaconPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.6); opacity: 0; }
}

.announcement-ticker {
    position: relative;
    min-height: 28px;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.announcement-slide {
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    color: #F8FAFC;
    outline: none;
    border-radius: 8px;
    padding: 2px 4px;
    transition: background 0.18s ease;
}

.announcement-slide:focus-visible {
    box-shadow: 0 0 0 2px #38BDF8;
}

.announcement-slide:hover .announcement-strong {
    color: #38BDF8;
}

.announcement-slide:hover .cta-arrow {
    transform: translateX(3px);
}

.announcement-slide.active {
    display: flex;
    animation: announcementSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes announcementSlideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.announcement-tag .slide-icon {
    width: 12px;
    height: 12px;
}

.tag-policies {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.tag-services {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag-route {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-faq {
    background: rgba(168, 85, 247, 0.2);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.announcement-text-group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-strong {
    font-size: 0.83rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.announcement-desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.75);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.77rem;
    font-weight: 600;
    color: #38BDF8;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 8px;
}

.announcement-cta .cta-arrow {
    width: 13px;
    height: 13px;
    transition: transform 0.2s ease;
}

.announcement-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.announcement-pills {
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.announcement-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.announcement-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #38BDF8;
}

.announcement-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.announcement-dot.active {
    width: 14px;
    border-radius: 9999px;
    background: #38BDF8;
}

.announcement-dismiss-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.announcement-dismiss-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    color: #F87171;
    transform: scale(1.05);
}

.announcement-dismiss-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #EF4444;
}

/* SECTION HIGHLIGHT GLOW EFFECT */
@keyframes sectionGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
        background: rgba(56, 189, 248, 0.12);
    }
    50% {
        box-shadow: 0 0 28px 8px rgba(56, 189, 248, 0.35);
        background: rgba(56, 189, 248, 0.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
        background: transparent;
    }
}

.section-target-highlight {
    animation: sectionGlowPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-radius: 14px;
    /* No margin/padding changes — only visual properties so layout never shifts */
}

/* RESPONSIVENESS */
@media (max-width: 1080px) {
    .announcement-desc {
        display: none;
    }
}

@media (max-width: 860px) {
    .announcement-pills {
        display: none;
    }
}

@media (max-width: 580px) {
    .top-announcement-bar-wrapper {
        padding: 8px 12px 0;
    }
    .top-announcement-bar {
        padding: 6px 10px;
        gap: 8px;
    }
    .announcement-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .announcement-strong {
        font-size: 0.77rem;
    }
    .announcement-cta span {
        display: none;
    }
    .announcement-dots {
        display: none;
    }
}

/* ============================================
   3.5 SECTION TARGET HIGHLIGHT PULSE ANIMATION
   ============================================ */
@keyframes sectionHighlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5), 0 10px 30px rgba(124, 58, 237, 0.15);
        border-color: rgba(124, 58, 237, 0.8) !important;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.2), 0 14px 40px rgba(124, 58, 237, 0.22);
        border-color: rgba(124, 58, 237, 0.9) !important;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0), 0 0 0 transparent;
        border-color: inherit;
    }
}

.section-target-highlight {
    animation: sectionGlowPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-radius: 20px;
}

/* ============================================
   3.6 NAVBAR ABOUT & GUIDELINES MEGA/SUB DROPDOWN
   ============================================ */
.nav-item-dropdown {
    position: relative;
    list-style: none;
}

.nav-link-dropdown {
    cursor: pointer;
    user-select: none;
}

.nav-label-with-caret {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-caret {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

/* Hover bridge pseudo-element between trigger link and flyout */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px;
    display: block;
}

/* Dropdown Flyout Card */
.nav-dropdown-flyout {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.96);
    width: 410px;
    max-width: min(410px, calc(100vw - 24px));
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s ease;
    z-index: 1200;
    backdrop-filter: blur(12px);
}

.nav-item-dropdown:hover .nav-dropdown-flyout,
.nav-item-dropdown.open .nav-dropdown-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Header inside dropdown */
.nav-flyout-header {
    padding: 10px 14px 8px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flyout-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #6366f1;
    text-transform: uppercase;
}

.flyout-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.flyout-header-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

/* List container */
.nav-flyout-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Individual Dropdown Item */
.nav-flyout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.nav-flyout-item:hover {
    background: rgba(99, 102, 241, 0.06);
    transform: translateX(3px);
}

/* Icon Box */
.flyout-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.flyout-icon-box svg {
    width: 20px;
    height: 20px;
}

.nav-flyout-item:hover .flyout-icon-box {
    transform: scale(1.1);
}

.icon-guidelines { background: rgba(251, 146, 60, 0.14); color: #ea580c; }
.icon-guidelines svg { stroke: #ea580c; }
.icon-services   { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.icon-services svg { stroke: #7c3aed; }
.icon-corridor   { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.icon-corridor svg { stroke: #0284c7; }
.icon-faq        { background: rgba(16, 185, 129, 0.14); color: #059669; }
.icon-faq svg    { stroke: #059669; color: #059669; }
.icon-faq svg [fill="currentColor"] { fill: #059669; }
.icon-reviews    { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.icon-reviews svg { stroke: #d97706; color: #d97706; }
.icon-reviews svg [fill="currentColor"] { fill: #d97706; }

/* Text Info */
.flyout-text-group {
    flex: 1;
    min-width: 0;
}

.flyout-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.flyout-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flyout-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.badge-orange { background: rgba(251, 146, 60, 0.15); color: #c2410c; }
.badge-purple { background: rgba(124, 58, 237, 0.15); color: #6d28d9; }
.badge-blue   { background: rgba(14, 165, 233, 0.15); color: #0369a1; }
.badge-green  { background: rgba(16, 185, 129, 0.15); color: #047857; }
.badge-amber  { background: rgba(245, 158, 11, 0.15); color: #b45309; }

.flyout-desc {
    font-size: 0.73rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow indicator */
.flyout-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    opacity: 0.6;
    transform: translateX(-3px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.flyout-arrow svg {
    width: 14px;
    height: 14px;
}

.nav-flyout-item:hover .flyout-arrow {
    opacity: 1;
    color: #6366f1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .section-target-highlight {
        animation: none !important;
    }
}






/* ============================================
    4. VOICEFLOW MINIMALIST SAAS NAVBAR
    ============================================ */
body.hide-main-nav .nav-outer {
    display: none !important;
}

body:not(.hide-main-nav) .nav-outer {
    display: block !important;
}

.site-header-wrap.nav-outer {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 12px 12px 0 12px !important;
    margin: 0 !important;
    box-shadow: none;
    transition: all 0.2s ease;
}

.site-header-wrap .navbar {
    width: 100%;
    max-width: none !important;
    margin: 0 auto;
    padding: 0 32px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 16px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
    position: relative;
    top: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Home Page: Seamless Unified Voiceflow Card with Hero */
body.on-home-page .site-header-wrap.nav-outer,
body:has(#page-home.active) .site-header-wrap.nav-outer {
    padding-bottom: 0 !important;
}

body.on-home-page .site-header-wrap .navbar,
body:has(#page-home.active) .site-header-wrap .navbar {
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

body.on-home-page .site-header-wrap.is-scrolled .navbar,
body:has(#page-home.active) .site-header-wrap.is-scrolled .navbar {
    border-radius: 16px !important;
    border-bottom: 1px solid #CBD5E1 !important;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12) !important;
}

.site-header-wrap .navbar-inner {
    width: 100%;
    height: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 20px;
    box-sizing: border-box;
}

/* Brand (Left) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0F172A;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.brand:hover {
    opacity: 0.9;
}

.brand-mark {
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    background: #FFFFFF;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #0F172A;
}

.brand-subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748B;
    margin-top: 2px;
}

/* Center Nav Menu (Voiceflow Minimalist Links) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 2px;
    color: #475569;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 0.89rem;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
    border: none;
    background: transparent;
    border-radius: 0;
}

.nav-link:hover {
    color: #0F172A;
    background: transparent;
}

.nav-link.active {
    color: #0F172A !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Active subtle underline indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 2px;
    height: 2px;
    background: #2563EB;
    border-radius: 9999px;
}

.nav-link .icon,
.nav-link .nav-dot {
    display: none !important;
}

/* Dropdown Caret (Chevron ⌵) */
.nav-caret {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
    margin-left: 2px;
    color: #64748B;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
    flex-shrink: 0;
}

.nav-link:hover .nav-caret,
.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown.open .nav-caret {
    transform: rotate(180deg);
    color: #0F172A;
}

/* Right Nav Actions (Voiceflow Style) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-link-login {
    display: inline-flex;
    align-items: center;
    color: #475569;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 0.89rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-link-login:hover {
    color: #0F172A;
    background: #F8FAFC;
}

/* Voiceflow Vibrant Royal Blue CTA Button */
.btn-voiceflow-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: #2563EB;
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-voiceflow-cta:hover {
    background: #1D4ED8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-voiceflow-cta:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

/* Hide mobile-only drawer actions on desktop */
.nav-item-mobile-actions {
    display: none;
}

/* Hamburger Toggle Button */
.btn-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.btn-hamburger:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.btn-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.btn-hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ============================================
   GRID BACKGROUND SYSTEM
   ============================================ */
.grid-wrapper {
    min-height: 100%;
    width: 100%;
    position: relative;
    background-color: #f8fafc;
    overflow-x: hidden;
}

.grid-background {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-color: #f8fafc;
    background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px),
        linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
    background-size: 20px 30px;
    pointer-events: none;
}

/* ============================================
   5. LAYOUT COMPONENTS
   ============================================ */
.main-container {
    width: 100% !important;
    /* Dili na siya limitahan */
    margin: 0 !important;
    /* Wa nay margin */
    padding: 0 !important;
    /* Wa nay padding */
}

.page-section {
    display: none;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.35s ease-out;
}

.page-section.active {
    display: block;
}

/* Auth login pages â€” full viewport, no inherited padding */
#page-admin-login,
#page-driver-login {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

#page-admin-login .auth-split-wrapper,
#page-driver-login .auth-split-wrapper {
    min-height: calc(100vh - 72px);
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #4C1E3A 0%, #6B2142 50%, #1E3A5F 100%);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' width='60' height='60'%3E%3Cpath d='M36 34v-4h-4v-2h4v-4h2v4h4v2h-4v4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4z' fill='%23ffffff' fill-opacity='0.03'/%3E%3Cpath d='M36 34v-4h-4v-2h4v-4h2v4h4v2h-4v4zM6 34v-4H4v-4H2v-2h4v-4h2v4h4v2H6v4z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

/* ============================================
   HERO BADGE - FIXED LOGO STYLE
   ============================================ */
.hero-badge {
    display: inline-flex;
    /* Keep horizontal */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    gap: 8px;
    /* Space between icon & text */
    flex-direction: row;
    /* FORCE horizontal layout! */

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    /* Pill shape */

    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    /* Stay above overlays */
}

/* FIX: Control the icon size explicitly */
.hero-badge svg {
    width: 16px !important;
    /* Small icon size */
    height: 16px !important;
    /* Small icon size */
    flex-shrink: 0;
    /* Don't let icon grow */
    stroke: currentColor;
    /* Inherit text color */
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #047857;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #B91C1C;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--gray-50);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Loading spinner & 360-degree refresh animation */
@keyframes spin360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin-360 {
    animation: spin360 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   8. CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ============================================
   CARD HEADERS - CLEAN MINIMAL WHITE / LIGHT THEME
   ============================================ */
.card-header {
    background: #FFFFFF;
    padding: 20px 28px;
    color: #0F172A;
    border-bottom: 1px solid #E2E8F0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}

/* Pattern overlay removed for clean white aesthetic */
.card-header::before {
    display: none;
}

.card-header h2,
.card-header h3,
.card-header h4 {
    font-size: 1.22rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 32px;
}

.card-flat {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ============================================
   9. FORMS
   ============================================ */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-800);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    animation: shake 0.4s ease-in-out;
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-500);
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--gray-700);
}

.password-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 28px 0;
}

/* ============================================
   10. ALERTS & NOTICES
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info);
    color: #075985;
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #92400E;
}

.alert-danger {
    background: var(--danger-light);
    border-color: var(--danger);
    color: #991B1B;
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: #065F46;
}

/* Notice Box */
.notice-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.notice-box svg {
    width: 24px;
    height: 24px;
    color: var(--warning);
    flex-shrink: 0;
}

.notice-box strong {
    color: #92400E;
    font-size: 0.95rem;
}

/* Lockout Alert */
.alert-lockout {
    background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%);
    border: 2px solid var(--danger);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    animation: slideUp 0.3s ease-out;
}

.lockout-icon {
    width: 48px;
    height: 48px;
    background: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lockout-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.lockout-content {
    flex: 1;
}

.lockout-title {
    font-weight: 700;
    color: var(--danger);
    font-size: 1rem;
    margin-bottom: 4px;
}

.lockout-message {
    color: #991B1B;
    font-size: 0.9rem;
}

/* Countdown Timer */
.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-top: 8px;
}

.countdown-timer svg {
    width: 18px;
    height: 18px;
    animation: spin 2s linear infinite;
}

/* Attempt Counter */
.attempt-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.attempt-dots {
    display: flex;
    gap: 6px;
}

.attempt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 0.3s ease;
}

.attempt-dot.used {
    background: var(--danger);
}

.attempt-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Login Error */
.login-error {
    background: var(--danger-light);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #991B1B;
    animation: shake 0.4s ease-in-out;
}

.login-error.visible {
    display: flex;
}

.login-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-self: center;
}

/* ============================================
   11. BADGES & STATUS INDICATORS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-available {
    background: var(--success-light);
    color: #065F46;
}

.badge-available::before {
    background: var(--success);
}

.badge-onroad {
    background: var(--warning-light);
    color: #92400E;
}

.badge-onroad::before {
    background: var(--warning);
}

.badge-maintenance {
    background: var(--danger-light);
    color: #991B1B;
}

.badge-maintenance::before {
    background: var(--danger);
}

.badge-locked,
.badge-reserved {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-locked::before,
.badge-reserved::before {
    background: #2563EB;
}

.badge-pending {
    background: var(--info-light);
    color: #075985;
}

.badge-pending::before {
    background: var(--info);
}

.badge-completed {
    background: var(--success-light);
    color: #065F46;
}

.badge-completed::before {
    background: var(--success);
}

.badge-cancelled {
    background: var(--gray-200);
    color: var(--gray-600);
}

.badge-cancelled::before {
    background: var(--gray-500);
}

.badge-dispatched {
    background: var(--info-light);
    color: #1D4ED8;
}

/* Route, Driver & Schedule Smooth Expanding In-Flow Hover Card */
.route-expand-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 6px 10px;
    min-width: 220px;
    max-width: 280px;
    max-height: 38px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
    user-select: none;
}

.route-expand-card:hover {
    max-height: 250px;
    background: #FFFFFF;
    border-color: #3B82F6;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.18), 0 2px 6px -1px rgba(0,0,0,0.04);
}

.route-expand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 24px;
    flex-shrink: 0;
}

.route-expand-details {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease 0.08s, transform 0.25s ease 0.08s;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.route-expand-card:hover .route-expand-details {
    opacity: 1;
    transform: translateY(0);
}

.badge-dispatched::before {
    background: #2563EB;
}

/* Age Badge (Escalation System) */
.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.age-badge svg {
    width: 14px;
    height: 14px;
}

.age-badge.age-normal {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.age-badge.age-warning {
    background: var(--warning-light);
    color: #92400E;
    border: 1px solid var(--warning);
}

.age-badge.age-urgent {
    background: var(--danger-light);
    color: #991B1B;
    border: 1px solid var(--danger);
    animation: pulse 1.2s infinite;
}

.age-badge.age-dispatched {
    background: var(--info-light);
    color: #1D4ED8;
    border: 1px solid var(--accent);
}

/* Row highlighting */
tr.row-age-normal td {
    background: white;
}

tr.row-age-warning td {
    background: var(--warning-light);
}

tr.row-age-urgent td {
    background: var(--danger-light);
    animation: rowPulse 1.6s infinite;
}

tr.row-age-dispatched td {
    background: var(--info-light);
}

/* ============================================
   12. TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    scrollbar-width: thin;
    scrollbar-color: #94A3B8 #F1F5F9;
    -webkit-overflow-scrolling: touch;
}

.table-container::-webkit-scrollbar {
    height: 8px;
    background: #F1F5F9;
}

.table-container::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 16px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--gray-50);
}

/* ============================================
   13. GRID SYSTEMS
   ============================================ */
.grid {
    display: grid;
    gap: 24px;
}

.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-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.info-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item h4 svg {
    width: 18px;
    height: 18px;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ============================================
   14. STATS / METRICS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-card.revenue .stat-icon {
    background: var(--success-light);
    color: var(--success);
}

.stat-card.bookings .stat-icon {
    background: var(--info-light);
    color: var(--info);
}

.stat-card.trucks .stat-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card.active .stat-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================
   15. MAP CONTAINER
   ============================================ */
#map {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
}

.route-alert {
    background: var(--danger-light);
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 12px;
    animation: pulse 2s infinite;
}

.route-alert.visible {
    display: flex;
}

.route-alert svg {
    width: 20px;
    height: 20px;
    color: var(--danger);
    flex-shrink: 0;
}

.cache-indicator {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 12px;
}

.cache-indicator.visible {
    display: flex;
}

.cache-dot {
    width: 10px;
    height: 10px;
    background: var(--warning);
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* Fleet Actions */
.fleet-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fleet-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fleet-btn.available {
    background: var(--success);
    color: white;
}

.fleet-btn.available:hover {
    background: #047857;
}

.fleet-btn.onroad {
    background: var(--warning);
    color: white;
}

.fleet-btn.onroad:hover {
    background: #B45309;
}

.fleet-btn.maintenance {
    background: var(--danger);
    color: white;
}

.fleet-btn.maintenance:hover {
    background: #991B1B;
}

/* ============================================
   16. BOOKING CODE DISPLAY
   ============================================ */
.booking-code-container {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    color: white;
    margin: 32px 0;
}

.booking-code-container h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.booking-code-container p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.code-display {
    background: white;
    color: var(--success);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    padding: 20px 40px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 16px 0;
    box-shadow: var(--shadow-xl);
}

.code-notice {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-top: 24px;
}

.code-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.code-notice span {
    font-size: 0.88rem;
    opacity: 0.95;
}

/* ============================================
   17. RECEIPT
   ============================================ */
.receipt {
    background: white;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 28px;
}

.receipt-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}

.receipt-header h2 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.receipt-header p {
    color: var(--gray-500);
    font-size: 0.88rem;
}

.receipt-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    width: 180px;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
}

.receipt-value {
    color: var(--gray-800);
    flex: 1;
}

.receipt-total {
    background: var(--gray-50);
    margin: 20px -32px -32px;
    padding: 20px 32px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-total .label {
    font-weight: 700;
    font-size: 1.05rem;
}

.receipt-total .amount {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--success);
}

/* ============================================
   18. MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.25s ease-out;
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-header.error {
    background: var(--danger);
    color: white;
    border-bottom: none;
}

.modal-header.error .modal-close {
    color: white;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-close svg {
    width: 22px;
    height: 22px;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================
   19. LOGIN PAGE
   ============================================ */
.login-wrapper {
    min-height: calc(100vh - 72px - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    padding: 40px 36px;
    text-align: center;
    color: white;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.login-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.88rem;
    opacity: 0.85;
}

.login-form {
    padding: 36px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--success-light);
    color: #065F46;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.security-badge svg {
    width: 16px;
    height: 16px;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.82rem;
    color: var(--gray-500);
}

.login-hint code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--gray-700);
}

/* ============================================
   20. SECTION TITLES
   ============================================ */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 20px;
    height: 20px;
}

/* ============================================
    21. RESPONSIVE DESIGN
    ============================================ */
@media (max-width: 1080px) {
    .site-header-wrap .navbar {
        padding: 0 20px;
    }

    .site-header-wrap .nav-menu {
        gap: 14px;
    }

    .site-header-wrap .nav-link {
        font-size: 0.84rem;
        padding: 8px 2px;
    }

    .site-header-wrap .btn-voiceflow-cta {
        padding: 8px 14px;
        font-size: 0.84rem;
    }
}

@media (max-width: 960px) {
    .site-header-wrap .nav-menu {
        display: none !important;
    }

    .site-header-wrap .nav-link-login {
        display: none !important;
    }

    .site-header-wrap .btn-voiceflow-cta {
        display: none !important;
    }

    .site-header-wrap .btn-hamburger {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .main-container {
        padding: 24px 20px;
    }

    .hero {
        padding: 48px 32px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 36px 24px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .card-body {
        padding: 24px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .receipt-label {
        width: 140px;
    }

    .alert-lockout {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   21b. REVENUE ANALYTICS PANEL STYLES
   ============================================ */

/* Period toggle buttons */
.rev-period-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rev-period-btn:hover {
    border-color: #059669;
    color: #059669;
    background: #f0fdf4;
}

.rev-period-btn.rev-active {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* KPI summary cards */
.rev-kpi-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rev-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.rev-kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* Revenue panel overlay flex centering */
#revenuePanelOverlay {
    display: none;
}

#revenuePanelOverlay.rev-open {
    display: flex;
}

/* ============================================
   21c. INTERACTIVE ADMIN HEADER BUTTONS
   ============================================ */
.admin-hdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.admin-hdr-btn svg {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-hdr-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.admin-hdr-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 1. Bell Button */
.admin-hdr-btn-bell {
    padding: 10px 14px;
    border-color: #cbd5e1;
    color: #475569;
}

.admin-hdr-btn-bell:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
    box-shadow: 0 8px 18px rgba(71, 85, 105, 0.18);
}

.admin-hdr-btn-bell:hover svg {
    animation: bellRing 0.5s ease-in-out;
}

/* 2. Change Password Button */
.admin-hdr-btn-password {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e3a8a;
}

.admin-hdr-btn-password:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.admin-hdr-btn-password:hover svg {
    animation: lockWiggle 0.4s ease-in-out;
}

/* 3. Revenue Button */
.admin-hdr-btn-revenue {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.admin-hdr-btn-revenue:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.4);
}

.admin-hdr-btn-revenue:hover svg {
    transform: translate(2px, -2px) scale(1.15);
}

/* 4. Logout Button */
.admin-hdr-btn-logout {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.admin-hdr-btn-logout:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.4);
}

.admin-hdr-btn-logout:hover svg {
    transform: translateX(4px);
}

/* Keyframes */
@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(18deg);
    }

    40% {
        transform: rotate(-18deg);
    }

    60% {
        transform: rotate(12deg);
    }

    80% {
        transform: rotate(-6deg);
    }
}

@keyframes lockWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(12deg);
    }
}

/* ============================================
   MULTI-STEP BOOKING PROGRESS STEPPER
   ============================================ */
.booking-stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
    user-select: none;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stepper-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.stepper-circle .step-check {
    display: none;
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.stepper-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94A3B8;
    white-space: nowrap;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.stepper-line {
    flex: 1;
    max-width: 140px;
    height: 3px;
    background: #E2E8F0;
    margin: 0 14px;
    margin-top: -24px;
    transition: background-color 0.4s ease;
    border-radius: 3px;
}

/* Pending State */
.stepper-item.pending .stepper-circle {
    background: #F1F5F9;
    color: #94A3B8;
    border: 2px solid #E2E8F0;
}

/* Active State */
.stepper-item.active .stepper-circle {
    background: #ffffff;
    color: #7A1C30;
    border: 3px solid #7A1C30;
    box-shadow: 0 0 0 5px rgba(122, 28, 48, 0.12);
    transform: scale(1.08);
}

.stepper-item.active .stepper-label {
    color: #7A1C30;
    font-weight: 700;
}

/* Completed State */
.stepper-item.completed .stepper-circle {
    background: linear-gradient(135deg, #7A1C30 0%, #4C1E3A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(122, 28, 48, 0.25);
}

.stepper-item.completed .stepper-circle .step-num {
    display: none;
}

.stepper-item.completed .stepper-circle .step-check {
    display: block;
}

.stepper-item.completed .stepper-label {
    color: #1E293B;
    font-weight: 600;
}

/* Line Completed State */
.stepper-line.completed {
    background: #7A1C30;
}

/* Mobile Responsiveness for Stepper */
@media (max-width: 576px) {
    .stepper-label {
        font-size: 0.72rem;
    }

    .stepper-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .stepper-line {
        max-width: 60px;
        margin: 0 6px;
        margin-top: -20px;
    }
}

/* ============================================
   OFFICIAL HARD COPY PRINTABLE RECEIPT & REPORT STYLES
   ============================================ */

/* Hidden by default on screen */
#globalPrintableReceipt,
#globalPrintableReport {
    display: none;
}

/* When JS adds .print-active class, show it */
#globalPrintableReceipt.print-active,
#globalPrintableReport.print-active {
    display: block;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    /* Hide website headers, navbars, footers, buttons during print */
    header, nav, .header, .navbar, .site-header, .brand-header, .top-header,
    .nav-container, .navbar-brand, footer, .btn, button, .back-to-top-container,
    .floating-complaint-widget, .loader-screen-overlay {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html,
    body {
        background: #ffffff !important;
        color: #111827 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 1. Hide ALL body children during print by default */
    body > * {
        display: none !important;
    }

    /* 2. Show ONLY the receipt that has .print-active */
    body > #globalPrintableReceipt.print-active {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
        max-width: 680px !important;
        margin: 0 auto !important;
        padding: 24px 28px !important;
        background: #ffffff !important;
        border: 2px solid #1E3A8A !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        color: #111827 !important;
    }

    #globalPrintableReceipt.print-active * {
        display: block !important;
        visibility: visible !important;
    }

    #globalPrintableReceipt.print-active div,
    #globalPrintableReceipt.print-active span,
    #globalPrintableReceipt.print-active h2,
    #globalPrintableReceipt.print-active p,
    #globalPrintableReceipt.print-active strong {
        color: #111827 !important;
    }

    #globalPrintableReceipt.print-active .receipt-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #E5E7EB !important;
    }

    #globalPrintableReceipt.print-active .receipt-label {
        color: #4B5563 !important;
        font-weight: 600 !important;
    }

    #globalPrintableReceipt.print-active .receipt-value {
        color: #111827 !important;
        font-weight: 700 !important;
    }

    /* 3. Show Executive Operations Report when .print-active */
    body > #globalPrintableReport.print-active {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #0F172A !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #globalPrintableReport.print-active * {
        visibility: visible !important;
    }

    #globalPrintableReport.print-active table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto !important;
    }

    #globalPrintableReport.print-active tr {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }

    #globalPrintableReport.print-active th {
        background: #0F172A !important;
        color: #FFFFFF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* 4. Fallback: Show active modal/dialog if open during Ctrl+P */
    body > .swal-overlay.show:not(.closing) {
        display: flex !important;
        visibility: visible !important;
        position: static !important;
        width: 100% !important;
        min-height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 auto !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body > .swal-overlay.show:not(.closing) * {
        visibility: visible !important;
    }

    body > .swal-overlay.show:not(.closing) .swal-modal {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #CBD5E1 !important;
        transform: none !important;
        animation: none !important;
        background: #FFFFFF !important;
        color: #0F172A !important;
        padding: 24px !important;
    }

    body > .swal-overlay.show:not(.closing) .swal-actions,
    body > .swal-overlay.show:not(.closing) .swal-btn {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ============================================
   22. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes rowPulse {

    0%,
    100% {
        background-color: var(--danger-light);
    }

    50% {
        background-color: #FCA5A5;
    }
}

/* ============================================
   LIVE INDICATOR & BLINKING DOT ANIMATION
   ============================================ */
.live-update-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    background: var(--gray-50);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--gray-200);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #DC2626;
    display: inline-block;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
    animation: liveBlink 1.2s infinite ease-in-out;
}

@keyframes liveBlink {
    0% {
        opacity: 0.2;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(220, 38, 38, 0.9);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.9);
    }
}

/* ============================================
   ðŸ”’ FINAL EXACT CSS FOR PASSWORD MODAL
   ============================================ */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    /* Dark translucent background */
    backdrop-filter: blur(6px);
    display: none;
    /* Controlled via JS ('flex' or 'none') */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Top accent bar removed */
.custom-modal-content::before {
    display: none;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.custom-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #1e293b;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    text-align: left;
    line-height: 1.5;
    margin: 0 0 22px 0;
}

/* ðŸ“‚ Form Inputs Section */
.password-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.password-form-group label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
}

.modal-input-field {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modal-input-field:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* ðŸ“Š Real-time Password Requirements Checker Visuals */
.password-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: -6px;
    margin-bottom: 14px;
    text-align: left;
}

.req-title {
    margin: 0 0 6px 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.req-list li {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.req-list li.invalid::before {
    content: "âŒ";
    font-size: 0.7rem;
}

.req-list li.valid {
    color: #10b981;
    font-weight: 500;
}

.req-list li.valid::before {
    content: "âœ…";
    font-size: 0.75rem;
}

.strength-wrapper {
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
    padding-top: 6px;
}

.strength-text {
    font-size: 0.78rem;
    color: #475569;
    display: block;
    margin-bottom: 4px;
}

.strength-meter-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

#strength-progress {
    width: 0%;
    height: 100%;
    background: #ef4444;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* ðŸŽ›ï¸ Action Buttons Section */
.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 10px;
}

.modal-btn-cancel {
    padding: 11px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.modal-btn-cancel:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.modal-btn-submit {
    padding: 11px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2);
    transition: all 0.2s ease;
    min-width: 100px;
}

.modal-btn-submit:hover {
    background: #172554;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
}

/* Admin Dashboard Width & Margins */
#page-admin-dashboard {
    max-width: 1400px !important;
    margin: 40px auto !important;
    /* 40px top and bottom margin */
    padding: 0 40px !important;
    width: 95% !important;
}

/* Home Page Full-Width Canvas for Voiceflow Hero */
#page-home {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* ============================================
   INTERACTIVE CARDS & INFO ITEMS
   ============================================ */
.interactive-card {
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.interactive-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 24px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -2px rgba(0, 0, 0, 0.06) !important;
    border-color: #581c32 !important;
}

.interactive-info-item {
    cursor: pointer !important;
    padding: 10px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.interactive-info-item:hover {
    background: #f3f4f6 !important;
    transform: translateY(-2px) !important;
}

.interactive-forgot-btn:hover {
    background: rgba(30, 58, 138, 0.12) !important;
    border-color: #1e3a8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.15) !important;
}

/* ============================================
   CUSTOM SWEETALERT MODAL STYLES
   ============================================ */
.swal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.swal-overlay.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ============================================
   FORGOT PASSWORD MODAL STYLES (CENTERED)
   ============================================ */
.forgot-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(5px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    overflow-y: auto !important;
    padding: 20px 14px !important;
    box-sizing: border-box !important;
}

.forgot-modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.forgot-modal-box {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 28px 32px !important;
    width: 95% !important;
    max-width: 480px !important;
    max-height: calc(100vh - 36px) !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    margin: auto !important;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    box-sizing: border-box !important;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.forgot-modal-box::-webkit-scrollbar {
    width: 6px;
}
.forgot-modal-box::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 4px;
}

.forgot-modal-overlay.show .forgot-modal-box {
    transform: scale(1) !important;
}

.forgot-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #6b7280 !important;
}

.forgot-close-btn:hover {
    color: #111827 !important;
}

.forgot-modal-header h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 6px !important;
}

.forgot-modal-header p {
    font-size: 0.88rem !important;
    color: #4b5563 !important;
    margin-bottom: 20px !important;
}

.forgot-form-group {
    margin-bottom: 16px !important;
}

.forgot-form-group label {
    display: block !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
}

.forgot-form-group input {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    outline: none !important;
}

.forgot-form-group input:focus {
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1) !important;
}

.forgot-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e7eb !important;
}

.forgot-btn {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
}

.forgot-btn-primary {
    background: #1e3a8a !important;
    color: white !important;
}

.forgot-btn-primary:hover {
    background: #172554 !important;
}

.forgot-btn-secondary {
    background: white !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.forgot-btn-secondary:hover {
    background: #f3f4f6 !important;
}

.swal-modal {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 32px 28px !important;
    width: 90% !important;
    max-width: 440px !important;
    text-align: center !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.swal-overlay.show .swal-modal {
    transform: scale(1) !important;
}

.swal-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
}

.swal-message {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    margin-bottom: 24px !important;
    line-height: 1.5 !important;
}

.swal-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
}

.swal-btn {
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.swal-btn.confirm {
    background: #581c32 !important;
    color: white !important;
}

.swal-btn.confirm:hover {
    background: #401424 !important;
}

.swal-btn.cancel {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.swal-btn.cancel:hover {
    background: #f3f4f6 !important;
}

/* ============================================
   SWEETALERT2 UI/UX PRO MAX BESPOKE DESIGN SYSTEM
   ============================================ */
.swal2-popup {
    border-radius: 26px !important;
    padding: 0 32px 34px 32px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    position: relative !important;
    overflow: hidden !important;
}

.swal2-popup::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
}

.swal2-title {
    font-weight: 800 !important;
    color: #0F172A !important;
    font-size: 1.45rem !important;
    letter-spacing: -0.025em !important;
    line-height: 1.25 !important;
}

.swal2-html-container {
    color: #475569 !important;
    font-weight: 400 !important;
    font-size: 0.94rem !important;
    line-height: 1.62 !important;
}

.swal2-confirm {
    background: #4A1525 !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 13px 38px !important;
    min-height: 48px !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 14px rgba(74, 21, 37, 0.32) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.swal2-confirm:hover {
    background: #380E1B !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(74, 21, 37, 0.45) !important;
}

.swal2-cancel {
    background: #F8FAFC !important;
    color: #475569 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 13px 26px !important;
    min-height: 48px !important;
    font-size: 0.95rem !important;
    transition: all 0.18s ease !important;
}

.swal2-cancel:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
}

/* Booking ug Tracking */
#page-booking,
#page-tracking {
    max-width: 1200px !important;
    margin: 40px auto !important;
    /* 40px ang hawa sa taas ug ubos */
    padding: 0 40px !important;
    width: 90% !important;
}

/* ============================================
   MOBILE RESPONSIVENESS (PERFECT FIT ON ALL PHONES)
   ============================================ */

/* Tablet & Mobile (<= 768px) */
@media (max-width: 768px) {

    /* Container & Page Padding */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #page-booking,
    #page-tracking {
        padding: 0 12px !important;
        margin: 16px auto !important;
        width: 100% !important;
    }

    /* Navbar Responsiveness */
    .site-header-wrap .navbar-inner {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 4px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .site-header-wrap .nav-menu:not(.mobile-open) {
        display: none !important;
    }

    .brand-title {
        font-size: 1.1rem !important;
    }

    .brand-subtitle {
        font-size: 0.68rem !important;
    }

    /* Card Padding */
    .card-body {
        padding: 20px 16px !important;
    }

    .card-header {
        padding: 16px 20px !important;
    }

    /* Guidelines Box Mobile Fix */
    .interactive-info-item,
    #step-permit div {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Admin Dashboard Header */
    .dashboard-header .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Tables */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
}

/* Small Phones (<= 576px) */
@media (max-width: 576px) {

    /* Hero Section */
    .hero-title {
        font-size: 1.6rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    /* Stats Grid 1-column on very small phones */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stepper Adjustment */
    .booking-stepper-container {
        padding: 12px 4px 18px !important;
    }

    .stepper-label {
        font-size: 0.72rem !important;
    }

    .stepper-circle {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.85rem !important;
    }

    .stepper-line {
        max-width: 45px !important;
        margin: 0 4px !important;
        margin-top: -18px !important;
    }

    /* Header Action Buttons wrap cleanly */
    .admin-hdr-btn {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
    }
}

/* ============================================
   25. ADMIN LEFT SIDEBAR & DATA ANALYTICS
   ============================================ */
/* ============================================
   25. ADMIN LEFT SIDEBAR & DATA ANALYTICS
   ============================================ */
#page-admin-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

#page-admin-dashboard .admin-container {
    display: flex !important;
    min-height: 100vh !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    position: relative !important;
    z-index: 1 !important;
}

#page-admin-dashboard .admin-sidebar,
#page-admin-dashboard .admin-sidebar.app-sidebar-2 {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    background: #FFFFFF !important;
    border-right: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: visible !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.sidebar-rail-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.rail-brand-wrap {
    margin-bottom: 16px;
}

.rail-brand-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}

.rail-brand-btn:hover {
    transform: scale(1.05);
    background: #1E293B;
}

.rail-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.rail-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.admin-sidebar .sidebar-link,
.admin-sidebar.app-sidebar-2 .sidebar-link,
.rail-action-btn,
.rail-avatar-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.admin-sidebar .sidebar-link:hover,
.admin-sidebar.app-sidebar-2 .sidebar-link:hover,
.rail-action-btn:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    transform: scale(1.05);
}

.admin-sidebar .sidebar-link.active,
.admin-sidebar.app-sidebar-2 .sidebar-link.active {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    box-shadow: none !important;
    font-weight: 700;
}

.admin-sidebar .sidebar-link.active::before,
.admin-sidebar.app-sidebar-2 .sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #0F172A;
    border-radius: 0 4px 4px 0;
}

/* Tooltip / Flyout Submenu */
.rail-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.25);
    z-index: 9999;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-tooltip::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #0F172A;
}

.admin-sidebar .sidebar-link:hover .rail-tooltip,
.admin-sidebar.app-sidebar-2 .sidebar-link:hover .rail-tooltip,
.rail-action-btn:hover .rail-tooltip,
.rail-avatar-btn:hover .rail-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.rail-avatar-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #334155;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.rail-avatar-btn:hover .rail-avatar-initials {
    background: #CBD5E1;
    color: #0F172A;
    transform: scale(1.05);
}

.admin-main-wrapper {
    flex: 1;
    width: calc(100% - 68px) !important;
    max-width: calc(100% - 68px) !important;
    padding: 28px 36px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ==========================================================================
   FIELDBASE EXPANDED SIDEBAR DRAWER (MATCHING REFERENCE IMAGE)
   ========================================================================== */
.admin-flyout-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-flyout-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.admin-flyout-panel {
    position: fixed;
    top: 14px;
    left: 78px;
    bottom: 14px;
    width: 270px;
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 16px 14px 14px 14px;
    transform: translateX(-16px) scale(0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-flyout-panel.open {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 8px;
}

.flyout-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.flyout-brand-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

.flyout-brand-sub {
    font-size: 0.78rem;
    color: #64748B;
    margin-top: 1px;
}

.flyout-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #F1F5F9;
    color: #64748B;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.flyout-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.flyout-scrollable-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flyout-scrollable-body::-webkit-scrollbar {
    width: 4px;
}

.flyout-scrollable-body::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 4px;
}

.flyout-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 10px;
    margin-bottom: 6px;
}

.flyout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
}

.flyout-item svg {
    color: #64748B;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.flyout-item:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.flyout-item:hover svg {
    color: #0F172A;
}

.flyout-item.active {
    background: #F1F5F9;
    color: #0F172A;
    font-weight: 700;
}

.flyout-item.active svg {
    color: #0F172A;
}

.flyout-pill-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    background: transparent;
    padding: 0 4px;
}

.flyout-footer-profile {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.flyout-footer-profile:hover {
    background: #F1F5F9;
    border-color: #E2E8F0;
}

.flyout-avatar-chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #334155;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flyout-user-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flyout-user-email {
    font-size: 0.72rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dark Mode for Expanded Flyout */
[data-theme="dark"] .admin-flyout-panel {
    background: #1E293B !important;
    border-color: #334155 !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .flyout-brand-title {
    color: #F8FAFC !important;
}

[data-theme="dark"] .flyout-brand-sub,
[data-theme="dark"] .flyout-section-title {
    color: #94A3B8 !important;
}

[data-theme="dark"] .flyout-close-btn {
    background: #0F172A !important;
    color: #94A3B8 !important;
}

[data-theme="dark"] .flyout-close-btn:hover {
    background: #334155 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .flyout-item {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .flyout-item svg {
    color: #94A3B8 !important;
}

[data-theme="dark"] .flyout-item:hover {
    background: #0F172A !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .flyout-item:hover svg {
    color: #F8FAFC !important;
}

[data-theme="dark"] .flyout-item.active {
    background: #0F172A !important;
    color: #38BDF8 !important;
}

[data-theme="dark"] .flyout-item.active svg {
    color: #38BDF8 !important;
}

[data-theme="dark"] .flyout-footer-profile {
    background: #0F172A !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .flyout-avatar-chip {
    background: #334155 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .flyout-user-name {
    color: #F8FAFC !important;
}

[data-theme="dark"] .flyout-user-email {
    color: #94A3B8 !important;
}

/* ============================================================ */
/* ADVANCED ANALYTICS DASHBOARD (UI/UX PRO MAX)                */
/* ============================================================ */
.analytics-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1100px) {
    .analytics-grid-2 {
        grid-template-columns: 1fr;
    }
}

.chart-card-pro {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.chart-card-pro:hover {
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    border-color: #CBD5E1;
}

.chart-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
}

.chart-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-title-text {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.chart-subtitle-text {
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 500;
}

.chart-badge-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.chart-badge-blue {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #DBEAFE;
}

.chart-badge-green {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.chart-badge-purple {
    background: #F5F3FF;
    color: #6D28D9;
    border: 1px solid #DDD6FE;
}

.chart-badge-amber {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.donut-chart-container {
    position: relative;
    height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-center-metric {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
    z-index: 1;
}

.donut-center-metric .metric-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}

.donut-center-metric .metric-sub {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    margin-top: 2px;
}

.chart-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}

.chart-breakdown-grid.tri-col {
    grid-template-columns: repeat(3, 1fr);
}

.chart-breakdown-grid.quad-col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
    .chart-breakdown-grid.quad-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.breakdown-item-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
}

.breakdown-item-card:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.breakdown-item-card .item-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breakdown-item-card .item-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Pulse indicator for real-time header */
.live-pulse-badge {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseAnim 2s infinite;
}

@keyframes livePulseAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Interactive Cursor Hover Icon Animations for Bell and Logout Buttons */
@keyframes bellRing {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(14deg);
    }

    30% {
        transform: rotate(-12deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(4deg);
    }

    100% {
        transform: rotate(0);
    }
}

.admin-hdr-btn-bell,
.btn-bell-interactive {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-hdr-btn-bell:hover,
.btn-bell-interactive:hover {
    transform: translateY(-3px) scale(1.04) !important;
    border-color: #2563EB !important;
    color: #2563EB !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22) !important;
}

.admin-hdr-btn-bell:hover svg,
.btn-bell-interactive:hover svg.bell-svg {
    animation: bellRing 0.65s ease-in-out;
}

.admin-hdr-btn-logout,
.btn-logout-interactive {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.admin-hdr-btn-logout:hover,
.btn-logout-interactive:hover {
    transform: translateY(-2px) !important;
    background: #B91C1C !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45) !important;
}

.admin-hdr-btn-logout svg,
.btn-logout-interactive svg.logout-svg {
    transition: transform 0.25s ease !important;
}

.admin-hdr-btn-logout:hover svg,
.btn-logout-interactive:hover svg.logout-svg {
    transform: translateX(5px) !important;
}

/* ============================================
   25. REDESIGNED HOME PAGE STYLES (UI/UX PRO MAX)
   ============================================ */

#page-home {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#page-home .container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Pulsing Online Indicator */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Hero Section V2 - White to Lavender Gradient (Matching Image 1) */
.home-hero-v2 {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 15%, #F5F2FE 35%, #E4D8FD 60%, #C7B2FD 80%, #9F7BFA 100%);
    border-radius: var(--radius-xl);
    padding: 56px 44px;
    margin-top: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    color: #0F172A;
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.22), 0 0 0 1px rgba(196, 181, 253, 0.4);
    border: 1px solid #DDD6FE;
}

.home-hero-v2::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.home-hero-v2::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #C7D2FE;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3730A3;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
    margin-bottom: 24px;
}

.home-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: #0F172A;
}

.home-hero-title .highlight-text {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 45%, #F97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.home-hero-title.scroll-float .highlight-text {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    display: inline !important;
}

.home-hero-title.scroll-float .highlight-text .char {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 45%, #F97316 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

.home-hero-desc {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 600px;
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}

/* ==========================================================================
   HOVER.DEV: DOT EXPAND BUTTONS (Landing Page Hero & CTA)
   ========================================================================== */
.btn-dot-expand {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                box-shadow 0.35s cubic-bezier(0.19, 1, 0.22, 1), 
                border-color 0.3s ease;
    z-index: 1;
}

/* Micro Dot Indicator positioned inside button (Hidden at first) */
.btn-dot-expand .btn-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

/* Content Container (Text & Icons above the expanding dot) */
.btn-dot-expand .btn-dot-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
}

.btn-dot-expand .btn-dot-content svg {
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    flex-shrink: 0;
}

/* Hover State - Dot Expands across entire container */
.btn-dot-expand:hover {
    transform: translateY(-2px);
}

.btn-dot-expand:hover .btn-dot {
    transform: translate(-50%, -50%) scale(55);
    opacity: 1;
}

.btn-dot-expand:hover .btn-dot-content {
    transform: translateX(2px);
    color: #FFFFFF !important;
}

.btn-dot-expand:hover .btn-dot-content svg.btn-arrow-icon {
    transform: translateX(4px);
}

/* 1. Primary Orange Variant (Book Shipment Now) */
.home-btn-primary {
    background: linear-gradient(135deg, #EA580C 0%, #D97706 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 14px 28px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.4);
}

.home-btn-primary .btn-dot {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.home-btn-primary:hover {
    box-shadow: 0 15px 35px -5px rgba(234, 88, 12, 0.65);
    border-color: rgba(253, 186, 116, 0.7);
}

/* 2. Secondary Steel Blue Variant (Track Package) */
.home-btn-secondary {
    background: linear-gradient(135deg, #5C8FA9 0%, #4C7B93 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(76, 123, 147, 0.3);
}

.home-btn-secondary.dot-blue .btn-dot {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
}

.home-btn-secondary.dot-blue:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 35px -5px rgba(76, 123, 147, 0.55);
}

/* 3. Terminal Location Pill Variant (Terminal: Mojon, Bantayan, Cebu) */
.home-location-pill {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #C7D2FE;
    color: #1E1B4B;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
}

.home-location-pill svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.home-location-pill span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.home-location-pill .btn-dot {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.home-location-pill.btn-dot-expand:hover {
    color: #FFFFFF !important;
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.45);
}

/* 4. Operating Hours Static Pill */
.home-hours-pill {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #C7D2FE;
    color: #1E1B4B !important;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-hours-pill:hover {
    color: #1E1B4B !important;
    border-color: #A5B4FC;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.home-hours-pill span {
    color: #1E1B4B !important;
}

/* 5. Support Purple Variant (Contact Logistics Support) */
.home-btn-secondary.dot-purple .btn-dot {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
}

.home-btn-secondary.dot-purple:hover {
    border-color: rgba(192, 132, 252, 0.7);
    box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.55);
}

/* Quick Tracker Card in Hero - Steel Blue / Slate Palette */
.home-quick-tracker {
    background: #54859F;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(58, 98, 120, 0.35);
    position: relative;
}

.home-quick-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.home-quick-tracker-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-quick-tracker-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-quick-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-quick-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.home-quick-input-icon {
    position: absolute;
    left: 16px;
    color: #E2E8F0;
    pointer-events: none;
}

.home-quick-input {
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.home-quick-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    font-weight: 400;
}

.home-quick-input:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.home-quick-track-btn {
    width: 100%;
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
    color: #FFFFFF;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px -4px rgba(30, 64, 175, 0.4);
}

.home-quick-track-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 25px -4px rgba(30, 64, 175, 0.6);
}

.home-tracker-feature-pills {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home-tracker-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}

.home-tracker-pill svg {
    color: #E0F2FE;
}

/* Section Header */
.home-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.home-section-category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563EB;
    background: #EFF6FF;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.home-section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.home-section-subtitle {
    font-size: 1rem;
    color: #64748B;
    line-height: 1.6;
}

/* Metrics Bar */
.home-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
    margin-bottom: 60px;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.home-metric-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #BFDBFE;
}

.home-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-metric-icon svg {
    width: 26px;
    height: 26px;
}

.home-metric-number {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.home-metric-label {
    font-size: 0.82rem;
    color: #64748B;
    font-weight: 500;
    margin-top: 2px;
}

/* Feature Cards Grid (5 Cards - Balanced 5-Col on Desktop, Auto-fit on Smaller) */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 65px;
}

@media (max-width: 1200px) {
    .home-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .home-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .home-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.home-feature-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 26px 22px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.home-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 35px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
    border-color: #CBD5E1;
}

.home-feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1E3A5F 0%, #1E1B4B 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 16px -4px rgba(30, 58, 95, 0.3);
    transition: transform 0.3s ease;
}

.home-feature-card:hover .home-feature-icon-box {
    transform: scale(1.06);
}

.home-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.home-feature-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4F46E5;
    background: #EEF2FF;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.home-feature-desc {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.65;
    flex-grow: 1;
}

.home-feature-link {
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4F46E5;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

/* ==========================================================================
   INTERACTIVE CARDS: HOVER OVERLAY & POPUP BUTTON EFFECT
   ========================================================================== */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
}

.home-feature-card:hover .card-overlay,
.home-policy-card:hover .card-overlay,
.booking-guideline-card:hover .card-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Subtle expanding radial ambient bloom */
.card-overlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(234, 88, 12, 0.15) 55%, transparent 70%);
    transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: inherit;
    pointer-events: none;
}

.home-feature-card:hover .card-overlay::after,
.home-policy-card:hover .card-overlay::after,
.booking-guideline-card:hover .card-overlay::after {
    transform: translate(-50%, -50%) scale(2);
}

/* Pop-up Button */
.home-feature-card .card-hover-btn,
.home-policy-card .card-hover-btn,
.booking-guideline-card .card-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center center;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 11px 22px;
    background-color: #FFFFFF;
    color: #0F172A;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
    border: none;
    opacity: 0;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.85);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 0.35s ease, 
                box-shadow 0.3s ease,
                background-color 0.25s ease,
                color 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
}

.home-policy-card .card-hover-btn,
.booking-guideline-card .card-hover-btn {
    font-size: 0.82rem;
    padding: 9px 18px;
}

.home-feature-card:hover .card-hover-btn,
.home-policy-card:hover .card-hover-btn,
.booking-guideline-card:hover .card-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.home-feature-card .card-hover-btn:hover,
.home-policy-card .card-hover-btn:hover,
.booking-guideline-card .card-hover-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background-color: #FFFFFF;
    color: #4F46E5;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.home-feature-card .card-hover-btn:hover svg,
.home-policy-card .card-hover-btn:hover svg,
.booking-guideline-card .card-hover-btn:hover svg {
    transform: translateX(3px);
}

.home-feature-card .card-hover-btn svg,
.home-policy-card .card-hover-btn svg,
.booking-guideline-card .card-hover-btn svg {
    transition: transform 0.25s ease;
}

.home-feature-card .card-hover-btn:active,
.home-policy-card .card-hover-btn:active,
.booking-guideline-card .card-hover-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* ==========================================================================
   INTERACTIVE 4-STEP SHIPPING PROCESS TIMELINE (Image 2 Reference)
   ========================================================================== */
.home-process-section,
.home-route-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 28px;
    padding: 56px 44px;
    margin-bottom: 65px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.home-process-timeline {
    position: relative;
    margin-top: 40px;
    padding: 10px 0;
}

/* Connecting dashed track behind the step squircles */
.home-process-track {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 0;
}

.home-process-track-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.track-dashed-line {
    opacity: 0.6;
}

.track-active-line {
    stroke-dashoffset: 0;
    animation: trackDashAnim 25s linear infinite;
    opacity: 0.95;
}

@keyframes trackDashAnim {
    from {
        stroke-dashoffset: 200;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.home-process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.home-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 12px 10px;
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.home-process-node {
    position: relative;
    margin-bottom: 22px;
}

.home-process-squircle {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 2px solid #F1F5F9;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E293B;
    position: relative;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.home-process-squircle svg {
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
}

.home-process-badge {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.home-process-info {
    max-width: 240px;
}

.home-process-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px 0;
    transition: color 0.25s ease;
    letter-spacing: -0.01em;
}

.home-process-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #64748B;
    margin: 0;
    font-weight: 400;
    transition: color 0.25s ease;
}

/* Hover-Only Interactive States (Interacts exclusively when cursor hovers, resets when cursor leaves) */
.home-process-step:hover .home-process-squircle {
    transform: translateY(-8px) scale(1.06);
    border-color: #818CF8;
    background: #FFFFFF;
    box-shadow: 0 20px 35px -8px rgba(99, 102, 241, 0.25), 0 0 0 3px rgba(99, 102, 241, 0.15);
    color: #4F46E5;
}

.home-process-step:hover .home-process-squircle svg {
    transform: scale(1.12);
    color: #4F46E5;
}

.home-process-step:hover .home-process-badge {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.4);
}

.home-process-step:hover .home-process-title {
    color: #4F46E5;
}

.home-process-step:hover .home-process-desc {
    color: #334155;
}

/* Step 1 specific hover highlight (Warm Rose) */
.home-process-step[data-step="1"]:hover .home-process-squircle {
    border-color: #F472B6;
    box-shadow: 0 20px 35px -8px rgba(244, 114, 182, 0.25), 0 0 0 3px rgba(244, 114, 182, 0.18);
    color: #DB2777;
}

.home-process-step[data-step="1"]:hover .home-process-badge {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.home-process-step[data-step="1"]:hover .home-process-title {
    color: #DB2777;
}

/* Step 2 specific hover highlight (Amber / Gold) */
.home-process-step[data-step="2"]:hover .home-process-squircle {
    border-color: #FBBF24;
    box-shadow: 0 20px 35px -8px rgba(245, 158, 11, 0.25), 0 0 0 3px rgba(245, 158, 11, 0.18);
    color: #D97706;
}

.home-process-step[data-step="2"]:hover .home-process-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.home-process-step[data-step="2"]:hover .home-process-title {
    color: #D97706;
}

/* Step 3 Boat specific hover highlight (Cyan / Ocean) */
.home-process-step[data-step="3"]:hover .home-process-squircle {
    border-color: #38BDF8;
    box-shadow: 0 20px 35px -8px rgba(56, 189, 248, 0.25), 0 0 0 3px rgba(56, 189, 248, 0.18);
    color: #0284C7;
}

.home-process-step[data-step="3"]:hover .home-process-badge {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
}

.home-process-step[data-step="3"]:hover .home-process-title {
    color: #0284C7;
}

/* Step 4 specific hover highlight (Emerald / Indigo) */
.home-process-step[data-step="4"]:hover .home-process-squircle {
    border-color: #818CF8;
    box-shadow: 0 20px 35px -8px rgba(99, 102, 241, 0.25), 0 0 0 3px rgba(99, 102, 241, 0.18);
    color: #4F46E5;
}

.home-process-step[data-step="4"]:hover .home-process-badge {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
}

.home-process-step[data-step="4"]:hover .home-process-title {
    color: #4F46E5;
}

/* Responsive breakpoints */
@media (max-width: 992px) {
    .home-process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 20px;
    }
    .home-process-track {
        display: none;
    }
}

@media (max-width: 580px) {
    .home-process-section,
    .home-route-section {
        padding: 36px 20px;
    }
    .home-process-steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Policy Cards Grid - Clean 3x3 Grid (9 cards) on Desktop, 2-col on Tablet, 1-col on Mobile */
.home-policies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 65px;
}

@media (max-width: 1024px) {
    .home-policies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .home-policies-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.home-policy-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.home-policy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
    border-color: #CBD5E1;
}

.home-policy-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-policy-icon.blue {
    background: #EFF6FF;
    color: #2563EB;
}

.home-policy-icon.indigo {
    background: #EEF2FF;
    color: #4F46E5;
}

.home-policy-icon.amber {
    background: #FEF3C7;
    color: #D97706;
}

.home-policy-icon.green {
    background: #D1FAE5;
    color: #059669;
}

.home-policy-icon.purple {
    background: #F3E8FF;
    color: #9333EA;
}

.home-policy-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
    line-height: 1.35;
}

.home-policy-desc {
    font-size: 0.82rem;
    color: #64748B;
    line-height: 1.45;
}

/* ============================================ */
/* 21st.dev FAQ TABS COMPONENT (LIGHT THEME)    */
/* ============================================ */
.home-faq-21st-section {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 64px 28px 72px 28px;
    margin: 40px auto 65px auto;
    max-width: 960px;
    width: 100%;
    box-sizing: border-box;
    color: #0F172A;
}

/* Ambient Radial Blur Glow behind header (Light Theme) */
.faq-21st-ambient-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 580px;
    max-width: 100%;
    height: 420px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(59, 130, 246, 0.06) 45%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Header */
.faq-21st-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 32px auto;
    padding: 0 8px;
}

.faq-21st-subtitle {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #4F46E5 0%, #2563EB 55%, #0284C7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.faq-21st-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0F172A;
    margin: 0 0 12px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.faq-21st-desc {
    font-size: 1.02rem;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Category Pill Tabs */
.faq-21st-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
}

.faq-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748B;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    box-sizing: border-box;
    max-width: 100%;
}

.faq-tab-btn:hover {
    color: #0F172A;
    background: #F1F5F9;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.faq-tab-btn.active {
    color: #FFFFFF;
    background: #0F172A;
    border-color: #0F172A;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

/* FAQ Accordion List */
.faq-21st-list {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Accordion Card */
.faq-21st-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.faq-21st-item:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.faq-21st-item.open {
    background: #F8FAFC;
    border-color: #3B82F6;
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.12);
}

.faq-21st-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    transition: color 0.2s ease;
    box-sizing: border-box;
}

.faq-21st-question span:first-child {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.faq-21st-item:hover .faq-21st-question {
    color: #2563EB;
}

.faq-21st-item.open .faq-21st-question {
    color: #1D4ED8;
}

/* Plus Icon & 45deg rotation */
.faq-21st-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F1F5F9;
    transition: background 0.25s ease;
}

.faq-21st-item:hover .faq-21st-icon-wrap {
    background: #E2E8F0;
}

.faq-21st-item.open .faq-21st-icon-wrap {
    background: rgba(59, 130, 246, 0.12);
}

.faq-21st-plus {
    width: 18px;
    height: 18px;
    color: #64748B;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.faq-21st-item.open .faq-21st-plus {
    transform: rotate(45deg);
    color: #2563EB;
}

/* Answer Collapsible Section */
.faq-21st-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    width: 100%;
}

.faq-21st-answer-content {
    padding: 0 22px 20px 22px;
    font-size: 0.93rem;
    line-height: 1.68;
    color: #475569;
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Responsive Styles with specific iPhone SE protection */
@media (max-width: 768px) {
    .home-faq-21st-section {
        padding: 44px 16px 52px 16px;
        border-radius: 20px;
        margin: 28px auto 45px auto;
    }
    .faq-21st-title {
        font-size: 1.95rem;
    }
    .faq-tab-btn {
        padding: 7px 14px;
        font-size: 0.84rem;
    }
    .faq-21st-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    .faq-21st-answer-content {
        padding: 0 18px 18px 18px;
        font-size: 0.88rem;
    }
}

/* iPhone SE (<= 400px screen width) No Overflow Protection */
@media (max-width: 400px) {
    .home-faq-21st-section {
        padding: 30px 10px 38px 10px;
        border-radius: 16px;
        margin: 20px 0 35px 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .faq-21st-ambient-glow {
        top: -120px;
        width: 100%;
        height: 250px;
        filter: blur(40px);
        left: 0;
        transform: none;
    }
    .faq-21st-header {
        margin-bottom: 22px;
        padding: 0 4px;
    }
    .faq-21st-subtitle {
        font-size: 0.78rem;
        margin-bottom: 6px;
    }
    .faq-21st-title {
        font-size: 1.45rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    .faq-21st-desc {
        font-size: 0.84rem;
        line-height: 1.45;
    }
    .faq-21st-tabs {
        gap: 6px;
        margin-bottom: 22px;
        padding: 0;
    }
    .faq-tab-btn {
        padding: 6px 10px;
        font-size: 0.76rem;
        border-radius: 20px;
    }
    .faq-21st-list {
        gap: 10px;
    }
    .faq-21st-item {
        border-radius: 12px;
    }
    .faq-21st-question {
        padding: 14px 12px;
        font-size: 0.88rem;
        gap: 10px;
    }
    .faq-21st-icon-wrap {
        width: 28px;
        height: 28px;
    }
    .faq-21st-plus {
        width: 16px;
        height: 16px;
    }
    .faq-21st-answer-content {
        padding: 0 12px 14px 12px;
        font-size: 0.82rem;
        line-height: 1.55;
        padding-top: 10px;
    }
}

/* Legacy FAQ wrapper backward compatibility */
.home-faq-wrapper {
    max-width: 840px;
    margin: 0 auto 65px auto;
}
.home-faq-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-faq-item.active {
    border-color: #3B82F6;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.12);
}
.home-faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.2s ease;
}
.home-faq-icon {
    width: 24px;
    height: 24px;
    color: #64748B;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.home-faq-item.active .home-faq-icon {
    transform: rotate(180deg);
    color: #2563EB;
}
.home-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
}
.home-faq-item.active .home-faq-answer {
    max-height: 300px;
    padding: 0 24px 20px 24px;
}

/* CTA Banner - White to Lavender Gradient */
.home-cta-banner {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 15%, #F5F2FE 35%, #E4D8FD 60%, #C7B2FD 80%, #9F7BFA 100%);
    border-radius: 24px;
    padding: 50px 40px;
    color: #0F172A;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.22);
    border: 1px solid #DDD6FE;
}

.home-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.8) 0%, rgba(196, 181, 253, 0.2) 60%, rgba(167, 139, 250, 0.3) 100%);
    opacity: 0.8;
}

.home-cta-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.home-cta-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.25;
    color: #0F172A;
}

.home-cta-desc {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 28px;
    line-height: 1.6;
    font-weight: 500;
}

.home-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-route-flow {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-route-arrow {
        transform: rotate(90deg);
        padding: 6px 0;
    }
}

@media (max-width: 640px) {
    .home-hero-v2 {
        padding: 36px 20px;
        border-radius: 16px;
    }

    .home-hero-title {
        font-size: 2rem;
    }

    .home-metrics-grid {
        grid-template-columns: 1fr;
    }

    .home-section-title {
        font-size: 1.65rem;
    }

    .home-cta-banner {
        padding: 36px 20px;
        border-radius: 16px;
    }
}

/* ============================================
   26. BOOKING & TRACKING REDESIGN (UI/UX PRO MAX)
   ============================================ */

/* Page Headers & Cards */
.booking-header-card,
.tracking-header-card {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 15%, #F5F2FE 35%, #E4D8FD 60%, #C7B2FD 80%, #9F7BFA 100%);
    padding: 26px 36px;
    color: #0F172A;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid #DDD6FE;
    overflow: hidden;
}

.booking-header-card::before,
.tracking-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.booking-header-card::after,
.tracking-header-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.booking-header-title,
.tracking-header-title {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.booking-header-title svg,
.tracking-header-title svg {
    color: #4F46E5;
    stroke: #4F46E5;
    flex-shrink: 0;
}

.booking-header-badge,
.tracking-header-badge {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid #C7D2FE;
    color: #3730A3;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

/* Multi-Step Stepper Component */
.booking-stepper-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto 36px auto;
    padding: 0 10px;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
}

.stepper-item:hover {
    transform: translateY(-2px);
}

.stepper-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F1F5F9;
    border: 2px solid #CBD5E1;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stepper-item.active .stepper-circle {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border-color: #3B82F6;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 8px 16px rgba(37, 99, 235, 0.35);
}

.stepper-item.completed .stepper-circle {
    background: #059669;
    border-color: #10B981;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.step-check {
    display: none;
    width: 20px;
    height: 20px;
}

.stepper-item.completed .step-num {
    display: none;
}

.stepper-item.completed .step-check {
    display: block;
}

.stepper-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748B;
    transition: color 0.2s ease;
}

.stepper-item.active .stepper-label {
    color: #1E3A5F;
}

.stepper-item.completed .stepper-label {
    color: #059669;
}

.stepper-line {
    flex: 1;
    height: 3px;
    background: #E2E8F0;
    margin: 0 16px -22px 16px;
    transition: background 0.3s ease;
    border-radius: 999px;
}

.stepper-line.active {
    background: linear-gradient(90deg, #2563EB 0%, #059669 100%);
}

/* Guidelines Panel (Lavender Theme Matching Header) */
.booking-guidelines-panel {
    background: linear-gradient(135deg, #FAF8FF 0%, #F5F3FF 50%, #EDE9FE 100%);
    border: 1px solid #DDD6FE;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 36px;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.booking-guidelines-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #1E1B4B;
    font-size: 1.08rem;
    margin-bottom: 16px;
}

.booking-guidelines-title svg {
    color: #6366F1;
    stroke: #6366F1;
}

.booking-guidelines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) {
    .booking-guidelines-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .booking-guidelines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .booking-guidelines-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.booking-guideline-card {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E0E7FF;
    border-radius: 14px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.04);
}

.booking-guideline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.14);
    border-color: #A5B4FC;
}

/* Security Check Card in Step 1 */
.booking-security-card {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-left: 5px solid #2563EB;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
}

/* Tracking Input Group V2 */
.tracking-search-box {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.tracking-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tracking-input-field {
    flex: 1;
    background: #FFFFFF;
    border: 2px solid #CBD5E1;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0F172A;
    transition: all 0.2s ease;
}

.tracking-input-field:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.tracking-btn {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.4);
    white-space: nowrap;
}

.tracking-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -4px rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Map Container Styling */
.map-container {
    height: 440px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid #CBD5E1;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   27. ADMIN & DRIVER PANELS REDESIGN (UI/UX PRO MAX)
   ============================================ */

/* Admin Main Layout (Standalone view) */
body:not(.hide-main-nav) .admin-container {
    display: flex;
    min-height: calc(100vh - 100px);
    max-width: 1400px;
    margin: 20px auto 40px auto;
    gap: 24px;
    padding: 0 16px;
}

body:not(.hide-main-nav) .admin-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #1E3A5F 0%, #152A45 100%);
    border-radius: 20px;
    padding: 28px 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 20px 40px -10px rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header {
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.sidebar-title svg {
    color: #38BDF8;
}

.sidebar-subtitle {
    font-size: 0.78rem;
    color: #94A3B8;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #CBD5E1;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.sidebar-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-link:hover svg {
    transform: scale(1.1);
}

.sidebar-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Admin Main Wrapper */
.admin-main-wrapper {
    flex: 1;
    min-width: 0;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-card.revenue .stat-icon {
    background: #ECFDF5;
    color: #059669;
}

.stat-card.bookings .stat-icon {
    background: #EFF6FF;
    color: #2563EB;
}

.stat-card.trucks .stat-icon {
    background: #FEF3C7;
    color: #D97706;
}

.stat-card.complaints .stat-icon {
    background: #FEE2E2;
    color: #DC2626;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 600;
}

/* Login Wrapper & Glass Cards */
.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1E1B4B 0%, #2563EB 50%, #EA580C 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 10px 20px -5px rgba(30, 58, 95, 0.4);
}

.login-icon svg {
    width: 30px;
    height: 30px;
}

.login-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.login-header p {
    font-size: 0.9rem;
    color: #64748B;
}

.security-badge {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.security-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #2563EB;
}

.attempt-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 10px 16px;
    border-radius: 10px;
}

.attempt-dots {
    display: flex;
    gap: 6px;
}

.attempt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    transition: background 0.3s ease;
}

.attempt-dot.failed {
    background: #EF4444;
}

.attempt-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
}

/* ============================================================
   AUTH â€” CENTERED CARD LOGIN SYSTEM
   ============================================================ */

/* Wrapper: center the card on the page */
.auth-center-wrapper {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* The card */
.auth-center-card {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow:
        0 1px 3px 0 rgba(15, 23, 42, 0.04),
        0 20px 45px -12px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.85);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Colored top accent stripe */
.auth-accent-bar,
.admin-accent-bar,
.driver-accent-bar {
    display: none !important;
}

/* Card header area */
.auth-center-header {
    padding: 34px 40px 0 40px;
    margin-bottom: 22px;
}

.auth-center-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    margin-top: 16px;
}

.auth-center-subtitle {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.5;
    font-weight: 400;
}

/* The form */
.auth-form {
    padding: 0 40px 36px 40px;
    display: flex;
    flex-direction: column;
}

/* Security notice */
.auth-security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 18px;
}

.auth-security-notice svg {
    flex-shrink: 0;
    color: #16A34A;
}

.driver-security-notice {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

.driver-security-notice svg {
    color: #2563EB;
}

/* Lockout alert */
.auth-lockout-alert {
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.auth-lockout-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #DC2626;
}

.auth-lockout-title {
    font-weight: 800;
    color: #991B1B;
    font-size: 0.88rem;
}

.auth-lockout-msg {
    font-size: 0.82rem;
    color: #B91C1C;
    margin-top: 3px;
}

.auth-countdown {
    font-weight: 800;
    background: #FEE2E2;
    padding: 1px 8px;
    border-radius: 5px;
}

/* Error message */
.auth-error-msg {
    display: none;
    align-items: center;
    gap: 8px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    animation: authShake 0.3s ease;
}

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.auth-error-msg svg {
    flex-shrink: 0;
}

/* Field groups */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.01em;
}

.auth-label svg {
    color: #64748B;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #0F172A;
    background: #F8FAFC;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input-wrap .auth-input {
    padding-right: 48px;
}

.auth-input::placeholder {
    color: #94A3B8;
}

.auth-input:focus {
    background: #FFFFFF;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.12);
}

.auth-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-eye-btn:hover {
    color: #1E293B;
    background: #E2E8F0;
}

/* Attempt bar */
.auth-attempt-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.auth-attempt-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-attempt-dots .attempt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.auth-attempt-dots .attempt-dot.used,
.auth-attempt-dots .attempt-dot.failed {
    background: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
    transform: scale(1.08);
}

.auth-attempt-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
}

/* Forgot row */
.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.auth-forgot-link {
    font-size: 0.83rem;
    font-weight: 700;
    color: #2563EB;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-forgot-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

/* reCAPTCHA wrapper */
.auth-recaptcha-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 16px 0;
    min-height: 78px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
}

/* Submit buttons */
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn svg {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit-btn:hover svg {
    transform: translateX(3px);
}

.auth-submit-btn:active {
    transform: scale(0.985);
}

.admin-submit-btn {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    box-shadow: 0 8px 20px -4px rgba(30, 27, 75, 0.45);
}

.admin-submit-btn:hover {
    box-shadow: 0 14px 28px -4px rgba(30, 27, 75, 0.55);
    transform: translateY(-1.5px);
}

.driver-submit-btn {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.42);
}

.driver-submit-btn:hover {
    box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.55);
    transform: translateY(-1.5px);
}

/* Form icon in header */
.auth-form-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.22);
}

.admin-form-icon {
    background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%);
    color: white;
}

.driver-form-icon {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-center-header {
        padding: 28px 24px 0 24px;
    }

    .auth-form {
        padding: 0 24px 28px 24px;
    }

    .auth-center-title {
        font-size: 1.35rem;
    }
}

/* ============================================================
   ADMIN LOGIN â€” SPLIT SCREEN WHITE THEME
   ============================================================ */

.admin-split-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.admin-split-card {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 920px;
    border: 1px solid #E2E8F0;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.04),
        0 20px 45px -10px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-split-layout {
    display: flex;
    align-items: stretch;
    min-height: 520px;
}

.admin-split-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    text-align: center;
}

.admin-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admin-brand-logo-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
    border: 3px solid #FFFFFF;
    margin-bottom: 20px;
    background: #FFFFFF;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    position: relative;
}

.admin-brand-logo-wrap:hover {
    transform: scale(1.03);
}

.admin-brand-logo-wrap:active {
    transform: scale(0.97);
}

/* Subtle secret pulse animation on the logo upon 5 successful clicks */
@keyframes secretLogoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.65), 0 12px 28px -6px rgba(15, 23, 42, 0.12);
        border-color: #EA580C;
    }
    35% {
        transform: scale(1.08);
        box-shadow: 0 0 0 14px rgba(234, 88, 12, 0), 0 16px 36px -6px rgba(234, 88, 12, 0.4);
        border-color: #EA580C;
    }
    65% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(234, 88, 12, 0.2), 0 12px 28px -6px rgba(15, 23, 42, 0.12);
        border-color: #FF6B35;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0), 0 12px 28px -6px rgba(15, 23, 42, 0.12);
        border-color: #FFFFFF;
    }
}

.admin-brand-logo-wrap.secret-trigger-pulse {
    animation: secretLogoPulse 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.admin-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* Passes click directly to wrapper */
}

.admin-brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
    font-family: 'Lexend', 'Inter', sans-serif;
}

.admin-brand-tagline {
    font-size: 0.84rem;
    color: #64748B;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.admin-split-divider {
    width: 1px;
    background: #E2E8F0;
    margin: 36px 0;
    flex-shrink: 0;
}

.admin-split-right {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px;
    background: #FFFFFF;
}

.admin-split-header {
    margin-bottom: 22px;
}

.admin-split-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
    font-family: 'Lexend', 'Inter', sans-serif;
}

.admin-split-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.admin-split-form {
    display: flex;
    flex-direction: column;
}

.admin-forgot-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: -6px;
    margin-bottom: 16px;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s ease;
}

.admin-forgot-row.admin-forgot-hidden {
    display: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
}

/* Smooth reveal animation for secretly triggered Forgot Password */
@keyframes secretRevealSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 48px;
    }
}

.admin-forgot-row.admin-forgot-revealed {
    display: flex !important;
    opacity: 1 !important;
    max-height: 48px !important;
    pointer-events: auto !important;
    animation: secretRevealSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-forgot-row.admin-forgot-fading {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
    max-height: 0 !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s ease !important;
    pointer-events: none !important;
}

.admin-forgot-row.admin-forgot-revealed .admin-forgot-link {
    color: #EA580C;
    animation: forgotLinkHighlight 1.5s ease-in-out;
}

@keyframes forgotLinkHighlight {
    0% {
        color: #EA580C;
        text-shadow: 0 0 8px rgba(234, 88, 12, 0.5);
    }
    70% {
        color: #EA580C;
        text-shadow: 0 0 4px rgba(234, 88, 12, 0.3);
    }
    100% {
        color: #64748B;
        text-shadow: none;
    }
}

.admin-forgot-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.admin-forgot-link:hover {
    color: #EA580C;
    text-decoration: underline;
}

.admin-forgot-dismiss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(148, 163, 184, 0.18);
    border: none;
    border-radius: 50%;
    color: #64748B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

.admin-forgot-dismiss-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
    transform: scale(1.1);
}

.admin-orange-login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #FF6B35 0%, #EA580C 100%);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px -2px rgba(234, 88, 12, 0.42);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    margin-top: 4px;
}

.admin-orange-login-btn:hover {
    box-shadow: 0 10px 24px -2px rgba(234, 88, 12, 0.55);
    transform: translateY(-1.5px);
}

.admin-orange-login-btn:active {
    transform: scale(0.985);
}

.admin-orange-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.admin-policy-link-wrap {
    margin-top: 16px;
    text-align: center;
}

.admin-policy-link {
    font-size: 0.76rem;
    color: #64748B;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.admin-policy-link:hover {
    color: #1E293B;
}

/* Driver Split Screen Icon & Button Styling */
.driver-brand-icon-wrap {
    width: 190px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.driver-brand-icon-wrap:hover {
    transform: scale(1.04);
}

.driver-truck-svg {
    width: 100%;
    height: 100%;
    max-width: 190px;
    color: #0F172A;
}

.driver-split-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px -2px rgba(37, 99, 235, 0.42);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    margin-top: 4px;
}

.driver-split-submit-btn:hover:not(:disabled) {
    box-shadow: 0 10px 24px -2px rgba(37, 99, 235, 0.55);
    transform: translateY(-1.5px);
}

/* Responsive Admin & Driver Split Screen */
@media (max-width: 820px) {
    .admin-split-layout {
        flex-direction: column;
    }
    .admin-split-left {
        padding: 36px 24px 20px 24px;
    }
    .admin-brand-logo-wrap {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    .admin-brand-title {
        font-size: 1.45rem;
    }
    .admin-split-divider {
        width: 85%;
        height: 1px;
        margin: 0 auto;
    }
    .admin-split-right {
        padding: 28px 24px 36px 24px;
    }
    .admin-split-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (MOBILE & TABLET ADAPTATION)
   ========================================================================== */

/* 1. Universal Layout & Overflow Protection */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Touch targets & input safety on mobile touch screens */
button, input, select, textarea, a.btn, .nav-link, .sidebar-link, .btn-contact {
  touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   DESKTOP & LARGE SCREENS (Min-Width: 1025px)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
  .brand-text .brand-subtitle {
    display: none;
  }
  .nav-link {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    gap: 4px !important;
  }
  .btn-contact {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
  }
}

/* --------------------------------------------------------------------------
   TABLET & LAPTOP BREAKPOINT (Max-Width: 1024px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .container, 
  .wrapper, 
  .main-content, 
  .nav-outer {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }

  .grid-4, 
  .grid-3, 
  .features-grid, 
  .stats-grid, 
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Admin Dashboard Layout Adaptation */
  #page-admin-dashboard .admin-container {
    flex-direction: column !important;
  }

  #page-admin-dashboard .admin-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    padding: 20px 16px !important;
  }

  .admin-sidebar .sidebar-menu {
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
  }

  .sidebar-link {
    flex-shrink: 0 !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
  }

  .admin-main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
  }

  .analytics-grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Data tables responsive container */
  .table-container, 
  .table-wrapper, 
  .data-table-wrap,
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    display: block !important;
    border-radius: 12px;
  }

  /* Modals responsive width */
  .modal-content, 
  .modal-dialog, 
  .dialog-box,
  .custom-modal-content,
  .forgot-modal-box {
    width: calc(100% - 32px) !important;
    max-width: 560px !important;
    margin: 20px auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* --------------------------------------------------------------------------
   MOBILE BREAKPOINT (Max-Width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

  /* Typography Adjustments */
  h1, .hero-title, .page-title, .home-hero-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  h2, .section-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.15rem !important;
  }

  p, .home-hero-desc {
    font-size: 0.92rem !important;
  }

  /* Voiceflow Navigation Bar & Mobile Hamburger Menu */
  .site-header-wrap.nav-outer,
  .nav-outer {
    padding: 10px 10px 0 10px !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  .site-header-wrap .navbar,
  .nav-outer .navbar {
    border: 1px solid #CBD5E1 !important;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none !important;
    padding: 0 14px !important;
    position: relative !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
  }

  .site-header-wrap .navbar-inner,
  .nav-outer .navbar-inner {
    padding: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    gap: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .brand {
    gap: 10px !important;
  }

  .brand-mark {
    width: 36px !important;
    height: 36px !important;
  }

  .brand-title {
    font-size: 0.92rem !important;
  }

  .brand-subtitle {
    font-size: 0.62rem !important;
    display: none !important; /* Hide long subtitle on mobile to preserve layout */
  }

  /* Hamburger Menu Button */
  .btn-hamburger {
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    padding: 0 !important;
    flex-shrink: 0;
  }

  .btn-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Animated Hamburger icon when mobile menu is open */
  .nav-menu.mobile-open ~ .nav-actions .btn-hamburger span:nth-child(1),
  .btn-hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-menu.mobile-open ~ .nav-actions .btn-hamburger span:nth-child(2),
  .btn-hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-menu.mobile-open ~ .nav-actions .btn-hamburger span:nth-child(3),
  .btn-hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Mobile Drawer Menu Transformation */
  .site-header-wrap .nav-menu,
  .nav-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-radius: 0 0 16px 16px !important;
    padding: 14px 16px 20px !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12) !important;
    flex-direction: column !important;
    gap: 4px !important;
    z-index: 1005 !important;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    align-items: stretch !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .site-header-wrap .nav-menu.mobile-open,
  .nav-menu.mobile-open {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .nav-sep {
    display: none !important;
  }

  .nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    border-radius: 8px !important;
    width: 100% !important;
    min-height: 40px !important;
    text-align: left !important;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #F8FAFC !important;
    color: #0F172A !important;
  }

  .nav-link.active::after {
    display: none !important;
  }

  .nav-item-mobile-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding-top: 12px !important;
    border-top: 1px solid #F1F5F9 !important;
  }

  .btn-mobile-contact {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    background: #F8FAFC !important;
    color: #334155 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  .btn-mobile-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    background: #2563EB !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
  }

  .nav-link svg.nav-caret {
    width: 14px !important;
    height: 14px !important;
    margin-left: auto;
  }

  .btn-contact {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    min-height: 40px !important;
  }

  /* Grid Layouts Stacked on Mobile */
  .grid, 
  .grid-4, 
  .grid-3, 
  .grid-2, 
  .features-grid, 
  .stats-grid, 
  .dashboard-grid,
  .home-hero-grid,
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .flex-row, 
  .hero-container, 
  .header-actions, 
  .filter-bar, 
  .card-header-actions,
  .home-hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .home-hero-actions button,
  .home-hero-actions a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }

  /* Input Groups & Buttons */
  .home-quick-input-group,
  .tracking-input-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .home-quick-track-btn,
  .tracking-btn {
    width: 100% !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    justify-content: center !important;
  }

  .home-quick-input-wrapper,
  .tracking-input-field {
    width: 100% !important;
  }

  .btn:not(.cta-pill-btn), 
  button[type="submit"]:not(.cta-pill-btn), 
  .action-btn:not(.cta-pill-btn), 
  .search-btn:not(.cta-pill-btn) {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px;
  }

  input[type="text"]:not(.cta-pill-input),
  input[type="number"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
  }

  /* Booking Multi-Step Stepper Bar */
  .booking-stepper-container {
    padding: 14px 8px !important;
    gap: 4px !important;
  }

  .stepper-item {
    gap: 4px !important;
  }

  .stepper-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }

  .stepper-label {
    font-size: 0.72rem !important;
  }

  .stepper-line {
    min-width: 16px !important;
    height: 2px !important;
  }

  /* Modals */
  .modal-content, 
  .modal-dialog, 
  .dialog-box,
  .custom-modal-content,
  .forgot-modal-box {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin: 16px auto !important;
    padding: 20px 16px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
  }

  .card, 
  .auth-card, 
  .panel, 
  .info-box {
    padding: 16px !important;
    border-radius: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE BREAKPOINT (Max-Width: 480px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {

  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
  }

  .container, 
  .wrapper, 
  .nav-outer {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  h1, .hero-title, .home-hero-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }

  .home-hero-desc {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  .brand-title {
    font-size: 0.85rem !important;
  }

  .tracking-card, 
  .auth-form-container {
    padding: 16px 12px !important;
  }

  .hide-on-mobile,
  .brand-subtitle {
    display: none !important;
  }

  /* Home Location & Action Pills */
  .home-location-pill {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    font-size: 0.76rem !important;
    padding: 9px 12px !important;
  }

  .home-hero-badge {
    font-size: 0.74rem !important;
    padding: 4px 10px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Quick Tracker Card */
  .home-quick-tracker {
    padding: 16px 12px !important;
  }

  .home-tracker-feature-pills {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .home-tracker-pill {
    font-size: 0.70rem !important;
    padding: 4px 8px !important;
  }

  /* Policy Cards Matrix */
  .home-policies-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .home-policy-card {
    padding: 16px 14px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }

  .home-policy-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .home-policy-title {
    font-size: 0.90rem !important;
  }

  .home-policy-desc {
    font-size: 0.80rem !important;
  }

  /* Route Steps Flow */
  .home-route-flow {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .home-route-arrow {
    transform: rotate(90deg) !important;
    padding: 4px 0 !important;
  }

  /* Booking Stepper & Code Display (iPhone SE Optimization) */
  .booking-stepper-container {
    padding: 12px 6px !important;
    gap: 4px !important;
  }

  .stepper-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
  }

  .stepper-label {
    font-size: 0.68rem !important;
    letter-spacing: -0.02em !important;
  }

  .stepper-line {
    min-width: 12px !important;
  }

  .code-display {
    font-size: clamp(1.4rem, 6vw, 2.1rem) !important;
    letter-spacing: 3px !important;
    padding: 12px 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-all !important;
  }

  .booking-hero {
    padding: 24px 14px !important;
    border-radius: 16px !important;
  }

  #printableReceiptCard .card-body {
    padding: 18px 12px !important;
  }

  /* Floating Complaint Widget on Mobile */
  #floatingComplaintWidget {
    bottom: 16px !important;
    right: 14px !important;
  }

  #floatingComplaintWidget button {
    padding: 9px 16px !important;
    font-size: 0.80rem !important;
    gap: 8px !important;
  }

  #floatingComplaintWidget button div {
    width: 26px !important;
    height: 26px !important;
  }

  /* Modals & SweetAlerts */
  .modal-overlay,
  .forgot-modal-overlay {
    padding: 10px !important;
  }

  .modal,
  .forgot-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px !important;
    border-radius: 16px !important;
    max-height: 92vh !important;
    box-sizing: border-box !important;
  }

  /* Tables on small mobile */
  th, td {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
  }

  /* ==========================================================================
     BOOKING SHIPMENT & TRACKING PAGE - IPHONE SE & MOBILE CENTERED ALIGNMENT
     ========================================================================== */
  #page-booking .booking-header-card,
  #page-tracking .tracking-header-card {
    padding: 16px 14px !important;
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #page-booking .booking-header-title,
  #page-tracking .tracking-header-title {
    font-size: 1.15rem !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  #page-booking .booking-header-badge,
  #page-tracking .tracking-header-badge {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    justify-content: center !important;
  }

  #page-booking .card-body {
    padding: 20px 12px !important;
  }

  #page-booking .booking-guidelines-panel {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 22px !important;
  }

  #page-booking .booking-guidelines-title {
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    width: 100% !important;
  }

  #page-booking .booking-guideline-card {
    padding: 12px 14px !important;
    text-align: center !important;
  }

  #page-booking .booking-guideline-card strong {
    justify-content: center !important;
    text-align: center !important;
  }

  #page-booking .booking-guideline-card span {
    text-align: center !important;
  }

  /* Step 1 Security Card on iPhone SE */
  #page-booking .booking-security-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
    text-align: center !important;
  }

  #page-booking .booking-security-card > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }

  #page-booking .booking-security-card h3 {
    text-align: center !important;
    font-size: 1.05rem !important;
  }

  #page-booking .booking-security-card p {
    text-align: center !important;
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
  }

  #page-booking .booking-security-card button {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.86rem !important;
    padding: 12px 16px !important;
  }

  /* Step 2 Form Headers & Elements */
  #step-form > div:first-child {
    text-align: center !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
  }

  #step-form h3 {
    text-align: center !important;
    font-size: 1.1rem !important;
  }

  #step-form p {
    text-align: center !important;
  }

  #step-form h4 {
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    width: 100% !important;
  }

  #step-form .price-display {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 14px !important;
  }

  #step-form .price-display > div {
    text-align: center !important;
  }

  #step-form button[type="submit"] {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.96rem !important;
  }

  /* Step 3 Receipt & Confirmation Centering */
  #step-confirmation .booking-hero,
  #step-confirmation .booking-code-container {
    text-align: center !important;
    padding: 24px 14px !important;
  }

  #step-confirmation .booking-hero h3,
  #step-confirmation .booking-code-container h3,
  #step-confirmation .booking-hero p,
  #step-confirmation .booking-code-container p {
    text-align: center !important;
  }

  #step-confirmation .code-notice {
    text-align: center !important;
    padding: 12px 16px !important;
  }

  #step-confirmation #printableReceiptCard {
    border-radius: 16px !important;
  }

  #step-confirmation #printableReceiptCard .card-body {
    padding: 20px 14px !important;
  }

  #step-confirmation .btn {
    width: 100% !important;
    margin-bottom: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   EXTRA SMALL MOBILE BREAKPOINT (iPhone SE 1st/2nd/3rd Gen: 320px - 375px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 380px) {
  .nav-outer .navbar-inner {
    padding: 2px 4px !important;
  }

  .brand-title {
    font-size: 0.78rem !important;
    letter-spacing: -0.03em !important;
  }

  .btn-contact span {
    display: none; /* Icon-only button on ultra-narrow 320px screens */
  }

  .btn-contact {
    padding: 8px !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    justify-content: center !important;
  }

  .home-hero-title {
    font-size: 1.35rem !important;
  }

  .code-display {
    font-size: 1.35rem !important;
    letter-spacing: 2px !important;
    padding: 10px 12px !important;
  }

  .home-quick-tracker-title span {
    font-size: 0.95rem !important;
  }

  .home-policy-title {
    font-size: 0.86rem !important;
  }

  .home-policy-desc {
    font-size: 0.76rem !important;
  }
}

/* ============================================
   ADMIN VERIFY PAYMENT & STATUS BADGES (PRO MAX)
   ============================================ */
.btn-action-verify {
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
}

.btn-action-verify:active {
    transform: scale(0.96) !important;
}

.btn-verify-approve {
    background: #ECFDF5 !important;
    color: #047857 !important;
    border: 1px solid #A7F3D0 !important;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1) !important;
}
.btn-verify-approve:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25) !important;
    transform: translateY(-1px);
}

.btn-verify-insuff {
    background: #FFFBEB !important;
    color: #B45309 !important;
    border: 1px solid #FDE68A !important;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1) !important;
}
.btn-verify-insuff:hover {
    background: #D97706 !important;
    color: #ffffff !important;
    border-color: #D97706 !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25) !important;
    transform: translateY(-1px);
}

.btn-verify-reject {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border: 1px solid #FECACA !important;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.1) !important;
}
.btn-verify-reject:hover {
    background: #DC2626 !important;
    color: #ffffff !important;
    border-color: #DC2626 !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25) !important;
    transform: translateY(-1px);
}

.admin-refund-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    padding: 4px 10px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
    white-space: nowrap;
}

.admin-refund-badge .refund-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #047857;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-refund-badge .refund-amount {
    color: #065F46;
    font-weight: 800;
    font-size: 0.84rem;
    margin-top: 1px;
}

/* NOTIFICATION TARGET ROW ULTRA-SMOOTH HIGHLIGHT & FADE-OUT */
@keyframes rowHighlightFade {
    0% {
        background-color: rgba(254, 240, 138, 0);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
    12% {
        background-color: #FEF08A; /* Soft warm amber highlight */
        box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
    }
    35% {
        background-color: #FEF9C3; /* Radiant glowing hold */
        box-shadow: 0 4px 16px rgba(234, 179, 8, 0.25);
    }
    65% {
        background-color: rgba(254, 249, 195, 0.7);
        box-shadow: 0 2px 10px rgba(234, 179, 8, 0.12);
    }
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}

@keyframes cellBorderFade {
    0% {
        border-color: transparent;
    }
    12% {
        border-color: #FACC15;
    }
    45% {
        border-color: #FDE047;
    }
    75% {
        border-color: rgba(253, 224, 71, 0.3);
    }
    100% {
        border-color: transparent;
    }
}

.row-highlight-pulse {
    animation: rowHighlightFade 4.0s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
    position: relative;
    z-index: 5;
    transition: all 0.6s ease-out;
}

.row-highlight-pulse > td {
    background-color: inherit !important;
    border-top: 2px solid transparent !important;
    border-bottom: 2px solid transparent !important;
    animation: cellBorderFade 4.0s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.row-highlight-pulse > td:first-child {
    border-left: 4px solid transparent !important;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.row-highlight-pulse > td:last-child {
    border-right: 4px solid transparent !important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ==========================================================================
   SMOOTH SCROLL-DRIVEN FOCUS & INTERACTION ENGINE
   ========================================================================== */


/* Card Hover Restorations */
.home-feature-card:hover {
    transform: translateY(-6px) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.home-policy-card:hover {
    transform: translateY(-4px) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.home-metric-card:hover {
    transform: translateY(-4px) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

/* ==========================================================================
   SCROLL-DRIVEN FOCUS / SPOTLIGHT EFFECT
   ========================================================================== */

.home-feature-card,
.home-policy-card,
.home-route-step,
.home-faq-item,
.home-metric-card,
.booking-guideline-card {
    transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active focus state when centered in the viewport */
.home-feature-card.scroll-in-focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.22), 0 0 0 1px rgba(99, 102, 241, 0.25) !important;
}

.home-policy-card.scroll-in-focus {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.22) !important;
}

.home-route-step.scroll-in-focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.20) !important;
}

.home-metric-card.scroll-in-focus {
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 14px 30px -6px rgba(56, 189, 248, 0.20) !important;
}

.home-faq-item.scroll-in-focus {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.14) !important;
}

/* Reduced Motion Safeguards */
@media (prefers-reduced-motion: reduce) {
    .home-hero-v2,
    .home-metrics-grid,
    .home-metric-card,
    .home-section-header,
    .home-feature-card,
    .home-route-step,
    .home-policy-card,
    .home-faq-item,
    .home-cta-banner,
    .booking-guidelines-panel,
    .booking-guideline-card,
    .booking-header-card,
    .booking-stepper-container,
    .tracking-search-hero,
    .tracking-result-box {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   ADMIN PROFILE MENU, AVATAR, DROPDOWN & NIGHT/LIGHT MODE ENGINE
   ========================================================================== */

/* --- Top Header Profile Chip (Reference Image 1) --- */
.admin-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

.admin-profile-chip:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-profile-chip .chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #6366F1;
    background: #EEF2FF;
    flex-shrink: 0;
}

.admin-profile-chip .chip-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-chip .chip-chevron {
    color: #64748B;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.admin-profile-chip.active .chip-chevron {
    transform: rotate(180deg);
}

/* --- Top Header Profile Flyout Dropdown (Reference Image 1) --- */
.admin-profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 270px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    overflow: hidden;
    animation: apdSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

@keyframes apdSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-profile-dropdown .apd-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid #F1F5F9;
    background: #FAF5FF;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.admin-profile-dropdown .apd-header .apd-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-dropdown .apd-header .apd-email {
    font-size: 0.78rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile-dropdown .apd-menu {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-profile-dropdown .apd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-profile-dropdown .apd-item svg {
    color: #64748B;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.admin-profile-dropdown .apd-item:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.admin-profile-dropdown .apd-item:hover svg {
    color: #4F46E5;
}

.admin-profile-dropdown .apd-item-danger {
    color: #DC2626;
}

.admin-profile-dropdown .apd-item-danger svg {
    color: #DC2626;
}

.admin-profile-dropdown .apd-item-danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

.admin-profile-dropdown .apd-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 4px 6px;
}

/* --- Sidebar Profile Widget (Sidebar Bottom) --- */
.sidebar-profile-widget {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.sp-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.sp-user-card:hover {
    background: #FFFFFF;
    border-color: #6366F1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

.sp-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6366F1;
    background: #EEF2FF;
    flex-shrink: 0;
}

.sp-avatar-wrap .sp-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-user-details {
    flex: 1;
    min-width: 0;
}

.sp-user-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-user-role {
    display: block;
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 600;
    text-transform: capitalize;
}

.sp-chevron-btn {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: color 0.15s ease;
}

.sp-user-card:hover .sp-chevron-btn {
    color: #6366F1;
}

/* --- Edit Profile Page Components (Reference Image 2) --- */
.profile-section-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-section-card .card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #F1F5F9;
    background: #FFFFFF;
}

.profile-section-card .card-body {
    padding: 24px;
}

.btn-profile-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-profile-edit:hover {
    background: #EEF2FF;
    border-color: #6366F1;
    color: #4F46E5;
}

.profile-avatar-uploader {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    position: relative;
}

.profile-main-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6366F1;
    background: #EEF2FF;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.avatar-edit-overlay-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4F46E5;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
}

.avatar-edit-overlay-btn:hover {
    transform: scale(1.1);
    background: #4338CA;
}

.profile-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.pf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.pf-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pf-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.pi-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pi-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
}

/* --- Theme Toggle Button in Header --- */
.admin-hdr-btn-theme {
    background: #F8FAFC;
    color: #475569;
    border: 1.5px solid #E2E8F0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-hdr-btn-theme:hover {
    background: #EEF2FF;
    border-color: #6366F1;
    color: #4F46E5;
    transform: rotate(15deg);
}

/* ==========================================================================
   NIGHT / DARK MODE STYLING ENGINE ([data-theme="dark"])
   ========================================================================== */

[data-theme="dark"] {
    color-scheme: dark;
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: #334155;
}

[data-theme="dark"] body.main-index-page,
[data-theme="dark"] #page-admin-dashboard {
    background-color: #0B1120 !important;
    color: #F1F5F9 !important;
}

[data-theme="dark"] .admin-sidebar {
    background: #0F172A !important;
    border-right-color: #1E293B !important;
}

[data-theme="dark"] .sidebar-header .sidebar-title {
    color: #F8FAFC !important;
}

[data-theme="dark"] .sidebar-header .sidebar-subtitle {
    color: #94A3B8 !important;
}

[data-theme="dark"] .sidebar-link {
    color: #94A3B8 !important;
}

[data-theme="dark"] .sidebar-link:hover {
    background: #1E293B !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .sidebar-link.active {
    background: #1E293B !important;
    color: #38BDF8 !important;
}

[data-theme="dark"] .admin-top-header-bar,
[data-theme="dark"] .card,
[data-theme="dark"] .profile-section-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .notif-dropdown-box,
[data-theme="dark"] .admin-profile-dropdown {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    color: #F1F5F9 !important;
}

[data-theme="dark"] #adminWelcome,
[data-theme="dark"] .card-header h3,
[data-theme="dark"] .card-header h4,
[data-theme="dark"] .profile-page-title,
[data-theme="dark"] .sp-user-name,
[data-theme="dark"] .chip-name,
[data-theme="dark"] .apd-name,
[data-theme="dark"] #profileDisplayFullName,
[data-theme="dark"] .pi-value,
[data-theme="dark"] .pf-label,
[data-theme="dark"] #themeModeCardTitle {
    color: #F8FAFC !important;
}

[data-theme="dark"] .admin-profile-dropdown .apd-header {
    background: #0F172A !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .admin-profile-dropdown .apd-item {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .admin-profile-dropdown .apd-item:hover {
    background: #334155 !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .admin-profile-dropdown .apd-divider {
    background: #334155 !important;
}

[data-theme="dark"] .admin-profile-chip,
[data-theme="dark"] .admin-hdr-btn-theme,
[data-theme="dark"] .admin-hdr-btn-bell,
[data-theme="dark"] .btn-profile-edit {
    background-color: #0F172A !important;
    border-color: #334155 !important;
    color: #CBD5E1 !important;
}

[data-theme="dark"] .admin-profile-chip:hover,
[data-theme="dark"] .admin-hdr-btn-theme:hover,
[data-theme="dark"] .admin-hdr-btn-bell:hover,
[data-theme="dark"] .btn-profile-edit:hover {
    background-color: #334155 !important;
    border-color: #6366F1 !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .sp-user-card {
    background: #0F172A !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .sp-user-card:hover {
    background: #1E293B !important;
    border-color: #6366F1 !important;
}

[data-theme="dark"] .pf-input,
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #0F172A !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .pf-input:focus,
[data-theme="dark"] .form-control:focus {
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

[data-theme="dark"] table th {
    background-color: #0F172A !important;
    color: #94A3B8 !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] table td {
    border-bottom-color: #334155 !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] table tr:hover td {
    background-color: #1E293B !important;
}

[data-theme="dark"] #notifDropdown .notif-header,
[data-theme="dark"] #notifDropdown div:first-child {
    background-color: #0F172A !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .theme-icon-sun {
    display: none !important;
}

[data-theme="dark"] .theme-icon-moon {
    display: inline-block !important;
}

/* ==========================================================================
   TWO-FACTOR AUTHENTICATION (2FA) TOGGLE SWITCH & OTP TIMER
   ========================================================================== */

.toggle-switch-2fa {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    vertical-align: middle;
}

.toggle-switch-2fa input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider-2fa {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #CBD5E1;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 999px;
}

.toggle-slider-2fa::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch-2fa input:checked + .toggle-slider-2fa {
    background-color: #2563EB;
}

.toggle-switch-2fa input:focus + .toggle-slider-2fa {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.toggle-switch-2fa input:checked + .toggle-slider-2fa::before {
    transform: translateX(22px);
}

[data-theme="dark"] .toggle-slider-2fa {
    background-color: #475569;
}

[data-theme="dark"] .toggle-switch-2fa input:checked + .toggle-slider-2fa {
    background-color: #3B82F6;
}

[data-theme="dark"] #admin2faFormContainer .admin-2fa-timer-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #admin2faTimerDisplay {
    background-color: #0F172A !important;
    color: #38BDF8 !important;
    border-color: #0369A1 !important;
}

/* --- TailAdmin Profile Cards Responsive & Dark Mode Rules --- */
@media (max-width: 768px) {
    #admin-tab-profile form > div[style*="grid-template-columns"],
    #admin-tab-profile .profile-section-card div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

[data-theme="dark"] .profile-section-card {
    background: #1E293B !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .profile-section-card h3,
[data-theme="dark"] .profile-section-card h4 {
    color: #F8FAFC !important;
}

[data-theme="dark"] .profile-section-card p,
[data-theme="dark"] .profile-section-card .pf-label {
    color: #94A3B8 !important;
}

[data-theme="dark"] .profile-section-card input.pf-input {
    background: #0F172A !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .profile-section-card input.pf-input[readonly] {
    background: #1E293B !important;
    color: #94A3B8 !important;
}

/* ==========================================================================
   REACT BITS PRO: AUTH 6 (MINIMAL 6-DIGIT GROUPED OTP VERIFICATION)
   ========================================================================== */
.auth-6-card {
    text-align: center;
    padding: 6px 0;
}

.auth-6-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-6-diamond-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.auth-6-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.auth-6-subtitle {
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 auto 28px auto;
    max-width: 360px;
}

.auth-6-otp-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.otp-triplet {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-6-divider {
    font-size: 1.3rem;
    color: #CBD5E1;
    font-weight: 300;
    user-select: none;
    margin: 0 4px;
}

.auth-6-digit {
    width: 46px;
    height: 58px;
    border-radius: 14px;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    font-family: inherit;
    outline: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.auth-6-digit:focus {
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
    background: #FFFFFF;
}

.auth-6-digit.filled {
    border-color: #94A3B8;
}

.auth-6-submit-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: #F1F5F9;
    color: #94A3B8;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.auth-6-submit-btn.active {
    background: #0F172A;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.auth-6-submit-btn.active:hover {
    background: #1E293B;
    transform: translateY(-1px);
}

.auth-6-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #64748B;
    margin-bottom: 24px;
}

.auth-6-resend-link {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: #0F172A;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-6-resend-link:hover {
    text-decoration: underline;
    color: #2563EB;
}

.auth-6-timer-tag {
    font-size: 0.82rem;
    color: #0284C7;
    font-weight: 700;
    font-family: monospace;
}

.auth-6-back-row {
    display: flex;
    justify-content: center;
}

.auth-6-back-btn {
    background: none;
    border: none;
    color: #64748B;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.auth-6-back-btn:hover {
    color: #0F172A;
    background: #F1F5F9;
}

/* Dark Mode for Auth 6 */
[data-theme="dark"] .auth-6-diamond-badge {
    background: #1E293B;
    border-color: #334155;
    color: #F8FAFC;
}

[data-theme="dark"] .auth-6-title {
    color: #F8FAFC;
}

[data-theme="dark"] .auth-6-subtitle {
    color: #94A3B8;
}

[data-theme="dark"] .auth-6-digit {
    background: #0F172A;
    border-color: #334155;
    color: #F8FAFC;
}

[data-theme="dark"] .auth-6-digit:focus {
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .auth-6-submit-btn {
    background: #1E293B;
    color: #64748B;
}

[data-theme="dark"] .auth-6-submit-btn.active {
    background: #38BDF8;
    color: #0F172A;
}

[data-theme="dark"] .auth-6-resend-link {
    color: #F8FAFC;
}

[data-theme="dark"] .auth-6-back-btn {
    color: #94A3B8;
}

[data-theme="dark"] .auth-6-back-btn:hover {
    color: #F8FAFC;
    background: #1E293B;
}

/* ==========================================================================
   DEVELOPER & SYSTEM SUPPORT MODAL
   ========================================================================== */
.contact-phone-box:hover {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.contact-modal-close-btn:hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

/* Dark Mode for Contact / Developer Support Modals */
[data-theme="dark"] #contactModal .contact-modal-card,
[data-theme="dark"] #devSupportModal .contact-modal-card {
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] #contactModal .contact-modal-title,
[data-theme="dark"] #devSupportModal .contact-modal-title {
    color: #F8FAFC !important;
}

[data-theme="dark"] #contactModal .contact-modal-sub,
[data-theme="dark"] #devSupportModal .contact-modal-sub {
    color: #94A3B8 !important;
}

[data-theme="dark"] #contactModal .contact-phone-box,
[data-theme="dark"] #devSupportModal .contact-phone-box {
    background: #0F172A !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #contactModal .contact-phone-box:hover,
[data-theme="dark"] #devSupportModal .contact-phone-box:hover {
    background: #162032 !important;
    border-color: #7C3AED !important;
}

[data-theme="dark"] #contactModal .contact-phone-number,
[data-theme="dark"] #devSupportModal .contact-phone-number {
    color: #F8FAFC !important;
}

[data-theme="dark"] #contactModal .contact-modal-close-btn,
[data-theme="dark"] #devSupportModal .contact-modal-close-btn {
    background: #0F172A !important;
    border-color: #334155 !important;
    color: #94A3B8 !important;
}

[data-theme="dark"] #contactModal .contact-modal-close-btn:hover,
[data-theme="dark"] #devSupportModal .contact-modal-close-btn:hover {
    background: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #475569 !important;
}

/* Dark Mode Overrides for White Modal & Card Headers */
[data-theme="dark"] #revenuePanelOverlay > div,
[data-theme="dark"] #ferrySuspensionModal > div {
    background: #1E293B !important;
    border-color: #334155 !important;
}

[data-theme="dark"] #revenuePanelOverlay > div > div:first-child,
[data-theme="dark"] #ferrySuspensionModal > div > div:first-child {
    background: #0F172A !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] #revenuePanelOverlay h2,
[data-theme="dark"] #ferrySuspensionModal h3 {
    color: #F8FAFC !important;
}

[data-theme="dark"] #revenuePanelOverlay button[onclick="closeRevenuePanel()"],
[data-theme="dark"] #ferrySuspensionModal button[onclick="closeFerrySuspensionModal()"] {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #94A3B8 !important;
}

/* ==========================================================================
   BACK TO TOP BUTTON (UIVERSE STYLED HOVER)
   ========================================================================== */
.back-to-top-container {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 999998 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(0.9);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-container.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top-btn,
.back-to-top-container .button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(rgb(227, 203, 255), rgba(252, 235, 252, 1));
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    position: relative;
    padding: 0;
    outline: none;
    text-decoration: none;
}

.back-to-top-btn .svgIcon,
.back-to-top-container .svgIcon {
    width: 14px;
    height: 14px;
    transition-duration: 0.3s;
    display: block;
}

.back-to-top-btn .svgIcon path,
.back-to-top-container .svgIcon path {
    fill: #7a18e5;
}

.back-to-top-btn:hover,
.back-to-top-container .button:hover {
    width: 140px;
    border-radius: 50px;
    transition-duration: 0.3s;
    background-color: #7a18e5;
    background-image: none;
    align-items: center;
    box-shadow: 0px 8px 24px rgba(122, 24, 229, 0.45);
}

.back-to-top-btn:hover .svgIcon,
.back-to-top-container .button:hover .svgIcon {
    transition-duration: 0.3s;
    transform: translateY(-200%);
}

.back-to-top-btn::before,
.back-to-top-container .button::before {
    position: absolute;
    bottom: -20px;
    content: "Back to Top";
    color: #ffffff;
    font-size: 0px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.back-to-top-btn:hover::before,
.back-to-top-container .button:hover::before {
    font-size: 13px;
    opacity: 1;
    bottom: unset;
    color: #ffffff;
    transition-duration: 0.3s;
}

/* ==========================================================================
   FLOATING LABEL FORM INPUT SYSTEM (MODERN CLEAN FLOATING STYLE)
   ========================================================================== */
.floating-field-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    align-self: flex-start;
}

.floating-field-wrapper .floating-input,
.floating-field-wrapper .floating-select {
    width: 100%;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    background: transparent !important;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0F172A;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.floating-field-wrapper .floating-textarea {
    width: 100%;
    min-height: 100px;
    background: transparent !important;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0F172A;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.floating-field-wrapper .floating-input:focus,
.floating-field-wrapper .floating-select:focus,
.floating-field-wrapper .floating-textarea:focus {
    border-color: #4070F4;
    box-shadow: 0 4px 12px rgba(64, 112, 244, 0.15);
}

.floating-field-wrapper .floating-label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 4px;
    color: #64748B;
    font-size: 0.92rem;
    font-weight: 400;
    pointer-events: none;
    transition: top 0.15s ease, left 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    z-index: 2;
}

.floating-field-wrapper .floating-textarea ~ .floating-label {
    top: 24px;
}

/* Float when focused, filled, or valid - sits right on the center of the border line with a clean cutout */
.floating-field-wrapper .floating-input:focus ~ .floating-label,
.floating-field-wrapper .floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-field-wrapper .floating-select:focus ~ .floating-label,
.floating-field-wrapper .floating-select:valid ~ .floating-label,
.floating-field-wrapper .floating-textarea:focus ~ .floating-label,
.floating-field-wrapper .floating-textarea:not(:placeholder-shown) ~ .floating-label,
.floating-field-wrapper.has-value .floating-label {
    top: 0 !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #2563EB !important;
    background: #FFFFFF !important;
    padding: 0 6px !important;
    z-index: 3 !important;
}

/* Chrome / Safari Autofill fix to preserve seamless white field background */
.floating-field-wrapper input:-webkit-autofill,
.floating-field-wrapper input:-webkit-autofill:hover, 
.floating-field-wrapper input:-webkit-autofill:focus,
.floating-field-wrapper textarea:-webkit-autofill,
.floating-field-wrapper select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #0F172A !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Steel Blue Card Variant for Home Quick Tracker */
.home-quick-tracker .floating-field-wrapper .floating-input {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
}

.home-quick-tracker .floating-field-wrapper .floating-input:focus {
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25) !important;
}

.home-quick-tracker .floating-field-wrapper .floating-label {
    color: #E0F2FE !important;
    background: transparent;
}

.home-quick-tracker .floating-field-wrapper .floating-input:focus ~ .floating-label,
.home-quick-tracker .floating-field-wrapper .floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 0 !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    color: #FFFFFF !important;
    background: #54859F !important;
    padding: 0 6px !important;
    z-index: 3 !important;
}

.home-quick-tracker .floating-field-wrapper.has-error .floating-input {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #FCA5A5 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.home-quick-tracker .floating-field-wrapper.has-error .floating-label {
    color: #FECACA !important;
}

.home-quick-tracker .floating-field-wrapper.has-error .floating-input:focus ~ .floating-label,
.home-quick-tracker .floating-field-wrapper.has-error .floating-input:not(:placeholder-shown) ~ .floating-label {
    background: #54859F !important;
    color: #FFFFFF !important;
    padding: 0 6px !important;
    z-index: 3 !important;
}

.home-quick-tracker .floating-field-wrapper .field-error-icon svg {
    stroke: #FECACA !important;
}

.home-quick-tracker .field-error-msg {
    background: #FEF2F2 !important;
    color: #991B1B !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #FECACA !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.home-quick-tracker .field-error-msg svg {
    stroke: #DC2626 !important;
}

/* ==========================================================================
   UNIVERSAL INPUT VALIDATION & RED ERROR HIGHLIGHT SYSTEM
   ========================================================================== */

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@keyframes errorSlideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating field wrapper with error */
.floating-field-wrapper.has-error .floating-input,
.floating-field-wrapper.has-error .floating-select,
.floating-field-wrapper.has-error .floating-textarea,
.form-control.is-invalid,
.form-control.has-error,
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.floating-input.is-invalid {
    border: 1.5px solid #EF4444 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.15) !important;
    background-color: #FFFFFF !important;
    border-radius: 12px;
}

.floating-field-wrapper.has-error .floating-label,
.form-group.has-error .form-label {
    color: #DC2626 !important;
    font-weight: 600 !important;
}

/* Red error exclamation icon on the right */
.floating-field-wrapper .field-error-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
    animation: fadeIn 0.2s ease;
}

/* If password toggle icon is present */
.floating-field-wrapper.has-action-icon .field-error-icon {
    right: 44px;
}

.floating-field-wrapper .floating-textarea ~ .field-error-icon {
    top: 24px;
    transform: none;
}

/* Inline red error text message */
.field-error-msg {
    color: #DC2626;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 12px;
    margin-left: 2px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: errorSlideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.field-error-msg svg {
    flex-shrink: 0;
}

.field-error-msg .btn-apply-email-fix {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 0.76rem;
    background: #DC2626;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.field-error-msg .btn-apply-email-fix:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.field-error-msg .btn-apply-email-fix:active {
    transform: translateY(0);
}

/* Form group error styling */
.form-group.has-error {
    position: relative;
}

.form-group.has-error .form-control {
    border: 1.5px solid #EF4444 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.15) !important;
    border-radius: 12px;
}

.shake-field {
    animation: fieldShake 0.35s ease-in-out !important;
}

/* Dark mode adjustments */
[data-theme="dark"] .floating-field-wrapper.has-error .floating-input,
[data-theme="dark"] .floating-field-wrapper.has-error .floating-select,
[data-theme="dark"] .floating-field-wrapper.has-error .floating-textarea,
[data-theme="dark"] .form-control.is-invalid {
    border-color: #F87171 !important;
    box-shadow: 0 0 0 3.5px rgba(248, 113, 113, 0.2) !important;
    background-color: #1E293B !important;
}

[data-theme="dark"] .field-error-msg {
    color: #F87171 !important;
}

/* Password Toggle & Action Icon Protection */
.floating-field-wrapper .floating-action-icon,
.floating-field-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: color 0.2s ease;
}

.floating-field-wrapper .floating-action-icon:hover,
.floating-field-wrapper .password-toggle:hover {
    color: #1E293B;
}

/* Ensure no error exclamation icon ever collides with password toggle buttons */
.floating-field-wrapper.has-error .floating-action-icon ~ .field-error-icon,
.floating-field-wrapper.has-error .password-toggle ~ .field-error-icon,
.floating-field-wrapper.has-error .field-error-icon + .floating-action-icon,
.floating-field-wrapper.has-action-icon .field-error-icon {
    display: none !important;
}

.floating-field-wrapper.has-error .floating-action-icon,
.floating-field-wrapper.has-error .password-toggle {
    color: #64748B !important;
}

/* =======================================================
   🎨 SHADCN UI SELECT COMPONENT SYSTEM (Radix / Shadcn UI)
   ======================================================= */
.ui-select-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

/* Hidden native select keeps form submission, formData & validation 100% intact */
.ui-select-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    border: 0 !important;
    padding: 0 !important;
    clip: rect(0 0 0 0) !important;
    overflow: hidden !important;
}

/* SelectTrigger */
.ui-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    outline: none;
    user-select: none;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ui-select-trigger:hover:not(.disabled) {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.ui-select-trigger.active,
.ui-select-trigger:focus-visible {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 2px 8px rgba(37, 99, 235, 0.08);
}

.ui-select-trigger.disabled {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* SelectValue */
.ui-select-value {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0F172A;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.ui-select-value.placeholder {
    color: #64748B;
    font-weight: 500;
}

/* Chevron Icon */
.ui-select-chevron {
    flex-shrink: 0;
    margin-left: 10px;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.ui-select-trigger.active .ui-select-chevron {
    transform: rotate(180deg);
    color: #2563EB;
}

/* SelectContent (Dropdown Popover) */
.ui-select-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 6px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.15s ease;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    box-sizing: border-box;
}

.ui-select-content::-webkit-scrollbar {
    width: 6px;
}
.ui-select-content::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.ui-select-content.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* SelectGroup & SelectLabel */
.ui-select-group {
    padding: 2px 0;
}

.ui-select-label {
    padding: 6px 12px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
    user-select: none;
}

/* SelectItem */
.ui-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    margin-bottom: 2px;
    user-select: none;
    box-sizing: border-box;
}

.ui-select-item:last-child {
    margin-bottom: 0;
}

.ui-select-item:hover:not(.disabled) {
    background: #F1F5F9;
    color: #0F172A;
}

.ui-select-item.selected {
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 700;
}

.ui-select-item.disabled {
    color: #94A3B8;
    cursor: not-allowed;
    background: transparent;
    opacity: 0.6;
}

.ui-select-check {
    opacity: 0;
    color: #2563EB;
    flex-shrink: 0;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.12s ease;
}

.ui-select-item.selected .ui-select-check {
    opacity: 1;
}

/* Floating Field integration */
.floating-field-wrapper .ui-select-wrapper {
    margin-bottom: 0;
    width: 100%;
}
.floating-field-wrapper .ui-select-trigger {
    height: 48px;
    background: #FFFFFF;
}
.floating-field-wrapper:has(.ui-select-wrapper) .floating-label,
.floating-field-wrapper .ui-select-wrapper ~ .floating-label {
    top: 0 !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #2563EB !important;
    background: #FFFFFF !important;
    padding: 0 6px !important;
    z-index: 4 !important;
}

/* =======================================================
    SHADCN UI DATEPICKER & CALENDAR (Popover + Calendar)
   ======================================================= */
.ui-datepicker-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    user-select: none;
}

.ui-datepicker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1.5px solid #DDD6FE;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    outline: none;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ui-datepicker-trigger:hover {
    border-color: #C4B5FD;
    background: #FAF5FF;
}

.ui-datepicker-trigger.active,
.ui-datepicker-trigger:focus-visible {
    border-color: #7C3AED;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 2px 8px rgba(124, 58, 237, 0.08);
}

.ui-datepicker-trigger-content {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-datepicker-cal-icon {
    color: #7C3AED;
    flex-shrink: 0;
}

.ui-datepicker-label {
    font-weight: 700;
    color: #6B21A8;
}

.ui-datepicker-label.placeholder {
    color: #64748B;
    font-weight: 500;
}

.ui-datepicker-chevron {
    color: #7C3AED;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-datepicker-trigger.active .ui-datepicker-chevron {
    transform: rotate(180deg);
}

/* Popover Content (Elevated Card) */
.ui-datepicker-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 16px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.15s ease;
    box-sizing: border-box;
}

.ui-datepicker-popover.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Calendar Component Layout */
.ui-calendar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ui-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-calendar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.ui-calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ui-calendar-nav-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #CBD5E1;
}

.ui-calendar-range-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1E40AF;
    margin-bottom: 2px;
}

.ui-calendar-range-badge span.days-count {
    background: #2563EB;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1.5px 7px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.ui-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 2px;
}

.ui-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 4px;
    column-gap: 0;
}

.ui-calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    transition: all 0.12s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
    position: relative;
    margin: 0;
}

.ui-calendar-day:hover:not(.disabled):not(.range-start):not(.range-middle):not(.range-end) {
    background: #F1F5F9;
    color: #0F172A;
    border-radius: 9999px;
}

/* Shadcn-Style 7-Day Range Selectors */
.ui-calendar-day.range-start {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 9999px 0 0 9999px !important;
    box-shadow: -1px 2px 6px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

.ui-calendar-day.range-middle {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #1D4ED8 !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ui-calendar-day.range-middle:hover {
    background: rgba(37, 99, 235, 0.28) !important;
}

.ui-calendar-day.range-middle:nth-child(7n) {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.ui-calendar-day.range-middle:nth-child(7n+1) {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.ui-calendar-day.range-end {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 0 9999px 9999px 0 !important;
    box-shadow: 1px 2px 6px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

.ui-calendar-day.range-start.range-end {
    border-radius: 9999px !important;
}

/* Backward compatibility */
.ui-calendar-day.selected:not(.range-start):not(.range-middle):not(.range-end) {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
}

.ui-calendar-day.today:not(.range-start):not(.range-middle):not(.range-end) {
    border-color: #BFDBFE;
    background: #EFF6FF;
    color: #2563EB;
    font-weight: 700;
    border-radius: 9999px;
}

.ui-calendar-day.disabled {
    color: #CBD5E1;
    cursor: not-allowed;
    background: transparent;
    opacity: 0.45;
}

.ui-calendar-day.empty {
    cursor: default;
    pointer-events: none;
}

.ui-calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-top: 1px solid #F1F5F9;
    padding-top: 10px;
    margin-top: 4px;
}

.ui-calendar-quick-btn {
    flex: 1;
    padding: 6px 4px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: center;
}

.ui-calendar-quick-btn:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #2563EB;
}

/* ==========================================================================
   CUSTOM ANIMATED DOT LOADER SCREEN (OTP & ASYNC OPERATIONS)
   ========================================================================== */

.loader {
  height: 15px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(farthest-side, #4319ec 90%, #3604ff);
  background:
    var(--_g) left,
    var(--_g) right;
  background-size: 25% 100%;
  display: grid;
}

.loader:before,
.loader:after {
  content: "";
  height: inherit;
  aspect-ratio: 1;
  grid-area: 1/1;
  margin: auto;
  border-radius: 50%;
  transform-origin: -100% 50%;
  background: #2600fff8;
  animation: l49 1s infinite linear;
}

.loader:after {
  transform-origin: 200% 50%;
  --s: -1;
  animation-delay: -0.5s;
}

@keyframes l49 {
  58%,
  100% {
    transform: rotate(calc(var(--s, 1) * 1turn));
  }
}

.loader-screen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loader-screen-card {
  background: #FFFFFF;
  padding: 28px 36px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1px solid #E2E8F0;
  animation: slideUp 0.25s ease;
}

.loader-screen-text {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.loader-screen-subtext {
  font-size: 0.84rem;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   ADMIN PROFILE & SECURITY - MODERN INTERACTIVE DESIGN SYSTEM
   ========================================================================== */

/* Profile Cards */
.profile-section-card {
  border-radius: 16px !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  padding: 26px 30px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 25px -5px rgba(15, 23, 42, 0.02) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  margin-bottom: 24px;
}

.profile-section-card:hover {
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
  border-color: #CBD5E1 !important;
}

/* Avatar Interactive Uploader */
.profile-avatar-uploader {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.profile-avatar-uploader:hover {
  transform: scale(1.04);
}

.profile-main-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 0 2px #E2E8F0, 0 4px 12px rgba(15, 23, 42, 0.08);
  background: #F8FAFC;
  transition: all 0.2s ease;
}

.profile-avatar-uploader:hover .profile-main-avatar {
  box-shadow: 0 0 0 2.5px #3C50E0, 0 6px 16px rgba(60, 80, 224, 0.2);
}

.avatar-edit-overlay-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3C50E0;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60, 80, 224, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.profile-avatar-uploader:hover .avatar-edit-overlay-btn {
  transform: scale(1.15) rotate(5deg);
  background: #2563EB;
}

/* Interactive Input Fields */
.pf-field {
  display: flex;
  flex-direction: column;
}

.pf-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pf-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pf-input:hover:not([readonly]) {
  border-color: #94A3B8;
  background: #FAFAFA;
}

.pf-input:focus:not([readonly]) {
  border-color: #3C50E0;
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(60, 80, 224, 0.14);
}

.pf-input[readonly] {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #64748B;
  cursor: not-allowed;
}

/* Save Profile Changes Primary Button (Interactive UI) */
.btn-profile-save {
  background: linear-gradient(135deg, #3C50E0 0%, #2563EB 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 11px 26px !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  box-shadow: 0 4px 14px rgba(60, 80, 224, 0.28) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease !important;
  position: relative;
  overflow: hidden;
}

.btn-profile-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(60, 80, 224, 0.4) !important;
  filter: brightness(1.04);
}

.btn-profile-save:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(60, 80, 224, 0.3) !important;
}

.btn-profile-save svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-profile-save:hover svg {
  transform: scale(1.2) rotate(-6deg);
}

/* Change Password Button (Interactive UI) */
.btn-change-password {
  padding: 8px 18px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #1E293B !important;
  background: #FFFFFF !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-change-password:hover {
  background: #F8FAFC !important;
  border-color: #3C50E0 !important;
  color: #3C50E0 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(60, 80, 224, 0.12) !important;
}

.btn-change-password:active {
  transform: translateY(0);
}

.btn-change-password svg {
  transition: transform 0.2s ease;
}

.btn-change-password:hover svg {
  transform: rotate(-10deg) scale(1.1);
}

/* Modern iOS Style 2FA Toggle Switch */
.toggle-switch-2fa {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.toggle-switch-2fa input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider-2fa {
  position: absolute;
  inset: 0;
  background-color: #CBD5E1;
  border-radius: 999px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.toggle-slider-2fa:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-switch-2fa:hover .toggle-slider-2fa {
  background-color: #94A3B8;
}

.toggle-switch-2fa input:checked + .toggle-slider-2fa {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.toggle-switch-2fa:hover input:checked + .toggle-slider-2fa {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.toggle-switch-2fa input:checked + .toggle-slider-2fa:before {
  transform: translateX(22px);
}

/* 2FA Status Badge */
.badge-2fa-status {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s ease;
}

.badge-2fa-status.disabled {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.badge-2fa-status.enabled {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* Disaster Recovery Unlock Button (Interactive UI) */
.btn-unlock-backup {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease !important;
}

.btn-unlock-backup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42) !important;
  filter: brightness(1.05);
}

.btn-unlock-backup:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.btn-unlock-backup svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-unlock-backup:hover svg {
  transform: scale(1.2) rotate(-8deg);
}

/* Backup Console Status Badge */
.badge-backup-status {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.badge-backup-status.locked {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.badge-backup-status.unlocked {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* ============================================ */
/* 🍪 COOKIE CONSENT BANNER                     */
/* ============================================ */
.cookie-consent-overlay {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 999999;
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cookie-consent-overlay.show {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.cookie-consent-overlay .card,
.cookie-card {
  width: 320px;
  min-height: 220px;
  height: auto;
  background-color: #FFFFFF;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  box-sizing: border-box;
}

#cookieSvg {
  width: 48px;
  height: 48px;
}

#cookieSvg g path {
  fill: #D97706;
}

.cookieHeading {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.cookieDescription {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

.cookieDescription a {
  color: #2563EB;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.cookieDescription a:hover {
  color: #1D4ED8;
}

.buttonContainer {
  display: flex;
  gap: 12px;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.declineButton {
  flex: 1;
  max-width: 120px;
  height: 36px;
  background-color: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.declineButton:hover {
  background-color: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
}

.acceptButton {
  flex: 1;
  max-width: 120px;
  height: 36px;
  background-color: #2563EB;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acceptButton:hover {
  background-color: #1D4ED8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.acceptButton:active,
.declineButton:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .cookie-consent-overlay {
    bottom: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(20px) scale(0.95);
  }
  .cookie-consent-overlay.show {
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }
  .cookie-consent-overlay .card,
  .cookie-card {
    width: min(320px, calc(100vw - 32px));
  }
}

/* ============================================ */
/* 🌟 GLOBAL COMPLIANCE FOOTER (LANDING GRADIENT)*/
/* ============================================ */
.pg-global-footer {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 56px;
    margin-bottom: 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 242, 254, 0.96) 20%, rgba(228, 216, 253, 0.98) 60%, #C7B2FD 85%, #9F7BFA 100%);
    border-top: 1px solid #DDD6FE;
    box-shadow: 0 -10px 30px -5px rgba(139, 92, 246, 0.12);
    color: #0F172A;
    padding: 34px 20px 30px;
    text-align: center;
    overflow: hidden;
    z-index: 10;
    box-sizing: border-box;
}

#page-home {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.pg-global-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(196, 181, 253, 0.2) 60%, rgba(167, 139, 250, 0.25) 100%);
    pointer-events: none;
    z-index: 0;
}

.pg-global-footer .footer-content-wrap {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 14px;
    box-sizing: border-box;
}

.pg-global-footer .footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

.pg-global-footer .footer-brand-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0F172A;
    letter-spacing: 0.8px;
}

.pg-global-footer .footer-brand-subtitle {
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
}

.pg-global-footer .footer-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.pg-global-footer .footer-link {
    color: #3730A3;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.pg-global-footer .footer-link:hover {
    color: #6D28D9;
    text-decoration: underline;
    transform: translateY(-1px);
}

.pg-global-footer .footer-dot-sep {
    color: #7C3AED;
    opacity: 0.6;
    font-weight: 800;
}

.pg-global-footer .footer-copy {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.55;
    max-width: 860px;
    text-align: center;
}

/* ==========================================================================
   IPHONE SE & MOBILE RESPONSIVENESS (<480px / 375px / 320px)
   ========================================================================== */
@media (max-width: 480px) {
    .pg-global-footer {
        padding: 24px 14px 20px;
        margin-top: 36px;
    }

    .pg-global-footer .footer-content-wrap {
        gap: 10px;
        padding: 0 4px;
    }

    .pg-global-footer .footer-brand-row {
        flex-direction: column;
        gap: 3px;
    }

    .pg-global-footer .footer-brand-row .footer-dot-sep {
        display: none;
    }

    .pg-global-footer .footer-brand-title {
        font-size: 0.86rem;
    }

    .pg-global-footer .footer-brand-subtitle {
        font-size: 0.76rem;
    }

    .pg-global-footer .footer-links-row {
        gap: 10px 14px;
        font-size: 0.80rem;
    }

    .pg-global-footer .footer-copy {
        font-size: 0.70rem;
        line-height: 1.45;
    }
}

/* Hide global footer on admin dashboard or when hiding main nav */
body.hide-main-nav .pg-global-footer {
    display: none !important;
}

/* ==========================================================================
   FLOATING COMPLAINT WIDGET & ROOT FLOATING BUTTONS
   ========================================================================== */
.floating-complaint-widget,
#floatingComplaintWidget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999 !important;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating-complaint-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
}

.floating-complaint-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.65);
}

.floating-complaint-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.5);
}

.complaint-btn-icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .floating-complaint-widget,
    #floatingComplaintWidget {
        bottom: 20px;
        right: 20px;
    }
    .back-to-top-container {
        bottom: 80px;
        right: 20px;
    }
}

body.hide-main-nav #floatingComplaintWidget,
body.hide-main-nav .back-to-top-container {
    display: none !important;
}

/* ==========================================================================
   SUCCESS NOTIFICATION TOAST (ORDER/BOOKING COMPLETED)
   ========================================================================== */
.notifications-container {
  width: 320px;
  height: auto;
  font-size: 0.875rem;
  line-height: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideIn 0.4s ease-out;
}

.notifications-container.toast-floating {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 9999999;
}

.flex {
  display: flex;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.success {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: rgb(240 253 244);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.success:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.success-svg {
  color: rgb(74 222 128);
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.4));
  animation: pulse 2s infinite;
}

.success-prompt-wrap {
  margin-left: 1rem;
}

.success-prompt-heading {
  font-weight: 700;
  color: rgb(22 101 52);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.checkmark {
  color: rgb(74 222 128);
  animation: scaleCheck 0.3s ease-in-out;
}

.success-prompt-prompt {
  margin-top: 0.75rem;
  color: rgb(21 128 61);
  line-height: 1.5;
}

.success-prompt-prompt p {
  margin: 0;
  font-size: 0.84rem;
}

.success-button-container {
  display: flex;
  margin-top: 1rem;
  gap: 0.75rem;
}

.success-button-main {
  padding: 0.5rem 1rem;
  background-color: rgb(22 101 52);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.2);
}

.success-button-main:hover {
  background-color: rgb(21 128 61);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.success-button-secondary {
  padding: 0.5rem 1rem;
  background-color: rgb(240 253 244);
  color: rgb(22 101 52);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid rgba(22, 101, 52, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-button-secondary:hover {
  background-color: rgb(220, 243, 234);
  border-color: rgba(22, 101, 52, 0.3);
  transform: translateY(-1px);
}

.success-button-main:active,
.success-button-secondary:active {
  transform: scale(0.95);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes scaleCheck {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .notifications-container.toast-floating {
    top: 16px;
    right: 50%;
    transform: translateX(50%);
    width: min(320px, calc(100vw - 32px));
  }
}

/* ========================================================================= */
/* VERIFIED CUSTOMER REVIEW & PACKAGE PICTURE STYLES                         */
/* ========================================================================= */

.aspect-chip {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aspect-chip:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1E293B;
  transform: translateY(-1px);
}

.aspect-chip.active {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.star-rating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 8px;
  transition: transform 0.15s ease;
}

.star-rating-btn:hover {
  transform: scale(1.18);
}

.star-rating-btn svg {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.review-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1 !important;
}

@media (min-width: 840px) {
  .metrics-divider {
    display: block !important;
  }
}

@media (max-width: 640px) {
  .reviews-metrics-bar {
    padding: 18px 16px !important;
  }
}

/* ==========================================================================
   REVIEWS SQUIRCLE METRICS SHOWCASE (IMAGE 2 REFERENCE DESIGN)
   ========================================================================== */
.reviews-metrics-showcase {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  border-radius: 32px;
  padding: 24px 30px;
  margin-bottom: 34px;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.reviews-squircles-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.review-squircle-card {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 18px 18px;
  width: 172px;
  min-width: 165px;
  height: 120px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.review-squircle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -4px rgba(15, 23, 42, 0.12), 0 6px 14px -2px rgba(15, 23, 42, 0.05);
  border-color: rgba(203, 213, 225, 1);
}

.squircle-card-title {
  display: block;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.squircle-card-content {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.squircle-card-value {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

#homeReviewSatisfactionRate {
  font-size: 1.52rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.squircle-icon-star {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(251, 191, 36, 0.4));
}

.squircle-icon-thumb {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(139, 92, 246, 0.35));
}

.squircle-icon-tag {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(132, 204, 22, 0.35));
}

/* CTA Callout Deck (Fills space with balanced, inviting layout) */
.reviews-cta-deck {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
  padding-left: 24px;
  border-left: 1px solid #E2E8F0;
}

.reviews-cta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.reviews-cta-pill {
  display: inline-block;
  align-self: flex-end;
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
}

.reviews-cta-heading {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.reviews-cta-text {
  margin: 0;
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
  line-height: 1.35;
}

.btn-squircle-review-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  padding: 15px 24px;
  border-radius: 18px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.38);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-squircle-review-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
}

@media (max-width: 1024px) {
  .reviews-metrics-showcase {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
  }
  .reviews-squircles-row {
    justify-content: center;
    width: 100%;
  }
  .reviews-cta-deck {
    border-left: none;
    border-top: 1px solid #E2E8F0;
    padding-left: 0;
    padding-top: 16px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
  }
  .reviews-cta-info {
    text-align: center;
    align-items: center;
  }
  .reviews-cta-pill {
    align-self: center;
  }
  .btn-squircle-review-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .reviews-squircles-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .review-squircle-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto;
    min-height: 90px;
    padding: 10px 8px;
    border-radius: 16px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .squircle-card-title {
    font-size: 0.76rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .squircle-card-content {
    gap: 4px;
  }
  .squircle-card-value {
    font-size: 1.15rem;
    white-space: nowrap;
  }
  #homeReviewSatisfactionRate {
    font-size: 0.98rem;
    letter-spacing: -0.03em;
  }
  .squircle-icon-star,
  .squircle-icon-thumb,
  .squircle-icon-tag {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .reviews-squircles-row {
    gap: 6px;
  }
  .review-squircle-card {
    padding: 8px 6px !important;
    border-radius: 14px !important;
    min-height: 84px !important;
  }
  .squircle-card-title {
    font-size: 0.70rem !important;
  }
  .squircle-card-value {
    font-size: 1.05rem !important;
  }
  #homeReviewSatisfactionRate {
    font-size: 0.88rem !important;
  }
  .squircle-icon-star,
  .squircle-icon-thumb,
  .squircle-icon-tag {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ==========================================================================
   MINIMALIST SQUIRCLE REVIEW MODAL (MATCHING TOP SHOWCASE DESIGN)
   ========================================================================== */
.review-modal-card {
  width: 100%;
  max-width: 560px;
  background: #FFFFFF;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(226, 232, 240, 0.85);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal-header {
  background: #FFFFFF;
  padding: 24px 28px 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
}

.review-modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.review-modal-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.review-modal-subtitle {
  margin: 4px 0 0 0;
  color: #64748B;
  font-size: 0.84rem;
  font-weight: 500;
}

.review-modal-close-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.review-modal-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: scale(1.05);
}

/* Squircle Rating Hero Card at the top of the form */
.review-rating-squircle-stage {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.03);
  text-align: center;
}

.review-rating-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-rating-stage-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.review-rating-score-badge {
  background: #FEF3C7;
  color: #B45309;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.star-rating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.star-rating-btn:hover {
  transform: scale(1.18);
}

.star-rating-btn:active {
  transform: scale(0.95);
}

/* Aspect chips: minimalist pill buttons */
.aspect-chip {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.aspect-chip:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  transform: translateY(-1px);
}

.aspect-chip.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #B45309;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
  transform: translateY(-1px);
}

/* Minimalist Form Controls */
.review-minimal-input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  font-size: 0.94rem;
  font-weight: 700;
  color: #0F172A;
  padding: 0 16px;
  background: #FFFFFF;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.review-minimal-input:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.review-minimal-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0F172A;
  padding: 12px 16px;
  background: #FFFFFF;
  box-sizing: border-box;
  resize: vertical;
  min-height: 96px;
  transition: all 0.2s ease;
}

.review-minimal-textarea:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

/* Floating Label & Minimalist Input for Review Modal */
#reviewModal .floating-field-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 0;
}

#reviewModal .floating-field-wrapper .floating-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  background: transparent;
  padding: 0 4px;
  color: #94A3B8;
  font-size: 0.92rem;
  font-weight: 500;
  pointer-events: none;
  transition: top 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              font-size 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  z-index: 2;
}

#reviewModal .floating-field-wrapper .floating-input:focus ~ .floating-label,
#reviewModal .floating-field-wrapper .floating-input:not(:placeholder-shown) ~ .floating-label,
#reviewModal .floating-field-wrapper.has-value .floating-label {
  top: 0 !important;
  left: 12px !important;
  transform: translateY(-50%) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #D97706 !important;
  background: #FFFFFF !important;
  padding: 0 6px !important;
  border-radius: 4px;
}

#reviewModal .floating-field-wrapper .floating-input:not(:placeholder-shown):not(:focus) ~ .floating-label,
#reviewModal .floating-field-wrapper.has-value:not(:focus-within) .floating-label {
  color: #64748B !important;
}

#reviewModal .floating-field-wrapper .floating-input.is-invalid ~ .floating-label,
#reviewModal .floating-field-wrapper.has-error .floating-label {
  color: #DC2626 !important;
}

#reviewModal .floating-field-wrapper .review-minimal-input.is-invalid {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Reviewer Identity Selector (Real Name vs Anonymous) */
.review-identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .review-identity-grid {
    grid-template-columns: 1fr;
  }
}
.review-identity-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.review-identity-option:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}
.review-identity-option.active {
  border-color: #10B981 !important;
  background: #F0FDF4 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.12) !important;
}
#identityOptAnon.active {
  border-color: #8B5CF6 !important;
  background: #F5F3FF !important;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.12) !important;
}
.identity-radio-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.review-identity-option.active .identity-radio-indicator {
  border-color: #10B981;
}
#identityOptAnon.active .identity-radio-indicator {
  border-color: #8B5CF6;
}
.identity-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}
.review-identity-option.active .identity-radio-dot {
  background: #10B981;
}
#identityOptAnon.active .identity-radio-dot {
  background: #8B5CF6;
}
.identity-opt-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: #0F172A;
}
.identity-badge-verified {
  font-size: 0.68rem;
  font-weight: 800;
  background: #DCFCE7;
  color: #166534;
  padding: 1px 6px;
  border-radius: 4px;
}
.identity-badge-private {
  font-size: 0.68rem;
  font-weight: 800;
  background: #EDE9FE;
  color: #6D28D9;
  padding: 1px 6px;
  border-radius: 4px;
}
.identity-opt-name {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======================================================== */
/* MASTER REVIEWS SHOWCASE CARD (Reference Design Match)    */
/* ======================================================== */
.reviews-master-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
  max-width: 920px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .reviews-master-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

.reviews-master-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.reviews-master-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0;
}

.btn-reviews-write {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F5F3FF;
  color: #7C3AED;
  border: 1.5px solid #DDD6FE;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reviews-write:hover {
  background: #7C3AED;
  color: #FFFFFF;
  border-color: #7C3AED;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Overview: Score Left + Bars Right */
.reviews-master-overview {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .reviews-master-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.reviews-overview-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reviews-master-score {
  font-size: 3.4rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.reviews-master-stars {
  margin-bottom: 4px;
}

.reviews-master-count {
  font-size: 0.84rem;
  font-weight: 500;
  color: #64748B;
}

/* Distribution Bars */
.reviews-overview-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.master-bar-row {
  display: grid;
  grid-template-columns: 1fr 115px;
  gap: 16px;
  align-items: center;
}

.master-bar-track {
  width: 100%;
  height: 7px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.master-bar-fill {
  height: 100%;
  background: #8B5CF6;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.master-bar-meta {
  font-size: 0.8rem;
  color: #64748B;
  white-space: nowrap;
  text-align: right;
}

.master-bar-meta strong {
  color: #0F172A;
  font-weight: 700;
  margin-right: 4px;
}

/* Aspect Score Pills */
.reviews-master-aspects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.aspect-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  transition: all 0.2s ease;
}

.aspect-badge-item strong {
  color: #0F172A;
  font-weight: 800;
}

.aspect-badge-item.is-high {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #1F2937;
}

.aspect-badge-item.is-high strong {
  color: #16A34A;
}

.reviews-master-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 4px 0 20px 0;
}

/* Review Items Feed */
.reviews-master-list {
  display: flex;
  flex-direction: column;
}

.master-review-item {
  padding: 22px 0;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.2s ease;
}

.master-review-item:last-child {
  border-bottom: none;
}

.master-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

.master-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.master-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.master-author-avatar.is-anonymous {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.master-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A;
}

.master-author-time {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 500;
  margin-left: 6px;
}

.master-review-score-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.master-review-score-num {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0F172A;
}

.master-review-comment {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 12px 0;
}

.master-review-photos-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.master-photo-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.master-photo-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.reviews-master-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
  margin-top: 12px;
}

.btn-expand-reviews {
  background: transparent;
  border: none;
  color: #7C3AED;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.btn-expand-reviews:hover {
  color: #6D28D9;
}

/* ============================================
   CIRCULAR EXPANDING DELETE BUTTON COMPONENT
   ============================================ */
.delete-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.164);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
  text-decoration: none;
  padding: 0;
  outline: none;
}

.delete-svgIcon {
  width: 15px;
  height: 15px;
  transition-duration: 0.3s;
  flex-shrink: 0;
}

.delete-svgIcon path {
  fill: white;
}

.delete-button:not(:disabled):not(.disabled):hover {
  width: 96px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgb(255, 69, 69);
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 69, 69, 0.4);
}

.delete-button:not(:disabled):not(.disabled):active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(255, 69, 69, 0.5);
}

.delete-button:not(:disabled):not(.disabled):hover .delete-svgIcon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transform: rotate(360deg);
  -moz-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  transform: rotate(360deg);
}

.delete-button::before {
  content: "Delete";
  color: white;
  font-size: 0px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-weight: 700;
  font-family: inherit;
  padding-right: 0;
  display: block;
}

.delete-button:not(:disabled):not(.disabled):hover::before {
  font-size: 13px;
  opacity: 1;
  max-width: 60px;
  padding-right: 6px;
  transform: translateY(0px);
}

/* Disabled State: Protected Active Shipments */
.delete-button:disabled,
.delete-button.disabled {
  background-color: #E2E8F0 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.55 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
}

.delete-button:disabled .delete-svgIcon path,
.delete-button.disabled .delete-svgIcon path {
  fill: #94A3B8 !important;
}

.delete-button:disabled:hover,
.delete-button.disabled:hover {
  width: 40px !important;
  border-radius: 50% !important;
  background-color: #E2E8F0 !important;
  transform: none !important;
}

.delete-button:disabled:hover .delete-svgIcon,
.delete-button.disabled:hover .delete-svgIcon {
  width: 15px !important;
  height: 15px !important;
  transform: none !important;
}

.delete-button:disabled:hover::before,
.delete-button.disabled:hover::before {
  display: none !important;
}

/* ============================================
   25. IPHONE SE (375px) & MOBILE OVERFLOW HARMONIZATION
   ============================================ */
@media (max-width: 640px) {
  /* Modals & Dialogs */
  .modal-overlay {
    padding: 12px !important;
  }
  .modal {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 16px !important;
    margin: 0 auto !important;
  }
  .modal-header {
    padding: 16px 16px !important;
  }
  .modal-body {
    padding: 16px 16px !important;
  }
  .modal-footer {
    padding: 14px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .modal-footer .btn {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    justify-content: center !important;
  }

  /* Admin Flyout Sidebar Drawer */
  .admin-flyout-panel {
    top: 12px !important;
    left: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
  }

  /* SweetAlert2 Popup Mobile Hardening */
  .swal2-popup {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 18px 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
  .swal2-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .swal2-actions button {
    flex: 1 1 auto !important;
    margin: 0 !important;
  }

  /* Tracking Search Input Group */
  .tracking-input-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .tracking-input-group .tracking-btn {
    width: 100% !important;
  }
}

/* Global Strict Zero-Overflow Guard */
html, body {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

.grid-wrapper {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

/* ========================================================================= */
/* FAST NUMBER COUNTER ANIMATION SYSTEM                                     */
/* ========================================================================= */
.home-metric-number,
.squircle-card-value,
.reviews-master-rating-val {
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
  will-change: contents;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.review-squircle-card,
.home-metric-card {
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.review-squircle-card:active,
.home-metric-card:active {
  transform: scale(0.985);
}

.counter-glow-tick {
  animation: counterTickPulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes counterTickPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.3)); }
  100% { transform: scale(1); filter: none; }
}

/* ========================================================= */
/* VOICEFLOW 1:1 HERO SHOWCASE & 3D PERSPECTIVE TICKER       */
/* ========================================================= */
.hero-full-wrap {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 48px auto !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-top: none !important;
  border-radius: 0 0 24px 24px !important;
  padding: 48px 0 0 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  z-index: 1;
}

/* #page-home padding aligns with header padding (12px each side = calc(100% - 24px)) */
#page-home {
  position: relative !important;
  z-index: 1 !important;
  padding: 0 12px !important;
}

.hero-inner-top {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.hero-inner-top .hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  color: #0F172A !important;
  margin: 0 auto 20px auto !important;
  max-width: 950px !important;
}

.hero-inner-top .hero-title .highlight-text {
  color: #2563EB !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  display: inline-block !important;
}

.hero-inner-top .hero-subtitle {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: clamp(1rem, 1.8vw, 1.15rem) !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  max-width: 680px !important;
  margin: 0 auto 18px auto !important;
  font-weight: 450 !important;
  text-decoration: none !important;
}

/* Force subtitle child links and spans to not override color */
.hero-inner-top .hero-subtitle a,
.hero-inner-top .hero-subtitle span {
  color: inherit !important;
  text-decoration: none !important;
}

/* Plate shell has no side padding — card border provides the frame */
.hero-plate-shell {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Pill Input - Floats just above the top edge of the showcase (Voiceflow style)
   margin-bottom: -28px makes it overlap into the image top border */
.cta-pill-wrapper {
  position: relative !important;
  z-index: 25 !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto -28px auto !important;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 9999px !important;
  padding: 6px 6px 6px 18px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.cta-pill-wrapper:focus-within {
  border-color: #2563EB !important;
  box-shadow: 0 16px 40px -4px rgba(37, 99, 235, 0.2), 0 2px 6px rgba(37, 99, 235, 0.08) !important;
}

.cta-pill-input-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
}

.cta-search-icon {
  flex-shrink: 0 !important;
  color: #94A3B8;
}

.cta-pill-input {
  border: none !important;
  outline: none !important;
  font-size: 0.94rem;
  font-weight: 500;
  color: #0F172A;
  background: transparent !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: inherit;
}

.cta-pill-input::placeholder {
  color: #94A3B8;
}

.cta-pill-btn {
  background: #2563EB !important;
  color: #FFFFFF !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 10px 22px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
}

.cta-pill-btn .btn-text-short {
  display: none;
}

.cta-pill-btn:hover {
  background: #1D4ED8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

/* No separate border — the outer hero-full-wrap card handles all borders/radius */
.hero-showcase {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

/* Voiceflow Gradient Mask Media Box (Seamless Top Melt) */
.hero-media-box {
  position: relative !important;
  width: 100% !important;
  height: clamp(380px, 48vw, 600px) !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 10%, rgba(0, 0, 0, 0.7) 26%, #000 42%) !important;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 10%, rgba(0, 0, 0, 0.7) 26%, #000 42%) !important;
  border-radius: 0 !important;
}

/* Very subtle top fade — image is visible almost immediately from top */
.hero-media-box::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 22% !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0) 100%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.hero-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 60% !important;
  display: block !important;
}

/* Floating Testimonial Card on Image (Bottom Right as Voiceflow) */
.floating-card {
  position: absolute !important;
  bottom: 28px !important;
  right: 32px !important;
  left: auto !important;
  max-width: 380px !important;
  background: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 22px 24px !important;
  text-align: left !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  z-index: 10 !important;
  backdrop-filter: blur(8px) !important;
}

.floating-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.floating-stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
  font-size: 0.95rem;
}

.floating-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #A7F3D0;
  display: inline-block;
}

.floating-quote {
  font-size: 0.93rem;
  line-height: 1.5;
  color: #1E293B;
  font-weight: 500;
  margin-bottom: 12px;
}

.floating-aspects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.floating-aspect-pill {
  font-size: 0.70rem;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  display: inline-block;
}

.floating-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.floating-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.floating-meta h4,
.floating-author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.floating-meta p,
.floating-author-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2px 0 0 0;
}

.floating-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
  transition: all 0.2s ease;
}

.floating-link:hover {
  color: #1D4ED8;
  transform: translateX(3px);
}

/* Highlights Ticker Bar (Seamless with no top line) */
.highlights-bar {
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  min-height: 58px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative !important;
  z-index: 5 !important;
}
.highlights-bar::-webkit-scrollbar {
  display: none;
}

.highlights-label {
  padding: 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  background: #F8FAFC !important;
  border-right: 1px solid #E2E8F0 !important;
}

/* Container for Remaining Home Page Sections */
.home-body-container {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 40px 20px 60px 20px !important;
  box-sizing: border-box !important;
}

/* 3D Perspective Button Design */
.highlights-tabs {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding-left: 12px;
  flex-wrap: nowrap !important;
}

.highlight-item-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* Proportional desktop flex widths so longer text has plenty of breathing space */
.highlight-item-cell.cell-route {
  flex: 0.9;
  min-width: 120px;
}

.highlight-item-cell.cell-terminal {
  flex: 1.05;
  min-width: 135px;
}

.highlight-item-cell.cell-hours {
  flex: 1.25;
  min-width: 165px;
}

.highlight-item-cell.cell-packages {
  flex: 1.35;
  min-width: 185px;
}

.container-button {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "bt-1 bt-2 bt-3"
    "bt-4 bt-5 bt-6";
  position: relative;
  perspective: 800px;
  padding: 0;
  width: 100%;
  height: 46px;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
}

.container-button:active {
  transform: scale(0.96);
}

.container-button .hover {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 200;
}

.container-button .bt-1 { grid-area: bt-1; }
.container-button .bt-2 { grid-area: bt-2; }
.container-button .bt-3 { grid-area: bt-3; }
.container-button .bt-4 { grid-area: bt-4; }
.container-button .bt-5 { grid-area: bt-5; }
.container-button .bt-6 { grid-area: bt-6; }

.container-button .bt-1:hover ~ button {
  transform: rotateX(15deg) rotateY(-15deg) rotateZ(0deg);
  box-shadow: -2px -2px 10px rgba(15, 23, 42, 0.12);
}

.container-button .bt-1:hover ~ button .btn-hover-reveal {
  animation: shake 0.5s ease-in-out 0.2s;
}

.container-button .bt-3:hover ~ button {
  transform: rotateX(15deg) rotateY(15deg) rotateZ(0deg);
  box-shadow: 2px -2px 10px rgba(15, 23, 42, 0.12);
}

.container-button .bt-3:hover ~ button .btn-hover-reveal {
  animation: shake 0.5s ease-in-out 0.2s;
}

.container-button .bt-4:hover ~ button {
  transform: rotateX(-15deg) rotateY(-15deg) rotateZ(0deg);
  box-shadow: -2px 2px 10px rgba(15, 23, 42, 0.12);
}

.container-button .bt-4:hover ~ button .btn-hover-reveal {
  animation: shake 0.5s ease-in-out 0.2s;
}

.container-button .bt-6:hover ~ button {
  transform: rotateX(-15deg) rotateY(15deg) rotateZ(0deg);
  box-shadow: 2px 2px 10px rgba(15, 23, 42, 0.12);
}

.container-button .bt-6:hover ~ button .btn-hover-reveal {
  animation: shake 0.5s ease-in-out 0.2s;
}

@keyframes shake {
  0% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

.container-button button {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  width: 100%;
  height: 46px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  box-sizing: border-box;
}

.container-button button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}

.btn-default-view {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  width: 100%;
  padding: 0 8px;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-default-view svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2px;
  flex-shrink: 0;
}

.btn-default-view span {
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-hover-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 40%);
  opacity: 0;
  z-index: 3;
  font-size: 0.76rem;
  font-weight: 800;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
}

.container-button .hover:hover ~ button,
.container-button:active button {
  border-color: #2563EB;
  box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.2);
}

.container-button .hover:hover ~ button::before,
.container-button:active button::before {
  background: #EFF6FF;
}

.container-button .hover:hover ~ button .btn-default-view,
.container-button:active button .btn-default-view {
  opacity: 0;
  transform: translateY(-40%);
}

.container-button .hover:hover ~ button .btn-hover-reveal,
.container-button:active button .btn-hover-reveal {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.counter-val {
  font-size: 0.98rem;
  font-weight: 900;
  color: #1D4ED8;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-inner-top .hero-title { font-size: 2.8rem !important; }
  .hero-media-box { height: 420px !important; }
  .floating-card { 
    max-width: 320px !important; 
    padding: 16px 18px !important; 
    bottom: 20px !important; 
    right: 20px !important; 
  }
  .highlights-bar { padding: 0 !important; }
}

/* Mobile & iPhone SE (max-width: 768px) */
@media (max-width: 768px) {
  #page-home {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #page-home .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-inner-top {
    padding: 0 16px !important;
  }

  .hero-inner-top .hero-title {
    font-size: clamp(1.6rem, 5.8vw, 2.05rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
    word-break: break-word !important;
  }

  .hero-inner-top .hero-subtitle {
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
    padding: 0 4px !important;
  }

  .hero-plate-shell {
    padding: 0 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cta-pill-wrapper {
    max-width: calc(100% - 16px) !important;
    width: calc(100% - 16px) !important;
    margin: 0 auto -20px auto !important;
    padding: 5px 5px 5px 14px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    z-index: 30 !important;
  }

  .cta-pill-input-group {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .cta-pill-input {
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom on mobile inputs */
    min-width: 0 !important;
    width: 100% !important;
  }

  .cta-pill-btn {
    padding: 9px 18px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    border-radius: 9999px !important;
    width: auto !important;
  }

  .hero-full-wrap {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #CBD5E1 !important;
    border-top: none !important;
    border-radius: 0 0 16px 16px !important;
    margin: 0 auto 24px auto !important;
    padding: 36px 0 0 0 !important;
    box-sizing: border-box !important;
  }

  .hero-showcase {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hero-media-box {
    height: 340px !important;
    border-radius: 0 !important;
  }

  .floating-card {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    max-width: calc(100% - 24px) !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16) !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .floating-card .floating-quote {
    font-size: 0.8rem !important;
    line-height: 1.38 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .floating-card .floating-link {
    display: none !important;
  }

  /* Responsive Highlights Bar on Mobile (No Horizontal Overflow) */
  .highlights-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px 12px !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .highlights-label {
    border-right: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    padding: 0 0 10px 0 !important;
    text-align: center !important;
    width: 100% !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    color: #64748B !important;
  }

  .highlights-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .highlight-item-cell {
    min-width: 0 !important;
    width: 100% !important;
    flex: none !important;
  }

  .highlight-item-cell.cell-hours,
  .highlight-item-cell.cell-packages {
    grid-column: span 2 !important;
  }

  .container-button {
    width: 100% !important;
    height: 44px !important;
  }

  .container-button button {
    width: 100% !important;
    height: 44px !important;
  }

  .btn-default-view {
    font-size: 0.72rem !important;
    padding: 0 10px !important;
    gap: 6px !important;
  }

  .btn-default-view svg {
    width: 15px !important;
    height: 15px !important;
  }

  .btn-hover-reveal {
    font-size: 0.75rem !important;
  }
}

/* Mobile Medium Viewports (max-width: 480px) */
@media (max-width: 480px) {
  .hero-media-box {
    height: 320px !important;
  }

  .floating-card {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    max-width: calc(100% - 20px) !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
  }

  .floating-header-row {
    margin-bottom: 4px !important;
  }

  .floating-stars {
    font-size: 0.78rem !important;
  }

  .floating-badge {
    font-size: 0.64rem !important;
    padding: 1.5px 7px !important;
  }

  .floating-card .floating-quote {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
  }

  .floating-aspects {
    gap: 4px !important;
    margin-bottom: 5px !important;
  }

  .floating-aspect-pill {
    font-size: 0.62rem !important;
    padding: 1.5px 6px !important;
  }

  .floating-author {
    gap: 8px !important;
    margin-bottom: 0 !important;
  }

  .floating-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.65rem !important;
  }

  .floating-author-name {
    font-size: 0.74rem !important;
  }

  .floating-author-sub {
    font-size: 0.60rem !important;
  }
}

/* iPhone SE & Small Mobile Viewports (max-width: 400px) */
@media (max-width: 400px) {
  #page-home {
    padding: 0 8px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #page-home .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-header-wrap.nav-outer,
  .nav-outer {
    padding: 8px 8px 0 8px !important;
  }

  .hero-full-wrap {
    width: 100% !important;
    border: 1px solid #CBD5E1 !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    margin: 0 auto 20px auto !important;
    padding: 24px 0 0 0 !important;
    box-sizing: border-box !important;
  }

  .hero-inner-top {
    padding: 0 10px !important;
  }

  .hero-inner-top .hero-title {
    font-size: 1.72rem !important;
    line-height: 1.18 !important;
  }

  .hero-inner-top .hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.48 !important;
    margin-bottom: 20px !important;
  }

  .hero-plate-shell {
    padding: 0 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cta-pill-wrapper {
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    margin: 0 auto -18px auto !important;
    padding: 4px 4px 4px 12px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    z-index: 30 !important;
  }

  .cta-pill-input-group {
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .cta-pill-input {
    font-size: 0.84rem !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .cta-pill-btn,
  button.cta-pill-btn,
  button[type="submit"].cta-pill-btn {
    padding: 8px 14px !important;
    font-size: 0.80rem !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-height: unset !important;
    white-space: nowrap !important;
  }

  .hero-media-box {
    height: 310px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  /* Compact Floating Review Testimonial for iPhone SE */
  .floating-card {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
    max-width: calc(100% - 16px) !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
  }

  .floating-header-row {
    margin-bottom: 3px !important;
  }

  .floating-stars {
    font-size: 0.68rem !important;
    gap: 1px !important;
  }

  .floating-badge {
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    padding: 1px 6px !important;
  }

  .floating-card .floating-quote {
    font-size: 0.70rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .floating-aspects {
    gap: 3px !important;
    margin-bottom: 4px !important;
  }

  .floating-aspect-pill {
    font-size: 0.58rem !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
  }

  .floating-author {
    gap: 7px !important;
    margin-bottom: 0 !important;
  }

  .floating-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.58rem !important;
    flex-shrink: 0 !important;
  }

  .floating-author-name {
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .floating-author-sub {
    font-size: 0.54rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    letter-spacing: 0.02em !important;
  }

  .highlights-bar {
    padding: 10px 8px !important;
    gap: 8px !important;
  }

  .highlights-tabs {
    gap: 8px !important;
  }

  .container-button {
    height: 42px !important;
  }

  .container-button button {
    height: 42px !important;
  }

  .btn-default-view {
    font-size: 0.68rem !important;
    padding: 0 6px !important;
    gap: 5px !important;
  }

  .btn-hover-reveal {
    font-size: 0.70rem !important;
  }
}



