/* The Bridge — login canvas. Scoped to body.bridge-login. */

html:has(body.bridge-login),
body.bridge-login {
	height: 100%;
	margin: 0;
	color: #f5f3f6;
	font-family: Inter, -apple-system, 'Segoe UI', system-ui, sans-serif;
	background:
		radial-gradient(120% 120% at 100% 100%, #051937 0%, transparent 55%),
		linear-gradient(160deg, #000 0%, #12040d 42%, #171228 75%, #171228 100%);
	background-attachment: fixed;
}

body.bridge-login #wpadminbar { display: none !important; }

.bl-page {
	position: relative;
	min-height: 100vh;
	width: 100%;
	overflow: hidden;
}

.bl-stars {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1.4px);
	background-size: 28px 28px;
	opacity: 0.04;
}

.bl-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 32px 24px 40px;
	box-sizing: border-box;
}

@media (min-width: 1024px) {
	.bl-wrap {
		flex-direction: row;
		align-items: stretch;
		gap: 32px;
		min-height: 100vh;
		padding: 32px;
	}
}

.bl-console-col {
	position: relative;
	order: 1;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (min-width: 1024px) {
	.bl-console-col { order: 2; }
}

.bl-planet {
	pointer-events: none;
	position: absolute;
	bottom: -62%;
	left: 50%;
	width: 900px;
	height: 900px;
	max-width: 160%;
	transform: translateX(-50%);
	border-radius: 50%;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	background: radial-gradient(circle at 50% 30%, rgba(5, 25, 55, 0.85) 0%, rgba(23, 18, 40, 0.45) 35%, transparent 70%);
}

.bl-orbit {
	pointer-events: none;
	position: absolute;
	bottom: 2%;
	left: 50%;
	height: 220px;
	width: 118%;
	max-width: 760px;
	transform: translateX(-50%);
}

.bl-console {
	position: relative;
	width: 100%;
	max-width: 600px;
	border-radius: 20px;
	padding: 28px;
	background: linear-gradient(160deg, rgba(17, 17, 19, 0.72), rgba(21, 21, 23, 0.68));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
	animation: bl-drift 9s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@media (min-width: 640px) {
	.bl-console { padding: 48px; }
}

.bl-console.is-shake { animation: bl-shake 400ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

.bl-glow {
	pointer-events: none;
	position: absolute;
	right: -120px;
	top: -120px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(238, 7, 110, 0.11), transparent 70%);
}

.bl-console-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bl-dots { display: flex; align-items: center; gap: 6px; }
.bl-dots span { width: 7px; height: 7px; border-radius: 50%; }
.bl-dots span:nth-child(1) { background: #f81f01; }
.bl-dots span:nth-child(2) { background: #ee076e; }
.bl-dots span:nth-child(3) { background: #d8f049; }

.bl-logo {
	display: block;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	line-height: 0;
	opacity: 1;
	position: relative;
	z-index: 9999;
}

.bl-logo .custom-logo-link,
.bl-logo .custom-logo {
	display: block;
	width: 52px;
	height: 52px;
}

.bl-logo .custom-logo {
	object-fit: contain;
	opacity: 1;
	position: relative;
	z-index: 9999;
}

.bl-mark {
	display: grid;
	grid-template-columns: repeat(3, 5px);
	gap: 2px;
}

.bl-mark i {
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 1px;
}

.bl-mark i.is-dim { background: rgba(245, 243, 246, 0.25); }
.bl-mark i.is-on { background: rgba(245, 243, 246, 0.9); }
.bl-mark i.is-core { background: linear-gradient(135deg, #f81f01, #ee076e); }

.bl-console h1 {
	margin: 28px 0 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #f5f3f6;
}

@media (min-width: 640px) {
	.bl-console h1 { font-size: 52px; }
}

.bl-lead {
	margin: 16px 0 0;
	max-width: 460px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #9b93a4;
}

.bl-welcome {
	margin: 16px 0 0;
	font-size: 15.5px;
	font-weight: 600;
	color: #d8f049;
}

.bl-fields { margin-top: 32px; }
.bl-field { position: relative; }
.bl-field + .bl-field { margin-top: 16px; }

.bl-field input {
	width: 100%;
	max-width: none;
	height: 58px;
	padding: 24px 16px 8px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: #f5f3f6;
	font-family: inherit;
	font-size: 14.5px;
	box-shadow: none;
	box-sizing: border-box;
	transition: border-color 150ms ease-out;
}

.bl-field input::placeholder { color: transparent; }
.bl-field input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: none;
}

.bl-field.is-invalid input,
.bl-field.is-invalid input:focus { border-color: #ee3f2c; }

.bl-field label {
	pointer-events: none;
	position: absolute;
	left: 16px;
	top: 19px;
	font-size: 14px;
	color: rgba(245, 243, 246, 0.3);
	transition: top 200ms ease-out, font-size 200ms ease-out, letter-spacing 200ms ease-out, color 200ms ease-out;
}

.bl-field input:focus + label,
.bl-field input:not(:placeholder-shown) + label {
	top: 9px;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #9b93a4;
}

.bl-msg { margin: 14px 0 0; font-size: 12.5px; color: #ee3f2c; }
.bl-msg--ok { color: #d8f049; }

.bl-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	border-radius: 8px;
	background: #25d366;
	color: #07301a;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.22);
}

.bl-wa:hover { opacity: 0.95; color: #07301a; }
.bl-wa svg { width: 14px; height: 14px; }

.bl-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 24px;
	border: 0;
	border-radius: 12px;
	padding: 16px;
	background: linear-gradient(90deg, #f81f01, #ee076e);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 30px rgba(238, 7, 110, 0.4), 0 2px 14px rgba(248, 31, 1, 0.28);
	transition: transform 150ms ease-out, opacity 150ms ease-out;
}

.bl-submit:hover { opacity: 0.95; color: #fff; }
.bl-submit:active { transform: scale(0.99); }
.bl-submit:disabled { cursor: wait; transform: none; }
.bl-submit:focus { outline: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 8px 30px rgba(238, 7, 110, 0.4); }

.bl-dots-load { display: none; align-items: center; gap: 6px; }
.bl-submit.is-loading .bl-dots-load { display: flex; }
.bl-submit.is-loading .bl-submit__label { display: none; }
.bl-dots-load span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: bl-pulse 1.6s ease-in-out infinite;
}
.bl-dots-load span:nth-child(2) { animation-delay: 160ms; }
.bl-dots-load span:nth-child(3) { animation-delay: 320ms; }

.bl-hint {
	margin: 20px 0 0;
	font-size: 12px;
	line-height: 1.55;
	color: #9b93a4;
}

.bl-hint a {
	color: #f5f3f6;
	font-weight: 600;
	text-decoration: none;
}

.bl-hint a:hover { color: #ee076e; }

/* Crew panel */
.bl-crew {
	order: 2;
	width: 100%;
	flex-shrink: 0;
}

@media (min-width: 1024px) {
	.bl-crew { order: 1; width: 428px; }
}

.bl-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	box-sizing: border-box;
	border-radius: 18px;
	padding: 20px;
	background: linear-gradient(160deg, rgba(17, 17, 19, 0.72), rgba(21, 21, 23, 0.68));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

.bl-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.bl-kicker {
	margin: 0;
	font-family: 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(155, 147, 164, 0.7);
}

.bl-kicker--loud {
	margin: 0 0 8px;
	letter-spacing: 0.22em;
	color: #9b93a4;
}

.bl-rule { height: 1px; background: rgba(255, 255, 255, 0.07); }

.bl-boot {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 10.5px;
	line-height: 1.85;
	color: rgba(245, 243, 246, 0.8);
}

.bl-boot li { opacity: 0; }
.bl-boot li.is-on { opacity: 1; animation: bl-rise 300ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.bl-boot .tag { margin-right: 6px; font-weight: 700; color: #d8f049; }
.bl-cursor {
	display: inline-block;
	width: 5px;
	height: 10px;
	margin-left: 4px;
	transform: translateY(1px);
	background: #d8f049;
	animation: bl-blink 1s step-start infinite;
}

.bl-tele { margin: 0; }
.bl-tele-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.bl-tele-row:last-child { border-bottom: 0; }
.bl-tele-row dt {
	margin: 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9b93a4;
}

.bl-tele-row dd {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #f5a524;
	transition: color 300ms ease-out;
}

.bl-tele-row dd.is-live { color: #d8f049; }
.bl-tele-row .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f5a524;
	transition: background 300ms ease-out;
}

.bl-tele-row dd.is-live .dot { background: #d8f049; }

.bl-gc-name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.2; }
.bl-gc-role { margin: 2px 0 0; font-size: 10.5px; line-height: 1.35; color: #9b93a4; }

.bl-wa--block {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 12px;
	padding: 10px 14px;
	font-size: 12.5px;
	box-sizing: border-box;
}

.bl-traj { margin: 0; }
.bl-traj-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
}

.bl-traj-grid div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.bl-traj-grid dt,
.bl-traj-grid dd {
	margin: 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
}

.bl-traj-grid dt {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9b93a4;
}

.bl-traj-grid dd { font-variant-numeric: tabular-nums; color: rgba(245, 243, 246, 0.8); }
.bl-traj-grid dd span { margin-left: 2px; color: #9b93a4; }

.bl-bars {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	margin-top: 12px;
	height: 18px;
}

.bl-bars span {
	width: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.1);
	transition: height 300ms ease-out, background-color 300ms ease-out;
}

.bl-bars span.is-lit { background: rgba(216, 240, 73, 0.6); }

.bl-loop {
	margin: 10px 0 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9.5px;
	line-height: 1.5;
	color: #9b93a4;
}

.bl-foot {
	margin-top: auto;
	padding-top: 8px;
	font-size: 9.5px;
	line-height: 1.5;
	color: #9b93a4;
}

/* Modals */
.bl-modal-back {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.bl-modal-back.is-open { display: flex; }

.bl-modal {
	width: 100%;
	max-width: 430px;
	border-radius: 18px;
	padding: 24px;
	background: linear-gradient(160deg, rgba(17, 17, 19, 0.92), rgba(21, 21, 23, 0.88));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
	animation: bl-rise 300ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.bl-modal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bl-modal__kicker {
	margin: 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #9b93a4;
}

.bl-modal h2 { margin: 4px 0 0; font-size: 19px; font-weight: 700; }
.bl-modal__sub { margin: 4px 0 0; font-size: 11.5px; color: #9b93a4; }
.bl-modal__x { background: none; border: 0; padding: 0; color: #9b93a4; cursor: pointer; line-height: 0; }
.bl-modal__x:hover { color: #f5f3f6; }
.bl-modal__fields { margin-top: 20px; }
.bl-modal__err { display: none; margin-top: 10px; font-size: 12.5px; color: #ee3f2c; }
.bl-modal__err.is-on { display: block; }
.bl-modal__ok { display: none; margin-top: 10px; font-size: 12.5px; color: #d8f049; }
.bl-modal__ok.is-on { display: block; }
.bl-modal__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 24px;
}

.bl-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 9px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	color: #f5f3f6;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
}

.bl-btn:hover { background: rgba(255, 255, 255, 0.08); color: #f5f3f6; }
.bl-btn--primary {
	border-color: transparent;
	background: linear-gradient(90deg, #f81f01, #ee076e);
	color: #fff;
	font-weight: 700;
}

.bl-btn--primary:hover { opacity: 0.95; color: #fff; background: linear-gradient(90deg, #f81f01, #ee076e); }

.bl-hp { position: absolute; left: -9999px; }

@keyframes bl-drift {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(0, -6px, 0); }
}

@keyframes bl-rise {
	from { opacity: 0; transform: translate3d(0, 10px, 0); }
	to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bl-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(1.5); }
}

@keyframes bl-blink { 50% { opacity: 0; } }

@keyframes bl-shake {
	10%, 90% { transform: translate3d(-2px, 0, 0); }
	20%, 80% { transform: translate3d(3px, 0, 0); }
	30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
	40%, 60% { transform: translate3d(5px, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.bl-console,
	.bl-boot li.is-on,
	.bl-cursor,
	.bl-dots-load span,
	.bl-modal { animation: none !important; }
}

/* Public join / boarding pass. */
.bj-wrap { justify-content: center; }
.bj-card { max-width: 460px; width: 100%; }
.bj-kicker {
	margin: 0 0 18px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #9b93a4;
}
.bj-step {
	margin: 0 0 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #c8c0d0;
}
.bj-step.is-amber { color: #f5a524; }
.bj-step.is-red { color: #ee3f2c; }
.bj-card h1 {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}
.bj-note {
	margin-top: 14px;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.04);
}
.bj-name { margin: 0; font-size: 17px; font-weight: 700; }
.bj-note p + p,
.bj-lead,
.bj-hold {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #9b93a4;
}
.bj-card .bl-wa { margin-top: 20px; }
