/* Gated Content OTP — modal styles (matched to the provided mockups) */
.gco-modal {
	--gco-accent: #4141f5;
	--gco-accent-hover: #2d2de0;
	--gco-text: #111;
	--gco-muted: #666;
	--gco-line: #9a9a9a;
	--gco-back: #1fb0ef;
	--gco-error: #d93025;
	--gco-ok: #1a7f37;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}
.gco-modal.is-open { display: flex; }
html.gco-lock { overflow: hidden; }

.gco-modal .gco-overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 24, .55);
	backdrop-filter: blur(2px);
}

.gco-modal .gco-dialog {
	position: relative;
	width: 100%;
	max-width: 1080px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	color: var(--gco-text);
	border-radius: 16px;
	padding: 28px 44px 48px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
	animation: gco-in .25s ease;
	box-sizing: border-box;
}
.gco-modal .gco-dialog[data-size="sm"] { max-width: 560px; }
@keyframes gco-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.gco-modal .gco-step[hidden] { display: none !important; }

/* Close + back */
.gco-modal .gco-x,
.gco-modal .gco-x:hover,
.gco-modal .gco-x:focus {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #888;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.gco-modal .gco-x:hover { background: #f2f2f5; color: #111; }

.gco-modal .gco-back,
.gco-modal .gco-back:hover,
.gco-modal .gco-back:focus {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gco-back);
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	box-shadow: none;
}
.gco-modal .gco-back:hover { text-decoration: underline; }

/* Headings */
.gco-modal .gco-title {
	margin: 72px 0 36px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--gco-text);
	font-family: inherit;
}
.gco-modal .gco-title--sm { margin-top: 40px; }

/* Fields */
.gco-modal .gco-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 68px;
	row-gap: 30px;
}
.gco-modal .gco-field input {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--gco-line);
	border-radius: 0;
	background: transparent;
	color: var(--gco-text);
	font-size: 14px;
	font-family: inherit;
	line-height: 1.4;
	box-shadow: none;
	outline: none;
	transition: border-color .15s;
}
.gco-modal .gco-field input::placeholder { color: #222; opacity: 1; }
.gco-modal .gco-field input:focus { border-bottom-color: var(--gco-accent); box-shadow: none; }
.gco-modal .gco-field input:focus::placeholder { color: #aaa; }
.gco-modal .gco-field.has-error input { border-bottom-color: var(--gco-error); }

.gco-modal .gco-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Messages */
.gco-modal .gco-msg { min-height: 1.3em; margin: 16px 0 0; font-size: 13px; line-height: 1.4; color: var(--gco-error); }
.gco-modal .gco-msg.is-ok { color: var(--gco-ok); }

/* Actions */
.gco-modal .gco-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 32px;
	margin-top: 20px;
}
.gco-modal .gco-link,
.gco-modal .gco-link:hover,
.gco-modal .gco-link:focus {
	padding: 0;
	border: 0;
	background: none;
	color: var(--gco-accent);
	font-size: 15px;
	font-family: inherit;
	cursor: pointer;
	box-shadow: none;
}
.gco-modal .gco-link:hover { text-decoration: underline; }

.gco-modal .gco-btn,
.gco-modal .gco-btn:hover,
.gco-modal .gco-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 122px;
	height: 36px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--gco-accent);
	color: #fff;
	font-size: 15px;
	font-family: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background .15s, opacity .15s;
}
.gco-modal .gco-btn:hover { background: var(--gco-accent-hover); }
.gco-modal .gco-btn:focus-visible { outline: 2px solid var(--gco-accent); outline-offset: 3px; }
.gco-modal .gco-btn[disabled] { opacity: .6; cursor: wait; }
.gco-modal .gco-btn[hidden] { display: none; }

/* Returning (email only) */
.gco-modal [data-step="returning"] .gco-field { max-width: 100%; }

/* OTP */
.gco-modal .gco-center { max-width: 360px; margin: 32px auto 0; text-align: center; }
.gco-modal .gco-otp-text { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--gco-text); }
.gco-modal .gco-otp-email { margin: 0; font-size: 13px; color: var(--gco-muted); }
.gco-modal .gco-otp { display: flex; justify-content: center; gap: 7px; margin: 24px 0 4px; }
.gco-modal .gco-otp input {
	width: 40px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--gco-line);
	border-radius: 10px;
	background: #fff;
	color: var(--gco-text);
	font-size: 20px;
	font-family: inherit;
	text-align: center;
	box-shadow: none;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.gco-modal .gco-otp input:focus { border-color: var(--gco-accent); box-shadow: 0 0 0 3px rgba(65, 65, 245, .15); }
.gco-modal .gco-center .gco-msg { margin: 10px 0 18px; }

.gco-modal .gco-resend,
.gco-modal .gco-resend:hover,
.gco-modal .gco-resend:focus {
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gco-accent);
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	box-shadow: none;
}
.gco-modal .gco-resend[disabled] { color: var(--gco-muted); cursor: default; }

/* Done */
.gco-modal .gco-check { width: 52px; height: 52px; margin: 0 auto 12px; display: block; }
.gco-modal .gco-check circle { fill: none; stroke: var(--gco-accent); stroke-width: 2; }
.gco-modal .gco-check path { fill: none; stroke: var(--gco-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gco-modal .gco-done-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.gco-modal .gco-done-text { margin: 0 0 22px; font-size: 14px; color: var(--gco-muted); }

/* Mobile */
@media (max-width: 767px) {
	.gco-modal { padding: 10px; }
	.gco-modal .gco-dialog { padding: 20px 20px 28px; border-radius: 14px; }
	.gco-modal .gco-title { margin: 32px 0 20px; font-size: 16px; }
	.gco-modal .gco-grid { grid-template-columns: 1fr; row-gap: 18px; }
	.gco-modal .gco-actions { flex-direction: column-reverse; align-items: stretch; gap: 16px; text-align: center; }
	.gco-modal .gco-btn { width: 100%; }
	.gco-modal .gco-otp { gap: 6px; }
}
