:root {
	--brand: #ef2b2d;
	--brand-dark: #c91d20;
	--ink: #172033;
	--muted: #667085;
	--line: #e4e9f2;
	--surface: #ffffff;
	--soft: #f5f7fb;
	--success: #147a48;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(160deg, #f8fafc 0%, #edf2f8 100%);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page-shell {
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	padding: 48px 20px;
}

.ip-card {
	padding: 42px;
	background: var(--surface);
	border: 1px solid rgba(23, 32, 51, 0.08);
	border-radius: 24px;
	box-shadow: 0 22px 55px rgba(33, 47, 76, 0.11);
}

.site-header {
	max-width: 650px;
	margin: 0 auto 32px;
	text-align: center;
}

.brand-link {
	display: inline-block;
	margin-bottom: 28px;
}

#logo {
	display: block;
	height: auto;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--brand);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

h1,
h2 {
	margin-top: 0;
	color: var(--ink);
	font-weight: 750;
}

h1 {
	margin-bottom: 12px;
	font-size: 32px;
	line-height: 1.2;
}

h2 {
	margin-bottom: 0;
	font-size: 22px;
}

.intro {
	margin: 0;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.55;
}

.ip-addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 24px;
}

.ip-panel {
	display: flex;
	min-width: 0;
	min-height: 210px;
	padding: 26px;
	flex-direction: column;
	align-items: flex-start;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 18px;
}

.ip-label {
	display: inline-flex;
	margin-bottom: 17px;
	padding: 5px 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.ip-value {
	display: block;
	width: 100%;
	margin-bottom: 24px;
	color: var(--brand);
	font-size: clamp(22px, 3.3vw, 30px);
	font-weight: 750;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

#ipv6 {
	max-width: 100%;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
}

.ip-unavailable {
	color: var(--muted);
	font-size: 21px;
}

.copy-ip-button {
	width: 100%;
	margin-top: auto;
	padding: 11px 16px;
	background: var(--brand);
	border: 1px solid var(--brand);
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.copy-ip-button:hover:not(:disabled),
.copy-ip-button:focus:not(:disabled) {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
	outline: none;
	transform: translateY(-1px);
}

.copy-ip-button:focus-visible {
	box-shadow: 0 0 0 4px rgba(239, 43, 45, 0.18);
}

.copy-ip-button:disabled {
	background: #d8dee8;
	border-color: #d8dee8;
	color: #7b8494;
	cursor: not-allowed;
}

.copy-ip-button.is-copied {
	background: var(--success);
	border-color: var(--success);
}

.network-details {
	padding: 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
}

.section-heading {
	display: flex;
	margin-bottom: 22px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.geo-status {
	flex: 0 0 auto;
	padding: 5px 10px;
	background: #fff6e5;
	border-radius: 999px;
	color: #966100;
	font-size: 12px;
	font-weight: 700;
}

.geo-status.is-ready {
	background: #e9f8ef;
	color: var(--success);
}

.network-grid {
	display: grid;
	grid-template-columns: 1.2fr 1.2fr 0.7fr;
	gap: 16px;
	margin: 0;
}

.network-item {
	min-width: 0;
	padding: 16px;
	background: var(--soft);
	border-radius: 12px;
}

.network-item dt {
	margin-bottom: 7px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.network-item dd {
	margin: 0;
	color: var(--ink);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.privacy-note {
	margin: 17px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.network-details.is-unavailable .network-grid {
	display: none;
}

.text-danger {
	margin: 22px 0 0;
	text-align: center;
}

.site-footer {
	padding: 22px 16px 4px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.site-footer a {
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--brand);
	text-decoration: underline;
}

.footer-separator {
	margin: 0 7px;
}

.footer-privacy-button {
	padding: 0;
	background: none;
	border: 0;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.footer-privacy-button:hover,
.footer-privacy-button:focus {
	color: var(--brand);
	outline: none;
	text-decoration: underline;
}

.consent-banner {
	position: fixed;
	z-index: 1100;
	right: 18px;
	bottom: 18px;
	left: 18px;
	display: flex;
	width: calc(100% - 36px);
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(23, 32, 51, 0.2);
}

.consent-banner[hidden] {
	display: none;
}

.consent-copy {
	max-width: 570px;
}

.consent-copy strong {
	display: block;
	margin-bottom: 5px;
	font-size: 15px;
}

.consent-copy p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.consent-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.consent-button {
	padding: 10px 14px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.consent-button-primary {
	background: var(--brand);
	border: 1px solid var(--brand);
	color: #fff;
}

.consent-button-primary:hover,
.consent-button-primary:focus {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
	outline: none;
}

.consent-button-secondary {
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink);
}

.consent-button-secondary:hover,
.consent-button-secondary:focus {
	background: var(--soft);
	outline: none;
}

@media (max-width: 700px) {
	.page-shell {
		padding: 20px 12px;
	}

	.ip-card {
		padding: 28px 18px;
		border-radius: 18px;
	}

	h1 {
		font-size: clamp(19px, 5.6vw, 24px);
		letter-spacing: -0.025em;
		white-space: nowrap;
	}

	.ip-addresses,
	.network-grid {
		grid-template-columns: 1fr;
	}

	.ip-panel {
		min-height: 190px;
	}

	.ip-value {
		font-size: 24px;
	}

	.section-heading {
		align-items: flex-start;
	}

	.consent-banner {
		padding: 16px;
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
	}

	.consent-actions {
		width: 100%;
		flex-direction: column-reverse;
	}

	.consent-button {
		width: 100%;
	}
}
