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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.lottery-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.lottery-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 2em;
    text-align: center;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-area label {
    font-weight: 600;
    color: #555;
}

.input-area textarea,
.input-area input[type="number"] {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.input-area textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.input-area textarea:focus,
.input-area input:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-group button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.button-group button:hover {
    background: #5568d3;
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.settings input[type="number"] {
    width: 80px;
}

.wheel-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    border: 8px solid #667eea;
    background: conic-gradient(from 0deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #f0932b, #eb4d4b, #6c5ce7, #a29bfe);
    transition: transform 0.1s linear;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wheel-item {
    position: absolute;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.8);
    font-size: 0.85em;
    z-index: 2;
    pointer-events: none;
    max-width: 80px;
    text-align: center;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #ff4757;
    position: relative;
    top: -10px;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spin-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.spin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.spin-btn:active {
    transform: scale(0.98);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result {
    min-height: 60px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
    width: 100%;
    max-width: 400px;
    word-wrap: break-word;
}

.numbers-display {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.numbers-display.spinning {
    animation: pulse 0.5s infinite;
}

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

.picker-display {
    width: 300px;
    min-height: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.picker-item {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border-radius: 25px;
    font-weight: bold;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fullscreen-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #00d2d3 0%, #00b894 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 210, 211, 0.4);
    margin-top: 10px;
}

.fullscreen-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 210, 211, 0.6);
}

.audio-control {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 30px;
}

.audio-control label {
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.audio-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.branding-control {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.branding-toggle-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #f0932b 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.branding-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.6);
}

.branding-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.branding-panel-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.branding-panel-content h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2em;
}

.close-branding-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ff4757;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-branding-btn:hover {
    transform: scale(1.1);
    background: #ff3838;
}

.branding-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.branding-section:last-child {
    border-bottom: none;
}

.branding-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.branding-section label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
}

.branding-section label:has(input[type="color"]) {
    flex-direction: row;
    align-items: center;
}

.branding-section input[type="text"],
.branding-section input[type="color"],
.branding-section input[type="file"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    flex: 1;
}

.branding-section input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
}

.branding-section input[type="file"] {
    cursor: pointer;
}

.clear-btn,
.random-colors-btn {
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.random-colors-btn {
    background: #667eea;
    width: 100%;
}

.clear-btn:hover,
.random-colors-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-preview {
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.branding-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.apply-branding-btn,
.reset-branding-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-branding-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.apply-branding-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.reset-branding-btn {
    background: #ddd;
    color: #333;
}

.reset-branding-btn:hover {
    background: #ccc;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    header h1 {
        font-size: 2em;
    }
}

