/* Color Palette (Example - adjust as needed) */
:root {
    --primary-color: #0056b3; /* Dark Blue - for headers, main buttons */
    --secondary-color: #ffcc00; /* Gold/Yellow - for accents, highlights */
    --accent-color: #e02b2b; /* Red - for important actions, warnings */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-dark: #000000; /* Dark Grey/Blue for footer */
    --border-color: #ddd;
    --hover-color: #007bff;
}

/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Container for consistent content width */
.section-wrapper, .header-container, .footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

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

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

/* --- Header Styles --- */
.main-header {
    background-color: var(--bg-dark); /* Dark background for header */
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: 700;
    text-transform: uppercase;
}

.site-logo .logo-image {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.site-logo .logo-text {
    /* Style for the text part of the logo */
}

.main-nav .nav-list {
    display: flex;
    gap: 25px;
}

.main-nav .nav-list a {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.menu-toggle-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2em;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: flex-end; /* Push drawer to the right */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-drawer {
    background-color: var(--bg-dark);
    width: 280px;
    height: 100%;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.mobile-nav-overlay.active .mobile-nav-drawer {
    transform: translateX(0);
}

.mobile-nav-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5em;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.mobile-nav-list {
    margin-top: 50px;
}

.mobile-nav-list li {
    margin-bottom: 15px;
}

.mobile-nav-list a {
    color: var(--text-light);
    font-size: 1.2em;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-list a:hover {
    color: var(--secondary-color);
}


/* --- Hero Section --- */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/main.jpeg') no-repeat center center/cover; /* Example background */
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.draw-timer-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.timer-unit {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.timer-label {
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.hero-cta-button {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 18px 35px;
    font-size: 1.4em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta-button:hover {
    background-color: #c02020;
    transform: translateY(-3px);
}

/* --- Features/Benefits Section --- */
.benefits-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

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

.section-title {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        text-align: left;
    }
}

.benefits-list {
    margin-top: 20px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.benefit-icon {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 15px;
    line-height: 1;
}

.benefits-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.benefits-image-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Lotto Information Section (Accordion) --- */
.lotto-information-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.info-accordion-container {
    margin-top: 30px;
}

.info-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-item-heading {
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    cursor: pointer;
    margin: 0;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.info-item-heading:hover {
    background-color: var(--hover-color);
}

.info-item-heading::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.info-item.active .info-item-heading::after {
    content: '-';
    transform: rotate(180deg);
}

.info-item-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.info-item.active .info-item-content {
    max-height: 500px; /* Adjust based on content length */
    padding: 20px;
}

.info-item-content p {
    margin-bottom: 15px;
    font-size: 1em;
}

.odds-table-display {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.odds-table-header-row, .odds-table-row {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1.5fr;
    border-bottom: 1px solid var(--border-color);
}

.odds-table-header-row {
    background-color: #f0f0f0;
    font-weight: 600;
}

.odds-table-header-row .odds-header-cell, .odds-table-row .odds-cell {
    padding: 12px 15px;
    text-align: center;
}

.odds-table-row:nth-child(even) {
    background-color: #fdfdfd;
}

.odds-table-row:last-child {
    border-bottom: none;
}

.draw-info-list, .strategy-options-list {
    margin-top: 15px;
}

.draw-info-list li, .strategy-options-list li {
    margin-bottom: 10px;
}

.draw-info-list strong {
    color: var(--primary-color);
}

/* --- Modern Footer Styles --- */
.modern-site-footer {
    background-color: #000; /* Dark Forest Green */
    color: #fff;
    padding: 60px 0 20px; /* Top padding for sections, bottom for copyright bar */
    font-size: 0.95em;
    position: relative;
}

.footer-content-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.5fr; /* Adjusted for better layout */
    gap: 40px; /* Increased gap between columns */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    padding-bottom: 40px; /* Space above copyright bar */
}

.footer-section {
    padding: 0; /* Remove default padding, use gap for spacing */
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to start on desktop */
}

.modern-footer-logo {
    display: block; /* Ensure it behaves like a block element */
    margin-bottom: 20px;
}

.modern-footer-logo-image {
    height: 60px; /* Larger logo for impact */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3)); /* Subtle shadow for logo */
    transition: transform 0.3s ease;
}

.modern-footer-logo-image:hover {
    transform: scale(1.05);
}

.modern-footer-description {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.85;
}

.modern-footer-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em; /* Larger headings */
    color: var(--footer-highlight); /* Gold color for headings */
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 10px; /* Space for underline effect */
}

.modern-footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px; /* Short underline */
    height: 3px;
    background-color: var(--footer-highlight);
    border-radius: 2px;
}

.modern-footer-link-list li {
    margin-bottom: 12px;
}

.modern-footer-link-list a {
    color: var(--footer-text-color);
    opacity: 0.9;
    font-size: 1.05em;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.modern-footer-link-list a:hover {
    color: var(--footer-link-hover); /* White on hover */
    opacity: 1;
    text-decoration: underline;
}

.modern-responsibility-details {
    margin-top: 30px; /* Space from legal links */
    font-size: 0.88em;
    line-height: 1.5;
    opacity: 0.8;
}

.modern-responsibility-details strong {
    color: var(--footer-highlight);
}

.modern-responsibility-details a {
    color: var(--footer-highlight);
    text-decoration: underline;
}

.modern-responsibility-details a:hover {
    color: var(--footer-link-hover);
}

.footer-trust-badges-area {
    text-align: center; /* Center badges on desktop for this column */
}

.modern-trust-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
    justify-content: center; /* Center badges within their container */
}

.modern-age-restriction-badge {
    background-color: var(--accent-color); /* Fiery Red */
    color: var(--text-light);
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.2em;
    white-space: nowrap; /* Prevent breaking 18+ */
}

.modern-trust-badges-container img {
    height: 45px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.modern-trust-badges-container img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-copyright-bar {
    border-top: 1px solid var(--footer-border-color); /* Subtle separator */
    padding: 20px 15px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-copyright-info {
    font-size: 0.85em;
    opacity: 0.7;
    margin: 0;
}

/* --- Mobile Adaptation for Footer --- */

/* For devices up to 1024px wide (e.g., tablets in landscape) */
@media (max-width: 1024px) {
    .footer-content-wrap {
        grid-template-columns: 1.5fr 1fr 1.5fr; /* Adjust for 3 columns */
        gap: 30px;
    }

    .footer-brand-info {
        grid-column: 1 / span 3; /* Brand info spans all columns */
        text-align: center;
        align-items: center;
    }

    .modern-footer-heading::after {
        left: 50%;
        transform: translateX(-50%); /* Center underline */
    }

    .footer-trust-badges-area {
        grid-column: 1 / span 3; /* Badges also span all columns below others */
        order: 99; /* Push to bottom */
    }
}

/* For devices up to 768px wide (e.g., tablets in portrait, large phones) */
@media (max-width: 768px) {
    .modern-site-footer {
        padding: 40px 0 15px; /* Reduced padding */
    }

    .footer-content-wrap {
        grid-template-columns: 1fr; /* Stack all columns vertically */
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-brand-info,
    .footer-nav-links,
    .footer-legal-compliance,
    .footer-trust-badges-area {
        grid-column: auto; /* Reset grid column span */
        text-align: center; /* Center content in stacked columns */
        align-items: center; /* Center items in flex column */
    }

    .modern-footer-heading {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    .modern-footer-heading::after {
        width: 40px; /* Slightly shorter underline */
    }

    .modern-footer-link-list {
        padding-left: 0; /* Remove default list padding */
    }

    .modern-footer-link-list li {
        margin-bottom: 8px;
    }

    .modern-footer-link-list a {
        font-size: 0.95em;
    }

    .modern-responsibility-details {
        margin-top: 20px;
        font-size: 0.85em;
    }

    .modern-trust-badges-container {
        gap: 10px;
        justify-content: center;
    }

    .modern-age-restriction-badge {
        font-size: 1em;
        padding: 8px 12px;
    }

    .modern-trust-badges-container img {
        height: 38px;
    }

    .footer-copyright-bar {
        padding: 15px 15px;
    }

    .modern-copyright-info {
        font-size: 0.8em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    .modern-site-footer {
        padding: 30px 0 10px;
    }

    .footer-content-wrap {
        gap: 25px;
        padding-bottom: 25px;
    }

    .modern-footer-logo-image {
        height: 50px; /* Smaller logo */
    }

    .modern-footer-heading {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .modern-footer-link-list a {
        font-size: 0.9em;
    }

    .modern-responsibility-details {
        font-size: 0.8em;
    }

    .modern-trust-badges-container img {
        height: 30px; /* Even smaller badges */
    }

    .modern-age-restriction-badge {
        font-size: 0.9em;
        padding: 6px 10px;
    }

    .footer-copyright-bar {
        padding: 10px 15px;
    }

    .modern-copyright-info {
        font-size: 0.75em;
    }
}

/* --- Cookie Consent Bar --- */
.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 15px 20px;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.cookie-consent-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-consent-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 900px;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-consent-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-text {
    margin: 0;
    font-size: 0.95em;
}

.cookie-accept-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.cookie-accept-button:hover {
    background-color: var(--hover-color);
}

/* --- Age Verification Modal --- */
.age-verification-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none; /* Controlled by JS initially */
}

.age-verification-modal-content {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
}

.age-check-title {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.age-check-message {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.age-confirm-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.age-confirm-button:hover {
    background-color: var(--hover-color);
}

.age-deny-button {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.age-deny-button:hover {
    background-color: #c02020;
}


/* --- Scroll to Top Button --- */
.scroll-to-top-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 999;
}

.scroll-to-top-button:hover {
    background-color: #ffde57;
    transform: translateY(-3px);
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide desktop nav on smaller screens */
    }

    .menu-toggle-btn {
        display: block; /* Show hamburger icon */
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .draw-timer-countdown {
        gap: 15px;
    }

    .timer-unit {
        font-size: 2em;
        padding: 10px 15px;
        min-width: 70px;
    }

    .hero-cta-button {
        padding: 15px 25px;
        font-size: 1.2em;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefits-image-gallery {
        grid-template-columns: 1fr; /* Stack images on small screens */
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 1.5em;
    }

    .site-logo .logo-image {
        height: 30px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .timer-unit {
        font-size: 1.5em;
        padding: 8px 12px;
        min-width: 60px;
    }

    .age-verification-modal-content {
        padding: 25px;
    }

    .age-check-title {
        font-size: 1.5em;
    }

    .age-confirm-button,
    .age-deny-button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}


/* terms */

/* --- Terms Page Specific Styles --- */
.content-section-terms {
    background-color: var(--terms-bg);
    padding: 60px 0;
    color: var(--terms-text-color);
}

.container-terms-privacy {
    max-width: 900px; /* Narrower content for readability */
    margin: 0 auto;
    padding: 0 20px;
}

.main-page-title {
    font-size: 25px;
    color: var(--terms-heading-color);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.intro-paragraph {
    font-size: 1.15em;
    margin-bottom: 40px;
    line-height: 1.7;
    text-align: center;
}

.terms-section {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--terms-border-light);
}

.terms-section:last-of-type {
    border-bottom: none; /* No border for the last section */
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading-terms {
    font-size: 1.8em;
    color: var(--terms-heading-color);
    margin-bottom: 15px;
    padding-top: 10px; /* Spacing above heading */
    line-height: 1.3;
}

.terms-section p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section strong {
    color: var(--terms-heading-color);
}

.terms-contact-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--terms-border-light);
    font-size: 1em;
    text-align: center;
}

.terms-contact-info a {
    color: var(--terms-link-color);
    text-decoration: underline;
}

.terms-contact-info a:hover {
    color: var(--hover-color-light);
}

/* Policy */
/* --- Policy Page Specific Styles (using the new content colors) --- */
.content-section-policy {
    background-color: var(--content-bg);
    padding: 60px 0;
    color: var(--content-text-color);
}

.container-terms-privacy { /* Reused class from terms page, for consistency */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-page-title { /* Reused class from terms page */
    font-size: 3em;
    color: var(--content-heading-color);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.intro-paragraph { /* Reused class from terms page */
    font-size: 1.15em;
    margin-bottom: 40px;
    line-height: 1.7;
    text-align: center;
}

.policy-section { /* Specific class for policy sections */
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--content-border-light);
}

.policy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading-policy { /* Specific class for policy headings */
    font-size: 1.8em;
    color: var(--content-heading-color);
    margin-bottom: 15px;
    padding-top: 10px;
    line-height: 1.3;
}

.policy-section p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.policy-list { /* Specific class for lists in policy sections */
    list-style: disc outside; /* Use actual bullets */
    margin-left: 20px; /* Indent bullets */
    padding-left: 0;
    margin-bottom: 15px;
}

.policy-list li {
    margin-bottom: 8px;
    font-size: 1em;
    line-height: 1.5;
}

.policy-list li strong {
    color: var(--content-heading-color); /* Highlight strong text in lists */
}

.policy-section strong {
    color: var(--content-heading-color);
}

.policy-contact-info { /* Specific class for contact info at the end */
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--content-border-light);
    font-size: 1em;
    text-align: center;
}

.policy-contact-info a {
    color: var(--content-link-color);
    text-decoration: underline;
}

.policy-contact-info a:hover {
    color: var(--hover-color-light);
}


/* --- Responsive Adjustments using Media Queries (for content sections) --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    .main-page-title {
        font-size: 2.5em;
    }
    .intro-paragraph {
        font-size: 1.1em;
    }
    .section-heading-policy { /* Use policy-specific class */
        font-size: 1.6em;
    }
    .policy-section p, .policy-list li { /* Use policy-specific classes */
        font-size: 0.95em;
    }
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    .content-section-policy {
        padding: 40px 0;
    }
    .container-terms-privacy {
        padding: 0 15px;
    }
    .main-page-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .intro-paragraph {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .policy-section {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    .section-heading-policy {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    .policy-section p, .policy-list li {
        font-size: 0.9em;
    }
    .policy-contact-info {
        font-size: 0.95em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    .content-section-policy {
        padding: 30px 0;
    }
    .container-terms-privacy {
        padding: 0 10px;
    }
    .main-page-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .intro-paragraph {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .policy-section {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .section-heading-policy {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .policy-section p, .policy-list li {
        font-size: 0.85em;
    }
    .policy-list {
        margin-left: 15px; /* Reduce indent for small screens */
    }
    .policy-contact-info {
        font-size: 0.85em;
    }
}

/* cookie */
/* --- Cookie Page Specific Styles --- */
.content-section-cookie { /* Main wrapper for the cookie policy content */
    background-color: var(--content-bg);
    padding: 60px 0;
    color: var(--content-text-color);
}

.container-terms-privacy { /* Reused for consistent content width and padding across terms/privacy/cookie pages */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-page-title { /* Main H1 title for the page, reused from other policy pages */
    font-size: 3em;
    color: var(--content-heading-color);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.intro-paragraph { /* Introductory paragraph, reused from other policy pages */
    font-size: 1.15em;
    margin-bottom: 40px;
    line-height: 1.7;
    text-align: center;
}

.cookie-section { /* Styles for individual sections within the cookie policy */
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--content-border-light);
}

.cookie-section:last-of-type { /* Removes the border from the very last section */
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-heading-cookie { /* Styles for H2 headings within cookie policy sections */
    font-size: 1.8em;
    color: var(--content-heading-color);
    margin-bottom: 15px;
    padding-top: 10px; /* Provides space above the heading */
    line-height: 1.3;
}

.cookie-section p { /* Paragraphs within cookie policy sections */
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-section p:last-child {
    margin-bottom: 0;
}

.cookie-list { /* Styles for unordered lists within cookie policy sections */
    list-style: disc outside; /* Displays traditional bullet points */
    margin-left: 20px; /* Indents the list */
    padding-left: 0;
    margin-bottom: 15px;
}

.cookie-list li { /* Individual list items */
    margin-bottom: 8px;
    font-size: 1em;
    line-height: 1.5;
}

.cookie-list li strong { /* Strong text within list items */
    color: var(--content-heading-color); /* Highlights strong text with the heading color */
}

.cookie-section strong { /* Strong text outside of lists but within cookie sections */
    color: var(--content-heading-color);
}

.cookie-contact-info { /* Styles for the contact information section at the end of the policy */
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--content-border-light);
    font-size: 1em;
    text-align: center;
}

.cookie-contact-info a { /* Links within the contact info section */
    color: var(--content-link-color);
    text-decoration: underline;
}

.cookie-contact-info a:hover {
    color: var(--hover-color-light);
}

/* --- Responsive Adjustments for Cookie Page Content --- */

/* For devices up to 1024px wide (e.g., tablets in landscape, smaller desktops) */
@media (max-width: 1024px) {
    .main-page-title {
        font-size: 2.5em;
    }
    .intro-paragraph {
        font-size: 1.1em;
    }
    .section-heading-cookie {
        font-size: 1.6em;
    }
    .cookie-section p, .cookie-list li {
        font-size: 0.95em;
    }
}

/* For devices up to 768px wide (e.g., tablets in portrait, large phones) */
@media (max-width: 768px) {
    .content-section-cookie {
        padding: 40px 0;
    }
    .container-terms-privacy {
        padding: 0 15px;
    }
    .main-page-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .intro-paragraph {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .cookie-section {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    .section-heading-cookie {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    .cookie-section p, .cookie-list li {
        font-size: 0.9em;
    }
    .cookie-contact-info {
        font-size: 0.95em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    .content-section-cookie {
        padding: 30px 0;
    }
    .container-terms-privacy {
        padding: 0 10px;
    }
    .main-page-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .intro-paragraph {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    .cookie-section {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .section-heading-cookie {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .cookie-section p, .cookie-list li {
        font-size: 0.85em;
    }
    .cookie-list {
        margin-left: 15px; /* Reduce indent for small screens */
    }
    .cookie-contact-info {
        font-size: 0.85em;
    }
}

/* system page */

/* --- Main Content Wrapper for System Page --- */
.system-page-main-content {
    /* No specific styles here by default, acts as a container for sections */
}

/* --- System Page Hero Banner --- */
.system-hero-banner {
    background: linear-gradient(rgba(10, 61, 98, 0.7), rgba(10, 61, 98, 0.7)), url('../../assets/main.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px; /* Reduced padding from homepage hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px; /* Adjusted min-height */
    position: relative;
    overflow: hidden;
}

.hero-content-system-page {
    max-width: 800px;
    z-index: 10;
}

.hero-title-system-page {
    font-size: 3em; /* Slightly smaller than homepage hero title */
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-system-page {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.draw-timer-countdown { /* Reused from homepage */
    display: flex;
    justify-content: center;
    gap: 25px; /* Adjusted gap */
    margin-bottom: 40px;
}

.timer-unit { /* Reused from homepage */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timer-label { /* Reused from homepage */
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.cta-button-system-page {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-system-page:hover {
    background-color: #CC2B37; /* Slightly darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- System Entry Form Section --- */
.system-entry-form-section {
    background-color: var(--bg-medium); /* Light grey-blue background */
    padding: 60px 0;
}

.container-default { /* Reused for consistent content width */
    max-width: 900px; /* Adjust for form content */
    margin: 0 auto;
    padding: 0 15px;
}

.lotto-form-card {
    background-color: var(--form-card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--form-border);
}

.form-card-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.lotto-input-group {
    margin-bottom: 25px;
}

.lotto-label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.lotto-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background-color: var(--input-bg);
    font-size: 1em;
    color: var(--text-dark);
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056b3%22%20d%3D%22M287%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0L146.2%2C72.9L16.6%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0c-3.2-3.2-3.2-8.3%2C0-11.6l135.9-135.9c3.2-3.2%2C8.3-3.2%2C11.6%2C0l135.9%2C135.9C290.2%2C189.6%2C290.2%2C194.7%2C287%2C197.9z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lotto-select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.2);
}

.lotto-radio-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 10px;
}

.lotto-radio-options label {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: var(--text-dark);
    cursor: pointer;
}

.lotto-radio-options input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2); /* Make radio buttons slightly larger */
    accent-color: var(--primary-color); /* Color the radio button */
}

.lotto-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    cursor: pointer;
}

.lotto-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3); /* Make checkbox slightly larger */
    accent-color: var(--primary-color); /* Color the checkbox */
}

.lotto-number-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); /* Numbers 1-47 */
    gap: 8px;
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
}

.number-selection-button {
    background-color: var(--number-button-bg);
    color: var(--number-button-text);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px 5px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 100%; /* Ensure buttons fill grid cells */
    aspect-ratio: 1 / 1; /* Make buttons square */
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-selection-button:hover {
    background-color: var(--bg-medium);
    border-color: var(--primary-color);
}

.number-selection-button.selected {
    background-color: var(--number-button-selected-bg);
    color: var(--number-button-selected-text);
    border-color: var(--number-button-selected-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lotto-total-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--form-border);
}

.lotto-total-display {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-basket-button {
    background-color: var(--add-to-basket-bg);
    color: var(--add-to-basket-text);
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-basket-button:hover {
    background-color: var(--add-to-basket-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- How System Works Section --- */
.how-system-works-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.system-info-blocks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px; /* Space between info blocks */
    max-width: 1000px; /* Max width for these info blocks */
    margin: 0 auto;
    padding: 0 15px; /* Ensure content doesn't touch edges */
}

.info-block-item {
    background-color: var(--form-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--info-block-border);
}

.info-block-heading {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.info-block-item p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-block-item p:last-child {
    margin-bottom: 0;
}

.info-block-item strong {
    color: var(--primary-color);
}

/* --- Comparison Table Styles (if you re-add the example section) --- */
/* You would uncomment these if you put the HTML for the comparison table back */
/*
.comparison-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.comparison-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.lotto-example-table {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.example-table-row {
    display: grid;
    grid-template-columns: 0.8fr 3fr;
    border-bottom: 1px solid var(--border-color);
}

.example-table-header {
    background-color: var(--bg-medium);
    font-weight: 600;
    color: var(--primary-color);
}

.example-table-cell {
    padding: 10px 15px;
    text-align: center;
}

.example-table-cell.small {
    font-weight: bold;
}

.example-table-row:last-child {
    border-bottom: none;
}
*/


/* --- Responsive Adjustments for Main Content --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    /* Hero Section */
    .system-hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-title-system-page {
        font-size: 2.5em;
    }
    .hero-subtitle-system-page {
        font-size: 1.1em;
    }
    .draw-timer-countdown {
        gap: 20px;
        margin-bottom: 30px;
    }
    .timer-unit {
        font-size: 2em;
        padding: 12px 20px;
        min-width: 70px;
    }
    .cta-button-system-page {
        padding: 14px 28px;
        font-size: 1.2em;
    }

    /* Form Section */
    .system-entry-form-section {
        padding: 50px 0;
    }
    .lotto-form-card {
        padding: 30px;
    }
    .form-card-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .lotto-input-group {
        margin-bottom: 20px;
    }
    .lotto-label, .lotto-checkbox-label {
        font-size: 1em;
    }
    .lotto-select {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .lotto-radio-options {
        gap: 15px;
    }
    .lotto-radio-options label, .lotto-checkbox-label {
        font-size: 0.95em;
    }
    .number-selection-button {
        padding: 8px 4px;
        font-size: 0.9em;
    }
    .lotto-total-summary {
        gap: 15px;
        margin-top: 25px;
    }
    .lotto-total-display {
        font-size: 1.6em;
    }
    .add-to-basket-button {
        padding: 13px 28px;
        font-size: 1.1em;
    }

    /* How System Works Section */
    .how-system-works-section {
        padding: 50px 0;
    }
    .system-info-blocks-grid {
        grid-template-columns: 1fr; /* Stack columns for better readability on tablets */
        gap: 30px;
    }
    .info-block-item {
        padding: 25px;
    }
    .info-block-heading {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    .info-block-item p {
        font-size: 0.95em;
    }
    /* Comparison table styles if uncommented */
    /*
    .comparison-cards-grid {
        grid-template-columns: 1fr;
    }
    .comparison-card {
        padding: 20px;
    }
    .card-title {
        font-size: 1.2em;
    }
    .card-description {
        font-size: 0.9em;
    }
    .example-table-cell {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    */
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    /* Hero Section */
    .system-hero-banner {
        padding: 50px 15px;
        min-height: 280px;
    }
    .hero-title-system-page {
        font-size: 2.2em;
    }
    .hero-subtitle-system-page {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .draw-timer-countdown {
        gap: 15px;
        margin-bottom: 25px;
    }
    .timer-unit {
        font-size: 1.6em;
        padding: 10px 15px;
        min-width: 55px;
    }
    .cta-button-system-page {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    /* Form Section */
    .system-entry-form-section {
        padding: 40px 0;
    }
    .lotto-form-card {
        padding: 25px;
    }
    .form-card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .lotto-input-group {
        margin-bottom: 18px;
    }
    .lotto-label, .lotto-checkbox-label {
        font-size: 0.95em;
    }
    .lotto-select {
        padding: 10px;
        font-size: 0.9em;
    }
    .lotto-radio-options {
        flex-direction: column; /* Stack radio options */
        gap: 10px;
    }
    .lotto-radio-options label {
        font-size: 0.9em;
    }
    .lotto-number-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr)); /* Smaller buttons */
        gap: 6px;
        padding: 10px;
    }
    .number-selection-button {
        padding: 8px 0; /* Adjust padding for smaller buttons */
        font-size: 0.9em;
    }
    .lotto-total-summary {
        gap: 10px;
        margin-top: 20px;
        padding-top: 15px;
    }
    .lotto-total-display {
        font-size: 1.4em;
    }
    .add-to-basket-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    /* How System Works Section */
    .how-system-works-section {
        padding: 40px 0;
    }
    .system-info-blocks-grid {
        gap: 25px;
    }
    .info-block-item {
        padding: 20px;
    }
    .info-block-heading {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    .info-block-item p {
        font-size: 0.9em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    /* Hero Section */
    .system-hero-banner {
        padding: 40px 10px;
        min-height: 250px;
    }
    .hero-title-system-page {
        font-size: 1.8em;
    }
    .hero-subtitle-system-page {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .draw-timer-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .timer-unit {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 45px;
        flex: 1 1 auto;
    }
    .cta-button-system-page {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Form Section */
    .system-entry-form-section {
        padding: 30px 0;
    }
    .lotto-form-card {
        padding: 20px;
    }
    .form-card-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .lotto-input-group {
        margin-bottom: 15px;
    }
    .lotto-label, .lotto-checkbox-label {
        font-size: 0.9em;
    }
    .lotto-select {
        padding: 8px;
        font-size: 0.85em;
    }
    .lotto-radio-options label {
        font-size: 0.85em;
    }
    .lotto-radio-options input[type="radio"],
    .lotto-checkbox-label input[type="checkbox"] {
        transform: scale(1.1);
    }
    .lotto-number-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
        gap: 5px;
        padding: 8px;
    }
    .number-selection-button {
        font-size: 0.8em;
    }
    .lotto-total-summary {
        gap: 8px;
        margin-top: 15px;
        padding-top: 10px;
    }
    .lotto-total-display {
        font-size: 1.2em;
    }
    .add-to-basket-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /* How System Works Section */
    .how-system-works-section {
        padding: 30px 0;
    }
    .system-info-blocks-grid {
        gap: 20px;
    }
    .info-block-item {
        padding: 15px;
    }
    .info-block-heading {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .info-block-item p {
        font-size: 0.85em;
    }
}

/* syndikate page */
/* --- Main Content Wrapper for Syndicate Page --- */
.syndicate-page-main-content {
    /* No specific styles here by default, acts as a container for sections */
}

/* --- Syndicate Hero Banner --- */
.syndicate-hero-banner {
    background: linear-gradient(rgba(10, 61, 98, 0.7), rgba(10, 61, 98, 0.7)), url('../assets/main.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-content-syndicate-page {
    max-width: 800px;
    z-index: 10;
}

.hero-title-syndicate-page {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-syndicate-page {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.draw-timer-countdown { /* Reused from homepage/system page */
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.timer-unit { /* Reused from homepage/system page */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timer-label { /* Reused from homepage/system page */
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.cta-button-syndicate-page {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-syndicate-page:hover {
    background-color: #CC2B37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Syndicate Purchase Form Section --- */
.syndicate-purchase-form-section {
    background-color: var(--bg-medium); /* Light grey-blue background */
    padding: 60px 0;
}

.container-default { /* Reused for consistent content width */
    max-width: 1000px; /* Wider for syndicate cards */
    margin: 0 auto;
    padding: 0 15px;
}

.lotto-form-card { /* Reused from system page */
    background-color: var(--form-card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--form-border);
}

.form-card-title { /* Reused from system page */
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.lotto-input-group { /* Reused from system page */
    margin-bottom: 25px;
}

.input-group-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.syndicate-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid for cards */
    gap: 20px;
    margin-bottom: 20px;
}

.syndicate-option-card {
    background-color: var(--syndicate-card-bg);
    border: 2px solid var(--syndicate-card-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.syndicate-option-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.syndicate-option-card.selected {
    border-color: var(--syndicate-card-selected-border);
    box-shadow: 0 0 0 4px var(--syndicate-card-selected-shadow); /* Glow effect */
    transform: translateY(-2px);
}

.card-head {
    background-color: var(--syndicate-card-head-bg);
    color: var(--syndicate-card-head-text);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.2;
}

.card-head span {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.8;
}

.card-price {
    font-size: 2em;
    font-weight: 700;
    color: var(--syndicate-card-price-text);
    margin-bottom: 15px;
}

.card-price small {
    font-size: 0.5em;
    display: block;
    color: var(--text-dark);
    opacity: 0.7;
}

.radio-select-label {
    display: flex;
    align-items: center;
    font-size: 1em;
    font-weight: 500;
    color: var(--input-label-color);
    cursor: pointer;
}

.radio-select-label input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.lotto-select { /* Reused from system page */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background-color: var(--input-bg);
    font-size: 1em;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056b3%22%20d%3D%22M287%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0L146.2%2C72.9L16.6%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0c-3.2-3.2-3.2-8.3%2C0-11.6l135.9-135.9c3.2-3.2%2C8.3-3.2%2C11.6%2C0l135.9%2C135.9C290.2%2C189.6%2C290.2%2C194.7%2C287%2C197.9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lotto-select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.2);
}

.lotto-checkbox-label { /* Reused from system page */
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    cursor: pointer;
}

.lotto-checkbox-label input[type="checkbox"] { /* Reused from system page */
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
}

.lotto-total-summary { /* Reused from system page */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--form-border);
}

.lotto-total-display { /* Reused from system page */
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-basket-button { /* Reused from system page */
    background-color: var(--add-to-basket-bg);
    color: var(--add-to-basket-text);
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-basket-button:hover {
    background-color: var(--add-to-basket-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Syndicate Info Section --- */
.syndicate-details-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.syndicate-info-blocks-grid { /* Reused from system page, adjusted to better fit syndicate content */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flex for info blocks */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.info-block-item { /* Reused from system page */
    background-color: var(--form-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--info-block-border);
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack contents */
}

.info-block-heading { /* Reused from system page */
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.info-block-item p { /* Reused from system page */
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows paragraphs to take available space */
}

.info-block-item p:last-child {
    margin-bottom: 0;
}

.info-block-item strong { /* Reused from system page */
    color: var(--primary-color);
}

.info-list { /* Specific list style for info blocks */
    list-style: disc outside;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 15px;
}

.info-list li {
    margin-bottom: 5px;
    font-size: 1em;
}

.disclaimer-text {
    display: block;
    font-size: 0.85em;
    color: var(--text-dark);
    opacity: 0.7;
    margin-top: 10px;
}


/* --- Responsive Adjustments for Main Content --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    /* Hero Section */
    .syndicate-hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-title-syndicate-page {
        font-size: 2.5em;
    }
    .hero-subtitle-syndicate-page {
        font-size: 1.1em;
    }
    .draw-timer-countdown {
        gap: 20px;
        margin-bottom: 30px;
    }
    .timer-unit {
        font-size: 2em;
        padding: 12px 20px;
        min-width: 70px;
    }
    .cta-button-syndicate-page {
        padding: 14px 28px;
        font-size: 1.2em;
    }

    /* Purchase Form Section */
    .syndicate-purchase-form-section {
        padding: 50px 0;
    }
    .lotto-form-card {
        padding: 30px;
    }
    .form-card-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .input-group-title {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    .syndicate-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .syndicate-option-card {
        padding: 15px;
    }
    .card-head {
        font-size: 1.1em;
        padding: 8px 12px;
    }
    .card-price {
        font-size: 1.8em;
    }
    .lotto-select {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .lotto-checkbox-label {
        font-size: 0.95em;
    }
    .lotto-total-summary {
        gap: 15px;
        margin-top: 25px;
    }
    .lotto-total-display {
        font-size: 1.6em;
    }
    .add-to-basket-button {
        padding: 13px 28px;
        font-size: 1.1em;
    }

    /* Syndicate Info Section */
    .syndicate-details-section {
        padding: 50px 0;
    }
    .syndicate-info-blocks-grid {
        grid-template-columns: 1fr; /* Stack columns for better readability */
        gap: 30px;
    }
    .info-block-item {
        padding: 25px;
    }
    .info-block-heading {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    .info-block-item p, .info-list li {
        font-size: 0.95em;
    }
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    /* Hero Section */
    .syndicate-hero-banner {
        padding: 50px 15px;
        min-height: 280px;
    }
    .hero-title-syndicate-page {
        font-size: 2.2em;
    }
    .hero-subtitle-syndicate-page {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .draw-timer-countdown {
        gap: 15px;
        margin-bottom: 25px;
    }
    .timer-unit {
        font-size: 1.6em;
        padding: 10px 15px;
        min-width: 55px;
    }
    .cta-button-syndicate-page {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    /* Purchase Form Section */
    .syndicate-purchase-form-section {
        padding: 40px 0;
    }
    .lotto-form-card {
        padding: 25px;
    }
    .form-card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .input-group-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    .syndicate-options-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 15px;
    }
    .syndicate-option-card {
        flex-direction: row; /* Layout content horizontally within card */
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    .syndicate-option-card .card-head,
    .syndicate-option-card .card-price,
    .syndicate-option-card .radio-select-label {
        flex: 1 1 auto; /* Allow elements to take space */
        margin-bottom: 0;
        text-align: left;
    }
    .syndicate-option-card .card-head {
        min-width: 100px;
        margin-right: 15px;
        text-align: left;
    }
    .syndicate-option-card .card-price {
        min-width: 80px;
        text-align: right;
    }
    .syndicate-option-card .radio-select-label {
        margin-left: auto; /* Push radio to the right */
    }

    .lotto-select {
        padding: 10px;
        font-size: 0.9em;
    }
    .lotto-checkbox-label {
        font-size: 0.95em;
    }
    .lotto-total-summary {
        gap: 10px;
        margin-top: 20px;
        padding-top: 15px;
    }
    .lotto-total-display {
        font-size: 1.4em;
    }
    .add-to-basket-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    /* Syndicate Info Section */
    .syndicate-details-section {
        padding: 40px 0;
    }
    .syndicate-info-blocks-grid {
        gap: 25px;
    }
    .info-block-item {
        padding: 20px;
    }
    .info-block-heading {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    .info-block-item p, .info-list li {
        font-size: 0.9em;
    }
    .info-list {
        margin-left: 15px;
    }
    .disclaimer-text {
        font-size: 0.8em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    /* Hero Section */
    .syndicate-hero-banner {
        padding: 40px 10px;
        min-height: 250px;
    }
    .hero-title-syndicate-page {
        font-size: 1.8em;
    }
    .hero-subtitle-syndicate-page {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .draw-timer-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .timer-unit {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 45px;
        flex: 1 1 auto;
    }
    .cta-button-syndicate-page {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Purchase Form Section */
    .syndicate-purchase-form-section {
        padding: 30px 0;
    }
    .lotto-form-card {
        padding: 20px;
    }
    .form-card-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .input-group-title {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .syndicate-options-grid {
        gap: 10px;
    }
    .syndicate-option-card {
        padding: 10px 15px;
        flex-direction: column; /* Stack content vertically in card */
        text-align: center;
    }
    .syndicate-option-card .card-head,
    .syndicate-option-card .card-price,
    .syndicate-option-card .radio-select-label {
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        min-width: unset;
        width: 100%;
    }
    .syndicate-option-card .card-head {
        margin-bottom: 10px;
    }
    .syndicate-option-card .card-price {
        margin-bottom: 10px;
    }
    .radio-select-label {
        justify-content: center; /* Center the radio button and text */
    }

    .lotto-select {
        padding: 8px;
        font-size: 0.85em;
    }
    .lotto-checkbox-label {
        font-size: 0.9em;
    }
    .lotto-total-summary {
        gap: 8px;
        margin-top: 15px;
        padding-top: 10px;
    }
    .lotto-total-display {
        font-size: 1.2em;
    }
    .add-to-basket-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /* Syndicate Info Section */
    .syndicate-details-section {
        padding: 30px 0;
    }
    .syndicate-info-blocks-grid {
        gap: 20px;
    }
    .info-block-item {
        padding: 15px;
    }
    .info-block-heading {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .info-block-item p, .info-list li {
        font-size: 0.85em;
    }
    .info-list {
        margin-left: 10px;
    }
    .disclaimer-text {
        font-size: 0.75em;
    }
}


/* statistick page */
/* --- Main Content Wrapper for Statistics Page --- */
.statistics-page-main-content {
    /* No specific styles here by default, acts as a container for sections */
}

/* --- Statistics Hero Banner --- */
.statistics-hero-banner {
    background: linear-gradient(rgba(10, 61, 98, 0.7), rgba(10, 61, 98, 0.7)), url('../assets/main.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-content-statistics-page {
    max-width: 800px;
    z-index: 10;
}

.hero-title-statistics-page {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-statistics-page {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.draw-timer-countdown { /* Reused from homepage/system/syndicate pages */
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.timer-unit { /* Reused from homepage/system/syndicate pages */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timer-label { /* Reused from homepage/system/syndicate pages */
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.cta-button-statistics-page {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-statistics-page:hover {
    background-color: #CC2B37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Statistics Display Section --- */
.statistics-analysis-section {
    background-color: var(--bg-medium); /* Light grey-blue background */
    padding: 60px 0;
}

.container-default { /* Reused for consistent content width */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.stats-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Intro on left, legend on right */
    gap: var(--stats-grid-gap);
    margin-bottom: 40px;
    align-items: start;
}

.stats-intro-block {
    background-color: var(--stats-block-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--stats-block-border);
}

.section-heading-stats {
    font-size: 2em;
    color: var(--content-heading-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.stats-intro-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.stats-intro-text:last-child {
    margin-bottom: 0;
}

.stats-legend-block {
    background-color: var(--stats-block-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--stats-block-border);
}

.stats-legend-heading {
    font-size: 1.5em;
    color: var(--content-heading-color);
    margin-bottom: 20px;
}

.stats-legend-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: var(--content-text-color);
}

.legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent dot from shrinking */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legend-dot.hot {
    background-color: var(--legend-hot-color); /* Vibrant Gold */
}

.legend-dot.cold {
    background-color: var(--legend-cold-color); /* Fiery Red */
}


.lotto-number-frequency-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Auto-fill with a minimum width for each bar */
    gap: 15px;
    justify-content: center; /* Center the grid items if there's extra space */
}

.lotto-number-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--stats-block-bg);
    border: 1px solid var(--stats-block-border);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 150px; /* Ensure a minimum height for visual consistency */
    justify-content: space-between;
}

.lotto-number-bar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Specific styling for reverse bars to show labels on top/bottom differently */
.lotto-number-bar-item.reverse {
    flex-direction: column-reverse; /* Swap order of elements */
}

.lotto-number-ball {
    width: 60px;
    height: 60px;
    background-color: var(--stats-number-ball-bg);
    color: var(--stats-number-ball-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent ball from shrinking */
    margin: 10px 0; /* Space between labels and ball */
}

.lotto-stat-label {
    display: inline-block; /* Changed from span to inline-block for padding */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap; /* Prevent text wrapping */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lotto-stat-label.times-drawn {
    background-color: var(--stats-label-bg); /* Gold */
    color: var(--stats-label-text); /* Primary Blue */
}

.lotto-stat-label.last-seen {
    background-color: var(--stats-reverse-label-bg); /* Red */
    color: var(--stats-reverse-label-text); /* Light text */
}


/* --- Responsive Adjustments for Main Content --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    /* Hero Section */
    .statistics-hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-title-statistics-page {
        font-size: 2.5em;
    }
    .hero-subtitle-statistics-page {
        font-size: 1.1em;
    }
    .draw-timer-countdown {
        gap: 20px;
        margin-bottom: 30px;
    }
    .timer-unit {
        font-size: 2em;
        padding: 12px 20px;
        min-width: 70px;
    }
    .cta-button-statistics-page {
        padding: 14px 28px;
        font-size: 1.2em;
    }

    /* Statistics Display Section */
    .statistics-analysis-section {
        padding: 50px 0;
    }
    .stats-overview-grid {
        grid-template-columns: 1fr; /* Stack intro and legend vertically */
        gap: 30px;
        margin-bottom: 30px;
    }
    .stats-intro-block, .stats-legend-block {
        padding: 25px;
    }
    .section-heading-stats {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .stats-intro-text {
        font-size: 0.95em;
    }
    .stats-legend-heading {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    .lotto-number-frequency-chart {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Smaller min-width for numbers */
        gap: 10px;
    }
    .lotto-number-bar-item {
        padding: 12px;
        min-height: 130px;
    }
    .lotto-number-ball {
        width: 50px;
        height: 50px;
        font-size: 1.6em;
        margin: 8px 0;
    }
    .lotto-stat-label {
        font-size: 0.85em;
        padding: 4px 8px;
    }
    .legend-dot {
        width: 18px;
        height: 18px;
    }
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    /* Hero Section */
    .statistics-hero-banner {
        padding: 50px 15px;
        min-height: 280px;
    }
    .hero-title-statistics-page {
        font-size: 2.2em;
    }
    .hero-subtitle-statistics-page {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .draw-timer-countdown {
        gap: 15px;
        margin-bottom: 25px;
    }
    .timer-unit {
        font-size: 1.6em;
        padding: 10px 15px;
        min-width: 55px;
    }
    .cta-button-statistics-page {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    /* Statistics Display Section */
    .statistics-analysis-section {
        padding: 40px 0;
    }
    .stats-overview-grid {
        gap: 25px;
        margin-bottom: 25px;
    }
    .stats-intro-block, .stats-legend-block {
        padding: 20px;
    }
    .section-heading-stats {
        font-size: 1.6em;
        margin-bottom: 12px;
    }
    .stats-intro-text {
        font-size: 0.9em;
    }
    .stats-legend-heading {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    .legend-item {
        font-size: 0.9em;
    }
    .legend-dot {
        width: 16px;
        height: 16px;
    }
    .lotto-number-frequency-chart {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); /* Even smaller numbers */
        gap: 8px;
    }
    .lotto-number-bar-item {
        padding: 10px;
        min-height: 110px;
    }
    .lotto-number-ball {
        width: 40px;
        height: 40px;
        font-size: 1.4em;
        margin: 6px 0;
    }
    .lotto-stat-label {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    /* Hero Section */
    .statistics-hero-banner {
        padding: 40px 10px;
        min-height: 250px;
    }
    .hero-title-statistics-page {
        font-size: 1.8em;
    }
    .hero-subtitle-statistics-page {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .draw-timer-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .timer-unit {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 45px;
        flex: 1 1 auto;
    }
    .cta-button-statistics-page {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Statistics Display Section */
    .statistics-analysis-section {
        padding: 30px 0;
    }
    .stats-overview-grid {
        gap: 20px;
        margin-bottom: 20px;
    }
    .stats-intro-block, .stats-legend-block {
        padding: 15px;
    }
    .section-heading-stats {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    .stats-intro-text {
        font-size: 0.85em;
    }
    .stats-legend-heading {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .legend-item {
        font-size: 0.85em;
    }
    .legend-dot {
        width: 14px;
        height: 14px;
    }
    .lotto-number-frequency-chart {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* Adjust for very small screens */
        gap: 6px;
    }
    .lotto-number-bar-item {
        padding: 8px;
        min-height: 90px;
    }
    .lotto-number-ball {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
        margin: 5px 0;
    }
    .lotto-stat-label {
        font-size: 0.7em;
        padding: 2px 4px;
    }
}

/* standart page */
/* --- Main Content Wrapper for Standard Play Page --- */
.standard-page-main-content {
    /* Acts as a container for sections, no specific styles by default */
}

/* --- Standard Play Hero Banner --- */
.standard-hero-banner {
    background: linear-gradient(rgba(10, 61, 98, 0.7), rgba(10, 61, 98, 0.7)), url('../assets/main.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px; /* Consistent with other sub-page heroes */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-content-standard-page {
    max-width: 800px;
    z-index: 10;
}

.hero-title-standard-page {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-standard-page {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.draw-timer-countdown { /* Reused from homepage/system/syndicate pages */
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.timer-unit { /* Reused from homepage/system/syndicate pages */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timer-label { /* Reused from homepage/system/syndicate pages */
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.cta-button-standard-page {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-standard-page:hover {
    background-color: #CC2B37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Standard Play Form Section --- */
.standard-play-form-section {
    background-color: var(--bg-medium); /* Light grey-blue background */
    padding: 60px 0;
}

.container-default { /* Reused for consistent content width */
    max-width: 900px; /* Adjusted for form content */
    margin: 0 auto;
    padding: 0 15px;
}

.lotto-form-card { /* Reused from system/syndicate page */
    background-color: var(--form-card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--form-border);
}

.form-card-title { /* Reused from system/syndicate page */
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.lotto-input-group { /* Reused from system/syndicate page */
    margin-bottom: 25px;
}

.lotto-label { /* Reused from system/syndicate page */
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.lotto-select { /* Reused from system/syndicate page */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background-color: var(--input-bg);
    font-size: 1em;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056b3%22%20d%3D%22M287%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0L146.2%2C72.9L16.6%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0c-3.2-3.2-3.2-8.3%2C0-11.6l135.9-135.9c3.2-3.2%2C8.3-3.2%2C11.6%2C0l135.9%2C135.9C290.2%2C189.6%2C290.2%2C194.7%2C287%2C197.9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lotto-select:focus { /* Reused from system/syndicate page */
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.2);
}

.lotto-radio-options { /* Reused from system/syndicate page */
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lotto-radio-options label { /* Reused from system/syndicate page */
    display: flex;
    align-items: center;
    font-size: 1em;
    color: var(--text-dark);
    cursor: pointer;
}

.lotto-radio-options input[type="radio"] { /* Reused from system/syndicate page */
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.lotto-checkbox-label { /* Reused from system/syndicate page */
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    cursor: pointer;
}

.lotto-checkbox-label input[type="checkbox"] { /* Reused from system/syndicate page */
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
}

.lotto-number-selection-grid { /* Reused from system page */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
}

.number-selection-button { /* Reused from system page */
    background-color: var(--number-button-bg);
    color: var(--number-button-text);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px 5px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-selection-button:hover { /* Reused from system page */
    background-color: var(--bg-medium);
    border-color: var(--primary-color);
}

.number-selection-button.selected { /* Reused from system page */
    background-color: var(--number-button-selected-bg);
    color: var(--number-button-selected-text);
    border-color: var(--number-button-selected-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lotto-total-summary { /* Reused from system/syndicate page */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--form-border);
}

.lotto-total-display { /* Reused from system/syndicate page */
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-basket-button { /* Reused from system/syndicate page */
    background-color: var(--add-to-basket-bg);
    color: var(--add-to-basket-text);
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-basket-button:hover { /* Reused from system/syndicate page */
    background-color: var(--add-to-basket-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Adjustments for Main Content --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    /* Hero Section */
    .standard-hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-title-standard-page {
        font-size: 2.5em;
    }
    .hero-subtitle-standard-page {
        font-size: 1.1em;
    }
    .draw-timer-countdown {
        gap: 20px;
        margin-bottom: 30px;
    }
    .timer-unit {
        font-size: 2em;
        padding: 12px 20px;
        min-width: 70px;
    }
    .cta-button-standard-page {
        padding: 14px 28px;
        font-size: 1.2em;
    }

    /* Form Section */
    .standard-play-form-section {
        padding: 50px 0;
    }
    .lotto-form-card {
        padding: 30px;
    }
    .form-card-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .lotto-input-group {
        margin-bottom: 20px;
    }
    .lotto-label, .lotto-checkbox-label {
        font-size: 1em;
    }
    .lotto-select {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .lotto-radio-options {
        gap: 15px;
    }
    .lotto-radio-options label {
        font-size: 0.95em;
    }
    .lotto-number-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr)); /* Smaller min-width for numbers */
        gap: 6px;
        padding: 10px;
    }
    .number-selection-button {
        padding: 8px 4px;
        font-size: 0.9em;
    }
    .lotto-total-summary {
        gap: 15px;
        margin-top: 25px;
    }
    .lotto-total-display {
        font-size: 1.6em;
    }
    .add-to-basket-button {
        padding: 13px 28px;
        font-size: 1.1em;
    }
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    /* Hero Section */
    .standard-hero-banner {
        padding: 50px 15px;
        min-height: 280px;
    }
    .hero-title-standard-page {
        font-size: 2.2em;
    }
    .hero-subtitle-standard-page {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .draw-timer-countdown {
        gap: 15px;
        margin-bottom: 25px;
    }
    .timer-unit {
        font-size: 1.6em;
        padding: 10px 15px;
        min-width: 55px;
    }
    .cta-button-standard-page {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    /* Form Section */
    .standard-play-form-section {
        padding: 40px 0;
    }
    .lotto-form-card {
        padding: 25px;
    }
    .form-card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .lotto-input-group {
        margin-bottom: 18px;
    }
    .lotto-label, .lotto-checkbox-label {
        font-size: 0.95em;
    }
    .lotto-select {
        padding: 10px;
        font-size: 0.9em;
    }
    .lotto-radio-options {
        flex-direction: column; /* Stack radio options */
        gap: 10px;
    }
    .lotto-radio-options label {
        font-size: 0.9em;
    }
    .lotto-number-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr)); /* Smaller buttons */
        gap: 6px;
        padding: 10px;
    }
    .number-selection-button {
        padding: 8px 0; /* Adjust padding for smaller buttons */
        font-size: 0.9em;
    }
    .lotto-total-summary {
        gap: 10px;
        margin-top: 20px;
        padding-top: 15px;
    }
    .lotto-total-display {
        font-size: 1.4em;
    }
    .add-to-basket-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    /* Hero Section */
    .standard-hero-banner {
        padding: 40px 10px;
        min-height: 250px;
    }
    .hero-title-standard-page {
        font-size: 1.8em;
    }
    .hero-subtitle-standard-page {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .draw-timer-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .timer-unit {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 45px;
        flex: 1 1 auto;
    }
    .cta-button-standard-page {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Form Section */
    .standard-play-form-section {
        padding: 30px 0;
    }
    .lotto-form-card {
        padding: 20px;
    }
    .form-card-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .lotto-input-group {
        margin-bottom: 15px;
    }
    .lotto-label, .lotto-checkbox-label {
        font-size: 0.9em;
    }
    .lotto-select {
        padding: 8px;
        font-size: 0.85em;
    }
    .lotto-radio-options label {
        font-size: 0.85em;
    }
    .lotto-radio-options input[type="radio"],
    .lotto-checkbox-label input[type="checkbox"] {
        transform: scale(1.1);
    }
    .lotto-number-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
        gap: 5px;
        padding: 8px;
    }
    .number-selection-button {
        font-size: 0.8em;
    }
    .lotto-total-summary {
        gap: 8px;
        margin-top: 15px;
        padding-top: 10px;
    }
    .lotto-total-display {
        font-size: 1.2em;
    }
    .add-to-basket-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* results page */
/* --- Main Content Wrapper for Results Page --- */
.results-page-main-content {
    /* Acts as a container for sections, no specific styles by default */
}

/* --- Results Hero Banner --- */
.results-hero-banner {
    background: linear-gradient(rgba(10, 61, 98, 0.7), rgba(10, 61, 98, 0.7)), url('../assets/main.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-content-results-page {
    max-width: 800px;
    z-index: 10;
}

.hero-title-results-page {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-results-page {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.draw-timer-countdown { /* Reused from homepage/system/syndicate pages */
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.timer-unit { /* Reused from homepage/system/syndicate pages */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timer-label { /* Reused from homepage/system/syndicate pages */
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.cta-button-results-page {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-results-page:hover {
    background-color: #CC2B37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Latest Lottery Results Section --- */
.latest-lottery-results-section {
    background-color: var(--bg-medium); /* Light grey-blue background */
    padding: 60px 0;
}

.container-default { /* Reused for consistent content width */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.results-main-card {
    background-color: var(--results-card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--results-card-border);
}

.draw-summary-header {
    margin-bottom: 30px;
    text-align: center;
}

.draw-summary-header h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.draw-number {
    color: var(--secondary-color); /* Highlight draw number */
}

.draw-datetime-info {
    font-size: 1em;
    color: var(--text-dark);
    opacity: 0.8;
}

.draw-datetime-info strong {
    color: var(--primary-color);
}

.winning-numbers-panel {
    display: flex;
    flex-direction: column; /* Stack main and supplementary on small screens */
    gap: 20px;
    margin-top: 30px;
    align-items: center; /* Center horizontally */
}

.main-numbers-list, .supplementary-numbers-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Center balls */
    gap: 10px; /* Space between balls */
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
}

.main-numbers-list strong, .supplementary-numbers-list strong {
    white-space: nowrap; /* Prevent "Main Numbers:" from breaking */
    margin-right: 5px;
    color: var(--primary-color);
}

.result-lotto-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0; /* Prevent from shrinking */
}

.result-lotto-ball.main-ball {
    background-color: var(--results-main-ball-bg); /* Primary blue */
    color: var(--results-main-ball-text); /* Light text */
}

.result-lotto-ball.supplementary-ball {
    background-color: var(--results-supplementary-ball-bg); /* Secondary gold */
    color: var(--results-supplementary-ball-text); /* Primary text */
    border: 2px solid var(--primary-color); /* Add border for distinction */
}

.results-table-responsive-container {
    overflow-x: auto; /* Enable horizontal scrolling for table on small screens */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin-bottom: 30px;
    border: 1px solid var(--results-card-border); /* Border around the table */
    border-radius: 8px;
}

.draw-results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Minimum width to prevent squishing */
    background-color: var(--results-card-bg);
}

.draw-results-table th, .draw-results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--results-card-border);
    font-size: 0.95em;
    color: var(--text-dark);
}

.draw-results-table thead th {
    background-color: var(--table-header-bg);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1em;
}

.draw-results-table tbody tr:nth-child(even) {
    background-color: var(--table-row-even-bg);
}

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

.draw-results-table td:nth-child(3), /* Prize column */
.draw-results-table td:nth-child(4) { /* Winners column */
    text-align: right; /* Align numbers to the right */
    font-weight: 500;
}

.ticket-check-promo {
    background-color: var(--promo-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--results-card-border);
    margin-top: 40px; /* Space from table */
}

.check-ticket-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.check-ticket-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.ticket-check-button {
    background-color: var(--promo-button-bg);
    color: var(--promo-button-text);
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ticket-check-button:hover {
    background-color: var(--promo-button-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


/* --- Responsive Adjustments for Main Content --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    /* Hero Section */
    .results-hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-title-results-page {
        font-size: 2.5em;
    }
    .hero-subtitle-results-page {
        font-size: 1.1em;
    }
    .draw-timer-countdown {
        gap: 20px;
        margin-bottom: 30px;
    }
    .timer-unit {
        font-size: 2em;
        padding: 12px 20px;
        min-width: 70px;
    }
    .cta-button-results-page {
        padding: 14px 28px;
        font-size: 1.2em;
    }

    /* Results Display Section */
    .latest-lottery-results-section {
        padding: 50px 0;
    }
    .results-main-card {
        padding: 30px;
    }
    .draw-summary-header h2 {
        font-size: 2em;
    }
    .draw-datetime-info {
        font-size: 0.95em;
    }
    .main-numbers-list, .supplementary-numbers-list {
        font-size: 1em;
        gap: 8px;
    }
    .result-lotto-ball {
        width: 45px;
        height: 45px;
        font-size: 1.4em;
    }
    .draw-results-table th, .draw-results-table td {
        padding: 12px;
        font-size: 0.9em;
    }
    .ticket-check-promo {
        padding: 25px;
        margin-top: 30px;
    }
    .check-ticket-title {
        font-size: 1.6em;
    }
    .check-ticket-description {
        font-size: 0.95em;
    }
    .ticket-check-button {
        padding: 13px 28px;
        font-size: 1em;
    }
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    /* Hero Section */
    .results-hero-banner {
        padding: 50px 15px;
        min-height: 280px;
    }
    .hero-title-results-page {
        font-size: 2.2em;
    }
    .hero-subtitle-results-page {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .draw-timer-countdown {
        gap: 15px;
        margin-bottom: 25px;
    }
    .timer-unit {
        font-size: 1.6em;
        padding: 10px 15px;
        min-width: 55px;
    }
    .cta-button-results-page {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    /* Results Display Section */
    .latest-lottery-results-section {
        padding: 40px 0;
    }
    .results-main-card {
        padding: 25px;
    }
    .draw-summary-header h2 {
        font-size: 1.8em;
    }
    .draw-datetime-info {
        font-size: 0.85em;
    }
    .winning-numbers-panel {
        flex-direction: column; /* Ensure stacking on very small screens if needed */
        gap: 15px;
        margin-top: 20px;
    }
    .main-numbers-list, .supplementary-numbers-list {
        font-size: 0.9em;
        gap: 6px;
    }
    .result-lotto-ball {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
    .results-table-responsive-container {
        margin-bottom: 25px;
    }
    .draw-results-table th, .draw-results-table td {
        padding: 10px;
        font-size: 0.85em;
    }
    .draw-results-table {
        min-width: 500px; /* Allow shrinking a bit more */
    }
    .ticket-check-promo {
        padding: 20px;
        margin-top: 30px;
    }
    .check-ticket-title {
        font-size: 1.4em;
    }
    .check-ticket-description {
        font-size: 0.9em;
    }
    .ticket-check-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    /* Hero Section */
    .results-hero-banner {
        padding: 40px 10px;
        min-height: 250px;
    }
    .hero-title-results-page {
        font-size: 1.8em;
    }
    .hero-subtitle-results-page {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .draw-timer-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .timer-unit {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 45px;
        flex: 1 1 auto;
    }
    .cta-button-results-page {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Results Display Section */
    .latest-lottery-results-section {
        padding: 30px 0;
    }
    .results-main-card {
        padding: 20px;
    }
    .draw-summary-header h2 {
        font-size: 1.6em;
    }
    .draw-datetime-info {
        font-size: 0.8em;
    }
    .main-numbers-list, .supplementary-numbers-list {
        font-size: 0.8em;
        gap: 5px;
    }
    .result-lotto-ball {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }
    .draw-results-table {
        min-width: 380px; /* Minimum width for mobile table readability */
    }
    .draw-results-table th, .draw-results-table td {
        padding: 8px;
        font-size: 0.75em;
    }
    .ticket-check-promo {
        padding: 15px;
        margin-top: 25px;
    }
    .check-ticket-title {
        font-size: 1.2em;
    }
    .check-ticket-description {
        font-size: 0.85em;
    }
    .ticket-check-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* loto party */
/* --- Main Content Wrapper for Lotto Party Page --- */
.lotto-party-page-main-content {
    /* Acts as a container for sections, no specific styles by default */
}

/* --- Lotto Party Hero Banner --- */
.lotto-party-hero-banner {
    background: linear-gradient(rgba(10, 61, 98, 0.7), rgba(10, 61, 98, 0.7)), url('../assets/main.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-content-lotto-party-page {
    max-width: 800px;
    z-index: 10;
}

.hero-title-lotto-party-page {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-lotto-party-page {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.draw-timer-countdown { /* Reused from other pages */
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.timer-unit { /* Reused from other pages */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timer-label { /* Reused from other pages */
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.cta-button-lotto-party-page {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-lotto-party-page:hover {
    background-color: #CC2B37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Lotto Party Selection Section (Form and Cards) --- */
.lotto-party-selection-section {
    background-color: var(--bg-medium); /* Light grey-blue background */
    padding: 60px 0;
}

.container-default { /* Reused for consistent content width */
    max-width: 1000px; /* Wider for cards */
    margin: 0 auto;
    padding: 0 15px;
}

.lotto-form-card { /* Reused from system/syndicate page */
    background-color: var(--form-card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--form-border);
}

.form-card-title { /* Reused from system/syndicate page */
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.lotto-input-group { /* Reused from system/syndicate page */
    margin-bottom: 25px;
}

.input-group-title { /* Reused from syndicate page */
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.party-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid for party cards */
    gap: 20px;
    margin-bottom: 20px;
}

.party-option-card {
    background-color: var(--party-card-bg);
    border: 2px solid var(--party-card-border);
    border-radius: 10px;
    overflow: hidden; /* Hide overflow for image background */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Stretch children to fill card width */
}

.party-option-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.party-option-card.selected {
    border-color: var(--party-card-selected-border);
    box-shadow: 0 0 0 4px var(--party-card-selected-shadow);
    transform: translateY(-2px);
}

.party-image-background {
    height: 120px; /* Height for the background image area */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Example backgrounds - you'll need to create these images or use real URLs */
    /* Place these images in your assets folder: assets/party-bg-1.jpg, etc. */
}
.party-bg-1 { background-image: url('../assets/pa1.jpg'); }
.party-bg-2 { background-image: url('../assets/pa2.jpg'); }
.party-bg-3 { background-image: url('../assets/party-3.jpg'); }
.party-bg-4 { background-image: url('../assets/party-4.jpg'); }


.card-details {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1; /* Allow details section to grow */
}

.card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.9em;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 10px;
}

.card-price {
    font-size: 2em;
    font-weight: 700;
    color: var(--party-card-price-text);
    margin-bottom: 10px;
}

.card-price small {
    font-size: 0.5em;
    display: block;
    color: var(--text-dark);
    opacity: 0.7;
}

.card-games-info {
    font-size: 0.9em;
    color: var(--party-card-games-info-color);
    margin-bottom: 20px;
    font-weight: 500;
    display: block; /* Ensure it takes its own line */
}

.radio-select-label { /* Reused from syndicate page, with minor adjustments */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the radio button and text */
    font-size: 1em;
    font-weight: 500;
    color: var(--input-label-color);
    cursor: pointer;
    padding: 10px 0; /* Add padding for tap target */
    width: 100%; /* Ensure label covers full width of its content */
}

.radio-select-label input[type="radio"] { /* Reused from syndicate page */
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.lotto-select { /* Reused from system/syndicate page */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background-color: var(--input-bg);
    font-size: 1em;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056b3%22%20d%3D%22M287%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0L146.2%2C72.9L16.6%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0c-3.2-3.2-3.2-8.3%2C0-11.6l135.9-135.9c3.2-3.2%2C8.3-3.2%2C11.6%2C0l135.9%2C135.9C290.2%2C189.6%2C290.2%2C194.7%2C287%2C197.9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lotto-select:focus { /* Reused from other pages */
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.2);
}

.lotto-checkbox-label { /* Reused from other pages */
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    cursor: pointer;
}

.lotto-checkbox-label input[type="checkbox"] { /* Reused from other pages */
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
}

.party-action-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--form-border);
}

.party-total-display {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.add-to-basket-button { /* Reused from other pages */
    background-color: var(--add-to-basket-bg);
    color: var(--add-to-basket-text);
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-basket-button:hover { /* Reused from other pages */
    background-color: var(--add-to-basket-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Adjustments for Main Content --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    /* Hero Section */
    .lotto-party-hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-title-lotto-party-page {
        font-size: 2.5em;
    }
    .hero-subtitle-lotto-party-page {
        font-size: 1.1em;
    }
    .draw-timer-countdown {
        gap: 20px;
        margin-bottom: 30px;
    }
    .timer-unit {
        font-size: 2em;
        padding: 12px 20px;
        min-width: 70px;
    }
    .cta-button-lotto-party-page {
        padding: 14px 28px;
        font-size: 1.2em;
    }

    /* Selection Section */
    .lotto-party-selection-section {
        padding: 50px 0;
    }
    .lotto-form-card {
        padding: 30px;
    }
    .form-card-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .input-group-title {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    .party-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust min-width for smaller screens */
        gap: 15px;
    }
    .party-image-background {
        height: 100px; /* Adjust image height */
    }
    .card-details {
        padding: 12px 15px;
    }
    .card-title {
        font-size: 1.2em;
    }
    .card-subtitle, .card-games-info {
        font-size: 0.85em;
    }
    .card-price {
        font-size: 1.8em;
    }
    .radio-select-label {
        font-size: 0.95em;
    }
    .lotto-select, .lotto-checkbox-label {
        font-size: 0.95em;
    }
    .lotto-total-summary, .party-action-bar {
        gap: 15px;
        margin-top: 25px;
    }
    .party-total-display {
        font-size: 1.6em;
    }
    .add-to-basket-button {
        padding: 13px 28px;
        font-size: 1.1em;
    }
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    /* Hero Section */
    .lotto-party-hero-banner {
        padding: 50px 15px;
        min-height: 280px;
    }
    .hero-title-lotto-party-page {
        font-size: 2.2em;
    }
    .hero-subtitle-lotto-party-page {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .draw-timer-countdown {
        gap: 15px;
        margin-bottom: 25px;
    }
    .timer-unit {
        font-size: 1.6em;
        padding: 10px 15px;
        min-width: 55px;
    }
    .cta-button-lotto-party-page {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    /* Selection Section */
    .lotto-party-selection-section {
        padding: 40px 0;
    }
    .lotto-form-card {
        padding: 25px;
    }
    .form-card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .input-group-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    .party-card-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 15px;
    }
    .party-option-card {
        flex-direction: row; /* Horizontal layout for content within card */
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    .party-image-background {
        height: 80px; /* Smaller image background */
        width: 80px; /* Fixed width */
        border-radius: 8px; /* Slightly rounded corners for standalone image */
        margin-right: 15px; /* Space from details */
        flex-shrink: 0; /* Prevent shrinking */
    }
    .card-details {
        padding: 0;
        text-align: left; /* Align text left when horizontal */
        align-items: flex-start;
        flex-grow: 1; /* Allow details to take remaining space */
    }
    .card-title {
        font-size: 1.2em;
        margin-bottom: 2px;
    }
    .card-subtitle, .card-games-info {
        font-size: 0.8em;
        margin-bottom: 5px;
    }
    .card-price {
        font-size: 1.6em;
        margin-bottom: 5px;
    }
    .radio-select-label {
        font-size: 0.9em;
        padding: 5px 0;
        margin-left: auto; /* Push radio to the right */
        justify-content: flex-end; /* Align radio to the right */
        min-width: 80px; /* Ensure space for radio button */
    }

    .lotto-select {
        padding: 10px;
        font-size: 0.9em;
    }
    .lotto-checkbox-label {
        font-size: 0.95em;
    }
    .party-action-bar {
        gap: 10px;
        margin-top: 20px;
        padding-top: 15px;
    }
    .party-total-display {
        font-size: 1.4em;
    }
    .add-to-basket-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    /* Hero Section */
    .lotto-party-hero-banner {
        padding: 40px 10px;
        min-height: 250px;
    }
    .hero-title-lotto-party-page {
        font-size: 1.8em;
    }
    .hero-subtitle-lotto-party-page {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .draw-timer-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .timer-unit {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 45px;
        flex: 1 1 auto;
    }
    .cta-button-lotto-party-page {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Selection Section */
    .lotto-party-selection-section {
        padding: 30px 0;
    }
    .lotto-form-card {
        padding: 20px;
    }
    .form-card-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .input-group-title {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .party-card-grid {
        gap: 10px;
    }
    .party-option-card {
        flex-direction: column; /* Stack content vertically again for very small screens */
        text-align: center;
        align-items: center;
        padding: 15px;
    }
    .party-image-background {
        height: 100px; /* Adjust height */
        width: 100%; /* Fill width */
        border-radius: 5px; /* Less rounded */
        margin-right: 0;
        margin-bottom: 10px; /* Space below image */
    }
    .card-details {
        width: 100%; /* Ensure details take full width */
        text-align: center;
        align-items: center;
    }
    .card-title {
        font-size: 1.1em;
    }
    .card-subtitle, .card-games-info {
        font-size: 0.75em;
    }
    .card-price {
        font-size: 1.4em;
    }
    .radio-select-label {
        font-size: 0.85em;
        margin-left: 0;
        justify-content: center;
        padding: 5px 0;
    }

    .lotto-select {
        padding: 8px;
        font-size: 0.85em;
    }
    .lotto-checkbox-label {
        font-size: 0.9em;
    }
    .party-action-bar {
        gap: 8px;
        margin-top: 15px;
        padding-top: 10px;
    }
    .party-total-display {
        font-size: 1.2em;
    }
    .add-to-basket-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}


/* --- Main Content Wrapper for Basket Page --- */
.basket-page-main-content {
    /* Acts as a container for sections, no specific styles by default */
}

/* --- Basket Hero Banner --- */
.basket-hero-banner {
    background: linear-gradient(rgba(10, 61, 98, 0.7), rgba(10, 61, 98, 0.7)), url('/assets/main.jpeg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-content-basket-page {
    max-width: 800px;
    z-index: 10;
}

.hero-title-basket-page {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle-basket-page {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.draw-timer-countdown { /* Reused from homepage/other pages */
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.timer-unit { /* Reused from homepage/other pages */
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timer-label { /* Reused from homepage/other pages */
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    opacity: 0.8;
}

.cta-button-basket-page {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 16px 32px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-basket-page:hover {
    background-color: #CC2B37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Checkout Process Section --- */
.checkout-process-section {
    background-color: var(--bg-medium); /* Light grey-blue background */
    padding: 60px 0;
}

.container-default { /* Reused for consistent content width */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.checkout-grid-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 40px;
}

.checkout-form-column, .ticket-summary-column {
    background-color: var(--checkout-form-bg);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--checkout-form-border);
}

.checkout-form-title, .ticket-summary-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-field-border);
    border-radius: 6px;
    background-color: var(--input-field-bg);
    font-size: 1em;
    color: var(--text-dark);
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    appearance: none; /* For select, remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230056b3%22%20d%3D%22M287%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0L146.2%2C72.9L16.6%2C197.9c-3.2%2C3.2-8.3%2C3.2-11.6%2C0c-3.2-3.2-3.2-8.3%2C0-11.6l135.9-135.9c3.2-3.2%2C8.3-3.2%2C11.6%2C0l135.9%2C135.9C290.2%2C189.6%2C290.2%2C194.7%2C287%2C197.9z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow for select */
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer; /* For select element */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: var(--input-field-focus-border);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.2);
}

.payment-summary-box {
    background-color: var(--payment-summary-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.payment-total-label {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.payment-amount {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.pay-now-button {
    background-color: var(--pay-now-button-bg);
    color: var(--pay-now-button-text);
    padding: 16px 35px;
    font-size: 1.3em;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%; /* Full width button */
    max-width: 300px; /* Limit max width for better aesthetic */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pay-now-button:hover {
    background-color: var(--pay-now-button-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Ticket Summary Column --- */
.ticket-summary-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-item {
    background-color: var(--ticket-summary-bg);
    border: 1px solid var(--ticket-item-border);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.ticket-type-label {
    background-color: var(--ticket-type-label-bg);
    color: var(--ticket-type-label-text);
    font-size: 0.85em;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: -10px;
    left: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap; /* Prevent text wrapping */
}

.ticket-details {
    flex-grow: 1;
    padding-left: 10px; /* Space from label area */
}

.ticket-details p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.95em;
    color: var(--text-dark);
}

.ticket-numbers {
    margin-bottom: 5px !important;
}

.number-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--ticket-number-ball-bg); /* Gold color */
    color: var(--ticket-number-ball-text); /* Primary blue text */
    font-size: 1.1em;
    font-weight: 600;
    margin: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.number-ball.supplementary {
    background-color: var(--ticket-supplementary-ball-bg); /* Primary blue */
    color: var(--ticket-supplementary-ball-text); /* White text */
}

.number-ball.text-display { /* For syndicate text within a ball-like element */
    width: auto;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9em;
    background-color: var(--bg-medium);
    color: var(--text-dark);
    box-shadow: none;
}

.ticket-price, .ticket-note {
    font-size: 0.9em;
    color: var(--text-dark);
    opacity: 0.8;
}

.remove-ticket-button {
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--remove-button-color);
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.remove-ticket-button:hover {
    color: var(--remove-button-hover-color);
    transform: scale(1.1);
}


/* --- Thank You Modal --- */
.thank-you-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none; /* Hidden by default, controlled by JS */
}

.thank-you-modal-content {
    background-color: var(--modal-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-title {
    font-size: 2.5em;
    color: var(--modal-title-color);
    margin-bottom: 10px;
}

.modal-message {
    font-size: 1.1em;
    color: var(--modal-message-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-button {
    background-color: var(--modal-button-bg);
    color: var(--modal-button-text);
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width buttons */
    box-sizing: border-box;
}

.modal-button:hover {
    background-color: var(--modal-button-hover-bg);
    transform: translateY(-2px);
}

.modal-button.secondary {
    background-color: var(--modal-button-secondary-bg);
    color: var(--modal-button-secondary-text);
}

.modal-button.secondary:hover {
    background-color: var(--modal-button-secondary-hover-bg);
    color: var(--primary-color);
}


/* --- Responsive Adjustments for Main Content & Modal --- */

/* For devices up to 1024px wide */
@media (max-width: 1024px) {
    /* Hero Section */
    .basket-hero-banner {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero-title-basket-page {
        font-size: 2.5em;
    }
    .hero-subtitle-basket-page {
        font-size: 1.1em;
    }
    .draw-timer-countdown {
        gap: 20px;
        margin-bottom: 30px;
    }
    .timer-unit {
        font-size: 2em;
        padding: 12px 20px;
        min-width: 70px;
    }
    .cta-button-basket-page {
        padding: 14px 28px;
        font-size: 1.2em;
    }

    /* Checkout Section */
    .checkout-process-section {
        padding: 50px 0;
    }
    .checkout-form-column, .ticket-summary-column {
        padding: 30px;
    }
    .checkout-form-title, .ticket-summary-title {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .checkout-form input, .checkout-form select {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .payment-summary-box {
        padding: 20px;
        gap: 12px;
    }
    .payment-total-label {
        font-size: 1.1em;
    }
    .payment-amount {
        font-size: 2em;
    }
    .pay-now-button {
        padding: 14px 30px;
        font-size: 1.2em;
    }
    .ticket-item {
        padding: 12px;
    }
    .ticket-type-label {
        font-size: 0.8em;
        padding: 4px 8px;
        top: -8px;
        left: 8px;
    }
    .ticket-details p {
        font-size: 0.9em;
    }
    .number-ball {
        width: 28px;
        height: 28px;
        font-size: 1em;
        margin: 2px;
    }
    .number-ball.text-display {
        font-size: 0.8em;
        padding: 4px 8px;
    }
    .remove-ticket-button {
        font-size: 1.6em;
    }

    /* Modal */
    .thank-you-modal-content {
        padding: 30px;
        gap: 15px;
    }
    .modal-title {
        font-size: 2em;
    }
    .modal-message {
        font-size: 1em;
    }
    .modal-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* For devices up to 768px wide */
@media (max-width: 768px) {
    /* Hero Section */
    .basket-hero-banner {
        padding: 50px 15px;
        min-height: 280px;
    }
    .hero-title-basket-page {
        font-size: 2.2em;
    }
    .hero-subtitle-basket-page {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .draw-timer-countdown {
        gap: 15px;
        margin-bottom: 25px;
    }
    .timer-unit {
        font-size: 1.6em;
        padding: 10px 15px;
        min-width: 55px;
    }
    .cta-button-basket-page {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    /* Checkout Section */
    .checkout-process-section {
        padding: 40px 0;
    }
    .checkout-grid-layout {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    .checkout-form-column, .ticket-summary-column {
        padding: 25px;
    }
    .checkout-form-title, .ticket-summary-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .checkout-form {
        gap: 15px;
    }
    .checkout-form input, .checkout-form select {
        padding: 10px;
        font-size: 0.9em;
    }
    .payment-summary-box {
        padding: 18px;
        gap: 10px;
    }
    .payment-total-label {
        font-size: 1em;
    }
    .payment-amount {
        font-size: 1.8em;
    }
    .pay-now-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .ticket-summary-list {
        gap: 15px;
    }
    .ticket-item {
        padding: 10px;
        flex-wrap: wrap; /* Allow content to wrap */
        justify-content: center; /* Center horizontally if wrapping */
        text-align: center;
    }
    .ticket-type-label {
        position: static; /* Remove absolute positioning on mobile */
        margin-bottom: 10px;
        padding: 6px 10px;
        font-size: 0.75em;
        order: -1; /* Place at the top */
        width: fit-content;
        text-align: center;
    }
    .ticket-details {
        padding-left: 0;
        text-align: center;
        width: 100%; /* Take full width */
    }
    .ticket-details p {
        font-size: 0.85em;
    }
    .number-ball {
        width: 25px;
        height: 25px;
        font-size: 1em;
        margin: 2px;
    }
    .number-ball.text-display {
        font-size: 0.75em;
        padding: 3px 6px;
    }
    .remove-ticket-button {
        position: absolute; /* Keep remove button accessible */
        top: 5px;
        right: 5px;
        font-size: 1.5em;
        margin-left: 0;
        padding: 3px;
    }

    /* Modal */
    .thank-you-modal-content {
        padding: 25px;
        gap: 12px;
    }
    .modal-title {
        font-size: 1.8em;
    }
    .modal-message {
        font-size: 0.95em;
    }
    .modal-button {
        padding: 10px 18px;
        font-size: 1em;
    }
}

/* For very small devices (e.g., phones in portrait) */
@media (max-width: 480px) {
    /* Hero Section */
    .basket-hero-banner {
        padding: 40px 10px;
        min-height: 250px;
    }
    .hero-title-basket-page {
        font-size: 1.8em;
    }
    .hero-subtitle-basket-page {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .draw-timer-countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .timer-unit {
        font-size: 1.2em;
        padding: 8px 10px;
        min-width: 45px;
        flex: 1 1 auto;
    }
    .cta-button-basket-page {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Checkout Section */
    .checkout-process-section {
        padding: 30px 0;
    }
    .checkout-form-column, .ticket-summary-column {
        padding: 20px;
    }
    .checkout-form-title, .ticket-summary-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .checkout-form {
        gap: 12px;
    }
    .checkout-form input, .checkout-form select {
        padding: 8px;
        font-size: 0.85em;
    }
    .payment-summary-box {
        padding: 15px;
        gap: 8px;
    }
    .payment-total-label {
        font-size: 0.9em;
    }
    .payment-amount {
        font-size: 1.6em;
    }
    .pay-now-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .ticket-summary-list {
        gap: 10px;
    }
    .ticket-item {
        padding: 8px;
    }
    .ticket-type-label {
        font-size: 0.7em;
        padding: 4px 6px;
        margin-bottom: 8px;
    }
    .ticket-details p {
        font-size: 0.8em;
    }
    .number-ball {
        width: 22px;
        height: 22px;
        font-size: 0.9em;
        margin: 1px;
    }
    .number-ball.text-display {
        font-size: 0.7em;
        padding: 2px 5px;
    }
    .remove-ticket-button {
        font-size: 1.3em;
        top: 3px;
        right: 3px;
    }

    /* Modal */
    .thank-you-modal-content {
        padding: 20px;
        gap: 10px;
    }
    .modal-title {
        font-size: 1.6em;
    }
    .modal-message {
        font-size: 0.9em;
    }
    .modal-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}