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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

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

.container-narrow { max-width: 720px; }

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

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
    color: white;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; text-align: center; }

.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 40px;
}

.hero-subtitle strong { color: #fbbf24; }

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #7dd3fc;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Countdown block */
.countdown-block {
    text-align: center;
    margin: 32px 0 28px;
}

.countdown-label {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.cd-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 72px;
    text-align: center;
}

.cd-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cd-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.cd-sep {
    font-size: 28px;
    font-weight: 700;
    color: #475569;
    margin-top: -16px;
}

@media (max-width: 768px) {
    .cd-item { padding: 8px 10px; min-width: 56px; }
    .cd-number { font-size: 24px; }
    .cd-sep { font-size: 20px; }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white !important;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #0ea5e9;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #0ea5e9;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
}

.btn-full { width: 100%; }

.btn-small {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover { background: #e2e8f0; }
.btn-danger { color: #ef4444; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }

.hero-note {
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

/* ===== SECTIONS ===== */
section { padding: 80px 0; }

section h2 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

/* ===== PRIZES ===== */
.prizes { background: white; }

.prize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prize-card {
    background: #f8fafc;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: #0ea5e9;
}

.prize-icon { font-size: 48px; margin-bottom: 16px; }

.prize-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.prize-card p { color: #64748b; font-size: 15px; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: #f1f5f9; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step { text-align: center; }

.step-number {
    display: inline-flex;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p { color: #64748b; }

/* ===== ABOUT ===== */
.about { background: white; text-align: center; }
.about p {
    max-width: 600px;
    margin: 0 auto 32px;
    color: #475569;
    font-size: 16px;
}

/* ===== FORM ===== */
.form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 60px 0;
}

.back-link {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
}

.back-link:hover { color: #0ea5e9; }

.form-section h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-desc { color: #64748b; margin-bottom: 32px; }

.registration-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    background: white;
}

.form-row {
    display: flex;
    gap: 16px;
}

/* Age input — 2 chars, no spinners */
.age-group { max-width: 100px; }
.age-input {
    max-width: 80px;
    text-align: center;
    font-size: 18px !important;
    font-weight: 700 !important;
}
.age-input::-webkit-outer-spin-button,
.age-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.age-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 8px;
    font-size: 14px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #0ea5e9;
}

.form-note {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 24px;
}

.error {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
}

/* ===== THANKS ===== */
.thanks-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.thanks-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.thanks-section h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.thanks-text {
    font-size: 18px;
    color: #475569;
    margin-bottom: 12px;
}

/* ===== RULES ===== */
.rules-intro {
    font-size: 15px;
    color: #475569;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
    line-height: 1.7;
}

.rules-date {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

.rules-section p.indent {
    padding-left: 24px;
    font-size: 14px;
    color: #475569;
    margin: 4px 0;
}

.rules-section {
    padding: 60px 0;
    min-height: 80vh;
}

.rules-section h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
}

.rules-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: #0f172a;
}

.rules-section p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: #64748b;
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
}

footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: #7dd3fc; }

/* ===== ADMIN ===== */
.admin-section { padding: 40px 0; min-height: 100vh; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 { font-size: 24px; margin: 0; }

.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-form .form-control { max-width: 400px; }

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:hover { background: #f8fafc; }
.admin-table tr.notified { background: #f0fdf4; }
.admin-table code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}

.pagination a { color: #0ea5e9; text-decoration: none; font-weight: 600; }

.empty-state {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
    font-size: 16px;
}

/* Detail */
.detail-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    margin: 24px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.detail-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.detail-item { }
.detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    color: #1e293b;
}

.detail-value code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
}

.detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Admin login */
.admin-login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.admin-login-section h1 { color: white; margin-bottom: 32px; }

.admin-login-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 360px;
}

.admin-login-form .form-group { margin-bottom: 16px; }

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .prize-grid, .steps { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .detail-grid { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .registration-form { padding: 24px; }
}
