body.gpa-lock {
	overflow: hidden;
}

.gpa-modal-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
	box-sizing: border-box;
}

.gpa-modal-frame {
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 2px;
	border-radius: 14px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), 0 18px 50px rgba(15, 23, 42, 0.35);
}

.gpa-modal-frame::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: -70%;
	background: conic-gradient(
		#020617 0deg,
		#38bdf8 70deg,
		#c4b5fd 110deg,
		#ffffff 140deg,
		#38bdf8 180deg,
		#020617 230deg,
		#020617 360deg
	);
	animation: gpa-border-spin 2.2s linear infinite;
}

.gpa-modal {
	position: relative;
	z-index: 1;
	width: 100%;
	background: #fff;
	border-radius: 12px;
	padding: 28px 20px 18px;
	font-family: inherit;
	color: #0f172a;
	box-sizing: border-box;
}

.gpa-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	color: #64748b;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gpa-close:hover,
.gpa-close:focus {
	color: #fff;
	background: #2563eb;
	border-color: #2563eb;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
	outline: none;
}

.gpa-title {
	margin: 0 32px 8px 0;
	font-size: 20px;
	line-height: 1.3;
}

.gpa-body {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #475569;
}

.gpa-status {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1d4ed8;
}

.gpa-status-error {
	color: #b91c1c;
}

.gpa-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gpa-btn {
	border: none;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}

.gpa-btn-primary {
	background: #2563eb;
	color: #fff;
}

.gpa-btn-primary:hover {
	background: #1d4ed8;
}

.gpa-btn-success {
	background: #059669;
	color: #fff;
}

.gpa-btn-success:hover,
.gpa-btn-success:focus {
	background: #047857;
	outline: none;
}

.gpa-btn-skip {
	background: transparent;
	color: #64748b;
}

.gpa-btn-skip:hover,
.gpa-btn-skip:focus {
	color: #fff;
	background: #2563eb;
}

.gpa-modal-frame.gpa-is-success {
	box-shadow: 0 0 24px rgba(16, 185, 129, 0.4), 0 18px 50px rgba(15, 23, 42, 0.35);
}

.gpa-modal-frame.gpa-is-success::before {
	animation: none;
	inset: 0;
	background: linear-gradient(135deg, #34d399, #10b981, #059669);
}

.gpa-modal-frame.gpa-is-success .gpa-title {
	color: #047857;
}

.gpa-success-mark {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 999px;
	background: #ecfdf5;
	border: 2px solid #10b981;
	position: relative;
	animation: gpa-success-pop 0.45s ease;
}

.gpa-success-mark::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 10px;
	width: 12px;
	height: 22px;
	border-right: 3px solid #059669;
	border-bottom: 3px solid #059669;
	transform: rotate(45deg);
}

.gpa-file {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.gpa-review-banner {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	font-size: 14px;
	font-weight: 600;
}

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

@keyframes gpa-success-pop {
	0% {
		transform: scale(0.6);
		opacity: 0;
	}
	70% {
		transform: scale(1.08);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gpa-modal-frame::before,
	.gpa-success-mark {
		animation: none;
	}
}
