/* Lotto 6/49 Pro — Front-end styles */
.l649-app {
	max-width: 900px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.08);
	padding: 20px;
	box-sizing: border-box;
}
.l649-app * { box-sizing: border-box; }

.l649-ad-slot { margin: 12px 0; text-align: center; }
.l649-ad-placeholder {
	border: 2px dashed #cbd5e1; border-radius: 10px; padding: 14px;
	color: #94a3b8; font-size: 13px; background: #f8fafc;
}

/* Tabs */
.l649-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; }
.l649-tab-btn {
	flex: 1 1 auto; min-width: 120px; padding: 10px 14px; border: none; border-radius: 10px;
	background: #f1f5f9; color: #475569; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s ease;
}
.l649-tab-btn:hover { background: #e2e8f0; }
.l649-tab-btn.active { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,0.35); }

.l649-panel { display: none; animation: l649fade 0.3s ease; }
.l649-panel.active { display: block; }
@keyframes l649fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.l649-step { display: none; }
.l649-step.active { display: block; animation: l649fade 0.3s ease; }

.l649-back-btn {
	background: none; border: none; color: #7c3aed; font-weight: 600; font-size: 14px;
	cursor: pointer; padding: 0 0 12px; display: inline-block;
}

.l649-heading { font-size: 22px; margin: 0 0 6px; color: #1e293b; }
.l649-sub { color: #64748b; font-size: 14px; margin-bottom: 16px; }

/* Draws list (cards) */
.l649-draws-list { display: flex; flex-direction: column; gap: 14px; }
.l649-draw-card {
	background: linear-gradient(135deg, #f8fafc, #f1f5f9);
	border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.l649-draw-card-info h3 { margin: 0 0 4px; color: #1e293b; font-size: 18px; }
.l649-draw-card-info p { margin: 2px 0; color: #64748b; font-size: 13px; }
.l649-draw-card-jackpot { color: #16a34a !important; font-weight: 700 !important; font-size: 15px !important; }
.l649-draw-card-price { font-weight: 700; color: #7c3aed; font-size: 16px; }

/* Balls */
.l649-ball-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; min-height: 50px; }
.l649-ball {
	width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 15px; color: #fff;
	box-shadow: inset 0 -4px 6px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.2);
	flex-shrink: 0;
}
.l649-ball-sm { width: 30px; height: 30px; font-size: 12px; }
.l649-ball-red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.l649-ball-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.l649-ball-yellow { background: linear-gradient(135deg, #eab308, #a16207); }
.l649-ball-green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.l649-ball-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.l649-ball-bonus  { background: linear-gradient(135deg, #a855f7, #6b21a8); }

/* Number picker grid (buy flow) */
.l649-picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 16px 0; }
.l649-picker-cell {
	aspect-ratio: 1; border-radius: 50%; border: none; font-weight: 700; font-size: 14px; cursor: pointer;
	background: #e2e8f0; color: #475569; transition: all 0.15s ease;
}
.l649-picker-cell.picked { background: linear-gradient(135deg, #06b6d4, #0e7490); color: #fff; transform: scale(1.08); }
.l649-picker-cell:disabled { opacity: 0.4; cursor: not-allowed; }

.l649-generate-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.l649-btn {
	padding: 12px 22px; border-radius: 10px; border: none; font-weight: 700; font-size: 15px; cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.l649-btn:active { transform: scale(0.97); }
.l649-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.l649-btn-primary { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,0.35); }
.l649-btn-outline { background: #fff; color: #64748b; border: 2px solid #e2e8f0; }

/* Contact form */
.l649-form-group { margin-bottom: 16px; }
.l649-form-group label { display: block; font-weight: 600; color: #334155; margin-bottom: 6px; font-size: 14px; }
.l649-form-group input[type="text"], .l649-form-group input[type="email"], .l649-form-group input[type="tel"] {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid #e2e8f0; font-size: 15px;
}
.l649-form-group input:focus { outline: none; border-color: #7c3aed; }

/* Payment */
.l649-order-summary { background: #f8fafc; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; font-size: 14px; color: #334155; }
.l649-card-element { padding: 14px; border-radius: 10px; border: 2px solid #e2e8f0; background: #fff; }
.l649-card-errors { color: #dc2626; font-size: 13px; margin-top: 8px; min-height: 18px; }
.l649-payment-status { margin-top: 12px; font-size: 14px; font-weight: 600; }
.l649-payment-status.error { color: #dc2626; }
.l649-payment-status.processing { color: #7c3aed; }

/* Ticket display */
.l649-ticket-display {
	background: linear-gradient(135deg, #faf5ff, #fdf2f8); border: 2px dashed #c084fc; border-radius: 16px;
	padding: 24px; text-align: center;
}
.l649-ticket-display h3 { margin: 0 0 4px; color: #1e293b; }
.l649-ticket-display .l649-ball-row { justify-content: center; }
.l649-ticket-display img { max-width: 100%; margin: 14px 0; }
.l649-ticket-serial { font-family: monospace; font-size: 15px; color: #7c3aed; font-weight: 700; }

/* Results */
.l649-results-list { display: flex; flex-direction: column; gap: 18px; }
.l649-result-card { background: #f8fafc; border-radius: 14px; padding: 16px 20px; }
.l649-result-card h3 { margin: 0 0 4px; color: #1e293b; }
.l649-result-card .l649-sub { margin-bottom: 8px; }
.l649-tier-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.l649-tier-table th, .l649-tier-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #e2e8f0; }

/* Lookup */
.l649-lookup-row { display: flex; gap: 10px; }
.l649-lookup-row input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 2px solid #e2e8f0; font-size: 15px; }
.l649-lookup-results { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.l649-lookup-card { background: #f8fafc; border-radius: 12px; padding: 14px 18px; }

/* Mobile responsive */
@media (max-width: 600px) {
	.l649-app { padding: 14px; border-radius: 12px; margin: 10px; }
	.l649-tab-btn { min-width: 45%; font-size: 13px; padding: 9px 8px; }
	.l649-ball { width: 36px; height: 36px; font-size: 13px; }
	.l649-heading { font-size: 19px; }
	.l649-draw-card { flex-direction: column; align-items: flex-start; }
	.l649-lookup-row { flex-direction: column; }
}
