:root {
    --bg: #071829;
    --bg-2: #0b223f;
    --panel: rgba(11, 34, 63, 0.78);
    --panel-strong: rgba(12, 41, 73, 0.92);
    --accent: #00d4c7;
    --accent-blue: #39a0ff;
    --text: #ffffff;
    --sub-text: #afc2d8;
    --muted: #7f95ae;
    --line: rgba(175, 194, 216, 0.2);
    --line-strong: rgba(0, 212, 199, 0.42);
    --green: #3ddc97;
    --orange: #ffb84d;
    --red: #ff5f6d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background:
        linear-gradient(rgba(0, 212, 199, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 160, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 68% 10%, rgba(57, 160, 255, 0.13), transparent 34%),
        linear-gradient(180deg, #061523 0%, var(--bg) 44%, #04111d 100%);
    background-size: 48px 48px, 48px 48px, auto, auto;
    color: var(--text);
    font-family: "SUIT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.portal-shell {
    width: min(100% - 40px, 1380px);
    min-height: 100vh;
    margin: 14px auto;
    border: 1px solid rgba(175, 194, 216, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(7, 24, 41, 0.94), rgba(6, 18, 31, 0.98)),
        var(--bg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    min-height: 76px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 24, 41, 0.9);
    backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.admin-entry,
.primary-button,
.service-card,
.mobile-bottom-nav a {
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    font-weight: 800;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(0, 212, 199, 0.96), rgba(57, 160, 255, 0.72));
    color: #04111d;
    font-weight: 900;
    transform: skewY(-8deg);
}

.brand__text {
    font-size: 1.08rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 3rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.95rem;
}

.site-nav a,
.panel-head a,
.site-footer a {
    transition: color 0.2s ease;
}

.site-nav a:hover,
.panel-head a:hover,
.site-footer a:hover {
    color: var(--accent);
}

.admin-entry {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(175, 194, 216, 0.3);
    border-radius: 7px;
    background: rgba(11, 34, 63, 0.76);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-entry svg {
    width: 18px;
    height: 18px;
}

.admin-entry:hover,
.admin-entry:focus-visible {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(0, 212, 199, 0.12);
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(600px, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 2rem;
    min-height: 430px;
    padding: 48px 56px 34px;
    border-bottom: 1px solid rgba(175, 194, 216, 0.16);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 24, 41, 0.96) 0%, rgba(7, 24, 41, 0.7) 46%, rgba(7, 24, 41, 0.14) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 212, 199, 0.055) 100%);
    pointer-events: none;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 3.55vw, 3.35rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
    word-break: keep-all;
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.hero-copy strong {
    color: var(--accent);
    font: inherit;
}

.hero-description {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    margin-top: 28px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--accent), #67efe5);
    color: #061523;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(0, 212, 199, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button svg {
    width: 18px;
    height: 18px;
}

.primary-button:hover,
.primary-button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 42px rgba(0, 212, 199, 0.32);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 460px;
    margin: 30px 0 0;
}

.hero-metrics div {
    min-height: 76px;
    padding: 13px 14px;
    border: 1px solid rgba(175, 194, 216, 0.18);
    border-radius: 6px;
    background: rgba(11, 34, 63, 0.46);
}

.hero-metrics dt {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-metrics dd {
    margin: 4px 0 0;
    color: var(--sub-text);
    font-size: 0.82rem;
}

.hero-visual {
    min-height: 360px;
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 212, 199, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 160, 255, 0.13) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
    transform: perspective(520px) rotateX(62deg) translateY(98px);
    transform-origin: bottom center;
}

.blueprint-road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 199, 0.78), transparent);
}

.blueprint-road--b {
    bottom: 88px;
    opacity: 0.42;
}

.wire-city {
    position: absolute;
    inset: 10px 0 20px;
}

.wire-building {
    position: absolute;
    bottom: 42px;
    border: 1px solid rgba(0, 212, 199, 0.82);
    background:
        repeating-linear-gradient(90deg, transparent 0 31px, rgba(0, 212, 199, 0.42) 31px 32px),
        repeating-linear-gradient(180deg, transparent 0 27px, rgba(57, 160, 255, 0.34) 27px 28px);
    box-shadow: inset 0 0 0 1px rgba(57, 160, 255, 0.22), 0 0 22px rgba(0, 212, 199, 0.16);
}

.wire-building::before,
.wire-building::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(57, 160, 255, 0.54);
    pointer-events: none;
}

.wire-building::before {
    left: 100%;
    bottom: -1px;
    width: 38px;
    height: 100%;
    transform: skewY(-32deg);
    transform-origin: left bottom;
    background:
        repeating-linear-gradient(180deg, transparent 0 27px, rgba(57, 160, 255, 0.24) 27px 28px);
}

.wire-building::after {
    left: 18px;
    right: -20px;
    top: -31px;
    height: 30px;
    transform: skewX(-51deg);
    transform-origin: left bottom;
    background: rgba(0, 212, 199, 0.035);
}

.wire-building--small {
    right: 8%;
    width: 92px;
    height: 128px;
}

.wire-building--mid {
    right: 30%;
    width: 126px;
    height: 190px;
}

.wire-building--tall {
    right: 50%;
    width: 150px;
    height: 280px;
}

.wire-building--wide {
    right: 70%;
    width: 96px;
    height: 145px;
}

.data-node {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(0, 212, 199, 0.13), 0 0 22px rgba(0, 212, 199, 0.82);
    animation: nodePulse 2.8s ease-in-out infinite;
}

.data-node--a {
    right: 18%;
    top: 25%;
}

.data-node--b {
    right: 52%;
    top: 56%;
    animation-delay: 0.45s;
}

.data-node--c {
    right: 74%;
    top: 64%;
    animation-delay: 0.9s;
}

.services-section {
    padding: 32px 56px 20px;
}

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

.service-heading {
    align-items: center;
}

.section-heading h2,
.panel-head h2 {
    margin: 0;
}

.section-heading h2 {
    position: relative;
    padding-left: 14px;
    font-size: 1.3rem;
    font-weight: 800;
}

.section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--accent);
}

.service-pager {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 38px;
}

.service-pager__count {
    min-width: 42px;
    color: var(--sub-text);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
}

.service-pager__button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(175, 194, 216, 0.24);
    border-radius: 6px;
    background: rgba(11, 34, 63, 0.76);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-pager__button svg {
    width: 18px;
    height: 18px;
}

.service-pager__button:hover:not(:disabled),
.service-pager__button:focus-visible:not(:disabled) {
    border-color: var(--line-strong);
    background: rgba(0, 212, 199, 0.12);
    color: var(--accent);
    transform: translateY(-1px);
}

.service-pager__button:disabled {
    color: rgba(175, 194, 216, 0.34);
    cursor: not-allowed;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-card[hidden] {
    display: none;
}

.service-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr 24px;
    gap: 16px;
    min-height: 152px;
    padding: 22px 20px;
    border: 1px solid rgba(175, 194, 216, 0.22);
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%),
        var(--panel);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(0, 212, 199, 0.12), transparent 42%),
        var(--panel-strong);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 212, 199, 0.1);
    outline: none;
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(0, 212, 199, 0.42);
    border-radius: 50%;
    background: rgba(0, 212, 199, 0.1);
    color: var(--accent);
}

.service-card:nth-child(even) .service-card__icon {
    border-color: rgba(57, 160, 255, 0.48);
    background: rgba(57, 160, 255, 0.1);
    color: var(--accent-blue);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
}

.service-card__content {
    min-width: 0;
}

.service-card strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: keep-all;
}

.service-card em {
    display: block;
    margin-top: 4px;
    color: var(--sub-text);
    font-size: 0.74rem;
    font-style: normal;
    letter-spacing: 0.06em;
}

.service-card__details {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-card__arrow {
    align-self: end;
    justify-self: end;
    color: var(--accent);
}

.service-card__arrow svg {
    width: 20px;
    height: 20px;
}

.dashboard-band {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 14px;
    padding: 16px 56px 30px;
}

.info-panel {
    min-height: 176px;
    padding: 20px;
    border: 1px solid rgba(175, 194, 216, 0.2);
    border-radius: 7px;
    background: rgba(11, 34, 63, 0.62);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 18px;
}

.panel-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    font-weight: 800;
}

.panel-head h2 svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.panel-head a {
    color: var(--sub-text);
    font-size: 0.82rem;
    text-decoration: none;
}

.notice-list,
.update-list,
.status-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 142px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-color: rgba(0, 212, 199, 0.58) rgba(175, 194, 216, 0.1);
    scrollbar-width: thin;
}

.notice-list::-webkit-scrollbar,
.update-list::-webkit-scrollbar,
.status-list::-webkit-scrollbar {
    width: 7px;
}

.notice-list::-webkit-scrollbar-track,
.update-list::-webkit-scrollbar-track,
.status-list::-webkit-scrollbar-track {
    background: rgba(175, 194, 216, 0.08);
    border-radius: 999px;
}

.notice-list::-webkit-scrollbar-thumb,
.update-list::-webkit-scrollbar-thumb,
.status-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 199, 0.52);
    border-radius: 999px;
}

.notice-list a {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.35;
}

.notice-list time,
.update-list span {
    color: var(--sub-text);
    font-size: 0.82rem;
}

.notice-list a:hover span {
    color: var(--accent);
}

.update-list li {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    align-items: center;
}

.update-list strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.status-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.1);
}

.status-dot--normal {
    background: var(--green);
}

.status-dot--check {
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.12);
}

.status-dot--error {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 95, 109, 0.12);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 22px 56px;
    border-top: 1px solid var(--line);
    color: var(--sub-text);
    font-size: 0.86rem;
}

.site-footer strong {
    color: #fff;
}

.site-footer nav {
    justify-self: end;
    display: flex;
    gap: 26px;
}

.site-footer a {
    color: var(--sub-text);
    text-decoration: none;
}

.notice-page {
    min-height: calc(100vh - 28px);
}

.notice-page__main {
    max-width: 980px;
    min-height: calc(100vh - 104px);
    margin: 0 auto;
    padding: 54px 34px;
}

.notice-page__head {
    margin-bottom: 24px;
}

.notice-page__head h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.1;
}

.notice-page__head p:last-child {
    margin: 16px 0 0;
    color: var(--sub-text);
    line-height: 1.7;
}

.notice-list--page {
    gap: 0;
}

.notice-list--page li + li {
    border-top: 1px solid rgba(175, 194, 216, 0.14);
}

.notice-list--page a {
    grid-template-columns: 120px 1fr;
    padding: 16px 0;
    font-size: 1rem;
}

.mobile-bottom-nav {
    display: none;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.75s ease forwards;
    animation-delay: var(--delay, 0ms);
}

.admin-body {
    background:
        linear-gradient(rgba(0, 212, 199, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 160, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #061523 0%, #071829 100%);
    background-size: 48px 48px, 48px 48px, auto;
}

.admin-scene {
    min-height: 100vh;
    padding: 2rem 1.25rem 3rem;
}

.admin-scene--center {
    display: grid;
    place-items: center;
}

.admin-shell,
.login-shell {
    border: 1px solid rgba(175, 194, 216, 0.22);
    border-radius: 8px;
    background: rgba(11, 34, 63, 0.82);
    box-shadow: var(--shadow);
}

.admin-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.login-shell {
    width: min(100%, 520px);
    padding: 2rem;
}

.admin-header,
.admin-card__head,
.admin-header__actions,
.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-header,
.admin-card__head {
    justify-content: space-between;
    align-items: flex-start;
}

.admin-header__actions {
    align-items: center;
}

.admin-title {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
}

.admin-copy {
    max-width: 700px;
    margin: 1rem 0 0;
    line-height: 1.7;
    color: var(--sub-text);
}

.admin-kicker,
.admin-card__eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(175, 194, 216, 0.28);
    border-radius: 7px;
    background: rgba(11, 34, 63, 0.72);
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.admin-link svg {
    width: 17px;
    height: 17px;
}

.admin-link:hover {
    border-color: var(--line-strong);
}

.flash-stack,
.admin-form {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.flash {
    padding: 0.95rem 1rem;
    border-radius: 7px;
    border: 1px solid rgba(175, 194, 216, 0.2);
    background: rgba(7, 24, 41, 0.72);
}

.flash--success {
    border-color: rgba(61, 220, 151, 0.36);
}

.flash--error {
    border-color: rgba(255, 95, 109, 0.36);
}

.admin-card {
    padding: 1.2rem;
    border-radius: 7px;
    border: 1px solid rgba(175, 194, 216, 0.18);
    background: rgba(7, 24, 41, 0.54);
}

.admin-card--add {
    border-style: dashed;
}

.admin-card__head h2 {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
}

.admin-card__slug {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sub-text);
    font-size: 0.82rem;
}

.field {
    display: grid;
    gap: 0.55rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.field__label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.86);
}

.field__input {
    width: 100%;
    min-height: 50px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(175, 194, 216, 0.22);
    border-radius: 7px;
    background: rgba(2, 10, 17, 0.58);
    color: var(--text);
    font: inherit;
}

.field__input:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(0, 212, 199, 0.12);
}

.remove-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.9rem;
    color: rgba(255, 224, 228, 0.9);
    font-size: 0.92rem;
}

.remove-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--red);
}

.admin-actions {
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.admin-actions--split {
    justify-content: space-between;
    align-items: center;
}

.save-button {
    min-height: 50px;
    padding: 0 1.45rem;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--accent), #67efe5);
    color: #061523;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.save-button:hover {
    filter: brightness(1.05);
}

.has-modal {
    overflow: hidden;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 10, 17, 0.74);
    backdrop-filter: blur(8px);
}

.admin-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(86vh, 760px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid rgba(175, 194, 216, 0.24);
    border-radius: 8px;
    background: rgba(11, 34, 63, 0.98);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-modal__head,
.admin-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 20px;
}

.admin-modal__head {
    border-bottom: 1px solid rgba(175, 194, 216, 0.14);
}

.admin-modal__head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.admin-modal__actions {
    border-top: 1px solid rgba(175, 194, 216, 0.14);
}

.icon-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(175, 194, 216, 0.24);
    border-radius: 6px;
    background: rgba(7, 24, 41, 0.7);
    color: #fff;
    cursor: pointer;
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.order-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 18px 20px;
    overflow-y: auto;
    list-style: none;
    counter-reset: order-item;
}

.order-item {
    counter-increment: order-item;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px;
    border: 1px solid rgba(175, 194, 216, 0.2);
    border-radius: 7px;
    background: rgba(7, 24, 41, 0.68);
    cursor: grab;
}

.order-item::before {
    content: counter(order-item);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0, 212, 199, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.order-item.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.order-item__handle {
    display: none;
}

.order-item__text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.order-item__text strong,
.order-item__text em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-item__text strong {
    font-size: 0.98rem;
}

.order-item__text em,
.order-item__slug {
    color: var(--sub-text);
    font-size: 0.8rem;
    font-style: normal;
}

.order-item__slug {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nodePulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@media (max-width: 1279px) {
    .portal-shell {
        width: min(100% - 28px, 1060px);
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 42px 34px 28px;
    }

    .hero-visual {
        min-height: 300px;
    }

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

    .dashboard-band {
        grid-template-columns: 1fr;
    }

    .services-section,
    .dashboard-band,
    .site-footer {
        padding-left: 34px;
        padding-right: 34px;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 82px;
    }

    .portal-shell {
        width: 100%;
        margin: 0;
        border-width: 0;
        border-radius: 0;
    }

    .site-header {
        min-height: 72px;
        padding: 0 18px;
    }

    .brand__text {
        font-size: 0.98rem;
    }

    .admin-entry {
        width: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .admin-entry span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .hero-section {
        min-height: auto;
        padding: 34px 18px 20px;
        gap: 1.2rem;
    }

    .hero-section::before {
        background:
            linear-gradient(180deg, rgba(7, 24, 41, 0.98), rgba(7, 24, 41, 0.55)),
            linear-gradient(180deg, transparent 0%, rgba(0, 212, 199, 0.05) 100%);
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-line {
        white-space: normal;
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .primary-button {
        width: 100%;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-metrics div {
        min-height: 70px;
        padding: 10px 8px;
    }

    .hero-metrics dt {
        font-size: 1.1rem;
    }

    .hero-metrics dd {
        font-size: 0.74rem;
        word-break: keep-all;
    }

    .hero-visual {
        min-height: 218px;
    }

    .wire-building--small {
        right: 4%;
        width: 58px;
        height: 86px;
    }

    .wire-building--mid {
        right: 28%;
        width: 78px;
        height: 126px;
    }

    .wire-building--tall {
        right: 52%;
        width: 94px;
        height: 178px;
    }

    .wire-building--wide {
        right: 77%;
        width: 56px;
        height: 94px;
    }

    .services-section {
        padding: 24px 14px 12px;
    }

    .section-heading {
        align-items: center;
        margin-bottom: 14px;
    }

    .service-pager {
        gap: 6px;
    }

    .service-pager__count {
        min-width: 36px;
        font-size: 0.82rem;
    }

    .service-pager__button {
        width: 34px;
        height: 34px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .service-card {
        grid-template-columns: 42px 1fr;
        min-height: 118px;
        gap: 10px;
        padding: 14px 10px;
    }

    .service-card__icon {
        width: 42px;
        height: 42px;
    }

    .service-card__icon svg {
        width: 22px;
        height: 22px;
    }

    .service-card strong {
        font-size: 0.88rem;
    }

    .service-card em {
        font-size: 0.64rem;
    }

    .service-card__details {
        gap: 2px;
        margin-top: 10px;
        font-size: 0.76rem;
    }

    .service-card__arrow {
        position: absolute;
        right: 10px;
        bottom: 10px;
    }

    .dashboard-band {
        padding: 10px 14px 24px;
    }

    .info-panel {
        padding: 16px;
    }

    .notice-list a,
    .update-list li {
        grid-template-columns: 82px 1fr;
        gap: 8px;
        font-size: 0.82rem;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 18px 28px;
    }

    .site-footer nav {
        justify-self: start;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 72px;
        border-top: 1px solid rgba(175, 194, 216, 0.2);
        background: rgba(7, 24, 41, 0.96);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav a {
        display: grid;
        place-items: center;
        gap: 4px;
        padding: 9px 4px;
        color: var(--sub-text);
        font-size: 0.74rem;
        font-weight: 700;
    }

    .mobile-bottom-nav svg {
        width: 21px;
        height: 21px;
    }

    .mobile-bottom-nav a.is-active,
    .mobile-bottom-nav a:hover {
        color: var(--accent);
    }

    .admin-header,
    .admin-card__head,
    .admin-actions,
    .field-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .field-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-shell,
    .login-shell {
        padding: 1.25rem;
    }

    .admin-header__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-modal {
        padding: 12px;
    }

    .admin-modal__head,
    .admin-modal__actions {
        padding: 16px;
    }

    .order-item {
        grid-template-columns: 28px 1fr;
    }

    .order-item__slug {
        grid-column: 2;
        width: fit-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
