* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #007bff;
    --primary-orange: #ff6b35;
    --primary-purple: #9333ea;
    --primary-green: #10b981;
    --bg-gradient-start: #e0f2fe;
    --bg-gradient-end: #e0e7ff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: #f3f4f6;
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.subtitle {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Cards Grid */
.draw-types {
    padding: 40px 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: 20px;
    text-align: center;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-desc {
    color: var(--text-gray);
    font-size: 14px;
    text-align: center;
}

.card-content {
    margin-top: 20px;
    text-align: center;
}

.card-content .btn {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    color: white;
}

.btn-blue {
    background: var(--primary-blue);
}

.btn-blue:hover {
    background: #0056b3;
}

.btn-orange {
    background: var(--primary-orange);
}

.btn-orange:hover {
    background: #e55a2b;
}

.btn-purple {
    background: var(--primary-purple);
}

.btn-purple:hover {
    background: #7e22ce;
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.btn-outline {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: var(--text-gray);
}

.btn-share {
    flex: 1;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #0d8bd9;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

/* Features */
.features {
    background: white;
    padding: 60px 20px;
}

.features-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.feature-icon.blue {
    background: #dbeafe;
    color: var(--primary-blue);
}

.feature-icon.orange {
    background: #fed7aa;
    color: var(--primary-orange);
}

.feature-icon.purple {
    background: #e9d5ff;
    color: var(--primary-purple);
}

.feature-icon.green {
    background: #d1fae5;
    color: var(--primary-green);
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Draw Views */
.draw-view {
    padding: 40px 20px;
}

.draw-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.draw-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.draw-desc {
    color: var(--text-gray);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.input-hint {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Prize Section */
.prize-section {
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.prize-item {
    margin-bottom: 16px;
}

.prize-input-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.prize-input-group .prize-input {
    flex: 1;
}

.prize-input-group .btn {
    white-space: nowrap;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.button-group .btn {
    flex: 1;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.prize-result-card {
    margin-bottom: 24px;
}

#prize-results-container {
    margin-bottom: 32px;
}

/* Result View */
.result-view {
    padding: 40px 20px;
}

.result-card {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto 32px;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 8px;
}

.result-subtitle {
    color: #047857;
    margin-bottom: 24px;
}

.result-section {
    margin-bottom: 24px;
}

.result-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.winners-list,
.backups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.winner-item {
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
}

.backup-item {
    background: white;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #92400e;
}

.result-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
}

.result-actions {
    max-width: 800px;
    margin: 0 auto;
}

.action-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.result-actions .btn {
    width: 100%;
    margin-bottom: 12px;
}

/* Loading View */
.loading-view {
    padding: 100px 20px;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: var(--text-gray);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 32px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-credit {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #374151;
    padding-top: 16px;
}

.footer-credit a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 20px;
    }

    .description {
        font-size: 16px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .action-row {
        flex-direction: column;
    }
}

