    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

    #shaking-coin-container.is-shaking {
        animation-iteration-count: infinite;
    }

    .coin-display {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-right: 15px;
        color: var(--text-color);
        font-weight: 600;
    }

    .coin-count-text {
        font-size: 14px;
    }

    .banner-coin {
        position: absolute;
        left: 50%;
        top: 50%;
        /* FIX: Drastically increased scale for proper visibility */
        transform: translate(-50%, -50%) scale(0.16);
    }

    body,
    html {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: "Poppins", Arial, Helvetica, sans-serif;
        overflow: hidden;
    }

    :root {
        --primary-color: #064950;
        --highlight-color: #f78f1e;
        --sidebar-color: #d1e7f2;
        --text-color: white;
        --modern-blue: #4A90E2;
        --modern-blue-dark: #357ABD;
    }

    .top-bar {
        display: flex;
        align-items: center;
        background-color: var(--primary-color);
        color: var(--text-color);
        padding: 0 15px;
        height: 28px;
        box-sizing: border-box;
        transition: background-color 0.3s;
    }

    .logo a {
        display: flex;
        align-items: center;
        margin-right: 10px;
    }

    .logo img {
        height: 23px;
        width: auto;
    }

    .main-nav {
        display: flex;
        height: 100%;
    }

    .dropdown {
        position: relative;
        display: inline-block;
        height: 100%;
    }

    .dropdown-btn {
        background-color: transparent;
        color: var(--text-color);
        padding: 0 10px;
        font-size: 13px;
        font-family: "Poppins", sans-serif;
        font-weight: 500;
        border: none;
        cursor: pointer;
        height: 100%;
        display: flex;
        align-items: center;
        transition: background-color 0.2s;
    }

    .dropdown:hover .dropdown-btn {
        background-color: var(--highlight-color);
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: var(--primary-color);
        min-width: 200px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
        z-index: 10;
        border-top: 3px solid var(--highlight-color);
        transition: background-color 0.3s;
    }

    .dropdown-content a {
        color: var(--text-color);
        padding: 6px 16px;
        text-decoration: none;
        display: block;
        font-size: 11px;
    }

    .dropdown-content a:hover {
        background-color: var(--highlight-color);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .search-container {
        display: flex;
        margin-left: 20px;
    }

    .search-container input[type="text"] {
        padding: 4px 10px;
        font-size: 12px;
        font-family: "Poppins", sans-serif;
        border: 1px solid transparent;
        border-radius: 14px 0 0 14px;
        height: 28px;
        box-sizing: border-box;
    }

    .search-container button {
        padding: 0 12px;
        background: var(--modern-blue);
        border: none;
        cursor: pointer;
        border-radius: 0 14px 14px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
    }

    .search-container button:hover {
        background: var(--modern-blue-dark);
    }

    .search-container button img {
        height: 14px;
        width: 14px;
    }

    .right-menu {
        margin-left: auto;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .right-menu .dropdown-btn {
        font-weight: bold;
    }

    .help-menu {
        color: var(--text-color);
        text-decoration: none;
        padding: 0 15px;
        font-size: 12px;
        font-weight: bold;
    }

    .help-menu:hover {
        text-decoration: underline;
    }

    .dropdown-arrow {
        font-size: 10px;
        margin-left: 5px;
        color: var(--text-color);
        transition: color 0.3s;
    }

    .theme-switch {
        position: relative;
        display: inline-block;
        width: 34px;
        height: 20px;
        margin: 0 10px;
    }

    .theme-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
    }

    input:checked+.slider {
        background-color: var(--highlight-color);
    }

    input:checked+.slider:before {
        transform: translateX(14px);
    }

    .slider.round {
        border-radius: 20px;
    }

    .slider.round:before {
        border-radius: 50%;
    }

    .main-container {
        display: flex;
        height: calc(100vh - 28px);
    }

    .left-sidebar {
        width: 125px;
        min-width: 125px;
        background-color: var(--sidebar-color);
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
        transition: background-color 0.3s;
    }

    .ad-item {
        margin-bottom: 20px;
        text-align: center;
    }

    .ad-item a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
        font-size: 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ad-item img {
        width: 100%;
        height: auto;
        max-width: 100px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        margin-bottom: 8px;
        transition: transform 0.2s;
    }

    .ad-item a:hover img {
        transform: scale(1.03);
    }

    #popular-section h3 {
        margin-top: 30px;
        border-bottom: 2px solid #aaa;
        padding-bottom: 5px;
        color: #333;
        font-size: 14px;
    }

    #popular-list {
        list-style-type: none;
        padding: 0;
    }

    #popular-list li {
        margin-bottom: 10px;
    }

    #popular-list a {
        text-decoration: underline;
        color: #0000EE;
        cursor: pointer;
        font-size: 11px;
    }

    #popular-list a:hover {
        color: #551A8B;
    }

    .content-area {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: background-color 0.3s;
    }

    #welcome-screen {
        font-size: 1.5em;
        color: #333;
        padding: 20px;
        transition: color 0.3s;
    }

    #welcome-screen img {
        height: 40px;
        vertical-align: middle;
        margin: 0 5px;
    }

    #welcome-screen .error-message {
        color: #D8000C;
        font-weight: bold;
    }

    #main-iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: none;
    }

    body.dark-mode {
        --primary-color: #1e2a31;
        --sidebar-color: #2a3f47;
        --text-color: #e0e0e0;
    }

    body.dark-mode .left-sidebar {
        background-color: var(--sidebar-color);
    }

    body.dark-mode .top-bar {
        background-color: var(--primary-color);
    }

    body.dark-mode .dropdown-content {
        background-color: var(--primary-color);
    }

    body.dark-mode .dropdown-content a {
        color: var(--text-color);
    }

    body.dark-mode .dropdown-btn {
        color: var(--text-color);
    }

    body.dark-mode .help-menu {
        color: var(--text-color);
    }

    body.dark-mode #popular-section h3,
    body.dark-mode .ad-item a {
        color: #f0f0f0;
        border-bottom-color: #555;
    }

    body.dark-mode #popular-list a {
        color: #8ab4f8;
    }

    body.dark-mode #popular-list a:hover {
        color: #a2c2fa;
    }

    body.dark-mode .content-area {
        background-color: #121212;
    }

    body.dark-mode #welcome-screen {
        color: #e0e0e0;
    }

    body.dark-mode .search-container input[type="text"] {
        background-color: #455a64;
        color: #e0e0e0;
        border: 1px solid #78909c;
    }