/* New Modern Design System */
:root {
    /* Primary Colors */
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --primary-400: #94a3b8;
    --primary-300: #cbd5e1;
    --primary-200: #e2e8f0;
    --primary-100: #f1f5f9;
    --primary-50: #f8fafc;
    
    /* Accent Colors */
    --accent-900: #7c2d12;
    --accent-800: #9a3412;
    --accent-700: #c2410c;
    --accent-600: #ea580c;
    --accent-500: #f97316;
    --accent-400: #fb923c;
    --accent-300: #fdba74;
    --accent-200: #fed7aa;
    --accent-100: #ffedd5;
    --accent-50: #fff7ed;
    
    /* Success Colors */
    --success-900: #14532d;
    --success-800: #166534;
    --success-700: #15803d;
    --success-600: #16a34a;
    --success-500: #22c55e;
    --success-400: #4ade80;
    --success-300: #86efac;
    --success-200: #bbf7d0;
    --success-100: #dcfce7;
    --success-50: #f0fdf4;
    
    /* Warning Colors */
    --warning-900: #78350f;
    --warning-800: #92400e;
    --warning-700: #b45309;
    --warning-600: #d97706;
    --warning-500: #f59e0b;
    --warning-400: #fbbf24;
    --warning-300: #fcd34d;
    --warning-200: #fde68a;
    --warning-100: #fef3c7;
    --warning-50: #fffbeb;
    
    /* Error Colors */
    --error-900: #7f1d1d;
    --error-800: #991b1b;
    --error-700: #b91c1c;
    --error-600: #dc2626;
    --error-500: #ef4444;
    --error-400: #f87171;
    --error-300: #fca5a5;
    --error-200: #fecaca;
    --error-100: #fee2e2;
    --error-50: #fef2f2;
    
    /* Neutral Colors */
    --neutral-900: #171717;
    --neutral-800: #262626;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #737373;
    --neutral-400: #a3a3a3;
    --neutral-300: #d4d4d4;
    --neutral-200: #e5e5e5;
    --neutral-100: #f5f5f5;
    --neutral-50: #fafafa;
    
    /* Text Colors */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-700);
    --text-tertiary: var(--neutral-500);
    --text-inverse: var(--neutral-50);
    --text-muted: var(--neutral-400);
    
    /* Background Colors */
    --bg-primary: var(--neutral-50);
    --bg-secondary: var(--neutral-100);
    --bg-tertiary: var(--neutral-200);
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Border Colors */
    --border-primary: var(--neutral-200);
    --border-secondary: var(--neutral-300);
    --border-focus: var(--accent-500);
    
    /* Shadow System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing Scale */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;
    --space-1: 0.25rem;
    --space-1-5: 0.375rem;
    --space-2: 0.5rem;
    --space-2-5: 0.625rem;
    --space-3: 0.75rem;
    --space-3-5: 0.875rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-9: 2.25rem;
    --space-10: 2.5rem;
    --space-11: 2.75rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;
    --space-36: 9rem;
    --space-40: 10rem;
    --space-44: 11rem;
    --space-48: 12rem;
    --space-52: 13rem;
    --space-56: 14rem;
    --space-60: 15rem;
    --space-64: 16rem;
    --space-72: 18rem;
    --space-80: 20rem;
    --space-96: 24rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;
    --text-9xl: 8rem;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Font Weights */
    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Transitions */
    --transition-none: none;
    --transition-all: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), fill 0.15s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-opacity: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-shadow: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-transform: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Modern Font Stack */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* General Body Styles */
body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin-top: 0;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--modern-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

a:hover {
    color: var(--hover-color);
    transform: translateY(-1px);
}

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

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

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

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

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-light {
    font-weight: 300;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.transition {
    transition: all var(--transition-normal);
}

.transition-fast {
    transition: all var(--transition-fast);
}

.transition-slow {
    transition: all var(--transition-slow);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-1px);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-2px);
}

.hover\:-translate-y-3:hover {
    transform: translateY(-3px);
}

/* --- New Modern Header Styles --- */
.new-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-sm);
}

.header-top-bar {
    background: var(--primary-900);
    color: var(--text-inverse);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.header-top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left .welcome-text {
    font-weight: var(--font-medium);
}

.top-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.top-phone {
    color: var(--accent-400);
    text-decoration: none;
    font-weight: var(--font-semibold);
    transition: var(--transition-colors);
}

.top-phone:hover {
    color: var(--accent-300);
}

.top-divider {
    color: var(--neutral-400);
}

.top-support {
    color: var(--neutral-300);
}

.header-main {
    padding: var(--space-6) 0;
}

.header-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-900);
    margin: 0;
    line-height: var(--leading-tight);
}

.logo-subtitle {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin: 0;
    font-weight: var(--font-medium);
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-500);
    transition: var(--transition-all);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-cta-button {
    background: var(--accent-500);
    color: var(--text-inverse);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.header-cta-button:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-all);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-all);
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--accent-500);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: var(--z-modal-backdrop);
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-all);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.mobile-nav-drawer {
    background: var(--bg-elevated);
    width: 100%;
    height: 100%;
    max-width: 360px;
    transform: translateX(100%);
    transition: var(--transition-transform);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow-y: auto;
    border-left: 1px solid var(--border-primary);
}

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

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.mobile-logo-img {
    height: 40px;
    width: auto;
}

.mobile-logo-text {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.mobile-nav-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--text-3xl);
    cursor: pointer;
    transition: var(--transition-colors);
    padding: var(--space-2);
    border-radius: var(--radius-md);
    line-height: 1;
}

.mobile-nav-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.mobile-nav-list {
    margin: 0;
    padding: var(--space-4) 0;
    list-style: none;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-primary);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-4) var(--space-6);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: var(--transition-colors);
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.mobile-nav-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.mobile-cta-button {
    display: block;
    width: 100%;
    background: var(--accent-500);
    color: var(--text-inverse);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-align: center;
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.mobile-cta-button:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Header Responsive */
@media (max-width: 768px) {
    .header-top-bar {
        padding: var(--space-1) 0;
    }
    
    .header-top-bar .container {
        padding: 0 var(--space-3);
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
    
    .header-main {
        padding: var(--space-4) 0;
    }
    
    .header-main .container {
        padding: 0 var(--space-3);
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    .logo-section {
        order: 1;
        flex: 1;
    }
    
    .main-navigation {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: var(--space-2) 0;
    }
    
    .nav-list {
        gap: var(--space-0);
        min-width: max-content;
    }
    
    .nav-link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
        white-space: nowrap;
    }
    
    .header-actions {
        order: 2;
        gap: var(--space-2);
    }
    
    .header-cta-button {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: var(--text-xl);
    }
    
    .logo-subtitle {
        font-size: var(--text-xs);
    }
    
    .nav-link {
        padding: var(--space-1-5) var(--space-2);
        font-size: var(--text-xs);
    }
}

/* --- New Modern System Entry Form Section --- */
.new-system-entry-form-section {
    background: var(--bg-secondary);
    padding: var(--space-16) 0;
}

.form-section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.form-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.form-section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.form-section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.new-lotto-form-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-primary);
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.form-card-icon {
    font-size: var(--text-3xl);
    background: var(--accent-100);
    color: var(--accent-600);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.new-lotto-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.label-icon {
    font-size: var(--text-lg);
}

.form-select {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: var(--transition-all);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-100);
}

.form-select:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-colors);
}

.radio-option:hover {
    background: var(--bg-secondary);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition-all);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--accent-500);
    background: var(--accent-500);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
}

.radio-text {
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-colors);
}

.checkbox-option:hover {
    background: var(--bg-secondary);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-all);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--accent-500);
    background: var(--accent-500);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
}

.checkbox-text {
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.number-selection-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.form-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.summary-label {
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

.summary-value {
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.summary-value.total-cost {
    color: var(--accent-600);
    font-size: var(--text-lg);
}

.form-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-end;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition-all);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
}

.btn-primary {
    background: var(--accent-500);
    color: var(--text-inverse);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- New Modern How System Works Section --- */
.new-how-system-works-section {
    background: var(--bg-primary);
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.info-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-primary);
    transition: var(--transition-all);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.info-card-icon {
    font-size: var(--text-2xl);
    background: var(--accent-100);
    color: var(--accent-600);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.info-card-content {
    color: var(--text-secondary);
}

.info-card-text {
    margin-bottom: var(--space-3);
    line-height: var(--leading-relaxed);
}

.info-card-text:last-child {
    margin-bottom: 0;
}

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

.info-card-list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-primary);
    line-height: var(--leading-relaxed);
}

.info-card-list li:last-child {
    border-bottom: none;
}

.system-example {
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    border: 1px solid var(--border-primary);
}

.example-header {
    margin-bottom: var(--space-6);
}

.example-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.example-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

.example-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.selected-numbers {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}

.number-badge {
    background: var(--accent-500);
    color: var(--text-inverse);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
}

.arrow {
    font-size: var(--text-2xl);
    color: var(--accent-500);
    font-weight: var(--font-bold);
}

.combinations-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2);
    max-width: 600px;
}

.combination {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .system-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .summary-details {
        grid-template-columns: 1fr;
    }
    
    .combinations-preview {
        grid-template-columns: 1fr;
    }
}

/* --- New Modern Syndicate Purchase Form Section --- */
.new-syndicate-purchase-form-section {
    background: var(--bg-secondary);
    padding: var(--space-16) 0;
}

.new-syndicate-form-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border-primary);
}

.new-syndicate-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.form-step {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    background: var(--bg-primary);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
}

.step-number {
    background: var(--accent-500);
    color: var(--text-inverse);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
}

.step-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.syndicate-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.pack-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    text-align: center;
    transition: var(--transition-all);
    cursor: pointer;
}

.pack-card:hover {
    border-color: var(--accent-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pack-card.selected {
    border-color: var(--accent-500);
    background: var(--accent-50);
    box-shadow: var(--shadow-lg);
}

.pack-header {
    margin-bottom: var(--space-4);
}

.pack-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.pack-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.pack-details {
    margin-bottom: var(--space-4);
}

.games-count {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.pack-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--accent-600);
}

.price-unit {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--text-secondary);
}

.pack-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-colors);
}

.pack-radio:hover {
    background: var(--bg-secondary);
}

.pack-radio input[type="radio"] {
    display: none;
}

.pack-radio .radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition-all);
}

.pack-radio input[type="radio"]:checked + .radio-custom {
    border-color: var(--accent-500);
    background: var(--accent-500);
}

.pack-radio input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: var(--radius-full);
}

.radio-text {
    font-weight: var(--font-medium);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.shares-selection {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.shares-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.info-icon {
    font-size: var(--text-lg);
}

.info-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.autoplay-option {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.autoplay-benefits {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.benefit {
    background: var(--success-100);
    color: var(--success-700);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

/* --- New Modern Syndicate Details Section --- */
.new-syndicate-details-section {
    background: var(--bg-primary);
    padding: var(--space-16) 0;
}

.syndicate-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--warning-50);
    border: 1px solid var(--warning-200);
    border-radius: var(--radius-lg);
}

.note-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.note-text {
    font-size: var(--text-sm);
    color: var(--warning-700);
    line-height: var(--leading-relaxed);
}

.ticket-types {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.ticket-type {
    background: var(--accent-100);
    color: var(--accent-700);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border: 1px solid var(--accent-200);
}

.info-link {
    color: var(--accent-600);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: var(--transition-colors);
}

.info-link:hover {
    color: var(--accent-700);
    text-decoration: underline;
}

.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--warning-50);
    border: 1px solid var(--warning-200);
    border-radius: var(--radius-lg);
}

.disclaimer-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.disclaimer-text {
    font-size: var(--text-sm);
    color: var(--warning-700);
    line-height: var(--leading-relaxed);
}

/* Responsive Design for Syndicate Sections */
@media (max-width: 768px) {
    .syndicate-packs-grid {
        grid-template-columns: 1fr;
    }
    
    .syndicate-info-grid {
        grid-template-columns: 1fr;
    }
    
    .autoplay-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .ticket-types {
        justify-content: center;
    }
}

/* --- New Modern Lotto Party Selection Section --- */
.new-lotto-party-selection-section {
    background: var(--bg-secondary);
    padding: var(--space-16) 0;
}

.new-party-form-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border-primary);
}

.new-party-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.party-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
}

.party-pack-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: var(--transition-all);
    cursor: pointer;
    position: relative;
}

.party-pack-card:hover {
    border-color: var(--accent-400);
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.party-pack-card.selected {
    border-color: var(--accent-500);
    background: var(--accent-50);
    box-shadow: var(--shadow-2xl);
}

.pack-visual {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pack-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
}

.pack-gradient-1 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.pack-gradient-2 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pack-gradient-3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pack-gradient-4 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.pack-icon {
    font-size: var(--text-4xl);
    color: white;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pack-content {
    padding: var(--space-5);
}

.pack-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    text-align: center;
}

.pack-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 var(--space-4) 0;
    font-style: italic;
}

.pack-details {
    margin-bottom: var(--space-4);
    text-align: center;
}

.games-count {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-weight: var(--font-medium);
}

.pack-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--accent-600);
}

.price-unit {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--text-secondary);
}

.pack-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: var(--transition-colors);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

.pack-radio:hover {
    background: var(--accent-50);
    border-color: var(--accent-300);
}

.pack-radio input[type="radio"] {
    display: none;
}

.pack-radio .radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition-all);
}

.pack-radio input[type="radio"]:checked + .radio-custom {
    border-color: var(--accent-500);
    background: var(--accent-500);
}

.pack-radio input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: var(--radius-full);
}

.radio-text {
    font-weight: var(--font-medium);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

/* Responsive Design for Lotto Party Section */
@media (max-width: 768px) {
    .party-packs-grid {
        grid-template-columns: 1fr;
    }
    
    .pack-visual {
        height: 100px;
    }
    
    .pack-icon {
        font-size: var(--text-3xl);
    }
}

/* --- New Modern Latest Lottery Results Section --- */
.new-latest-lottery-results-section {
    background: var(--bg-secondary);
    padding: var(--space-16) 0;
}

.new-results-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--border-primary);
}

.results-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.draw-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.draw-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--accent-500);
    color: var(--text-inverse);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    width: fit-content;
}

.draw-icon {
    font-size: var(--text-lg);
}

.draw-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.draw-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.detail-icon {
    font-size: var(--text-lg);
    color: var(--accent-500);
}

.detail-label {
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.detail-value {
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.winning-numbers-display {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

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

.numbers-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-4) 0;
}

.numbers-grid {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.number-ball {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.number-ball.main-ball {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

.number-ball.supplementary-ball {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
}

.results-table-container {
    margin-bottom: var(--space-8);
}

.table-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.table-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.table-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.results-table {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-primary);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    border-bottom: 1px solid var(--border-primary);
}

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

.table-row.header-row {
    background: var(--bg-secondary);
    font-weight: var(--font-bold);
}

.table-cell {
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-cell {
    color: var(--text-primary);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.division-cell {
    flex-direction: column;
    gap: var(--space-1);
}

.division-number {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--accent-600);
}

.division-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.prize-cell {
    font-weight: var(--font-bold);
    color: var(--success-600);
    font-size: var(--text-lg);
}

.winners-cell {
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.ticket-check-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
}

.check-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.check-icon {
    font-size: var(--text-2xl);
}

.check-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.check-description {
    color: var(--text-secondary);
    margin: 0 0 var(--space-6) 0;
    line-height: var(--leading-relaxed);
}

.check-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- New Modern Statistics Analysis Section --- */
.new-statistics-analysis-section {
    background: var(--bg-primary);
    padding: var(--space-16) 0;
}

.new-stats-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--border-primary);
}

.stats-intro {
    text-align: center;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.intro-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.intro-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-4) 0;
}

.intro-text {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-4) 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.frequency-chart-container {
    margin-bottom: var(--space-8);
}

.chart-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.chart-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.chart-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.frequency-chart {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.chart-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.chart-item.reverse {
    direction: rtl;
}

.chart-item.reverse .stat-info {
    direction: ltr;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
}

.stat-info.left {
    text-align: right;
}

.stat-info.right {
    text-align: left;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.number-ball {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    color: var(--text-inverse);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--bg-elevated);
}

.stats-insights {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.insights-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.insights-icon {
    font-size: var(--text-2xl);
}

.insights-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.insight-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.insight-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.insight-text {
    color: var(--text-primary);
    font-weight: var(--font-medium);
    line-height: var(--leading-relaxed);
}

/* Responsive Design for Results and Statistics Sections */
@media (max-width: 768px) {
    .results-header {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .numbers-grid {
        gap: var(--space-2);
    }
    
    .number-ball {
        width: 40px;
        height: 40px;
        font-size: var(--text-sm);
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .table-cell {
        padding: var(--space-2);
        justify-content: flex-start;
    }
    
    .chart-item {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        text-align: center;
    }
    
    .stat-info.left,
    .stat-info.right {
        text-align: center;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .check-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Modern Hero Section --- */
.hero-banner {
    background: var(--gradient-primary);
    color: var(--text-light);
    text-align: center;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/main.avif') no-repeat center center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.draw-timer-countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.timer-unit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 2.5em;
    font-weight: 700;
    color: var(--modern-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.timer-unit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.2);
}

.timer-label {
    font-size: 0.5em;
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta-button {
    background: var(--gradient-secondary);
    color: var(--text-light);
    padding: 1.2rem 2.5rem;
    font-size: 1.4em;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-block;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-success);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Modern Features/Benefits Section --- */
.benefits-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.section-title {
    font-size: 3.5em;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-light);
    font-weight: 800;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    animation: fadeInUp 1s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .section-title {
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.benefits-list {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.4em;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.benefits-list li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.benefit-icon {
    color: var(--modern-secondary);
    font-size: 2em;
    margin-right: 1rem;
    line-height: 1;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.benefits-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.benefits-image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.benefits-image-gallery img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(255, 255, 255, 0.4);
    filter: brightness(1.1) contrast(1.1);
}

/* --- Modern Lotto Information Section (Accordion) --- */
.lotto-information-section {
    padding: 5rem 0;
    background: var(--bg-medium);
}

.info-accordion-container {
    margin-top: 2rem;
}

.info-item {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.info-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-item-heading {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    cursor: pointer;
    margin: 0;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
    font-weight: 600;
}

.info-item-heading:hover {
    background: var(--gradient-secondary);
    transform: scale(1.02);
}

.info-item-heading::after {
    content: '+';
    font-size: 1.5em;
    transition: transform var(--transition-normal);
    font-weight: 300;
}

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

.info-item-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.info-item.active .info-item-content {
    max-height: 500px;
    padding: 1.5rem;
}

.info-item-content p {
    margin-bottom: 1rem;
    font-size: 1em;
    line-height: 1.7;
}

.odds-table-display {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

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

.odds-table-header-row {
    background: var(--gradient-primary);
    font-weight: 600;
    color: var(--text-light);
}

.odds-table-header-row .odds-header-cell, .odds-table-row .odds-cell {
    padding: 1rem 1.5rem;
    text-align: center;
}

.odds-table-row:nth-child(even) {
    background: var(--bg-medium);
}

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

.odds-table-row:hover {
    background: var(--bg-light);
    transform: scale(1.01);
    transition: all var(--transition-normal);
}

.draw-info-list, .strategy-options-list {
    margin-top: 1rem;
}

.draw-info-list li, .strategy-options-list li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.draw-info-list li:hover, .strategy-options-list li:hover {
    background: var(--bg-medium);
    transform: translateX(5px);
}

.draw-info-list strong {
    color: var(--modern-primary);
    font-weight: 600;
}

/* --- Modern Footer Styles --- */
.modern-site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 1rem;
    font-size: 0.95em;
    position: relative;
}

.footer-content-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    padding-bottom: 3rem;
}

.footer-section {
    padding: 0;
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modern-footer-logo {
    display: block;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

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

.modern-footer-logo-image {
    height: 60px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.3));
    transition: all var(--transition-normal);
}

.modern-footer-logo-image:hover {
    filter: drop-shadow(0 0 15px rgba(52, 152, 219, 0.5));
}

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

.modern-footer-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4em;
    color: var(--modern-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

.modern-footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
}

.modern-footer-link-list li {
    margin-bottom: 0.75rem;
}

.modern-footer-link-list a {
    color: var(--footer-text);
    opacity: 0.9;
    font-size: 1.05em;
    transition: all var(--transition-normal);
    padding: 0.25rem 0;
    border-radius: var(--radius-sm);
}

.modern-footer-link-list a:hover {
    color: var(--modern-secondary);
    opacity: 1;
    text-decoration: none;
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
}

.modern-responsibility-details {
    margin-top: 2rem;
    font-size: 0.88em;
    line-height: 1.5;
    opacity: 0.8;
}

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

.modern-responsibility-details a {
    color: var(--modern-secondary);
    text-decoration: underline;
    transition: all var(--transition-normal);
}

.modern-responsibility-details a:hover {
    color: var(--modern-primary);
    text-decoration: none;
}

.footer-trust-badges-area {
    text-align: center;
}

.modern-trust-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    justify-content: center;
}

.modern-age-restriction-badge {
    background: var(--gradient-secondary);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.2em;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.modern-age-restriction-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.modern-trust-badges-container img {
    height: 45px;
    opacity: 0.9;
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
}

.modern-trust-badges-container img:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.footer-copyright-bar {
    border-top: 1px solid var(--footer-border);
    padding: 1.5rem 15px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* --- Modern Cookie Consent Bar --- */
.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all var(--transition-slow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.cookie-consent-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    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;
    line-height: 1.5;
}

.cookie-accept-button {
    background: var(--gradient-secondary);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.cookie-accept-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-success);
}

/* --- Modern Age Verification Modal --- */
.age-verification-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.age-verification-modal-content {
    background: var(--accent-100);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.age-verification-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.age-check-title {
    color: var(--text-dark);
    font-size: 2em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.age-check-message {
    font-size: 1.1em;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.age-confirm-button {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    margin-right: 1rem;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.age-confirm-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-success);
}

.age-deny-button {
    background: var(--gradient-secondary);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.age-deny-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-warning);
}

/* --- Modern Scroll to Top Button --- */
.scroll-to-top-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8em;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 60px;
    max-height: 60px;
}

.scroll-to-top-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-secondary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .scroll-to-top-button {
        display: none;
    }
    .main-nav {
        display: none;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.5em;
    }
    
    .benefits-list li {
        font-size: 1.2em;
        padding: 1.2rem;
    }
    
    .benefit-icon {
        font-size: 1.8em;
    }
    
    .benefits-image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .menu-toggle-btn {
        display: block;
    }

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

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

    .draw-timer-countdown {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .timer-unit {
        font-size: 2em;
        padding: 1rem 1.5rem;
        min-width: 80px;
    }

    .hero-cta-button {
        padding: 1rem 2rem;
        font-size: 1.2em;
    }

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

    .benefits-image-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-content-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand-info,
    .footer-nav-links,
    .footer-legal-compliance,
    .footer-trust-badges-area {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .scroll-to-top-button {
        display: none;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .mobile-nav-overlay {
        width: 100vw;
        max-width: 100vw;
    }
    
    .mobile-nav-drawer {
        width: 280px;
        max-width: 280px;
    }
    
    .site-logo {
        font-size: 1.5em;
    }

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

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

    .timer-unit {
        font-size: 1.5em;
        padding: 0.75rem 1rem;
        min-width: 60px;
    }

    .age-verification-modal-content {
        padding: 2rem;
    }

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

    .age-confirm-button,
    .age-deny-button {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .benefits-grid {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .benefits-list li {
        font-size: 1.1em;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .benefit-icon {
        font-size: 1.6em;
        margin-right: 0.8rem;
    }
    
    .benefits-image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.6rem;
    }
    
}

/* terms */

/* --- Terms Page Specific Styles --- */
.content-section-terms {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-section-terms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.container-terms-privacy {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.main-page-title {
    font-size: 3.5em;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    animation: fadeInUp 1s ease-out;
}

.intro-paragraph {
    font-size: 1.4em;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.terms-section {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.terms-section:last-of-type {
    margin-bottom: 0;
}

.terms-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.section-heading-terms {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    margin: 0;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
    font-weight: 600;
}

.terms-section p {
    padding: 0 1.5rem;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.terms-section strong {
    color: var(--modern-primary);
    font-weight: 600;
}

.terms-contact-info {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    padding: 1.5rem;
    font-size: 1em;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

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

/* Policy */
/* --- Policy Page Specific Styles (using the new content colors) --- */
.content-section-policy {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-section-policy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.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: 3.5em;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    animation: fadeInUp 1s ease-out;
}

.intro-paragraph { /* Reused class from terms page */
    font-size: 1.4em;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.policy-section { /* Specific class for policy sections */
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

.policy-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.section-heading-policy { /* Specific class for policy headings */
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    margin: 0;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
    font-weight: 600;
}

.policy-section p {
    padding: 0 1.5rem;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.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(--modern-primary);
    font-weight: 600;
}

.policy-section strong {
    color: var(--modern-primary);
    font-weight: 600;
}

.policy-contact-info { /* Specific class for contact info at the end */
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    padding: 1.5rem;
    font-size: 1em;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

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


/* --- 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: var(--gradient-primary);
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-section-cookie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.main-page-title { /* Main H1 title for the page, reused from other policy pages */
    font-size: 3.5em;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    animation: fadeInUp 1s ease-out;
}

.intro-paragraph { /* Introductory paragraph, reused from other policy pages */
    font-size: 1.4em;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cookie-section { /* Styles for individual sections within the cookie policy */
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

.cookie-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.section-heading-cookie { /* Styles for H2 headings within cookie policy sections */
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    margin: 0;
    font-size: 1.3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
    font-weight: 600;
}

.cookie-section p { /* Paragraphs within cookie policy sections */
    padding: 0 1.5rem;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.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;
    color: var(--modern-primary);
}

.cookie-list {
    color: var(--modern-primary);
    text-decoration: none;
    list-style-type: none;
}
.policy-list {
    color: var(--modern-primary);
    text-decoration: none;
    list-style-type: none;
}
.terms-section {
    color: var(--modern-primary);
    text-decoration: none;
    list-style-type: none;
}
.cookie-contact-info {
    color: var(--modern-primary);
    text-decoration: none;
    list-style-type: none;
}

.cookie-list li strong { /* Strong text within list items */
    color: var(--modern-primary);
    font-weight: 600;
}

.cookie-section strong { /* Strong text outside of lists but within cookie sections */
    color: var(--modern-primary);
    font-weight: 600;
}

.cookie-contact-info { /* Styles for the contact information section at the end of the policy */
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    padding: 1.5rem;
    font-size: 1em;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

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

/* --- 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: var(--gradient-primary);
    color: var(--text-light);
    text-align: center;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.system-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.hero-title-system-page {
    font-size: 3.5em;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle-system-page {
    font-size: 1.4em;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.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(--gradient-secondary);
    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: var(--gradient-success);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- System Entry Form Section --- */
.system-entry-form-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.system-entry-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.lotto-form-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.lotto-form-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-card-title {
    font-size: 2.8em;
    color: white;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

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

.lotto-label {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.lotto-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.1em;
    color: white;
    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%23ffffff%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: all 0.3s ease;
}

.lotto-select option {
    background: #667eea;
    color: white;
}

.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 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.how-system-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.system-info-blocks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.info-block-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.info-block-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-block-heading {
    font-size: 2.2em;
    color: white;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.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: var(--gradient-primary);
    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(--gradient-secondary);
    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: var(--gradient-success);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Syndicate Purchase Form Section --- */
.syndicate-purchase-form-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.syndicate-purchase-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.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 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.syndicate-details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.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;
    position: relative;
    z-index: 2;
}

.info-block-item { /* Reused from system page */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack contents */
    transition: all 0.3s ease;
}

.info-block-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-block-heading { /* Reused from system page */
    font-size: 2.2em;
    color: white;
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.info-block-item p { /* Reused from system page */
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows paragraphs to take available space */
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.info-block-item strong { /* Reused from system page */
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.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: 8px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.disclaimer-text {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* --- 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: var(--gradient-primary);
    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(--gradient-secondary);
    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: var(--gradient-success);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Statistics Display Section --- */
.statistics-analysis-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.statistics-analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.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: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-intro-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-heading-stats {
    font-size: 2.5em;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.stats-legend-block {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-legend-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stats-legend-heading {
    font-size: 1.8em;
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.legend-item {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.legend-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent dot from shrinking */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.legend-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.legend-dot.hot {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.legend-dot.cold {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}


.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: 20px;
    justify-content: center; /* Center the grid items if there's extra space */
    position: relative;
    z-index: 2;
}

.lotto-number-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-height: 150px; /* Ensure a minimum height for visual consistency */
    justify-content: space-between;
}

.lotto-number-bar-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 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: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent ball from shrinking */
    margin: 15px 0; /* Space between labels and ball */
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.lotto-number-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.lotto-stat-label {
    display: inline-block; /* Changed from span to inline-block for padding */
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    white-space: nowrap; /* Prevent text wrapping */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.lotto-stat-label:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.lotto-stat-label.times-drawn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.lotto-stat-label.last-seen {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}


/* --- 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: var(--gradient-primary);
    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(--gradient-secondary);
    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: var(--gradient-success);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Standard Play Form Section --- */
.standard-play-form-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.standard-play-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.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: var(--gradient-primary);
    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(--gradient-secondary);
    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: var(--gradient-success);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Latest Lottery Results Section --- */
.latest-lottery-results-section {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.latest-lottery-results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.results-main-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.results-main-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.draw-summary-header h2 {
    font-size: 2.8em;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.draw-number {
    color: #ffd700; /* Gold color for draw number */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.draw-datetime-info {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.draw-datetime-info strong {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.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.2em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.main-numbers-list strong, .supplementary-numbers-list strong {
    white-space: nowrap; /* Prevent "Main Numbers:" from breaking */
    margin-right: 8px;
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.result-lotto-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent from shrinking */
    transition: all 0.3s ease;
}

.result-lotto-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.result-lotto-ball.main-ball {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.result-lotto-ball.supplementary-ball {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.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: 2px solid rgba(255, 255, 255, 0.2); /* Border around the table */
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.draw-results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Minimum width to prevent squishing */
    background: rgba(255, 255, 255, 0.1);
}

.draw-results-table th, .draw-results-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.draw-results-table thead th {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.draw-results-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

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

.draw-results-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.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: 600;
    color: white;
}

.ticket-check-promo {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px; /* Space from table */
    transition: all 0.3s ease;
}

.ticket-check-promo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.check-ticket-title {
    font-size: 2.2em;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.check-ticket-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ticket-check-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 35px;
    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);
}

.ticket-check-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px 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: var(--gradient-primary);
    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(--gradient-secondary);
    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: var(--gradient-success);
    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: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.lotto-party-selection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.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.5em;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden; /* Hide overflow for image background */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Stretch children to fill card width */
}

.party-option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.party-option-card.selected {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.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.6em;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-price {
    font-size: 2.2em;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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: var(--gradient-primary);
    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(--gradient-secondary);
    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: var(--gradient-success);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Checkout Process Section --- */
.checkout-process-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.checkout-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

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

.checkout-form-column, .ticket-summary-column {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.checkout-form-column:hover, .ticket-summary-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.checkout-form-title, .ticket-summary-title {
    font-size: 2.5em;
    color: white;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.1em;
    color: white;
    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%23ffffff%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: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.checkout-form input::placeholder,
.checkout-form select::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.payment-summary-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.payment-summary-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.payment-total-label {
    font-size: 1.3em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.payment-amount {
    font-size: 2.5em;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pay-now-button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
    padding: 18px 40px;
    font-size: 1.4em;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* Full width button */
    max-width: 300px; /* Limit max width for better aesthetic */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pay-now-button:hover {
    background: linear-gradient(135deg, #fecfef 0%, #ff9a9e 100%);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.ticket-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.ticket-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.ticket-type-label {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 0.9em;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 10px;
    position: absolute;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    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: 1em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.number-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    margin: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.number-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.number-ball.supplementary {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: white;
}

.number-ball.text-display { /* For syndicate text within a ball-like element */
    width: auto;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ticket-price, .ticket-note {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.remove-ticket-button {
    background: none;
    border: none;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    margin-left: 15px;
    padding: 8px;
    line-height: 1;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.remove-ticket-button:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}


/* --- 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;
    }
}