/* ================================================
   PIYAY PAM — Frontend CSS Mobile-First
   Gol Technology
   ================================================ */

.piyay-pam-widget {
	max-width: 480px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- POPUP CARD ---- */
.pp-popup-card {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	overflow: hidden;
	position: relative;
}

/* ---- HEADER ---- */
.pp-popup-header {
	padding: 32px 24px 24px;
	text-align: center;
	color: white;
	position: relative;
}
.pp-popup-header::after {
	content: '';
	position: absolute;
	bottom: -20px;
	left: 0;
	right: 0;
	height: 40px;
	background: inherit;
	clip-path: ellipse(55% 100% at 50% 0%);
}
.pp-popup-icon {
	font-size: 48px;
	display: block;
	margin-bottom: 12px;
	animation: pp-bounce 2s infinite;
}
@keyframes pp-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
.pp-popup-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px 0;
}
.pp-popup-subtitle {
	font-size: 14px;
	opacity: 0.9;
	margin: 0;
}

/* ---- BODY ---- */
.pp-popup-body {
	padding: 40px 24px 24px;
}

/* ---- COUPON LOCKED ---- */
.pp-coupon-locked {
	background: #f8f9fa;
	border: 2px dashed #dee2e6;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	margin-bottom: 24px;
}
.pp-lock-icon {
	font-size: 40px;
	display: block;
	margin-bottom: 8px;
}
.pp-lock-text {
	font-size: 15px;
	color: #6c757d;
	margin: 0;
}

/* ---- COUPON REVEALED ---- */
.pp-coupon-revealed {
	display: none;
	background: linear-gradient(135deg, #f0faf4, #e8f5e9);
	border: 2px solid #25D366;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	margin-bottom: 24px;
	animation: pp-reveal 0.5s ease;
}
@keyframes pp-reveal {
	from { transform: scale(0.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.pp-coupon-label {
	font-size: 12px;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}
.pp-coupon-code {
	font-size: 28px;
	font-weight: 800;
	color: #128C7E;
	letter-spacing: 3px;
	font-family: 'Courier New', monospace;
	margin-bottom: 12px;
}
.pp-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #25D366;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}
.pp-copy-btn:hover {
	background: #128C7E;
}
.pp-coupon-expiry {
	font-size: 12px;
	color: #dc3545;
	margin-top: 8px;
}

/* ---- UNLOCK ACTIONS ---- */
.pp-unlock-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---- UNLOCK BUTTON ---- */
.pp-unlock-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	color: white;
}
.pp-unlock-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	color: white;
}
.pp-unlock-btn:active {
	transform: translateY(0);
}
.pp-btn-whatsapp {
	background: linear-gradient(135deg, #25D366, #128C7E);
}
.pp-btn-facebook {
	background: linear-gradient(135deg, #1877F2, #0d5dbf);
}
.pp-btn-email {
	background: linear-gradient(135deg, #6c757d, #495057);
}
.pp-btn-generic {
	background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ---- FORM FIELDS ---- */
.pp-input-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pp-input {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #dee2e6;
	border-radius: 10px;
	font-size: 15px;
	transition: border-color 0.2s;
	box-sizing: border-box;
	color: #212529;
}
.pp-input:focus {
	outline: none;
	border-color: #25D366;
	box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}
.pp-input::placeholder {
	color: #adb5bd;
}

/* ---- FOOTER ---- */
.pp-popup-footer {
	padding: 12px 24px 20px;
	text-align: center;
}
.pp-footer-text {
	font-size: 12px;
	color: #adb5bd;
}
.pp-viral-counter {
	font-size: 13px;
	color: #6c757d;
	margin-top: 4px;
}
.pp-viral-counter strong {
	color: #25D366;
}

/* ---- FOMO ---- */
.pp-fomo-bar {
	background: #fff3cd;
	border-top: 1px solid #ffc107;
	padding: 8px 16px;
	text-align: center;
	font-size: 12px;
	color: #856404;
	font-weight: 500;
}

/* ---- TIMER ---- */
.pp-timer {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
}
.pp-timer-unit {
	text-align: center;
	background: #212529;
	color: white;
	border-radius: 8px;
	padding: 8px 12px;
	min-width: 50px;
}
.pp-timer-number {
	font-size: 24px;
	font-weight: 700;
	display: block;
	line-height: 1;
}
.pp-timer-label {
	font-size: 10px;
	opacity: 0.7;
	text-transform: uppercase;
}

/* ---- LOADING ---- */
.pp-loading {
	display: none;
	text-align: center;
	padding: 20px;
	color: #6c757d;
}
.pp-spinner {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid #dee2e6;
	border-top-color: #25D366;
	border-radius: 50%;
	animation: pp-spin 0.8s linear infinite;
	margin-bottom: 8px;
}
@keyframes pp-spin {
	to { transform: rotate(360deg); }
}

/* ---- SUCCESS MESSAGE ---- */
.pp-success-msg {
	display: none;
	text-align: center;
	padding: 20px;
	color: #155724;
	background: #d4edda;
	border-radius: 10px;
	margin-bottom: 16px;
	font-weight: 600;
}

/* ---- ERROR MESSAGE ---- */
.pp-error-msg {
	display: none;
	text-align: center;
	padding: 12px;
	color: #721c24;
	background: #f8d7da;
	border-radius: 8px;
	margin-bottom: 12px;
	font-size: 14px;
}

/* ---- MOBILE ---- */
@media (max-width: 480px) {
	.pp-popup-title { font-size: 18px; }
	.pp-coupon-code { font-size: 22px; }
	.pp-unlock-btn { font-size: 15px; padding: 14px 20px; }
}
