/* HD Page Code — popup frontend */
:root { --hd-pc-accent: #1a73e8; }

.hd-page-code-trigger {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.hd-page-code-trigger:hover { transform: translateY(-1px); opacity: 0.9; }
.hd-pc-icon-trigger .hd-pc-icon-font,
.hd-pc-icon-trigger .hd-pc-icon-img { line-height: 1; }

.hd-pc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hd-pc-overlay.is-open { opacity: 1; visibility: visible; }

.hd-pc-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	padding: 38px 34px 32px;
	text-align: center;
	transform: translateY(18px) scale(0.97);
	opacity: 0;
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
	font-family: inherit;
}
.hd-pc-overlay.is-open .hd-pc-modal { transform: translateY(0) scale(1); opacity: 1; }

.hd-pc-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #9aa0a6;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.15s ease, color 0.15s ease;
}
.hd-pc-close:hover { background: #f1f3f4; color: #5f6368; }

.hd-pc-modal-title {
	margin: 0 0 22px;
	font-size: 22px;
	font-weight: 700;
	color: #202124;
	line-height: 1.3;
}

.hd-pc-form { display: flex; flex-direction: column; gap: 14px; }

.hd-pc-field {
	width: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	font-size: 20px;
	text-align: center;
	letter-spacing: 1px;
	color: #202124;
	background: #f8f9fa;
	border: 2px solid #e0e3e7;
	border-radius: 12px;
	outline: none;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.hd-pc-field::placeholder { color: #b0b5bb; letter-spacing: normal; }
.hd-pc-field:focus {
	border-color: var(--hd-pc-accent);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.hd-pc-submit {
	width: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	background: var(--hd-pc-accent);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: filter 0.18s ease, transform 0.05s ease;
}
.hd-pc-submit:hover { filter: brightness(1.07); }
.hd-pc-submit:active { transform: scale(0.99); }
.hd-pc-submit:disabled { opacity: 0.7; cursor: default; }

.hd-pc-message {
	margin-top: 16px;
	min-height: 22px;
	font-size: 15px;
	font-weight: 500;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.hd-pc-message.is-visible { opacity: 1; transform: translateY(0); }
.hd-pc-message.is-success { color: #188038; }
.hd-pc-message.is-error { color: #d93025; }

.hd-pc-spinner {
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid rgba(24, 128, 56, 0.3);
	border-top-color: #188038;
	border-radius: 50%;
	animation: hd-pc-spin 0.7s linear infinite;
}
@keyframes hd-pc-spin { to { transform: rotate(360deg); } }

.hd-pc-field.is-shake { animation: hd-pc-shake 0.4s; }
@keyframes hd-pc-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-7px); }
	40%, 80% { transform: translateX(7px); }
}

@media (max-width: 480px) {
	.hd-pc-modal { padding: 32px 22px 26px; border-radius: 16px; }
	.hd-pc-modal-title { font-size: 19px; }
	.hd-pc-field { font-size: 18px; padding: 14px 16px; }
	.hd-pc-submit { font-size: 17px; padding: 15px 16px; }
}
