:root {
    --ink: #13202b;
    --muted: #62707d;
    --line: #dfe7ee;
    --soft: #f6f9fb;
    --cloud: #e8f6ff;
    --cyan: #00a9d6;
    --green: #19b36b;
    --coral: #ff7a59;
    --yellow: #f6c85f;
    --purple: #7765e3;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(22, 39, 58, .12);
    --deep-shadow: 0 28px 80px rgba(22, 39, 58, .18);
}

.hosting-panel {
    overflow: hidden;
}

.hosting-empty {
    border: 1px solid #d8e6ee;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.hosting-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    align-items: start;
}

.hosting-list,
.hosting-browser {
    border: 1px solid #d8e6ee;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.hosting-list article {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e3edf3;
    border-radius: 14px;
    margin-bottom: 10px;
}

.hosting-list article.active {
    border-color: #00a6c8;
    background: #edfaff;
}

.hosting-list a {
    color: inherit;
    text-decoration: none;
}

.hosting-list small {
    display: block;
    color: #607386;
    margin-top: 4px;
}

.hosting-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eefafd;
}

.hosting-path span {
    display: block;
    color: #607386;
    font-size: 13px;
}

.hosting-path strong {
    word-break: break-all;
}

.hosting-path-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hosting-path-actions form {
    margin: 0;
}

@media (max-width: 900px) {
    .hosting-layout {
        grid-template-columns: 1fr;
    }

    .hosting-path {
        align-items: flex-start;
        flex-direction: column;
    }

    .hosting-path-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 5vw;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.hero-metrics,
.panel-head,
.actions,
.admin-row {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--green));
}

.nav {
    gap: 22px;
    font-size: 15px;
}

.nav-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.nav-link:hover {
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.nav-pill,
.btn {
    border-radius: 8px;
    font-weight: 800;
}

.nav-pill {
    padding: 10px 14px;
    color: var(--white);
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
    gap: 42px;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 68px 5vw 42px;
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 169, 214, .12), transparent 32%),
        linear-gradient(180deg, #f8fcff 0%, #ffffff 66%);
}

.hero-redesign {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    background:
        radial-gradient(circle at 78% 24%, rgba(119, 101, 227, .14), transparent 26%),
        linear-gradient(135deg, rgba(0, 169, 214, .10), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 78%);
}

.hero-redesign::after {
    content: "";
    position: absolute;
    right: 3vw;
    bottom: -140px;
    width: 48vw;
    height: 48vw;
    background: radial-gradient(circle, rgba(25, 179, 107, .16), transparent 64%);
    pointer-events: none;
}

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

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(760px, 100%);
    margin-bottom: 30px;
}

.hero-highlights div {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
    min-height: 108px;
    padding: 16px;
    border: 1px solid rgba(0, 169, 214, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 16px 42px rgba(22, 39, 58, .08);
    backdrop-filter: blur(12px);
}

.hero-highlights strong {
    font-size: 16px;
}

.hero-highlights small {
    grid-column: 2;
    color: var(--muted);
    line-height: 1.45;
}

.highlight-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
}

.highlight-icon::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background: var(--white);
}

.cloud-icon::before {
    width: 28px;
    height: 18px;
    border-radius: 16px;
    box-shadow: -8px 4px 0 -2px var(--white), 8px 3px 0 -3px var(--white), 1px -7px 0 -3px var(--white);
}

.lock-icon {
    background: linear-gradient(135deg, var(--purple), #12b5cb);
}

.lock-icon::before {
    width: 18px;
    height: 16px;
    border-radius: 4px;
    box-shadow: 0 -9px 0 -5px var(--white);
}

.upgrade-icon {
    background: linear-gradient(135deg, var(--coral), var(--yellow));
}

.upgrade-icon::before {
    width: 18px;
    height: 18px;
    clip-path: polygon(50% 0, 100% 48%, 68% 48%, 68% 100%, 32% 100%, 32% 48%, 0 48%);
}

.hero h1,
.auth-card h1,
.panel h1,
.section h2 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(42px, 6vw, 78px);
}

.hero-text {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 15px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(22, 39, 58, .14);
}

.btn.primary {
    color: var(--white);
    background: var(--ink);
}

.btn.secondary {
    border-color: var(--line);
    background: var(--white);
}

.btn.facebook {
    color: var(--white);
    background: #1877f2;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .62;
    transform: none;
    box-shadow: none;
}

.btn.small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
}

.btn.full {
    width: 100%;
}

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

.hero-metrics span {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: var(--muted);
}

.hero-metrics strong {
    color: var(--ink);
}

.hero-visual img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.trust-strip,
.logo-band,
.console-head,
.server-head {
    display: flex;
    align-items: center;
}

.trust-strip {
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.trust-strip span,
.logo-band span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--muted);
    font-weight: 800;
}

.cloud-console {
    position: relative;
    z-index: 1;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--deep-shadow);
    backdrop-filter: blur(18px);
    transform: translateY(14px);
}

.console-head {
    gap: 8px;
    padding: 8px 8px 18px;
}

.console-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--coral);
}

.console-head span:nth-child(2) {
    background: var(--yellow);
}

.console-head span:nth-child(3) {
    background: var(--green);
}

.console-head strong {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

.console-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 14px;
}

.console-card,
.file-stack {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.console-card.large {
    grid-row: span 2;
}

.console-card.accent {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--green));
}

.console-card small,
.file-stack span {
    display: block;
    color: var(--muted);
}

.console-card.accent small {
    color: rgba(255, 255, 255, .78);
}

.console-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.console-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.promo-card {
    background:
        radial-gradient(circle at 92% 8%, rgba(246, 200, 95, .28), transparent 32%),
        linear-gradient(135deg, #ffffff, #eefaff);
}

.mini-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 18px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--white);
    background: var(--ink);
    font-weight: 900;
}

.file-stack {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
}

.file-stack div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--soft);
}

.section {
    padding: 80px 5vw;
}

.benefits-section {
    background:
        linear-gradient(180deg, #ffffff, #f6f9fb);
}

.logo-band {
    justify-content: center;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 22px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.wide-title {
    max-width: 920px;
}

.wide-title p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

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

.benefit-grid article {
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(22, 39, 58, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.benefit-grid h3 {
    margin: 18px 0 10px;
    font-size: 21px;
}

.benefit-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), #1476ff);
}

.icon.green {
    background: linear-gradient(135deg, var(--green), #35d3a6);
}

.icon.warm {
    background: linear-gradient(135deg, var(--coral), var(--yellow));
}

.icon.purple {
    background: linear-gradient(135deg, var(--purple), #12b5cb);
}

.icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section.compact {
    background: var(--soft);
}

.section-title {
    max-width: 740px;
    margin-bottom: 30px;
}

.section h2 {
    font-size: clamp(30px, 4vw, 50px);
}

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

.price-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.price-card:hover,
.benefit-grid article:hover,
.feature-grid div:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 169, 214, .42);
    box-shadow: 0 18px 42px rgba(22, 39, 58, .12);
}

.price-card.featured {
    border-color: rgba(0, 169, 214, .55);
    box-shadow: var(--shadow);
}

.tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #065f46;
    background: #dff7ec;
    font-size: 12px;
    font-weight: 900;
}

.price-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.price-card p {
    color: var(--muted);
    line-height: 1.6;
}

.price {
    margin: 0;
    color: var(--ink) !important;
    font-size: 36px;
    font-weight: 900;
}

.calculator {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
    margin: 20px 0;
}

.storage-builder {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px;
    align-items: center;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.storage-builder .calculator {
    margin: 0;
}

.storage-builder h3 {
    margin: 0 0 8px;
    font-size: 28px;
}

.storage-builder p {
    color: var(--muted);
}

.calculator button,
.actions button,
.admin-row button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-weight: 900;
}

.calculator output {
    grid-column: 1 / -1;
    font-weight: 900;
}

.calculator .btn.full {
    grid-column: 1 / -1;
    min-width: 220px;
}

.split {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 44px;
    align-items: start;
}

.split p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

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

.feature-grid div {
    position: relative;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-grid span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.mini-icon {
    width: 34px;
    height: 34px;
    margin: 0 0 14px !important;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), #1476ff);
}

.mini-icon.green {
    background: linear-gradient(135deg, var(--green), #35d3a6);
}

.mini-icon.warm {
    background: linear-gradient(135deg, var(--coral), var(--yellow));
}

.mini-icon.purple {
    background: linear-gradient(135deg, var(--purple), #12b5cb);
}

.media-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 42px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(246, 200, 95, .14), transparent 30%),
        linear-gradient(180deg, #ffffff, #f8fbfd);
}

.media-copy h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.06;
}

.media-copy p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.media-section img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: var(--deep-shadow);
}

.seo-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.seo-list span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-weight: 800;
}

.steps-section {
    background: var(--ink);
    color: var(--white);
}

.steps-section .eyebrow {
    color: #66d9f2;
}

.steps-section .section-title {
    max-width: 760px;
}

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

.steps-grid article {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.steps-grid span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font-weight: 900;
}

.steps-grid h3 {
    margin: 18px 0 8px;
    font-size: 24px;
}

.steps-grid p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    line-height: 1.6;
}

.contact-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(0, 169, 214, .12), rgba(25, 179, 107, .10)),
        var(--white);
}

.contact-band h2 {
    max-width: 820px;
    margin: 0;
}

.contact-band p:not(.eyebrow) {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.contact-modal-panel {
    width: min(760px, 100%);
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.contact-form textarea {
    resize: vertical;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 144px);
    padding: 40px 5vw;
    background: var(--soft);
}

.legal-hero {
    padding: 84px 5vw 38px;
    background:
        radial-gradient(circle at 86% 0%, rgba(0, 169, 214, .14), transparent 28%),
        linear-gradient(180deg, #f7fbff, #ffffff);
}

.legal-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
}

.legal-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.legal-page {
    padding: 34px 5vw 82px;
}

.legal-page article {
    max-width: 920px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.legal-page h2 {
    margin: 26px 0 10px;
    font-size: 24px;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.legal-page p {
    color: var(--muted);
    line-height: 1.75;
}

.auth-card {
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin-bottom: 24px;
    font-size: 34px;
}

label {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: var(--white);
}

input:disabled {
    color: var(--muted);
    background: var(--soft);
}

.form-note,
.muted-link {
    color: var(--muted);
    line-height: 1.55;
}

.muted-link {
    display: inline-block;
    margin-top: 16px;
}

.flash-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(19, 32, 43, .42);
    backdrop-filter: blur(8px);
}

.flash-modal.is-open {
    display: grid;
}

.flash-card {
    width: min(460px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--deep-shadow);
}

.flash-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--green));
    font-weight: 900;
}

.flash-modal.is-error .flash-icon {
    background: linear-gradient(135deg, var(--coral), #d62839);
}

.flash-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.flash-card p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.65;
}

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

.billing-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.billing-type label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.billing-type input {
    width: auto;
    min-height: auto;
    accent-color: var(--cyan);
}

.dashboard {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    min-height: calc(100vh - 144px);
    padding: 34px 5vw;
    background: var(--soft);
}

.side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.side strong {
    margin-bottom: 12px;
}

.side a {
    padding: 12px;
    border-radius: 8px;
    color: var(--muted);
}

.side a.active {
    color: var(--ink);
    background: var(--cloud);
    font-weight: 900;
}

.panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
    gap: 28px;
}

.panel-head {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.panel h1 {
    font-size: clamp(28px, 4vw, 44px);
}

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

.stats div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.stats span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.stats strong {
    font-size: 22px;
}

.client-stats div {
    position: relative;
    overflow: hidden;
    min-height: 104px;
    background: linear-gradient(135deg, #ffffff, #f4fbff);
}

.client-stats div::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(0, 168, 219, .12);
}

.client-stats div:nth-child(1) {
    border-color: #b9ecf8;
    background: linear-gradient(135deg, #eafaff, #ffffff);
}

.client-stats div:nth-child(2) {
    border-color: #c7efd9;
    background: linear-gradient(135deg, #effcf5, #ffffff);
}

.client-stats div:nth-child(3) {
    border-color: #d6d5ff;
    background: linear-gradient(135deg, #f1f0ff, #ffffff);
}

.client-stats div:nth-child(4) {
    border-color: #ffe2b7;
    background: linear-gradient(135deg, #fff7e8, #ffffff);
}

.client-stats small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 900;
}

.dashboard:not(.admin-dashboard) {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 168, 212, .16), transparent 28%),
        radial-gradient(circle at 78% 10%, rgba(124, 92, 255, .13), transparent 30%),
        var(--soft);
}

.dashboard:not(.admin-dashboard) .side {
    position: sticky;
    top: 0;
    min-height: calc(100vh - 68px);
    padding: 22px 12px;
    border: 0;
    border-radius: 0;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 168, 212, .42), transparent 24%),
        linear-gradient(180deg, #21144f 0%, #171036 58%, #101b34 100%);
    box-shadow: inset -1px 0 rgba(255, 255, 255, .08);
}

.dashboard:not(.admin-dashboard) .side strong {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 6px 20px;
    color: var(--white);
    line-height: 1.3;
}

.dashboard:not(.admin-dashboard) .side strong::before {
    content: "☁";
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 14px 30px rgba(0, 168, 212, .25);
}

.dashboard:not(.admin-dashboard) .side a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, .78);
    border-radius: 10px;
    font-weight: 850;
}

.dashboard:not(.admin-dashboard) .side a::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
}

.dashboard:not(.admin-dashboard) .side a.active {
    color: var(--white);
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.dashboard:not(.admin-dashboard) .side a.active::before {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 0 0 5px rgba(0, 168, 212, .12);
}

.dashboard:not(.admin-dashboard) .panel {
    margin: 30px clamp(18px, 4vw, 52px);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(15, 28, 43, .08);
}

.dashboard:not(.admin-dashboard) .panel h1 {
    letter-spacing: 0;
}

.dashboard:not(.admin-dashboard) .panel-head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.client-stats div span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: #43566f;
    font-weight: 850;
}

.client-stats div span::before {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--green));
}

.client-stats div:nth-child(1) span::before {
    content: "☁";
}

.client-stats div:nth-child(2) span::before {
    content: "↑";
}

.client-stats div:nth-child(3) span::before {
    content: "↔";
}

.client-stats div:nth-child(4) span::before {
    content: "€";
}

.client-stats div strong {
    position: relative;
    z-index: 1;
    font-size: clamp(24px, 3vw, 34px);
}

.admin-finance {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 16px;
    margin: 18px 0 24px;
}

.admin-finance section {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.admin-finance h2 {
    margin-top: 0;
    font-size: 20px;
}

.bar-row,
.latest-payments div {
    display: grid;
    grid-template-columns: 92px minmax(120px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.bar-row div {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef3;
}

.bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--green));
}

.latest-payments div {
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line);
}

.latest-payments small,
.muted {
    display: block;
    color: var(--muted);
}

.admin-node-overview {
    margin: 18px 0 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 169, 214, .06), rgba(25, 179, 107, .05));
}

.node-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.node-status-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.node-status-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-dashboard-actions,
.admin-search {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-search {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.admin-search label {
    flex: 1 1 360px;
}

.compact-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.verify-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.verify-pill.ok {
    color: #05603a;
    background: #d1fadf;
}

.verify-pill.warn {
    color: #9a3412;
    background: #ffedd5;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(19, 32, 43, .46);
}

.modal.is-open {
    display: grid;
}

.modal-open {
    overflow: hidden;
}

.modal-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: 88vh;
    overflow: auto;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.modal-panel h2 {
    margin-top: 0;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 24px;
    font-weight: 900;
}

.modal-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr);
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.modal-split form {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.usage-bar {
    height: 14px;
    margin: 24px 0;
    overflow: hidden;
    border-radius: 8px;
    background: #e8eef3;
}

.usage-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--green));
}

.client-usage {
    height: 18px;
    box-shadow: inset 0 0 0 1px rgba(19, 32, 43, .04);
}

.security-strip {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 18px 0 24px;
    padding: 18px 20px;
    border: 1px solid #bfe9dd;
    border-radius: 8px;
    background: linear-gradient(135deg, #effdf7, #eef8ff);
}

.security-strip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.security-strip p {
    margin: 0;
    color: var(--muted);
}

.security-strip > span {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 8px;
    background: #13202b;
    color: #fff;
    font-weight: 900;
}

.referral-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
    gap: 18px;
    align-items: center;
    margin: 24px 0;
    padding: 22px;
    border: 1px solid #b9ecf8;
    border-radius: 8px;
    background: linear-gradient(135deg, #eafaff, #f7fff9);
}

.referral-box h2 {
    margin: 0 0 8px;
}

.referral-box p {
    color: var(--muted);
}

.referral-code {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.referral-code span {
    font-size: 22px;
    font-weight: 900;
}

.referral-code small {
    overflow-wrap: anywhere;
    color: var(--muted);
}

.plan-form,
.upload-box {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 20px;
}

.upload-box {
    grid-template-columns: 220px minmax(240px, 1fr) minmax(240px, .8fr) auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(0, 168, 212, .12), rgba(27, 180, 122, .12)),
        var(--white);
    box-shadow: 0 18px 44px rgba(15, 28, 43, .06);
}

.dashboard:not(.admin-dashboard) .upload-box {
    align-items: end;
    padding: 18px;
    border-color: rgba(0, 168, 212, .22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .86), transparent 34%),
        linear-gradient(135deg, rgba(0, 168, 212, .16), rgba(27, 180, 122, .14), rgba(124, 92, 255, .08));
}

.file-picker {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 46px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.file-picker input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-picker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--green));
    font-weight: 900;
}

.file-picker small {
    overflow: hidden;
    color: var(--muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.folder-card {
    position: relative;
    min-height: 132px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 168, 212, .22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(240, 250, 255, .92)),
        linear-gradient(135deg, rgba(0, 168, 212, .18), rgba(27, 180, 122, .18));
}

.folder-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    opacity: .14;
    transform: rotate(18deg);
}

.folder-card.main {
    color: var(--white);
    background: linear-gradient(135deg, var(--ink), #0aa6c9 58%, var(--green));
}

.folder-card.trash {
    border-color: rgba(255, 98, 80, .28);
    background:
        radial-gradient(circle at 90% 80%, rgba(255, 98, 80, .2), transparent 28%),
        linear-gradient(135deg, #fff7f3, #ffffff);
}

.folder-card span,
.file-folder {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 168, 212, .1);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.folder-card.main span {
    background: rgba(255, 255, 255, .18);
    color: var(--white);
}

.folder-card strong {
    display: block;
    margin-top: 14px;
    font-size: 20px;
    overflow-wrap: anywhere;
}

.folder-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.folder-card.main small {
    color: rgba(255, 255, 255, .82);
}

.folder-card form {
    margin-top: 12px;
}

.folder-card a {
    color: inherit;
}

.folder-card.is-active {
    border-color: var(--cyan);
    box-shadow: 0 18px 44px rgba(0, 168, 212, .16);
}

.file-search,
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.file-search label {
    flex: 1 1 280px;
}

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

.credit-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, .9fr);
    gap: 16px;
    align-items: end;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid rgba(0, 168, 212, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 168, 212, .1), rgba(27, 180, 122, .1));
}

.credit-panel strong {
    display: block;
    margin: 6px 0;
    font-size: 34px;
}

.credit-panel small,
.credit-panel span {
    color: var(--muted);
    font-weight: 800;
}

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

.email-client-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.email-client-list label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.email-client-list input {
    width: auto;
    min-height: auto;
}

.email-client-list small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.file-card,
.server-card,
.admin-create {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.file-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(0, 168, 212, .18);
    box-shadow: 0 18px 44px rgba(15, 28, 43, .06);
}

.dashboard:not(.admin-dashboard) .file-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.dashboard:not(.admin-dashboard) .file-card {
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .99)),
        var(--white);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard:not(.admin-dashboard) .file-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 168, 212, .42);
    box-shadow: 0 24px 64px rgba(15, 28, 43, .12);
}

.file-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 900;
    color: var(--muted);
}

.file-select input {
    width: auto;
    min-height: auto;
}

.file-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--cyan), var(--green), #7c5cff);
}

.file-card h3 {
    margin: 14px 0 8px;
    overflow-wrap: anywhere;
    font-size: 17px;
}

.file-card p,
.file-date,
.server-card p,
.danger-zone p,
.empty-state {
    color: var(--muted);
    line-height: 1.55;
}

.file-date {
    margin-top: -2px;
    font-size: 14px;
}

.file-preview {
    display: grid;
    place-items: center;
    height: 130px;
    width: 100%;
    border: 0;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 25% 18%, rgba(255, 255, 255, .75), transparent 26%),
        linear-gradient(135deg, rgba(0, 168, 212, .16), rgba(27, 180, 122, .16));
}

.dashboard:not(.admin-dashboard) .file-preview {
    height: 118px;
    border-radius: 12px;
    color: var(--cyan);
    font-size: 25px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.file-preview:not(:disabled) {
    cursor: zoom-in;
}

.file-preview:disabled {
    cursor: default;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview span {
    font-size: 24px;
    font-weight: 900;
    color: var(--cyan);
}

.file-folder {
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0;
}

.upload-progress {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 169, 214, .22);
    border-radius: 8px;
    background: #f0fbff;
}

.upload-progress[hidden] {
    display: none;
}

.upload-progress div {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcebf2;
}

.upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--green), var(--purple));
    transition: width .18s ease;
}

.upload-progress:not([hidden]) span {
    animation: uploadPulse 1.4s ease-in-out infinite;
}

@keyframes uploadPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.18); }
    100% { filter: brightness(1); }
}

.upload-progress small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 800;
}

.image-modal-panel {
    width: min(980px, 100%);
}

.image-preview-large {
    display: grid;
    place-items: center;
    max-height: 62vh;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #eefaff, #f4fff9);
}

.image-preview-large img {
    display: block;
    max-width: 100%;
    max-height: 62vh;
    object-fit: contain;
}

.preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.link-button,
.actions button,
.link-danger {
    border: 0;
    background: transparent;
    color: var(--cyan);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.link-danger {
    color: #c4322b;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.dashboard:not(.admin-dashboard) .file-card .actions {
    gap: 8px;
}

.dashboard:not(.admin-dashboard) .file-card .actions a,
.dashboard:not(.admin-dashboard) .file-card .actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(0, 168, 212, .18);
    border-radius: 999px;
    color: #075a76;
    background: linear-gradient(135deg, #eefaff, #f5fffb);
    font-size: 13px;
    font-weight: 900;
}

.dashboard:not(.admin-dashboard) .file-card .actions form:last-child button,
.dashboard:not(.admin-dashboard) .folder-card .link-danger {
    color: #b42318;
    border-color: rgba(180, 35, 24, .18);
    background: #fff5f2;
}

.share-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        linear-gradient(135deg, rgba(0, 168, 212, .14), transparent 36%),
        linear-gradient(315deg, rgba(27, 180, 122, .12), transparent 42%),
        var(--soft);
}

.share-card {
    width: min(560px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(15, 28, 43, .12);
}

.share-card h1 {
    margin: 8px 0 14px;
    font-size: clamp(32px, 6vw, 52px);
}

.share-card form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.share-offer {
    margin-top: 22px;
    padding: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 168, 212, .1), rgba(27, 180, 122, .1));
}

.danger-zone {
    padding: 20px;
    border: 1px solid #ffc9be;
    border-radius: 8px;
    background: #fff5f2;
}

.account-alert {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #f6c76b;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8e8, #eefaff);
}

.account-alert strong {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
}

.account-alert p {
    max-width: 760px;
    color: var(--muted);
}

.btn.danger {
    color: var(--white);
    background: #b42318;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: var(--muted);
    font-size: 13px;
}

.actions {
    gap: 12px;
}

.actions a {
    font-weight: 900;
    color: var(--cyan);
}

.actions form {
    margin: 0;
}

.inline-admin-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.inline-admin-form input {
    min-height: 40px;
}

.pill {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #05603a;
    background: #d1fadf;
    font-size: 12px;
    font-weight: 900;
}

.admin-row {
    gap: 8px;
}

.admin-dashboard .panel {
    min-width: 0;
}

.server-head {
    justify-content: space-between;
    gap: 12px;
}

.server-head h3 {
    margin: 0;
}

.server-head span,
.status-pill {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--cloud);
    font-weight: 900;
}

.status-pill.online {
    color: #05603a;
    background: #dff8ea;
}

.status-pill.tcp_ok {
    color: #075985;
    background: #e0f2fe;
}

.status-pill.offline,
.status-pill.auth_failed,
.status-pill.ssh_error {
    color: #b42318;
    background: #fff0ec;
}

.server-endpoint {
    font-weight: 900;
    color: var(--ink) !important;
}

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

.server-metrics div {
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.server-metrics span,
.metric-label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.server-metrics strong,
.metric-label strong {
    overflow-wrap: anywhere;
}

.metric-row {
    margin: 14px 0;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.metric-row .usage-bar {
    margin: 0 0 6px;
}

.server-check {
    padding: 12px;
    border-radius: 8px;
    background: #f6f9fc;
}

.mount-picker {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #f7fbff, #eefaf4);
}

.mount-picker h3 {
    margin: 0 0 10px;
}

.mount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.mount-option {
    display: grid;
    gap: 5px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #cfe3ed;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.mount-option:hover {
    border-color: var(--cyan);
    box-shadow: 0 12px 28px rgba(0, 169, 214, .14);
}

.mount-option span,
.mount-option small {
    color: var(--muted);
}

.compact-server {
    display: grid;
    gap: 12px;
    min-height: 250px;
}

.compact-server .server-head h3 {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-server .metric-row {
    margin: 0;
}

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

.mini-server-stats span {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.server-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

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

.server-form button,
.text-danger {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-weight: 900;
}

.text-danger {
    width: 100%;
    margin-top: 10px;
    color: #b42318;
    border-color: #ffc9be;
}

.admin-create {
    margin-top: 24px;
}

.admin-create h2 {
    margin-top: 0;
}

.admin-plans {
    margin-top: 22px;
}

.plan-node-picker {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.node-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.node-option input {
    width: auto;
    min-height: auto;
}

.node-option small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.node-option.ok {
    border-color: #b8ebcf;
}

.node-option.warn {
    border-color: #ffd2c7;
    background: #fff8f6;
}

.checkline {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.checkline input {
    width: auto;
    min-height: auto;
}

.admin-row input {
    width: 92px;
}

.admin-row select {
    width: 150px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 26px 5vw;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer div {
    display: grid;
    gap: 6px;
}

.footer strong {
    color: var(--ink);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    font-weight: 800;
}

@media (max-width: 900px) {
    .topbar {
        display: grid !important;
        grid-template-columns: 1fr auto;
        min-height: 66px;
        padding: 8px 5vw;
        align-items: center;
    }

    .footer,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
    }

    .brand span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        display: grid !important;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 2px);
        gap: 5px;
    }

    .menu-toggle span:nth-child(1) {
        grid-row: 1;
    }

    .menu-toggle span:nth-child(2) {
        grid-row: 2;
    }

    .menu-toggle span:nth-child(3) {
        grid-row: 3;
    }

    .nav {
        display: none !important;
        grid-column: 1 / -1;
        width: 100%;
        gap: 8px;
        padding-top: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav.is-open {
        display: flex !important;
    }

    .nav a,
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 0 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        font-weight: 800;
    }

    .nav .nav-pill {
        justify-content: center;
        color: var(--white);
        background: var(--ink);
    }

    .flash-actions {
        grid-template-columns: 1fr;
    }

    .hero,
    .split,
    .dashboard,
    .storage-builder,
    .two-cols,
    .media-section {
        grid-template-columns: 1fr;
    }

    .dashboard:not(.admin-dashboard) {
        display: block;
        padding: 0;
    }

    .dashboard:not(.admin-dashboard) .side {
        position: static;
        min-height: auto;
        margin: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .dashboard:not(.admin-dashboard) .side strong {
        margin-bottom: 10px;
    }

    .dashboard:not(.admin-dashboard) .side a {
        min-height: 44px;
    }

    .dashboard:not(.admin-dashboard) .panel {
        margin: 12px;
        padding: 16px;
        border-radius: 16px;
    }

    .dashboard:not(.admin-dashboard) .panel h1 {
        font-size: 34px;
    }

    .dashboard:not(.admin-dashboard) .upload-box,
    .dashboard:not(.admin-dashboard) .file-search,
    .dashboard:not(.admin-dashboard) .bulk-actions {
        border-radius: 14px;
    }

    .dashboard:not(.admin-dashboard) .file-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 38px;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
        margin-bottom: 24px;
    }

    .hero-highlights div {
        min-height: auto;
        padding: 14px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-text {
        font-size: 18px;
    }

    .hero-actions .btn {
        flex: 1 1 170px;
    }

    .contact-band {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-band .btn {
        width: 100%;
    }

    .trust-strip span {
        flex: 1 1 160px;
        text-align: center;
    }

    .pricing-grid,
    .stats,
    .admin-finance,
    .security-strip,
    .referral-box,
    .credit-panel,
    .credit-panel form,
    .email-client-list,
    .folder-grid,
    .server-metrics,
    .feature-grid,
    .benefit-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .plan-form,
    .upload-box,
    .file-grid,
    .server-form,
    .form-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 10px;
    }

    .modal-panel {
        padding: 20px;
    }

    .modal-split {
        grid-template-columns: 1fr;
    }

    .bar-row {
        grid-template-columns: 80px minmax(90px, 1fr);
    }

    .bar-row strong {
        grid-column: 2;
    }

    .cloud-console {
        min-width: 0;
    }

    .console-grid {
        grid-template-columns: 1fr;
    }

    .file-stack {
        grid-column: auto;
    }

    .legal-page article {
        padding: 22px;
    }
}
