html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 15% 8%, rgba(0, 224, 255, 0.2), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(255, 194, 87, 0.14), transparent 25rem),
        linear-gradient(135deg, #071019 0%, #10151f 48%, #07090f 100%);
    color: #eef7ff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

h1:focus {
    outline: none;
}

.atlas-shell {
    min-height: 100vh;
    overflow: hidden;
}

.atlas-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1rem, 4vw, 3.5rem);
    border-bottom: 1px solid rgba(141, 234, 255, 0.16);
    background: rgba(7, 16, 25, 0.82);
    backdrop-filter: blur(18px);
}

.atlas-brand,
.atlas-nav,
.hero-actions,
.map-legend,
.brand-list {
    display: flex;
    align-items: center;
}

.atlas-brand {
    gap: 0.75rem;
    color: #f8fcff;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.atlas-brand-mark {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid rgba(117, 234, 255, 0.48);
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.22), rgba(255, 194, 87, 0.12));
    color: #8deaff;
    box-shadow: 0 0 32px rgba(0, 224, 255, 0.2);
}

.atlas-nav {
    gap: clamp(1rem, 3vw, 2.4rem);
}

.atlas-nav a {
    color: #96a7b8;
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
}

.atlas-nav a:hover {
    color: #f8fcff;
}

.atlas-hero {
    display: block;
    padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 4vw, 3.5rem) 2rem;
}

.hero-copy {
    max-width: 56rem;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: #ffc257;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.atlas-hero h1 {
    margin: 0;
    max-width: 58rem;
    color: #ffffff;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-copy > p:last-of-type {
    max-width: 45rem;
    margin: 1.35rem 0 0;
    color: #a9b7c6;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.7;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    border-radius: 0.5rem;
    padding: 0 1.1rem;
    font-weight: 850;
    text-decoration: none;
}

.primary-action {
    background: #8deaff;
    color: #071019;
    box-shadow: 0 0 34px rgba(0, 224, 255, 0.26);
}

.secondary-action {
    border: 1px solid rgba(141, 234, 255, 0.28);
    color: #d8f7ff;
}

.signal-panel {
    display: grid;
    gap: 0.75rem;
}

.signal-panel div,
.map-section,
.data-section,
.brand-band {
    border: 1px solid rgba(141, 234, 255, 0.16);
    border-radius: 0.5rem;
    background: rgba(9, 19, 30, 0.72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.signal-panel div {
    padding: 1.1rem;
}

.signal-panel strong,
.signal-panel span {
    display: block;
}

.signal-panel strong {
    color: #8deaff;
    font-size: 2.2rem;
    line-height: 1;
}

.signal-panel span {
    margin-top: 0.42rem;
    color: #96a7b8;
    font-size: 0.88rem;
    font-weight: 800;
}

.map-section,
.data-section,
.brand-band {
    margin: 1rem clamp(1rem, 4vw, 3.5rem);
}

.atlas-header + .map-section {
    margin-top: clamp(1.25rem, 4vw, 2.5rem);
}

.map-section {
    padding: clamp(1rem, 3vw, 1.6rem);
}

.map-heading,
.section-title,
.brand-band {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1.5rem;
}

.map-heading h2,
.data-section h2,
.brand-band h2 {
    margin: 0;
    max-width: 44rem;
    color: #f8fcff;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.map-legend {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    color: #a9b7c6;
    font-size: 0.86rem;
    font-weight: 800;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.map-legend i {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
}

.legend-wire {
    border: 1px solid #477284;
}

.legend-hover {
    background: #8deaff;
}

.legend-live {
    background: #ffc257;
}

.map-stage {
    position: relative;
    margin-top: 1.2rem;
    min-height: 28rem;
    border: 1px solid rgba(141, 234, 255, 0.12);
    border-radius: 0.5rem;
    background:
        linear-gradient(180deg, rgba(141, 234, 255, 0.06), rgba(255, 194, 87, 0.04)),
        #071019;
    overflow: hidden;
}

.wire-map {
    display: block;
    width: 100%;
    min-height: 28rem;
}

.grid-plane {
    fill: url(#grid-pattern);
    opacity: 0.3;
}

#grid-pattern path {
    fill: none;
    stroke: rgba(141, 234, 255, 0.12);
    stroke-width: 1;
}

.continent-lines path {
    fill: rgba(12, 31, 45, 0.42);
    stroke: rgba(141, 234, 255, 0.36);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.route-lines path {
    fill: none;
    stroke: rgba(255, 194, 87, 0.28);
    stroke-dasharray: 8 12;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.country-hotspot {
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.country-hotspot path {
    fill: rgba(141, 234, 255, 0.08);
    fill-rule: evenodd;
    stroke: rgba(141, 234, 255, 0.38);
    stroke-width: 2;
    transition: fill 160ms ease, stroke 160ms ease, filter 160ms ease;
    vector-effect: non-scaling-stroke;
}

.country-hotspot text {
    fill: #d7f8ff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0;
    pointer-events: none;
    text-anchor: middle;
}

.country-hotspot.has-data path {
    fill: rgba(255, 194, 87, 0.09);
    stroke: rgba(255, 194, 87, 0.44);
}

.country-hotspot:hover path,
.country-hotspot:focus-visible path {
    fill: rgba(141, 234, 255, 0.32);
    stroke: #8deaff;
    filter: url(#map-glow);
}

.country-hotspot.has-data:hover path,
.country-hotspot.has-data:focus-visible path {
    fill: rgba(255, 194, 87, 0.34);
    stroke: #ffc257;
}

.country-hotspot:hover text,
.country-hotspot:focus-visible text {
    fill: #ffffff;
}

.data-section,
.brand-band {
    padding: clamp(1rem, 3vw, 1.6rem);
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.region-grid article {
    min-height: 11rem;
    border: 1px solid rgba(141, 234, 255, 0.14);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 1rem;
}

.region-grid span {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 0.5rem;
    background: rgba(141, 234, 255, 0.12);
    color: #8deaff;
    font-weight: 900;
}

.region-grid h3 {
    margin: 1rem 0 0.45rem;
    color: #f8fcff;
}

.region-grid p {
    margin: 0;
    color: #a9b7c6;
    line-height: 1.55;
}

.brand-band {
    align-items: center;
    margin-bottom: 3rem;
}

.brand-list {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.brand-list span {
    border: 1px solid rgba(141, 234, 255, 0.18);
    border-radius: 999px;
    background: rgba(141, 234, 255, 0.08);
    color: #d8f7ff;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 850;
}

@media (max-width: 980px) {
    .atlas-hero,
    .map-heading,
    .brand-band {
        display: block;
    }

    .signal-panel,
    .map-legend,
    .brand-list {
        margin-top: 1.2rem;
    }

    .region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .atlas-header {
        display: block;
    }

    .atlas-nav {
        justify-content: space-between;
        margin-top: 1rem;
    }

    .atlas-hero h1 {
        font-size: clamp(2.5rem, 15vw, 4.4rem);
    }

    .map-stage,
    .wire-map {
        min-height: 21rem;
    }

    .region-grid {
        grid-template-columns: 1fr;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
