:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --ball-bg: #e9ecef;
    --mega-ball-bg: #ffc107;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --texture-opacity: 0.1;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --accent-color: #3793ff;
    --accent-hover: #1e70d1;
    --ball-bg: #333333;
    --mega-ball-bg: #ffd54f;
    --shadow-light: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --texture-opacity: 0.05;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%239C92AC' fill-opacity='var(--texture-opacity)'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--ball-bg);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.lottery-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 20px var(--shadow-light), 0 6px 6px var(--shadow-heavy);
    padding: 2rem;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.lottery-card:hover {
    transform: translateY(-5px);
}

.lottery-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

button.generate-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

button.generate-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.numbers-display {
    margin-top: 1.5rem;
    min-height: 50px;
}

.numbers-display ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.numbers-display li {
    background-color: var(--ball-bg);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.numbers-display .mega-ball {
    background-color: var(--mega-ball-bg);
    color: #333;
}

.partnership-section {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.contact-card {
    width: 100%;
    max-width: 600px;
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--ball-bg);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .lottery-card {
        width: 90%;
    }
}
