* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f0f2f5; color: #333; min-height: 100vh; }

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; text-align: center; padding: 40px 20px;
    background-size: cover; background-position: center; position: relative;
}
.hero.has-bg::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
}
.hero * { position: relative; z-index: 1; }
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero p { font-size: 16px; opacity: 0.9; }

.container { max-width: 500px; margin: -30px auto 40px; padding: 0 16px; position: relative; z-index: 2; transition: max-width 0.3s; }
.container.wide { max-width: 900px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .col-left, .two-col .col-right { min-width: 0; }
@media (max-width: 700px) {
    .two-col { grid-template-columns: 1fr; }
    .container.wide { max-width: 500px; }
}

#guide-card { position: sticky; top: 20px; }
#guide-content { font-size: 15px; line-height: 1.7; }
#guide-content a { color: #667eea; text-decoration: underline; word-break: break-all; }
#guide-content a:hover { color: #5a6fd6; }

.card {
    background: #fff; border-radius: 12px; padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1); margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input[type="tel"],
.form-group input[type="text"] {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 16px; transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: #667eea; }

.btn {
    display: inline-block; padding: 12px 24px; border: none; border-radius: 8px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    text-align: center; width: 100%;
}
.btn-primary { background: #667eea; color: #fff; }
.btn-primary:hover { background: #5a6fd6; }
.btn-primary:disabled { background: #aab; cursor: not-allowed; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; }

.code-display {
    text-align: center; padding: 20px; background: #f8f9fa; border-radius: 8px;
    margin-bottom: 16px;
}
.code-display .code-label { font-size: 14px; color: #666; margin-bottom: 4px; }
.code-display .code-number { font-size: 48px; font-weight: 700; color: #667eea; }

.upload-area {
    border: 2px dashed #ddd; border-radius: 8px; padding: 20px;
    text-align: center; cursor: pointer; transition: all 0.2s; position: relative;
    min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.upload-area:hover { border-color: #667eea; background: #f8f9ff; }
.upload-area.has-file { border-color: #28a745; border-style: solid; }
.upload-area input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-area .upload-icon { font-size: 32px; margin-bottom: 8px; color: #aaa; }
.upload-area .upload-text { font-size: 14px; color: #888; }
.upload-area .preview-img {
    max-width: 100%; max-height: 200px; border-radius: 4px; margin-top: 8px;
}

.msg {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 16px;
    font-size: 14px; display: none;
}
.msg.show { display: block; }
.msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.msg-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.msg-loading { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.submitted-view .field-item {
    margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eee;
}
.submitted-view .field-item:last-child { border-bottom: none; }
.submitted-view .field-name { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.submitted-view .field-img { max-width: 100%; border-radius: 4px; }

.status-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

.game-select { margin-bottom: 16px; }
.game-select select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 16px; background: #fff;
}

.spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #fff; border-top-color: transparent;
    border-radius: 50%; animation: spin 0.6s linear infinite;
    vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.survey-section {
    border: 2px solid #ffc107; border-radius: 12px; padding: 20px;
    background: #fffbea; margin-bottom: 16px;
}
.survey-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0e6c0; }
.survey-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.survey-q { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #333; }
.survey-options { display: flex; gap: 16px; }
.survey-options label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.survey-input {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px;
}
.survey-input:focus { outline: none; border-color: #ffc107; }

.otp-card {
    border: 2px solid #667eea; background: #f0f4ff;
}
.otp-card h3 { color: #333; }

.otp-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; align-items: center;
    justify-content: center; z-index: 9999; padding: 20px;
}
.otp-modal {
    background: #fff; border-radius: 16px; padding: 32px;
    max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 2px solid #667eea; animation: otpSlideIn 0.3s ease;
}
.otp-modal h3 { color: #333; margin: 0; }
@keyframes otpSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cta-banner {
    text-align: center; margin: 20px 0;
}
.cta-banner a {
    display: inline-block; padding: 14px 28px; background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff; font-size: 16px; font-weight: 600; border-radius: 30px;
    text-decoration: none; box-shadow: 0 4px 15px rgba(40,167,69,0.3);
    transition: all 0.2s;
}
.cta-banner a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40,167,69,0.4); }

.hidden { display: none !important; }
