/* global */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    box-sizing: border-box;
}

/* Additive animation pack 2: extra motion hooks and page polish only. */
.od-aurora-ring,
.od-scanline,
.od-glow-lift,
.od-tilt-card,
.od-rhythm,
.od-type-reveal,
.od-soft-border,
.od-hover-spark {
    position: relative;
}

.od-aurora-ring {
    overflow: hidden;
}

.od-aurora-ring::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, rgba(0, 204, 255, 0.38), rgba(255, 0, 204, 0.2), rgba(67, 217, 151, 0.22), rgba(0, 204, 255, 0.38));
    opacity: 0.18;
    animation: od-aurora-spin 9s linear infinite;
    pointer-events: none;
}

.od-aurora-ring > * {
    position: relative;
    z-index: 1;
}

.od-scanline::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.075), transparent);
    opacity: 0;
    transform: translateY(-110%);
    animation: od-scanline 4.8s ease-in-out infinite;
    pointer-events: none;
}

.od-glow-lift {
    transition: transform 0.24s var(--od-ease-snap), box-shadow 0.24s ease, border-color 0.24s ease;
}

.od-glow-lift:hover {
    transform: translateY(-6px) scale(1.006);
    box-shadow: 0 20px 54px rgba(0, 204, 255, 0.13), 0 18px 44px rgba(0, 0, 0, 0.26);
}

.od-tilt-card {
    transition: transform 0.3s var(--od-ease-snap), box-shadow 0.3s ease;
}

.od-tilt-card:hover {
    transform: perspective(900px) rotateX(1.2deg) rotateY(-1.2deg) translateY(-4px);
}

.od-rhythm {
    animation: od-rhythm 3.8s ease-in-out infinite;
}

.od-type-reveal {
    overflow: hidden;
}

.od-type-reveal::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--od-cyan), var(--od-pink), var(--od-green));
    transform-origin: left;
    animation: od-line-grow 1.1s var(--od-ease-pop) both;
}

.od-soft-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.42), rgba(255, 0, 204, 0.18), rgba(67, 217, 151, 0.28));
    opacity: 0;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.od-soft-border:hover::before {
    opacity: 1;
}

.od-hover-spark::after {
    content: "";
    position: absolute;
    top: 18%;
    right: 14%;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 14px rgba(0, 204, 255, 0.7), -1.2rem 1.4rem 0 rgba(255, 0, 204, 0.45), -2rem -0.55rem 0 rgba(67, 217, 151, 0.38);
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.od-hover-spark:hover::after {
    animation: od-spark 0.72s var(--od-ease-pop) both;
}

.portal-feature-card,
.portal-quick-action-card,
.portal-dashboard-tool,
.service-box,
.region-card,
.status-impact-card,
.pricing-card {
    animation-name: od-card-settle;
    animation-duration: 0.62s;
    animation-timing-function: var(--od-ease-pop);
    animation-fill-mode: both;
}

.portal-feature-card:nth-child(2n),
.portal-quick-action-card:nth-child(2n),
.portal-dashboard-tool:nth-child(2n),
.service-box:nth-child(2n),
.region-card:nth-child(2n),
.status-impact-card:nth-child(2n),
.pricing-card:nth-child(2n) {
    animation-delay: 0.06s;
}

.portal-feature-card:nth-child(3n),
.portal-quick-action-card:nth-child(3n),
.portal-dashboard-tool:nth-child(3n),
.service-box:nth-child(3n),
.region-card:nth-child(3n),
.status-impact-card:nth-child(3n),
.pricing-card:nth-child(3n) {
    animation-delay: 0.12s;
}

.portal-admin-nav a,
.portal-side-actions a,
.portal-command-bar a,
.portal-pagination a,
.button-row a,
.button-row button {
    transition-duration: 0.24s;
    transition-timing-function: var(--od-ease-snap);
}

.portal-admin-nav a:hover i,
.portal-side-actions a:hover i,
.portal-command-bar a:hover i,
.button-row a:hover i,
.button-row button:hover i {
    animation: od-nudge-icon 0.46s var(--od-ease-pop) both;
}

.portal-table tbody tr:nth-child(odd) {
    animation: od-row-fade 0.45s var(--od-ease-pop) both;
}

.portal-table tbody tr:nth-child(even) {
    animation: od-row-fade 0.45s var(--od-ease-pop) 0.035s both;
}

.metric-strip .metric {
    animation: od-metric-rise 0.58s var(--od-ease-pop) both;
}

.metric-strip .metric:nth-child(2) { animation-delay: 0.04s; }
.metric-strip .metric:nth-child(3) { animation-delay: 0.08s; }
.metric-strip .metric:nth-child(4) { animation-delay: 0.12s; }
.metric-strip .metric:nth-child(5) { animation-delay: 0.16s; }
.metric-strip .metric:nth-child(6) { animation-delay: 0.2s; }

.portal-admin-form h3 i,
.portal-dialog-title i,
.portal-card h2 i,
.status-type-card .status-kind,
.region-definition .region-kind {
    animation: od-color-shift 6s ease-in-out infinite;
}

.license-result.success,
.portal-message-success {
    animation: od-success-flash 1.6s ease both;
}

.license-result.error,
.portal-message-error {
    animation: od-error-shake 0.44s var(--od-ease-snap) both;
}

.portal-admin-dialog[open] .portal-admin-form > label,
.portal-admin-dialog[open] .portal-admin-form > input,
.portal-admin-dialog[open] .portal-admin-form > select,
.portal-admin-dialog[open] .portal-admin-form > textarea {
    animation: od-field-in 0.42s var(--od-ease-pop) both;
}

.portal-admin-dialog[open] .portal-admin-form > label:nth-of-type(2),
.portal-admin-dialog[open] .portal-admin-form > input:nth-of-type(2),
.portal-admin-dialog[open] .portal-admin-form > select:nth-of-type(2),
.portal-admin-dialog[open] .portal-admin-form > textarea:nth-of-type(2) {
    animation-delay: 0.035s;
}

.portal-admin-dialog[open] .portal-admin-form > label:nth-of-type(3),
.portal-admin-dialog[open] .portal-admin-form > input:nth-of-type(3),
.portal-admin-dialog[open] .portal-admin-form > select:nth-of-type(3),
.portal-admin-dialog[open] .portal-admin-form > textarea:nth-of-type(3) {
    animation-delay: 0.07s;
}

@keyframes od-aurora-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes od-scanline {
    0%, 48% {
        opacity: 0;
        transform: translateY(-110%);
    }
    62% {
        opacity: 0.7;
    }
    82%, 100% {
        opacity: 0;
        transform: translateY(110%);
    }
}

@keyframes od-rhythm {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes od-line-grow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes od-spark {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(0deg);
    }
    35% {
        opacity: 1;
        transform: scale(1) rotate(18deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.35) rotate(42deg);
    }
}

@keyframes od-card-settle {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes od-nudge-icon {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    45% {
        transform: translateX(3px) rotate(-4deg);
    }
}

@keyframes od-row-fade {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes od-metric-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes od-color-shift {
    0%, 100% {
        color: #ffffff;
        filter: drop-shadow(0 0 0 rgba(0, 204, 255, 0));
    }
    50% {
        color: #dff8ff;
        filter: drop-shadow(0 0 9px rgba(0, 204, 255, 0.28));
    }
}

@keyframes od-success-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 217, 151, 0.42);
    }
    100% {
        box-shadow: 0 0 0 18px rgba(67, 217, 151, 0);
    }
}

@keyframes od-error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    65% {
        transform: translateX(4px);
    }
}

@keyframes od-field-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .od-aurora-ring::before,
    .od-scanline::after,
    .od-rhythm,
    .od-type-reveal::after,
    .od-hover-spark:hover::after,
    .portal-feature-card,
    .portal-quick-action-card,
    .portal-dashboard-tool,
    .service-box,
    .region-card,
    .status-impact-card,
    .pricing-card,
    .portal-table tbody tr,
    .metric-strip .metric,
    .portal-admin-form h3 i,
    .portal-dialog-title i,
    .portal-card h2 i,
    .status-type-card .status-kind,
    .region-definition .region-kind,
    .license-result.success,
    .portal-message-success,
    .license-result.error,
    .portal-message-error,
    .portal-admin-dialog[open] .portal-admin-form > label,
    .portal-admin-dialog[open] .portal-admin-form > input,
    .portal-admin-dialog[open] .portal-admin-form > select,
    .portal-admin-dialog[open] .portal-admin-form > textarea {
        animation: none !important;
    }
}

/* Performance guard: keep the polish, remove expensive always-on motion. */
body::after,
.section-1::before,
.section-1::after,
.section-2 > *,
.portal-feature-card,
.portal-quick-action-card,
.portal-dashboard-tool,
.service-box,
.region-card,
.status-impact-card,
.pricing-card,
.portal-table tbody tr,
.metric-strip .metric,
.portal-feature-card > i,
.portal-dashboard-tool > i,
.portal-quick-action-card i,
.portal-empty-state i,
.portal-required-gate-card > i,
.metric strong,
.status-kind,
.region-kind,
.portal-admin-form h3 i,
.portal-dialog-title i,
.portal-card h2 i,
.status-type-card .status-kind,
.region-definition .region-kind,
.portal-badge::after,
.status-pill::after,
.portal-status-pill::after,
.region-match-score::after,
.region-code::after,
.service-variants li::after,
.portal-notification-card.is-unread,
.site-notice,
.portal-required-gate-card,
.od-aurora-ring::before,
.od-scanline::after,
.od-rhythm,
.od-type-reveal::after {
    animation: none !important;
}

.service-box,
.portal-card,
.portal-teaser,
.portal-feature-card,
.portal-dashboard-focus,
.portal-dashboard-brief,
.portal-dashboard-section,
.portal-dashboard-tool,
.portal-quick-action-card,
.portal-admin-form,
.portal-service-offer,
.pricing-card,
.metric,
.status-impact-card,
.status-timeline-event,
.region-card,
.region-definition,
.region-fit-finder {
    will-change: auto !important;
}

.button-row a::before,
.button-row button::before,
.portal-admin-toolbar a::before,
.portal-admin-toolbar button::before,
.portal-side-actions a::before,
.portal-command-bar a::before,
.portal-command-bar button::before,
.portal-admin-form button::before,
.portal-inline-form button::before,
button[data-open-dialog]::before,
.portal-secondary-action::before,
.portal-service-offer > a::before,
.portal-service-offer button::before {
    transition-duration: 0.22s;
}

.service-box:hover,
.portal-card:hover,
.portal-teaser:hover,
.portal-feature-card:hover,
.portal-dashboard-tool:hover,
.portal-quick-action-card:hover,
.portal-service-offer:hover,
.pricing-card:hover,
.metric:hover,
.status-impact-card:hover,
.status-timeline-event:hover,
.region-card:hover,
.region-definition:hover {
    transform: translateY(-2px);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background:
        radial-gradient(circle at top left, rgba(0, 204, 255, 0.12), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(255, 0, 204, 0.09), transparent 30rem),
        #101214;
    color: #B0B3B8;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 3.2rem 3.2rem;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
    animation: grid-drift 18s linear infinite;
}

h1, h2 {
    color: #ffffff;
    font-weight: 700;
}

h3 {
    color: #ffffff;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
        background: linear-gradient(90deg, #00ccff, #ff00cc, #00ccff 70%);
        background-size: 200% auto;
        color: #fff;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradient-move 4s linear infinite;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    width: fit-content;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 2.4rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00ccff, #ff00cc);
    opacity: 0.75;
    box-shadow: 0 0 18px rgba(0, 204, 255, 0.2);
}

a {
    color: #B0B3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid rgba(0, 204, 255, 0.58);
    outline-offset: 3px;
}

::selection {
    background: rgba(0, 204, 255, 0.28);
    color: #ffffff;
}

img,
iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

svg,
video {
    max-width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2rem 0;
}

pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent),
        #0b0d0f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

code {
    font-family: "Roboto Mono", Consolas, monospace;
    color: #dfe7ef;
    overflow-wrap: anywhere;
}

pre code {
    display: block;
    min-width: max-content;
    overflow-wrap: normal;
    white-space: pre;
}

details {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent),
        rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

details + details {
    margin-top: 0.75rem;
}

details[open] {
    border-color: rgba(0, 204, 255, 0.28);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.site-notice {
    width: min(1040px, calc(100% - 2rem));
    margin: 1.25rem auto 0;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    border: 1px solid rgba(0, 204, 255, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.1), transparent 48%),
        rgba(16, 18, 20, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    color: #dfe7ef;
    animation: content-rise 0.45s ease both;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.18s ease;
}

.site-notice:hover,
.site-notice:focus-within {
    transform: translateY(-3px);
    border-color: rgba(143, 233, 255, 0.3);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.34);
}

.site-notice > div:nth-child(2) {
    min-width: 0;
}

.site-notice-icon {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: #00ccff;
    box-shadow: 0 0 18px rgba(0, 204, 255, 0.45);
}

.site-notice strong {
    display: block;
    color: #ffffff;
    line-height: 1.25;
}

.site-notice span {
    display: block;
    color: #b9c7d3;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.site-notice a {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0.48rem 0.7rem;
    color: #ffffff;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.045);
    justify-self: end;
}

.site-notice-close {
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-notice-close:hover,
.site-notice-close:focus-visible {
    border-color: rgba(255, 105, 135, 0.38);
    background: rgba(255, 105, 135, 0.16);
    transform: scale(1.05);
}

.site-notice.is-hidden {
    opacity: 0;
    transform: translateY(0.4rem) scale(0.98);
    pointer-events: none;
}

.site-notice-maintenance {
    border-color: rgba(255, 205, 86, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 205, 86, 0.11), transparent 48%),
        rgba(16, 18, 20, 0.92);
}

.site-notice-maintenance .site-notice-icon {
    background: #ffd166;
    box-shadow: 0 0 18px rgba(255, 209, 102, 0.42);
}

.site-notice-warning,
.site-notice-security {
    border-color: rgba(255, 105, 135, 0.36);
    background:
        linear-gradient(135deg, rgba(255, 105, 135, 0.12), transparent 48%),
        rgba(16, 18, 20, 0.92);
}

.site-notice-warning .site-notice-icon,
.site-notice-security .site-notice-icon {
    background: #ff6987;
    box-shadow: 0 0 18px rgba(255, 105, 135, 0.42);
}

summary {
    cursor: pointer;
    color: #ffffff;
    list-style-position: outside;
}

summary::marker {
    color: #00ccff;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 100vh;
    animation: page-fade 0.7s ease both;
}

/* section 1 */
.section-1 {
    position: sticky;
    top: 0;
    min-height: 100vh;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
        radial-gradient(circle at 50% 38%, rgba(0, 204, 255, 0.16), transparent 18rem),
        #1A1C1E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.section-1 i {
    margin-bottom: 1rem;
    color: #ffffff;
    filter: drop-shadow(0 0 18px rgba(0, 204, 255, 0.22));
    animation: float-soft 4.8s ease-in-out infinite;
}

.section-1 h2 {
    font-size: 2rem;
    margin: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.section-1 p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.section-1 a {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.section-1 a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* section 2 */
.section-2 {
    padding: 3rem;
    width: 100%;
    max-width: 900px;
    overflow-wrap: anywhere;
    animation: content-rise 0.75s ease 0.12s both;
}

.section-2 > p:first-of-type {
    color: #d7dce2;
    font-size: 1.18rem;
}

.section-2 p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.section-2 ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.section-2 li {
    margin-bottom: 0.6rem;
    padding-left: 0.12rem;
}

.section-2 a {
    font-weight: 500;
    display: inline-block;
    padding: 0.3rem 0;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.section-2 a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.section-2 h1 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    overflow-wrap: anywhere;
}

.logo-animation {
    display: grid;
    place-items: center;
    width: min(11rem, 48vw);
    aspect-ratio: 1;
    margin: 0.8rem 0 1.1rem;
    border: 1px solid rgba(0, 204, 255, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.16), transparent 34%),
        rgba(16, 18, 20, 0.52);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    font-size: clamp(3rem, 16vw, 5.5rem);
    line-height: 1;
    position: relative;
    z-index: 1;
    animation: float-soft 4.8s ease-in-out infinite;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.service-box {
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.075), transparent);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.service-box::after,
.portal-card::after,
.pricing-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.18), transparent 38%, rgba(255, 0, 204, 0.14));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.service-box:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 204, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.service-box:hover::before {
    transform: translateX(120%);
}

.service-box:hover::after,
.portal-card:hover::after,
.pricing-card:hover::after {
    opacity: 1;
}

.service-box h3 {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.service-box ul {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.service-box p {
    position: relative;
    z-index: 1;
}

.service-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-variants li {
    margin: 0;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(0, 204, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 204, 255, 0.075);
    color: #eaf8ff;
    font-size: 0.82rem;
    line-height: 1.25;
}

.service-variant-note {
    margin: 0.2rem 0 1.2rem;
    color: #c9d6df;
}

.service-meta-grid {
    display: grid;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-meta-grid p {
    margin: 0;
    color: #cdd8e0;
    font-size: 0.95rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.2rem 0 2rem;
}

.button-row a,
.button-row button,
.service-box .text-link {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.62rem 0.9rem;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.11), rgba(255, 0, 204, 0.06)),
        rgba(255, 255, 255, 0.025);
    color: #edf4f8;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    font: inherit;
}

.button-row a:hover,
.button-row button:hover,
.service-box .text-link:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.button-row form {
    margin: 0;
}

.portal-link-button {
    border: 0;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: #edf4f8;
    cursor: pointer;
    font: inherit;
}

.rich-text-content img,
.blog-article img,
.service-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.85rem 0;
}

.rich-text-content table,
.blog-article table,
.service-box table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.rich-text-content th,
.rich-text-content td,
.blog-article th,
.blog-article td,
.service-box th,
.service-box td {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.55rem;
    text-align: left;
}

.rich-text-content th,
.blog-article th,
.service-box th {
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
}

.rich-text-content tr:last-child th,
.rich-text-content tr:last-child td,
.blog-article tr:last-child th,
.blog-article tr:last-child td,
.service-box tr:last-child th,
.service-box tr:last-child td {
    border-bottom: 0;
}

.rich-text-content th:last-child,
.rich-text-content td:last-child,
.blog-article th:last-child,
.blog-article td:last-child,
.service-box th:last-child,
.service-box td:last-child {
    border-right: 0;
}

.rich-text-content blockquote,
.blog-article blockquote,
.service-box blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 3px solid rgba(0, 204, 255, 0.55);
    background: rgba(255, 255, 255, 0.035);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.pill-list li {
    margin: 0;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pill-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.emoji-network {
    position: relative;
    width: min(20rem, 72vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    z-index: 1;
}

.emoji-network::before {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: slow-spin 18s linear infinite;
}

.emoji {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), transparent 38%),
        rgba(16, 18, 20, 0.72);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    font-size: 1.35rem;
    backdrop-filter: blur(8px);
}

.emoji.center {
    width: 5.4rem;
    height: 5.4rem;
    font-size: 2.5rem;
    border-color: rgba(0, 204, 255, 0.32);
    animation: float-soft 4.4s ease-in-out infinite;
}

.emoji.node {
    transform: rotate(var(--angle)) translateY(-8.2rem) rotate(calc(-1 * var(--angle)));
}

.emoji.orbit {
    animation: node-pulse 3.6s ease-in-out infinite;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin: 1.6rem 0 2rem;
}

.metric {
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.metric:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 204, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 34px rgba(0, 0, 0, 0.18);
}

.metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.2;
}

.timeline {
    display: grid;
    gap: 0.8rem;
    margin: 1.4rem 0 2rem;
    counter-reset: step;
}

.timeline-step {
    position: relative;
    padding: 1rem 1rem 1rem 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent),
        rgba(255, 255, 255, 0.035);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.timeline-step:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.18);
}

.timeline-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: rgba(0, 204, 255, 0.18);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.timeline-step h3 {
    margin-top: 0;
}

.timeline-step p {
    margin-bottom: 0;
}

.service-picker {
    display: grid;
    grid-template-columns: minmax(190px, 0.85fr) minmax(260px, 1.15fr);
    gap: 1rem;
    margin: 1.4rem 0 2.2rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.08), transparent 48%),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.picker-options {
    display: grid;
    gap: 0.55rem;
}

.picker-option {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.035);
    color: #dfe7ef;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.picker-option:hover,
.picker-option.is-active {
    transform: translateX(3px);
    border-color: rgba(0, 204, 255, 0.34);
    background: rgba(0, 204, 255, 0.1);
    color: #ffffff;
}

.picker-result {
    min-height: 100%;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
        rgba(16, 18, 20, 0.52);
}

.picker-result h3 {
    margin-top: 0.25rem;
}

.picker-kicker,
.pricing-kicker,
.pricing-note {
    color: #8fa0ad;
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.4rem 0 1rem;
}

.pricing-card {
    position: relative;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.pricing-card.featured {
    border-color: rgba(0, 204, 255, 0.34);
    background:
        linear-gradient(150deg, rgba(0, 204, 255, 0.14), rgba(255, 0, 204, 0.05)),
        rgba(255, 255, 255, 0.04);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.pricing-card h3 {
    margin-top: 0.2rem;
}

.price {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.pricing-card a {
    display: inline-block;
    margin-top: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.58rem 0.78rem;
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
}

.service-comparison {
    margin: 1.25rem 0 1.6rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.service-comparison table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.service-comparison th,
.service-comparison td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    vertical-align: top;
    text-align: left;
}

.service-comparison thead th {
    color: #ffffff;
    background: rgba(0, 204, 255, 0.08);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-comparison tbody th {
    min-width: 9.5rem;
    color: #ffffff;
}

.service-comparison tbody th i {
    margin-right: 0.35rem;
    color: #00ccff;
}

.service-comparison tr:last-child th,
.service-comparison tr:last-child td {
    border-bottom: 0;
}

.service-comparison a {
    display: inline-flex;
    align-items: center;
    min-height: 2.3rem;
    padding: 0.42rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.discount-callout {
    position: relative;
    margin: 1.4rem 0 1.2rem;
    padding: 1.2rem;
    border: 1px solid rgba(67, 217, 151, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(67, 217, 151, 0.12), transparent 46%),
        linear-gradient(150deg, rgba(0, 204, 255, 0.08), rgba(255, 0, 204, 0.05)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.discount-callout::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #43d997, #00ccff, #ff00cc);
}

.discount-callout h3 {
    margin-top: 0.15rem;
}

.discount-callout p {
    color: #dce8ee;
}

.discount-callout .button-row {
    margin-bottom: 0;
}

.discount-kicker {
    margin-bottom: 0.35rem;
    color: #a8f1cd;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.discount-duck-tip {
    display: inline-grid;
    place-items: center;
    margin-left: 0.35rem;
    font-size: 0.95rem;
    line-height: 1;
    cursor: help;
    opacity: 0.8;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(67, 217, 151, 0.2));
}

.discount-duck-tip:hover,
.discount-duck-tip:focus {
    opacity: 1;
    outline: 0;
}

.portal-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.4rem 0 1.8rem;
}

.portal-status-row span {
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    background: rgba(0, 204, 255, 0.08);
    color: #dfe7ef;
    overflow-wrap: anywhere;
}

.portal-tooltip {
    position: relative;
    cursor: help;
}

.portal-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.65rem);
    z-index: 20;
    width: min(22rem, 78vw);
    padding: 0.72rem 0.82rem;
    border: 1px solid rgba(0, 204, 255, 0.28);
    border-radius: 8px;
    background: rgba(16, 18, 20, 0.96);
    color: #eef6fb;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.25rem);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.portal-tooltip:hover::after,
.portal-tooltip:focus::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(230px, 0.9fr);
    gap: 1rem;
    margin: 1.4rem 0 2rem;
}

.portal-card,
.portal-teaser {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.portal-card {
    padding: 1.15rem;
}

.portal-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
    margin: 1.3rem 0 2rem;
}

.portal-teaser h3,
.portal-card h2 {
    margin-top: 0.2rem;
}

.site-callout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin: 1.4rem 0 2rem;
    padding: 1.15rem;
    border: 1px solid rgba(67, 217, 151, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(67, 217, 151, 0.08), transparent 46%),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.site-callout h2,
.site-callout h3 {
    margin-top: 0;
}

.site-callout p:last-child {
    margin-bottom: 0;
}

.contact-route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 2rem;
}

.contact-route {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.contact-route h3 {
    margin-top: 0;
}

.portal-kicker {
    color: #8fa0ad;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.license-form {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.license-form label {
    color: #ffffff;
    font-weight: 500;
}

.license-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.72rem 0.82rem;
    background: rgba(16, 18, 20, 0.72);
    color: #ffffff;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.license-form input:focus {
    border-color: rgba(0, 204, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.12);
}

.license-form button {
    border: 1px solid rgba(0, 204, 255, 0.28);
    border-radius: 8px;
    padding: 0.74rem 0.9rem;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.18), rgba(255, 0, 204, 0.08)),
        rgba(255, 255, 255, 0.045);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.license-form button:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 204, 255, 0.45);
}

.license-card-locked {
    position: relative;
    overflow: hidden;
    min-height: 430px;
}

.license-card-locked .license-check-content {
    filter: blur(7px);
    opacity: 0.46;
    pointer-events: none;
    user-select: none;
}

.license-login-overlay {
    position: absolute;
    inset: 1rem;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.8rem;
    text-align: center;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.12), rgba(255, 0, 204, 0.08)),
        rgba(13, 17, 20, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.license-login-overlay > i {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 204, 255, 0.28);
    color: #ffffff;
    background: rgba(0, 204, 255, 0.12);
}

.license-login-overlay h2,
.license-login-overlay p {
    margin: 0;
}

.license-login-overlay a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0.65rem 0.95rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
}

.license-result {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(0, 204, 255, 0.22);
    border-radius: 8px;
    background: rgba(0, 204, 255, 0.075);
}

.license-result.success {
    border-color: rgba(67, 217, 151, 0.36);
    background: rgba(67, 217, 151, 0.09);
}

.license-result.error {
    border-color: rgba(255, 105, 135, 0.34);
    background: rgba(255, 105, 135, 0.08);
}

.license-result.warning {
    border-color: rgba(255, 205, 86, 0.34);
    background: rgba(255, 205, 86, 0.085);
}

.license-result ul {
    margin-bottom: 0;
}

.portal-action-list {
    display: grid;
    gap: 0.65rem;
}

.portal-action-list a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.035);
    color: #e9eef3;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.portal-action-list a:hover {
    transform: translateX(3px);
    border-color: rgba(0, 204, 255, 0.28);
    background: rgba(0, 204, 255, 0.08);
}

.portal-shell .section-2 {
    max-width: 1280px;
}

.portal-shell {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.portal-sidebar {
    gap: 0.35rem;
}

.portal-eyebrow {
    margin: 0 0 0.35rem;
    color: #9fb2c2;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-radar {
    position: relative;
    width: min(19rem, 72vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(0, 204, 255, 0.14) 0 19%, transparent 20% 41%, rgba(255, 255, 255, 0.05) 42% 43%, transparent 44%),
        radial-gradient(circle, transparent 0 63%, rgba(255, 255, 255, 0.07) 64% 65%, transparent 66%);
}

.portal-radar::before {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.11);
    animation: slow-spin 22s linear infinite;
}

.portal-radar-center,
.portal-radar span {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), transparent 38%),
        rgba(16, 18, 20, 0.76);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
    color: #ffffff;
}

.portal-radar-center {
    width: 5.6rem;
    height: 5.6rem;
    font-size: 2.25rem;
    border-color: rgba(0, 204, 255, 0.34);
}

.portal-radar span {
    position: absolute;
    width: 3.15rem;
    height: 3.15rem;
    transform: rotate(var(--angle)) translateY(-7.65rem) rotate(calc(-1 * var(--angle)));
}

.portal-side-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.8rem;
    position: relative;
    z-index: 1;
}

.portal-side-actions a,
.portal-command-bar a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0.58rem 0.82rem;
    background: rgba(255, 255, 255, 0.045);
    color: #eef6fb;
    font-size: 0.98rem;
}

.portal-admin-nav {
    width: min(100%, 20rem);
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

.portal-admin-nav-group {
    display: grid;
    gap: 0.28rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(10, 12, 14, 0.24);
}

.portal-admin-nav-label {
    padding: 0.35rem 0.55rem 0.18rem;
    color: #9fb2c2;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-admin-nav a {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    align-items: center;
    gap: 0.62rem;
    min-height: 2.42rem;
    margin: 0;
    padding: 0.55rem 0.62rem;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #eaf2f7;
    font-size: 0.96rem;
    line-height: 1.2;
}

.portal-admin-nav a:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.portal-admin-nav a.is-active {
    border-color: rgba(0, 204, 255, 0.32);
    background: rgba(0, 204, 255, 0.1);
    color: #ffffff;
}

.portal-admin-nav a i {
    margin: 0;
    color: inherit;
    filter: none;
    animation: none;
    text-align: center;
}

.portal-admin-nav a span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.portal-admin-nav-meta {
    border-color: rgba(255, 255, 255, 0.06);
    background: transparent;
}

.portal-nav-collapsible {
    width: min(100%, 20rem);
    position: relative;
    z-index: 1;
}

.portal-nav-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.65rem;
    border: 1px solid rgba(0, 204, 255, 0.26);
    border-radius: 8px;
    padding: 0.58rem 0.72rem;
    background: rgba(0, 204, 255, 0.08);
    color: #ffffff;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.portal-nav-toggle span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.portal-nav-toggle i {
    margin: 0;
    filter: none;
    animation: none;
}

.portal-nav-toggle:hover {
    border-color: rgba(0, 204, 255, 0.42);
    background: rgba(0, 204, 255, 0.13);
}

.portal-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 1rem;
    color: #9fb2c2;
    font-size: 0.9rem;
}

.portal-breadcrumbs a,
.portal-breadcrumbs span {
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: inherit;
}

.portal-breadcrumbs a {
    color: #dce9f2;
}

.portal-breadcrumbs a:hover {
    transform: none;
}

.portal-breadcrumbs a::after {
    content: "/";
    margin-left: 0.35rem;
    color: #647887;
}

.portal-breadcrumbs span:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    color: #647887;
    font-weight: 500;
}

.portal-breadcrumbs span:not(:last-child) {
    color: #dce9f2;
    font-weight: 500;
}

.portal-breadcrumbs span {
    color: #ffffff;
    font-weight: 700;
}

.portal-staff-notice {
    margin: 1.2rem 0 1.8rem;
}

.portal-staff-notice p:last-child {
    margin-bottom: 0;
}

.portal-admin-link-group {
    margin: 1.2rem 0 1.6rem;
}

.portal-admin-link-group h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.portal-admin-link-group h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #dce9f2;
    font-size: 0.82rem;
}

.blog-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.blog-card,
.blog-article {
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.blog-card h2 {
    margin-top: 0.15rem;
}

.blog-card h2 a {
    color: #ffffff;
    font-size: inherit;
    padding: 0;
}

.blog-tags {
    margin: 0.6rem 0 1rem;
}

.blog-article {
    margin: 1.4rem 0 1.2rem;
}

.blog-article h2,
.blog-article h3 {
    margin-top: 1.6rem;
}

.blog-article p {
    color: #d5dbe2;
}

.blog-hero-image,
.blog-card-image {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.035);
}

.blog-hero-image {
    max-height: 22rem;
    margin: 0.8rem 0 1rem;
}

.blog-card-image {
    max-height: 13rem;
    margin: 0.35rem 0 0.7rem;
}

.portal-command-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.4rem 0;
}

.portal-command-bar a,
.portal-command-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.95rem;
}

.portal-command-bar .portal-primary-action {
    border-color: rgba(0, 204, 255, 0.32);
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.16), rgba(255, 0, 204, 0.07)),
        rgba(255, 255, 255, 0.045);
}

.portal-status-panel {
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.portal-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.6rem 0 2rem;
}

.portal-feature-card {
    min-height: 0;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.portal-feature-card > i {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(0, 204, 255, 0.24);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 204, 255, 0.09);
}

.portal-feature-card h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.portal-feature-card p {
    font-size: 1rem;
}

.portal-feature-card a {
    font-size: 1rem;
}

.portal-overview-grid .portal-feature-card,
.portal-info-grid .portal-feature-card,
.portal-payment-grid .portal-feature-card {
    height: 100%;
}

.portal-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1rem;
    margin: 1.4rem 0 1.6rem;
}

.portal-dashboard-focus,
.portal-dashboard-brief,
.portal-dashboard-section {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.032);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.portal-dashboard-focus {
    padding: 1.15rem;
}

.portal-dashboard-focus h2,
.portal-dashboard-brief h2,
.portal-dashboard-section h2 {
    margin-top: 0;
}

.portal-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.portal-dashboard-kpis a,
.portal-dashboard-snapshot span {
    display: block;
    padding: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.16);
}

.portal-dashboard-kpis a {
    text-decoration: none;
}

.portal-dashboard-kpis strong,
.portal-dashboard-snapshot strong {
    display: block;
    color: #ffffff;
    font-size: 1.28rem;
    line-height: 1.2;
}

.portal-dashboard-brief {
    padding: 1rem;
}

.portal-dashboard-snapshot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.portal-dashboard-sections {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.portal-dashboard-section {
    padding: 1rem;
}

.portal-dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.portal-dashboard-section-head span {
    color: #9fb0bd;
    font-size: 0.95rem;
    white-space: nowrap;
}

.portal-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.portal-dashboard-tool {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    min-height: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.13);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.portal-dashboard-tool:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 204, 255, 0.22);
    background: rgba(0, 204, 255, 0.045);
}

.portal-dashboard-tool > i {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 204, 255, 0.08);
}

.portal-dashboard-tool h3 {
    margin: 0 0 0.35rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.portal-dashboard-tool p {
    margin: 0;
    color: #bac7d0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.portal-dashboard-tool a {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.15rem;
    font-size: 0.95rem;
}

.portal-dashboard-tool-primary {
    border-color: rgba(0, 204, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.08), transparent 46%),
        rgba(0, 0, 0, 0.16);
}

.portal-dashboard-tool-quiet {
    opacity: 0.88;
}

.portal-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.portal-quick-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0.2rem 0.7rem;
    min-height: 5.7rem;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.055), rgba(255, 51, 204, 0.025)),
        rgba(0, 0, 0, 0.14);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.portal-quick-action-card:hover,
.portal-quick-action-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 204, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.11), rgba(255, 51, 204, 0.045)),
        rgba(0, 0, 0, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    outline: none;
}

.portal-quick-action-card i {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(0, 204, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 204, 255, 0.09);
}

.portal-quick-action-card span {
    align-self: end;
    min-width: 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.25;
}

.portal-quick-action-card small {
    min-width: 0;
    color: #aebac3;
    font-size: 0.84rem;
    line-height: 1.35;
}

.portal-tenant-card {
    position: relative;
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 204, 255, 0.24);
    border-radius: 8px;
    color: #eef8ff;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.12), rgba(255, 51, 204, 0.055)),
        rgba(10, 12, 14, 0.74);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.portal-tenant-card strong {
    color: #ffffff;
    font-size: 1.02rem;
}

.portal-tenant-card p {
    margin: 0;
    color: #c8d5dd;
    line-height: 1.45;
}

.portal-tenant-card small {
    color: #9fb0bd;
}

.portal-tenant-card code {
    color: #dff8ff;
}

.portal-tenant-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.portal-tenant-card-labels span {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.portal-tenant-card-corner {
    position: fixed;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 90;
    width: min(18rem, calc(100vw - 1.8rem));
    margin: 0;
    padding: 0.75rem 0.85rem;
    backdrop-filter: blur(16px);
}

.portal-tenant-card-corner p {
    font-size: 0.84rem;
}

.portal-nav-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.45rem;
    height: 1.45rem;
    margin-left: auto;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 74, 160, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
}

.portal-content-locked {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.portal-required-gate {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(2, 4, 6, 0.72);
    backdrop-filter: blur(10px);
}

.portal-required-gate-card {
    display: grid;
    gap: 0.8rem;
    width: min(680px, 100%);
    padding: 1.25rem;
    border: 1px solid rgba(0, 204, 255, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.11), rgba(255, 51, 204, 0.055)),
        #17191b;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.portal-required-gate-card > i {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(0, 204, 255, 0.22);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 204, 255, 0.1);
}

.portal-required-gate-card h2,
.portal-notification-card h3 {
    margin: 0;
}

.portal-required-gate-card p {
    margin: 0;
    color: #c8d5dd;
}

.portal-required-gate-list {
    display: grid;
    gap: 0.6rem;
}

.portal-required-gate-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.portal-required-gate-list small {
    color: #aebac3;
}

.portal-notification-list {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.portal-notification-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.portal-notification-card.is-unread {
    border-color: rgba(0, 204, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.085), rgba(255, 51, 204, 0.035)),
        rgba(255, 255, 255, 0.04);
}

.portal-notification-card p {
    margin: 0.55rem 0;
    color: #c8d5dd;
    line-height: 1.5;
}

.portal-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.portal-notification-actions a,
.portal-inline-form button {
    white-space: nowrap;
}

.portal-settings-tabs {
    position: sticky;
    top: 0.75rem;
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.2rem;
    padding: 0.65rem;
    border: 1px solid rgba(190, 210, 224, 0.14);
    border-radius: 8px;
    background: rgba(16, 18, 20, 0.86);
    backdrop-filter: blur(14px);
}

.portal-settings-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e8f3fa;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
}

.portal-settings-tabs a:hover {
    border-color: rgba(0, 204, 255, 0.3);
    background: rgba(0, 204, 255, 0.08);
}

.portal-admin-form h3[id] {
    scroll-margin-top: 5.5rem;
}

.portal-missing-settings-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.portal-missing-settings-list span {
    display: grid;
    gap: 0.25rem;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
}

.portal-missing-settings-list small {
    color: #bfccd5;
}

.portal-customer-row button,
.portal-admin-toolbar button,
button[data-open-dialog],
.portal-service-offer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
    min-height: 2.35rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid rgba(0, 204, 255, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.12), rgba(255, 0, 204, 0.045)),
        rgba(255, 255, 255, 0.045);
    color: #eef6fb;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.portal-customer-row button:hover,
.portal-admin-toolbar button:hover,
button[data-open-dialog]:hover,
.portal-service-offer button:hover {
    border-color: rgba(0, 204, 255, 0.42);
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.18), rgba(255, 0, 204, 0.075)),
        rgba(255, 255, 255, 0.055);
}

.portal-margin-simulator {
    padding: 1.15rem;
    margin: 1.3rem 0 1.6rem;
    border: 1px solid rgba(0, 204, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.032);
}

.portal-margin-simulator form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.portal-margin-simulator label,
.portal-margin-simulator form > div {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.portal-margin-simulator span {
    color: #c5d1da;
    font-weight: 700;
    font-size: 0.9rem;
}

.portal-margin-simulator input,
.portal-margin-simulator output {
    min-height: 2.55rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    font: inherit;
}

.portal-margin-simulator output {
    display: flex;
    align-items: center;
    font-weight: 800;
}

.portal-service-catalog {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 1.8rem;
}

.portal-service-offer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(110px, auto) minmax(130px, auto) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.032);
}

.portal-service-offer h3 {
    margin: 0 0 0.25rem;
    color: #ffffff;
}

.portal-service-offer p {
    margin: 0;
}

.portal-service-price {
    display: grid;
    gap: 0.15rem;
    min-width: 6.5rem;
}

.portal-service-price span,
.portal-service-price small {
    color: #9fb0bd;
    font-size: 0.85rem;
}

.portal-service-price strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.portal-service-offer > a {
    white-space: nowrap;
}

.portal-workbench {
    display: grid;
    grid-template-columns: minmax(300px, 1.15fr) minmax(240px, 0.85fr);
    gap: 1rem;
    margin: 1.4rem 0 2rem;
}

.portal-integration-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.15rem;
    margin: 1.4rem 0 2rem;
    border: 1px solid rgba(0, 204, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.09), transparent 46%),
        rgba(255, 255, 255, 0.032);
}

.portal-integration-panel h2 {
    margin-top: 0;
}

.portal-integration-steps {
    display: grid;
    gap: 0.65rem;
}

.portal-integration-steps span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(16, 18, 20, 0.48);
}

.portal-integration-steps strong {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(0, 204, 255, 0.16);
    color: #ffffff;
}

.portal-journey .timeline-step h3 {
    margin-bottom: 0.35rem;
}

.portal-table {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0 2rem;
    border: 1px solid rgba(190, 210, 224, 0.24);
    border-radius: 8px;
    background: rgba(10, 12, 14, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.portal-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
    table-layout: auto;
}

.portal-table th,
.portal-table td {
    padding: 0.82rem 0.9rem;
    border-right: 1px solid rgba(190, 210, 224, 0.18);
    border-bottom: 1px solid rgba(190, 210, 224, 0.18);
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
}

.portal-table th {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.075);
    white-space: nowrap;
}

.portal-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.018);
}

.portal-table tbody tr:hover td {
    background: rgba(0, 204, 255, 0.045);
}

.portal-table td code,
.portal-table th code {
    white-space: nowrap;
    overflow-wrap: normal;
}

.portal-table tr:last-child td {
    border-bottom: 0;
}

.portal-table th:last-child,
.portal-table td:last-child {
    border-right: 0;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    color: #dfe7ef;
    font-size: 0.82rem;
    line-height: 1.25;
    white-space: nowrap;
}

.portal-badge::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.78;
}

.portal-badge-active,
.portal-badge-paid,
.portal-badge-operational,
.portal-badge-valid,
.portal-badge-open,
.portal-badge-ready,
.portal-badge-approved,
.portal-badge-done {
    border-color: rgba(67, 217, 151, 0.34);
    background: rgba(67, 217, 151, 0.1);
    color: #8ff0bd;
}

.portal-badge-pending,
.portal-badge-waiting,
.portal-badge-waiting-for-customer,
.portal-badge-waiting-customer,
.portal-badge-waiting-openducks,
.portal-badge-in-progress,
.portal-badge-review-due,
.portal-badge-requested,
.portal-badge-decommissioning,
.portal-badge-maintenance,
.portal-badge-setup,
.portal-badge-normal {
    border-color: rgba(255, 205, 89, 0.36);
    background: rgba(255, 205, 89, 0.1);
    color: #ffe08a;
}

.portal-badge-announced,
.portal-badge-inactive-by-design,
.portal-badge-dormant,
.portal-badge-long-term-offline {
    border-color: rgba(61, 202, 255, 0.34);
    background: rgba(61, 202, 255, 0.1);
    color: #91e7ff;
}

.portal-badge-overdue,
.portal-badge-expired,
.portal-badge-blocked,
.portal-badge-degraded,
.portal-badge-rejected,
.portal-badge-urgent,
.portal-badge-high {
    border-color: rgba(255, 102, 102, 0.36);
    background: rgba(255, 102, 102, 0.1);
    color: #ff9a9a;
}

.portal-badge-hidden,
.portal-badge-internal,
.portal-badge-inactive,
.portal-badge-paused,
.portal-badge-closed {
    border-color: rgba(160, 170, 180, 0.28);
    background: rgba(160, 170, 180, 0.08);
    color: #b8c0c8;
}

.portal-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: #8ff0bd;
}

.portal-table-compact {
    margin: 0;
}

.portal-table-compact table {
    min-width: 560px;
}

.portal-table-compact th,
.portal-table-compact td {
    padding: 0.55rem 0.65rem;
    vertical-align: middle;
}

.portal-admin-forms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 1.4rem 0 2rem;
}

.portal-admin-form {
    display: grid;
    gap: 0.9rem 1rem;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.035);
}

.portal-admin-form h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.portal-admin-form label {
    color: #ffffff;
    font-weight: 500;
    align-self: center;
}

.portal-admin-form input,
.portal-admin-form select,
.portal-admin-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-height: 3rem;
    padding: 0.82rem 0.9rem;
    background: rgba(16, 18, 20, 0.72);
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
}

.portal-admin-form button {
    margin-top: 0.35rem;
    border: 1px solid rgba(0, 204, 255, 0.28);
    border-radius: 8px;
    padding: 0.74rem 0.9rem;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.18), rgba(255, 0, 204, 0.08)),
        rgba(255, 255, 255, 0.045);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.portal-admin-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.portal-admin-form .portal-code-editor {
    min-height: 12rem;
    font-family: "Roboto Mono", Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre;
    overflow: auto;
}

.portal-payment-editor {
    grid-template-columns: minmax(150px, 0.28fr) minmax(280px, 1fr);
}

.portal-payment-editor h3,
.portal-payment-editor .portal-checkbox {
    grid-column: 1 / -1;
}

.portal-inline-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    align-items: center;
}

.portal-inline-form input,
.portal-inline-form select {
    min-width: 9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-height: 2.45rem;
    padding: 0.55rem 0.65rem;
    background: rgba(16, 18, 20, 0.72);
    color: #ffffff;
    font: inherit;
}

.portal-inline-form button {
    display: inline-grid;
    place-items: center;
    width: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    border: 1px solid rgba(0, 204, 255, 0.28);
    border-radius: 8px;
    background: rgba(0, 204, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
}

.portal-customer-list {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0 2rem;
}

.portal-customer-admin {
    margin: 0;
}

.portal-record-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.portal-admin-form-wide {
    grid-template-columns: minmax(160px, 0.34fr) minmax(320px, 1fr);
    align-items: start;
}

.portal-admin-form-wide h3,
.portal-admin-form-wide > button,
.portal-admin-form-wide > .portal-secondary-action,
.portal-admin-form-wide > .portal-table,
.portal-admin-form-wide > p,
.portal-admin-form-wide > .portal-form-help,
.portal-admin-form-wide .portal-dialog-title,
.portal-admin-form-wide .portal-dialog-actions,
.portal-admin-form-wide .portal-admin-inline-actions {
    grid-column: 1 / -1;
}

.portal-admin-form-wide > label:has(input[type="checkbox"]) {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.portal-admin-form-wide > label:has(input[type="checkbox"]) input {
    width: auto;
    min-height: auto;
}

.portal-admin-form-wide > p,
.portal-admin-form-wide > .portal-form-help {
    margin: -0.25rem 0 0.25rem;
    color: #b9c7d3;
    line-height: 1.55;
}

.portal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    grid-column: 2;
}

.portal-admin-form .portal-checkbox input {
    width: auto;
}

.portal-message {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.portal-message-success {
    border-color: rgba(86, 214, 123, 0.32);
    color: #dfffe8;
}

.portal-message-error {
    border-color: rgba(255, 105, 135, 0.36);
    color: #ffd9df;
}

.portal-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
}

.portal-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.2rem 0 1.5rem;
}

.portal-admin-toolbar button,
.portal-admin-toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.045);
    color: #eef6fb;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.portal-admin-toolbar button:first-child {
    border-color: rgba(0, 204, 255, 0.28);
    background: rgba(0, 204, 255, 0.1);
}

dialog.portal-admin-dialog,
.portal-admin-dialog {
    width: min(1060px, calc(100vw - 2rem));
    min-width: min(760px, calc(100vw - 2rem));
    max-height: min(90dvh, 980px);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #17191b;
    color: #eef6fb;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

dialog.portal-admin-dialog[open] {
    display: block;
}

dialog.portal-admin-dialog::backdrop,
.portal-admin-dialog::backdrop {
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(3px);
}

.portal-admin-dialog .portal-admin-form {
    border: 0;
    border-radius: 0;
    max-height: inherit;
    overflow: auto;
    padding: clamp(1.35rem, 2vw, 1.85rem);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        #17191b;
}

.portal-admin-dialog-wide,
dialog.portal-admin-dialog-wide {
    width: min(1220px, calc(100vw - 2rem));
}

.portal-dialog-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.portal-dialog-title h3,
.portal-dialog-title h2 {
    margin: 0;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.portal-dialog-close,
.portal-admin-form .portal-dialog-close {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: #eef6fb;
    font: inherit;
    cursor: pointer;
}

.portal-dialog-close:hover,
.portal-admin-form .portal-dialog-close:hover {
    border-color: rgba(255, 105, 135, 0.38);
    background: rgba(255, 105, 135, 0.12);
    color: #ffffff;
}

.portal-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.portal-dialog-actions button,
.portal-dialog-actions .portal-secondary-action {
    flex: 1 1 12rem;
}

.portal-dialog-actions .portal-secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eef6fb;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

dialog.portal-admin-dialog .portal-admin-form label,
dialog.portal-admin-dialog .portal-admin-form p {
    color: #eef6fb;
}

dialog.portal-admin-dialog .portal-admin-form input,
dialog.portal-admin-dialog .portal-admin-form select,
dialog.portal-admin-dialog .portal-admin-form textarea {
    background: rgba(16, 18, 20, 0.86);
    color: #ffffff;
}

.portal-admin-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.portal-admin-form-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary, #2563eb);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.portal-admin-form-actions .button:hover {
    background: var(--color-primary-dark, #1d4ed8);
}

.portal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.4rem 0 1.6rem;
}

.portal-detail-list p {
    margin-bottom: 0.75rem;
}

.portal-account-fallback-card {
    width: min(100%, 46rem);
    margin: 1rem 0 1.6rem;
}

.portal-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.6rem;
}

.portal-payment-card-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.portal-payment-card-title i {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(0, 204, 255, 0.24);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 204, 255, 0.09);
}

.portal-payment-card-title h2 {
    margin: 0;
}

.portal-payment-card-title span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.portal-payment-card-compact {
    align-self: start;
    font-size: 0.94rem;
}

.portal-payment-card-compact .portal-payment-card-title {
    margin-bottom: 0.55rem;
}

.portal-payment-card-compact .portal-payment-card-title i {
    width: 2rem;
    height: 2rem;
}

.portal-payment-card-compact .portal-payment-card-title h2 {
    font-size: 1.08rem;
}

.portal-payment-card-compact .portal-detail-list p {
    margin-bottom: 0.58rem;
}

.portal-intermediary-bank {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.portal-intermediary-bank h3 {
    margin-top: 0;
}

.portal-payment-notes {
    margin: 1rem 0 0;
}

.portal-rich-content {
    color: #dce8ef;
    line-height: 1.65;
}

.portal-rich-content h2,
.portal-rich-content h3,
.portal-rich-content h4 {
    margin: 0.9rem 0 0.45rem;
}

.portal-rich-content p,
.portal-rich-content ul,
.portal-rich-content ol,
.portal-rich-content blockquote {
    margin: 0.6rem 0;
}

.portal-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.portal-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
}

.portal-rich-content th,
.portal-rich-content td {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.45rem;
    text-align: left;
}

.portal-search-results h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.portal-search-results h3:first-child {
    margin-top: 0.5rem;
}

.portal-search-results .portal-table {
    margin-bottom: 1rem;
}

.portal-delete-form {
    margin-top: -0.7rem;
}

.portal-delete-form button {
    border: 1px solid rgba(255, 105, 135, 0.32);
    border-radius: 8px;
    padding: 0.56rem 0.78rem;
    background: rgba(255, 105, 135, 0.08);
    color: #ffd9df;
    font: inherit;
    cursor: pointer;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes page-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes grid-drift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 3.2rem 3.2rem, 3.2rem 3.2rem;
    }
}

@keyframes content-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes slow-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes node-pulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.25);
    }
}

.legal-layout {
    max-width: 920px;
}

.legal-kicker {
    color: #ffffff;
    font-family: monospace;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    opacity: 0.72;
}

.legal-card {
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent),
        rgba(255, 255, 255, 0.035);
    margin: 1rem 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.legal-card h2,
.legal-card h3 {
    margin-top: 0;
}

.legal-card p:last-child,
.legal-card ul:last-child {
    margin-bottom: 0;
}

.legal-note {
    border-left: 4px solid #7A7C80;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.035);
    color: #d6d9de;
}

.legal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #d6d9de;
    font-size: 0.78rem;
    line-height: 1;
    padding: 0.38rem 0.65rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
}

.legal-badge strong {
    color: #fff;
    font-weight: 700;
}

.legal-toc {
    margin: 1rem 0 1.25rem;
}

.legal-toc h2 {
    margin-top: 0;
}

.legal-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.35rem 1.25rem;
    margin: 0;
    padding-left: 1.2rem;
}

.legal-toc a {
    color: #d6d9de;
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus {
    color: #fff;
    text-decoration: underline;
}

.legal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.legal-meta-grid p {
    margin: 0;
}

.site-footer {
    margin-top: 4rem;
    padding: 2.2rem;
    color: #7A7C80;
    font-size: 0.9rem;
    font-family: monospace;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025)),
        rgba(16, 18, 20, 0.72);
}

    .footer-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

.footer-group {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.footer-group h2 {
    margin: 0 0 0.35rem;
    color: #ffffff;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.site-footer a {
    color: #7A7C80;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.18rem 0.28rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-contact-group a:nth-of-type(3) {
    color: #dceee5;
    background: rgba(67, 217, 151, 0.1);
}

.site-footer a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-language {
    display: block;
    margin-top: 0.35rem;
    opacity: 0.78;
}

.footer-meta {
    text-align: center;
    margin: 0;
}

.footer-meta a {
    text-decoration: underline;
}

.footer-meta span {
    opacity: 0.5;
}

.footer-version {
    display: inline-flex;
    align-items: center;
    margin-left: 0.55rem;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(0, 204, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 204, 255, 0.06);
    color: #a9eaff;
    opacity: 0.85 !important;
}

.portal-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.portal-pagination span:first-child {
    margin-right: auto;
    color: #b8c4cc;
}

.portal-pagination a,
.portal-pagination .is-disabled {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.portal-pagination .is-disabled {
    color: rgba(219, 229, 236, 0.38);
}

.portal-customer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.portal-customer-row-main {
    display: grid;
    gap: 0.25rem;
}

.portal-customer-row-main span {
    color: #b9c7d3;
    font-size: 0.95rem;
}

.portal-customer-file-dialog {
    width: min(1220px, calc(100vw - 2rem));
    max-height: min(92dvh, 980px);
}

.portal-customer-file {
    display: grid;
    gap: 1.1rem;
    max-height: min(92dvh, 980px);
    overflow: auto;
    padding: clamp(1.2rem, 2vw, 1.75rem);
}

.portal-customer-file > .portal-dialog-title {
    position: sticky;
    top: -1.1rem;
    z-index: 3;
    margin: -1.1rem -1.1rem 0;
    padding: 0.95rem 1.1rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        #17191b;
}

.portal-customer-file .portal-record-list {
    display: grid;
    gap: 1rem;
    overflow: visible;
    padding-right: 0;
}

.portal-record-section {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(190, 210, 224, 0.16);
}

.portal-record-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.portal-record-section-title h3 {
    margin: 0;
}

.portal-record-section-title span {
    color: #9fb0bd;
    font-size: 0.92rem;
    white-space: nowrap;
}

.portal-empty-state {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.2rem;
    padding: 0.78rem 0.9rem;
    border: 1px dashed rgba(190, 210, 224, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
    color: #c4d0d8;
}

.portal-empty-state i {
    color: #8fdfff;
}

.portal-empty-state strong {
    color: #ffffff;
}

.portal-customer-file-actions {
    margin: 0;
}

.portal-customer-row button,
.portal-customer-file-actions button,
button[data-open-dialog] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0.68rem 0.9rem;
    border: 1px solid rgba(0, 204, 255, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.14), rgba(255, 0, 204, 0.055)),
        rgba(255, 255, 255, 0.045);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.portal-customer-row button:hover,
.portal-customer-file-actions button:hover,
button[data-open-dialog]:hover {
    border-color: rgba(0, 204, 255, 0.48);
    background:
        linear-gradient(135deg, rgba(0, 204, 255, 0.2), rgba(255, 0, 204, 0.08)),
        rgba(255, 255, 255, 0.06);
}

/* media queries */
@media (max-width: 780px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(0, 204, 255, 0.1), transparent 22rem),
            #101214;
        line-height: 1.55;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .section-1 {
        position: relative;
        justify-content: center;
        padding: max(1.05rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 1.05rem max(1rem, env(safe-area-inset-left));
        min-height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    }

    .section-2 {
        padding: 1.15rem max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .section-1 > i,
    .section-1 > .fa-5x,
    .section-1 > .fas,
    .section-1 > .fab {
        margin-bottom: 0.35rem;
        font-size: clamp(1.65rem, 9vw, 2.6rem) !important;
    }

    .section-1 h2 {
        margin: 0.2rem 0;
        font-size: clamp(1.1rem, 5.2vw, 1.45rem);
    }

    .section-1 h2::after {
        bottom: -0.18rem;
        width: 1.8rem;
    }

    .section-1 p {
        max-width: 34rem;
        margin: 0.28rem auto 0.45rem;
        font-size: 0.92rem;
        line-height: 1.42;
    }

    .section-1 a {
        font-size: 1rem;
        margin-top: 0.25rem;
    }

    h1 {
        font-size: clamp(1.55rem, 7.2vw, 1.85rem);
        line-height: 1.16;
    }

    h2 {
        font-size: clamp(1.18rem, 5.6vw, 1.38rem);
        margin-top: 1.35rem;
        margin-bottom: 0.65rem;
        line-height: 1.22;
    }

    .section-2 p,
    .section-2 a {
        font-size: 0.97rem;
    }

    .section-2 > p:first-of-type {
        font-size: 1rem;
    }

    .section-2 ul {
        padding-left: 1rem;
    }

    .section-2 li {
        margin-bottom: 0.35rem;
    }

    pre {
        margin-inline: -0.15rem;
        padding: 0.85rem;
        font-size: 0.86rem;
    }

    .logo-animation {
        width: min(5.8rem, 30vw);
        margin: 0.25rem 0 0.45rem;
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .emoji-network {
        transform: scale(0.72);
        margin: -1.8rem 0;
    }

    .portal-radar {
        width: min(9.5rem, 42vw);
        margin: -0.2rem 0 0.45rem;
    }

    .portal-radar-center {
        width: 3.55rem;
        height: 3.55rem;
        font-size: 1.45rem;
    }

    .portal-radar span {
        width: 2.05rem;
        height: 2.05rem;
        transform: rotate(var(--angle)) translateY(-3.85rem) rotate(calc(-1 * var(--angle)));
        font-size: 0.9rem;
    }

    .portal-side-actions {
        width: 100%;
        gap: 0.4rem;
        margin-top: 0.45rem;
    }

    .portal-side-actions a {
        flex: 1 1 9.5rem;
        justify-content: center;
        padding: 0.5rem 0.62rem;
        font-size: 0.92rem;
    }

    .metric-strip,
    .services-grid,
    .portal-overview-grid {
        grid-template-columns: 1fr;
    }

    .button-row {
        gap: 0.6rem;
    }

    .button-row a,
    .button-row button,
    .portal-action-list a,
    .portal-side-actions a,
    .portal-command-bar a,
    .portal-admin-nav a,
    .portal-pagination a,
    .portal-pagination .is-disabled,
    .portal-admin-form button,
    .portal-inline-form button,
    button[data-open-dialog] {
        min-height: 44px;
    }

    .button-row a,
    .button-row button,
    .portal-action-list a,
    .portal-side-actions a,
    .portal-command-bar a {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .service-picker {
        grid-template-columns: 1fr;
    }

    .portal-grid,
    .portal-teaser,
    .portal-workbench,
    .portal-integration-panel,
    .portal-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-grid,
    .portal-dashboard-snapshot,
    .portal-margin-simulator form,
    .portal-service-offer {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .portal-tenant-card-corner {
        position: sticky;
        top: 0;
        right: auto;
        width: auto;
        margin: 0.75rem;
    }

    .portal-notification-card {
        grid-template-columns: 1fr;
    }

    .portal-notification-actions {
        justify-content: flex-start;
    }

    .portal-teaser {
        display: grid;
    }

    .portal-command-bar a,
    .portal-side-actions a {
        width: 100%;
        justify-content: center;
    }

    .portal-admin-form-wide {
        grid-template-columns: 1fr;
    }

    .portal-admin-form-wide h3,
    .portal-admin-form-wide > button,
    .portal-admin-form-wide > .portal-secondary-action,
    .portal-admin-form-wide .portal-dialog-title,
    .portal-admin-form-wide .portal-dialog-actions,
    .portal-admin-form-wide .portal-admin-inline-actions,
    .portal-checkbox {
        grid-column: 1;
    }

    .portal-admin-toolbar button,
    .portal-admin-toolbar a {
        width: 100%;
    }

    .portal-status-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .portal-status-row span,
    .portal-feature-card,
    .portal-card,
    .service-box,
    .metric,
    details,
    .portal-badge,
    .legal-badge,
    .doc-status {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .portal-customer-row {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .portal-record-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    .portal-record-section-title span {
        white-space: normal;
    }

    .portal-customer-file-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: auto;
    }

    .portal-customer-file {
        max-height: calc(100dvh - 1rem);
        padding: 0.85rem;
    }

    .portal-customer-file > .portal-dialog-title {
        top: -0.85rem;
        margin: -0.85rem -0.85rem 0;
        padding: 0.82rem 0.85rem;
    }

    .portal-table {
        margin-inline: -0.15rem;
        max-width: calc(100vw - 1.7rem);
        -webkit-overflow-scrolling: touch;
    }

    .portal-table table {
        min-width: min(620px, calc(100vw - 1.7rem));
    }

    .portal-table-compact table {
        min-width: min(520px, calc(100vw - 1.7rem));
    }

    .portal-table th,
    .portal-table td {
        padding: 0.68rem 0.72rem;
        vertical-align: top;
    }

    .portal-table td {
        overflow-wrap: anywhere;
    }

    .portal-table td code {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .portal-table-mobile-cards {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .portal-table-mobile-cards table,
    .portal-table-mobile-cards thead,
    .portal-table-mobile-cards tbody,
    .portal-table-mobile-cards tr,
    .portal-table-mobile-cards th,
    .portal-table-mobile-cards td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .portal-table-mobile-cards thead {
        display: none;
    }

    .portal-table-mobile-cards tr {
        margin-bottom: 0.85rem;
        border: 1px solid rgba(190, 210, 224, 0.22);
        border-radius: 8px;
        background: rgba(10, 12, 14, 0.38);
        overflow: hidden;
    }

    .portal-table-mobile-cards td {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: 0.75rem;
        border-right: 0;
        padding: 0.7rem 0.78rem;
    }

    .portal-table-mobile-cards td::before {
        content: attr(data-label);
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .portal-inline-form {
        flex-wrap: wrap;
    }

    .portal-inline-form input,
    .portal-inline-form select,
    .portal-inline-form button {
        width: 100%;
    }

    .site-notice {
        grid-template-columns: auto minmax(0, 1fr);
        width: calc(100% - 1rem);
        margin-top: 0.5rem;
        align-items: start;
        padding: 0.78rem;
    }

    .site-notice a {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
        white-space: normal;
    }

    .site-notice-icon {
        margin-top: 0.32rem;
    }

    .portal-admin-nav {
        width: 100%;
        gap: 0.42rem;
        margin-top: 0.55rem;
    }

    .portal-nav-collapsible {
        width: 100%;
        margin-top: 0.45rem;
    }

    .portal-nav-toggle {
        display: inline-flex;
    }

    .portal-nav-collapsible:not(.is-open) .portal-admin-nav {
        display: none;
    }

    .portal-nav-collapsible.is-open .portal-admin-nav {
        display: grid;
    }

    .portal-admin-nav-group {
        gap: 0.28rem;
        padding: 0.32rem;
    }

    .portal-admin-nav a {
        min-height: 2.65rem;
        padding: 0.48rem 0.55rem;
        font-size: 0.91rem;
    }

    .portal-admin-nav-label {
        padding: 0.22rem 0.45rem 0.1rem;
        font-size: 0.66rem;
    }

    .portal-dashboard-focus,
    .portal-dashboard-brief,
    .portal-dashboard-section,
    .portal-card,
    .portal-teaser,
    .service-box,
    .metric,
    .pricing-card {
        padding: 0.92rem;
    }

    .portal-dashboard-grid,
    .portal-quick-actions-grid,
    .services-grid,
    .metric-strip,
    .pricing-grid {
        gap: 0.65rem;
        margin-top: 0.75rem;
    }

    .portal-dashboard-tool,
    .portal-quick-action-card {
        min-height: auto;
        padding: 0.72rem;
    }

    .portal-dashboard-tool h3,
    .portal-quick-action-card strong {
        font-size: 0.98rem;
    }

    .portal-dashboard-tool p,
    .portal-quick-action-card span {
        font-size: 0.9rem;
    }

    .footer-meta {
        display: grid;
        justify-items: center;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    body::before {
        animation: none;
    }
}

@media (max-width: 480px) {
    body {
        min-width: 0;
    }

    dialog.portal-admin-dialog,
    .portal-admin-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .portal-admin-dialog .portal-admin-form {
        padding: 0.9rem;
    }

    .section-2 {
        padding-inline: 1rem;
    }

    .button-row a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

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

    .portal-radar {
        width: min(8.8rem, 40vw);
    }

    .portal-radar span {
        width: 1.95rem;
        height: 1.95rem;
        transform: rotate(var(--angle)) translateY(-3.55rem) rotate(calc(-1 * var(--angle)));
    }

    .portal-radar-center {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.35rem;
    }

    .portal-dashboard-kpis,
    .portal-quick-actions-grid,
    .portal-overview-grid,
    .metric-strip,
    .services-grid,
    .pricing-grid,
    .legal-meta-grid,
    .legal-toc ol {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-tool,
    .portal-quick-action-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-dashboard-tool > i,
    .portal-quick-action-card i {
        justify-self: start;
    }

    .portal-tenant-card-corner {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .portal-required-gate {
        align-items: start;
        padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
        overflow: auto;
    }

    .portal-required-gate-card {
        padding: 1rem;
    }

    .site-footer {
        padding: 1.5rem max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)) !important;
    }

    .footer-groups {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 390px) {
    h1 {
        font-size: 1.55rem;
    }

    h2 {
        font-size: 1.22rem;
        max-width: 100%;
    }

    .section-1 {
        padding-block: 0.85rem;
        min-height: auto;
    }

    .section-2 {
        padding-inline: 0.85rem;
    }

    .service-box,
    .portal-card,
    .portal-dashboard-focus,
    .portal-dashboard-brief,
    .portal-dashboard-section,
    .portal-admin-form,
    .portal-customer-file {
        padding: 0.85rem;
    }

    .portal-table {
        max-width: calc(100vw - 1.25rem);
    }

    .portal-table table,
    .portal-table-compact table {
        min-width: min(460px, calc(100vw - 1.25rem));
    }
}

.portal-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.maintenance {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.maintenance h1 {
    font-size: 3rem;
    margin: 0 0 0.75rem;
}

.maintenance p {
    max-width: 42rem;
    color: #d7dce2;
    font-size: 1.15rem;
}

.maintenance .wrenchy {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 205, 86, 0.28);
    border-radius: 50%;
    color: #ffd166;
    background: rgba(255, 205, 86, 0.08);
    font-size: 1.6rem;
    animation: float-soft 4s ease-in-out infinite;
}

.portal-status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 204, 255, 0.12);
    color: #0f7990;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Motion polish layer: additive visual enhancements without changing the base layout. */
:root {
    --od-ease-snap: cubic-bezier(0.2, 0.85, 0.28, 1);
    --od-ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
    --od-surface-glow: 0 18px 44px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.035);
    --od-cyan: #00ccff;
    --od-pink: #ff00cc;
    --od-green: #43d997;
    --od-amber: #ffd166;
    --od-red: #ff6987;
}

body {
    font-family: Inter, "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.035) 47%, transparent 60%),
        radial-gradient(circle at 72% 16%, rgba(67, 217, 151, 0.08), transparent 18rem);
    background-size: 220% 100%, auto;
    opacity: 0.62;
    animation: ambient-sweep 13s var(--od-ease-snap) infinite;
}

.section-1::before,
.section-1::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    z-index: 0;
}

.section-1::before {
    width: 16rem;
    height: 16rem;
    border: 1px solid rgba(0, 204, 255, 0.12);
    box-shadow: inset 0 0 60px rgba(0, 204, 255, 0.035), 0 0 48px rgba(0, 204, 255, 0.07);
    animation: orbit-halo 18s linear infinite;
}

.section-1::after {
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(255, 0, 204, 0.12);
    transform: translate(7rem, -6rem);
    animation: orbit-halo-reverse 14s linear infinite;
}

.section-1 > * {
    position: relative;
    z-index: 1;
}

.section-2 > * {
    animation: soft-stagger-in 0.55s var(--od-ease-pop) both;
}

.section-2 > *:nth-child(2) { animation-delay: 0.03s; }
.section-2 > *:nth-child(3) { animation-delay: 0.06s; }
.section-2 > *:nth-child(4) { animation-delay: 0.09s; }
.section-2 > *:nth-child(5) { animation-delay: 0.12s; }
.section-2 > *:nth-child(n + 6) { animation-delay: 0.15s; }

.button-row a,
.button-row button,
.portal-admin-toolbar a,
.portal-admin-toolbar button,
.portal-side-actions a,
.portal-command-bar a,
.portal-command-bar button,
.portal-admin-form button,
.portal-inline-form button,
button[data-open-dialog],
.portal-secondary-action,
.portal-service-offer > a,
.portal-service-offer button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.button-row a::before,
.button-row button::before,
.portal-admin-toolbar a::before,
.portal-admin-toolbar button::before,
.portal-side-actions a::before,
.portal-command-bar a::before,
.portal-command-bar button::before,
.portal-admin-form button::before,
.portal-inline-form button::before,
button[data-open-dialog]::before,
.portal-secondary-action::before,
.portal-service-offer > a::before,
.portal-service-offer button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: translateX(-125%);
    transition: transform 0.62s var(--od-ease-snap);
}

.button-row a:hover::before,
.button-row button:hover::before,
.portal-admin-toolbar a:hover::before,
.portal-admin-toolbar button:hover::before,
.portal-side-actions a:hover::before,
.portal-command-bar a:hover::before,
.portal-command-bar button:hover::before,
.portal-admin-form button:hover::before,
.portal-inline-form button:hover::before,
button[data-open-dialog]:hover::before,
.portal-secondary-action:hover::before,
.portal-service-offer > a:hover::before,
.portal-service-offer button:hover::before {
    transform: translateX(125%);
}

.service-box,
.portal-card,
.portal-teaser,
.portal-feature-card,
.portal-dashboard-focus,
.portal-dashboard-brief,
.portal-dashboard-section,
.portal-dashboard-tool,
.portal-quick-action-card,
.portal-admin-form,
.portal-service-offer,
.portal-payment-card-title,
.portal-integration-panel,
.pricing-card,
.metric,
.site-callout,
.status-hero,
.status-impact-card,
.status-timeline-event,
.region-card,
.region-definition,
.region-fit-finder {
    transform-style: preserve-3d;
    will-change: transform, box-shadow, border-color;
}

.service-box:hover,
.portal-card:hover,
.portal-teaser:hover,
.portal-feature-card:hover,
.portal-dashboard-tool:hover,
.portal-quick-action-card:hover,
.portal-service-offer:hover,
.pricing-card:hover,
.metric:hover,
.status-impact-card:hover,
.status-timeline-event:hover,
.region-card:hover,
.region-definition:hover {
    transform: translateY(-5px);
    box-shadow: var(--od-surface-glow);
}

.portal-admin-form:hover,
.portal-dashboard-focus:hover,
.portal-dashboard-brief:hover,
.portal-dashboard-section:hover,
.region-fit-finder:hover,
.site-callout:hover {
    border-color: rgba(0, 204, 255, 0.18);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.portal-feature-card > i,
.portal-dashboard-tool > i,
.portal-quick-action-card i,
.portal-empty-state i,
.portal-required-gate-card > i,
.metric strong,
.status-kind,
.region-kind {
    animation: icon-breathe 4.2s ease-in-out infinite;
}

.portal-feature-card:hover > i,
.portal-dashboard-tool:hover > i,
.portal-quick-action-card:hover i,
.portal-empty-state:hover i,
.portal-required-gate-card:hover > i {
    animation: icon-pop 0.55s var(--od-ease-pop) both;
}

.portal-table tbody tr {
    transition: transform 0.2s var(--od-ease-snap), background 0.2s ease;
}

.portal-table tbody tr:hover {
    transform: translateX(4px);
}

.portal-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 rgba(0, 204, 255, 0.55);
}

.portal-badge,
.status-pill,
.portal-status-pill,
.region-match-score,
.region-code,
.service-variants li {
    position: relative;
    overflow: hidden;
}

.portal-badge::after,
.status-pill::after,
.portal-status-pill::after,
.region-match-score::after,
.region-code::after,
.service-variants li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-130%);
    animation: tiny-shimmer 5.6s ease-in-out infinite;
    pointer-events: none;
}

.status-pill.is-operational .status-dot,
.portal-badge-active::before,
.portal-badge-paid::before,
.portal-badge-operational::before,
.portal-badge-valid::before,
.portal-badge-ready::before,
.portal-badge-approved::before,
.portal-badge-done::before {
    animation: pulse-green 2.9s ease-in-out infinite;
}

.status-pill.is-degraded .status-dot,
.status-pill.is-maintenance .status-dot,
.status-pill.is-decommissioning .status-dot,
.portal-badge-pending::before,
.portal-badge-waiting::before,
.portal-badge-in-progress::before,
.portal-badge-decommissioning::before,
.portal-badge-maintenance::before {
    animation: pulse-amber 2.5s ease-in-out infinite;
}

.status-pill.is-partial_outage .status-dot,
.status-pill.is-major_outage .status-dot,
.status-pill.is-out_of_service .status-dot,
.portal-badge-overdue::before,
.portal-badge-expired::before,
.portal-badge-blocked::before,
.portal-badge-degraded::before,
.portal-badge-urgent::before {
    animation: pulse-red 2.1s ease-in-out infinite;
}

.portal-admin-form input,
.portal-admin-form select,
.portal-admin-form textarea,
.license-form input,
.license-form select,
.license-form textarea,
.portal-inline-form input,
.portal-inline-form select,
.portal-inline-form textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portal-admin-form input:hover,
.portal-admin-form select:hover,
.portal-admin-form textarea:hover,
.license-form input:hover,
.license-form select:hover,
.license-form textarea:hover,
.portal-inline-form input:hover,
.portal-inline-form select:hover,
.portal-inline-form textarea:hover {
    border-color: rgba(0, 204, 255, 0.24);
}

.portal-admin-form input:focus,
.portal-admin-form select:focus,
.portal-admin-form textarea:focus,
.license-form input:focus,
.license-form select:focus,
.license-form textarea:focus,
.portal-inline-form input:focus,
.portal-inline-form select:focus,
.portal-inline-form textarea:focus {
    border-color: rgba(0, 204, 255, 0.46);
    box-shadow: 0 0 0 4px rgba(0, 204, 255, 0.09), 0 12px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

dialog.portal-admin-dialog[open],
.portal-customer-file-dialog[open] {
    animation: dialog-rise 0.34s var(--od-ease-pop) both;
}

dialog.portal-admin-dialog::backdrop,
.portal-customer-file-dialog::backdrop {
    animation: backdrop-blur 0.28s ease both;
}

.portal-notification-card.is-unread,
.site-notice,
.portal-required-gate-card {
    animation: soft-alert 2.8s ease-in-out infinite;
}

.portal-radar span:nth-child(2n),
.portal-dashboard-tool:nth-child(2n),
.portal-quick-action-card:nth-child(2n),
.portal-feature-card:nth-child(2n),
.metric:nth-child(2n) {
    animation-delay: 0.18s;
}

.portal-radar span:nth-child(3n),
.portal-dashboard-tool:nth-child(3n),
.portal-quick-action-card:nth-child(3n),
.portal-feature-card:nth-child(3n),
.metric:nth-child(3n) {
    animation-delay: 0.33s;
}

.portal-settings-tabs a,
.portal-pagination a,
.portal-breadcrumbs a,
.section-2 a:not(.portal-quick-action-card):not(.portal-dashboard-tool):not(.portal-secondary-action) {
    position: relative;
}

.portal-settings-tabs a::after,
.portal-pagination a::after,
.portal-breadcrumbs a::after,
.section-2 a:not(.portal-quick-action-card):not(.portal-dashboard-tool):not(.portal-secondary-action)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0.1rem;
    height: 1px;
    background: linear-gradient(90deg, var(--od-cyan), var(--od-pink));
    transition: right 0.25s var(--od-ease-snap);
}

.portal-settings-tabs a:hover::after,
.portal-pagination a:hover::after,
.portal-breadcrumbs a:hover::after,
.section-2 a:not(.portal-quick-action-card):not(.portal-dashboard-tool):not(.portal-secondary-action):hover::after {
    right: 0;
}

.od-motion-float {
    animation: float-soft 4.8s ease-in-out infinite;
}

.od-motion-pop {
    animation: icon-pop 0.55s var(--od-ease-pop) both;
}

.od-motion-sheen {
    position: relative;
    overflow: hidden;
}

.od-motion-sheen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-130%);
    animation: tiny-shimmer 4.6s ease-in-out infinite;
}

@keyframes ambient-sweep {
    0%, 100% {
        background-position: -90% 0, center;
        opacity: 0.42;
    }
    50% {
        background-position: 130% 0, center;
        opacity: 0.7;
    }
}

@keyframes orbit-halo {
    0% {
        transform: rotate(0deg) translateX(0.45rem) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(0.45rem) rotate(-360deg);
    }
}

@keyframes orbit-halo-reverse {
    0% {
        transform: translate(7rem, -6rem) rotate(0deg);
    }
    100% {
        transform: translate(7rem, -6rem) rotate(-360deg);
    }
}

@keyframes soft-stagger-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes icon-breathe {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(0, 204, 255, 0));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.2));
    }
}

@keyframes icon-pop {
    0% {
        transform: scale(1) rotate(0deg);
    }
    45% {
        transform: scale(1.12) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes tiny-shimmer {
    0%, 58% {
        transform: translateX(-130%);
    }
    78%, 100% {
        transform: translateX(130%);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 rgba(67, 217, 151, 0.1);
    }
    50% {
        box-shadow: 0 0 16px rgba(67, 217, 151, 0.52);
    }
}

@keyframes pulse-amber {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 209, 102, 0.1);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 209, 102, 0.52);
    }
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 105, 135, 0.1);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 105, 135, 0.55);
    }
}

@keyframes dialog-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes backdrop-blur {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0);
    }
    to {
        background: rgba(0, 0, 0, 0.56);
        backdrop-filter: blur(8px);
    }
}

@keyframes soft-alert {
    0%, 100% {
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    }
    50% {
        box-shadow: 0 16px 42px rgba(0, 204, 255, 0.12), 0 0 0 1px rgba(0, 204, 255, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after,
    .section-1::before,
    .section-1::after,
    .section-2 > *,
    .portal-feature-card > i,
    .portal-dashboard-tool > i,
    .portal-quick-action-card i,
    .portal-empty-state i,
    .portal-required-gate-card > i,
    .metric strong,
    .status-kind,
    .region-kind,
    .portal-badge::after,
    .status-pill::after,
    .portal-status-pill::after,
    .region-match-score::after,
    .region-code::after,
    .service-variants li::after,
    .portal-notification-card.is-unread,
    .site-notice,
    .portal-required-gate-card,
    .od-motion-float,
    .od-motion-pop,
    .od-motion-sheen::after {
        animation: none !important;
    }
}
