/* ManitobaLottoPlay - Main Stylesheet */

:root {
    --primary-color: #0d7377;
    --secondary-color: #14a085;
    --accent-color: #00d9a5;
    --gold-color: #ffb84d;
    --success-color: #00d9a5;
    --purple-accent: #6c5ce7;
    --pink-accent: #fd79a8;
    --cyan-accent: #00d9a5;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dfe6e9;
    --shadow: 0 2px 8px rgba(13, 115, 119, 0.1);
    --shadow-lg: 0 4px 16px rgba(13, 115, 119, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #e8f8f5, #d5f4e6, #f0fff4, #e6fff2, #f5fff8, #e0f5ed);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

nav a.btn-primary,
nav a.btn-primary:hover,
nav a.btn-primary:visited,
nav a.btn-primary:active,
nav a.btn-primary:focus {
    color: white !important;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white !important;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gold-color), #ff9500);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 184, 77, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff9500, var(--gold-color));
    box-shadow: 0 6px 20px rgba(255, 184, 77, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: brightness(0.6) saturate(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.85), rgba(20, 160, 133, 0.8), rgba(0, 217, 165, 0.75));
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Trust Section */
.trust-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, var(--bg-white) 0%, #f0f9f7 100%);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-card {
    background: linear-gradient(135deg, var(--bg-white), #f0f9f7);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trust-card:hover::before {
    transform: scaleX(1);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(13, 115, 119, 0.25);
    border-color: var(--accent-color);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.trust-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.trust-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Getting Started Section */
.getting-started {
    padding: 3rem 1.5rem;
    background: var(--bg-white);
    position: relative;
}

.getting-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.2;
    z-index: -1;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Featured Draws Section */
.featured-draws {
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, #f0f9f7 0%, var(--bg-white) 100%);
}

.draws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.draw-card {
    background: linear-gradient(135deg, var(--bg-white), #f0f9f7);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.draw-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 165, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.draw-card:hover::after {
    opacity: 1;
}

.draw-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(13, 115, 119, 0.25);
    border-color: var(--accent-color);
}

.draw-header {
    margin-bottom: 1.25rem;
}

.draw-days {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(13, 115, 119, 0.3);
}

.draw-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.draw-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Testimonials Section */
.testimonials {
    padding: 3rem 1.5rem;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--bg-white), #f0f9f7);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3.5rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 115, 119, 0.2);
    border-left-color: var(--primary-color);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    color: var(--text-light);
    font-weight: 600;
}

/* Responsible Play Block */
.responsible-play-block {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.responsible-play-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.responsible-play-block h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
    z-index: 1;
}

.responsible-play-block p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.responsible-play-block .btn {
    position: relative;
    z-index: 2;
}

.btn-inverse {
    background: white !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-inverse:hover {
    background: #f0f0f0 !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a1a1b, #0d2d2f, #0a1a1b);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    color: #ffffff;
    padding: 2rem 1.5rem 1rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color) !important;
    text-decoration-color: var(--accent-color);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.footer-badge {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    min-width: 120px;
    max-width: 140px;
    height: 80px;
}

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

.footer-badge-img {
    width: 100%;
    height: 100%;
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 217, 165, 0.2);
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.65rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex !important;
    margin-bottom: 0 !important;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    margin-top: 0.25rem !important;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    appearance: none;
    position: relative;
    transition: all 0.3s;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

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

.form-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}

.form-group-row label {
    margin-bottom: 0;
}

.checkbox-label-inline {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-dark);
}

.checkbox-label-inline input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: all 0.3s;
}

.checkbox-label-inline input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label-inline input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.forgot-password-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Page Content */
.page-content {
    padding: 2rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.page-content h2 {
    font-size: 1.625rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Buy Tickets Page - New Structure */
.buy-tickets-page {
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #f0f9f7 0%, var(--bg-white) 100%);
}

.ticket-purchase-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.purchase-step-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.125rem;
    margin-bottom: 0.875rem;
    box-shadow: 0 4px 20px rgba(13, 115, 119, 0.1);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.purchase-step-card:hover {
    box-shadow: 0 8px 30px rgba(13, 115, 119, 0.15);
    border-color: var(--accent-color);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--border-color);
}

.step-number-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
}

.step-header h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

/* Step 1: Format Selection */
.draw-format-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.format-option {
    background: linear-gradient(135deg, #f0f9f7, var(--bg-white));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.format-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.format-option:hover::before,
.format-option.active::before {
    transform: scaleX(1);
}

.format-option:hover,
.format-option.active {
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.2);
    transform: translateY(-3px);
}

.format-option.active {
    background: linear-gradient(135deg, #e8f5f0, #f0f9f7);
}

.format-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.format-option-header h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.format-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.format-badge.premium {
    background: var(--gold-color);
    color: var(--text-dark);
}

.format-badge.dual {
    background: var(--purple-accent);
}

.format-description {
    color: var(--text-light);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.format-price {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Step 2: Lines */
.lines-container {
    margin-bottom: 1rem;
}

.no-lines-message {
    text-align: center;
    color: var(--text-light);
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 0.875rem;
}

.line-card {
    background: linear-gradient(135deg, #f0f9f7, var(--bg-white));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem;
    margin-bottom: 0.625rem;
    transition: all 0.3s ease;
}

.line-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.1);
}

.line-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.line-header h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.remove-line-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.3s;
}

.remove-line-btn:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.numbers-grid-container {
    margin-bottom: 0.625rem;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.5rem;
}

.number-btn {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: scale(1.05);
}

.number-btn.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.4);
    transform: scale(1.05);
}

.number-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.grand-number-section {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 2px dashed var(--border-color);
}

.grand-number-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.grand-numbers-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    max-width: 280px;
}

.grand-number-btn {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grand-number-btn:hover {
    border-color: var(--purple-accent);
    background: #f3e5f5;
    transform: scale(1.1);
}

.grand-number-btn.selected {
    background: linear-gradient(135deg, var(--purple-accent), #9b59b6);
    color: white;
    border-color: var(--purple-accent);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.line-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.line-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.lines-info {
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Step 3: Cart Summary */
.cart-summary {
    margin-bottom: 0.875rem;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-light);
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 0.875rem;
}

.cart-lines {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 0.875rem;
}

.cart-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-line-item:last-child {
    border-bottom: none;
}

.cart-line-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-line-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.cart-line-numbers {
    color: var(--text-light);
    font-size: 0.8rem;
}

.cart-grand-number {
    color: var(--purple-accent);
    font-weight: 600;
    font-size: 0.8rem;
}

.cart-line-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.promo-section {
    margin: 0.875rem 0;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.promo-input {
    flex: 1;
    padding: 0.65rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 0;
}

.promo-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.order-totals {
    background: linear-gradient(135deg, #f0f9f7, var(--bg-white));
    border-radius: 10px;
    padding: 0.875rem;
    margin-top: 0.625rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.discount-row {
    color: var(--success-color);
    font-weight: 600;
}

.total-divider {
    height: 2px;
    background: var(--border-color);
    margin: 0.4rem 0;
}

.total-payable {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 0.75rem;
    border-top: 2px solid var(--accent-color);
}

/* Step 4: Checkout */
.checkout-form {
    margin-top: 0.875rem;
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.checkout-form .form-group {
    margin-bottom: 0;
}

.checkout-form select {
    width: 100%;
    padding: 0.65rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
}

.checkout-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    grid-column: 1 / -1;
}

.checkout-notice {
    margin-top: 0.875rem;
    padding: 0.625rem;
    background: #fff3cd;
    border-left: 4px solid var(--gold-color);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #856404;
    line-height: 1.5;
}

/* Additional buy-tickets styles */
.line-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.purchase-step-card:first-child {
    margin-top: 0;
}

.step-1-card .format-option {
    min-height: 140px;
}

.step-2-card .line-card:last-child {
    margin-bottom: 0;
}

.step-3-card .order-totals {
    border: 2px solid var(--accent-color);
}

.step-4-card .checkout-form {
    max-width: 100%;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Contact Page */
.official-details-section {
    margin: 3rem 0;
}

.official-details-title {
    font-size: 1.625rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.official-details-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.official-details-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.official-details-item:last-child {
    border-bottom: none;
}

.official-details-icon {
    font-size: 1.25rem;
    color: var(--accent-color);
    min-width: 30px;
    flex-shrink: 0;
}

.official-details-text {
    color: var(--text-dark);
    font-size: 1rem;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    position: relative;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) { top: 6px; }
.menu-toggle span:nth-child(2) { top: 13px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    top: 13px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 13px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .trust-grid,
    .steps-grid,
    .draws-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .buy-tickets-page {
        padding: 2rem 1rem;
    }

    .purchase-step-card {
        padding: 1.25rem;
    }
    
    .step-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .step-number-badge {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .step-header h2 {
        font-size: 1.1rem;
    }

    .draw-format-options {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .grand-numbers-grid {
        grid-template-columns: repeat(7, 1fr);
        max-width: 100%;
    }

    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }

    .promo-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .promo-input-group .btn {
        width: 100%;
    }

    .official-details-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .official-details-icon {
        font-size: 1.25rem;
    }

    .official-details-text {
        font-size: 0.95rem;
        word-wrap: break-word;
        width: 100%;
        line-height: 1.5;
    }

    .official-details-card {
        padding: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .form-group-row .forgot-password-link {
        align-self: flex-end;
        margin-top: -0.25rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
    }

    .form-container h1 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 4rem 1.5rem 1.5rem;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .numbers-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .promo-input-group {
        flex-direction: column;
    }

    .promo-input-group .btn {
        width: 100%;
    }

    .official-details-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .official-details-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .official-details-card {
        padding: 1rem;
    }

    .promo-section {
        padding: 0.625rem;
    }

    .form-group-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    .form-group-row .forgot-password-link {
        align-self: flex-end;
        font-size: 0.875rem;
    }

    .checkbox-label-inline {
        font-size: 0.9rem;
    }
}
