/*  general_nav.css
    Purpose        Global navigation bar, language-switcher, hero-section,
                   TradingView ticker, cookie banner, footer, session/expiry
                   modals – shared by every public & authenticated page.
    Key features   ▸ Desktop / tablet / mobile nav variants (hamburger, dropdowns)
                   ▸ Dark- & light-mode colour tokens
                   ▸ Sticky TradingView price-ticker bar
                   ▸ Responsive footer with app-store badges
                   ▸ Cookie-consent banner & settings panel
                   ▸ Session-timeout + expiry-notice modals
    Depends on     Font Awesome, common-scripts.js (dynamic insertions),
                   notifications_frontend.js, help-video.js

    Last updated   31 Jul 2025
*/


/*/* ========================================
   General Styles
======================================== */

html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin-top: 40px;
}

body.dark-mode {
    background-color: #000;
    color: #fff;
}

body.light-mode {
    background-color: #fff;
    color: #808080;
}


body.dark-mode .light-ticker {
    display: none;
}

body.dark-mode .dark-ticker {
    display: block;
}

body.light-mode .dark-ticker {
    display: none;
}

body.light-mode .light-ticker {
    display: block;
}


*, *::before, *::after {
    box-sizing: border-box;
}





/* ========================================
   Desktop Navbar Styles
======================================== */

/* Hide the mobile navbar by default */
.mobile-navbar {
    display: none;
}

/* Show mobile navbar only for screens smaller than 768px */
@media (max-width: 768px) {
    .mobile-navbar {
        display: flex;
    }

    .desktop-navbar {
        display: none;
    }
}

/* Default desktop navbar display */
.desktop-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 30px !important;
    position: static;
    top: 0;
    width: 100%;
    z-index: 900;
    box-sizing: border-box;
}


.desktop-navbar .nav-left {
    display: flex;
    align-items: center;
    margin-left: 40px;
    position: absolute;
    left: 0;
}

.desktop-navbar .nav-center {
    display: flex;
    justify-content: center;
    gap: 35px; /* Adjusted gap */
    flex-grow: 1;
    align-items: center;
    z-index: 4000;
    width: 50%; /* Adjusted width using percentage */
    max-width: 700px; /* Maximum width */
}

.desktop-navbar .nav-center a {
    margin: 0;
    text-decoration: none;
    color: inherit;
    font-size: 16px;
}

.desktop-navbar .nav-center a:hover {
    color: #4EA1D3;
}

.desktop-navbar .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 50px;
    position: absolute;
    right: 0;
    gap: 10px;
}














.desktop-navbar .logo {
    height: 60px;
    margin-right: 20px;
}

.desktop-navbar .nav-right a,
.desktop-navbar .nav-right button,
.desktop-navbar .theme-switch,
.desktop-navbar .custom-language-switcher {
    margin-left: 10px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: inherit;
}



.desktop-navbar .plans-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7px 20px;
    background: #4EA1D3;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-right: 20px;
    white-space: nowrap;
    width: 150px;
    height: 40px;
    text-align: center;
}

a.dropbtn.sign-in-button {
    margin-right: -10px !important;
}

body.light-mode .desktop-navbar .plans-button,
body.dark-mode .desktop-navbar .plans-button {
    background: #4EA1D3;
    color: #fff;
}

.desktop-navbar .plans-button:hover {
    background: #3b8bb1 !important;
    color: #fff;
}

.go-to-dashboard {
    font-size: 14px !important;
}

.help-video-icon {
    font-size: 24px !important;
    color: #white !important; /* Default color */
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    /* gap: 5px; */
    transition: color 0.3s ease; /* Smooth transition effect */
}

.help-video-icon:hover {
    color: #3b8bb1 !important; /* Change color on hover */
}

/* Dropdown Content Icon Styling */
.dropdown-content a i {
    margin-right: 8px; /* Space between icon and text */
}

/* Modal Styling */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
}

/* Modal Content */
.video-modal-content {
    margin: 10% auto; /* Slightly reduced top margin */
    padding: 5px; /* Reduced padding for narrower border */
    width: 80%; /* Adjusted width */
    max-width: 800px; /* Smaller max width for a more compact look */
    position: relative;
    background-color: #ccc; /* Background color for the modal box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow */
    border-radius: 8px; /* Subtle rounded corners */
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 5px; /* Adjusted positioning */
    right: 15px; /* Adjusted positioning */
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

/* Iframe Styling */
iframe {
    width: 100%; /* Full width within modal content */
    height: 35px; /* Set consistent height */
    border-radius: 6px; /* Slightly rounded corners for iframe */
    border: none; /* Remove default iframe border */
}





.desktop-navbar .nav-right .cash-coffee-image {
    height: 32px; /* Adjust to desired size */
    width: auto;
}

.nav-right.logged-in .cash-coffee-link {
    margin-right: 40px !important;
}

.nav-right.logged-out .cash-coffee-link,
img.cash-coffee-image-logged-out {
    margin-right: -10px !important;
}



/* ========================================
   Tablet Navbar Styles (Tablets Only)
======================================== */

@media (min-width: 769px) and (max-width: 1024px) { /* Apply to tablets only */
    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .desktop-navbar {
        display: none;
    }

    .mobile-navbar {
        background-color: black;
        position: sticky;
        top: 0;
        z-index: 3000;
        box-sizing: border-box;
        width: 100%;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hamburger-menu {
        background: none;
        border: none;
        color: inherit;
        font-size: 24px;
        cursor: pointer;
        z-index: 3001;
        padding-left: 10px;
        padding-bottom: 8px;
    }

    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3000;
    }

    .logo {
        height: 50px; /* Slightly larger logo for tablets */
        margin: 0;
    }

    .mobile-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1e1e1e;
        flex-direction: column;
        z-index: 3001;
        padding: 0;
        max-height: 80vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .mobile-dropdown.active {
        display: flex;
    }

    .mobile-dropdown .menu-content {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .mobile-dropdown .menu-content a {
        color: white;
        text-decoration: none;
        padding: 15px 25px; /* Increased padding for larger screens */
        text-align: left;
        display: block;
    }

    .mobile-dropdown .menu-content a:hover {
        color: #4EA1D3;
    }

    .mobile-dropdown .dropdown-content {
        display: none;
        position: relative;
        margin-left: 15px;
        background-color: #1e1e1e;
    }

    .mobile-dropdown .dropdown.active .dropdown-content {
        display: block;
    }

    /* Nested submenu styles */
    .mobile-dropdown .dropdown-submenu {
        position: relative;
    }

    .mobile-dropdown .dropdown-submenu .submenu-btn {
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-btn:hover {
        color: #4EA1D3;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content {
        display: none;
        position: relative;
        margin-left: 15px;
        background-color: #1e1e1e;
    }

    .mobile-dropdown .dropdown-submenu.active .submenu-content {
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content a {
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content a:hover {
        color: #4EA1D3;
    }

    /* Arrow indicators */
    .mobile-dropdown .dropdown .dropbtn::after,
    .mobile-dropdown .dropdown-submenu .submenu-btn::after {
        content: ' ▼';
        font-size: 12px;
        margin-left: 8px;
        transition: transform 0.3s;
    }

    .mobile-dropdown .dropdown.active .dropbtn::after,
    .mobile-dropdown .dropdown-submenu.active .submenu-btn::after {
        transform: rotate(180deg);
    }
    /* Nested submenu styles for mobile */
    .mobile-dropdown .dropdown-submenu {
        position: relative;
    }

    .mobile-dropdown .dropdown-submenu .submenu-btn {
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-btn:hover {
        color: #4EA1D3;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content {
        display: none;
        position: relative;
        margin-left: 15px;
        background-color: #1e1e1e;
    }

    .mobile-dropdown .dropdown-submenu.active .submenu-content {
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content a {
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content a:hover {
        color: #4EA1D3;
    }

    /* Arrow indicator for submenu */
    .mobile-dropdown .dropdown-submenu .submenu-btn::after {
        content: ' ▼';
        font-size: 12px;
        margin-left: 8px;
        transition: transform 0.3s;
    }

    .mobile-dropdown .dropdown-submenu.active .submenu-btn::after {
        transform: rotate(180deg);
    }

    /* Dropdown button arrow indicator */
    .mobile-dropdown .dropdown .dropbtn::after {
        content: ' ▼';
        font-size: 12px;
        margin-left: 8px;
        transition: transform 0.3s;
    }

    /* Rotate arrow on dropdown open */
    .mobile-dropdown .dropdown:hover .dropbtn::after {
        transform: rotate(180deg);
    }
}

/* Tablet menu for both portrait and landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait),
       (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .desktop-navbar {
        display: none;
    }

    .mobile-navbar {
        display: flex;
        justify-content: space-between;
    }

    .logo-container {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .logo-container {
        left: 70%; /* Adjust logo position for portrait */
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .logo-container {
        left: 60%; /* Adjust logo position for landscape */
    }
}


/* Tablet Help Icon */
.tablet-help-video-icon {
    font-size: 20px; /* Slightly larger icon for tablets */
    color: white;
    margin-left: auto; /* Push the icon to the far right */
    display: inline-flex;
    align-items: center;
    text-decoration: none; /* Remove underline */
    z-index: 3001; /* Ensure it's above other elements */
    position: relative;
}


/* Adjust iframe container for portrait mode */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    #help-video-iframe {
        width: 70vw;
        height: 40vw;
    }
}

/* Adjust iframe container for landscape mode */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    #help-video-iframe {
        width: 75vw;
        height: 42vw;
    }
}









/* ========================================
   Mobile Navbar Styles (Phones Only)
======================================== */

@media (max-width: 932px) { /* Apply to phones only */
    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .desktop-navbar {
        display: none;
    }

    .mobile-navbar {
        background-color: black;
        position: sticky;
        top: 0;
        z-index: 3000;
        box-sizing: border-box;
        width: 100%;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hamburger-menu {
        background: none;
        border: none;
        color: inherit;
        font-size: 24px;
        cursor: pointer;
        z-index: 3001;
        padding-left: 10px;
        padding-bottom: 8px;
    }

    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3000;
    }

    .logo {
        height: 40px;
        margin: 0;
    }

    .mobile-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1e1e1e;
        flex-direction: column;
        z-index: 3001;
        padding: 0;
        max-height: 80vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .mobile-dropdown.active {
        display: flex;
    }

    .mobile-dropdown .menu-content {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .mobile-dropdown .menu-content a {
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        text-align: left;
        display: block;
    }

    .mobile-dropdown .menu-content a:hover {
        color: #4EA1D3;
    }

    .mobile-dropdown .dropdown-content {
        display: none;
        position: relative;
        margin-left: 15px;
        background-color: #1e1e1e;
    }

    .mobile-dropdown .dropdown.active .dropdown-content {
        display: block;
    }

    /* Nested submenu styles */
    .mobile-dropdown .dropdown-submenu {
        position: relative;
    }

    .mobile-dropdown .dropdown-submenu .submenu-btn {
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-btn:hover {
        color: #4EA1D3;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content {
        display: none;
        position: relative;
        margin-left: 15px;
        background-color: #1e1e1e;
    }

    .mobile-dropdown .dropdown-submenu.active .submenu-content {
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content a {
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
    }

    .mobile-dropdown .dropdown-submenu .submenu-content a:hover {
        color: #4EA1D3;
    }

    /* Arrow indicators */
    .mobile-dropdown .dropdown .dropbtn::after,
    .mobile-dropdown .dropdown-submenu .submenu-btn::after {
        content: ' ▼';
        font-size: 12px;
        margin-left: 8px;
        transition: transform 0.3s;
    }

    .mobile-dropdown .dropdown.active .dropbtn::after,
    .mobile-dropdown .dropdown-submenu.active .submenu-btn::after {
        transform: rotate(180deg);
    }
}

/* Mobile menu for both portrait and landscape */
@media (max-width: 768px) and (orientation: portrait),
       (max-width: 768px) and (orientation: landscape) {
    .desktop-navbar {
        display: none;
    }

    .mobile-navbar {
        display: flex;
        justify-content: space-between;
    }

    .logo-container {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 932px) and (orientation: portrait) {
    .logo-container {
        left: 75%;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .logo-container {
        left: 64%;
    }
}

/* Mobile Help Icon */
.mobile-help-video-icon {
    font-size: 20px;
    color: white;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 3001;
    position: relative;
    padding-right: 10px;
    padding-top: 4px;
}

/* Adjust iframe container for portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    #help-video-iframe {
        width: 85vw;
        height: 48vw;
    }
}

/* Adjust position for mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-help-video-icon {
        margin-right: 10px;
    }
}







/* ========================================
   Language Switcher and Dropdown Styles
======================================== */

.desktop-navbar .custom-language-switcher {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    margin-right: -20px;
}

.desktop-navbar .custom-language-switcher i {
    margin-right: 10px;
    font-size: 20px;
}

.desktop-navbar #selected-language {
    font-weight: bold;
}

.desktop-navbar .theme-switch {
    margin-left: 270px;
}

.desktop-navbar .nav-center .dropdown {
    position: relative;
    display: inline-block;
}

.desktop-navbar .nav-center .dropbtn {
    background-color: inherit;
    color: inherit;
    padding: 14px 0px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.desktop-navbar .nav-center .dropdown-content {
    display: none;
    position: absolute;
    min-width: 250px;
    top: 100%;
    left: 0;
    z-index: 20;
    margin-top: 15px;
    flex-direction: column;
    border-radius: 5px;
    padding: 10px; 
    background-color: #2c3e50; /* Add background color */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
    color: #ffffff; /* Optional: Ensure text contrast */
}

/* Adjust dropdown position in nav-center to remove hover gap */
.desktop-navbar .nav-center .dropdown-content {
  top: calc(100% - 10px); /* move dropdown 10px closer to trigger */
}


.desktop-navbar .nav-center .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: transparent;
}

.desktop-navbar .nav-center .dropdown-content a:hover {
    color: #ffffff;
    background-color: #4EA1D3;
}

.desktop-navbar .nav-center .dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

/* Nested submenu styles for Tools */
.desktop-navbar .nav-center .dropdown-submenu {
    position: relative;
}

.desktop-navbar .nav-center .dropdown-submenu .submenu-btn {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.desktop-navbar .nav-center .dropdown-submenu .submenu-btn:hover {
    background-color: #4EA1D3;
    color: #ffffff;
}

.desktop-navbar .nav-center .dropdown-submenu .submenu-content {
    display: none;
    position: absolute;
    left: 100%; /* Positions submenu to the right of parent */
    top: 0;
    min-width: 250px;
    background-color: #2c3e50;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border-radius: 5px;
    padding: 10px;
}

.desktop-navbar .nav-center .dropdown-submenu:hover .submenu-content {
    display: flex;
    flex-direction: column;
}

.desktop-navbar .nav-center .dropdown-submenu .submenu-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.desktop-navbar .nav-center .dropdown-submenu .submenu-content a:hover {
    background-color: #4EA1D3;
    color: #ffffff;
}

.desktop-navbar .nav-right .dropdown {
    position: relative;
    display: inline-block;
}

.desktop-navbar .nav-right .dropdown-content {
    display: none;
    position: absolute;
    min-width: 250px;
    top: calc(100% - 10px);
    left: 125%;
    transform: translateX(-50%);
    z-index: 20;
    border-radius: 5px;
    padding: 10px;
    flex-direction: column;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #2c3e50; /* Add background color */
    color: #ffffff; /* Add text color for contrast */
}

.desktop-navbar .nav-right .dropdown:hover .dropdown-content {
    display: flex;
}

.desktop-navbar .dropbtn {
    background-color: inherit;
    color: inherit;
    font-size: 16px;
    border: none;
    cursor: pointer;
    padding: 14px 16px;
}

.desktop-navbar .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.desktop-navbar .dropdown-content a:hover {
    color: #ffffff;
    background-color: #4EA1D3;
}

.desktop-navbar .sign-in-button i {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.desktop-navbar .sign-in-button i:hover {
    background-color: #4EA1D3;
    color: white;
    cursor: pointer;
}


/* ========================================
   Footer Styles
======================================== */


.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 12px;
    z-index: 1000;
    padding: 40px 0 20px 0;
    padding-bottom: 50px;
}


body.light-mode .footer {
    background-color: rgba(255, 255, 255, 0.8);
    color: #808080;
}


.footer-line {
    width: 80%;
    height: 1px;
    background-color: #575757;
    margin: 10px auto -20px auto;
}

.footer-line-top {
    margin-bottom: 10px !important;
}


.footer-flexbox {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}


.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}


.footer-column h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #fff;
}

body.light-mode .footer-column h3 {
    color: #808080;
}


.footer-column a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-column a:hover {
    color: #4ea1d3;
}

body.light-mode .footer-column a {
    color: #808080;
}

body.light-mode .footer-column a:hover {
    color: #4ea1d3;
}


.social-media-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.social-media-icons a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-media-icons a:hover {
    color: #4ea1d3;
}

body.light-mode .social-media-icons a {
    color: #808080;
}

body.light-mode .social-media-icons a:hover {
    color: #4ea1d3;
}


.footer-copyright {
    margin-top: 40px;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

/* ========================================
   Responsive Footer Adjustments
======================================== */


/*@media (max-width: 1024px) {
    .footer-flexbox {
        flex-wrap: wrap;
        gap: 20px;
        padding: 10px 0;
    }
    
    .footer-column {
        width: 45%;
        align-items:
    }

    .social-media-icons {
        justify-content: flex-start;
    }
}*/


@media (max-width: 768px) {
    .footer-flexbox {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .footer-column {
        width: 100%;
        align-items: center;
        margin-bottom: 20px;
    }

    .social-media-icons {
        justify-content: center;
        gap: 10px;
    }

    .footer-column h3 {
        font-size: 18px;
    }

    .footer-column a {
        font-size: 14px;
    }

  .footer-flexbox {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        max-width: 1200px;
        margin: 0 auto;
        flex-wrap: nowrap;
    }
}


/* ========================================
   TradingView Ticker Styles
======================================== */

/* Ticker Container */
.tradingview-widget-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 10px !important;
    padding: 0;
    background-color: black !important; /* Force black background */
}

.tradingview-widget-container__widget {
    height: 10px !important; /* Ensure it matches the container height */
    background-color: black !important; /* Override TradingView's inner styles */
}

.tradingview-widget-container * {
    background-color: black !important; /* Ensure all child elements respect the black background */
}

/* Adjust height of ticker */
.tradingview-widget-container__widget {
    height: 30px;
}


/* ========================================
   Hero Section Styles
======================================== */


.hero-section {
    margin-top: 0;
    padding-top: 40px;
}


.hero-section .button, .widget-button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #ccc;
    text-align: center;
    vertical-align: middle;
    position: relative;
}


.button-container {
    position: relative;
    z-index: 1;
}



/* ========================================
   Signup Modal Styles
======================================== */

/* Modal Container */
.signup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Transparent background */
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.signup-modal-content {
    background-color: #4EA1D3; /* Correct background color */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

/* Close Button */
.signup-close-btn {
    color: #fff; /* White text for the close button */
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.signup-close-btn:hover,
.signup-close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Modal OK Button */
.signup-modal-button {
    background-color: #fff; /* White OK button */
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.signup-modal-button:hover {
    background-color: #e0e0e0; /* Light gray hover effect */
}


  
/* ========================================
   Session Timeout Modal Styles
======================================== */


#sessionTimeoutModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    display: flex;
}


#sessionTimeoutModal .modal-content {
    background-color: #4EA1D3;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    width: 400px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

#sessionCountdown {
    font-weight: bold;
}

#session-modal-footer {
    display: flex;
    justify-content: center;
}


.session-modal-button {
    background-color: #fff;
    color: #333;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
}

.session-modal-button:hover {
    background-color: #f0f0f0;
}


body.light-mode #sessionTimeoutModal .modal-content {
    background-color: #4EA1D3;
    color: #fff;
}

body.light-mode #session-modal-footer .session-modal-button {
    background-color: #fff;
    color: #333;
}

body.light-mode #session-modal-footer .session-modal-button:hover {
    background-color: #f0f0f0;
}


/* Footer Flexbox Adjustments for Desktop */
.footer-flexbox {
    display: flex;
    justify-content: center; /* Center the columns */
    align-items: flex-start;
    gap: 80px !important; /* Reduce the gap between columns */
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap; /* Ensure columns stay in a single row */
}

/* Footer Styles for App Buttons */
.footer-column .app-btn {
    display: flex;
    justify-content: center;
    margin: 15px 0; /* Space between the app buttons */
}

.footer-column .app-btn img {
    width: 90px; /* Dimensions for desktop */
    height: auto;
    max-height: 45px; /* Ensure proportionate height */
    object-fit: contain; /* Maintain aspect ratio */
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth hover effect */
}

/* Hover Effects for App Buttons */
.footer-column .app-btn img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    filter: brightness(1.2); /* Brighten image on hover */
}

/* Responsive Adjustments for Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .footer-flexbox {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 20px !important; /* Force 20px gap between columns */
        max-width: 90%; /* Bring columns closer together */
        margin: 0 auto; /* Center the flexbox on the page */
    }

    .footer-column {
        width: 100%; /* Full-width columns for portrait */
        align-items: center;
        margin-bottom: 10px; /* Adjust bottom margin */
    }

    /* App Buttons Adjustments for Mobile Portrait */
    .footer-column .app-btn {
        display: flex;
        justify-content: space-evenly; /* Space buttons evenly */
        margin: 10px auto; /* Center spacing */
        gap: 15px; /* Space between the two buttons */
    }

    .footer-column .app-btn img {
        width: 90px; /* Larger size for better visibility */
        max-height: 50px; /* Increased height for proportion */
    }
}

/* Footer Flexbox for Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .footer-flexbox {
        flex-direction: row;              /* Keep columns in a single row */
        justify-content: space-around;    /* Distribute columns evenly */
        align-items: flex-start;
        padding: 10px 0;
        gap: 10px !important;                        /* Smaller gap between columns */
    }

    .footer-column {
        flex: 1 1 25%;                    /* Four equal-width columns */
        display: flex;
        flex-direction: column;           /* Stack each column’s content vertically */
        align-items: center;              /* Center content within each column */
        text-align: center;
        min-width: 0;                     /* Prevent overflow */
        padding: 0 5px;                   /* Small horizontal padding */
    }

    /* Reduce heading and link font sizes so they fit on one line */
    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer-column a {
        font-size: 12px;
        white-space: nowrap;              /* Prevent links from wrapping */
        margin-bottom: 4px;
    }

    .footer-line {
        display: none;                    /* Hide dividing lines to save vertical space */
    }

    /* App buttons (if present) stack vertically but stay centered */
    .footer-column .app-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;                         /* Space between stacked buttons */
        margin: 10px auto;
    }

    .footer-column .app-btn img {
        width: 80px;                      /* Adjust icon size for landscape */
        height: auto;
        max-height: 45px;
    }

    /* Reduce the copyright font size */
    .footer-copyright {
        font-size: 12px;
        margin-top: 20px;
    }
}


.tooltip {
    background-color: #4EA1D3;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}


/* ========================================
   Cookie Banner (Updated for Site Styling)
======================================== */

/* Base Banner */
.cookie-banner {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    background: #2c3e50 !important;
    color: white;
    padding: 12px 20px;
    text-align: center;
    border-radius: 10px;
    z-index: 1000;
    display: none; /* Hide initially */
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    visibility: hidden; /* Ensure it is invisible */
    opacity: 0; /* Fully transparent */
    pointer-events: none; /* Prevent interactions */
}


.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}



/* Text */
.cookie-banner p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Cookie Banner Buttons Container */
.cookie-banner-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

/* Buttons */
.cookie-banner button {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background 0.3s ease;
    background: #4EA1D3;
    color: white;
}

/* Hover Effect for All Buttons */
.cookie-banner button:hover,
#save-cookie-settings:hover {
    background: #3b8bb1;
}

/* ========================================
   Cookie Settings Panel (Updated)
======================================== */
.cookie-settings {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: #2c3e50 !important; /* Updated background */
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    text-align: center;
}

/* Settings Panel Title */
.cookie-settings h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Checkbox Styling */
.cookie-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    margin-left: 50px;
    cursor: pointer;
}

/* Checkbox Custom Styling */
.cookie-settings input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    position: relative;
}

/* Checked Checkbox - Change Background */
.cookie-settings input[type="checkbox"]:checked {
    background-color: #4EA1D3;
    border-color: #4EA1D3;
}

/* Tick Mark */
.cookie-settings input[type="checkbox"]:checked::after {
    content: '✔';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* Buttons Styling in Settings Panel */
.cookie-settings .button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Save & Cancel Buttons */
#save-cookie-settings, #cancel-cookie-settings {
    background: #4EA1D3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Hover Effect for Buttons */
#save-cookie-settings:hover, #cancel-cookie-settings:hover {
    background: #3b8bb1;
}

/* Hide when not in use */
.hidden {
    display: none;
}

/* Dark Mode Adjustments */
body.dark-mode .cookie-banner,
body.dark-mode .cookie-settings {
    background: rgba(0, 0, 0, 0.95);
}

body.light-mode .cookie-banner,
body.light-mode .cookie-settings {
    background: rgba(255, 255, 255, 0.95);
    color: #222;
}



/* SESSION-EXPIRED MODAL (reuse your .loading-modal styles) */
#session-expired-modal {
  /* identical to .loading-modal styles */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border: 2px solid #cccccc;
  border-radius: 8px;
  z-index: 2000;
}
#session-expired-modal.hidden {
  display: none;
}
#session-expired-modal .loading-modal-content {
  /* identical to .loading-modal-content styles */
  background-color: #2c3e50;
  padding: 2rem;
  border-radius: 8px;
  color: #fff;
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#session-expired-modal #expired-text {
  display: block;
  min-height: 3.2em; /* for two wrapped lines */
}
@media (max-width: 430px) {
  #session-expired-modal .loading-modal-content {
    width: 90%;
    padding: 1.5rem;
    font-size: 0.95rem;
  }
  #session-expired-modal #expired-text {
    min-height: 2.5em;
  }
}




/* ── 1) Hide any element with class="hidden" ───────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── 2) Expiry Modal (identical to your session‐expired modal) ───────────────── */
#expiry-modal {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;                   /* center content */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);  /* semi‐transparent black overlay */
  z-index: 2000;                   /* above everything else */
}

#expiry-modal.hidden {
  display: none;
}

/* ── 3) Inner wrapper – reusing the same styles as .loading-modal-content ───── */
#expiry-modal .loading-modal-content {
  background-color: #2c3e50;       /* dark blue‐grey (same as session‐expired) */
  padding: 2rem;
  border-radius: 8px;
  color: #fff;                     /* white text */
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Override for smaller screens, if you need ───────────────────────────────── */
@media (max-width: 430px) {
  #expiry-modal .loading-modal-content {
    width: 90%;
    padding: 1.5rem;
    font-size: 0.95rem;
  }
}

/* ── 4) Close‐“×” button (reuse the same styling as session‐expired) ───────────── */
#expiry-modal .close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  color: #fff;               /* white “×” */
  cursor: pointer;
}

/* ── 5) “Do not show again” checkbox label color ─────────────────────────────── */
#expiry-modal label {
  font-size: 0.9rem;
}

/* ── 6) The “Close” button in .modal-actions (match session‐expired style) ───── */
#expiry-modal .modal-actions button {
  background: #4EA1D3;         /* same blue color */
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
