
    /* Base styles for the page-999betvn scope */
    .page-999betvn {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #333; /* Dark gray for text */
        line-height: 1.6;
        background-color: #f8f8f8; /* Light background */
        overflow-x: hidden;
    }

    /* Color Variables for Consistency and Contrast */
    :root {
        --page-999betvn__primary-color: #007bff; /* Blue for primary actions */
        --page-999betvn__secondary-color: #6c757d; /* Gray for secondary actions */
        --page-999betvn__accent-color: #ffc107; /* Yellow for highlights */
        --page-999betvn__text-color: #333333; /* Dark text for contrast */
        --page-999betvn__light-text-color: #ffffff; /* Light text on dark backgrounds */
        --page-999betvn__background-light: #ffffff;
        --page-999betvn__background-dark: #212529;
    }

    .page-999betvn__section-title,
    .page-999betvn__main-title,
    .page-999betvn__category-title,
    .page-999betvn__promo-title,
    .page-999betvn__feature-title,
    .page-999betvn__faq-question-text {
        color: var(--page-999betvn__text-color);
        text-align: center;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .page-999betvn__main-title {
        font-size: 2.5em;
        color: var(--page-999betvn__light-text-color);
        margin-bottom: 15px;
    }

    .page-999betvn__section-title {
        font-size: 2em;
        padding: 20px 15px;
        background-color: var(--page-999betvn__background-light);
        border-bottom: 2px solid var(--page-999betvn__primary-color);
        margin-bottom: 30px;
        box-sizing: border-box;
    }

    .page-999betvn__text-content {
        text-align: center;
        max-width: 800px;
        margin: 0 auto 20px auto;
        padding: 0 15px;
        color: var(--page-999betvn__text-color);
        box-sizing: border-box;
    }

    /* Hero Section */
    .page-999betvn__hero-section {
        position: relative;
        background: linear-gradient(135deg, #0056b3, #003d80); /* Darker blue gradient */
        color: var(--page-999betvn__light-text-color);
        padding: 60px 20px 20px 20px; /* Adjusted padding-top for fixed header */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 500px;
        text-align: center;
        overflow: hidden;
        box-sizing: border-box;
    }

    .page-999betvn__hero-content {
        z-index: 1;
        max-width: 900px;
        width: 100%;
        margin-bottom: 30px;
    }

    .page-999betvn__hero-description {
        font-size: 1.2em;
        margin-bottom: 30px;
        color: #e0e0e0;
    }

    .page-999betvn__hero-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-999betvn__button {
        display: inline-block;
        padding: 12px 25px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1em;
        transition: background-color 0.3s ease, transform 0.2s ease;
        box-sizing: border-box;
        white-space: nowrap; /* Prevent button text from wrapping */
    }

    .page-999betvn__button--primary {
        background-color: var(--page-999betvn__accent-color);
        color: var(--page-999betvn__text-color);
        border: 2px solid var(--page-999betvn__accent-color);
    }

    .page-999betvn__button--primary:hover {
        background-color: #e0a800;
        transform: translateY(-2px);
    }

    .page-999betvn__button--secondary {
        background-color: transparent;
        color: var(--page-999betvn__light-text-color);
        border: 2px solid var(--page-999betvn__light-text-color);
    }

    .page-999betvn__button--secondary:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .page-999betvn__button--centered {
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: fit-content;
    }

    .page-999betvn__hero-image-container {
        width: 100%;
        max-width: 600px;
        margin-top: 30px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-999betvn__hero-image {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        display: block; /* Ensure image is block-level for margin auto to work */
        margin: 0 auto; /* Center the image */
    }

    /* General Section Styling */
    .page-999betvn__about-section,
    .page-999betvn__game-categories,
    .page-999betvn__promotions-section,
    .page-999betvn__features-section,
    .page-999betvn__faq-section,
    .page-999betvn__cta-section {
        padding: 40px 20px;
        background-color: var(--page-999betvn__background-light);
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
    }

    .page-999betvn__about-section .page-999betvn__content-image {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 30px auto;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }

    /* Game Categories Grid */
    .page-999betvn__category-grid,
    .page-999betvn__feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-999betvn__category-item,
    .page-999betvn__feature-item {
        background-color: var(--page-999betvn__background-light);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        text-align: center;
        padding-bottom: 20px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-sizing: border-box;
    }

    .page-999betvn__category-item:hover,
    .page-999betvn__feature-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .page-999betvn__category-image,
    .page-999betvn__feature-image {
        width: 100%;
        height: 200px; /* Fixed height for consistency */
        object-fit: cover;
        display: block;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .page-999betvn__category-title,
    .page-999betvn__feature-title {
        font-size: 1.3em;
        margin-bottom: 10px;
        padding: 0 15px;
        color: var(--page-999betvn__primary-color);
        text-align: center;
    }

    .page-999betvn__category-description,
    .page-999betvn__feature-description {
        font-size: 0.95em;
        color: var(--page-999betvn__text-color);
        padding: 0 15px;
        text-align: center;
    }

    /* Promotions List */
    .page-999betvn__promo-list {
        list-style: none;
        padding: 0;
        margin: 0 auto 30px auto;
        max-width: 800px;
        box-sizing: border-box;
    }

    .page-999betvn__promo-item {
        background-color: var(--page-999betvn__background-light);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease;
        box-sizing: border-box;
    }

    .page-999betvn__promo-item:hover {
        transform: translateY(-5px);
    }

    .page-999betvn__promo-title {
        font-size: 1.2em;
        color: var(--page-999betvn__primary-color);
        margin-bottom: 8px;
        text-align: left; /* Align promo titles left */
    }

    .page-999betvn__promo-description {
        font-size: 0.95em;
        color: var(--page-999betvn__text-color);
        text-align: left; /* Align promo descriptions left */
    }

    /* FAQ Section */
    .page-999betvn__faq-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-999betvn__faq-item {
        background-color: var(--page-999betvn__background-light);
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .page-999betvn__faq-question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        cursor: pointer;
        background-color: #f0f0f0;
        font-weight: bold;
        color: var(--page-999betvn__text-color);
        transition: background-color 0.3s ease;
        user-select: none;
        box-sizing: border-box;
    }

    .page-999betvn__faq-question:hover {
        background-color: #e0e0e0;
    }

    .page-999betvn__faq-question-text {
        margin: 0;
        font-size: 1.1em;
        color: var(--page-999betvn__text-color);
        text-align: left;
        pointer-events: none; /* Prevent text from blocking click event */
        flex-grow: 1;
    }

    .page-999betvn__faq-toggle {
        font-size: 1.5em;
        line-height: 1;
        transition: transform 0.3s ease;
        pointer-events: none; /* Prevent toggle from blocking click event */
        color: var(--page-999betvn__primary-color);
    }

    .page-999betvn__faq-answer {
        max-height: 0;
        overflow: hidden;
        padding: 0 15px; /* Initial padding */
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
        box-sizing: border-box;
    }

    .page-999betvn__faq-item.active .page-999betvn__faq-answer {
        max-height: 2000px !important; /* Sufficiently large height */
        padding: 20px 15px !important; /* Padding when active */
        opacity: 1;
        border-top: 1px solid #eee;
    }

    .page-999betvn__faq-item.active .page-999betvn__faq-toggle {
        transform: rotate(45deg); /* Change + to X or - */
    }

    .page-999betvn__faq-answer p {
        margin: 0;
        color: var(--page-999betvn__text-color);
        text-align: left;
    }

    /* Call to Action Section */
    .page-999betvn__cta-section {
        text-align: center;
        background-color: var(--page-999betvn__primary-color);
        color: var(--page-999betvn__light-text-color);
        padding: 50px 20px;
    }

    .page-999betvn__cta-section .page-999betvn__section-title {
        color: var(--page-999betvn__light-text-color);
        border-bottom: none;
        background-color: transparent;
    }

    .page-999betvn__cta-section .page-999betvn__text-content {
        color: #e0e0e0;
        margin-bottom: 30px;
    }

    /* Floating Buttons */
    .page-999betvn__floating-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        background-color: var(--page-999betvn__background-dark); /* Dark background for visibility */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        box-sizing: border-box;
    }

    .page-999betvn__floating-button {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1em;
        border-radius: 0; /* No border-radius for full width segments */
        transition: background-color 0.3s ease;
        box-sizing: border-box;
        color: var(--page-999betvn__light-text-color); /* Default text color */
    }

    .page-999betvn__floating-button--register {
        background-color: var(--page-999betvn__accent-color);
        color: var(--page-999betvn__text-color);
    }

    .page-999betvn__floating-button--register:hover {
        background-color: #e0a800;
    }

    .page-999betvn__floating-button--login {
        background-color: var(--page-999betvn__primary-color);
    }

    .page-999betvn__floating-button--login:hover {
        background-color: #0056b3;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .page-999betvn__main-title {
            font-size: 2em;
        }

        .page-999betvn__section-title {
            font-size: 1.7em;
            padding: 15px 10px;
        }

        .page-999betvn__hero-description {
            font-size: 1em;
        }

        .page-999betvn__hero-buttons {
            flex-direction: column;
            gap: 10px;
        }

        .page-999betvn__button {
            width: 80%;
            max-width: 300px;
            margin: 0 auto;
        }

        .page-999betvn__category-grid,
        .page-999betvn__feature-grid {
            grid-template-columns: 1fr;
            padding: 0 10px;
        }

        .page-999betvn__promo-list {
            padding: 0 10px;
        }

        .page-999betvn__promo-item {
            padding: 15px;
        }

        .page-999betvn__promo-title {
            font-size: 1.1em;
        }

        .page-999betvn__promo-description {
            font-size: 0.9em;
        }

        .page-999betvn__faq-container {
            padding: 0 10px;
        }

        .page-999betvn__faq-question {
            padding: 12px 15px;
        }

        .page-999betvn__faq-question-text {
            font-size: 1em;
        }

        .page-999betvn__faq-answer {
            padding: 0 10px;
        }

        .page-999betvn__faq-item.active .page-999betvn__faq-answer {
            padding: 15px 10px !important;
        }

        /* List item specific responsive styles */
        .page-999betvn__promo-list,
        .page-999betvn__category-grid,
        .page-999betvn__feature-grid,
        .page-999betvn__faq-container {
            width: 100% !important;
            max-width: 100% !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            box-sizing: border-box !important;
        }

        .page-999betvn__promo-item,
        .page-999betvn__category-item,
        .page-999betvn__feature-item,
        .page-999betvn__faq-item {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            word-break: break-word !important;
        }

        .page-999betvn__category-item,
        .page-999betvn__feature-item {
            margin-bottom: 20px; /* Add some space between items */
        }

        .page-999betvn__category-image,
        .page-999betvn__feature-image {
            max-width: 100% !important;
            height: auto !important;
            box-sizing: border-box !important;
        }

        .page-999betvn__hero-image,
        .page-999betvn__content-image {
            max-width: 100% !important;
            height: auto !important;
            box-sizing: border-box !important;
        }

        .page-999betvn__floating-buttons {
            flex-direction: row; /* Ensure they stay side by side */
        }
        .page-999betvn__floating-button {
            font-size: 1em;
            padding: 10px 0;
        }
    }

    @media (max-width: 480px) {
        .page-999betvn__main-title {
            font-size: 1.8em;
        }
        .page-999betvn__section-title {
            font-size: 1.5em;
        }
        .page-999betvn__hero-description {
            font-size: 0.9em;
        }
        .page-999betvn__button {
            font-size: 1em;
            padding: 10px 20px;
        }
        .page-999betvn__category-title,
        .page-999betvn__feature-title {
            font-size: 1.2em;
        }
        .page-999betvn__promo-title {
            font-size: 1em;
        }
        .page-999betvn__faq-question-text {
            font-size: 0.95em;
        }
        .page-999betvn__faq-answer p {
            font-size: 0.9em;
        }
    }
  