/* Download-gate modal + sign-up page. */

.drx-gate {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.drx-gate__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.drx-gate__box {
	position: relative;
	width: 100%;
	max-width: 432px;
	background: var(--bg-0);
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
	padding: 26px 28px;
	max-height: 92vh;
	overflow-y: auto;
}

.drx-gate__top {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.drx-gate__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--r-pill);
	background: var(--droix-green-tint);
	color: var(--droix-green-deep);
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.drx-gate__x {
	all: unset;
	cursor: pointer;
	margin-left: auto;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	color: var(--fg-5);
}

.drx-gate__x:hover {
	background: var(--bg-3);
	color: var(--fg-2);
}

.drx-gate__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
}

.drx-gate__sub {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--fg-3);
}

.drx-gate__sub b {
	color: var(--fg-2);
}

.drx-gate__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	background: var(--bg-3);
	border: 1px solid var(--stroke-1);
	border-radius: 14px;
	padding: 4px;
	margin-bottom: 16px;
}

.drx-gate__tab {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	border-radius: 10px;
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 700;
	color: var(--fg-4);
	text-align: center;
}

.drx-gate__tab.is-active {
	color: var(--fg-2);
	background: var(--bg-0);
	box-shadow: var(--shadow-xs);
}

.drx-gate__err {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fdecec;
	color: #a4262c;
	font-size: 12.5px;
	font-weight: 500;
}

.drx-gate__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 13px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--fg-3);
}

.drx-gate__inwrap {
	position: relative;
	display: flex;
	align-items: center;
	color: var(--fg-5);
}

.drx-gate__inwrap .dxkb-icon {
	position: absolute;
	left: 13px;
}

.drx-gate__inwrap input {
	width: 100%;
	height: 46px;
	border: 1px solid var(--stroke-3);
	border-radius: 14px;
	padding: 0 14px 0 38px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--fg-2);
	outline: none;
}

.drx-gate__inwrap input:focus {
	border-color: var(--droix-green);
}

.drx-gate__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.drx-gate__check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--fg-3);
	cursor: pointer;
}

.drx-gate__check input {
	accent-color: var(--droix-green);
	width: 15px;
	height: 15px;
}

.drx-gate__forgot {
	font-size: 12.5px;
	font-weight: 600;
}

.drx-gate__cta {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	height: 48px;
	border-radius: var(--r-lg);
	background: var(--droix-green);
	color: #fff;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 14.5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.drx-gate__cta:hover {
	background: var(--droix-green-dark);
	box-shadow: var(--shadow-cta);
}

.drx-gate__cta[disabled] {
	opacity: 0.6;
	cursor: default;
}

.drx-gate__note {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fg-3);
}

.drx-gate__note b {
	color: var(--fg-2);
}

.drx-gate__otp {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.drx-gate__otp input {
	flex: 1;
	min-width: 0;
	height: 52px;
	text-align: center;
	border: 1px solid var(--stroke-3);
	border-radius: 14px;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 20px;
	color: var(--fg-2);
	outline: none;
}

.drx-gate__otp input:focus,
.drx-gate__otp input.is-filled {
	border-color: var(--droix-green);
	background: var(--droix-green-tint);
}

.drx-gate__resend {
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--fg-5);
	text-align: center;
}

.drx-gate__resend button {
	all: unset;
	cursor: pointer;
	font-weight: 600;
	color: var(--droix-green-deep);
}

.drx-gate__signup {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--stroke-1);
	text-align: center;
	font-size: 13px;
	color: var(--fg-3);
}

.drx-gate__signup a {
	font-weight: 700;
}

.drx-gate__fine {
	margin: 12px 0 0;
	font-size: 11px;
	line-height: 1.5;
	color: var(--fg-5);
	text-align: center;
}

.drx-gate__done {
	text-align: center;
	padding: 10px 0 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.drx-gate__done-ic {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--droix-green);
	color: #1b2400;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-cta);
}

.drx-gate__done .drx-gate__title {
	margin: 0;
	font-size: 21px;
}

.drx-gate__done .drx-gate__sub {
	margin: 0;
}

/* Mobile: full-width sheet */
@media (max-width: 640px) {
	.drx-gate {
		padding: 0;
		align-items: flex-end;
	}

	.drx-gate__box {
		max-width: none;
		border-radius: 24px 24px 0 0;
		max-height: 94vh;
	}
}

/* ── Sign-up page ── */
.drx-signup {
	padding: 24px 0 64px;
	max-width: 1000px;
	margin: 0 auto;
	width: 100%;
}

.drx-signup__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	border-radius: var(--r-2xl);
	overflow: hidden;
	border: 1px solid var(--stroke-1);
	box-shadow: var(--shadow-md);
}

.drx-signup__perks {
	background: var(--bg-dark);
	color: #fff;
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.drx-signup__perks h1 {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}

.drx-signup__perk {
	display: flex;
	gap: 13px;
	align-items: flex-start;
}

.drx-signup__perk-ic {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(176, 203, 31, 0.15);
	color: var(--droix-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.drx-signup__perk b {
	display: block;
	font-family: var(--font-ui);
	font-size: 14.5px;
	color: #fff;
}

.drx-signup__perk span {
	font-size: 12.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.65);
}

.drx-signup__form {
	background: var(--bg-0);
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
}

.drx-signup__form h2 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 6px;
}

.drx-signup__form > p {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--fg-3);
}

.drx-signup__login {
	margin-top: 16px;
	text-align: center;
	font-size: 13px;
	color: var(--fg-3);
}

.drx-signup__sub {
	margin: 0;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.6);
}

.drx-signup__perks h1 em {
	font-style: normal;
	color: var(--droix-green);
}

.drx-signup__trust {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
}

.drx-signup__trust b {
	color: #fff;
}

.drx-signup__login-btn {
	all: unset;
	cursor: pointer;
	font-weight: 700;
	color: var(--droix-green-deep);
}

.drx-signup__login-btn:hover {
	text-decoration: underline;
}

.drx-signup__done {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	justify-content: center;
	height: 100%;
}

@media (max-width: 860px) {
	.drx-signup__grid {
		grid-template-columns: 1fr;
	}
}
