:root {
    --color-primary: #dc3545;
    /* Orange from site */
    --color-secondary: #006CA1;
    /* Blue hint seen in screenshots */
    --color-dark: #333333;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #4a4a4a;
    --color-border: #e0e0e0;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

/* Dark Mode Variables */
body.dark-mode,
[data-theme="dark"] {
    --color-white: #0B0E14;
    /* Background become Dark */
    --color-light: #151A25;
    /* Secondary Background */
    --color-dark: #f5f5f5;
    /* Text becomes Light */
    --color-text: #94A3B8;
    /* Muted Text */
    --color-border: #2A303C;
}

/* Dark Mode Specific Overrides */
body.dark-mode .header,
body.dark-mode .main-header,
body.dark-mode .hero-section,
body.dark-mode .news-section,
body.dark-mode .digital-solution-section,
body.dark-mode .sellers-section,
body.dark-mode .footer-dark,
body.dark-mode .service-card,
body.dark-mode .news-card,
body.dark-mode .seller-card,
body.dark-mode .search-bar {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-border);
}

body.dark-mode .brand-text {
    color: #fff !important;
}

body.dark-mode .top-bar {
    background: #0B0E14;
    color: #94A3B8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode a {
    color: inherit;
}

body.dark-mode .search-bar input {
    color: #fff;
}

body.dark-mode .hero-text h1 {
    color: #fff;
}

/* Invert icons or specific elements if needed */

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

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
input,
button,
select,
textarea {
    font-family: var(--font-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.2s;
}

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

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

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

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

.flex {
    display: flex;
}

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

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

.grid {
    display: grid;
}

/* Header Styles */
.header {
    background-color: var(--color-white);
    /* box-shadow removed for flat look */
    border-bottom: 1px solid #f0f0f0;
}

.top-bar {
    background-color: var(--color-white);
    font-size: 13px;
    padding: 10px 0;
    color: #333;
    border-bottom: none;
}

.top-bar a {
    margin-right: 25px;
    font-weight: 500;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.main-header {
    padding: 15px 0 25px;
    background: var(--color-white);
}

/* Search Bar */
.search-bar {
    flex-grow: 1;
    max-width: 650px;
    max-width: 650px;
    margin: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #dc3545;
    /* Orange border */
    border-radius: 25px;
    /* Rounded pill shape */
    padding: 5px;
    background: #fff;
}

.search-category {
    padding: 0 15px;
    border-right: 1px solid #ddd;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-bar .btn-search {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    padding: 0 15px;
    cursor: pointer;
}

.header-icons {
    gap: 25px;
}

.header-icons a {
    color: #dc3545;
    /* Orange icons */
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    background: var(--color-white);
    padding: 60px 0;
    min-height: auto;
    position: static;
    /* Remove overlay positioning */
}

.hero-section::before {
    display: none;
    /* Remove dark overlay */
}

.hero-text {
    flex: 1;
    color: var(--color-dark);
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    color: #000;
}

.hero-text .text-highlight {
    color: var(--color-primary);
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.hero-chart-card {
    flex: 0 0 500px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.price-large {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.update-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.badge-down {
    display: inline-block;
    background: #ffebee;
    color: #d32f2f;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.view-detail {
    font-size: 13px;
    color: #555;
}


/* Services Section */
.services-section {
    background-color: #f8f9fa;
    /* Slightly cooler gray */
    padding-top: 120px;
    /* Very distinct spacing */
    padding-bottom: 100px;
    margin-top: 0;
    /* Let padding handle the gap */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: 50px 30px;
    /* More vertical padding */
    border-radius: 24px;
    /* Very rounded */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    /* Very soft, wide spread shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align top, content flows down */
    align-items: center;
    min-height: 320px;
    /* Taller card */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.01);
    /* Subtle border */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    font-size: 20px;
    /* Larger title */
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.service-card p {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 90%;
}

.service-card .update-info {
    font-size: 13px;
    color: #adb5bd;
    margin-bottom: 15px;
    font-weight: 400;
}

.price-display {
    font-size: 28px;
    /* Bigger price */
    font-weight: 800;
    color: #212529;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.badge-up {
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Button Styles for Services */
.btn-outline-pill {
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 10px 28px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s;
    margin-top: auto;
    /* Push to bottom if needed */
}

.btn-outline-pill:hover {
    border-color: #adb5bd;
    color: #212529;
    background: #f8f9fa;
}

.btn-primary-pill {
    background-color: #ffc107;
    /* Standard warning yellow/orange */
    color: #000;
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    margin-top: auto;
}

.btn-primary-pill:hover {
    background-color: #ffb300;
    transform: translateY(-2px);
}

.app-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-app {
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 8px 16px;
    color: #343a40;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    min-width: 140px;
    justify-content: center;
}

.btn-app i {
    font-size: 20px;
}

.btn-app:hover {
    background-color: #f1f3f5;
    border-color: #adb5bd;
}

/* Responsive adjustment for 3 columns */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* Digital Solution Section */
.digital-solution-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.digital-solution-section .section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
}

.digital-solution-section .section-subtitle {
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.solution-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.solution-list-col {
    flex: 1;
    text-align: left;
}

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

.solution-list li {
    font-size: 16px;
    color: #999;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.solution-list li .dot {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s;
}

.solution-list li.active,
.solution-list li:hover {
    color: #dc3545;
    font-weight: 700;
    font-size: 18px;
}

.solution-list li.active .dot,
.solution-list li:hover .dot {
    background-color: #dc3545;
    transform: scale(1.5);
}

.solution-image-col {
    flex: 1.5;
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.phone-wrapper {
    position: relative;
    max-width: 100%;
}

.phone-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.phone-img:hover {
    transform: translateY(-10px);
}

.solution-content-col {
    flex: 1;
    text-align: left;
}

.solution-content-col h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
    text-transform: uppercase;
    line-height: 1.4;
}

.solution-content-col p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .solution-grid {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .solution-list-col,
    .solution-content-col {
        text-align: center;
        align-items: center;
    }

    .solution-list li {
        justify-content: center;
    }
}

/* Sellers Section */
.sellers-section {
    background-color: #f9f9f9;
    padding: 80px 0;
    /* Increased top/bottom padding for spacing */
    margin-top: 40px;
    /* Extra margin if needed */
}

.sellers-section .section-title {
    margin-bottom: 50px;
    /* Space between title and grid */
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.seller-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    height: 180px;
    /* Fixed height for brand logos */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #bbb;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.seller-card::after {
    content: "Brand Logo";
    /* Placeholder text */
    position: absolute;
    font-size: 14px;
    color: #ddd;
}

.seller-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    color: var(--color-primary);
}

/* News Section */
.news-section {
    background-color: var(--color-white);
    padding-top: 100px;
    /* Increased top spacing as requested */
    padding-bottom: 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-body {
    padding: 25px;
}

.news-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #333;
}

.news-body p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* Service Buttons */
.btn-pill-primary {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-pill-primary:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-pill-outline {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-pill-outline:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Footer */
/* =========================================
   GLOBAL LOGO STYLES (Shared Header/Footer)
   ========================================= */
.logo-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ff3b69, #8b0000);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    /* =========================================
   NEW COMPONENTS (Skeleton, Toast, BottomNav, Transitions)
   ========================================= */

    /* --- Skeleton Loading --- */
    .skeleton {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        border-radius: 8px;
    }

    body:not(.dark-mode) .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    }

    @keyframes skeleton-loading {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .skeleton-text {
        height: 1em;
        margin-bottom: 0.5em;
        border-radius: 4px;
    }

    .skeleton-rect {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* --- Toast Notifications --- */
    .toast-container-custom {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .toast-glass {
        background: rgba(20, 20, 30, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 4px solid #dc3545;
        /* Primary */
        color: #fff;
        padding: 16px 20px;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        min-width: 300px;
        display: flex;
        align-items: center;
        gap: 12px;
        animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        transition: all 0.3s ease;
    }

    body:not(.dark-mode) .toast-glass {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.05);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        color: #333;
    }

    .toast-glass.success {
        border-left-color: #10B981;
    }

    .toast-glass.error {
        border-left-color: #EF4444;
    }

    .toast-glass.info {
        border-left-color: #3B82F6;
    }

    .toast-glass i {
        font-size: 1.25rem;
    }

    .toast-glass .toast-content {
        flex-grow: 1;
    }

    .toast-glass .toast-title {
        font-weight: bold;
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .toast-glass .toast-msg {
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .toast-glass .btn-close-toast {
        background: none;
        border: none;
        color: inherit;
        opacity: 0.5;
        cursor: pointer;
        padding: 0;
    }

    .toast-glass .btn-close-toast:hover {
        opacity: 1;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100%);
        }

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

    @keyframes fadeOutRight {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(100%);
        }
    }

    /* --- Bottom Navigation (Mobile Only) --- */
    .bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(20, 20, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        padding: 10px 0 25px 0;
        /* Extra padding for safe area */
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    }

    body:not(.dark-mode) .bottom-nav {
        background: rgba(255, 255, 255, 0.95);
        border-top-color: rgba(0, 0, 0, 0.05);
    }

    .bottom-nav-item {
        color: #999;
        text-align: center;
        font-size: 0.75rem;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        background: transparent;
        border: none;
        padding: 0;
        width: 100%;
    }

    .bottom-nav-item i {
        font-size: 1.25rem;
        margin-bottom: 4px;
        display: block;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .bottom-nav-item.active {
        color: #FF9F1C;
        /* Orange active color */
        font-weight: 600;
    }

    .bottom-nav-item.active i {
        transform: translateY(-4px);
        color: #FF9F1C;
        filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.4));
    }

    @media (max-width: 991px) {
        .bottom-nav {
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        footer {
            padding-bottom: 90px !important;
        }
    }

    /* --- Page Transitions --- */
    body {
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    body.page-loaded {
        opacity: 1;
    }

    body.page-exiting {
        opacity: 0;
        transform: scale(0.99);
        transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    }


    .logo-box:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(255, 59, 105, 0.5);
    }

    .brand-text {
        font-family: var(--font-main);
        letter-spacing: 0.5px;
    }

    /* =========================================
   FOOTER DARK THEME
   ========================================= */
    .footer-dark {
        background-color: #111;
        color: #bbb;
        padding: 70px 0 30px;
        font-size: 14px;
        margin-top: 0;
    }

    .footer-dark h5 {
        color: #fff;
        font-weight: 700;
        margin-bottom: 25px;
        font-family: 'Outfit', sans-serif;
        text-transform: uppercase;
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    /* Footer Links */
    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #888;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .footer-links a:hover {
        color: #dc3545;
        transform: translateX(5px);
    }

    /* Contact Items */
    .footer-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 12px;
        color: #aaa;
    }

    .footer-contact-item i {
        color: #dc3545;
        font-size: 18px;
        background: rgba(220, 53, 69, 0.1);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-top: -5px;
    }

    /* Social Icons */
    .social-icons {
        display: flex;
        gap: 10px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        background: #222;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s;
        text-decoration: none;
    }

    .social-btn:hover {
        background: #dc3545;
        color: #fff;
        transform: translateY(-3px);
    }

    /* Newsletter Widget */
    .footer-newsletter {
        background: #1a1a1a;
        padding: 25px;
        border-radius: 12px;
        border: 1px solid #333;
    }

    .newsletter-form .input-group {
        background: #000;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 4px;
    }

    .newsletter-form .form-control {
        background: transparent;
        border: none;
        color: #fff;
    }

    .newsletter-form .btn {
        background: #dc3545;
        color: #fff;
    }

    .newsletter-form .btn:hover {
        background: #bb2d3b;
    }

    /* Copyright */
    .footer-bottom {
        border-top: 1px solid #222;
        padding-top: 25px;
        margin-top: 50px;
        text-align: center;
        font-size: 13px;
        color: #666;
    }

    .policy-links {
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        gap: 20px;
        font-weight: 600;
        color: #555;
        text-transform: uppercase;
    }

    .company-name {
        font-weight: 700;
        color: #333;
        margin-bottom: 5px;
    }

    .footer-bottom p {
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.5;
    }

    .italic {
        font-style: italic;
    }

    /* Responsive Footer */
    @media (max-width: 992px) {

        .footer-top-row,
        .footer-middle-row {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 768px) {

        .footer-top-row,
        .footer-middle-row {
            grid-template-columns: 1fr;
        }

        .policy-links {
            flex-direction: column;
            gap: 10px;
        }
    }

    /* Responsive */
    @media (max-width: 992px) {

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

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

        .logo a {
            font-size: 20px;
        }

        .main-header .container {
            flex-direction: column;
            gap: 15px;
        }

        .search-bar {
            margin: 0;
            width: 100%;
            max-width: 100%;
        }

        .hero-content h1 {
            font-size: 28px;
        }

        .app-feature-section .container {
            flex-direction: column;
            text-align: center;
        }

        .app-content {
            padding-right: 0;
            margin-bottom: 30px;
        }

        .feature-list li {
            justify-content: center;
        }

    }

    /* --- NEW HOMEPAGE STYLES (FINANCIAL PRO) --- */

    /* 1. Ticker Tape */
    .ticker-wrap {
        width: 100%;
        background-color: #0d1b2a;
        /* Deep financial blue */
        color: #fff;
        overflow: hidden;
        height: 40px;
        line-height: 40px;
        border-bottom: 1px solid #1e293b;
    }

    .ticker {
        display: inline-block;
        white-space: nowrap;
        animation: ticker 30s linear infinite;
    }

    .ticker-item {
        display: inline-block;
        padding: 0 2rem;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .ticker-item .value {
        font-family: 'Roboto Mono', monospace;
        margin-left: 5px;
    }

    .ticker-item .change-up {
        color: #00e676;
    }

    /* Bright Green */
    .ticker-item .change-down {
        color: #ff5252;
    }

    /* Bright Red */

    @keyframes ticker {
        0% {
            transform: translate3d(100%, 0, 0);
        }

        100% {
            transform: translate3d(-100%, 0, 0);
        }
    }

    /* 2. Modern Hero Section (Glassmorphism) */
    .hero-modern {
        position: relative;
        background-color: #0f172a;
        padding: 100px 0;
        /* Increase spacing */
        overflow: hidden;
        color: #fff;
        /* Add a subtle mesh gradient background */
        background-image:
            radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
            radial-gradient(at 100% 0%, rgba(234, 179, 8, 0.1) 0px, transparent 50%),
            linear-gradient(135deg, #0f172a 0%, #020617 100%);
    }

    /* Decorative Overlay Pattern */
    .hero-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 1;
    }

    /* Glow Effect */
    .hero-modern::after {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
        filter: blur(60px);
        z-index: 1;
        pointer-events: none;
    }

    .hero-modern .container {
        position: relative;
        z-index: 2;
        /* Content above overlay */
    }

    .hero-modern h1 {
        font-size: 4rem;
        /* Larger font */
        font-weight: 800;
        letter-spacing: -1px;
        margin-bottom: 1.5rem;
        line-height: 1.1;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        /* Better legibility */
    }

    .hero-modern .lead {
        font-size: 1.25rem;
        color: #cbd5e1;
        margin-bottom: 3rem;
        font-weight: 300;
        max-width: 90%;
    }

    .market-card-3d {
        background: rgba(30, 41, 59, 0.7);
        /* Darker glass base */
        backdrop-filter: blur(20px);
        /* Increased blur */
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06),
            0 20px 25px -5px rgba(0, 0, 0, 0.2),
            /* Deep shadow */
            inset 0 0 20px rgba(255, 255, 255, 0.05);
        /* Inner glow */
        border-radius: 24px;
        padding: 50px;
        /* Increased padding from 30px */
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .market-card-3d:hover {
        transform: translateY(-8px);
        /* More movement */
        box-shadow:
            0 25px 30px -5px rgba(0, 0, 0, 0.3),
            0 15px 15px -5px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* 3. Feature Grid */
    .feature-grid-section {
        padding: 100px 0;
        background-color: var(--bg-body);
    }

    .feature-box {
        padding: 40px 30px;
        border-radius: 20px;
        background: var(--bg-surface);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
    }

    .feature-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        margin-bottom: 25px;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
        color: #2563eb;
    }

    /* 4. CTA Section */
    .cta-section {
        position: relative;
        background: #0f172a;
        padding: 80px 0;
        color: #fff;
        text-align: center;
        overflow: hidden;
    }

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
        opacity: 0.9;
        z-index: 1;
    }

    .cta-section .container {
        position: relative;
        z-index: 2;
    }

    /* DARK MODE OVERRIDES */
    body.dark-mode {
        --color-light: #0f172a;
        /* Main Background */
        --color-white: #1e293b;
        /* Surface/Card Background */
        --color-text: #e2e8f0;
        /* Main Text */
        --color-border: #334155;
        /* Borders */
        --color-dark: #f8fafc;
        /* Inverse Dark (now Light) */

        /* Adjust specific elements */
    }

    /* Fix for specific elements in Dark Mode */
    body.dark-mode .header,
    body.dark-mode .top-bar,
    body.dark-mode .main-header {
        background-color: var(--color-white);
        color: var(--color-text);
        border-bottom-color: var(--color-border);
    }

    body.dark-mode .search-bar {
        background-color: #0f172a;
        /* Darker input bg */
        border-color: #475569;
    }

    body.dark-mode .search-bar input {
        color: #fff;
    }

    body.dark-mode .search-category {
        border-right-color: #475569;
        color: #94a3b8;
    }

    /* Ensure links/icons are visible */
    body.dark-mode a {
        color: inherit;
    }

    body.dark-mode .text-dark {
        color: #f1f5f9 !important;
    }

    body.dark-mode .bg-light {
        background-color: #334155 !important;
    }

    body.dark-mode .dropdown-menu {
        background-color: #1e293b;
        border-color: #334155;
    }

    body.dark-mode .dropdown-item {
        color: #cbd5e1;
    }

    body.dark-mode .dropdown-item:hover {
        background-color: #334155;
        color: #fff;
    }

    /* Fix Logo Text in Dark Mode */
    body.dark-mode .logo .text-dark {
        color: #fff !important;
    }

    /* =========================================
   NEW: SKELETON LOADING ANIMATION
   ========================================= */
    .skeleton {
        background-color: #e0e0e0;
        border-radius: 4px;
        position: relative;
        overflow: hidden;
        display: inline-block;
        width: 100%;
    }

    .skeleton::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: skeleton-loading 1.5s infinite;
    }

    body.dark-mode .skeleton {
        background-color: #334155;
    }

    body.dark-mode .skeleton::after {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    @keyframes skeleton-loading {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }

    /* =========================================
   NEW: MOBILE OPTIMIZATIONS
   ========================================= */
    @media (max-width: 768px) {

        /* Disable heavy blur on mobile for performance */
        .market-card-3d {
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            background: rgba(15, 23, 42, 0.95) !important;
            /* Solid fallback */
            transform: none !important;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
        }

        .hero-modern .display-3 {
            font-size: 2.5rem;
            /* Smaller hero text */
        }

        .hero-modern::after {
            display: none;
            /* Remove heavy glow effect */
        }
    }

    /* =========================================
   NEW: HOME PAGE UTILITIES (Refactored from Inline)
   ========================================= */
    .z-relative {
        position: relative;
        z-index: 2;
    }

    .glass-panel-light {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .section-bg-light {
        background: #f8f9fa;
    }

    .icon-box-circle {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-gradient-bg {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        color: white !important;
    }

    /* Moved from home.php internal style block */
    .glass-card {
        background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .glass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
        border-top-color: rgba(59, 130, 246, 0.3);
    }

    .text-gradient-gold {
        background: linear-gradient(135deg, #fff 30%, #ffd700 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .floating-img {
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0% {
            transform: translateY(0px) scale(1.3) translateX(10%);
        }

        50% {
            transform: translateY(-15px) scale(1.3) translateX(10%);
        }

        100% {
            transform: translateY(0px) scale(1.3) translateX(10%);
        }
    }

    .signal-bubble {
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-left: 3px solid #6c757d;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 12px;
        position: relative;
        transition: background 0.2s;
    }
}

.signal-bubble:hover {
    background: rgba(30, 41, 59, 0.9);
}

.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Sidebar Enhancements */
.sidebar-logo {
    transition: transform 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-section-header {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 20px 25px 8px;
    /* Spacing for visual separation */
    margin-top: 10px;
    margin-bottom: 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle separator above section */
    position: relative;
}

/* --- Text Utilities --- */
.text-main {
    color: var(--color-text);
}

.text-sub {
    color: #64748b;
}

body.dark-mode .text-sub {
    color: #94a3b8;
}

.hover-text-main:hover {
    color: var(--color-text) !important;
}

.transition {
    transition: all 0.2s;
}

/* =========================================
   NEW COMPONENTS (Skeleton, Toast, BottomNav, Transitions)
   ========================================= */

/* --- Glass Panel (Restored for Modals/Cards) --- */
.glass-panel {
    background: #ffffff !important;
    /* Force solid white to fix transparency glitch */
    backdrop-filter: none;
    /* Disable blur to improve performance/compatibility */
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* --- Simple Modal Content (No Glass) --- */
/* --- Simple Modal Content (No Glass) --- */
/* --- Simple Modal Content (Theme Only) --- */
.modal-content-simple {
    background-color: #ffffff !important;
    border: none;
    /* Removed structural overrides: max-height, overflow */
}

body.dark-mode .modal-content-simple {
    background-color: #0f172a !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    /* Removed structural overrides: max-height, overflow */
}

/* --- Safe Theme Modal (Color Only) --- */
.theme-modal-content {
    background-color: #ffffff !important;
    color: #333;
}

/* Handle BOTH class and data-attribute for Dark Mode */
body.dark-mode .theme-modal-content,
[data-theme="dark"] .theme-modal-content {
    background-color: #0f172a !important;
    /* Slate 900 */
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* GLOBAL FIX: Ensure Bootstrap Scrollable Modals work on all devices */
.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
    /* Force scroll */
    -webkit-overflow-scrolling: touch !important;
    /* iOS Smooth Scroll */
    padding-bottom: 100px !important;
    /* Clear Bottom Nav */
}

/* Remove old conflicting classes */
.modal-content-simple {
    display: none;
}

/* Force solid white for light mode modal as well */
#newsReaderModal .modal-content,
#legalModal .modal-content,
#upgradeVipModal .modal-content {
    opacity: 1 !important;
}

/* FIX: Ensure Modal BODY has no constraints blocking Bootstrap */
#newsReaderModal .modal-body,
#legalModal .modal-body {
    /* Removed: display, overflow-y, max-height, touch-action */
    /* Only keep padding */
    padding-bottom: 80px !important;
}

/* Scrollbar styling for News Modal */
#newsReaderModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#newsReaderModal .modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

body.dark-mode #newsReaderModal .modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

.shadow-glass {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

body:not(.dark-mode) .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-rect {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Toast Notifications --- */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-glass {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #dc3545;
    /* Primary */
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

body:not(.dark-mode) .toast-glass {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #333;
}

.toast-glass.success {
    border-left-color: #10B981;
}

.toast-glass.error {
    border-left-color: #EF4444;
}

.toast-glass.info {
    border-left-color: #3B82F6;
}

.toast-glass i {
    font-size: 1.25rem;
}

.toast-glass .toast-content {
    flex-grow: 1;
}

.toast-glass .toast-title {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-glass .toast-msg {
    font-size: 0.85rem;
    opacity: 0.8;
}

.toast-glass .btn-close-toast {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
}

.toast-glass .btn-close-toast:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* --- Bottom Navigation (Mobile Only) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    /* Ensure on top of everything */
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) 0;
    /* Safe Area for iPhone X+ */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

body:not(.dark-mode) .bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    color: #999;
    text-align: center;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item.active {
    color: #FF9F1C;
    /* Orange active color */
    font-weight: 600;
}

.bottom-nav-item.active i {
    transform: translateY(-4px);
    color: #FF9F1C;
    filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.4));
}

@media (max-width: 991px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    footer {
        padding-bottom: 90px !important;
    }
}

/* --- Page Transitions --- */
body {
    opacity: 1;
    /* Default visible to prevent lag/blank screen */
    transition: opacity 0.3s ease-in-out;
}

body.page-loaded {
    opacity: 1;
}

body.page-exiting {
    opacity: 0;
    transform: scale(0.99);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}