:root {
    --bg: #0b0b0b;
    --panel: #121212;
    --panel-2: #1a1a1a;
    --line: #292d35;
    --line-soft: #20242b;
    --text: #f5f7fb;
    --muted: #a8b0bd;
    --muted-2: #747d8c;
    --blue: #2563eb;
    --blue-2: #3b82f6;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius: 8px;
    --shadow: 0 20px 80px rgba(0, 0, 0, .36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    z-index: -2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    appearance: none;
    -webkit-appearance: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 11, .84);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.nav-frame {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #fff;
}

.brand span {
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.site-nav a {
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.nav-cta {
    color: #fff !important;
    background: var(--blue);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 10px 14px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .24);
}

.nav-cta.ghost {
    background: transparent;
    box-shadow: none;
    color: var(--muted) !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #101010;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 11px 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--blue);
    box-shadow: 0 16px 36px rgba(37, 99, 235, .26);
}

.button.primary:hover {
    background: var(--blue-2);
}

.button.secondary {
    background: rgba(255, 255, 255, .03);
    border-color: var(--line);
    color: var(--text);
}

.button.compact {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
    background: #151923 !important;
    border-color: var(--line) !important;
    color: #fff !important;
    box-shadow: none;
}

.button.compact:hover {
    background: #1d2430;
}

.button.compact.primary {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
}

.button.compact.secondary {
    background: rgba(255, 255, 255, .04) !important;
    border-color: var(--line) !important;
}

.button.danger,
.button.compact.danger {
    background: rgba(239, 68, 68, .12) !important;
    border-color: rgba(239, 68, 68, .45) !important;
    color: #ffd0cc !important;
}

.button.danger:hover,
.button.compact.danger:hover {
    background: rgba(239, 68, 68, .2) !important;
}

button.button,
input[type="submit"].button {
    background-color: #151923;
    color: #fff;
}

.button.full {
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    color: #8fb5ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 78svh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(11, 11, 11, .98) 0%, rgba(11, 11, 11, .88) 48%, rgba(11, 11, 11, .55) 100%),
        url("../img/infrastructure-field.svg") center right / cover no-repeat;
    z-index: -2;
}

.hero-surface {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .8;
}

.rack {
    position: absolute;
    right: 9%;
    width: 210px;
    height: 330px;
    border: 1px solid rgba(143, 181, 255, .28);
    background:
        repeating-linear-gradient(to bottom, rgba(255,255,255,.08), rgba(255,255,255,.08) 1px, transparent 1px, transparent 42px),
        linear-gradient(180deg, rgba(37, 99, 235, .12), rgba(18, 18, 18, .68));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rack-one {
    top: 18%;
}

.rack-two {
    top: 28%;
    right: 23%;
    opacity: .5;
    transform: scale(.88);
}

.network-line {
    position: absolute;
    right: 0;
    height: 1px;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .75), transparent);
    animation: pulse-line 5s ease-in-out infinite;
}

.line-one {
    top: 32%;
}

.line-two {
    top: 62%;
    animation-delay: 1.8s;
}

@keyframes pulse-line {
    0%, 100% { opacity: .28; transform: translateX(0); }
    50% { opacity: .9; transform: translateX(-16px); }
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .55fr);
    gap: 56px;
    align-items: center;
    padding: 92px 0 76px;
}

.hero-copy {
    max-width: 760px;
}

.hero h1,
.page-hero h1,
.auth-card h1,
.app-heading h1 {
    margin: 14px 0 18px;
    color: #fff;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero h1 {
    font-size: clamp(44px, 7vw, 82px);
    max-width: 860px;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-status {
    align-self: end;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--radius);
    background: rgba(18, 18, 18, .74);
    box-shadow: var(--shadow);
    padding: 18px;
}

.status-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.status-line span {
    color: var(--muted);
}

.status-line strong {
    color: #fff;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.metric-strip span {
    min-width: 0;
    border: 1px solid rgba(37, 99, 235, .28);
    border-radius: var(--radius);
    padding: 8px;
    text-align: center;
    color: #cfe0ff;
    font-size: 12px;
    font-weight: 800;
}

.section {
    padding: 98px 0;
}

.section-muted {
    background: #0f0f0f;
    border-block: 1px solid var(--line-soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head h2,
.split-layout h2,
.final-cta h2,
.table-heading h2 {
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-head p,
.split-layout p,
.feature-panel p,
.service-card p,
.price-card li,
.testimonial blockquote,
.contact-panel p {
    color: var(--muted);
}

.service-grid,
.pricing-grid,
.feature-grid,
.testimonials,
.mockup-grid,
.stat-grid,
.dashboard-grid {
    display: grid;
    gap: 18px;
}

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

.service-card,
.price-card,
.feature-panel,
.testimonial,
.panel,
.stat-card,
.mockup-card,
.auth-card,
.contact-panel,
.table-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

.service-card,
.feature-panel,
.testimonial,
.panel,
.stat-card,
.contact-panel,
.table-card {
    padding: 24px;
}

.service-card {
    min-height: 258px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.service-card:hover,
.price-card:hover,
.mockup-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .45);
}

.card-mark {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(37, 99, 235, .2));
    border: 1px solid rgba(143, 181, 255, .34);
    margin-bottom: 28px;
}

.card-mark svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3,
.feature-item h3,
.feature-panel h3,
.price-card h3,
.testimonial strong,
.panel h2,
.mockup-card strong {
    margin: 0;
    color: #fff;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.card-foot a,
.text-link,
.panel-head a {
    color: #9fc0ff;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
    gap: 52px;
    align-items: center;
}

.align-start {
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .025);
}

.check-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    position: relative;
    margin-top: 3px;
}

.check-mark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 5px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

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

.pricing-grid.single-column {
    grid-template-columns: 1fr;
}

.price-card {
    position: relative;
    padding: 26px;
    transition: transform .18s ease, border-color .18s ease;
}

.price-card.is-featured {
    border-color: rgba(37, 99, 235, .72);
    background: linear-gradient(180deg, rgba(37, 99, 235, .13), rgba(255, 255, 255, .018));
}

.plan-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, .16);
    color: #cfe0ff;
    font-size: 12px;
    font-weight: 800;
}

.plan-badge-muted {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-soft);
    color: var(--text);
}

.price {
    margin: 18px 0;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.price span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.price-card dl {
    display: grid;
    gap: 9px;
    margin: 0 0 20px;
}

.price-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 8px;
}

.price-card dt {
    color: var(--muted-2);
}

.price-card dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.price-card ul {
    min-height: 132px;
    margin: 0 0 22px;
    padding-left: 18px;
}

.final-cta {
    padding: 94px 0;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .18), transparent 44%),
        #0b0b0b;
}

.final-cta-inner {
    max-width: 840px;
}

.page-hero {
    padding: 104px 0 68px;
    border-bottom: 1px solid var(--line-soft);
    background:
        linear-gradient(120deg, rgba(37, 99, 235, .15), transparent 38%),
        linear-gradient(180deg, #0b0b0b, #101010);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(40px, 6vw, 72px);
}

.page-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 19px;
}

.table-card {
    overflow: hidden;
}

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

.panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

td {
    color: var(--muted);
    font-size: 14px;
}

td strong {
    display: block;
    color: #fff;
}

.highlight-row {
    background: rgba(37, 99, 235, .08);
}

.muted {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-success {
    background: rgba(34, 197, 94, .14);
    color: #8cf0b1;
}

.status-warning {
    background: rgba(245, 158, 11, .14);
    color: #ffd28a;
}

.status-error {
    background: rgba(239, 68, 68, .14);
    color: #ffaaa4;
}

.status-info {
    background: rgba(37, 99, 235, .14);
    color: #bdd3ff;
}

.site-footer {
    border-top: 1px solid var(--line-soft);
    background: #080808;
    padding: 54px 0 22px;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.7fr);
    gap: 54px;
    align-items: start;
}

.footer-company {
    max-width: 390px;
}

.footer-company p {
    margin: 18px 0;
    color: var(--muted);
}

.footer-mail {
    color: #9fc0ff;
    font-weight: 800;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.footer-links div {
    display: grid;
    gap: 9px;
}

.footer-links h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-links a,
.footer-links span {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted-2);
    font-size: 13px;
}

.empty-state {
    grid-column: 1 / -1;
    border: 1px dashed rgba(143, 181, 255, .28);
    border-radius: var(--radius);
    background: rgba(37, 99, 235, .055);
    padding: 24px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: #fff;
}

.empty-state p {
    margin: 0 0 16px;
    color: var(--muted);
}

.spec-list,
.contact-lines {
    display: grid;
    gap: 10px;
    margin: 28px 0;
}

.spec-list span,
.contact-lines span {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
}

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

.mockup-card {
    overflow: hidden;
    margin: 0;
    transition: transform .18s ease, border-color .18s ease;
}

.mockup-card img {
    width: 100%;
    background: #101010;
}

.mockup-card figcaption {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.mockup-card span,
.testimonial span {
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
}

.timeline-item > span {
    color: #cfe0ff;
    font-weight: 800;
}

.timeline h3,
.timeline p {
    margin: 0;
}

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

.testimonial {
    margin: 0;
}

.testimonial blockquote,
.testimonial p {
    margin: 0 0 22px;
    color: var(--muted);
}

.testimonial figcaption {
    display: grid;
    gap: 4px;
}

.panel-form,
.auth-card form,
.compact-form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.form-note {
    margin: 0;
    color: var(--muted-2);
    font-size: 13px;
}

.payment-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .018);
    padding: 14px;
}

.payment-panel[hidden] {
    display: none;
}

.card-brand-preview {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid rgba(37, 99, 235, .28);
    border-radius: var(--radius);
    color: #cfe0ff;
    background: rgba(37, 99, 235, .08);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0e0e0f;
    color: #fff;
    padding: 10px 12px;
    outline: none;
    color-scheme: dark;
    transition: border-color .18s ease, box-shadow .18s ease;
}

option {
    background: #0e0e0f;
    color: #fff;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, .7);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

.contact-panel h2 {
    font-size: clamp(24px, 3vw, 34px);
    word-break: break-word;
}

.auth-page {
    min-height: calc(100svh - 72px);
    display: grid;
    place-items: center;
    padding: 64px 20px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 28px;
}

.auth-card p {
    color: var(--muted);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    color: #9fc0ff;
    font-size: 14px;
    font-weight: 800;
}

.flash-stack {
    position: relative;
    z-index: 80;
    margin-top: 18px;
}

.flash {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #121212;
    color: #fff;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.flash-success { border-color: rgba(34, 197, 94, .5); }
.flash-error { border-color: rgba(239, 68, 68, .5); }
.flash-warning { border-color: rgba(245, 158, 11, .5); }

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    min-height: calc(100svh - 72px);
}

.app-sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
    height: calc(100svh - 72px);
    border-right: 1px solid var(--line-soft);
    background: #0e0e0f;
    padding: 26px 18px;
}

.sidebar-title {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.app-sidebar nav {
    display: grid;
    gap: 6px;
}

.app-sidebar a {
    border-radius: var(--radius);
    padding: 11px 12px;
    color: var(--muted);
    font-weight: 700;
    transition: background .18s ease, color .18s ease;
}

.app-sidebar a:hover,
.app-sidebar a.active {
    background: rgba(37, 99, 235, .13);
    color: #fff;
}

.app-main {
    padding: 38px;
    min-width: 0;
}

.app-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.app-heading h1 {
    font-size: clamp(32px, 4vw, 48px);
}

.app-heading p {
    margin: 0;
    color: var(--muted);
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.stat-card {
    display: grid;
    gap: 8px;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    word-break: break-word;
}

.analytics-live-panel {
    border: 1px solid rgba(37, 99, 235, .28);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 18px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .08), rgba(255, 255, 255, .015)),
        rgba(18, 18, 18, .86);
}

.analytics-stat-grid {
    margin: 18px 0;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(34, 197, 94, .32);
    border-radius: var(--radius);
    color: #c8fbd7;
    background: rgba(34, 197, 94, .08);
    font-size: 13px;
    font-weight: 800;
}

.live-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .1);
}

.traffic-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.traffic-mini-grid article {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .025);
}

.traffic-mini-grid span,
.visitor-list span,
.visitor-list small {
    color: var(--muted);
}

.traffic-mini-grid strong {
    color: #fff;
    font-size: 22px;
}

.visitor-list {
    display: grid;
    gap: 10px;
}

.visitor-list article {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.visitor-list article:last-child {
    border-bottom: 0;
}

.visitor-list strong,
.visitor-list span {
    display: block;
}

.visitor-list small {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
    min-width: 86px;
}

.visitor-list small b {
    color: #dbeafe;
    font-size: 12px;
}

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

.span-2 {
    grid-column: span 2;
}

.notification-list,
.ticket-list,
.ticket-thread-list,
.role-list,
.bar-list,
.server-card-list {
    display: grid;
    gap: 12px;
}

.notification-item,
.ticket-list article,
.ticket-thread,
.role-list article,
.server-card,
.node-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    padding: 14px;
}

.notification-item {
    display: grid;
    gap: 8px;
}

.notification-item p,
.notification-item small {
    margin: 0;
    color: var(--muted);
}

.ticket-list article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ticket-list span {
    color: var(--muted-2);
    font-size: 12px;
}

.ticket-workspace {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.45fr);
    min-height: 620px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: #0d0d0e;
}

.ticket-inbox {
    border-right: 1px solid var(--line-soft);
    background: #101011;
    min-width: 0;
}

.ticket-inbox-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.ticket-inbox-head strong {
    color: #fff;
}

.ticket-inbox-head span {
    color: var(--muted);
    font-size: 13px;
}

.ticket-inbox-list {
    display: grid;
    max-height: 560px;
    overflow-y: auto;
}

.ticket-inbox-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    transition: background .18s ease;
}

.ticket-inbox-item:hover,
.ticket-inbox-item.active {
    background: rgba(37, 99, 235, .12);
}

.ticket-inbox-item.is-closed {
    opacity: .68;
}

.ticket-inbox-item strong,
.ticket-chat-header strong {
    display: block;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-inbox-item span,
.ticket-chat-header span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.ticket-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        #0d0d0e;
    background-size: 34px 34px;
}

.ticket-chat-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(18, 18, 18, .96);
}

.ticket-chat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ticket-thread header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.ticket-thread header span,
.chat-bubble p {
    margin: 0;
    color: var(--muted);
}

.chat-window {
    display: grid;
    gap: 12px;
    max-height: 460px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #0d0d0e;
}

.whatsapp-chat {
    align-content: end;
    max-height: none;
    min-height: 420px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.chat-message {
    display: flex;
}

.chat-admin {
    justify-content: flex-end;
}

.chat-customer {
    justify-content: flex-start;
}

.chat-bubble {
    width: min(76%, 680px);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 12px 14px;
    background: #151515;
}

.chat-customer .chat-bubble {
    border-top-left-radius: 4px;
}

.chat-admin .chat-bubble {
    border-color: rgba(37, 99, 235, .42);
    background: rgba(37, 99, 235, .15);
    border-top-right-radius: 4px;
}

.chat-author {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.chat-author strong {
    color: #fff;
}

.chat-author span {
    color: var(--muted-2);
    font-size: 12px;
}

.reply-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
}

.whatsapp-reply {
    margin: 0;
    padding: 12px;
    border-top: 1px solid var(--line-soft);
    background: #101011;
}

.ticket-closed-note {
    border-top: 1px solid var(--line-soft);
    padding: 14px;
    color: var(--muted);
    background: #101011;
}

.server-card {
    display: grid;
    gap: 14px;
}

.server-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.server-card-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.server-card-head span,
.node-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

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

.server-spec-grid div {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(255, 255, 255, .018);
}

.server-spec-grid span,
.resource-line span {
    display: block;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.server-spec-grid strong {
    display: block;
    color: #fff;
    overflow-wrap: anywhere;
}

.power-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.power-badge i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.power-online {
    background: rgba(34, 197, 94, .12);
    color: #8cf0b1;
}

.power-offline {
    background: rgba(239, 68, 68, .12);
    color: #ffaaa4;
}

.power-busy {
    background: rgba(245, 158, 11, .12);
    color: #ffd28a;
}

.power-unknown {
    background: rgba(148, 163, 184, .12);
    color: #cbd5e1;
}

.server-actions,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-actions form {
    margin: 0;
}

.stacked-cell {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.assign-row td {
    background: rgba(37, 99, 235, .04);
}

.assign-form {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.vps-assign-form {
    grid-template-columns: repeat(4, minmax(145px, 1fr));
    min-width: min(920px, 100%);
}

.assigned-service,
.status-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.server-note {
    margin: 12px 0 0;
}

.table-checkbox {
    margin-top: 8px;
    font-size: 12px;
}

.node-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.node-card {
    display: grid;
    gap: 10px;
}

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

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

.proxmox-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .018);
    padding: 16px;
}

.proxmox-card,
.proxmox-card header,
.proxmox-card-footer {
    display: grid;
    gap: 14px;
}

.proxmox-card header,
.proxmox-card-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
}

.proxmox-card header strong {
    display: block;
    color: #fff;
}

.proxmox-card header span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.proxmox-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.proxmox-ssl {
    align-self: end;
    min-height: 44px;
}

.infra-card,
.infra-node {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .018);
    padding: 14px;
}

.infra-card header,
.infra-node-head,
.node-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.infra-card header strong,
.infra-node-head strong,
.node-card-head strong {
    display: block;
    color: #fff;
}

.infra-card header span,
.infra-node-head span,
.empty-inline {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.infra-node-list,
.infra-vps-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.infra-node {
    background: rgba(37, 99, 235, .035);
}

.infra-vps-list {
    gap: 6px;
    margin-top: 10px;
}

.infra-vps-list span {
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    color: var(--muted);
    padding: 6px 8px;
    font-size: 12px;
}

.empty-inline {
    border: 1px dashed var(--line-soft);
    border-radius: var(--radius);
    margin-top: 12px;
    padding: 12px;
}

.resource-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    align-items: center;
}

.resource-line i {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue) var(--bar), rgba(255, 255, 255, .08) var(--bar));
}

.inline-form,
.admin-grid-form {
    display: grid;
    gap: 14px;
    align-items: end;
}

.inline-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid-form .span-2 {
    grid-column: span 2;
}

.wide-table input,
.wide-table textarea,
.wide-table select {
    min-width: 150px;
}

.table-search {
    max-width: 260px;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 18px;
    align-items: start;
}

.checkout-form {
    margin-top: 18px;
}

.config-choice-panel {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(37, 99, 235, .28);
    border-radius: var(--radius);
    background: rgba(37, 99, 235, .055);
    padding: 14px;
}

.config-choice-panel h3 {
    margin: 4px 0 0;
    color: #fff;
}

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

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

.plan-specs div,
.summary-list div {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    padding: 12px;
}

.plan-specs span,
.summary-list span,
.checkout-total span {
    display: block;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-specs strong,
.summary-list strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    overflow-wrap: anywhere;
}

.checkout-summary {
    position: sticky;
    top: 96px;
}

.summary-list {
    display: grid;
    gap: 10px;
}

.checkout-total {
    margin-top: 16px;
    border: 1px solid rgba(37, 99, 235, .42);
    border-radius: var(--radius);
    background: rgba(37, 99, 235, .1);
    padding: 16px;
}

.checkout-total strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
}

.order-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.bar-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
}

.bar-list i {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue) var(--bar), rgba(255, 255, 255, .08) var(--bar));
}

.role-list article {
    display: grid;
    gap: 6px;
}

.role-list span {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .55s ease, transform .55s ease;
}

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

@media (max-width: 1040px) {
    .hero-content,
    .split-layout,
    .service-grid,
    .pricing-grid,
    .testimonials,
    .mockup-grid,
    .stat-grid,
    .dashboard-grid,
    .checkout-layout,
    .ticket-workspace,
    .server-spec-grid,
    .proxmox-grid,
    .infra-grid,
    .node-grid,
    .traffic-mini-grid,
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy,
    .section-head {
        max-width: none;
    }

    .hero-status {
        align-self: stretch;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .app-sidebar nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .config-choice-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 72px;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #101010;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 12px;
        border-radius: var(--radius);
    }

    .nav-cta {
        text-align: center;
    }

    .hero {
        min-height: auto;
    }

    .hero-content,
    .split-layout,
    .service-grid,
    .pricing-grid,
    .testimonials,
    .mockup-grid,
    .feature-grid,
    .stat-grid,
    .dashboard-grid,
    .checkout-layout,
    .ticket-workspace,
    .plan-specs,
    .config-choice-grid,
    .server-spec-grid,
    .proxmox-grid,
    .proxmox-form-grid,
    .infra-grid,
    .node-grid,
    .assign-form,
    .inline-form,
    .admin-grid-form,
    .payment-panel,
    .traffic-mini-grid,
    .footer-top,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding: 70px 0 52px;
    }

    .hero h1 {
        font-size: clamp(38px, 13vw, 54px);
    }

    .section {
        padding: 68px 0;
    }

    .section-head h2,
    .split-layout h2,
    .final-cta h2,
    .table-heading h2 {
        font-size: 32px;
    }

    .table-heading,
    .panel-head,
    .panel-actions,
    .app-heading,
    .ticket-thread header {
        align-items: stretch;
        flex-direction: column;
    }

    .ticket-workspace {
        min-height: auto;
    }

    .ticket-inbox {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .ticket-inbox-list {
        max-height: 260px;
    }

    .ticket-chat-header,
    .ticket-chat-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .whatsapp-chat {
        min-height: 360px;
    }

    .span-2,
    .admin-grid-form .span-2 {
        grid-column: auto;
    }

    .app-main {
        padding: 24px 14px;
    }

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

    .reply-form {
        grid-template-columns: 1fr;
    }

    .chat-bubble {
        width: 100%;
    }

    .checkout-summary {
        position: static;
    }

    .auth-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .flash-stack {
        margin-top: 14px;
    }
}

@media (max-width: 460px) {
    .metric-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-sidebar nav {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .button.compact {
        width: auto;
    }
}

body .app-shell button.button.compact,
body .app-shell button[type="submit"].button.compact,
body .app-shell td button.button.compact,
body .ticket-thread button.button.compact {
    background: #151923 !important;
    background-color: #151923 !important;
    color: #ffffff !important;
    border: 1px solid #292d35 !important;
    box-shadow: none !important;
}

body .app-shell button.button.compact:hover,
body .ticket-thread button.button.compact:hover {
    background: #1d2430 !important;
    background-color: #1d2430 !important;
}
