/*
 * Free Code Gen — front-end styles.
 */

/* ===== Product "Get Free Key" button (own full-width line above qty+cart) === */
.fcg-get-key-btn {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 0 16px !important;
	padding: 15px 20px !important;
	background: transparent !important;
	color: #fff !important;
	border: 2px solid #fff !important;
	border-radius: 999px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	cursor: pointer !important;
	box-shadow: none !important;
	transition: background .2s ease, color .2s ease;
}
.fcg-get-key-btn:hover,
.fcg-get-key-btn:focus {
	background: #fff !important;
	color: #111 !important;
}
/* Hidden until JS confirms keys are available (beats the display:block above). */
.fcg-get-key-btn.fcg-hide { display: none !important; }

/* ===== Modal / overlay (dark, matches the site) ========================== */
.fcg-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	background: rgba(0, 0, 0, .68);
	padding: 18px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.fcg-overlay.fcg-open { display: flex; }

.fcg-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 24px auto;
	background: #1c1c1f;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 18px;
	padding: 26px 24px 22px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
}
.fcg-close {
	position: absolute;
	top: 12px;
	right: 16px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: #9aa0a6;
	cursor: pointer;
}
.fcg-close:hover { color: #fff; }

/* Block selecting / copying inside the instruction modal. */
.fcg-noselect,
.fcg-noselect * {
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
	-webkit-touch-callout: none !important;
}

.fcg-modal-head { text-align: center; margin-bottom: 20px; }
.fcg-modal-badge {
	width: 56px; height: 56px; margin: 0 auto 10px;
	border-radius: 50%;
	background: rgba(251, 191, 36, .16);
	display: flex; align-items: center; justify-content: center;
	font-size: 28px;
}
.fcg-modal-title { margin: 0 0 4px; font-size: 21px; font-weight: 800; color: #fff; }
.fcg-modal-sub { margin: 0; font-size: 13px; color: #9aa0a6; }

/* Stepped instructions */
.fcg-step { display: flex; gap: 12px; margin: 0 0 18px; text-align: left; }
.fcg-step-num {
	flex: 0 0 auto;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: #fbbf24;
	color: #1c1c1f;
	font-size: 14px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.fcg-step-body { flex: 1; min-width: 0; }
.fcg-step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.fcg-step-hint { font-size: 12.5px; color: #9aa0a6; margin-bottom: 10px; }

/* Google search-box mockup (white, pops on the dark modal) */
.fcg-gbox {
	display: flex; align-items: center; gap: 12px;
	padding: 11px 16px;
	border: 1px solid #dfe1e5;
	border-radius: 24px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
	background: #fff;
}
.fcg-gicon { display: flex; align-items: center; }
.fcg-kw { font-family: arial, sans-serif; font-size: 16px; color: #202124; word-break: break-word; }

/* Google result mockup (white card) */
.fcg-serp {
	background: #fff;
	border-radius: 10px;
	padding: 12px 14px;
	font-family: arial, sans-serif;
	text-align: left;
}
.fcg-serp-head { display: flex; align-items: center; gap: 11px; margin-bottom: 5px; }
.fcg-serp-fav { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #e8eaed; border: 1px solid #dfe1e5; }
.fcg-serp-name { font-size: 14px; color: #202124; line-height: 18px; }
.fcg-serp-url { font-size: 12px; color: #5f6368; line-height: 16px; word-break: break-all; }
.fcg-serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 2px 0 3px; font-weight: 400; }
.fcg-serp-snippet { color: #4d5156; font-size: 13px; line-height: 1.55; }
.fcg-serp-snippet:empty { display: none; }

.fcg-guide {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, .06);
	border-radius: 8px;
	font-size: 14px;
	color: #e8e8ef;
}

.fcg-go-google {
	display: flex; align-items: center; justify-content: center; gap: 9px;
	width: 100%; box-sizing: border-box;
	margin-top: 4px; padding: 13px 18px;
	background: #1a73e8;
	color: #fff !important;
	border-radius: 10px;
	font-size: 15px; font-weight: 700;
	text-decoration: none !important;
}
.fcg-go-google:hover { background: #1765cc; }
.fcg-expire-note { margin: 14px 0 0; font-size: 12px; color: #80868b; text-align: center; }

/* Conflict confirm dialog (uses .fcg-modal, dark) */
.fcg-confirm-text { font-weight: 700; margin: 0 0 8px; color: #fbbf24; }
.fcg-hint { color: rgba(255, 255, 255, .7); font-size: 13px; }
.fcg-confirm-btns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.fcg-btn-ghost, .fcg-btn-solid {
	padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.fcg-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.fcg-btn-solid { background: #d93025; color: #fff; border: 1px solid #d93025; }

/* ===== Landing page claim section ======================================== */
.fcg-claim { max-width: 600px; margin: 48px auto; padding: 30px 22px; text-align: center; color: #fff; }
.fcg-claim-inner {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 18px;
	padding: 28px 22px;
}
.fcg-claim-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #fff; }
.fcg-claim-sub { margin: 0 0 20px; font-size: 15px; color: #e2e2ea; line-height: 1.6; }

.fcg-claim-btn {
	display: inline-block; min-width: 240px;
	padding: 16px 30px;
	background: #fff; color: #0a0a0a;
	border: 2px solid #fff; border-radius: 999px;
	font-size: 17px; font-weight: 800; cursor: pointer;
}
.fcg-claim-btn:hover { background: #eee; }
.fcg-claim-btn[disabled] { opacity: .55; cursor: not-allowed; }

.fcg-captcha-wrap { display: flex; justify-content: center; margin: 18px 0; }

.fcg-timer-wrap { margin: 10px 0; }
.fcg-timer { font-size: 54px; font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fcg-timer.fcg-paused { color: #fbbf24; }
.fcg-timer-note { margin-top: 8px; font-size: 14px; color: #e2e2ea; line-height: 1.6; }
.fcg-timer-note .fcg-hint { color: rgba(255, 255, 255, .8); }

.fcg-loading { margin: 22px 0; }
.fcg-spinner {
	width: 54px; height: 54px; margin: 0 auto 14px;
	border: 5px solid rgba(255, 255, 255, .18);
	border-top-color: #fbbf24;
	border-radius: 50%;
	animation: fcg-spin .8s linear infinite;
}
@keyframes fcg-spin { to { transform: rotate(360deg); } }
.fcg-loading-text { font-size: 15px; color: #e2e2ea; line-height: 1.6; }

.fcg-key-wrap { margin-top: 12px; }
.fcg-key-label { font-size: 14px; color: #e2e2ea; margin-bottom: 10px; }
.fcg-key {
	display: inline-block; max-width: 100%;
	padding: 16px 22px;
	background: rgba(255, 255, 255, .06);
	border: 2px dashed #fbbf24; border-radius: 12px;
	font-family: "Courier New", monospace;
	font-size: 22px; font-weight: 700; color: #fbbf24;
	letter-spacing: 1px; word-break: break-all; cursor: pointer;
}
.fcg-key:hover { background: rgba(251, 191, 36, .12); }
.fcg-key-copied { margin-top: 10px; color: #4ade80; font-weight: 700; }
.fcg-claim-msg { margin-top: 14px; font-size: 14px; color: #ff6b6b; min-height: 18px; white-space: pre-line; line-height: 1.6; }

/* The hidden attribute must win even though some of these have a display value
   (fixes the claim button + captcha box still showing once the wait starts). */
.fcg-claim[hidden],
.fcg-claim [hidden],
.fcg-guide[hidden] { display: none !important; }
