:root {
    --ink: #131820;
    --muted: #667085;
    --brand: #ffbd16;
    --brand-deep: #d58e00;
    --navy: #17202e;
    --paper: #fff;
    --soft: #f6f8fb;
    --line: #e3e7ee;
    --danger: #ad2525;
    --success: #216e45;
    --shadow: 0 18px 50px rgba(20,28,40,.09)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: linear-gradient(180deg,#fff 0,#fbfcfe 100%);
    color: var(--ink);
    font-family: Inter,Vazirmatn,Tahoma,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    line-height: 1.65
}

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

.container, nav {
    width: min(1180px,calc(100% - 2rem));
    margin: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(227,231,238,.8);
    backdrop-filter: blur(14px)
}

nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 850;
    font-size: 1.15rem;
    white-space: nowrap
}

    .brand img {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        box-shadow: 0 5px 18px #ffbd1640
    }

.nav-links, .nav-links form, .page-actions {
    display: flex;
    align-items: center;
    gap: 1rem
}

    .nav-links > a:not(.btn-primary) {
        font-weight: 650;
        color: #3d4654
    }

    .nav-links > a:hover {
        color: var(--brand-deep)
    }

.nav-button, .language-switch {
    background: none;
    border: 0;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    padding: .45rem
}

.language-switch {
    border: 1px solid var(--line);
    border-radius: 999px;
    min-width: 64px
}

.menu-toggle {
    display: none
}

.btn-primary, .btn-secondary, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: .72rem 1.05rem;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: .18s ease
}

.btn-primary {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #111
}

    .btn-primary:hover {
        background: #ffca43;
        transform: translateY(-1px)
    }

.btn-secondary {
    background: #fff;
    border: 1px solid #cbd1da
}

    .btn-secondary:hover {
        border-color: var(--brand-deep);
        box-shadow: 0 5px 18px rgba(20,28,40,.07)
    }

.container {
    min-height: calc(100vh - 155px);
    padding-block: 3.5rem
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    min-height: 500px;
    gap: 4rem;
    overflow: hidden
}

    .hero:before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: radial-gradient(circle,#ffbd1630,transparent 68%);
        inset-inline-end: -100px;
        z-index: -1
    }

    .hero h1 {
        font-size: clamp(2.8rem,6.5vw,5.5rem);
        line-height: 1.02;
        letter-spacing: -.05em;
        margin: .45rem 0 1.3rem;
        max-width: 820px
    }

.hero-visual {
    display: grid;
    place-items: center;
    gap: 1rem;
    color: var(--muted);
    font-weight: 700
}

.hero img {
    width: min(100%,350px);
    border-radius: 50%;
    box-shadow: 0 30px 80px #ffbd1645
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 650px;
    margin-bottom: 2rem
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 850;
    font-size: .76rem;
    color: var(--brand-deep);
    margin: 0
}

.section-head, .page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.2rem
}

    .section-head h2, .page-head h1 {
        font-size: clamp(2rem,5vw,2.7rem);
        line-height: 1.15;
        margin: .25rem 0
    }

    .section-head > p, .page-head p {
        max-width: 520px;
        color: var(--muted)
    }

.plans, .server-grid, .action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 1.15rem
}

.plan, .server-card, .panel, .auth-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.45rem;
    background: rgba(255,255,255,.96);
    box-shadow: 0 3px 14px rgba(20,28,40,.025)
}

.plan, .server-card {
    transition: .2s ease
}

    .plan:hover, .server-card:hover {
        border-color: var(--brand);
        box-shadow: var(--shadow);
        transform: translateY(-3px)
    }

.plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between
}

    .plan-top span {
        font-size: .75rem;
        background: #fff6d9;
        color: #8a5c00;
        padding: .25rem .55rem;
        border-radius: 99px
    }

.plan h3, .server-card h2 {
    margin: .1rem 0;
    font-size: 1.35rem
}

.price {
    font-size: 1.9rem;
    font-weight: 850;
    margin: 1rem 0;
    white-space: nowrap
}

    .price small {
        font-size: .76rem;
        color: var(--muted);
        font-weight: 600
    }

.plan ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem
}

.plan li {
    padding: .42rem 0;
    border-bottom: 1px solid var(--soft)
}

.plan .btn-secondary {
    width: 100%
}

.status {
    float: inline-end;
    background: #e6f4eb;
    color: var(--success);
    border-radius: 999px;
    padding: .2rem .6rem;
    font-size: .75rem;
    font-weight: 800
}

.server-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: .9rem
}

.server-card dt {
    color: var(--muted)
}

.server-card dd {
    text-align: end;
    margin: 0
}

.auth-card {
    max-width: 470px;
    margin: 3rem auto;
    box-shadow: var(--shadow);
    padding: 2rem
}

    .auth-card h1 {
        font-size: 2.4rem;
        margin: .2rem 0
    }

    .auth-card > p:not(.eyebrow) {
        color: var(--muted)
    }

    .auth-card form, .panel form {
        display: grid;
        gap: .5rem
    }

label {
    font-weight: 700;
    margin-top: .65rem
}

input, select, textarea {
    width: 100%;
    border: 1px solid #c7cdd6;
    border-radius: 9px;
    padding: .72rem;
    font: inherit;
    background: white;
    color: var(--ink)
}

    input:focus, select:focus {
        outline: 3px solid #ffbd1635;
        border-color: var(--brand-deep)
    }

.check {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 400
}

    .check input {
        width: auto
    }

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0
}

.alert-danger {
    background: #fbe9e9;
    color: #7d1515
}

.alert-success {
    background: #e5f5eb;
    color: #175d39
}

.validation-summary:empty {
    display: none
}

.text-danger, [data-valmsg-for] {
    color: var(--danger)
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(330px,1fr));
    gap: 1rem;
    margin-bottom: 2rem
}

summary {
    font-weight: 800;
    text-transform: capitalize;
    cursor: pointer
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: .76rem;
    background: var(--soft);
    padding: 1rem;
    border-radius: 8px;
    max-height: 420px;
    overflow: auto;
    text-align: left
}

.action-grid .panel {
    display: grid;
    gap: .65rem
}

.action-grid h3 {
    margin: 0
}

.link-danger {
    background: #fff;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 9px;
    padding: .65rem;
    font-weight: 700
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem
}

    .form-grid button, .form-grid > div {
        grid-column: 1/-1
    }

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

th, td {
    text-align: start;
    padding: .8rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

.table-wrap {
    max-height: min(65vh,720px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable
}

.table-wrap table {
    margin-bottom: 0
}

.table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
    box-shadow: inset 0 -1px 0 var(--line)
}

.inline {
    display: flex;
    gap: .4rem;
    align-items: center;
    margin: .2rem
}

    .inline input {
        width: 130px
    }

.empty {
    text-align: center;
    padding: 5rem;
    background: var(--soft);
    border-radius: 16px
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(280px,.75fr) minmax(480px,1.4fr);
    gap: 1.2rem;
    align-items: start
}

.settings-card {
    display: grid;
    gap: .45rem
}

    .settings-card h2, .price-table h2 {
        margin-top: 0
    }

.formula {
    background: var(--soft);
    color: var(--muted);
    border-radius: 9px;
    padding: .8rem;
    font-size: .88rem
}

.price-row {
    display: grid !important;
    grid-template-columns: minmax(105px,1fr) minmax(110px,.9fr) minmax(150px,1.1fr) auto;
    align-items: center;
    gap: .6rem !important
}

    .price-row output {
        color: var(--muted);
        white-space: nowrap
    }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fff
}

    footer .container {
        min-height: 0;
        padding-block: 1.5rem;
        text-align: center
    }

[dir=rtl] .hero h1 {
    letter-spacing: -.025em
}

[dir=rtl] .eyebrow {
    letter-spacing: 0
}

[dir=rtl] input[inputmode=numeric], [dir=rtl] input[inputmode=decimal] {
    direction: ltr;
    text-align: right
}

@media(max-width:850px) {
    .pricing-layout {
        grid-template-columns: 1fr
    }

    .hero {
        gap: 2rem
    }

    .nav-links {
        gap: .55rem
    }

        .nav-links > a:not(.btn-primary) {
            display: none
        }
}

@media(max-width:640px) {
    .container, nav {
        width: min(100% - 1.2rem,1180px)
    }

    .container {
        padding-block: 2rem
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 3rem
    }

    .hero-visual {
        grid-row: 1
    }

    .hero img {
        width: 190px
    }

    .hero h1 {
        font-size: 2.85rem
    }

    .section-head, .page-head {
        align-items: flex-start;
        flex-direction: column
    }

    .page-actions {
        flex-wrap: wrap
    }

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

    .details-grid {
        grid-template-columns: 1fr
    }

    .nav-links {
        gap: .3rem
    }

    .brand span {
        display: none
    }

    .language-switch {
        min-width: 55px
    }

    .price-row {
        grid-template-columns: 1fr
    }

        .price-row output {
            padding: .25rem
        }

    .auth-card {
        margin: 1rem auto;
        padding: 1.35rem
    }

    .plans, .server-grid, .action-grid {
        grid-template-columns: 1fr
    }
}

@font-face {
    font-family: Yekan;
    src: url('/fonts/Yekan.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap
}

body {
    font-family: Inter,"Segoe UI",Arial,ui-sans-serif,system-ui,sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased
}

button, input, select, textarea {
    font-family: inherit
}

[lang=fa] body {
    font-family: Yekan,Tahoma,"Segoe UI",sans-serif;
    font-size: 17px;
    line-height: 1.8
}

[lang=fa] h1, [lang=fa] h2, [lang=fa] h3 {
    font-weight: 700;
    line-height: 1.35
}

h1, h2, h3 {
    font-weight: 800
}

.brand {
    font-size: 1.08rem
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.18fr) minmax(280px,.82fr);
    align-items: center;
    gap: clamp(2rem,7vw,6rem);
    min-height: 540px;
    padding: 3rem 0 5rem
}

    .home-hero:before {
        content: "";
        position: absolute;
        inset: 4% -20vw 8% 58%;
        z-index: -1;
        border-radius: 48% 0 0 48%;
        background: linear-gradient(145deg,#fff8df,#ffbd1622)
    }

[dir=rtl] .home-hero:before {
    inset: 4% 58% 8% -20vw;
    border-radius: 0 48% 48% 0
}

.hero-copy h1 {
    font-size: clamp(3rem,6.4vw,5.5rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: .5rem 0 1.35rem;
    max-width: 800px
}

.hero-copy .lead {
    font-size: 1.22rem;
    line-height: 1.7
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.8rem
}

.purchase-button {
    gap: .55rem
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 650
}

    .trust-row i {
        color: var(--brand-deep)
    }

.hero-showcase {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px
}

.logo-orbit {
    display: grid;
    place-items: center;
    width: min(330px,80vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle,#fff 55%,#fff8dc 56%,#ffbd1645 69%,transparent 70%);
    filter: drop-shadow(0 26px 40px rgba(19,24,32,.12))
}

    .logo-orbit img {
        width: 72%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 50%
    }

.availability {
    position: absolute;
    inset-inline-start: 0;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .85rem 1rem;
    box-shadow: var(--shadow)
}

.availability-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2ab56f;
    box-shadow: 0 0 0 5px #2ab56f20
}

.availability div {
    display: grid
}

.availability small {
    color: var(--muted)
}

.catalogue {
    padding: 2rem 0 1rem
}

.plan {
    position: relative;
    overflow: hidden;
    padding: 1.65rem
}

.plan-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg,var(--brand-deep),var(--brand))
}

.plan-caption {
    color: var(--muted);
    font-size: .9rem;
    margin-top: -.45rem
}

.plan ul {
    margin-top: 1.2rem
}

.plan li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

    .plan li span {
        color: var(--muted)
    }

        .plan li span i {
            width: 16px;
            color: var(--brand-deep)
        }

    .plan li strong {
        text-align: end
    }

.plan .purchase-button {
    width: 100%
}

.price {
    font-size: clamp(2rem,4vw,2.45rem);
    line-height: 1.2
}

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

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem
}

footer span {
    color: var(--muted)
}

@media(max-width:850px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 2rem
    }

    .hero-showcase {
        grid-row: 1;
        min-height: 300px
    }

    .logo-orbit {
        width: 250px
    }

    .availability {
        inset-inline-start: calc(50% - 160px)
    }

    .hero-copy {
        text-align: center
    }

        .hero-copy .lead {
            margin-inline: auto
        }

    .hero-actions, .trust-row {
        justify-content: center
    }

    .home-hero:before, [dir=rtl] .home-hero:before {
        inset: 0 -30vw 52%;
        border-radius: 0
    }

    .brand {
        font-size: 1rem
    }
}

@media(max-width:640px) {
    .hero-copy h1 {
        font-size: 2.8rem
    }

    .home-hero {
        padding-bottom: 3rem
    }

    .hero-showcase {
        min-height: 260px
    }

    .logo-orbit {
        width: 210px
    }

    .availability {
        position: relative;
        inset: auto;
        margin-top: -1.2rem
    }

    .trust-row {
        gap: .6rem 1rem
    }

    .plan {
        padding: 1.4rem
    }

    footer .container {
        flex-direction: column;
        align-items: center
    }

    .page-actions form {
        width: 100%
    }

        .page-actions form button {
            width: 100%
        }
}

.language-form {
    display: block !important
}

.language-select {
    width: auto;
    min-width: 142px;
    padding: .52rem 2.2rem .52rem .75rem;
    border-radius: 999px;
    background-color: #fff;
    font-weight: 700;
    cursor: pointer
}

[dir=rtl] .language-select {
    padding: .52rem .75rem .52rem 2.2rem
}

.admin-body {
    background: #f5f7fb
}

.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 1.5rem;
    align-items: start;
    padding-block: 1.5rem
}

.admin-sidebar {
    position: sticky;
    top: 92px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--navy);
    color: #fff;
    padding: .8rem;
    box-shadow: var(--shadow)
}

.sidebar-heading {
    display: grid;
    gap: .1rem;
    padding: .8rem .75rem 1rem;
    border-bottom: 1px solid #ffffff20;
    margin-bottom: .55rem
}

    .sidebar-heading span {
        font-size: 1.05rem;
        font-weight: 800
    }

    .sidebar-heading small {
        color: #ffffffa8
    }

.sidebar-nav {
    display: grid;
    gap: .25rem
}

    .sidebar-nav a, .sidebar-nav button {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: .7rem;
        width: 100%;
        border: 0;
        border-radius: 9px;
        padding: .68rem .72rem;
        background: transparent;
        color: #dce3ef;
        font-size: .9rem;
        font-weight: 650;
        text-align: start
    }

        .sidebar-nav a:hover, .sidebar-nav button:hover, .sidebar-nav a.active {
            background: #ffffff13;
            color: #fff
        }

        .sidebar-nav a.active {
            box-shadow: inset 3px 0 var(--brand)
        }

[dir=rtl] .sidebar-nav a.active {
    box-shadow: inset -3px 0 var(--brand)
}

.sidebar-nav a > span, .sidebar-nav button > span {
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #ffffff12;
    color: var(--brand);
    font-size: 1rem
}

.sidebar-nav form {
    margin: 0
}

.admin-content {
    min-width: 0;
    min-height: calc(100vh - 180px);
    padding: .8rem .3rem 2rem
}

    .admin-content .page-head {
        margin-bottom: 1.5rem
    }

    .admin-content .panel, .admin-content .server-card {
        box-shadow: 0 5px 18px rgba(20,28,40,.04)
    }

.deploy-heading {
    padding: 1rem 0
}

.deploy-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) 190px;
    gap: 1.5rem;
    align-items: start
}

    .deploy-form > .validation-summary {
        grid-column: 1/-1
    }

.deploy-main {
    display: grid;
    gap: 1.15rem
}

.deploy-section {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 1.6rem;
    box-shadow: 0 5px 20px rgba(20,28,40,.035);
    scroll-margin-top: 100px
}

.section-number {
    position: absolute;
    inset-inline-start: -12px;
    top: 22px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    border: 3px solid #f5f7fb
}

.deploy-section-head {
    margin-bottom: 1.2rem
}

    .deploy-section-head h2 {
        margin: 0;
        font-size: 1.35rem
    }

    .deploy-section-head p {
        margin: .15rem 0 0;
        color: var(--muted);
        font-size: .9rem
    }

.option-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .7rem
}

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

.choice-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 65px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .75rem;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: .16s
}

    .choice-card:hover {
        border-color: #9eabc0;
        box-shadow: 0 4px 14px #17202e0c
    }

    .choice-card input {
        position: absolute;
        opacity: 0;
        pointer-events: none
    }

    .choice-card:has(input:checked) {
        border-color: #4b70ed;
        box-shadow: 0 0 0 2px #4b70ed20;
        background: #f9fbff
    }

.choice-check {
    display: none;
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 0 9px 0 9px;
    background: #4b70ed;
    color: #fff;
    text-align: center;
    line-height: 24px
}

.choice-card:has(input:checked) .choice-check {
    display: block
}

.choice-card .flag {
    font-size: 1.6rem
}

.choice-card strong {
    font-size: .92rem
}

.choice-card small {
    display: block;
    color: var(--muted);
    margin-inline-start: auto
}

.plan-choice, .software-choice {
    align-items: flex-start;
    flex-direction: column;
    min-height: 115px
}

    .plan-choice strong {
        font-size: 1rem
    }

.choice-price {
    margin-top: auto;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy)
}

.software-choice {
    min-height: 95px
}

.software-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eef2ff;
    color: #4b70ed;
    font-size: 1.15rem
}

.option-subhead {
    font-size: 1rem;
    margin: 1.2rem 0 .65rem
}

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

    .deploy-fields label {
        margin: 0
    }

        .deploy-fields label small {
            display: block;
            color: var(--muted);
            font-weight: 400;
            min-height: 1.5rem
        }

.billing-options {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

    .billing-options .choice-card {
        justify-content: center
    }

.deploy-progress {
    position: sticky;
    top: 92px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    padding: .8rem;
    box-shadow: 0 5px 18px rgba(20,28,40,.04)
}

    .deploy-progress > strong {
        padding: .5rem .55rem .8rem
    }

    .deploy-progress a {
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .55rem;
        border-radius: 8px;
        color: var(--muted);
        font-size: .82rem
    }

        .deploy-progress a:hover {
            background: var(--soft);
            color: var(--ink)
        }

        .deploy-progress a span {
            display: grid;
            place-items: center;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--soft);
            color: var(--navy);
            font-weight: 800
        }

.deploy-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 15px;
    background: var(--navy);
    color: #fff;
    padding: 1.4rem 1.6rem
}

    .deploy-submit h2 {
        margin: 0;
        font-size: 1.25rem
    }

    .deploy-submit p {
        margin: .2rem 0 0;
        color: #ffffffaa
    }

    .deploy-submit button {
        min-width: 170px
    }

@media(max-width:1000px) {
    .admin-shell {
        grid-template-columns: 1fr
    }

    .admin-sidebar {
        position: static;
        overflow: auto
    }

    .sidebar-heading {
        display: none
    }

    .sidebar-nav {
        display: flex;
        min-width: max-content
    }

        .sidebar-nav a, .sidebar-nav button {
            width: auto
        }

    .deploy-form {
        grid-template-columns: 1fr
    }

    .deploy-progress {
        position: static;
        grid-row: 1;
        display: flex;
        overflow: auto
    }

        .deploy-progress > strong {
            display: none
        }

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

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

@media(max-width:640px) {
    .admin-shell {
        width: 100%;
        padding: .6rem
    }

    .admin-content {
        padding: .5rem 0
    }

    .admin-sidebar {
        border-radius: 12px
    }

    .deploy-section {
        padding: 1.2rem
    }

    .section-number {
        inset-inline-start: 8px;
        top: -14px
    }

    .option-grid, .region-options, .deploy-fields {
        grid-template-columns: 1fr
    }

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

    .deploy-submit {
        align-items: stretch;
        flex-direction: column
    }

        .deploy-submit button {
            width: 100%
        }

    .language-select {
        min-width: 126px
    }

    .nav-links {
        flex-wrap: nowrap
    }

    .site-header nav {
        gap: .5rem
    }
}
/* Compact management hierarchy and strict directional sidebar placement. */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(165px,1fr));
    gap: .85rem;
    margin-bottom: 1.25rem
}

.stat-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 1rem;
    box-shadow: 0 3px 14px rgba(20,28,40,.035)
}

    .stat-card > span {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: #fff5d6;
        color: #8a5c00;
        font-weight: 800
    }

    .stat-card small {
        display: block;
        color: var(--muted);
        font-size: .78rem
    }

    .stat-card strong {
        font-size: 1.35rem;
        line-height: 1.25
    }

    .stat-card.online > span {
        background: #e6f4eb;
        color: var(--success)
    }

    .stat-card.offline > span {
        background: #fbeaea;
        color: var(--danger)
    }

    .stat-card.credit {
        grid-column: span 2
    }

.dashboard-tickets h2, .section-title h2 {
    font-size: 1.15rem;
    margin: 0
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .7rem
}

.server-table {
    padding: .6rem
}

    .server-table table {
        font-size: .82rem
    }

    .server-table td, .server-table th {
        padding: .65rem
    }

        .server-table td small {
            display: block;
            color: var(--muted)
        }

.compact {
    padding: .42rem .7rem;
    font-size: .8rem
}

.admin-content .page-head h1 {
    font-size: clamp(1.55rem,3vw,2rem)
}

.admin-content h2 {
    font-size: 1.2rem
}

.admin-content input, .admin-content select, .admin-content textarea {
    padding: .58rem
}

.admin-content .btn-primary, .admin-content .btn-secondary, .admin-content button {
    padding: .58rem .82rem
}

.hero h1 {
    font-size: clamp(2.35rem,5vw,4rem)
}

.section-head h2, .page-head h1 {
    font-size: clamp(1.7rem,4vw,2.3rem)
}

[dir="rtl"] .admin-shell {
    grid-template-columns: minmax(0,1fr) 220px
}

[dir="rtl"] .admin-sidebar {
    grid-column: 2;
    grid-row: 1
}

[dir="rtl"] .admin-content {
    grid-column: 1;
    grid-row: 1
}

[dir="ltr"] .admin-sidebar {
    grid-column: 1
}

[dir="ltr"] .admin-content {
    grid-column: 2;
    grid-row: 1
}

@media(max-width:1000px) {
    [dir] .admin-shell {
        grid-template-columns: 1fr
    }

    [dir] .admin-sidebar, [dir] .admin-content {
        grid-column: 1;
        grid-row: auto
    }

    .stat-card.credit {
        grid-column: span 1
    }
}

.panel-body {
    background: #f5f7fb
}

.admin-content > .page-head {
    display: none
}

.panel-breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    margin: 0 0 .9rem;
    padding: 0 .15rem;
    color: var(--muted);
    font-size: .8rem
}

    .panel-breadcrumb a:hover {
        color: var(--brand-deep)
    }

    .panel-breadcrumb strong {
        color: var(--ink);
        font-weight: 700
    }

.panel-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .8rem
}

    .panel-toolbar form {
        margin: 0
    }

.api-settings {
    max-width: 650px
}

    .api-settings > h2 {
        margin: 0;
        font-size: 1.15rem
    }

    .api-settings > p {
        color: var(--muted);
        font-size: .88rem
    }

    .api-settings form {
        display: grid;
        gap: .4rem
    }

.configured-badge {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: #e6f4eb;
    color: var(--success);
    padding: .3rem .65rem;
    font-size: .78rem;
    font-weight: 700
}

    .configured-badge.fallback {
        background: #fff5d6;
        color: #8a5c00
    }

.language-menu {
    position: relative
}

    .language-menu summary {
        display: flex;
        align-items: center;
        gap: .45rem;
        min-width: 122px;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: .45rem .7rem;
        background: #fff;
        list-style: none;
        cursor: pointer;
        font-size: .88rem
    }

        .language-menu summary::-webkit-details-marker {
            display: none
        }

        .language-menu summary:after {
            content: "⌄";
            margin-inline-start: auto;
            color: var(--muted)
        }

    .language-menu img {
        display: block;
        width: 24px;
        height: 16px;
        border-radius: 2px;
        box-shadow: 0 0 0 1px #0002;
        object-fit: cover
    }

.language-options {
    position: absolute;
    z-index: 40;
    inset-block-start: calc(100% + .4rem);
    inset-inline-end: 0;
    width: 165px;
    padding: .35rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow)
}

    .language-options form {
        display: block !important
    }

    .language-options button {
        display: flex;
        justify-content: flex-start;
        gap: .55rem;
        width: 100%;
        padding: .5rem .55rem;
        border: 0;
        background: #fff;
        font-size: .86rem
    }

        .language-options button:hover, .language-options button.active {
            background: var(--soft)
        }

        .language-options button b {
            margin-inline-start: auto;
            color: var(--success)
        }

.pagination-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: .8rem .3rem .2rem;
    margin-top: .35rem;
    font-size: .8rem
}

.record-count {
    justify-self: start;
    color: var(--muted)
}

.pagination {
    display: flex;
    width: auto;
    min-height: 0;
    margin: 0;
    gap: .3rem
}

    .pagination a {
        display: grid;
        place-items: center;
        min-width: 30px;
        height: 30px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: #fff
    }

        .pagination a.active {
            background: var(--navy);
            border-color: var(--navy);
            color: #fff
        }

.page-size {
    display: flex !important;
    align-items: center;
    justify-self: end;
    gap: .45rem;
    margin: 0
}

    .page-size label {
        margin: 0;
        white-space: nowrap;
        font-weight: 600;
        color: var(--muted)
    }

    .page-size select {
        width: 70px;
        padding: .35rem
    }

.dashboard-toolbar {
    align-items: center;
    justify-content: space-between
}

    .dashboard-toolbar small {
        color: var(--muted)
    }

.ui-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    line-height: 1
}

.stat-card > span .ui-icon {
    width: 21px;
    height: 21px
}

.dashboard-toolbar button {
    gap: .4rem
}

.panel-toolbar {
    gap: .7rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

.server-search {
    display: flex !important;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap
}

    .server-search input {
        width: min(22rem,55vw);
        margin: 0
    }

.pagination a[aria-current=page] {
    pointer-events: none
}

@media(max-width:700px) {
    .pagination-footer {
        grid-template-columns: 1fr;
        justify-items: center
    }

    .record-count, .page-size {
        justify-self: center
    }

    .pagination {
        grid-row: 1
    }

    .language-menu summary {
        min-width: auto
    }

        .language-menu summary span {
            display: none
        }
}

.muted {
    color: var(--muted)
}

.vps-summary {
    padding: 1.2rem;
    margin-bottom: 1rem
}

.vps-summary-title {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line)
}

    .vps-summary-title h1 {
        font-size: 1.3rem;
        margin: .05rem 0
    }

    .vps-summary-title p {
        margin: 0;
        color: var(--muted);
        font-size: .85rem
    }

.server-glyph, .control-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #fff5d6;
    color: #8a5c00;
    font-size: 1.2rem;
    font-weight: 800
}

.vps-facts {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: .75rem;
    padding-top: 1rem
}

    .vps-facts div, .payment-details div {
        min-width: 0
    }

    .vps-facts small, .payment-details small, .connection-info dt, .live-facts small {
        display: block;
        color: var(--muted);
        font-size: .74rem
    }

    .vps-facts strong, .payment-details strong {
        display: block;
        overflow-wrap: anywhere;
        font-size: .88rem
    }

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

.control-card {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: start;
    gap: .8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 1.1rem;
    box-shadow: 0 4px 16px rgba(20,28,40,.035)
}

    .control-card h2 {
        font-size: 1.05rem !important;
        margin: 0
    }

    .control-card p, .renewal-section .section-title p {
        margin: .15rem 0 0;
        color: var(--muted);
        font-size: .8rem
    }

    .control-card form {
        margin: 0
    }

.inline-control, .live-facts, .connection-info, .reinstall-card form {
    grid-column: 1/-1
}

.inline-control {
    display: grid !important;
    grid-template-columns: minmax(110px,1fr) 110px auto;
    align-items: end;
    gap: .5rem
}

    .inline-control label {
        margin: 0
    }

.live-facts {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .5rem
}

    .live-facts span {
        border-radius: 8px;
        background: var(--soft);
        padding: .6rem
    }

.connection-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem .7rem;
    margin: 0;
    background: var(--soft);
    padding: .7rem;
    border-radius: 8px
}

    .connection-info dd {
        margin: 0;
        overflow-wrap: anywhere
    }

.reinstall-card form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .55rem;
    align-items: end
}

    .reinstall-card form > label:first-of-type, .reinstall-card form > button {
        grid-column: 1/-1
    }

.field-or {
    align-self: center;
    color: var(--muted);
    font-size: .75rem
}

.renewal-section {
    margin-bottom: 1rem
}

    .renewal-section .section-title {
        align-items: flex-start
    }

.payment-details {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .75rem;
    margin: .8rem 0;
    padding: .8rem;
    background: var(--soft);
    border-radius: 10px
}

.invoice-list {
    display: grid;
    gap: .55rem
}

.invoice-card {
    display: grid;
    grid-template-columns: minmax(150px,1fr) auto minmax(200px,1.2fr);
    align-items: center;
    gap: .8rem;
    border-top: 1px solid var(--line);
    padding-top: .7rem
}

    .invoice-card > div:first-child {
        display: grid
    }

    .invoice-card small {
        color: var(--muted)
    }

.invoice-price {
    font-weight: 800
}

.invoice-card form {
    display: flex;
    align-items: center;
    gap: .45rem
}

.invoice-card input[type=file] {
    font-size: .75rem;
    padding: .4rem
}

.compact-empty {
    padding: 1.5rem
}

.advanced-tools > summary {
    font-size: .9rem
}

.advanced-tools[open] > summary {
    margin-bottom: 1rem
}

.renewal-admin-grid {
    display: grid;
    grid-template-columns: minmax(210px,.38fr) minmax(680px,1.62fr);
    gap: .85rem;
    align-items: start
}

@media(max-width:900px) {
    .vps-facts {
        grid-template-columns: repeat(2,1fr)
    }

    .control-grid, .renewal-admin-grid {
        grid-template-columns: 1fr
    }

    .invoice-card {
        grid-template-columns: 1fr auto
    }

        .invoice-card form, .invoice-card > a {
            grid-column: 1/-1
        }
}

.provider-invoices .section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem
}

    .provider-invoices .section-title h2 {
        margin: 0
    }

    .provider-invoices .section-title p {
        margin: .15rem 0 0;
        color: var(--muted);
        font-size: .82rem
    }

.provider-invoice-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: wrap
}

    .provider-invoice-actions form {
        display: inline-flex;
        margin: 0
    }

    .provider-invoice-actions button {
        gap: .35rem
    }

.provider-invoices .alert {
    margin: .75rem 0 0;
    border-radius: 12px
}

.provider-invoices td small {
    display: block;
    margin-top: .12rem;
    font-size: .68rem
}

.invoice-server-cell strong {
    display: block;
    max-width: 13rem;
    overflow-wrap: anywhere
}

.invoice-server-ip {
    display: inline-flex !important;
    align-items: center;
    gap: .3rem;
    color: #64748b
}

.bank-settings-card {
    padding: 1rem
}

    .bank-settings-card h2 {
        font-size: 1.02rem !important
    }

    .bank-settings-card p {
        font-size: .76rem
    }

    .bank-settings-card form {
        gap: .35rem
    }

    .bank-settings-card label {
        margin-top: .35rem;
        font-size: .78rem
    }

    .bank-settings-card input {
        padding: .48rem .55rem
    }

    .bank-settings-card button {
        margin-top: .35rem
    }

.invoice-unpaid-row {
    background: linear-gradient(90deg,#fff8e5 0,#fff 42%)
}

    .invoice-unpaid-row .status {
        background: #fff1c2;
        color: #906000
    }

.invoice-actions {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap
}

    .invoice-actions .inline {
        margin: 0
    }

.warning-details-modal .modal-header p {
    margin: .08rem 0 0;
    color: var(--muted);
    font-size: .76rem
}

.warning-timeline {
    display: grid;
    gap: .7rem
}

    .warning-timeline article {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: .65rem;
        padding: .75rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff
    }

.warning-dot {
    width: 10px;
    height: 10px;
    margin-top: .45rem;
    border-radius: 50%;
    background: var(--brand-deep);
    box-shadow: 0 0 0 4px #ffbd1626
}

.warning-timeline strong {
    font-size: .86rem
}

.warning-timeline small {
    display: block;
    color: var(--muted);
    font-size: .7rem
}

.warning-timeline p {
    margin: .25rem 0 0;
    font-size: .8rem
}

.user-payment-warnings {
    margin-bottom: 1rem
}

.warning-list {
    display: grid;
    gap: .65rem
}

    .warning-list article {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: .7rem;
        padding: .8rem;
        border: 1px solid #ffe1a3;
        border-radius: 12px;
        background: #fff8e5
    }

    .warning-list i {
        color: #a66d00;
        margin-top: .25rem
    }

    .warning-list strong {
        font-size: .9rem
    }

    .warning-list p {
        margin: .2rem 0;
        color: #493700;
        font-size: .82rem
    }

    .warning-list small {
        color: var(--muted);
        font-size: .72rem
    }

@media(max-width:600px) {
    .vps-facts, .payment-details, .live-facts {
        grid-template-columns: 1fr 1fr
    }

    .control-card {
        grid-template-columns: auto 1fr
    }

        .control-card > .btn-primary, .control-card > form {
            grid-column: 1/-1
        }

    .inline-control, .reinstall-card form {
        grid-template-columns: 1fr
    }

    .field-or {
        display: none
    }

    .invoice-card {
        grid-template-columns: 1fr
    }

        .invoice-card form {
            display: grid
        }

    .renewal-section .section-title {
        align-items: stretch
    }

        .renewal-section .section-title form, .renewal-section .section-title button {
            width: 100%
        }
}

.toast-region {
    position: fixed;
    z-index: 1000;
    inset-block-start: 88px;
    inset-inline-end: 1rem;
    display: grid;
    gap: .55rem;
    width: min(390px,calc(100vw - 2rem));
    pointer-events: none
}

.app-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: .7rem;
    padding: .85rem .9rem;
    border: 1px solid var(--line);
    border-inline-start: 4px solid #526173;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 16px 45px #17202e2b;
    opacity: 0;
    transform: translateY(-10px);
    transition: .22s ease;
    pointer-events: auto;
    font-size: .86rem
}

    .app-toast.toast-visible {
        opacity: 1;
        transform: none
    }

.toast-success {
    border-inline-start-color: var(--success)
}

.toast-error {
    border-inline-start-color: var(--danger)
}

.toast-warning {
    border-inline-start-color: #c78300
}

.toast-info {
    border-inline-start-color: #3b6fd8
}

.toast-icon {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--soft);
    font-weight: 850
}

.toast-success .toast-icon {
    background: #e6f4eb;
    color: var(--success)
}

.toast-error .toast-icon {
    background: #fbeaea;
    color: var(--danger)
}

.toast-close {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem
}

.validation-summary {
    display: none !important
}

.server-console {
    display: grid;
    gap: .85rem
}

.server-identity {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px #17202e0a;
    overflow: hidden
}

.server-identity-main {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line)
}

.server-machine-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff5d6;
    color: #8a5c00;
    font-size: 1.25rem
}

.identity-line {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap
}

    .identity-line h1 {
        margin: 0;
        font-size: 1.15rem
    }

.server-identity-main p {
    margin: .1rem 0 0;
    color: var(--muted);
    font-size: .78rem
}

.server-state, .invoice-status, .danger-badge {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    padding: .18rem .55rem;
    background: #e6f4eb;
    color: var(--success);
    font-size: .7rem;
    font-weight: 800
}

.danger-badge {
    background: #fbeaea;
    color: var(--danger)
}

.server-summary-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 0
}

.summary-value {
    min-width: 0;
    padding: .7rem 1rem;
    border-inline-end: 1px solid var(--line);
    border-block-end: 1px solid var(--line)
}

    .summary-value small, .overview-status small, .live-metrics small, .connection-target small, .payment-instructions small {
        display: block;
        color: var(--muted);
        font-size: .68rem
    }

.summary-value-line {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0
}

.summary-value strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem
}

.technical-value {
    direction: ltr
}

.copy-button {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: var(--soft);
    color: var(--muted);
    font-size: .72rem
}

    .copy-button.copied {
        background: #e6f4eb;
        color: var(--success)
    }

.server-tabs {
    display: flex;
    width: 100%;
    min-height: 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 .5rem
}

    .server-tabs a {
        display: flex;
        align-items: center;
        gap: .4rem;
        flex: 0 0 auto;
        padding: .72rem .9rem;
        border-bottom: 2px solid transparent;
        color: var(--muted);
        font-size: .8rem;
        font-weight: 700
    }

        .server-tabs a.active {
            border-bottom-color: var(--brand-deep);
            color: var(--ink);
            background: #fffaf0
        }

        .server-tabs a span {
            color: var(--brand-deep)
        }

.server-tab-content {
    min-height: 350px
}

.console-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 1.1rem;
    box-shadow: 0 4px 18px #17202e0a
}

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

.console-panel h2 {
    margin: 0;
    font-size: 1.08rem !important
}

.console-panel h3 {
    font-size: .88rem;
    margin: 1rem 0 .55rem
}

.console-panel-head p, .centered-action > p {
    margin: .15rem 0 0;
    color: var(--muted);
    font-size: .78rem
}

.overview-status {
    display: grid;
    grid-template-columns: 220px 1fr;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden
}

.server-health {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem;
    background: var(--soft)
}

    .server-health > div {
        display: grid
    }

.health-ring {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #e6f4eb;
    color: var(--success)
}

.resource-strip, .live-metrics {
    display: grid;
    grid-template-columns: repeat(5,1fr)
}

    .resource-strip div, .live-metrics div {
        padding: .85rem;
        border-inline-start: 1px solid var(--line)
    }

    .resource-strip strong, .live-metrics strong {
        font-size: .86rem
    }

.live-metrics {
    grid-template-columns: repeat(4,1fr);
    margin-top: .8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden
}

.power-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line)
}

    .power-controls > span {
        margin-inline-end: auto;
        font-size: .8rem;
        font-weight: 750
    }

    .power-controls form {
        margin: 0
    }

    .power-controls button {
        gap: .35rem
    }

.centered-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 850px;
    margin: auto;
    padding: 2.3rem
}

.large-action-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: #fff5d6;
    color: #8a5c00;
    font-size: 1.6rem
}

.connection-target {
    width: min(430px,100%);
    margin: .6rem 0;
    padding: .7rem;
    background: var(--soft);
    border-radius: 9px
}

    .connection-target strong {
        font-size: .9rem
    }

.admin-inline-setting {
    display: grid !important;
    grid-template-columns: 1fr 120px auto;
    align-items: end;
    gap: .5rem;
    width: min(560px,100%);
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    text-align: start
}

    .admin-inline-setting label {
        margin: 0
    }

.reinstall-console form {
    display: grid
}

.image-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: .55rem
}

.image-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    font-size: .78rem
}

    .image-choice input {
        position: absolute;
        opacity: 0
    }

    .image-choice:has(input:checked) {
        border-color: var(--brand-deep);
        background: #fffaf0;
        box-shadow: 0 0 0 2px #ffbd1625
    }

    .image-choice span {
        color: var(--brand-deep)
    }

.reinstall-password {
    max-width: 480px;
    margin-top: 1rem
}

.reinstall-submit {
    width: max-content;
    margin-top: .7rem
}

.vnc-credentials {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .4rem .8rem;
    width: min(480px,100%);
    margin: 1rem 0 0;
    padding: .8rem;
    border-radius: 9px;
    background: var(--soft);
    text-align: start
}

    .vnc-credentials dd {
        margin: 0;
        overflow-wrap: anywhere
    }

.payment-instructions {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .7rem;
    margin-bottom: 1rem;
    padding: .8rem;
    border-radius: 10px;
    background: var(--soft)
}

    .payment-instructions strong {
        font-size: .84rem
    }

.invoice-table {
    display: grid
}

    .invoice-table article {
        display: grid;
        grid-template-columns: minmax(150px,1fr) auto auto minmax(190px,1fr);
        align-items: center;
        gap: .7rem;
        padding: .75rem 0;
        border-top: 1px solid var(--line)
    }

        .invoice-table article > div:first-child {
            display: grid
        }

    .invoice-table small {
        color: var(--muted);
        font-size: .72rem
    }

.invoice-amount {
    font-size: .84rem
}

.invoice-table form {
    display: flex;
    align-items: center;
    gap: .4rem
}

.invoice-table input[type=file] {
    font-size: .72rem;
    padding: .35rem
}

.settings-console {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: .8rem
}

.settings-subnav {
    position: sticky;
    top: 90px;
    display: grid;
    align-self: start;
    width: 100%;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: .45rem
}

    .settings-subnav a {
        padding: .55rem .65rem;
        border-radius: 7px;
        color: var(--muted);
        font-size: .78rem;
        font-weight: 700
    }

        .settings-subnav a:hover {
            background: var(--soft);
            color: var(--ink)
        }

.settings-panels {
    display: grid;
    gap: .8rem
}

.setting-row {
    display: grid !important;
    grid-template-columns: minmax(180px,1fr) auto auto;
    align-items: end;
    gap: .55rem;
    padding: .55rem 0;
    border-top: 1px solid var(--line)
}

    .setting-row label {
        margin: 0
    }

.button-row {
    display: flex !important;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin: .6rem 0
}

    .button-row select {
        width: auto
    }

.firewall-form {
    display: grid !important;
    grid-template-columns: 100px repeat(2,100px) minmax(130px,1fr) minmax(130px,1fr);
    gap: .45rem;
    align-items: end
}

    .firewall-form button {
        font-size: .75rem
    }

@media(max-width:950px) {
    .server-summary-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .overview-status {
        grid-template-columns: 1fr
    }

    .resource-strip div {
        border-top: 1px solid var(--line)
    }

    .invoice-table article {
        grid-template-columns: 1fr auto auto
    }

        .invoice-table form, .invoice-table article > a {
            grid-column: 1/-1
        }

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

    .settings-subnav {
        position: static;
        display: flex;
        overflow: auto
    }

    .firewall-form {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:620px) {
    .toast-region {
        inset-block-start: 72px;
        inset-inline: .6rem;
        width: auto
    }

    .server-summary-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .server-tabs {
        padding: 0
    }

        .server-tabs a {
            padding: .62rem .7rem
        }

    .console-panel {
        padding: .85rem
    }

    .console-panel-head {
        flex-direction: column
    }

        .console-panel-head form, .console-panel-head button {
            width: 100%
        }

    .resource-strip, .live-metrics {
        grid-template-columns: repeat(2,1fr)
    }

    .power-controls > span {
        width: 100%
    }

    .centered-action {
        padding: 1.5rem .9rem
    }

    .admin-inline-setting, .setting-row, .firewall-form {
        grid-template-columns: 1fr
    }

    .payment-instructions {
        grid-template-columns: 1fr
    }

    .invoice-table article {
        grid-template-columns: 1fr
    }

    .invoice-status {
        justify-self: start
    }

    .image-choice-grid {
        grid-template-columns: 1fr
    }

    .server-identity-main {
        padding: .8rem
    }

    .summary-value {
        padding: .6rem .7rem
    }
}

/* Reference-led application shell and VPS control surface. */
.panel-header {
    position: relative;
    background: #fff;
    box-shadow: 0 3px 18px #14213d0b;
    border: 0
}

    .panel-header nav {
        min-height: 68px;
        width: min(1370px,calc(100% - 2rem))
    }

    .panel-header .brand {
        margin-inline: auto
    }

        .panel-header .brand img {
            width: 42px;
            height: 42px
        }

.panel-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: .55rem;
    border: 1px solid var(--line);
    background: #fff;
    color: #14213d
}

.header-logout {
    gap: .4rem;
    padding: .48rem .72rem;
    border: 1px solid #eadfe9;
    background: #fff;
    color: #70466f;
    font-size: .8rem
}

    .header-logout:hover {
        border-color: #8d5e91;
        background: #faf7fb
    }

.panel-body footer {
    display: none
}

.panel-body > .admin-shell {
    width: min(1400px,calc(100% - 2rem));
    grid-template-columns: 218px minmax(0,1fr);
    gap: 1.1rem;
    padding-block: 1rem
}

.admin-sidebar {
    top: 1rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg,#172944,#101e34);
    padding: .75rem;
    box-shadow: 0 16px 40px #10213a2b
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .45rem 1rem;
    margin-bottom: .45rem;
    border-bottom: 1px solid #ffffff18
}

    .sidebar-brand img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover
    }

    .sidebar-brand div {
        display: grid;
        min-width: 0
    }

    .sidebar-brand strong {
        font-size: .78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .sidebar-brand small {
        font-size: .67rem;
        color: #9dacbf;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

.sidebar-nav {
    gap: .18rem
}

    .sidebar-nav a {
        gap: .7rem;
        min-height: 42px;
        border-radius: 9px;
        padding: .57rem .65rem;
        color: #bac7d8;
        font-size: .79rem;
        font-weight: 650
    }

        .sidebar-nav a .ui-icon {
            flex: 0 0 20px;
            color: #94a8c3
        }

        .sidebar-nav a:hover {
            background: #ffffff0c
        }

        .sidebar-nav a.active {
            background: linear-gradient(90deg,#735bc1,#6451b3);
            box-shadow: 0 6px 18px #090f2138;
            color: #fff
        }

            .sidebar-nav a.active .ui-icon {
                color: #fff
            }

.sidebar-logout {
    margin: auto 0 0
}

    .sidebar-logout button {
        justify-content: flex-start;
        gap: .7rem;
        width: 100%;
        border: 0;
        background: transparent;
        color: #aab9cc;
        font-size: .79rem
    }

        .sidebar-logout button:hover {
            background: #ffffff0c;
            color: #fff
        }

.admin-content {
    padding: .1rem 0 2rem
}

.panel-breadcrumb {
    margin-bottom: .65rem;
    font-size: .72rem
}

.panel-backdrop {
    display: none
}

[dir=rtl] .panel-body > .admin-shell {
    grid-template-columns: minmax(0,1fr) 218px
}

.reference-vps {
    display: grid;
    gap: .8rem
}

.reference-summary {
    display: grid;
    grid-template-columns: 105px minmax(155px,.75fr) minmax(340px,1.65fr) minmax(180px,.9fr);
    align-items: stretch;
    min-height: 178px;
    border: 1px solid #e2e7ef;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 20px #14213d0b;
    overflow: hidden
}

.os-visual {
    display: grid;
    place-content: center;
    grid-template-columns: repeat(2,24px);
    gap: 4px;
    background: linear-gradient(150deg,#6755b8,#3c5fa8);
    color: #fff
}

    .os-visual.windows span {
        width: 24px;
        height: 24px;
        background: #fff
    }

    .os-visual.generic {
        display: grid;
        grid-template-columns: 1fr
    }

    .os-visual b {
        font-size: 1.05rem
    }

.summary-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: .4rem;
    padding: 1rem;
    border-inline-end: 1px solid var(--line)
}

    .summary-identity h1 {
        margin: 0;
        font-size: 1.05rem !important;
        line-height: 1.35
    }

    .summary-identity small {
        color: var(--muted);
        font-size: .72rem
    }

.summary-location {
    display: inline-flex;
    flex-direction: row-reverse;
    max-width: 100%;
    align-items: center;
    gap: .45rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap
}

    .summary-location .fi {
        width: 22px;
        height: 16px;
        flex: 0 0 22px;
        border-radius: 2px;
        box-shadow: 0 0 0 1px rgb(15 23 42 / 10%)
    }

    .summary-location span:last-child {
        overflow: hidden;
        text-overflow: ellipsis
    }

.reference-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 99px;
    background: #e8f7ef;
    color: #187d4e;
    padding: .2rem .55rem;
    font-size: .68rem;
    font-weight: 750
}

    .reference-status i {
        width: auto;
        height: auto;
        border-radius: 0;
        background: transparent;
        font-size: .45rem;
        color: #27ae70
    }

.access-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-content: center;
    padding: .65rem 1rem;
    border-inline-end: 1px solid var(--line)
}

    .access-facts > div {
        position: relative;
        min-width: 0;
        padding: .38rem .2rem
    }

    .access-facts small, .resource-facts small {
        display: block;
        color: #8a94a3;
        font-size: .64rem
    }

    .access-facts strong {
        display: inline-block;
        max-width: calc(100% - 28px);
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
        font-size: .75rem
    }

.resource-facts {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-content: center;
    padding: .75rem
}

    .resource-facts div {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: .4rem;
        padding: .38rem
    }

    .resource-facts .spec-image {
        grid-row: 1/3;
        color: #6854b7
    }

    .resource-facts strong {
        font-size: .78rem
    }

.reference-actions {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .8rem
}

.reference-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 245px;
    border: 1px solid #e2e7ef;
    border-radius: 13px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 16px #14213d0a
}

    .reference-card header {
        display: flex;
        align-items: center;
        gap: .55rem;
        margin-bottom: .65rem
    }

    .reference-card h2 {
        margin: 0 !important;
        font-size: .9rem !important
    }

    .reference-card p {
        margin: .1rem 0 .7rem;
        color: var(--muted);
        font-size: .72rem
    }

.card-outline-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: #f0edfb;
    color: #6955b8
}

.status-banner {
    border-radius: 9px;
    background: #effaf4;
    color: #227752;
    padding: .65rem;
    font-size: .72rem
}

    .status-banner i {
        margin-inline-end: .3rem
    }

.reference-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    margin-top: auto;
    padding-top: .7rem
}

    .reference-button-row form {
        display: block
    }

    .reference-button-row button {
        gap: .3rem;
        padding: .46rem .62rem;
        border: 0;
        font-size: .68rem
    }

.power-poweroff {
    background: #fff0f0;
    color: #b63434
}

.power-reboot {
    background: #fff7df;
    color: #8c6500
}

.power-start {
    background: #eaf8f0;
    color: #1d774c
}

.compact-target {
    margin: auto 0 .65rem;
    border: 1px dashed #c8cfda;
    border-radius: 8px;
    background: #f8f9fc;
    padding: .55rem;
    text-align: center;
    font-size: .79rem
}

.gradient-action, .purple-action, .gold-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    border: 0;
    border-radius: 8px;
    padding: .58rem .75rem;
    background: linear-gradient(90deg,#4d6fc3,#7358bb);
    color: #fff;
    font-size: .75rem;
    font-weight: 750;
    cursor: pointer
}

.purple-action {
    background: linear-gradient(90deg,#7653b2,#954f9b)
}

.gold-action {
    background: linear-gradient(90deg,#d79b13,#f1b83c);
    color: #382600
}

.compact-admin-form, .local-login-form {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: .4rem;
    margin-top: .5rem
}

.reference-card input, .reference-card select {
    padding: .51rem;
    font-size: .72rem
}

.reference-card form {
    display: grid;
    gap: .42rem
}

.compact-payment {
    display: grid;
    gap: .2rem;
    padding: .55rem;
    border-radius: 8px;
    background: #f8f9fc;
    font-size: .68rem
}

.compact-invoices {
    display: grid;
    gap: .4rem;
    margin-top: .45rem
}

    .compact-invoices > div {
        display: grid;
        gap: .25rem;
        border-top: 1px solid var(--line);
        padding-top: .4rem;
        font-size: .68rem
    }

    .compact-invoices strong {
        font-size: .75rem
    }

    .compact-invoices form {
        grid-template-columns: 1fr auto
    }

    .compact-invoices input[type=file] {
        min-width: 0
    }

.compact-empty-state {
    margin: auto !important;
    text-align: center
}

.vnc-inline {
    display: grid;
    gap: .25rem;
    margin-top: .65rem;
    padding: .55rem;
    border-radius: 8px;
    background: #f8f9fc;
    font-size: .68rem
}

.reference-more {
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    background: #fff;
    padding: .8rem 1rem
}

    .reference-more summary {
        font-size: .79rem
    }

.reference-settings-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line)
}

    .reference-settings-grid h3 {
        font-size: .78rem;
        margin: 0 0 .5rem
    }

    .reference-settings-grid form {
        display: flex;
        gap: .35rem;
        margin: .35rem 0
    }

    .reference-settings-grid input {
        font-size: .7rem;
        padding: .45rem
    }

.security-note {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .65rem;
    align-items: center;
    border-radius: 12px;
    background: linear-gradient(90deg,#eef3ff,#f4effd);
    padding: .75rem 1rem;
    color: #52627b
}

    .security-note > span {
        grid-row: 1/3;
        font-size: 1.35rem;
        color: #6755b8
    }

    .security-note strong {
        font-size: .77rem
    }

    .security-note p {
        margin: 0;
        font-size: .68rem
    }
/* The same restrained card language extends to the rest of the application. */
.panel, .auth-card, .plan, .server-card, .deploy-section, .stat-card {
    border-color: #e2e7ef;
    box-shadow: 0 5px 20px #14213d0b
}

.admin-content table {
    font-size: .78rem
}

.admin-content th {
    background: #f8f9fc;
    color: #647084;
    font-size: .7rem
}

.admin-content h1 {
    font-size: 1.3rem
}

.auth-card h1 {
    font-size: 1.65rem
}

.btn-primary {
    background: linear-gradient(90deg,#e2a817,#ffc83c);
    border: 0
}

.public-body {
    overflow-x: clip;
    background: #f8f9fc
}

    .public-body .site-header {
        background: #fff
    }

    .public-body .plan {
        background: #fff
    }

@media(max-width:1050px) {
    .reference-summary {
        grid-template-columns: 90px 1fr 2fr
    }

    .resource-facts {
        grid-column: 2/4;
        border-top: 1px solid var(--line);
        grid-template-columns: repeat(4,1fr)
    }

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

@media(max-width:850px) {
    .panel-menu-toggle {
        display: grid;
        place-items: center
    }

    .panel-header .brand {
        margin-inline: 0
    }

    .panel-body > .admin-shell, [dir=rtl] .panel-body > .admin-shell {
        grid-template-columns: 1fr;
        width: min(100% - 1rem,1400px)
    }

    .admin-sidebar, [dir] .admin-sidebar {
        position: fixed;
        z-index: 90;
        inset-block: 76px .7rem;
        inset-inline-start: .7rem;
        width: min(260px,calc(100vw - 2rem));
        min-height: 0;
        transform: translateX(calc(-100% - 1rem));
        transition: .22s ease;
        grid-column: auto
    }

    .sidebar-open .admin-sidebar {
        transform: none
    }

    [dir=rtl] .admin-sidebar {
        transform: translateX(calc(100% + 1rem))
    }

    [dir=rtl] .sidebar-open .admin-sidebar {
        transform: none
    }

    .panel-backdrop {
        position: fixed;
        z-index: 80;
        inset: 68px 0 0;
        background: #0c172b80
    }

    .sidebar-open .panel-backdrop {
        display: block
    }

    .admin-content, [dir] .admin-content {
        grid-column: 1;
        grid-row: 1
    }

    .sidebar-brand {
        display: flex
    }

    .sidebar-nav {
        display: grid;
        min-width: 0;
        overflow: auto
    }

        .sidebar-nav a {
            width: 100%
        }

    .panel-header .header-logout span {
        display: none
    }

    .reference-summary {
        grid-template-columns: 90px 1fr
    }

    .access-facts {
        grid-column: 1/3;
        border-top: 1px solid var(--line);
        border-inline-end: 0
    }

    .resource-facts {
        grid-column: 1/3
    }

    .reference-actions {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:620px) {
    .panel-header nav {
        width: calc(100% - 1rem);
        gap: .45rem
    }

    .panel-header .brand span {
        display: none
    }

    .panel-header .brand {
        margin-inline-end: auto
    }

    .header-logout {
        padding: .5rem
    }

    .reference-summary {
        grid-template-columns: 76px 1fr
    }

    .os-visual {
        grid-template-columns: repeat(2,18px)
    }

        .os-visual.windows span {
            width: 18px;
            height: 18px
        }

    .access-facts {
        grid-template-columns: 1fr
    }

    .resource-facts {
        grid-template-columns: repeat(2,1fr)
    }

    .reference-actions {
        grid-template-columns: 1fr
    }

    .reference-card {
        min-height: 0
    }

    .reference-settings-grid {
        grid-template-columns: 1fr
    }

        .reference-settings-grid form {
            flex-wrap: wrap
        }

    .compact-admin-form, .local-login-form {
        grid-template-columns: 1fr
    }

    .language-menu summary {
        padding: .42rem
    }

    .admin-content {
        padding-bottom: 1rem
    }
}

.password-fact input {
    display: inline-block;
    width: calc(100% - 58px);
    height: 25px;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: .75rem;
    direction: ltr
}

    .password-fact input:focus {
        outline: 0
    }

.password-fact .copy-button {
    vertical-align: middle
}

.server-row-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap
}

    .server-row-actions form {
        margin: 0
    }

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: 1px solid #e8b9b9;
    border-radius: 8px;
    background: #fff2f2;
    color: #a52f2f;
    font-weight: 750;
    cursor: pointer
}

    .btn-danger:hover {
        background: #a52f2f;
        color: #fff
    }

.server-search .icon-btn, .server-sync-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px
}

.server-row-actions .icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px
}

.server-row-actions .btn-danger.icon-btn {
    border-color: #e8b9b9;
    background: #fff2f2;
    color: #a52f2f
}

    .server-row-actions .btn-danger.icon-btn:hover {
        background: #a52f2f;
        color: #fff
    }

.server-row-actions .icon-btn i, .server-search .icon-btn i, .server-sync-button i {
    margin: 0
}

.reference-vps {
    grid-template-columns: minmax(0,2.35fr) minmax(270px,.85fr);
    align-items: stretch
}

.reference-summary {
    grid-column: 1;
    grid-row: 1;
    width: 100%
}

.reference-vps > .status-card {
    grid-column: 2;
    grid-row: 1;
    min-height: 0
}

.reference-actions {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px,1fr);
    gap: .7rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin
}

    .reference-actions > .reference-card {
        min-height: 245px
    }

.reference-vps > .security-note {
    grid-column: 1/-1;
    grid-row: 3
}

@media(max-width:850px) {
    .reference-vps {
        grid-template-columns: 1fr
    }

    .reference-summary {
        grid-column: 1;
        grid-row: 1
    }

    .reference-vps > .status-card {
        grid-column: 1;
        grid-row: 2
    }

    .reference-actions {
        grid-column: 1;
        grid-row: 3;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(2,minmax(0,1fr));
        overflow: visible
    }

    .reference-vps > .security-note {
        grid-column: 1;
        grid-row: 4
    }
}

@media(max-width:620px) {
    .reference-actions {
        grid-template-columns: 1fr
    }
}

.settings-modal-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1.25rem
}

.settings-modal-full {
    grid-column: 1 / -1
}

    .settings-modal-grid form {
        display: grid;
        align-content: start;
        gap: .45rem
    }

        .settings-modal-grid form + form {
            border-inline-start: 1px solid var(--line);
            padding-inline-start: 1.25rem
        }

    .settings-modal-grid h2 {
        font-size: 1rem;
        margin: 0 0 .35rem
    }

.renewal-admin-grid-full {
    grid-template-columns: minmax(0,1fr)
}

@media(max-width:700px) {
    .settings-modal-grid {
        grid-template-columns: 1fr
    }

        .settings-modal-grid form + form {
            border-inline-start: 0;
            border-top: 1px solid var(--line);
            padding-inline-start: 0;
            padding-top: 1rem
        }
}

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

.renewal-toolbar {
    justify-content: flex-end;
    margin-bottom: .75rem
}

.settings-modal-grid textarea {
    width: 100%;
    resize: vertical
}

.table-sort-heading {
    white-space: nowrap
}

.table-sort-button {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    margin-inline-start: .35rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    vertical-align: middle
}

.table-sort-button:hover,
.table-sort-button:focus-visible,
th[aria-sort] .table-sort-button {
    background: rgba(255,189,22,.16);
    color: var(--brand-deep)
}

@media(max-width:850px) {
    .api-settings-grid {
        grid-template-columns: 1fr
    }
}

.pricing-table-panel {
    width: 100%
}

.pricing-table-head {
    align-items: center;
    margin-bottom: .75rem
}

    .pricing-table-head h2 {
        margin: 0
    }

    .pricing-table-head p {
        margin: .1rem 0 0;
        color: var(--muted);
        font-size: .75rem
    }

.pricing-table {
    min-width: 760px
}

    .pricing-table th, .pricing-table td {
        vertical-align: middle
    }

        .pricing-table td:first-child {
            white-space: nowrap
        }

        .pricing-table td form {
            display: block;
            margin: 0
        }

        .pricing-table td input {
            min-width: 110px;
            max-width: 180px;
            padding: .5rem .6rem
        }

        .pricing-table td:nth-child(3), .pricing-table td:nth-child(4) {
            font-weight: 750;
            white-space: nowrap
        }

.warning-details-modal {
    z-index: 1060
}

.modal-backdrop {
    z-index: 1050
}

@media(max-width:620px) {
    .pricing-table-head {
        align-items: stretch;
        flex-direction: column
    }

        .pricing-table-head button {
            width: 100%
        }
}

.resource-facts .billing-cycle-fact {
    grid-column: 1/-1;
    margin-top: .25rem;
    padding-top: .55rem;
    border-top: 1px solid var(--line)
}

.reference-summary {
    grid-template-columns: 100px minmax(170px,.72fr) minmax(260px,.95fr) minmax(270px,1.2fr);
    min-height: 250px
}

.access-facts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: .75rem 1rem
}

    .access-facts > .access-fact {
        display: grid;
        grid-template-columns: 30px minmax(0,1fr);
        align-items: center;
        gap: .65rem;
        min-height: 52px;
        padding: .42rem 0;
        border-bottom: 1px solid #edf0f5
    }

        .access-facts > .access-fact:last-child {
            border-bottom: 0
        }

.access-fact-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f2f0fa;
    color: #6955b8;
    font-size: .76rem
}

.access-fact-content {
    display: grid;
    min-width: 0
}

    .access-fact-content > small {
        margin-bottom: .08rem;
        font-size: .62rem
    }

.access-fact-value {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0
}

    .access-fact-value > strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .78rem
    }

    .access-fact-value .copy-button {
        margin-inline-start: auto;
        width: 28px;
        height: 28px;
        border-radius: 7px
    }

        .access-fact-value .copy-button:hover {
            background: #e9e5f6;
            color: #5f4aa5
        }

        .access-fact-value .copy-button.copied {
            background: #e6f4eb;
            color: var(--success)
        }

.password-fact input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 28px;
    font-size: .78rem
}

.resource-facts {
    background: #fafbfe
}

.summary-identity {
    background: #fff
}

@media(max-width:1050px) {
    .reference-summary {
        grid-template-columns: 90px minmax(170px,.8fr) minmax(270px,1.2fr)
    }

    .resource-facts {
        grid-column: 2/4
    }
}

@media(max-width:850px) {
    .reference-summary {
        grid-template-columns: 90px minmax(0,1fr)
    }

    .access-facts {
        grid-column: 1/3;
        padding: .65rem 1rem
    }

    .resource-facts {
        grid-column: 1/3
    }
}

@media(max-width:620px) {
    .reference-summary {
        grid-template-columns: 76px minmax(0,1fr)
    }

    .access-facts {
        padding: .5rem .75rem
    }

        .access-facts > .access-fact {
            min-height: 50px
        }

    .access-fact-icon {
        width: 28px;
        height: 28px
    }

    .access-fact-value > strong, .password-fact input {
        font-size: .74rem
    }
}

.spec-image {
    display: grid !important;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 1.05rem
}

.field-action-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-size: .84rem;
    line-height: 1
}

.os-visual img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px #06152c35)
}

@media(max-width:620px) {
    .os-visual img {
        width: 64px;
        height: 64px
    }
}

/* Compact public experience and focused single-server user workspace. */
.panel-body:not(:has(.sidebar-nav a[href="/Admin"])) .admin-sidebar, .panel-body:not(:has(.sidebar-nav a[href="/Admin"])) .panel-backdrop, .panel-body:not(:has(.sidebar-nav a[href="/Admin"])) .panel-menu-toggle {
    display: none !important
}

.panel-body:not(:has(.sidebar-nav a[href="/Admin"])) > .admin-shell, [dir=rtl] .panel-body:not(:has(.sidebar-nav a[href="/Admin"])) > .admin-shell {
    grid-template-columns: minmax(0,1fr)
}

.panel-body:not(:has(.sidebar-nav a[href="/Admin"])) .admin-content {
    grid-column: 1
}

.modern-hero {
    grid-template-columns: minmax(0,1fr) minmax(340px,.8fr);
    min-height: 430px;
    padding: 2.6rem 0 3rem;
    gap: clamp(2rem,6vw,5rem)
}

    .modern-hero:before {
        inset: 12% -12vw 12% 61%;
        border-radius: 28px;
        background: #fff4ce;
        border: 1px solid #f3df9e
    }

[dir=rtl] .modern-hero:before {
    inset: 12% 61% 12% -12vw;
    border-radius: 28px
}

.modern-hero .hero-copy h1 {
    max-width: 660px;
    margin: .45rem 0 1rem;
    font-size: clamp(2.35rem,4.8vw,4.15rem);
    line-height: 1.14;
    letter-spacing: 0
}

.modern-hero .lead {
    max-width: 610px;
    margin-bottom: 1.4rem;
    font-size: 1.05rem
}

.modern-hero .hero-actions {
    margin-bottom: 1.35rem
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    max-width: 590px;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line)
}

    .hero-facts > div {
        display: grid;
        gap: .12rem;
        padding-inline: .9rem;
        border-inline-start: 1px solid var(--line)
    }

        .hero-facts > div:first-child {
            padding-inline-start: 0;
            border-inline-start: 0
        }

    .hero-facts strong {
        color: var(--ink);
        font-size: 1.1rem
    }

    .hero-facts small {
        color: var(--muted);
        font-size: .7rem
    }

.server-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid #2c3749;
    border-radius: 8px;
    background: #111824;
    color: #f6f8fb;
    box-shadow: 0 28px 60px #17202e30;
    animation: preview-in .7s ease both
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: .38rem;
    height: 42px;
    padding: 0 .8rem;
    border-bottom: 1px solid #ffffff16;
    background: #1a2433
}

    .preview-bar span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e65f5f
    }

        .preview-bar span:nth-child(2) {
            background: #e8b84f
        }

        .preview-bar span:nth-child(3) {
            background: #4dbb75
        }

    .preview-bar b {
        margin-inline-start: auto;
        color: #8f9bad;
        font-size: .7rem
    }

.preview-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 205px;
    padding: 1.6rem
}

    .preview-body img {
        width: 84px;
        height: 84px;
        object-fit: contain
    }

    .preview-body div {
        display: grid;
        gap: .18rem
    }

    .preview-body small {
        color: #8794a7;
        font-family: monospace
    }

    .preview-body strong {
        font-size: 1.3rem
    }

    .preview-body span {
        display: flex;
        align-items: center;
        gap: .4rem;
        color: #7ed7a0;
        font-size: .76rem
    }

        .preview-body span i {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #4dcc7c;
            box-shadow: 0 0 0 4px #4dcc7c20;
            animation: status-pulse 1.8s infinite
        }

.preview-metrics {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid #ffffff16
}

    .preview-metrics div {
        display: grid;
        padding: .8rem 1rem;
        border-inline-start: 1px solid #ffffff16
    }

        .preview-metrics div:first-child {
            border-inline-start: 0
        }

    .preview-metrics small {
        color: #8491a3;
        font-size: .66rem
    }

    .preview-metrics b {
        font-size: .84rem
    }

.service-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-block: 1px solid var(--line);
    background: #fff
}

    .service-strip > div {
        display: flex;
        align-items: center;
        gap: .8rem;
        padding: 1.2rem
    }

        .service-strip > div + div {
            border-inline-start: 1px solid var(--line)
        }

        .service-strip > div > i {
            color: #6f4d79;
            font-size: 1.15rem
        }

    .service-strip span {
        display: grid
    }

    .service-strip strong {
        font-size: .84rem
    }

    .service-strip small {
        color: var(--muted);
        font-size: .7rem
    }

.locations-section {
    margin-top: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc
}

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

    .locations-heading h2 {
        margin: .25rem 0 0;
        font-size: 1.55rem
    }

    .locations-heading > span {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        color: #237646;
        font-size: .74rem;
        white-space: nowrap
    }

        .locations-heading > span i, .plan-availability i {
            color: #39a763;
            font-size: .45rem;
            box-shadow: 0 0 0 4px #39a76318;
            border-radius: 50%
        }

.location-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff
}

.location-item {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line)
}

    .location-item:not(:nth-child(4n+1)) {
        border-inline-start: 1px solid var(--line)
    }

    .location-item:nth-last-child(-n+4) {
        border-bottom: 0
    }

    .location-item > div {
        display: grid;
        min-width: 0
    }

    .location-item strong {
        overflow: hidden;
        color: var(--ink);
        font-size: .78rem;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .location-item small {
        overflow: hidden;
        color: var(--muted);
        font-size: .65rem;
        text-overflow: ellipsis;
        white-space: nowrap
    }

.location-flag {
    font-size: 1.25rem;
    line-height: 1
}

.location-latency {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #536174;
    font-size: .65rem;
    direction: ltr
}

    .location-latency i {
        color: #d99900
    }

.location-note {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .9rem;
    color: var(--muted);
    font-size: .7rem
}

    .location-note > i {
        color: #d99900
    }

    .location-note a {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        margin-inline-start: auto;
        color: var(--ink);
        font-weight: 700
    }

.catalogue {
    padding-top: 3.2rem
}

    .catalogue .section-head h2 {
        font-size: 2rem
    }

.catalogue-summary {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: .72rem
}

    .catalogue-summary span {
        display: inline-flex;
        align-items: center;
        gap: .35rem
    }

        .catalogue-summary span + span {
            padding-inline-start: .85rem;
            border-inline-start: 1px solid var(--line)
        }

    .catalogue-summary strong, .catalogue-summary i {
        color: #237646
    }

.plans {
    grid-template-columns: repeat(auto-fit,minmax(235px,1fr))
}

.plan {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 1.25rem
}

    .plan:hover {
        transform: translateY(-4px)
    }

    .plan .price {
        font-size: 1.75rem
    }

.plan-features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .35rem;
    margin-top: .8rem
}

    .plan-features span {
        padding: .3rem;
        border: 1px solid #e5e9f0;
        border-radius: 5px;
        background: #f8fafc;
        color: #5c6879;
        font-size: .62rem;
        text-align: center;
        direction: ltr
    }

.plan-availability {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .75rem 0;
    color: #237646;
    font-size: .68rem
}

.plan > .btn {
    margin-top: auto
}

@keyframes preview-in {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes status-pulse {
    50% {
        box-shadow: 0 0 0 7px #4dcc7c08
    }
}

@media(prefers-reduced-motion:reduce) {
    .server-preview, .preview-body span i {
        animation: none
    }

    .plan {
        transition: none
    }
}

@media(max-width:850px) {
    .modern-hero {
        grid-template-columns: 1fr;
        padding-top: 2rem
    }

        .modern-hero .server-preview {
            grid-row: 1;
            width: min(520px,100%);
            margin: auto
        }

    .service-strip {
        grid-template-columns: 1fr
    }

        .service-strip > div + div {
            border-inline-start: 0;
            border-top: 1px solid var(--line)
        }

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

    .location-item:not(:nth-child(4n+1)) {
        border-inline-start: 0
    }

    .location-item:nth-child(even) {
        border-inline-start: 1px solid var(--line)
    }

    .location-item:nth-last-child(-n+4) {
        border-bottom: 1px solid var(--line)
    }

    .location-item:nth-last-child(-n+2) {
        border-bottom: 0
    }
}

@media(max-width:620px) {
    .modern-hero {
        gap: 1.7rem;
        padding-bottom: 2.5rem
    }

        .modern-hero .hero-copy h1 {
            font-size: 2.25rem
        }

        .modern-hero .lead {
            font-size: .95rem
        }

    .preview-body {
        min-height: 160px;
        padding: 1.1rem
    }

        .preview-body img {
            width: 64px;
            height: 64px
        }

    .trust-row {
        justify-content: center;
        gap: .65rem
    }

    .hero-facts {
        margin-top: 1rem
    }

        .hero-facts > div {
            padding-inline: .55rem
        }

    .service-strip > div {
        padding: 1rem .5rem
    }

    .catalogue {
        padding-top: 2.7rem
    }

    .locations-section {
        padding: 1.25rem
    }

    .locations-heading {
        align-items: flex-start;
        flex-direction: column
    }

        .locations-heading h2 {
            font-size: 1.3rem
        }

    .location-grid {
        grid-template-columns: 1fr
    }

    .location-item:nth-child(even) {
        border-inline-start: 0
    }

    .location-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--line)
    }

    .location-item:last-child {
        border-bottom: 0
    }

    .location-note {
        align-items: flex-start;
        flex-wrap: wrap
    }

        .location-note a {
            width: 100%;
            margin: .25rem 0 0
        }

    .catalogue .section-head {
        align-items: flex-start;
        gap: 1rem
    }

    .catalogue-summary {
        align-self: stretch;
        justify-content: space-between
    }
}

/* Account onboarding and recovery use one focused, responsive surface. */
.account-flow-shell {
    display: grid;
    min-height: calc(100vh - 155px);
    padding: 2rem 1rem;
    place-items: center
}

.account-flow-card {
    width: min(100%,470px);
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px #14213d12
}

    .account-flow-card h1 {
        margin: .3rem 0 .6rem;
        font-size: 1.45rem
    }

    .account-flow-card > p:not(.eyebrow) {
        margin: 0 0 1rem;
        color: var(--muted);
        font-size: .8rem
    }

    .account-flow-card form {
        display: grid;
        gap: .55rem
    }

        .account-flow-card form label {
            margin-top: .35rem;
            font-size: .75rem;
            font-weight: 700
        }

        .account-flow-card form .btn {
            margin-top: .8rem
        }

.account-flow-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: .85rem;
    border-radius: 8px;
    background: #fff4ce;
    color: #9b6a00;
    place-items: center
}

    .account-flow-icon.success {
        background: #e7f7ed;
        color: #237646
    }

.account-server-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 1rem 0;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    font-size: .74rem
}

    .account-server-reference span, .password-guidance {
        color: var(--muted)
    }

.password-guidance {
    font-size: .66rem
}

.account-flow-back, .login-forgot-link {
    color: #765000;
    font-size: .72rem;
    font-weight: 700
}

.account-flow-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .3rem
}

.reset-code-input {
    height: 52px;
    font-size: 1.35rem;
    letter-spacing: 0;
    text-align: center
}

@media(max-width:520px) {
    .account-flow-shell {
        align-items: start;
        padding: 1rem .75rem
    }

    .account-flow-card {
        padding: 1.25rem
    }
}

/* Keep the public sign-in action visually consistent with the panel sign-out action. */
.public-body .nav-links > a[href="/Account/Login"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 38px;
    border: 1px solid #eadfe9;
    border-radius: 10px;
    padding: .48rem .72rem;
    background: #fff;
    color: #70466f;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1.2;
    transition: .18s ease
}

    .public-body .nav-links > a[href="/Account/Login"]:hover {
        border-color: #8d5e91;
        background: #faf7fb;
        color: #70466f;
        box-shadow: 0 4px 14px #70466f14;
        transform: translateY(-1px)
    }

    .public-body .nav-links > a[href="/Account/Login"]:focus-visible {
        outline: 3px solid #8d5e9130;
        outline-offset: 2px
    }

@media(max-width:850px) {
    .public-body .nav-links > a[href="/Account/Login"] {
        display: inline-flex
    }
}

@media(max-width:620px) {
    .public-body .nav-links > a[href="/Account/Login"] {
        min-width: 38px;
        padding: .5rem
    }

    .public-body .nav-links > a[href="/Account/Login"] {
        font-size: 0
    }

        .public-body .nav-links > a[href="/Account/Login"] i {
            font-size: .8rem
        }
}

/* Provider request loading state */
.provider-busy .site-header, .provider-busy .admin-shell, .provider-busy footer {
    pointer-events: none;
    user-select: none;
    filter: saturate(.86)
}

.provider-busy-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(11,17,28,.38);
    backdrop-filter: blur(5px);
    opacity: 1;
    pointer-events: auto
}

    .provider-busy-overlay[hidden] {
        display: none
    }

.provider-busy-card {
    display: grid;
    justify-items: center;
    gap: .55rem;
    width: min(360px,calc(100vw - 2rem));
    border: 1px solid #ffffff85;
    border-radius: 16px;
    background: linear-gradient(180deg,#fff,#f9fbff);
    padding: 1.35rem 1.2rem;
    text-align: center;
    box-shadow: 0 24px 70px #0e172a4a
}

    .provider-busy-card strong {
        font-size: .98rem
    }

    .provider-busy-card small {
        color: var(--muted);
        font-size: .75rem
    }

.provider-busy-spinner {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg,#fff5d6,#eef3ff);
    color: #6955b8;
    box-shadow: inset 0 0 0 1px #ffffffcc
}

    .provider-busy-spinner:before {
        content: "";
        position: absolute;
        inset: -5px;
        border: 3px solid #ffbd1633;
        border-top-color: var(--brand-deep);
        border-radius: 22px;
        animation: vnc-spin .8s linear infinite
    }

    .provider-busy-spinner i {
        position: relative;
        font-size: 1.35rem
    }

.is-loading {
    position: relative;
    opacity: .82;
    cursor: progress !important
}

    .is-loading > i:first-child {
        animation: vnc-spin .8s linear infinite
    }

.provider-busy button, .provider-busy a {
    cursor: progress
}

/* Standalone browser VNC console */
.vnc-console-body {
    height: 100vh;
    overflow: hidden;
    background: #0b0f16;
    color: #f8fafc;
    display: grid;
    grid-template-rows: auto minmax(0,1fr)
}

.vnc-console-toolbar {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    padding: .65rem 1rem;
    border-bottom: 1px solid #ffffff1f;
    background: #151b25;
    box-shadow: 0 8px 24px #0005
}

.vnc-console-identity {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0
}

    .vnc-console-identity img {
        width: 40px;
        height: 40px;
        border-radius: 50%
    }

    .vnc-console-identity div {
        display: grid;
        min-width: 0
    }

    .vnc-console-identity small {
        color: #9aa6b7;
        font-size: .7rem
    }

    .vnc-console-identity strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .9rem
    }

.vnc-console-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex-wrap: wrap
}

.vnc-action-status {
    display: none;
    max-width: 230px;
    color: #b9f6ca;
    font-size: .68rem
}

    .vnc-action-status.is-visible {
        display: inline-block
    }

.vnc-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0;
    padding: .45rem .7rem;
    border: 1px solid #ffffff24;
    border-radius: 8px;
    background: #ffffff0c;
    color: #e9edf4;
    font: inherit;
    font-size: .72rem;
    font-weight: 750;
    cursor: pointer
}

    .vnc-console-actions > .vnc-toolbar-button {
        width: 36px;
        padding: .45rem
    }

    .vnc-console-actions > .vnc-toolbar-button span {
        font-size: .58rem;
        white-space: nowrap
    }

    .vnc-toolbar-button:hover {
        border-color: #ffbd1680;
        background: #ffbd1615
    }

    .vnc-toolbar-button:disabled {
        opacity: .45;
        cursor: not-allowed
    }

.vnc-close-button {
    border-color: #ff6b6b55;
    color: #ffb5b5
}

.vnc-clipboard-dialog {
    width: min(480px,calc(100% - 2rem));
    padding: 0;
    border: 1px solid #ffffff26;
    border-radius: 8px;
    background: #151b25;
    color: #f8fafc;
    box-shadow: 0 24px 80px #000a
}

    .vnc-clipboard-dialog::backdrop {
        background: #05070acc
    }

    .vnc-clipboard-dialog form {
        display: grid;
        gap: .75rem;
        padding: 1rem
    }

    .vnc-clipboard-dialog header, .vnc-dialog-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem
    }

    .vnc-clipboard-dialog label {
        color: #b5bfcd;
        font-size: .75rem
    }

    .vnc-clipboard-dialog textarea {
        min-height: 120px;
        resize: vertical;
        direction: auto
    }

.vnc-dialog-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e9edf4
}

.vnc-dialog-actions {
    justify-content: flex-end
}

.vnc-key-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .5rem
}

    .vnc-key-grid .vnc-toolbar-button {
        width: 100%
    }

    .vnc-key-grid .vnc-key-wide {
        grid-column: span 3
    }

.vnc-setting-range {
    display: grid;
    gap: .35rem
}

    .vnc-setting-range span {
        display: flex;
        justify-content: space-between
    }

    .vnc-setting-range input {
        width: 100%;
        accent-color: var(--brand)
    }

.vnc-setting-toggle {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 36px;
    padding: .35rem .5rem;
    border: 1px solid #ffffff18;
    border-radius: 6px
}

    .vnc-setting-toggle input {
        width: 17px;
        height: 17px;
        accent-color: var(--brand)
    }

.vnc-power-controls {
    display: grid;
    gap: .5rem;
    padding-top: .75rem;
    border-top: 1px solid #ffffff1f
}

    .vnc-power-controls[hidden] {
        display: none
    }

    .vnc-power-controls div {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap
    }

.vnc-paste-confirm {
    border-color: #ffbd1680;
    background: #ffbd1620;
    color: #ffd66f
}

.vnc-console-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #05070a
}

.vnc-console-display {
    width: 100%;
    height: 100%;
    overflow: hidden;
    direction: ltr
}

    .vnc-console-display > canvas {
        margin: auto
    }

.vnc-console-status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    place-content: center;
    place-items: center;
    gap: .8rem;
    background: #0b0f16e8;
    text-align: center
}

    .vnc-console-status strong {
        font-size: .9rem
    }

    .vnc-console-status[data-state=failed] strong {
        color: #ffb5b5
    }

    .vnc-console-status[data-state=closed] strong {
        color: #c5cedb
    }

.vnc-status-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ffffff24;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: vnc-spin .85s linear infinite
}

.vnc-console-status[data-state=failed] .vnc-status-spinner, .vnc-console-status[data-state=closed] .vnc-status-spinner {
    display: none
}

.vnc-console-status[hidden] {
    display: none !important
}

.open-invoice-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .65rem;
    margin-bottom: .65rem;
    padding: .7rem;
    border: 1px solid #f1d17c;
    border-radius: 8px;
    background: #fff8df;
    color: #735300
}

.server-invoice-alert {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    background: #fff7df;
    color: #8a5700;
    font: inherit;
    text-align: start;
    cursor: pointer
}

.server-invoice-alert-arrow {
    margin-inline-start: auto;
    font-size: .75rem
}

.invoice-message-modal .modal-dialog {
    max-width: 720px
}

.invoice-message-preview {
    white-space: pre-wrap;
    line-height: 2;
    text-align: right;
    unicode-bidi: plaintext
}

.invoice-message-preview code {
    display: inline-block;
    padding: .1rem .4rem;
    border-radius: 4px;
    background: #f1f3f5;
    color: #172033
}

.invoice-card-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: .8rem;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #f8f9fb
}

.invoice-card-copy > div {
    display: grid;
    gap: .2rem
}

@media (max-width: 575.98px) {
    .invoice-card-copy {
        align-items: stretch;
        flex-direction: column
    }
}

.server-invoice-alert.urgent {
    border-color: #dc3545;
    background: #fff0f1;
    color: #a71927
}

    .open-invoice-callout > i {
        font-size: 1.25rem
    }

    .open-invoice-callout div {
        display: grid
    }

    .open-invoice-callout span {
        font-size: .68rem
    }

.vnc-console-error {
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(520px,calc(100% - 2rem));
    padding: 2rem;
    border: 1px solid #ffffff1f;
    border-radius: 15px;
    background: #151b25;
    text-align: center;
    box-shadow: 0 20px 60px #0007
}

    .vnc-console-error h1 {
        margin: .8rem 0 .25rem
    }

    .vnc-console-error p {
        margin: .2rem 0 1.2rem;
        color: #b5bfcd
    }

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

@media(max-width:760px) {
    .vnc-console-toolbar {
        align-items: flex-start;
        min-height: 0
    }

    .vnc-console-identity {
        max-width: 42%
    }

    .vnc-console-actions {
        max-width: 58%
    }

    .vnc-toolbar-button {
        min-height: 32px;
        padding: .35rem .5rem;
        font-size: .65rem
    }

    .vnc-console-actions > .vnc-toolbar-button {
        width: 32px;
        padding: .35rem
    }
}

@media(max-width:480px) {
    .vnc-console-toolbar {
        display: grid
    }

    .vnc-console-identity, .vnc-console-actions {
        max-width: none
    }

    .vnc-console-actions {
        justify-content: flex-start
    }
}

/* Modern compact UI refresh */
:root {
    --surface: rgba(255,255,255,.86);
    --surface-strong: #fff;
    --accent: #7661d6;
    --accent-2: #f2b533;
    --ring: #7661d633;
    --soft-shadow: 0 14px 42px rgba(21,32,54,.09);
    --hover-shadow: 0 18px 54px rgba(21,32,54,.14)
}

body {
    background: radial-gradient(circle at top right,#fff4cf 0,transparent 28rem),linear-gradient(180deg,#f7f8fc,#eef2f8 55%,#f8fafc);
    font-size: 15px;
    line-height: 1.6
}

[lang=fa] body {
    font-size: 15.5px;
    line-height: 1.75
}

h1, h2, h3, .page-head h1, .section-head h2 {
    letter-spacing: -.02em
}

.admin-content h1 {
    font-size: 1.16rem
}

.page-head {
    margin-bottom: 1rem
}

    .page-head p, .section-head > p, .reference-card p {
        font-size: .8rem
    }

.panel, .auth-card, .plan, .server-card, .deploy-section, .stat-card, .reference-card, .reference-summary, .reference-more {
    background: var(--surface);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(16px);
    transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease
}

    .panel:hover, .plan:hover, .server-card:hover, .deploy-section:hover, .stat-card:hover, .reference-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--hover-shadow);
        border-color: #d7cfff
    }

.btn-primary, .btn-secondary, button, .gradient-action, .purple-action, .gold-action, .link-danger, .vnc-toolbar-button {
    min-height: 34px;
    border-radius: 9px;
    padding: .48rem .72rem;
    font-size: .76rem;
    line-height: 1.2;
    gap: .4rem
}

.btn-primary {
    background: linear-gradient(135deg,#f0b62c,#ffd45b);
    box-shadow: 0 8px 20px #f2b5332a;
    color: #281b00
}

    .btn-primary:hover, .gradient-action:hover, .purple-action:hover, .gold-action:hover, .btn-secondary:hover {
        transform: translateY(-1px)
    }

.btn-secondary {
    background: rgba(255,255,255,.82);
    border-color: #d8deea;
    color: #30394a
}

.compact {
    min-height: 30px;
    padding: .4rem .62rem;
    font-size: .72rem
}

input, select, textarea {
    min-height: 34px;
    border-radius: 9px;
    padding: .5rem .62rem;
    font-size: .82rem;
    background: rgba(255,255,255,.9);
    transition: border-color .16s ease,box-shadow .16s ease,background .16s ease
}

    input:focus, select:focus, textarea:focus {
        outline: 0;
        border-color: var(--accent);
        box-shadow: 0 0 0 4px var(--ring);
        background: #fff
    }

th, td {
    padding: .62rem .72rem
}

.admin-content table {
    font-size: .75rem
}

.admin-content th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(248,250,252,.96);
    backdrop-filter: blur(10px)
}

.status, .reference-status, .configured-badge {
    box-shadow: inset 0 0 0 1px #ffffff90
}

.site-header, .panel-header {
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(18px)
}

.admin-sidebar {
    background: linear-gradient(180deg,#172845,#111c31);
    box-shadow: 0 20px 55px #10213a30
}

.sidebar-nav a {
    transition: background .18s ease,color .18s ease,transform .18s ease
}

    .sidebar-nav a:hover {
        transform: translateX(-2px)
    }

[dir=ltr] .sidebar-nav a:hover {
    transform: translateX(2px)
}

.toast {
    border-radius: 14px;
    box-shadow: 0 16px 42px #11182720
}

.provider-busy-overlay {
    background: rgba(7,12,24,.44);
    backdrop-filter: blur(10px)
}

.provider-busy-card {
    border-radius: 20px;
    background: linear-gradient(180deg,#fff,#f8f6ff);
    box-shadow: 0 28px 90px #0e172a55;
    animation: modal-pop .22s cubic-bezier(.2,.8,.2,1)
}

.provider-busy-spinner {
    border-radius: 20px
}

.app-confirm-modal .modal-content {
    border: 1px solid #ffffffa6;
    border-radius: 22px;
    background: linear-gradient(180deg,#fff,#f8f8ff);
    box-shadow: 0 28px 90px #0e172a55;
    overflow: hidden
}

.app-confirm-modal .modal-header {
    align-items: center;
    gap: .8rem;
    border: 0;
    padding: 1rem 1rem .4rem
}

.app-confirm-modal .modal-title {
    margin: 0;
    font-size: .98rem;
    font-weight: 850
}

.app-confirm-modal [data-confirm-kicker] {
    margin: .1rem 0 0;
    color: var(--muted);
    font-size: .72rem
}

.app-confirm-modal .modal-body {
    padding: .55rem 1rem;
    color: #344054;
    font-size: .84rem
}

.app-confirm-modal .modal-footer {
    border: 0;
    padding: .4rem 1rem 1rem;
    gap: .45rem
}

.app-confirm-modal .btn-close {
    align-self: flex-start;
    min-height: auto;
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin: 0;
    margin-inline-start: auto;
    border: 0;
    border-radius: 10px;
    background-color: #f2f4f8;
    font-size: .75rem;
    opacity: .8
}

    .app-confirm-modal .btn-close:hover {
        opacity: 1;
        transform: none;
        box-shadow: none
    }

.confirm-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg,#fdf0c8,#eeeaff);
    color: #7358bb
}

.modal.fade .modal-dialog {
    transform: translateY(14px) scale(.98);
    transition: transform .22s cubic-bezier(.2,.8,.2,1)
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1)
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98)
    }

    to {
        opacity: 1;
        transform: none
    }
}

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

@media(max-width:760px) {
    body, [lang=fa] body {
        font-size: 14.5px
    }

    .container, nav, .panel-header nav {
        width: min(100% - 1rem,1180px)
    }

    .panel, .auth-card, .deploy-section, .reference-card {
        padding: .85rem
    }

    .panel-toolbar {
        gap: .55rem
    }

    .btn-primary, .btn-secondary, button, .gradient-action, .purple-action, .gold-action, .link-danger {
        width: auto
    }

    .app-confirm-modal .modal-dialog {
        margin: .75rem
    }

    .reference-button-row button {
        font-size: .66rem
    }
}

/* Admin users table */
.users-table td > strong {
    display: block;
    font-size: .8rem
}

.users-table td > small {
    display: block;
    margin-top: .15rem;
    color: var(--muted);
    font-size: .68rem
}

.user-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap
}

    .user-actions .inline {
        margin: 0
    }

.icon-btn {
    display: inline-grid !important;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0 !important;
    border-radius: 9px !important
}

    .icon-btn i {
        font-size: .82rem;
        line-height: 1
    }

.muted-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #f1f3f8;
    color: #7b8494;
    padding: .25rem .55rem;
    font-size: .68rem;
    font-weight: 700
}

.users-pagination-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: .85rem .3rem .2rem;
    margin-top: .45rem;
    font-size: .78rem;
    direction: ltr
}

    .users-pagination-footer > * {
        direction: rtl
    }

.users-page-size {
    justify-self: start
}

.users-pagination {
    justify-self: center;
    width: auto
}

.users-record-count {
    justify-self: end
}

.user-password-modal .modal-header p {
    margin: .1rem 0 0;
    color: var(--muted);
    font-size: .72rem
}

.password-modal-user {
    display: grid;
    gap: .1rem;
    margin-bottom: .75rem;
    padding: .55rem .65rem;
    border-radius: 10px;
    background: #f7f8fc
}

    .password-modal-user small, .form-hint {
        color: var(--muted);
        font-size: .7rem
    }

    .password-modal-user strong {
        font-size: .84rem
    }

@media(max-width:760px) {
    .users-pagination-footer {
        grid-template-columns: 1fr;
        justify-items: center
    }

    .users-page-size, .users-record-count, .users-pagination {
        justify-self: center
    }

    .users-pagination {
        grid-row: 1
    }

    .user-actions {
        align-items: flex-start
    }
}

.data-table-panel {
    padding: 0;
    overflow: hidden
}

.data-table-toolbar {
    display: grid;
    grid-template-columns: minmax(160px,1fr) minmax(260px,420px) minmax(160px,1fr);
    grid-template-areas: "title search actions";
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line)
}

[dir=rtl] .data-table-toolbar {
    grid-template-areas: "actions search title"
}

.data-table-title {
    grid-area: title;
    justify-self: start
}

    .data-table-title h2 {
        margin: 0;
        font-size: .95rem !important;
        line-height: 1.35
    }

    .data-table-title p {
        margin: .15rem 0 0;
        color: var(--muted);
        font-size: .68rem
    }

.data-table-search {
    grid-area: search;
    display: flex !important;
    justify-self: center;
    width: 100%;
    align-items: center;
    gap: .4rem;
    margin: 0
}

    .data-table-search .form-control {
        min-width: 0;
        width: 100%;
        height: 36px;
        margin: 0;
        font-size: .74rem
    }

.data-table-actions {
    grid-area: actions;
    display: flex;
    justify-self: end;
    align-items: center;
    gap: .4rem
}

    .data-table-actions form {
        display: block;
        margin: 0
    }

.data-table-toolbar .icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px
}

.data-table-panel > .table-responsive {
    margin: 0
}

.data-table-footer, .pagination-footer, .users-pagination-footer {
    display: grid !important;
    grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr);
    grid-template-areas: "count pages size";
    align-items: center;
    gap: 1rem;
    direction: rtl;
    border-top: 1px solid var(--line);
    padding: .75rem 1rem;
    margin: 0;
    font-size: .75rem
}

[dir=rtl] .data-table-footer, [dir=rtl] .pagination-footer, [dir=rtl] .users-pagination-footer {
    grid-template-areas: "size pages count"
}

.data-table-footer > *, .pagination-footer > *, .users-pagination-footer > * {
    direction: rtl
}

.data-table-footer .record-count, .pagination-footer .record-count, .users-record-count {
    grid-area: count;
    justify-self: start
}

.data-table-footer .pagination, .pagination-footer .pagination, .users-pagination {
    grid-area: pages;
    justify-self: center
}

.data-table-footer .page-size, .pagination-footer .page-size, .users-page-size {
    grid-area: size;
    justify-self: end
}

.table-action-group, .invoice-actions, .user-actions, .server-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .35rem;
    flex-wrap: nowrap
}

.table-static-footer .pagination-static {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--navy);
    color: #fff;
    font-weight: 700
}

@media(max-width:760px) {
    .data-table-toolbar {
        grid-template-columns: 1fr auto;
        grid-template-areas: "title actions" "search search"
    }

    .data-table-search {
        max-width: none
    }

    .data-table-footer, .pagination-footer, .users-pagination-footer {
        grid-template-columns: 1fr;
        grid-template-areas: "pages" "count" "size";
        justify-items: center
    }

        .data-table-footer .record-count, .pagination-footer .record-count, .users-record-count, .data-table-footer .page-size, .pagination-footer .page-size, .users-page-size {
            justify-self: center
        }
}

.login-modal-stage {
    min-height: calc(100vh - 250px)
}

.login-modal .modal-dialog {
    max-width: 430px
}

.login-modal .modal-content {
    border-radius: 12px;
    background: #fff
}

.login-modal .modal-header, .login-modal .modal-body, .login-modal .modal-footer {
    padding-inline: 1.35rem
}

.login-modal .modal-header {
    padding-top: 1.35rem
}

.login-modal .modal-title {
    font-size: 1.05rem !important
}

.login-modal-copy {
    max-width: 340px;
    color: var(--muted);
    font-size: .74rem
}

.login-modal .form-label {
    margin: 0 0 .3rem;
    font-size: .76rem
}

.login-modal .input-group-text {
    width: 42px;
    justify-content: center;
    border-color: #d7dce4;
    background: #f7f8fb;
    color: #6c7482
}

.login-modal .form-control {
    height: 42px;
    font-size: .8rem
}

.login-modal .form-check {
    display: flex;
    align-items: center;
    gap: .5rem
}

.login-modal .form-check-input {
    flex: 0 0 1rem;
    width: 1rem !important;
    height: 1rem !important;
    min-height: 1rem;
    margin: 0;
    padding: 0 !important
}

.login-modal .form-check-label {
    margin: 0;
    font-size: .75rem;
    font-weight: 600
}

.login-modal .modal-footer button {
    height: 42px
}

.rdp-connection-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .45rem
}

    .rdp-connection-actions > a {
        min-width: 0;
        padding: .55rem .6rem;
        text-align: center;
        font-size: .7rem
    }

.rdp-uri-action {
    border-color: #d7dce4;
    background: #fff;
    color: #3f4c61
}

@media(max-width:620px) {
    .login-modal .modal-dialog {
        margin: .65rem
    }

    .rdp-connection-actions {
        grid-template-columns: 1fr
    }
}

.data-table-toolbar {
    direction: ltr
}

    .data-table-toolbar > * {
        direction: ltr
    }

[dir=rtl] .data-table-toolbar > * {
    direction: rtl
}

[dir=ltr] .data-table-toolbar {
    grid-template-areas: "title search actions"
}

[dir=rtl] .data-table-toolbar {
    grid-template-areas: "actions search title"
}

[dir=rtl] .data-table-title {
    justify-self: end;
    text-align: right
}

[dir=rtl] .data-table-actions {
    justify-self: start
}

[dir=ltr] .data-table-title {
    justify-self: start
}

[dir=ltr] .data-table-actions {
    justify-self: end
}

.data-table-search {
    position: relative;
    display: block !important
}

    .data-table-search .form-control {
        padding-inline-end: 46px
    }

    .data-table-search > button.icon-btn {
        position: absolute;
        z-index: 2;
        inset-block-start: 2px;
        inset-inline-end: 2px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border: 0 !important;
        background: var(--brand) !important;
        color: #17120a !important;
        box-shadow: 0 5px 14px #ffbd1630;
        border-top-right-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
        left: 0;
        top: 0;
        height: 100%;
    }

        .data-table-search > button.icon-btn:hover {
            background: #ffca43 !important
        }

    .data-table-search > a.icon-btn {
        position: absolute;
        z-index: 2;
        inset-block-start: 2px;
        inset-inline-end: 38px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        background: #fff
    }

    .data-table-search:has(>a.icon-btn) .form-control {
        padding-inline-end: 80px
    }

    .data-table-search .icon-btn i {
        margin: 0
    }

.live-server-search .form-control {
    padding-inline-end: 12px
}

.live-server-search > a.icon-btn {
    inset-inline-end: 2px;
    left: auto;
    top: 2px
}

[dir=rtl] .live-server-search > a.icon-btn {
    right: auto;
    left: 2px
}

.live-server-search:has(>a.icon-btn) .form-control {
    padding-inline-end: 46px
}

.server-location-column {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    text-align: center;
    white-space: nowrap
}

.server-location-flag {
    display: inline-block;
    margin-inline-end: 5px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgb(15 23 42 / 10%);
    vertical-align: -2px
}

.server-location-code {
    direction: ltr;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 0
}
