:root { --primary: #7961f3; --bg: #f8fafc; --text-main: #1e293b; --text-muted: #64748b; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg); color: var(--text-main); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }

.container { max-width: 900px; width: 100%; text-align: center; }
.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }

/* Left Card */
.product-card {
    background: white; border-radius: 40px; padding: 50px 40px; text-align: left;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}
.premium-badge { color: var(--primary); font-weight: 800; font-size: 14px; text-transform: uppercase; margin-bottom: 15px; display: block; }
.product-card h2 { font-size: 38px; font-weight: 800; color: #0f172a; margin-bottom: 20px; }
.price-tag { font-size: 56px; font-weight: 800; color: var(--primary); margin-bottom: 30px; }
.product-desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Right Card (Activation Form) */
.card { background: white; border-radius: 25px; padding: 30px; text-align: left; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.input-group { margin-bottom: 15px; }
label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
input, select { width: 100%; padding: 12px; border: 1.5px solid #e2e8f0; border-radius: 12px; outline: none; transition: 0.3s; }
input:focus, select:focus { border-color: var(--primary); }

#previewBox {
    margin: 15px 0; padding: 15px; border-radius: 15px;
    background: linear-gradient(135deg, #7961f3, #4a32c2);
    color: white; display: none; animation: fadeIn 0.4s;
}

/* Coupon & Scratch Section */
.coupon-section { margin-top: 20px; padding-top: 20px; border-top: 1px dashed #cbd5e1; }
.coupon-input-group { display: flex; gap: 8px; margin-bottom: 8px; }
.apply-btn { background: #1e293b; color: white; border: none; padding: 0 15px; border-radius: 10px; font-weight: 700; cursor: pointer; }

.scratch-container {
    position: relative; width: 100%; height: 110px; margin: 15px 0;
    border-radius: 15px; overflow: hidden; background: #fff3e0;
    display: none; border: 2px dashed #ff9800;
}
#scratch-canvas { position: absolute; top: 0; left: 0; z-index: 5; cursor: crosshair; touch-action: none; }
.reward-box { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; text-align: center; }

.btn-activate {
    width: 100%; background: var(--primary); color: white; border: none;
    padding: 16px; border-radius: 12px; font-weight: 700; cursor: pointer;
    font-size: 16px; transition: 0.3s; margin-top: 10px;
}
.btn-activate:disabled { background: #cbd5e1; cursor: not-allowed; }
.status { font-size: 12px; font-weight: 700; margin-top: 5px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .main-grid { grid-template-columns: 1fr; } }

#registerBox {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    display: none; /* Initially hidden */
    animation: fadeIn 0.4s;
}

#registerBox p { font-size: 14px; color: #c53030; margin-bottom: 8px; font-weight: 600; }

.reg-link { 
    display: inline-block; 
    padding: 8px 15px; 
    background: #e53e3e; 
    color: white !important; 
    text-decoration: none; 
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 700;
    transition: 0.3s;
}

.reg-link:hover { background: #c53030; transform: translateY(-2px); }
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 20px;
}