:root {
    --primary-color: #003a70; /* Brighter Navy */
    --primary-light: #0056a3;
    --secondary-color: #f4a100; /* Gold */
    --accent-blue: #00c2ff; /* Sea Blue */
    --bg-deep: linear-gradient(135deg, #002d5a 0%, #004b8d 100%);
    --bg-light: #f4f7fa;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-light: #ffffff;
    --text-dark: #1a202c;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-deep) fixed;
    color: var(--text-light);
    margin: 0;
    padding-top: 80px;
    min-height: 100vh;
}

/* Navbar: Crystal Clear */
.navbar-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(0, 30, 60, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px;
}
.nav-link-marine {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}
.nav-link-marine:hover {
    color: var(--accent-blue) !important;
}
.nav-link-marine::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition);
}
.nav-link-marine:hover::after {
    width: 100%;
}
.max-width-400 { max-width: 400px; }

.navbar-brand {
    font-weight: 800;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hero Section: Integrated */
.welcome-section {
    background: transparent;
    padding: 4rem 0;
    border: none !important;
    box-shadow: none !important;
}

.welcome-sub {
    color: var(--secondary-color) !important;
    font-size: 2.5rem !important;
}

.welcome-desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Badges & Utilities */
.badge-marine {
    background: rgba(0, 194, 255, 0.15) !important;
    color: var(--accent-blue) !important;
    border: 1px solid rgba(0, 194, 255, 0.3) !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Staggered Entrance Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stagger-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

.card-menu {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1.25rem !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    height: 110px !important;
    /* Spotlight Layer */
    background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 194, 255, 0.15) 0%, transparent 60%) !important;
}

.card-menu:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-8px);
    border-color: var(--accent-blue) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.2);
    border-radius: 12px;
    font-size: 1.6rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: var(--transition);
}

.card-menu:hover .card-icon-box {
    background: var(--accent-blue);
    color: #001e3c;
    transform: scale(1.1);
}

.card-body-content {
    flex-grow: 1;
    padding: 0 1.5rem 0 1.25rem;
    text-align: left;
    z-index: 2;
    max-width: 65%; /* Prevent text overlap with larger illustration */
}

.card-body-content h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.15rem;
    font-size: 1.1rem;
}

.card-body-content .small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Full Visibility Illustration (Right Aligned - Scaled Up) */
.card-watermark {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    height: 82px; /* Increased from 65px */
    opacity: 0.65;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(0, 194, 255, 0.15));
}

.card-menu:hover .card-watermark {
    opacity: 1;
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 25px rgba(0, 194, 255, 0.35));
}

/* Constrained Hub width broadened for better balance */
#menuCarousel {
    max-width: 1180px; 
    margin-left: auto;
    margin-right: auto;
}

.card-illustration-right img {
    height: 55px;
    max-width: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.card-menu:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-menu h5 {
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-menu .small {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Section Dividers */
.wave-divider {
    position: relative;
    width: 100%;
    height: 100px;
    background: transparent;
}

/* Footer: Deep Sea Anchor */
.footer-marine {
    background: rgba(0, 15, 30, 0.9);
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Carousel Controls: Elegant Hover-to-Reveal */
.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 194, 255, 0.1) !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0 !important; /* Hidden by default */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 194, 255, 0.2) !important;
    border-color: var(--accent-blue) !important;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev { left: 15px; }
.carousel-control-next { right: 15px; }

/* Custom Carousel Indicators (Dots) */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 6px;
    transition: var(--transition);
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap&font-display=swap');

:root {
    --primary-marine: #001e3c;
    --accent-blue: #00c2ff;
    --accent-marine: #007bff;
    --text-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --genesis-grad: radial-gradient(circle at 50% 50%, #001e3c 0%, #000b1d 100%);
}

.bg-marine-genesis {
    background-color: var(--primary-marine);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

.genesis-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(0, 194, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(94, 92, 230, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(0, 30, 60, 1) 0%, var(--primary-marine) 100%);
    animation: meshAmbiance var(--mesh-speed, 20s) infinite alternate ease-in-out;
    will-change: transform;
}

@keyframes meshAmbiance {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

.genesis-mesh::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    mix-blend-mode: overlay;
}

/* Luxury Typography */
.text-gradient-lux {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 194, 255, 0.1);
}

.welcome-title {
    color: #fff !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.03em;
    line-height: 1.25;
    padding-bottom: 0.15em;
    margin-bottom: 0.5rem !important;
}

/* Reveal Animations */
.stagger-reveal {
    animation: revealUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes revealUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.welcome-sub {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    color: var(--accent-blue);
    opacity: 0.8;
    margin-bottom: 2rem !important;
}

.carousel-indicators .active {
    background-color: var(--accent-blue) !important;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
}

@media (max-width: 992px) {
    /* Hide arrows on mobile/tablets to keep UI clean; use indicators instead */
    .carousel-control-prev, .carousel-control-next { 
        display: none !important;
    }
    .carousel-indicators {
        bottom: -30px;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #001e3c; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* Additional Marine Overrides */
.bg-primary-soft { background-color: rgba(0, 194, 255, 0.1) !important; }
.bg-secondary-soft { background-color: rgba(244, 161, 0, 0.1) !important; }
.bg-light { background-color: rgba(255, 255, 255, 0.05) !important; }
.text-justify { text-align: justify; }
.bg-dark { background-color: #00151e !important; }

/* Doc Gallery Card (Ebook Page) */
.doc-gallery-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    color: #fff !important;
    transition: var(--transition);
}

.doc-gallery-card h5 { color: #fff !important; }
.doc-gallery-card p { color: rgba(255, 255, 255, 0.8) !important; }

.doc-gallery-card:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.detail-card .card-title { color: #fff !important; }
.detail-card .card-text.text-muted { color: rgba(255, 255, 255, 0.7) !important; }

.search-glass {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

.search-glass::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Vertical App Cards for Download Hub */
.card-app {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    color: #fff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-app img, .card-app .icon-large {
    height: 100px;
    width: 100px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
}

.welcome-section {
    padding-top: 5rem; /* Reduced from 10rem */
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.contact-info-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: var(--transition);
}

.contact-info-wrapper:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.contact-icon-lux {
    width: 48px;
    height: 48px;
    background: rgba(0, 194, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.1);
}

.contact-label-lux {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 0.35rem;
}

.contact-value-lux {
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    font-size: 1rem;
}

.social-icon-lux {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon-lux:hover {
    background: var(--accent-blue);
    color: #001e3c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 194, 255, 0.4);
}

.card-menu-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1.5rem;
}

.card-menu .card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-menu-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.card-body-content h5 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #fff;
    line-height: 1.25;
}

.card-body-content .small {
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

.card-menu h5 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #fff;
    line-height: 1.2;
}

.card-menu p {
    margin-bottom: 0;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 0; /* Align with text, not icon */
}

.card-app p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    min-height: 3em;
}

.card-app:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-blue);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-blue), #00A3FF);
    border: none;
    color: #001e3c !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.4);
}

.hover-white:hover {
    color: #fff !important;
    opacity: 1 !important;
}

/* Inline Search Bar - Premium Pill Style */
.inline-search-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(-10px);
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inline-search-wrapper.active {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 3rem;
    padding-top: 1.5rem;
}

.inline-search-card {
    background: rgba(255, 255, 255, 0.08); /* Sophisticated glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 50px;
    padding: 6px 6px 6px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 194, 255, 0.15);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1.5px solid rgba(0, 194, 255, 0.4) !important; /* Explicit Cyan Border */
    outline: none !important;
}

.inline-search-card:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 194, 255, 0.3);
    border-color: var(--accent-blue) !important;
    transform: scale(1.02);
}

.search-group-modern {
    display: flex;
    align-items: center;
    width: 100%;
}

.inline-search-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important; /* Back to white text for harmony */
    padding: 0.8rem 0;
    font-size: 1.1rem;
    box-shadow: none !important;
    flex-grow: 1;
    font-weight: 500;
}

.inline-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* Glowing Blue Search Button */
.search-btn-pill {
    width: 44px;
    height: 44px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e3c; /* Dark icon on bright button */
    cursor: pointer;
    border: none;
    transition: var(--transition);
    margin-left: 10px;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
}

.search-btn-pill:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* External Close Button */
.inline-search-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    margin-left: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.inline-search-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.2);
}
/* Footer Elite Links */
.footer-link-item {
    color: #ffffff !important;
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.95rem;
    margin-left: 2rem;
    transition: var(--transition);
    font-weight: 600;
}

.footer-link-item:hover {
    color: var(--accent-blue) !important;
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-link-item { margin: 0 0.75rem; }
}

/* Sub-page Refinement */
.list-item-elite {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    display: block;
    text-decoration: none !important;
    color: #fff !important;
}

.list-item-elite:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-blue);
    transform: translateX(10px);
}

.search-meta-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    text-align: center;
    width: 100%;
    animation: fadeInInline 0.4s ease;
}

.search-trigger {
    color: var(--accent-blue);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-trigger:hover {
    transform: scale(1.2);
    color: #fff;
}
/* Hamburger Menu Styles */
.hamburger-menu {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    z-index: 3000;
}

.hamburger-menu .bar {
    height: 2px;
    width: 100%;
    background-color: var(--accent-blue);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Drawer (Slide-in) */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: rgba(0, 30, 60, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 4000;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.drawer-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    opacity: 0.6;
}

.footer-marine {
    background: rgba(2, 12, 27, 0.4);
    margin-top: auto;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-link {
    display: flex !important;
    align-items: center !important;
    padding: 1.25rem 1.5rem !important; /* Increased vertical padding */
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    border-radius: 1rem !important;
    margin-bottom: 0.5rem !important;
    gap: 1.25rem !important; /* Definitive spacing */
}

@media (max-width: 768px) {
    .search-pill-container {
        width: calc(100% - 2rem) !important;
        max-width: 100% !important;
        margin: 0.5rem 1rem !important;
    }
    .search-input-box {
        width: 100% !important;
        left: 0 !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    .search-input-box input {
        font-size: 0.95rem !important;
        padding-left: 3rem !important;
    }
    .welcome-section {
        padding-top: 4rem !important;
    }
}

.mobile-drawer .drawer-link i {
    color: var(--accent-blue) !important;
    font-size: 1.25rem !important;
    width: auto !important;
    margin-right: 0 !important;
}

.drawer-link:hover {
    color: var(--accent-blue);
    transform: translateX(10px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3500;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* --- IDM Style Progress System --- */
.idm-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr); /* 24 segments per row */
    gap: 3px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.idm-segment {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.idm-segment.active {
    background: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.8), 0 0 20px rgba(0, 123, 255, 0.4);
}

.shadow-glow {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}

.tracking-wider {
    letter-spacing: 0.15em;
}

.bg-soft-primary {
    background: rgba(0, 123, 255, 0.15);
}

@keyframes pulse-neon {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); box-shadow: 0 0 25px rgba(0, 123, 255, 1); }
    100% { filter: brightness(1); }
}

.idm-segment.active:last-child {
    animation: pulse-neon 1s infinite alternate;
}

