/* CSS Variables */
:root {
    --dark-color: #0B0519;
    --light-beige: #F6F4F2;
    --navy-color: #1C2A4A;
    --black-color: #000000;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body */
body {
    width: 100%;
    background-color: var(--light-beige);
    font-family: 'Lato', sans-serif;
    color: var(--black-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Boldonse', sans-serif;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

/* Header */
header {
    width: 100%;
}

.navbar {
    background-color: var(--light-beige) !important;
    padding: 1rem 2rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--black-color) !important;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.navbar-dark .navbar-toggler {
    border-color: var(--black-color) !important;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Hero Section */
.hero {
    background-color: var(--navy-color);
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    width: 100%;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    text-transform: uppercase;
}

/* Main Content */
main {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

section {
    padding: 3rem 0;
    width: 100%;
    margin: 5rem 0;
}

/* Box Component */
.box-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.box-beige {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-color: var(--light-beige);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1;
}

.box-darkblue {
    position: relative;
    width: fit-content;
    padding: 1rem 2rem;
    background-color: var(--navy-color);
    color: #fff;
    border-radius: 8px;
    z-index: 2;
}

.box-darkblue h2 {
    color: #fff;
    margin: 0;
}

.box-container.in-view .box-beige,
.box-container.in-view .box-darkblue {
    transform: translate(0, 0);
    opacity: 1;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.box-container:not(.in-view) .box-beige {
    transform: translate(-30px, 30px);
    opacity: 0;
}

.box-container:not(.in-view) .box-darkblue {
    transform: translate(30px, -30px);
    opacity: 0;
}

/* About Section */
#about {
    text-align: center;
    margin-top: 3rem;
}

#about p {
    max-width: 800px;
    margin: 1rem auto 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Top LCs Section */
#top-lcs {
    text-align: center;
}

.top-lcs-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lc-card {
    background-color: var(--light-beige);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    min-width: 150px;
    text-align: left;
}

.lc-card h3 {
    font-family: 'Boldonse', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--navy-color);
}

.lc-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lc-card li {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Form Elements */
.form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.selection-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Boldonse', sans-serif;
    font-size: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

/* Buttons */
.submit-btn-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary {
    background-color: var(--navy-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: 'Boldonse', sans-serif;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0a1e40;
}

/* Numbers & Tables */
.numbers-section {
    margin: 3rem 0;
}

.numbers-section h2,
.conversions-section h2 {
    color: var(--navy-color);
    margin-bottom: 2rem;
    text-align: center;
}

.table-box {
    overflow-x: auto;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.numbers-table,
.conversions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.numbers-table th,
.conversions-table th,
.numbers-table td,
.conversions-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
}

.numbers-table th,
.conversions-table th {
    background-color: var(--navy-color);
    color: #fff;
    font-family: 'Boldonse', sans-serif;
}

/* Last Year Comparison Section */
#last-year-comparison {
    text-align: center;
    margin: 6rem 0;
}

.lyc-charts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* LC SHARE Section */
#lc-share {
    text-align: center;
    margin: 6rem 0;
}

.share-charts {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.share-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.share-chart .chart-wrapper {
    width: 300px;
    height: 300px;
    margin-bottom: 1rem;
    background-color: #fff;
}

.share-chart .total-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Boldonse', sans-serif;
}

.share-chart .legend {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.share-chart .legend li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
}

.share-chart .legend .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.dot-ogv { background-color: orange; }
.dot-ogta { background-color: green; }
.dot-ogte { background-color: red; }
.dot-total { background-color: blue; }

/* Counter Section */
#counter {
    text-align: center;
    margin: 6rem 0;
}

.counter-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.counter-card {
    background-color: var(--light-beige);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    min-width: 120px;
    text-align: center;
}

.counter-card h3 {
    font-family: 'Boldonse', sans-serif;
    font-size: 1.5rem;
    color: var(--navy-color);
    margin-bottom: 1rem;
}

.counter-number {
    font-family: 'Boldonse', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--navy-color);
}

.counter-date {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--navy-color);
    font-family: 'Lato', sans-serif;
}

/* Export Section removed */

/* Contact Us Section */
#contact-us {
    margin: 0;
    padding: 0;
    width: 100%;
}

.contact-hero {
    background-color: var(--navy-color);
    text-align: center;
    padding: 4rem 0;
    width: 100vw; /* full viewport width */
    margin-left: calc(50% - 50vw); /* extend beyond centered parent constraints */
}

.contact-hero .hero-text {
    font-size: 3.5rem;
    line-height: 1.2;
    color: #fff; /* Changed from black to white */
}

.master-decisions,
.stand-unshaken {
    font-family: 'Boldonse', sans-serif;
    font-weight: 700;
    display: inline-block;
}

.contact-lower {
    background-color: transparent; /* Changed from navy to transparent */
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 2rem 0; /* Reduced padding */
    flex-wrap: wrap;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.contact-left p {
    display: none;
}

.contact-left p {
    font-family: 'Boldonse', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contact-left img {
    width: 150px;
    height: auto;
}

.contact-right {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-right a img {
    width: 50px;
    height: 50px;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.contact-right a img:hover {
    opacity: 0.7;
}

/* LC Ranking Sections */
#dynamic-lc-ranking,
#fixed-lc-ranking {
    text-align: center;
    margin: 6rem 0;
    overflow-x: auto;
}

.ranking-table-container {
    width: 100%;
    overflow-x: auto;
}

.ranking-tables {
    margin-top: 2rem;
}

.ranking-table-section {
    margin-bottom: 3rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ranking-table-section h3 {
    font-family: 'Boldonse', sans-serif;
    color: var(--navy-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.ranking-table {
    margin-top: 1rem;
    background-color: white;
}

.ranking-table th {
    background-color: var(--navy-color);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.ranking-table td {
    text-align: center;
    padding: 0.75rem;
    vertical-align: middle;
}

.ranking-table tbody tr:nth-child(1) {
    background-color: #ffd700;
    font-weight: bold;
}

.ranking-table tbody tr:nth-child(2) {
    background-color: #c0c0c0;
    font-weight: bold;
}

.ranking-table tbody tr:nth-child(3) {
    background-color: #cd7f32;
    font-weight: bold;
}

.ranking-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Fixed ranking section specific styling */
#fixed-lc-ranking .box-darkblue h2 {
    font-size: 1.8rem;
}

#fixed-lc-ranking .ranking-table-section {
    border-left: 4px solid var(--navy-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero .hero-text {
        font-size: 2.5rem;
    }
    
    .selection-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .chart-wrapper {
        height: 300px;
    }
    
    .contact-left p {
        font-size: 1.5rem;
    }
    
    .contact-left img {
        width: 100px;
    }
    
    .contact-right a img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .contact-hero .hero-text {
        font-size: 2rem;
    }
    
    #export button {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .contact-left p {
        font-size: 1.2rem;
    }
    
    .contact-left img {
        width: 80px;
    }
}

/* Analysis Section Styles */
#analysis-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#analysis-section .nav-tabs {
    border-bottom: 2px solid var(--navy-color);
    margin-bottom: 2rem;
}

#analysis-section .nav-tabs .nav-link {
    border: none;
    color: var(--black-color);
    font-weight: 600;
    padding: 1rem 2rem;
    margin-right: 0.5rem;
    border-radius: 8px 8px 0 0;
    background-color: var(--light-beige);
}

#analysis-section .nav-tabs .nav-link.active {
    background-color: var(--navy-color);
    color: #fff;
    border-bottom: 2px solid var(--navy-color);
}

#analysis-section .nav-tabs .nav-link:hover {
    background-color: #e8e6e3;
}

#analysis-section .nav-tabs .nav-link.active:hover {
    background-color: var(--navy-color);
}

/* Table styles for analysis sections */
#analysis-section .table-responsive {
    margin-top: 1rem;
}

#analysis-section .table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#analysis-section .table thead th {
    background-color: var(--navy-color);
    color: #fff;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

#analysis-section .table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

#analysis-section .table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Form controls in analysis section */
#analysis-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
}

#analysis-section .form-control:focus {
    border-color: var(--navy-color);
    box-shadow: 0 0 0 0.2rem rgba(28, 42, 74, 0.25);
}

#analysis-section .btn-primary {
    background-color: var(--navy-color);
    border-color: var(--navy-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
}

#analysis-section .btn-primary:hover {
    background-color: #152238;
    border-color: #152238;
}

/* Product KPIs Section */
.product-kpi-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--light-beige);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.product-card h3 {
    color: var(--navy-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.product-card .counter-cards {
    justify-content: center;
}

.product-card h4 {
    font-family: 'Lato', sans-serif;
    color: var(--navy-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-family: 'Boldonse', sans-serif;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin: 0;
}

/* Enhanced Ranking Tables Grid Layout */
.ranking-tables-grid {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ranking-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.ranking-table-section {
    width: 100%;
    min-width: 0; /* Prevent overflow */
}

.ranking-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ranking-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.ranking-header {
    background: #f8f9fa;
    color: #1C2A4A;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.ranking-header h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: #1C2A4A;
    flex: 1;
    letter-spacing: 0.01em;
}

.ranking-card .table-responsive {
    flex: 1;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
}

.ranking-table {
    margin: 0;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    background: #fff;
}

.ranking-table thead th {
    background: #f1f3f6;
    color: #1C2A4A;
    border: none;
    padding: 0.85rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table tbody td {
    padding: 0.75rem 0.75rem;
    border: none;
    border-bottom: 1px solid #f1f3f6;
    font-size: 0.97rem;
    vertical-align: middle;
    background: #fff;
}

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

.ranking-table tbody tr {
    background: #fff;
    font-weight: 400;
    transition: background 0.2s;
}

.ranking-table tbody tr:hover {
    background: #f8f9fa;
    transform: none;
}

/* Remove medal emojis */
.ranking-table tbody tr td:first-child::before {
    content: '';
    margin-right: 0;
}

/* Form and button clean-up */
.form-container {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
}

/* Ensure dynamic ranking filter is always clickable and above decorative boxes */
#dynamic-lc-ranking .form-container {
    position: relative;
    z-index: 5;
}

.selection-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    align-items: end;
}

.form-group label {
    font-weight: 600;
    color: #1C2A4A;
    margin-bottom: 0.5rem;
    font-size: 0.93rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    border: 1.5px solid #e9ecef;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.97rem;
    background: #fff;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #1C2A4A;
    box-shadow: 0 0 0 0.1rem rgba(28, 42, 74, 0.08);
    outline: none;
}

.btn-primary {
    background: #1C2A4A;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(28, 42, 74, 0.08);
}

.btn-primary:hover {
    background: #152238;
    box-shadow: 0 4px 16px rgba(28, 42, 74, 0.13);
}

/* Loading animation */
.ranking-table tbody tr td[colspan] {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    position: relative;
    background: #fff;
}

.ranking-table tbody tr td[colspan]:not(:empty)::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    border-top-color: #1C2A4A;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#fixed-lc-ranking,
#dynamic-lc-ranking {
    margin: 3rem 0;
}

#fixed-lc-ranking .box-darkblue h2,
#dynamic-lc-ranking .box-darkblue h2 {
    font-size: 1.7rem;
    margin-bottom: 0;
}

#fixed-lc-ranking .box-container,
#dynamic-lc-ranking .box-container {
    margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
    .ranking-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ranking-table-section {
        min-width: 100%;
    }
}

/* For larger screens, ensure proper 2-column layout for 4-table and 6-table sections */
@media (min-width: 1200px) {
    .ranking-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For very large screens, allow 3 columns */
@media (min-width: 1600px) {
    .ranking-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================
   UI refresh: match requested layout while keeping data hooks
   ========================================================== */
:root {
    --iris-bg: #eef2f8;
    --iris-surface: #ffffff;
    --iris-text: #1b2230;
    --iris-muted: #6d778a;
    --iris-primary: #233fbb;
    --iris-primary-deep: #1b2f8f;
    --iris-shadow: 0 14px 36px rgba(16, 24, 40, 0.12);
    --iris-radius: 24px;
}

body {
    background: linear-gradient(180deg, #f5f7fb 0%, #edf2f8 35%, #f6f8fb 100%);
    color: var(--iris-text);
    font-family: 'Poppins', sans-serif !important;
}

.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #ebeff5;
    padding: 0.85rem 2.75rem;
}

.navbar .navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav.ml-auto {
    margin-left: auto !important;
    display: flex;
    align-items: center;
    gap: 0.18rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #22314c !important;
    opacity: 0.95;
    padding: 0.5rem 0.78rem !important;
    border-radius: 9px;
    line-height: 1.1;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: #edf3ff;
    color: #1840b7 !important;
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu {
    border: 1px solid #dfe7f5;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 27, 56, 0.12);
    padding: 0.45rem;
    min-width: 560px;
    z-index: 12000 !important;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overflow-x: hidden;
}

.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu.show {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem 0.3rem;
}

.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-weight: 600;
    color: #26344e;
    white-space: normal;
}

.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-item:hover {
    background: #eef4ff;
    color: #1840b7;
}

.logo img {
    height: 44px;
}

.hero {
    background: linear-gradient(90deg, #1C398E 0%, #312C85 50%, #193CB8 100%);
    padding: 3.8rem 0 5.2rem;
    margin-bottom: 0;
    position: relative;
}

.hero::after {
    content: "Advanced Analytics System for Performance Tracking";
    display: block;
    margin-top: 0.7rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    font-family: 'Poppins', sans-serif;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: 0.02em;
    margin: 0;
}

main {
    max-width: 1540px;
    padding: 0 1.6rem 3.4rem;
}

section {
    margin: 0 auto 2rem;
    padding: 1.8rem 1.65rem;
    border-radius: var(--iris-radius);
    background: var(--iris-surface);
    box-shadow: var(--iris-shadow);
}

.box-container {
    display: none;
}

.section-title {
    margin: 0 0 1rem;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    color: #1f2837;
    text-align: center;
}

.section-title-light {
    color: #ffffff;
}

#counter {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding-top: 0.5rem;
    position: relative;
    z-index: 5;
}

.numbers-section,
.conversions-section {
    margin: 1.1rem auto 1.8rem;
    padding: 1.5rem 1.4rem 1.1rem;
    max-width: 1280px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(14, 23, 46, 0.14);
    position: relative;
    z-index: 6;
}

.numbers-section h2,
.conversions-section h2,
#overall-ranking-section > h2,
#analysis-section > h2,
#fixed-lc-ranking .ranking-section-title {
    font-size: 2.35rem;
    color: #1f2837;
    margin-bottom: 1.2rem;
}

.counter-cards {
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.counter-card {
    border-radius: 16px;
    border: 0;
    box-shadow: 0 10px 22px rgba(22, 32, 74, 0.15);
    min-width: 220px;
    padding: 1rem 1.25rem;
    color: #fff;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(22, 32, 74, 0.2);
    filter: saturate(1.08);
}

.numbers-section .counter-card:nth-child(1) { background: linear-gradient(135deg, #2184ff, #3657ff); }
.numbers-section .counter-card:nth-child(2) { background: linear-gradient(135deg, #9945ff, #ca2fdd); }
.numbers-section .counter-card:nth-child(3) { background: linear-gradient(135deg, #ff2489, #cc0f77); }
.numbers-section .counter-card:nth-child(4) { background: linear-gradient(135deg, #5b52ff, #4b31e0); }

.conversions-section .counter-card:nth-child(1) { background: linear-gradient(135deg, #10b981, #13a983); }
.conversions-section .counter-card:nth-child(2) { background: linear-gradient(135deg, #16b3d8, #2479ff); }
.conversions-section .counter-card:nth-child(3) { background: linear-gradient(135deg, #7c3aed, #b423ff); }

/* Conversions section layout (Figma-aligned) */
.conversions-section {
    display: flex;
    width: min(100%, 1232px);
    min-height: 378px;
    padding: 49px 49px 1px 49px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.conversions-section h2 {
    width: 100%;
    text-align: center;
}

.conversions-section .counter-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

.conversions-section .counter-card {
    display: flex;
    padding: 32px 32px 0 32px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    align-self: stretch;
    justify-self: stretch;
    min-height: 126px;
}

.counter-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.counter-card h2,
.counter-card p {
    color: #fff;
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.05;
}

.counter-date {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: #556176;
    font-family: 'Poppins', sans-serif;
}

#about {
    background: linear-gradient(135deg, #1f4dd4, #3c2ccf);
    color: #fff;
}

#about p {
    max-width: 940px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.03rem;
    font-family: 'Poppins', sans-serif;
}

#about strong,
#about span {
    color: #dbe8ff !important;
}

#overall-ranking-section .alert-info {
    background: #f3f7ff;
    border: 1px solid #dbe7ff;
    color: #30436b;
    border-radius: 10px;
    font-size: 0.95rem !important;
}

.table {
    border-radius: 12px;
    overflow: hidden;
}

.thead-dark th,
.table thead th {
    background: linear-gradient(135deg, #182238, #0f1a2f) !important;
    border: 0;
    color: #f0f3ff;
    font-size: 0.9rem;
}

.table tbody td {
    border-color: #eef2f8;
}

.table tbody tr:hover {
    background: #f7faff;
}

#analysis-section {
    background: var(--iris-surface);
    border-radius: var(--iris-radius);
}

#analysis-section .nav-tabs {
    border-bottom: 1px solid #e8edf4;
}

#analysis-section .nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    font-size: 0.95rem;
    background: #f5f7fc;
    transition: all 0.25s ease;
}

#analysis-section .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #2d4cc8, #233cab);
}

#analysis-section .nav-tabs .nav-link:hover {
    transform: translateY(-2px);
}

#analysis-section .btn-primary,
.btn-primary {
    border-radius: 999px;
    padding: 0.62rem 2rem;
    background: linear-gradient(135deg, #2d4cc8, #233cab);
    border: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#analysis-section .btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(36, 60, 171, 0.22);
    filter: brightness(1.03);
}

#fixed-lc-ranking .ranking-section-title {
    margin-bottom: 1rem;
}

.ranking-card {
    border-radius: 16px;
    border: 1px solid #e9eef8;
    box-shadow: 0 9px 24px rgba(18, 30, 66, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(18, 30, 66, 0.14);
}

#fixed-lc-ranking .ranking-row:first-of-type .ranking-table-section:nth-child(1) .ranking-header {
    background: linear-gradient(135deg, #2167ff, #2f45d2);
}

#fixed-lc-ranking .ranking-row:first-of-type .ranking-table-section:nth-child(2) .ranking-header {
    background: linear-gradient(135deg, #9945ff, #c42adf);
}

#fixed-lc-ranking .ranking-row:first-of-type .ranking-table-section:nth-child(3) .ranking-header {
    background: linear-gradient(135deg, #ff2489, #cc0f77);
}

#fixed-lc-ranking .ranking-row:first-of-type .ranking-table-section:nth-child(4) .ranking-header {
    background: linear-gradient(135deg, #5b52ff, #4b31e0);
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-table-section:nth-child(1) .ranking-header {
    background: linear-gradient(135deg, #10b981, #13a983);
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-table-section:nth-child(2) .ranking-header {
    background: linear-gradient(135deg, #16b3d8, #2479ff);
}

.ranking-header h3 {
    color: #fff;
    font-size: 0.98rem;
    text-transform: none;
    font-family: 'Poppins', sans-serif;
}

#fixed-lc-ranking .ranking-table thead th {
    background: #111f39 !important;
    color: #f2f5ff;
    font-size: 0.82rem;
}

#fixed-lc-ranking .ranking-table tbody td[colspan] {
    background: #f8f5d4;
    color: #8a7944;
    font-style: normal;
}

#contact-us {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 2.6rem;
}

.contact-hero {
    background: linear-gradient(90deg, #071634 0%, #1e42b5 45%, #3a2dac 100%);
    border-radius: 0;
}

.contact-hero .hero-text {
    font-size: 2.95rem;
}

footer {
    background: #f6f4f2 !important;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar-dark .navbar-nav .nav-link,
.btn,
label,
input,
select,
textarea,
table,
th,
td,
p,
span,
small,
a,
li,
div {
    font-family: 'Poppins', sans-serif !important;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.95rem;
    }
    .counter-card {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.65rem 0.72rem !important;
    }
    .navbar-nav.ml-auto {
        gap: 0;
    }
    main {
        padding: 0 0.85rem 2.2rem;
    }
    section {
        padding: 1.2rem 0.85rem;
        border-radius: 18px;
    }
    #counter {
        padding-top: 0.2rem;
        margin-top: 0;
    }
    .numbers-section,
    .conversions-section {
        border-radius: 18px;
        padding: 1.15rem 0.85rem 0.95rem;
        margin-bottom: 1.2rem;
    }
    .hero {
        padding: 2.8rem 0 4.2rem;
    }
    .hero h1 {
        font-size: 2.35rem;
    }
    .hero::after {
        font-size: 0.84rem;
        padding: 0 0.8rem;
    }
    .numbers-section h2,
    .conversions-section h2,
    #fixed-lc-ranking .ranking-section-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2.1rem;
    }
    .counter-card {
        width: 100%;
        min-width: 0;
    }
    .contact-hero .hero-text {
        font-size: 2rem;
    }
}

/* ==============================
   LC Deep Dive (modern restyle)
   ============================== */
#lc-deep-dive {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 1.25rem 0 2.5rem !important;
    margin: 0;
}

#lc-deep-dive .container-fluid {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

#lc-deep-dive .lc-deep-title {
    color: #1f2b3d;
    font-size: 3.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

#lc-deep-dive .lc-deep-subtitle {
    color: #66758f;
    font-size: 1.02rem;
    margin-top: 0.4rem;
}

#lc-deep-dive #back-to-home-btn {
    background: #34445f;
    border: 0;
    color: #fff;
    border-radius: 16px;
    font-weight: 700;
    padding: 0.72rem 1.45rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#lc-deep-dive #back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 31, 54, 0.24);
}

#lc-deep-dive .lc-deep-filter-row {
    background: #fff;
    border: 1px solid #e4eaf4;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(18, 33, 72, 0.08);
    padding: 1.15rem 0.8rem 1rem;
    margin-left: 0;
    margin-right: 0;
}

#lc-deep-dive .lc-deep-filter-row > .col-md-3 {
    max-width: 33.333%;
    flex: 0 0 33.333%;
}

#lc-deep-dive .lc-deep-filter-row label {
    font-weight: 700;
    color: #3b4a63;
}

#lc-deep-dive .lc-deep-filter-row .form-control {
    height: 54px;
    border-radius: 14px;
    border: 1px solid #d9e2f0;
    background: #fff;
}

#lc-deep-dive #lc-deep-filter-btn {
    height: 54px;
    border-radius: 14px;
    text-transform: uppercase;
    font-weight: 800;
}

#lc-deep-dive #lcAnalysisTabs {
    border-bottom: none;
}

#lc-deep-dive #lcAnalysisTabs .nav-link {
    border: 1px solid #dce4f2;
    background: #fff;
    color: #394a66;
    border-radius: 10px 10px 0 0;
    font-weight: 700;
}

#lc-deep-dive #lcAnalysisTabs .nav-link.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #2363f0, #4d35e7);
}

#lc-deep-dive .tab-pane > h3 {
    color: #1f2b3d;
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0.35rem 0 1rem !important;
}

#lc-deep-dive .card {
    border: 1px solid #e4eaf4;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(16, 30, 66, 0.08);
    overflow: hidden;
}

/* Per Product filter card: make it taller and clearer */
#lc-deep-per-product-section {
    padding: 1.5rem 1.25rem !important;
    min-height: 310px;
}

#lc-deep-per-product-section .form-control {
    height: 56px;
    font-size: 1.05rem;
}

#lc-deep-per-product-section #lc-deep-per-product-filter {
    height: 56px;
    border-radius: 16px;
    font-weight: 800;
}

#lc-deep-dive .card.bg-primary,
#lc-deep-dive .card.bg-success,
#lc-deep-dive .card.bg-warning,
#lc-deep-dive .card.bg-danger {
    background: #ffffff !important;
    color: #1f2b3d !important;
}

#lc-deep-dive .card.bg-primary h2, #lc-deep-dive .card.bg-primary h5 { color: #1f74ff !important; }
#lc-deep-dive .card.bg-success h2, #lc-deep-dive .card.bg-success h5 { color: #1cab57 !important; }
#lc-deep-dive .card.bg-warning h2, #lc-deep-dive .card.bg-warning h5 { color: #d89d00 !important; }
#lc-deep-dive .card.bg-danger h2, #lc-deep-dive .card.bg-danger h5 { color: #e11d48 !important; }

#lc-deep-dive .card.bg-primary small,
#lc-deep-dive .card.bg-success small,
#lc-deep-dive .card.bg-warning small,
#lc-deep-dive .card.bg-danger small {
    color: #98a4ba !important;
}

#lc-deep-dive .card-body h6 {
    color: #3f4c63;
    font-weight: 700;
}

#lc-deep-dive #lc-su2app-rate,
#lc-deep-dive #lc-campus-su2app-rate,
#lc-deep-dive #lc-deep-pp-su2app {
    color: #8b3dff !important;
}

#lc-deep-dive #lc-su2apd-rate,
#lc-deep-dive #lc-campus-su2apd-rate,
#lc-deep-dive #lc-deep-pp-su2apd {
    color: #149ec2 !important;
}

#lc-deep-dive #lc-su2real-rate,
#lc-deep-dive #lc-campus-su2real-rate {
    color: #e11d8d !important;
}

#lc-deep-dive .card-header.bg-primary { background: linear-gradient(135deg, #2363f0, #4d35e7) !important; }
#lc-deep-dive .card-header.bg-success { background: linear-gradient(135deg, #0ea35f, #09a04d) !important; }
#lc-deep-dive .card-header.bg-info { background: linear-gradient(135deg, #0f9cc0, #0d8d8d) !important; }
#lc-deep-dive .card-header.bg-warning { background: linear-gradient(135deg, #d38a00, #ff5a00) !important; color: #fff !important; }
#lc-deep-dive .card-header.bg-secondary { background: linear-gradient(135deg, #44556f, #39465d) !important; }

#lc-deep-dive canvas {
    min-height: 280px;
}

@media (max-width: 992px) {
    #lc-deep-dive .lc-deep-title {
        font-size: 2.35rem;
    }
    #lc-deep-dive .lc-deep-filter-row > .col-md-3 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Product KPI cards: keep numbers black */
#product-kpis .product-card .counter-card p,
#product-kpis .product-card .counter-card h2 {
    color: #111111 !important;
}

/* ==============================
   Better look for Number Ranking tables
   ============================== */
#fixed-lc-ranking .ranking-section-title {
    margin-bottom: 1.25rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e2b43;
}

/* Force the first 4 ranking cards into a clean 2x2 grid (instead of squeezed 4 columns) */
#fixed-lc-ranking .ranking-row:first-of-type {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    justify-content: center !important;
}

#fixed-lc-ranking .ranking-row:first-of-type .ranking-table-section {
    flex: 1 !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
}

#fixed-lc-ranking .ranking-card {
    border-radius: 18px;
    border: 1px solid #dfe6f4;
    box-shadow: 0 10px 26px rgba(16, 29, 61, 0.1);
    overflow: hidden;
}

#fixed-lc-ranking .ranking-header {
    padding: 0.95rem 1rem;
}

#fixed-lc-ranking .ranking-header h3 {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

#fixed-lc-ranking .ranking-card .table-responsive {
    padding: 0.75rem 0.9rem 0.9rem;
    max-height: 560px;
    overflow-y: auto;
}

#fixed-lc-ranking .ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.94rem;
    background: #fff;
}

#fixed-lc-ranking .ranking-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.75rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #0f1d38 !important;
    color: #f3f6ff;
}

#fixed-lc-ranking .ranking-table tbody td {
    padding: 0.66rem 0.58rem;
    color: #1d2a41;
    border-bottom: 1px solid #edf1f8;
    font-weight: 600;
    line-height: 1.2;
}

#fixed-lc-ranking .ranking-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

#fixed-lc-ranking .ranking-table tbody tr:hover td {
    background: #eef4ff;
}

/* Make rank column clearer */
#fixed-lc-ranking .ranking-table tbody td:first-child {
    font-weight: 800;
    color: #2a4cc2;
    width: 56px;
}

#fixed-lc-ranking .ranking-table tbody td:last-child {
    font-weight: 800;
    color: #111111;
}

@media (max-width: 1200px) {
    #fixed-lc-ranking .ranking-row:first-of-type {
        flex-wrap: wrap !important;
    }
}

/* Conversion tables: add breathing space */
#fixed-lc-ranking .ranking-row:nth-of-type(2) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    margin-top: 0.75rem;
    width: 100%;
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-card {
    border-radius: 20px;
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-table-section {
    width: 100%;
    min-width: 0;
    margin-bottom: 0 !important;
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-header {
    padding: 1rem 1.2rem;
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-card .table-responsive {
    padding: 1.05rem 1.15rem 1.1rem;
    max-height: 620px;
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-table thead th {
    padding: 0.9rem 0.75rem;
}

#fixed-lc-ranking .ranking-row:nth-of-type(2) .ranking-table tbody td {
    padding: 0.82rem 0.75rem;
    line-height: 1.3;
}

@media (max-width: 1200px) {
    #fixed-lc-ranking .ranking-row:nth-of-type(2) {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

/* =====================================
   Mobile Stability Patch (UI)
   ===================================== */
@media (max-width: 992px) {
    .navbar .logo img {
        height: 36px;
    }

    .navbar .navbar-collapse {
        background: #ffffff;
        border: 1px solid #e7edf8;
        border-radius: 12px;
        margin-top: 0.7rem;
        padding: 0.5rem;
        box-shadow: 0 10px 24px rgba(18, 28, 56, 0.1);
    }

    .navbar-nav.ml-auto {
        width: 100%;
        align-items: stretch;
    }

    .navbar-dark .navbar-nav .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
    }

    .navbar-dark .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
        min-width: 0;
    }

    .navbar-dark .navbar-nav .dropdown-menu.show {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .hero {
        padding: 2.6rem 0 3.4rem;
        margin-bottom: 0;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    #counter {
        margin-top: 0;
    }

    .numbers-section,
    .conversions-section {
        max-width: 100%;
    }

    .counter-card {
        min-width: 0;
        width: calc(50% - 0.5rem);
    }

    #analysis-section .row .col-md-3,
    #analysis-section .row .col-md-6,
    #analysis-section .row .col-md-12 {
        margin-bottom: 0.75rem;
    }

    #fixed-lc-ranking .ranking-row:first-of-type,
    #fixed-lc-ranking .ranking-row:nth-of-type(2) {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    #fixed-lc-ranking .ranking-card .table-responsive {
        max-height: 460px;
    }

    #dynamic-lc-ranking [style*="max-width: 1400px"] {
        padding: 0 !important;
    }

    #dynamic-lc-ranking .table-responsive {
        padding: 0.75rem !important;
    }

    #lc-deep-dive .lc-deep-header-row .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    #lc-deep-dive .lc-deep-title {
        font-size: 2rem;
    }

    #lc-deep-dive .tab-pane > h3 {
        font-size: 1.55rem;
    }

    #lc-deep-dive .card-body {
        padding: 0.9rem;
    }
}

@media (max-width: 576px) {
    main {
        padding: 0 0.55rem 1.4rem;
    }

    section {
        margin-bottom: 1.05rem;
        padding: 0.95rem 0.62rem;
        border-radius: 14px;
    }

    .hero {
        padding: 2rem 0 2.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero::after {
        font-size: 0.78rem;
        line-height: 1.3;
        margin-top: 0.5rem;
    }

    #counter {
        margin-top: 0;
    }

    .numbers-section h2,
    .conversions-section h2,
    .section-title,
    #fixed-lc-ranking .ranking-section-title {
        font-size: 1.45rem !important;
        margin-bottom: 0.7rem;
    }

    .counter-card {
        width: 100%;
        padding: 0.82rem 0.9rem;
        border-radius: 12px;
    }

    .conversions-section {
        width: 100%;
        min-height: auto;
        padding: 24px 16px 12px 16px;
        gap: 16px;
    }

    .conversions-section .counter-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .conversions-section .counter-card {
        padding: 20px 18px 8px 18px;
        min-height: 110px;
    }

    .counter-card h2,
    .counter-card p {
        font-size: 1.8rem;
    }

    #about p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .table {
        font-size: 0.83rem;
    }

    .table thead th {
        font-size: 0.72rem;
        padding: 0.52rem 0.4rem;
    }

    .table tbody td {
        padding: 0.5rem 0.42rem;
    }

    #fixed-lc-ranking .ranking-header h3 {
        font-size: 0.88rem;
    }

    #fixed-lc-ranking .ranking-card .table-responsive {
        max-height: 400px;
        padding: 0.55rem 0.55rem 0.6rem;
    }

    #lc-deep-dive {
        padding: 0.85rem 0 1.45rem !important;
    }

    #lc-deep-dive .container-fluid {
        padding: 0 0.45rem;
    }

    #lc-deep-dive .lc-deep-subtitle {
        font-size: 0.88rem;
    }

    #lc-deep-dive #back-to-home-btn {
        width: 100%;
        text-align: center;
    }

    #lc-deep-dive .lc-deep-filter-row {
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
    }

    #lc-deep-dive .lc-deep-filter-row .form-control,
    #lc-deep-dive #lc-deep-filter-btn {
        height: 46px;
        border-radius: 10px;
    }
}

/* =====================================
   Hero image + centered tabs + loading gif
   ===================================== */
.navbar {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.navbar .nav-link.text-dark,
.navbar .dropdown-toggle.text-dark {
    color: #037EF3 !important;
    font-weight: 700;
}

.navbar .nav-link.text-dark:hover,
.navbar .dropdown-toggle.text-dark:hover {
    color: #025fb4 !important;
    background: transparent;
    border-radius: 0;
    opacity: 1;
}

.navbar .dropdown-menu {
    background: #ffffff;
    border: 1px solid #dbe5f2;
}

.navbar .dropdown-menu .dropdown-item {
    color: #1c2a4a;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: #eef4ff;
    color: #1c2a4a;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-dark .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

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

.navbar-nav.ml-auto {
    margin: 0 auto !important;
}

.navbar .logo {
    margin-right: 0;
}

.hero {
    position: relative;
    display: flex;
    width: 100vw;
    min-height: 700px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background:
        linear-gradient(rgba(16, 19, 31, 0.2), rgba(16, 19, 31, 0.2)),
        url("/static/assets/new-background.1d430421fb16.jpeg"),
        url("/static/assets/hero-bg.02653888592b.jpg");
    background-color: #e5e5e5;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    box-shadow: 0 28px 60px rgba(10, 18, 36, 0.36);
}

.hero::after {
    color: #ffffff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 37px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 18px rgba(120, 190, 255, 0.7);
}

.hero h1 {
    color: #FFF;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 72px;
    font-style: normal;
    font-weight: 900;
    line-height: 72px;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .hero {
        min-height: clamp(340px, 58vw, 520px);
        background-position: center top;
        background-size: contain !important;
    }
}

.iris-loading-cell {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 1.1rem 0.5rem !important;
}

.ranking-table tbody tr td[colspan]:not(:empty)::after {
    display: none !important;
}

.iris-loading-gif {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .navbar .navbar-collapse {
        justify-content: flex-end;
    }

    .navbar-nav.ml-auto {
        margin: 0 !important;
    }
}

@media (min-width: 993px) {
    .navbar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 11000;
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
        overflow: visible !important;
    }

    .navbar .logo {
        position: absolute;
        left: 2.25rem;
        top: 56%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .navbar .logo img {
        height: 92px;
        width: auto;
    }

    .navbar .navbar-collapse {
        justify-content: center;
        overflow: visible !important;
    }

    .navbar-nav.ml-auto {
        margin: 0 auto !important;
        position: relative;
        z-index: 12000;
    }

    .navbar-nav .dropdown {
        position: relative;
        z-index: 12000;
    }
}

@media (max-width: 992px) {
    .navbar .logo img {
        height: 68px;
    }
}

/* =====================================
   Ambient background + section fade-in
   ===================================== */
body {
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

body::before {
    background-image: url("/static/assets/blue-man.02fc3169f6e3.png");
    background-repeat: repeat;
    background-size: 190px auto;
    background-position: 0 0;
}

body::after {
    background: none;
    opacity: 0;
}

header {
    position: relative;
    z-index: 20000;
}

main,
footer {
    position: relative;
    z-index: 1;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    body::before,
    body::after {
        opacity: 0.05;
    }
}

/* =====================================
   Mobile Stability Overrides
   ===================================== */
.hero {
    width: 100%;
}

@media (max-width: 992px) {
    header {
        position: relative;
        z-index: 90;
    }

    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        padding: 0.28rem 0.75rem !important;
        backdrop-filter: blur(3px);
        background: rgba(8, 17, 36, 0.18) !important;
    }

    .navbar .logo {
        position: static !important;
        transform: none !important;
        margin-right: auto;
        margin-top: 6px;
    }

    .navbar .logo img {
        height: 52px !important;
        width: auto;
    }

    .navbar-toggler {
        margin-left: auto;
        padding: 0.35rem 0.55rem;
        border-width: 1px !important;
        border-radius: 10px;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(190, 219, 255, 0.35) !important;
    }

    .navbar .navbar-collapse {
        position: relative;
        z-index: 10000;
        width: 100%;
        margin-top: 0.35rem;
        background: rgba(8, 18, 40, 0.78);
        border: 1px solid rgba(190, 219, 255, 0.26);
        border-radius: 14px;
        padding: 0.45rem;
        box-shadow: 0 12px 24px rgba(6, 14, 31, 0.35);
    }

    .navbar-nav.ml-auto {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .navbar .nav-link.text-dark,
    .navbar .dropdown-toggle.text-dark {
        color: #f5f9ff !important;
        display: block;
        padding: 0.72rem 0.85rem !important;
        border-radius: 10px;
        font-size: 0.98rem;
    }

    .navbar .nav-link.text-dark:hover,
    .navbar .dropdown-toggle.text-dark:hover {
        background: transparent !important;
        color: #7fc0ff !important;
    }

    .navbar-dark .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.3rem;
        padding: 0.35rem;
        border-radius: 10px;
        border: 1px solid #dbe5f2;
        background: #ffffff;
        box-shadow: none;
        min-width: 0;
    }

    .navbar-dark .navbar-nav .dropdown-menu.show {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu {
        min-width: 0 !important;
        max-height: min(58vh, 420px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu.show {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.2rem;
        grid-template-columns: 1fr !important;
    }

    .navbar-dark .navbar-nav .dropdown-item {
        color: #1c2a4a;
        border-radius: 8px;
        padding: 0.52rem 0.65rem;
        width: 100%;
        white-space: normal;
    }

    .navbar-dark .navbar-nav .dropdown-item:hover {
        color: #1c2a4a;
        background: #eef4ff;
    }

    .hero {
        min-height: clamp(380px, 62vh, 520px) !important;
        padding: 5.1rem 0.9rem 2.6rem !important;
        background-position: center top !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
    }

    .hero h1 {
        font-size: clamp(36px, 9vw, 56px) !important;
        line-height: 1.04 !important;
        letter-spacing: 0.4px !important;
    }

    .hero::after {
        font-size: clamp(15px, 3.2vw, 21px) !important;
        line-height: 1.35 !important;
        padding: 0 0.6rem;
    }

    main {
        padding: 0 0.7rem 1.6rem !important;
    }

    section {
        margin: 0 auto 1rem !important;
        padding: 1rem 0.7rem !important;
        border-radius: 14px !important;
    }

    #counter {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .numbers-section,
    .conversions-section {
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        padding: 1rem 0.85rem !important;
    }

    .counter-cards {
        gap: 0.7rem !important;
    }

    .counter-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.85rem 0.9rem !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 576px) {
    .navbar .logo img {
        height: 46px !important;
    }

    .hero {
        min-height: 340px !important;
        padding-top: 5.7rem !important;
        background-position: center top !important;
        background-size: contain !important;
    }

    .hero h1 {
        font-size: clamp(30px, 11vw, 42px) !important;
    }

    .hero::after {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
}

