﻿/* =============================================
   EN FORÊT Hair Therapy — Animations & Payment UI
   (keyframes, step-dots, gift-card scanner, 결제 UI)
============================================= */

@keyframes popIn {
	0% {
		transform: scale(0.4);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.step-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	flex-shrink: 0;
	transition: all 0.3s;
}

	.step-dot.done {
		background: #52b788;
		color: var(--text-dark);
	}

	.step-dot.active {
		background: var(--white);
		color: var(--forest);
	}

	.step-dot.pending {
		background: rgba(255,255,255,0.25);
		color: rgba(255,255,255,0.7);
	}

.step-line {
	flex: 1;
	height: 2px;
	background: rgba(255,255,255,0.25);
	margin: 0 4px;
}

	.step-line.done {
		background: #52b788;
	}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pulse {
	0%,100% {
		opacity: 1;
		transform: scale(1)
	}

	50% {
		opacity: 0.6;
		transform: scale(1.05)
	}
}

@keyframes scan {
	0% {
		top: 4px
	}

	100% {
		top: calc(100% - 6px)
	}
}

@keyframes scanFlash {
	0%,100% {
		opacity: 0
	}

	50% {
		opacity: 1
	}
}

.processing-ring {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 4px solid var(--cream);
	border-top-color: var(--forest);
	animation: spin 0.9s linear infinite;
	margin: 0 auto;
}
/* ── Gift card barcode scanner ─── */
.gc-scanner-wrap {
	position: relative;
	width: 100%;
	height: 100px;
	background: #0d1117;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
	border: 2px solid #2d3748;
}

.gc-bars {
	display: flex;
	align-items: stretch;
	gap: 2px;
	height: 70%;
	opacity: 0.85;
}

.gc-bar {
	background: #e2e8f0;
	height: 100%;
	border-radius: 1px;
}

.gc-scan-line {
	position: absolute;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg,transparent 0%,#52b788 30%,#86efac 50%,#52b788 70%,transparent 100%);
	box-shadow: 0 0 10px #52b788, 0 0 20px rgba(82,183,136,0.5);
	animation: scan 1.2s ease-in-out infinite alternate;
	top: 4px;
}

.gc-scanner-label {
	position: absolute;
	bottom: 6px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 10px;
	color: rgba(255,255,255,0.45);
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 600;
}
/* scanning = success flash */
.gc-scanner-wrap.scanning .gc-scan-line {
	animation: scan 0.3s linear infinite alternate, scanFlash 0.3s ease-in-out infinite;
	background: linear-gradient(90deg,transparent 0%,#facc15 30%,#fde68a 50%,#facc15 70%,transparent 100%);
	box-shadow: 0 0 12px #facc15, 0 0 24px rgba(250,204,21,0.6);
}

.cash-change-big {
	font-family: 'Plus Jakarta Sans',sans-serif;
	font-size: 48px;
	font-weight: 800;
	color: var(--gold);
	text-align: center;
	animation: pulse 1.5s ease-in-out infinite;
}
