/* ==========================================================================
   WISP UI Refresh — presentation layer for the WISP Connect app
   Deactivate the "WISP UI Refresh" plugin to restore the original styling.
   ========================================================================== */

:root {
	--wr-navy-950: #060f1f;
	--wr-navy-900: #0a1628;
	--wr-navy-800: #0d2040;
	--wr-navy-700: #14305c;
	--wr-blue-600: #2563eb;
	--wr-blue-500: #3b82f6;
	--wr-blue-400: #60a5fa;
	--wr-cyan-400: #22d3ee;
	--wr-ink: #0b1526;
	--wr-muted: #5b6b82;
	--wr-line: #e3e9f2;
	--wr-surface: #f6f8fc;
	--wr-radius: 16px;
	--wr-shadow-sm: 0 1px 2px rgba(10, 22, 40, .06), 0 1px 3px rgba(10, 22, 40, .08);
	--wr-shadow-md: 0 8px 24px -8px rgba(10, 22, 40, .18);
	--wr-shadow-lg: 0 24px 48px -16px rgba(10, 22, 40, .28);
	--wr-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wr-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Typography --------------------------------------------------- */
#root, #root .font-body, #root input, #root select, #root textarea, #root button {
	font-family: var(--wr-font);
}
#root { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
#root h1, #root h2, #root h3 {
	font-family: var(--wr-display);
	letter-spacing: -0.02em;
}
html { scroll-behavior: smooth; }
::selection { background: rgba(59, 130, 246, .25); }

/* ---------- Header ------------------------------------------------------- */
#root header[class*="bg-[#0a1628]"] {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(7, 16, 31, .96) !important;
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(148, 180, 255, .10);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45) !important;
}
#root header[class*="bg-[#0a1628]"] > div { padding-top: .85rem; padding-bottom: .85rem; }
#root header[class*="bg-[#0a1628]"] .text-xl.font-bold { font-family: var(--wr-display); letter-spacing: -0.01em; }
#root header[class*="bg-[#0a1628]"] .text-xs.text-blue-300 {
	padding-left: .75rem;
	margin-left: .15rem;
	border-left: 1px solid rgba(147, 197, 253, .25);
	font-weight: 500;
	letter-spacing: .02em;
}
#root header[class*="bg-[#0a1628]"] > div { justify-content: flex-start; }
#root header[class*="bg-[#0a1628]"] > div > div:nth-child(2) { margin-left: auto; }
#root header[class*="bg-[#0a1628]"] > div > .wr-header-actions:nth-child(2) { margin-left: auto; }
[data-wr-auth="1"] .wr-header-actions .wr-btn--ghost { display: none; }

/* injected header actions */
.wr-header-actions { display: flex; align-items: center; gap: .5rem; margin-left: 1.25rem; }
.wr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	font-family: var(--wr-font); font-weight: 600; font-size: .875rem; line-height: 1;
	padding: .65rem 1.05rem; border-radius: 10px; text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
	white-space: nowrap; cursor: pointer;
}
.wr-btn--ghost { color: #dbeafe; border: 1px solid rgba(147, 197, 253, .28); background: rgba(255, 255, 255, .03); }
.wr-btn--ghost:hover { color: #fff; border-color: rgba(147, 197, 253, .55); background: rgba(255, 255, 255, .08); }
.wr-btn--primary {
	color: #fff; border: 1px solid rgba(255, 255, 255, .12);
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.wr-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .2); }
@media (max-width: 640px) {
	#root header .wr-header-actions { margin-left: auto !important; gap: .4rem; }
	.wr-header-actions .wr-btn { padding: .55rem .8rem; font-size: .8rem; }
}

/* ---------- Hero --------------------------------------------------------- */
#root header + section[class*="from-[#0a1628]"] {
	padding-top: 7.5rem;
	padding-bottom: 8rem;
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(59, 130, 246, .28), transparent 60%),
		radial-gradient(700px 400px at 90% 110%, rgba(34, 211, 238, .14), transparent 60%),
		linear-gradient(160deg, #060f1f 0%, #0b1d3a 45%, #143565 100%) !important;
}
#root header + section[class*="from-[#0a1628]"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
	background: linear-gradient(to bottom, transparent, rgba(6, 15, 31, .35));
}
#root header + section h1 {
	font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
	line-height: 1.04 !important;
	font-weight: 800;
	letter-spacing: -0.035em;
	margin-bottom: 1.75rem;
}
#root header + section h1 span.text-blue-400 {
	background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 45%, #22d3ee 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}
#root header + section h1 + p { font-size: 1.2rem; line-height: 1.7; color: #c7d7f2 !important; }
#root header + section div[class*="bg-blue-500/20"].rounded-full {
	background: rgba(59, 130, 246, .12) !important;
	border-color: rgba(147, 197, 253, .28) !important;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-weight: 500; letter-spacing: .01em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
	margin-bottom: 1.75rem;
}
#root header + section span[class*="bg-blue-500/20"].rounded-full {
	background: rgba(255, 255, 255, .05) !important;
	border-color: rgba(147, 197, 253, .22) !important;
	font-weight: 500;
}
#root header + section a[class*="bg-blue-500"] {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 14px !important;
	padding: 1.05rem 2rem !important;
	font-size: 1.05rem !important;
	box-shadow: 0 18px 40px -14px rgba(37, 99, 235, .9), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}
#root header + section a[class*="bg-blue-500"]:hover { transform: translateY(-2px); }
.wr-hero-ctas { display: inline-flex; vertical-align: middle; margin-left: .85rem; }
@media (max-width: 560px) { .wr-hero-ctas { display: flex; justify-content: center; margin: .85rem 0 0; } }
.wr-hero-ctas .wr-btn--ghost { padding: 1.05rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.wr-trust {
	display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: 2.25rem;
	color: #9fb6d9; font-size: .85rem; font-weight: 500;
}
.wr-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.wr-trust svg { width: 16px; height: 16px; color: #60a5fa; flex: none; }

/* ---------- Section headings (eyebrows) --------------------------------- */
#root section h2.text-3xl { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
.wr-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wr-blue-600); margin-bottom: .85rem;
}
.wr-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.wr-eyebrow--light { color: #7cb5ff; }

/* ---------- Portal access cards ----------------------------------------- */
#root section.py-20.bg-white {
	background:
		radial-gradient(800px 300px at 50% 0%, rgba(59, 130, 246, .06), transparent 70%),
		#fff !important;
	padding-top: 6rem; padding-bottom: 6rem;
}
#root section.py-20.bg-white p.text-gray-500 { color: var(--wr-muted); font-size: 1.05rem; }
#root .group.rounded-2xl[class*="hover:-translate-y-1"] {
	border-radius: 20px;
	padding: 2rem 1.6rem 1.75rem !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, var(--wr-shadow-md);
	isolation: isolate;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
#root .group.rounded-2xl[class*="hover:-translate-y-1"]::before {
	content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
	border: 1px solid rgba(255, 255, 255, .12);
	background: radial-gradient(400px 200px at 100% 0%, rgba(255, 255, 255, .14), transparent 60%);
}
#root .group.rounded-2xl[class*="hover:-translate-y-1"]:hover {
	transform: translateY(-6px);
	box-shadow: var(--wr-shadow-lg), 0 0 0 1px rgba(96, 165, 250, .25);
}
#root .group.rounded-2xl .w-12.h-12.rounded-xl {
	border-radius: 14px; background: rgba(255, 255, 255, .12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
#root .group.rounded-2xl h3 { font-size: 1.35rem; }
#root .group.rounded-2xl div.flex.flex-wrap.gap-4 { gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
#root .group.rounded-2xl div.flex.flex-wrap.gap-4 > a {
	padding: .45rem .8rem .45rem .9rem; border-radius: 9px;
	background: rgba(255, 255, 255, .08); color: #e6efff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
	transition: background-color .18s ease, color .18s ease;
}
#root .group.rounded-2xl div.flex.flex-wrap.gap-4 > a:first-child { background: #fff; color: var(--wr-navy-900); box-shadow: none; }
#root .group.rounded-2xl div.flex.flex-wrap.gap-4 > a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
#root .group.rounded-2xl div.flex.flex-wrap.gap-4 > a:first-child:hover { background: #dbeafe; color: var(--wr-navy-900); }

/* ---------- Stats band --------------------------------------------------- */
#root section.py-16[class*="bg-[#0a1628]"] {
	background:
		radial-gradient(600px 200px at 20% 0%, rgba(59, 130, 246, .18), transparent 70%),
		radial-gradient(600px 200px at 80% 100%, rgba(34, 211, 238, .10), transparent 70%),
		var(--wr-navy-950) !important;
	border-top: 1px solid rgba(148, 180, 255, .08);
	border-bottom: 1px solid rgba(148, 180, 255, .08);
}
#root section.py-16[class*="bg-[#0a1628]"] > div { max-width: 64rem; gap: 1.25rem; }
#root section.py-16[class*="bg-[#0a1628]"] > div > div {
	padding: 1.75rem 1rem;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
	border: 1px solid rgba(148, 180, 255, .12);
}
#root section.py-16[class*="bg-[#0a1628]"] svg {
	width: 44px; height: 44px; padding: 10px; border-radius: 12px;
	background: rgba(59, 130, 246, .14); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .25);
}
#root section.py-16[class*="bg-[#0a1628]"] .text-3xl {
	font-family: var(--wr-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em;
	background: linear-gradient(180deg, #fff 30%, #bcd4ff 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#root section.py-16[class*="bg-[#0a1628]"] .text-blue-300 { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: #8fb3e8; }

/* ---------- Marketplace -------------------------------------------------- */
#root section[class*="bg-gray-50"], #root section[class*="bg-slate-50"] { background: var(--wr-surface) !important; }
#root select.appearance-none {
	height: 48px; border-color: var(--wr-line) !important; border-radius: 12px !important;
	box-shadow: var(--wr-shadow-sm) !important; transition: border-color .15s ease, box-shadow .15s ease;
}
#root select.appearance-none:hover { border-color: #c4d2e8 !important; }
#root .bg-white.rounded-2xl.border.border-gray-100 {
	border-color: var(--wr-line) !important; box-shadow: var(--wr-shadow-sm);
}

/* ---------- Coverage map ------------------------------------------------- */
#root section.py-20[class*="from-[#0a1628]"] .rounded-2xl.bg-gray-50 {
	background: rgba(255, 255, 255, .04) !important;
	border: 1px dashed rgba(148, 180, 255, .3) !important;
	color: #9fb6d9 !important;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#root section.py-20[class*="from-[#0a1628]"] .rounded-2xl.bg-gray-50 svg { color: #60a5fa !important; }

/* ---------- Footer ------------------------------------------------------- */
#root footer[class*="bg-[#0a1628]"] {
	position: relative;
	background:
		radial-gradient(900px 300px at 15% 0%, rgba(59, 130, 246, .10), transparent 70%),
		var(--wr-navy-950) !important;
	padding-top: 4.5rem !important; padding-bottom: 2rem !important;
	border-top: 1px solid rgba(148, 180, 255, .10);
	color: #9fb0c8 !important;
}
#root footer[class*="bg-[#0a1628]"]::before {
	content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
	width: min(720px, 80%); height: 1px;
	background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .8), transparent);
}
/* the injected footer replaces the original top row */
[data-wr-hidden] { display: none !important; }
.wr-footer {
	max-width: 72rem; margin: 0 auto;
	display: grid; gap: 2.5rem;
	grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
	text-align: left;
}
.wr-footer__brand .wr-logo { display: inline-flex; align-items: center; gap: .55rem; color: #60a5fa; text-decoration: none; }
.wr-footer__brand .wr-logo svg { width: 30px; height: 30px; }
.wr-footer__brand .wr-logo span { font-family: var(--wr-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; color: #fff; }
.wr-footer__brand p { margin: 1rem 0 0; font-size: .9rem; line-height: 1.65; color: #9fb0c8; max-width: 22rem; }
.wr-footer__brand address { font-style: normal; margin-top: 1rem; font-size: .82rem; line-height: 1.6; color: #7f93b0; }
.wr-footer__brand address strong { display: block; color: #dbe6f7; font-weight: 600; }
.wr-footer h4 {
	margin: 0 0 1rem; font-family: var(--wr-font); font-size: .72rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: #e2ebf8;
}
.wr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.wr-footer ul a {
	color: #9fb0c8; text-decoration: none; font-size: .9rem;
	display: inline-flex; align-items: center; gap: .5rem; transition: color .15s ease;
}
.wr-footer ul a:hover { color: #fff; }
.wr-footer ul svg { width: 15px; height: 15px; color: #60a5fa; flex: none; }
#root footer.wr-footer-enhanced > div:last-child {
	max-width: 72rem; margin-top: 3rem; padding-top: 1.75rem;
	border-top-color: rgba(148, 180, 255, .12) !important;
	flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
#root footer.wr-footer-enhanced > div:last-child > div.text-center {
	order: -1; text-align: left; max-width: none; color: #7f93b0 !important; font-size: .8rem;
}
@media (max-width: 900px) {
	.wr-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wr-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.wr-footer { grid-template-columns: 1fr; gap: 2rem; }
	#root footer.wr-footer-enhanced > div:last-child { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

/* ---------- Scroll reveal ----------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	[data-wr-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
	[data-wr-reveal="in"] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sign-in & registration screens  (html[data-wr-auth="1"] is set by refresh.js)
   ========================================================================== */
html[data-wr-auth="1"] {
	--background: 216 33% 98%;
	--foreground: 219 58% 10%;
	--card: 0 0% 100%;
	--card-foreground: 219 58% 10%;
	--primary: 221 83% 53%;
	--primary-foreground: 0 0% 100%;
	--muted-foreground: 216 16% 44%;
	--border: 216 32% 91%;
	--input: 216 26% 85%;
	--ring: 217 91% 60%;
	--accent: 214 70% 96%;
	--accent-foreground: 221 83% 40%;
	--radius: .75rem;
}
html[data-wr-auth="1"] body { background: #f4f7fc; }

/* page shell */
html[data-wr-auth="1"] #root > div.min-h-screen.bg-background {
	background:
		radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, .08), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(34, 211, 238, .06), transparent 60%),
		#f4f7fc !important;
	padding-top: 3rem; padding-bottom: 3rem;
}
html[data-wr-auth="1"] #root > div.min-h-screen > div.max-w-md,
html[data-wr-auth="1"] #root > div.min-h-screen > div[class*="max-w-"] { position: relative; z-index: 1; }

/* heading block */
html[data-wr-auth="1"] #root .text-center.mb-10 { margin-bottom: 2rem; }
html[data-wr-auth="1"] #root .text-center.mb-10 .text-xl.font-bold { font-family: var(--wr-display); color: var(--wr-navy-900); }
html[data-wr-auth="1"] #root .text-center.mb-10 > div.flex.mb-6 svg { color: var(--wr-blue-600); }
html[data-wr-auth="1"] #root div.w-14.h-14.rounded-2xl.bg-primary svg { color: #fff !important; }
html[data-wr-auth="1"] #root div.w-14.h-14.rounded-2xl.bg-primary {
	border-radius: 16px;
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
	box-shadow: 0 12px 28px -10px rgba(37, 99, 235, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
html[data-wr-auth="1"] #root h1.text-3xl { font-size: 2rem; font-weight: 800; color: var(--wr-ink); }
html[data-wr-auth="1"] #root h1.text-3xl + p { font-size: 1rem; }

/* card */
html[data-wr-auth="1"] #root .bg-card.rounded-2xl {
	border-radius: 20px !important;
	border-color: rgba(10, 22, 40, .07) !important;
	box-shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 12px 32px -12px rgba(10, 22, 40, .14), 0 32px 64px -32px rgba(10, 22, 40, .12) !important;
	padding: 2.25rem !important;
}
@media (max-width: 480px) { html[data-wr-auth="1"] #root .bg-card.rounded-2xl { padding: 1.5rem !important; } }

/* labels */
html[data-wr-auth="1"] #root label { font-size: .82rem; font-weight: 600; color: #22324a; letter-spacing: .005em; }

/* inputs */
html[data-wr-auth="1"] #root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-wr-auth="1"] #root select,
html[data-wr-auth="1"] #root textarea,
html[data-wr-auth="1"] #root button[role="combobox"] {
	border-radius: 11px !important;
	border: 1px solid hsl(216 26% 85%) !important;
	background-color: #fff !important;
	color: var(--wr-ink);
	box-shadow: 0 1px 2px rgba(10, 22, 40, .04) !important;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html[data-wr-auth="1"] #root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
html[data-wr-auth="1"] #root select:hover, html[data-wr-auth="1"] #root textarea:hover,
html[data-wr-auth="1"] #root button[role="combobox"]:hover { border-color: hsl(216 24% 74%) !important; }
html[data-wr-auth="1"] #root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
html[data-wr-auth="1"] #root select:focus, html[data-wr-auth="1"] #root textarea:focus,
html[data-wr-auth="1"] #root button[role="combobox"]:focus {
	outline: none !important;
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, .16) !important;
}
html[data-wr-auth="1"] #root input::placeholder, html[data-wr-auth="1"] #root textarea::placeholder { color: #94a3b8; }
html[data-wr-auth="1"] #root input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #f5f9ff inset !important;
	-webkit-text-fill-color: var(--wr-ink);
}
html[data-wr-auth="1"] #root input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #f5f9ff inset, 0 0 0 4px rgba(59, 130, 246, .16) !important;
}
html[data-wr-auth="1"] #root .relative > svg.absolute { color: #8a9ab2; transition: color .15s ease; }
html[data-wr-auth="1"] #root .relative:focus-within > svg.absolute { color: #2563eb; }
html[data-wr-auth="1"] #root input[type="checkbox"], html[data-wr-auth="1"] #root input[type="radio"] { accent-color: #2563eb; }
html[data-wr-auth="1"] #root button[role="checkbox"] { border-radius: 5px; border-color: hsl(216 26% 75%); }
html[data-wr-auth="1"] #root button[role="checkbox"][data-state="checked"] { background: #2563eb; border-color: #2563eb; }

/* buttons */
html[data-wr-auth="1"] #root button.bg-primary,
html[data-wr-auth="1"] #root a.bg-primary {
	border-radius: 11px !important;
	font-weight: 600 !important; letter-spacing: .005em;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
	box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
html[data-wr-auth="1"] #root button.bg-primary:hover:not(:disabled),
html[data-wr-auth="1"] #root a.bg-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .9), inset 0 1px 0 rgba(255, 255, 255, .2) !important; }
html[data-wr-auth="1"] #root button.bg-primary:active:not(:disabled) { transform: translateY(0); }
html[data-wr-auth="1"] #root button.border-input.bg-transparent,
html[data-wr-auth="1"] #root button[class*="border-input"][class*="bg-background"] {
	border-radius: 11px !important;
	border-color: hsl(216 26% 85%) !important;
	background: #fff !important;
	font-weight: 600 !important; color: #22324a;
	box-shadow: 0 1px 2px rgba(10, 22, 40, .05) !important;
}
html[data-wr-auth="1"] #root button.border-input.bg-transparent:hover,
html[data-wr-auth="1"] #root button[class*="border-input"][class*="bg-background"]:hover { background: #f6f9ff !important; border-color: #bcd0ee !important; }
html[data-wr-auth="1"] #root .relative.mb-6 span.bg-card { font-weight: 600; letter-spacing: .12em; color: #8a9ab2; }
html[data-wr-auth="1"] #root a.text-primary { color: #2563eb; font-weight: 600; }
html[data-wr-auth="1"] #root a.text-primary:hover { color: #1d4ed8; }

/* split-screen brand panel (injected by refresh.js) */
.wr-auth-aside { display: none; }
@media (min-width: 1024px) {
	html[data-wr-auth="1"] #root > div.min-h-screen.wr-auth-split {
		display: grid !important;
		grid-template-columns: minmax(420px, 44%) 1fr;
		align-items: stretch;
		padding: 0 !important;
	}
	html[data-wr-auth="1"] #root > div.wr-auth-split > div[class*="max-w-"] {
		align-self: center; justify-self: center;
		width: 100%; margin: 3.5rem auto; padding: 0 2rem;
	}
	html[data-wr-auth="1"] #root > div.wr-auth-split > div.max-w-md { max-width: calc(28rem + 4rem); }
	html[data-wr-auth="1"] #root > div.wr-auth-split > div[class*="max-w-"] .text-center.mb-10 > div.flex.mb-6 { display: none; }
	.wr-auth-aside {
		position: sticky; top: 0; height: 100vh;
		display: flex; flex-direction: column; justify-content: space-between;
		padding: 3rem 3.25rem; color: #dbe6f7; overflow: hidden;
		background:
			radial-gradient(700px 420px at 0% 0%, rgba(59, 130, 246, .35), transparent 60%),
			radial-gradient(600px 400px at 100% 100%, rgba(34, 211, 238, .18), transparent 60%),
			linear-gradient(160deg, #060f1f 0%, #0b1d3a 50%, #143565 100%);
	}
	.wr-auth-aside::before {
		content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
		background-image:
			linear-gradient(rgba(148, 180, 255, .07) 1px, transparent 1px),
			linear-gradient(90deg, rgba(148, 180, 255, .07) 1px, transparent 1px);
		background-size: 44px 44px;
		-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
		mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
	}
	.wr-auth-aside > * { position: relative; }
	.wr-auth-aside .wr-logo { display: inline-flex; align-items: center; gap: .6rem; color: #60a5fa; text-decoration: none; }
	.wr-auth-aside .wr-logo svg { width: 30px; height: 30px; }
	.wr-auth-aside .wr-logo b { font-family: var(--wr-display); font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: -0.01em; }
	.wr-auth-aside .wr-logo small { margin-left: .4rem; padding-left: .75rem; border-left: 1px solid rgba(147, 197, 253, .3); color: #93c5fd; font-size: .75rem; font-weight: 500; }
	.wr-auth-aside .wr-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7cb5ff; margin-bottom: 1rem; }
	.wr-auth-aside .wr-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
	.wr-auth-aside h2 { font-family: var(--wr-display); font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0 0 1rem; max-width: 26rem; }
	.wr-auth-aside h2 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
	.wr-auth-aside p.wr-lead { font-size: 1.02rem; line-height: 1.7; color: #b4c6e2; max-width: 26rem; margin: 0 0 2rem; }
	.wr-auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 26rem; }
	.wr-auth-aside li { display: flex; gap: .85rem; align-items: flex-start; font-size: .93rem; line-height: 1.5; color: #dbe6f7; }
	.wr-auth-aside li i {
		flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
		background: rgba(59, 130, 246, .16); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .28); color: #7cb5ff;
	}
	.wr-auth-aside li i svg { width: 16px; height: 16px; }
	.wr-auth-aside li span { padding-top: .3rem; }
	.wr-auth-aside .wr-aside-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8rem; color: #7f93b0; }
	.wr-auth-aside .wr-aside-foot a { color: #9fb6d9; text-decoration: none; }
	.wr-auth-aside .wr-aside-foot a:hover { color: #fff; }
}

/* ---------- Application wizard (/signup) -------------------------------- */
html[data-wr-route="signup"] .wr-header-actions { display: none; }
html[data-wr-route="signup"] #root > div.min-h-screen.bg-gray-50 {
	background:
		radial-gradient(900px 420px at 50% 0%, rgba(59, 130, 246, .08), transparent 65%),
		#f4f7fc !important;
}
html[data-wr-route="signup"] #root .max-w-4xl > div.bg-white.rounded-2xl {
	border-radius: 22px !important;
	border-color: rgba(10, 22, 40, .07) !important;
	box-shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 12px 32px -12px rgba(10, 22, 40, .14), 0 32px 64px -32px rgba(10, 22, 40, .12) !important;
	padding: 2.5rem !important;
}
@media (max-width: 560px) { html[data-wr-route="signup"] #root .max-w-4xl > div.bg-white.rounded-2xl { padding: 1.5rem !important; } }
html[data-wr-route="signup"] #root .max-w-4xl > div.bg-white.rounded-2xl h2 { font-size: 1.6rem; font-weight: 800; color: var(--wr-ink); }
/* stepper */
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.flex-col { opacity: 1 !important; }
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.flex-col > div.rounded-full {
	width: 44px; height: 44px;
	background: #fff !important; color: #94a3b8;
	box-shadow: inset 0 0 0 1.5px #d5deeb, 0 1px 2px rgba(10, 22, 40, .05);
}
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.flex-col > div.rounded-full svg { color: inherit !important; }
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.flex-col > div.rounded-full:not(.bg-gray-200) {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important; color: #fff;
	box-shadow: 0 0 0 5px rgba(59, 130, 246, .15), 0 8px 18px -8px rgba(37, 99, 235, .8);
}
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.flex-col > span { font-weight: 600; color: #7a8aa3 !important; }
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.flex-col > div.rounded-full:not(.bg-gray-200) + span { color: var(--wr-ink) !important; }
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.h-0\.5 { height: 3px; border-radius: 3px; background: #dde5f0 !important; margin-bottom: 1.4rem; }
html[data-wr-route="signup"] #root .max-w-4xl > div.flex.mb-10 > div.h-0\.5:not(.bg-gray-200) { background: linear-gradient(90deg, #3b82f6, #60a5fa) !important; }
/* wizard buttons */
html[data-wr-auth="1"] #root button[class*="bg-[#0a1628]"]:not(:disabled) {
	border-radius: 12px !important;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
	box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
html[data-wr-auth="1"] #root button[class*="bg-[#0a1628]"]:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.05); }
html[data-wr-auth="1"] #root button[class*="bg-[#0a1628]"]:disabled { border-radius: 12px !important; }

/* ---------- Small screens ------------------------------------------------ */
@media (max-width: 640px) {
	#root header[class*="bg-[#0a1628]"] > div { padding-left: 1rem; padding-right: 1rem; }
	#root header[class*="bg-[#0a1628]"] .text-xs.text-blue-300 { display: none; }
	#root header[class*="bg-[#0a1628]"] .text-xl.font-bold { font-size: 1.1rem; }
	.wr-header-actions .wr-btn--primary svg { display: none; }
	#root header + section[class*="from-[#0a1628]"] { padding-top: 4.5rem; padding-bottom: 5rem; }
	#root header + section h1 + p { font-size: 1.05rem; }
	#root header + section a[class*="bg-blue-500"] { padding: .95rem 1.25rem !important; font-size: 1rem !important; }
}
html, body { overflow-x: clip; }

/* Header actions are for the public home page only (portals have their own nav). */
html:not([data-wr-route="home"]) .wr-header-actions { display: none !important; }

/* Dashboard headers (Admin / ISP / DataCo / Customer): keep the portal label and the signed-in email apart */
#root header[class*="bg-[#0a1628]"] > div { column-gap: 1.25rem; }
