@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #FF2D87;
    --accent: #7B2FFF;
    --gold: #FFD700;
    --success: #00C853;
    --bg-light: #FFF8F0;
    --bg-card: rgba(255,255,255,0.85);
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --shadow-sm: 0 2px 8px rgba(255,107,53,0.12);
    --shadow-md: 0 8px 32px rgba(255,107,53,0.18);
    --shadow-lg: 0 16px 48px rgba(255,45,135,0.15);
    --gradient-main: linear-gradient(135deg, #FF6B35 0%, #FF2D87 50%, #7B2FFF 100%);
    --gradient-warm: linear-gradient(135deg, #FF9A56 0%, #FF6B35 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,248,240,0.95) 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============ RUNNING TEXT / MARQUEE ============ */
.marquee-bar {
    background: var(--gradient-main);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-content span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.marquee-content span::before {
    content: '🎁';
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ HEADER ============ */
.header {
    background: var(--gradient-main);
    padding: 30px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerGlow 6s ease-in-out infinite;
}

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

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.header-badge .dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.logo {
    font-size: 36px;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.logo span {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.header-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ============ CONTAINER ============ */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============ SECTION ============ */
.section {
    margin: 20px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    margin: 8px auto 0;
}

/* ============ PRIZE CARD ============ */
.prize-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,107,53,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.6s ease-out;
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.prize-card::before {
    content: '🎉 SELAMAT! 🎉';
    display: block;
    background: var(--gradient-main);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    margin: -24px -20px 20px;
    letter-spacing: 1px;
    animation: celebratePulse 2s ease-in-out infinite;
}

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

.prize-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prize-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prize-image-wrapper:hover img {
    transform: scale(1.05);
}

.prize-image-placeholder {
    font-size: 64px;
    opacity: 0.5;
}

.prize-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.prize-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============ CLAIM FORM ============ */
.form-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,107,53,0.1);
}

.form-card h3 {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}

.form-input::placeholder {
    color: #c0c0c0;
    font-size: 13px;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Estimasi pengiriman */
.estimasi-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.estimasi-box .icon {
    font-size: 24px;
}

.estimasi-box .info {
    flex: 1;
}

.estimasi-box .info .label {
    font-size: 11px;
    color: #2e7d32;
    font-weight: 600;
}

.estimasi-box .info .value {
    font-size: 14px;
    font-weight: 700;
    color: #1b5e20;
}

/* ============ PRICE OPTIONS ============ */
.price-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.price-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.price-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.price-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF3ED, #FFE8DC);
    box-shadow: 0 4px 16px rgba(255,107,53,0.2);
}

.price-option.selected::after {
    content: '✓';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.price-option input[type="radio"] {
    display: none;
}

.price-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.price-option.selected .price-radio {
    border-color: var(--primary);
}

.price-option.selected .price-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--gradient-main);
    border-radius: 50%;
}

.price-info {
    flex: 1;
}

.price-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.price-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

    .price-bonus-text {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
        background: #fdf6e7;
        border: 1px solid #ffe5b4;
        border-radius: 10px;
        padding: 12px 14px;
    }


/* ============ PAYMENT METHOD ============ */
.payment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.payment-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-muted);
}

.payment-tab:hover {
    border-color: var(--primary);
}

.payment-tab.active {
    border-color: var(--primary);
    background: var(--gradient-main);
    color: white;
}

.payment-tab .icon {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.payment-info-box {
    background: linear-gradient(135deg, #FFF8F0, #FFF0E6);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
    display: none;
}

.payment-info-box.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.payment-info-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,107,53,0.1);
}

.payment-detail:last-child {
    border-bottom: none;
}

.payment-detail .label {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-detail .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.copy-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.copy-btn:active {
    transform: scale(0.95);
}

/* ============ FILE UPLOAD ============ */
.file-upload {
    position: relative;
    border: 2px dashed #d0d0d0;
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 16px;
}

.file-upload:hover {
    border-color: var(--primary);
    background: #FFF8F0;
}

.file-upload.has-file {
    border-color: var(--success);
    background: #e8f5e9;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload .upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.file-upload .upload-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.file-upload .upload-hint {
    font-size: 11px;
    color: #c0c0c0;
    margin-top: 4px;
}

.file-upload .file-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    margin-top: 8px;
    display: none;
}

.file-upload.has-file .file-name {
    display: block;
}

/* ============ SUBMIT BUTTON ============ */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255,107,53,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,107,53,0.45);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .spinner {
    display: block;
}

.btn-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ TUTORIAL SECTION ============ */
.tutorial-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,107,53,0.1);
}

.tutorial-steps {
    list-style: none;
}

.tutorial-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    align-items: flex-start;
}

.tutorial-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.step-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.step-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonial-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,107,53,0.08);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-location {
    font-size: 11px;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 12px;
    margin-bottom: 6px;
}

.testimonial-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

.testimonial-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    margin-top: 8px;
}

/* ============ FAKE WINNER NOTIFICATION ============ */
.fake-notif {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    max-width: 340px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-left: 4px solid var(--success);
}

.fake-notif.show {
    transform: translateX(0);
}

.fake-notif .notif-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.fake-notif .notif-content {
    flex: 1;
}

.fake-notif .notif-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.fake-notif .notif-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.fake-notif .notif-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--gradient-main);
    color: white;
    text-align: center;
    padding: 24px 20px;
    margin-top: 30px;
}

.footer p {
    font-size: 12px;
    opacity: 0.9;
}

.footer .footer-brand {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

/* ============ CONFETTI / DECORATIONS ============ */
.confetti-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============ LOADING SKELETON ============ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============ ALERT / SUCCESS MESSAGE ============ */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    display: none;
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

.alert.show {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

/* ============ SCROLL ANIMATIONS ============ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 481px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 480px;
    }
}
