@charset "UTF-8";

:root {
    --bg: #070b17;
    --bg-soft: #0d1326;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #10182d;
    --line: rgba(148, 163, 184, 0.18);
    --text: #eaf0ff;
    --muted: #9aa8c7;
    --cyan: #39d5ff;
    --green: #3ff0a1;
    --violet: #8b5cf6;
    --danger: #ff5c7a;
    --warning: #ffd166;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(57, 213, 255, 0.18), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(139, 92, 246, 0.20), transparent 26%),
        linear-gradient(180deg, #070b17 0%, #0a1021 46%, #070b17 100%);
    min-height: 100vh;
}

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

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 23, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #04110c;
    font-weight: 800;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    box-shadow: 0 12px 32px rgba(63, 240, 161, 0.25);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.admin-quick-access {
    position: fixed;
    left: 14px;
    top: 96px;
    z-index: 50;
    width: 11px;
    height: 11px;
    overflow: hidden;
    border: 1px solid rgba(63, 240, 161, 0.28);
    border-radius: 999px;
    color: transparent;
    background: rgba(63, 240, 161, 0.18);
    opacity: 0.28;
    transition: width .18s ease, height .18s ease, padding .18s ease, opacity .18s ease, color .18s ease;
}

.admin-quick-access:hover,
.admin-quick-access:focus-visible {
    width: auto;
    height: auto;
    padding: 7px 10px;
    color: #06101f;
    background: var(--green);
    opacity: 1;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .admin-quick-access {
        left: 8px;
        top: 76px;
        width: 18px;
        height: 18px;
        border-color: rgba(57, 213, 255, 0.32);
        background: rgba(57, 213, 255, 0.16);
        opacity: 0.42;
    }
}

.nav-pill {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.hero {
    padding: 86px 0 70px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.86fr);
    gap: 58px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    letter-spacing: 0;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-copy p {
    max-width: 650px;
    font-size: 18px;
}

.hero-actions,
.service-actions,
.admin-title-row,
.inline-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #0891b2);
    box-shadow: 0 14px 36px rgba(57, 213, 255, 0.22);
}

.btn-ghost,
.btn-soft {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.btn-soft {
    background: rgba(57, 213, 255, 0.08);
}

.btn-wide {
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    max-width: 650px;
}

.hero-stats span,
.metric-grid div,
.feature-card,
.price-card,
.form-card,
.summary-card,
.success-card,
.client-sidebar,
.service-card,
.info-panel,
.contact-card,
.detail-card,
.legal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-stats span {
    padding: 16px;
}

.hero-stats strong,
.hero-stats small {
    display: block;
}

.hero-stats small {
    color: var(--muted);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.server-card {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(57, 213, 255, 0.26);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(16, 24, 45, 0.96), rgba(8, 13, 28, 0.96)),
        repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, 0.03) 33px 34px);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.server-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
}

.server-top small {
    margin-left: auto;
    color: var(--muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.green { background: var(--green); }
.cyan { background: var(--cyan); }
.violet { background: var(--violet); }

.server-lines {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.server-lines span {
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(57, 213, 255, 0.18), rgba(63, 240, 161, 0.04));
}

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

.metric-grid div {
    padding: 18px;
    box-shadow: none;
}

.metric-grid strong,
.metric-grid small {
    display: block;
}

.metric-grid small {
    color: var(--muted);
    margin-top: 4px;
}

.floating-ticket {
    position: static;
    align-self: flex-end;
    width: min(250px, 100%);
    margin-right: 4px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(63, 240, 161, 0.28);
    background: rgba(6, 18, 27, 0.92);
    box-shadow: var(--shadow);
}

.floating-ticket span,
.floating-ticket small,
.floating-ticket strong {
    display: block;
}

.floating-ticket span,
.floating-ticket small {
    color: var(--muted);
}

.floating-ticket strong {
    margin: 8px 0;
}

.section {
    padding: 72px 0;
}

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

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.feature-grid,
.pricing-grid,
.faq-grid,
.detail-layout {
    display: grid;
    gap: 18px;
}

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

.feature-card {
    padding: 24px;
    box-shadow: none;
}

.feature-card span {
    color: var(--cyan);
    font-weight: 800;
}

.feature-card h3 {
    margin: 18px 0 10px;
}

.pricing-section {
    background: rgba(255, 255, 255, 0.02);
    border-block: 1px solid var(--line);
}

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

.price-card {
    position: relative;
    padding: 28px;
    box-shadow: none;
}

.price-card.recommended {
    border-color: rgba(63, 240, 161, 0.58);
    transform: translateY(-10px);
    background: linear-gradient(180deg, rgba(18, 33, 50, 0.96), rgba(12, 20, 36, 0.96));
}

.badge {
    position: absolute;
    top: -14px;
    left: 24px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #04110c;
    font-weight: 800;
    background: var(--green);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0 4px;
}

.price strong {
    font-size: 34px;
}

.year-price {
    color: var(--green);
    font-weight: 700;
    min-height: 24px;
}

.price-card ul,
.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 10px;
}

.price-card li,
.summary-card li {
    color: var(--muted);
}

.price-card li::before,
.summary-card li::before {
    content: "\2713";
    color: var(--green);
    margin-right: 8px;
}

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

.process-list div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.process-list strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #04110c;
    background: var(--green);
}

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

details {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

summary {
    cursor: pointer;
    font-weight: 800;
}

.subhero {
    padding: 70px 0 40px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.order-layout,
.contact-layout,
.dashboard-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

.order-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
}

.contact-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

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

.form-card,
.summary-card,
.success-card,
.contact-card,
.client-sidebar,
.service-card,
.info-panel,
.detail-card,
.legal-card {
    padding: 26px;
}

.form-card label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 16px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

textarea {
    resize: vertical;
}

select option {
    color: var(--text);
    background: #10182d;
}

select option.status-good,
.status-select.status-good {
    color: #052014;
    background: #3ff0a1;
}

select option.status-warning,
.status-select.status-warning {
    color: #241600;
    background: #ffd166;
}

select option.status-expiring,
.status-select.status-expiring {
    color: #2a1200;
    background: #ff9f45;
}

select option.status-danger,
.status-select.status-danger {
    color: #fff5f5;
    background: #ef4444;
}

select option.status-info,
.status-select.status-info {
    color: #041827;
    background: #60a5fa;
}

select option.status-neutral,
.status-select.status-neutral {
    color: #f8fafc;
    background: #64748b;
}

select option.status-muted,
.status-select.status-muted {
    color: var(--text);
    background: #334155;
}

.domain-helper {
    display: grid;
    gap: 12px;
    margin: -4px 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(57, 213, 255, 0.06);
}

.domain-helper.is-help-mode {
    border-color: rgba(63, 240, 161, 0.42);
    background: linear-gradient(135deg, rgba(63, 240, 161, 0.11), rgba(57, 213, 255, 0.07));
}

.domain-helper.is-own-mode {
    background: rgba(255, 255, 255, 0.035);
}

.domain-helper strong,
.domain-helper span {
    display: block;
}

.domain-helper span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.domain-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.domain-suggestions button {
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid rgba(57, 213, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(57, 213, 255, 0.10);
    cursor: pointer;
    overflow-wrap: anywhere;
}

.domain-suggestions button:hover {
    color: #ffffff;
    border-color: rgba(57, 213, 255, 0.72);
    background: rgba(57, 213, 255, 0.22);
}

.domain-suggestions button.is-recommended {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #0891b2);
}

.domain-empty {
    color: var(--muted);
    font-size: 13px;
}

.label-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(57, 213, 255, 0.12);
}

.field-error {
    border-color: var(--danger);
}

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

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

.radio-card {
    min-height: 68px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.radio-card input {
    width: auto;
    min-height: 0;
    margin-right: 8px;
}

.payment-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4px 8px;
}

.payment-choice span {
    color: var(--text);
    font-weight: 800;
}

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

.payment-choice:has(input:checked) {
    border-color: rgba(63, 240, 161, 0.65);
    background: rgba(63, 240, 161, 0.10);
}

.muted-choice {
    opacity: 0.66;
}

.check-line {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    color: var(--muted) !important;
    font-weight: 400 !important;
}

.check-line input {
    width: auto;
    min-height: 0;
    margin-top: 4px;
}

.check-line a {
    color: var(--cyan);
}

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

.summary-price strong {
    display: block;
    font-size: 36px;
}

.summary-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(63, 240, 161, 0.10);
}

.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
}

.alert-error {
    border-color: rgba(255, 92, 122, 0.55);
    background: rgba(255, 92, 122, 0.10);
}

.alert-success {
    border-color: rgba(63, 240, 161, 0.55);
    background: rgba(63, 240, 161, 0.10);
}

.payment-mode-alert {
    margin-top: 18px;
}

.payment-notice-box {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(63, 240, 161, 0.48);
    border-radius: 8px;
    color: var(--text);
    background: rgba(63, 240, 161, 0.10);
}

.payment-notice-box span {
    color: var(--muted);
}

.payment-order-info {
    margin-bottom: 16px;
}

.alert-warning {
    border-color: rgba(255, 209, 102, 0.55);
    background: rgba(255, 209, 102, 0.12);
}

.success-card {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #04110c;
    font-size: 36px;
    font-weight: 900;
    background: var(--green);
}

.order-number {
    display: block;
    margin: 12px 0 18px;
    font-size: 28px;
}

.client-sidebar a {
    display: block;
    padding: 12px;
    margin-top: 8px;
    border-radius: 8px;
    color: var(--muted);
}

.client-sidebar a.active,
.client-sidebar a:hover {
    color: var(--text);
    background: rgba(57, 213, 255, 0.10);
}

.avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #04110c;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.panel-top,
.service-head,
.service-meta,
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #04110c;
    font-weight: 800;
    background: var(--green);
}

.status-badge.status-good {
    color: #04110c;
    background: var(--green);
}

.status-badge.status-warning,
.status-badge.waiting {
    color: #1d1300;
    background: var(--warning);
}

.status-badge.status-expiring {
    color: #2a1200;
    background: #ff9f45;
}

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

.status-badge.status-info {
    color: #041827;
    background: #60a5fa;
}

.status-badge.status-neutral,
.status-badge.status-muted {
    color: #f8fafc;
    background: #64748b;
}

.mini-status-list .status-good {
    color: #55f0ad;
}

.mini-status-list .status-warning,
.mini-status-list .status-expiring {
    color: #ffd166;
}

.mini-status-list .status-danger {
    color: #ff8f8f;
}

.mini-status-list .status-info {
    color: #93c5fd;
}

.mini-status-list .status-neutral,
.mini-status-list .status-muted {
    color: var(--muted);
}

.service-card,
.info-panel {
    margin-top: 18px;
}

.service-meta {
    padding: 16px 0;
    border-block: 1px solid var(--line);
    margin: 18px 0;
}

.service-meta span,
.service-meta strong {
    display: block;
}

.service-meta span {
    color: var(--muted);
}

.service-meta strong {
    color: var(--text);
    margin-top: 4px;
}

.service-actions {
    margin-top: 18px;
    margin-bottom: 0;
}

.service-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 14px 0 18px;
}

.service-quick-actions form {
    margin: 0;
}

.service-quick-actions .btn-mini {
    min-height: 34px;
}

.admin-section {
    padding-top: 34px;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: auto;
}

.admin-table th,
.admin-table td {
    min-width: 0;
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.28;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.04);
}

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

.table-actions form {
    margin: 0;
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    white-space: normal;
    text-align: center;
}

.btn-mini.danger {
    color: #fff;
    border-color: rgba(255, 92, 122, 0.55);
    background: rgba(255, 92, 122, 0.18);
}

.empty-cell {
    text-align: center !important;
    color: var(--muted);
}

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

.detail-card.full {
    grid-column: 1 / -1;
}

.detail-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 18px;
}

.detail-list dt {
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
}

.detail-list .wide-label,
.detail-list .wide-value {
    grid-column: 1 / -1;
}

.detail-list .wide-label {
    margin-top: 10px;
}

.detail-note {
    max-height: 329px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 4px 0 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(7, 11, 23, 0.34);
    font: inherit;
    line-height: 1.35;
}

.notes-box {
    white-space: pre-wrap;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.legal-card h2 {
    margin-top: 28px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 18px;
}

.footer-brand .brand-mark {
    flex: 0 0 auto;
    transform: none;
}

.footer-brand strong {
    line-height: 1.15;
}

.footer-brand small {
    margin-top: 4px;
}

.footer-grid > div:first-child > p {
    max-width: 360px;
    margin-top: 0;
}

.footer-grid a,
.footer-grid p {
    display: block;
    color: var(--muted);
}

.footer-grid a {
    margin: 8px 0;
}

.footer-grid a.footer-brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--text);
}

.footer-grid a.footer-brand > span:not(.brand-mark) {
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

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

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.admin-tabs a {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.admin-tabs a:hover {
    color: var(--text);
    border-color: rgba(57, 213, 255, 0.45);
}

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

.stat-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.stat-card strong,
.stat-card span {
    display: block;
}

.stat-card strong {
    font-size: 30px;
}

.stat-card span {
    color: var(--muted);
    margin-top: 4px;
}

.panel-section {
    margin-top: 28px;
}

.account-help-grid,
.settings-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

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

.support-request-card,
.support-template-list article {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.support-request-card strong,
.support-template-list strong {
    color: var(--text);
}

.support-request-card span,
.support-template-list span {
    color: var(--muted);
    line-height: 1.55;
}

.support-request-card select,
.support-request-card textarea {
    width: 100%;
}

.support-template-list {
    display: grid;
    gap: 12px;
}

.section-subtitle {
    margin-top: 40px;
}

.table-wrap.compact {
    margin-top: 12px;
}

.row-form {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.row-form textarea {
    min-height: 58px;
}

.inline-form select,
.row-form select,
.row-form input,
.row-form textarea {
    min-height: 36px;
    font-size: 13px;
    width: 100%;
    min-width: 0;
}

.small-form {
    margin-bottom: 18px;
    box-shadow: none;
}

.ticket-list {
    display: grid;
    gap: 16px;
}

.ticket-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.public-chat-layout {
    display: block;
    max-width: 860px;
}

.public-chat-window {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(57, 213, 255, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(16, 24, 45, 0.98), rgba(9, 14, 30, 0.98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.chat-window-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.chat-window-head > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    align-items: center;
}

.chat-window-head small {
    grid-column: 2;
    color: var(--muted);
}

.chat-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(63, 240, 161, 0.11);
}

.public-chat-topic {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.public-chat-window .public-chat-thread {
    min-height: 390px;
    max-height: 58vh;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(57, 213, 255, 0.08), transparent 32%),
        rgba(7, 11, 23, 0.52);
}

.public-chat-window .public-chat-start-thread {
    min-height: 240px;
}

.public-chat-window .chat-message.admin {
    justify-self: start;
}

.public-chat-window .chat-message.client {
    justify-self: end;
}

.public-chat-window .chat-message {
    width: min(78%, 560px);
}

.public-chat-window .chat-message.admin .chat-body {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.065);
}

.public-chat-window .chat-message.client .chat-body {
    color: #04110c;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.chat-quick-actions[hidden],
[data-chat-menu-panel][hidden] {
    display: none !important;
}

.chat-assistant-options {
    padding: 0 18px 14px;
    text-align: center;
}

.public-chat-start-thread .chat-assistant-options {
    padding: 0;
}

.chat-quick-intro {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.chat-menu-grid {
    align-items: stretch;
    justify-content: center;
}

.chat-submenu {
    align-items: stretch;
    justify-content: center;
}

.chat-menu-back-row {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.chat-menu-back-row[hidden] {
    display: none;
}

.chat-menu-back-row button {
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    cursor: pointer;
    font-weight: 700;
}

.chat-menu-back-row button:hover {
    color: #04110c;
    border-color: transparent;
    background: var(--cyan);
}

.chat-quick-actions button {
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(96, 165, 250, 0.18);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.chat-quick-actions button[data-chat-menu] {
    border-color: rgba(45, 212, 191, 0.48);
    color: #ccfbf1;
    background: rgba(20, 184, 166, 0.18);
}

.chat-quick-actions button[data-chat-menu].is-active {
    color: #04110c;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.chat-quick-actions button:hover {
    color: #04110c;
    border-color: transparent;
    background: var(--cyan);
}

.chat-poll-status {
    min-height: 24px;
    padding: 4px 18px;
    color: var(--muted);
    font-size: 12px;
}

.chat-start-form {
    padding: 0 18px 18px;
}

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

.chat-subject-field {
    margin-top: 12px;
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.chat-composer-start {
    margin-top: 14px;
    padding: 14px 0 0;
}

.chat-composer textarea {
    min-height: 48px;
    resize: vertical;
}

.chat-composer .btn {
    min-height: 48px;
}

.source-badge {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.source-badge.guest {
    color: #04110c;
    border-color: transparent;
    background: var(--cyan);
}

.source-badge.client {
    color: #f8fafc;
    border-color: rgba(63, 240, 161, 0.45);
    background: rgba(63, 240, 161, 0.16);
}

.domain-card-list {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.domain-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.domain-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.domain-card-head span,
.domain-card dt {
    color: var(--muted);
    font-size: 13px;
}

.domain-card-head strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.domain-card dl {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 14px 0 0;
}

.domain-card dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.domain-note {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: inherit;
    color: var(--text);
}

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

.ticket-head h3,
.ticket-head p {
    margin: 0;
}

.ticket-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.chat-thread {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 11, 23, 0.46);
}

.admin-chat-thread {
    min-width: 360px;
    max-height: 320px;
}

.chat-message {
    width: min(86%, 680px);
}

.chat-message.admin {
    justify-self: end;
}

.chat-meta {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
}

.chat-body {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    line-height: 1.55;
}

.chat-message.admin .chat-body {
    color: #04110c;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.chat-reply-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.floating-chat-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 42;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #059669, #0891b2);
    box-shadow: 0 18px 44px rgba(57, 213, 255, 0.25);
    cursor: pointer;
}

.chat-button-mark {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #053025;
    background: rgba(255, 255, 255, 0.86);
    font-weight: 900;
}

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

.floating-chat-panel {
    position: fixed;
    right: 22px;
    bottom: 84px;
    z-index: 41;
    width: min(410px, calc(100vw - 28px));
    height: auto;
    max-height: calc(100dvh - 106px);
    overflow: hidden;
    display: grid;
    grid-template-rows: 58px auto;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 20px;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 0%, rgba(57, 213, 255, 0.13), transparent 34%),
        linear-gradient(180deg, #101827 0%, #0b1220 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

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

.floating-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text);
    background: rgba(7, 11, 23, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.floating-chat-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-chat-head > div:first-child {
    min-width: 0;
}

.floating-chat-head > div:first-child > span:last-child {
    min-width: 0;
}

.floating-chat-head strong,
.floating-chat-head small {
    display: block;
    white-space: nowrap;
}

.floating-chat-head small {
    font-size: 12px;
}

.brand-mark.mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
}

.floating-chat-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-chat-actions button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #cbd5e1;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.floating-chat-actions button:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.16);
}

.floating-chat-panel iframe {
    width: 100%;
    height: min(490px, calc(100dvh - 164px));
    max-height: calc(100dvh - 164px);
    border: 0;
    background: #0b1220;
}

.chat-embed-page {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(57, 213, 255, 0.12), transparent 32%),
        linear-gradient(180deg, #101827 0%, #0b1220 100%);
}

.chat-embed-shell {
    min-height: 100vh;
}

.chat-embed-page .public-chat-window {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    border: 0;
    border-radius: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(57, 213, 255, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(11, 18, 32, 0.98));
    box-shadow: none;
}

.chat-embed-page .chat-window-head {
    display: none;
}

.chat-embed-page .alert {
    margin: 12px;
}

.chat-embed-page .public-chat-topic {
    color: #9fb0ca;
    background: transparent;
    border-bottom-color: rgba(148, 163, 184, 0.22);
}

.chat-embed-page .public-chat-window .public-chat-thread {
    min-height: 0;
    max-height: none;
    padding: 18px;
    color: var(--text);
    background: transparent;
}

.chat-embed-page .public-chat-window .public-chat-start-thread {
    min-height: 230px;
}

.chat-embed-page .chat-meta {
    color: #93a4bd;
}

.chat-embed-page .public-chat-window .chat-message.admin .chat-body {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.075);
}

.chat-embed-page .public-chat-window .chat-message.client .chat-body {
    color: #04110c;
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.chat-embed-page .chat-quick-actions button {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(96, 165, 250, 0.13);
}

.chat-embed-page .chat-quick-actions button:hover {
    color: #04110c;
    border-color: transparent;
    background: var(--cyan);
}

.chat-embed-page .chat-quick-actions button[data-chat-menu] {
    color: #ccfbf1;
    border-color: rgba(45, 212, 191, 0.48);
    background: rgba(20, 184, 166, 0.16);
}

.chat-embed-page .chat-quick-actions button[data-chat-menu].is-active {
    color: #04110c;
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.chat-embed-page .chat-poll-status {
    color: #93a4bd;
    background: transparent;
}

.chat-embed-page .chat-start-form {
    padding: 0 18px 18px;
    background: transparent;
}

.chat-embed-page label {
    color: var(--text);
}

.chat-embed-page input,
.chat-embed-page textarea {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.055);
}

.chat-embed-page input::placeholder,
.chat-embed-page textarea::placeholder {
    color: #94a3b8;
}

.chat-embed-page .chat-composer {
    border-top-color: rgba(148, 163, 184, 0.22);
    background: transparent;
}

@media (max-width: 760px) {
    .floating-chat-button {
        right: 12px;
        bottom: 12px;
        min-height: 44px;
        padding: 0 16px;
    }

    .floating-chat-panel {
        left: 6px;
        right: 6px;
        bottom: 66px;
        width: auto;
        max-height: calc(100dvh - 78px);
        grid-template-rows: 56px auto;
        border-radius: 18px;
    }

    .floating-chat-head {
        padding: 8px 12px;
    }

    .floating-chat-panel iframe {
        height: min(420px, calc(100dvh - 138px));
        max-height: calc(100dvh - 138px);
    }

    .chat-embed-page .public-chat-window {
        min-height: 0;
        height: 100dvh;
    }

    .chat-embed-page .public-chat-window .public-chat-thread {
        padding: 14px 18px 10px;
    }

    .chat-embed-page .public-chat-window .public-chat-start-thread {
        min-height: 188px;
    }

    .chat-embed-page .chat-start-form {
        padding: 0 18px 14px;
    }

    .chat-embed-page .chat-composer-start {
        margin-top: 10px;
        padding-top: 12px;
    }

    .chat-embed-page .chat-quick-actions {
        gap: 6px;
    }

    .chat-embed-page .chat-quick-actions button {
        min-height: 30px;
        padding: 6px 10px;
    }
}

.access-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.access-box strong {
    display: block;
    margin-bottom: 8px;
}

.access-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

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

.fulfillment-item {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 1.2fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.fulfillment-item.done {
    border-color: rgba(63, 240, 161, 0.42);
    background: rgba(63, 240, 161, 0.08);
}

.task-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

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

.workflow-grid section {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.compact-list {
    margin-bottom: 12px;
}

.mini-status-list {
    display: grid;
    gap: 4px;
    min-width: 170px;
    color: var(--muted);
    font-size: 12px;
}

.payment-instructions {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(57, 213, 255, 0.34);
    border-radius: 8px;
    background: rgba(57, 213, 255, 0.08);
}

.payment-instructions span {
    color: var(--muted);
}

.automation-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid rgba(63, 240, 161, 0.36);
    border-radius: 8px;
    background: rgba(63, 240, 161, 0.08);
}

.automation-box p {
    margin: 6px 0 0;
    color: var(--muted);
}

.provisioning-log {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.provisioning-log p {
    margin: 8px 0;
    color: var(--muted);
}

.local-hosts-box {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(57, 213, 255, 0.24);
    border-radius: 8px;
    background: rgba(57, 213, 255, 0.06);
}

.local-hosts-box h3,
.local-hosts-box p {
    margin-top: 0;
}

.local-hosts-box pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(7, 11, 23, 0.6);
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #0a1021;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero-grid,
    .order-layout,
    .contact-layout,
    .public-chat-layout,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .account-help-grid,
    .settings-grid,
    .support-request-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 0;
    }

    .feature-grid,
    .pricing-grid,
    .faq-grid,
    .process-list,
    .footer-grid,
    .detail-layout,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .price-card.recommended {
        transform: none;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .hero {
        padding-top: 56px;
    }

    .hero-stats,
    .form-grid.two,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .floating-ticket {
        width: auto;
        align-self: stretch;
        margin: 0;
    }

    .server-card {
        padding: 16px;
    }

    .section {
        padding: 52px 0;
    }

    .form-card,
    .summary-card,
    .success-card,
    .contact-card,
    .client-sidebar,
    .service-card,
    .info-panel,
    .detail-card,
    .legal-card {
        padding: 20px;
    }

    .chat-start-grid,
    .chat-composer {
        grid-template-columns: 1fr;
    }

    .public-chat-window .chat-message {
        width: min(92%, 560px);
    }

    .service-actions {
        gap: 10px;
        margin-top: 16px;
    }

    .service-actions .btn,
    .service-quick-actions .btn-mini {
        min-height: 38px;
    }

    .service-quick-actions {
        gap: 8px;
        margin: 12px 0 16px;
    }
}

/* Admin panel */
body.admin-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(57, 213, 255, 0.12), transparent 24%),
        radial-gradient(circle at 92% 4%, rgba(139, 92, 246, 0.14), transparent 26%),
        linear-gradient(180deg, #07101d 0%, #070b17 46%, #050913 100%);
}

body.admin-page .site-header {
    background: rgba(7, 11, 23, 0.94);
}

body.admin-page .nav-shell {
    min-height: 64px;
}

body.admin-page .subhero.admin-hero {
    padding: 36px 0 30px;
    background:
        linear-gradient(135deg, rgba(57, 213, 255, 0.11), rgba(139, 92, 246, 0.10)),
        rgba(255, 255, 255, 0.02);
}

body.admin-page .admin-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}

body.admin-page .admin-title-row {
    justify-content: space-between;
    align-items: flex-end;
}

body.admin-page .admin-title-row h1 {
    margin: 8px 0 8px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.02;
}

body.admin-page .admin-title-row p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

body.admin-page .admin-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.admin-page .admin-section {
    padding: 28px 0 50px;
}

body.admin-page .admin-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

body.admin-page .admin-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-size: 14px;
}

body.admin-page .admin-tabs a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
}

body.admin-page .admin-tabs a.active {
    color: #04110c;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    box-shadow: 0 10px 28px rgba(57, 213, 255, 0.18);
}

body.admin-page .admin-tabs .logout-link {
    margin-left: auto;
    border-color: rgba(255, 92, 122, 0.24);
    color: #ffc1cb;
}

body.admin-page .stats-grid.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

body.admin-page .stat-card {
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(15, 23, 42, 0.72);
}

body.admin-page .stat-card strong {
    font-size: 34px;
    line-height: 1;
}

body.admin-page .stat-card span {
    margin-top: 8px;
    color: var(--muted);
}

body.admin-page .admin-toolbar {
    margin: 0 0 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.04);
}

body.admin-page .admin-toolbar label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--muted);
}

body.admin-page .admin-toolbar select {
    width: 260px;
}

body.admin-page .table-wrap {
    border-radius: 0 0 8px 8px;
    box-shadow: none;
}

body.admin-page .admin-table th {
    background: rgba(255, 255, 255, 0.055);
}

body.admin-page .admin-table td small {
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .admin-table a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .clients-table {
    min-width: 0;
    table-layout: fixed;
}

body.admin-page .clients-table th,
body.admin-page .clients-table td {
    padding: 12px 10px;
}

body.admin-page .clients-table th:nth-child(1),
body.admin-page .clients-table td:nth-child(1) {
    width: 22%;
}

body.admin-page .clients-table th:nth-child(2),
body.admin-page .clients-table td:nth-child(2) {
    width: 18%;
}

body.admin-page .clients-table th:nth-child(3),
body.admin-page .clients-table td:nth-child(3) {
    width: 22%;
}

body.admin-page .clients-table th:nth-child(4),
body.admin-page .clients-table td:nth-child(4) {
    width: 12%;
}

body.admin-page .clients-table th:nth-child(5),
body.admin-page .clients-table td:nth-child(5) {
    width: 14%;
}

body.admin-page .clients-table th:nth-child(6),
body.admin-page .clients-table td:nth-child(6) {
    width: 12%;
}

body.admin-page .clients-table td > strong,
body.admin-page .clients-table td > small {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .vertical-actions {
    flex-direction: column;
    align-items: stretch;
}

body.admin-page .vertical-actions .btn-mini {
    width: 100%;
}

body.admin-page .logs-filter {
    flex: 1 1 auto;
}

body.admin-page .logs-table {
    min-width: 0;
    table-layout: fixed;
}

body.admin-page .logs-table th:nth-child(1),
body.admin-page .logs-table td:nth-child(1) {
    width: 6%;
}

body.admin-page .logs-table th:nth-child(2),
body.admin-page .logs-table td:nth-child(2) {
    width: 14%;
}

body.admin-page .logs-table th:nth-child(3),
body.admin-page .logs-table td:nth-child(3) {
    width: 13%;
}

body.admin-page .logs-table th:nth-child(4),
body.admin-page .logs-table td:nth-child(4) {
    width: 17%;
}

body.admin-page .logs-table th:nth-child(5),
body.admin-page .logs-table td:nth-child(5) {
    width: 38%;
}

body.admin-page .logs-table th:nth-child(6),
body.admin-page .logs-table td:nth-child(6) {
    width: 12%;
}

body.admin-page .logs-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .services-table,
body.admin-page .tickets-table {
    min-width: 0;
    table-layout: fixed;
}

body.admin-page .services-table th,
body.admin-page .services-table td,
body.admin-page .tickets-table th,
body.admin-page .tickets-table td {
    padding: 12px 10px;
}

body.admin-page .services-table th:nth-child(1),
body.admin-page .services-table td:nth-child(1) {
    width: 5%;
}

body.admin-page .services-table th:nth-child(2),
body.admin-page .services-table td:nth-child(2) {
    width: 14%;
}

body.admin-page .services-table th:nth-child(3),
body.admin-page .services-table td:nth-child(3) {
    width: 13%;
}

body.admin-page .services-table th:nth-child(4),
body.admin-page .services-table td:nth-child(4) {
    width: 13%;
}

body.admin-page .services-table th:nth-child(5),
body.admin-page .services-table td:nth-child(5) {
    width: 9%;
}

body.admin-page .services-table th:nth-child(6),
body.admin-page .services-table td:nth-child(6) {
    width: 12%;
}

body.admin-page .services-table th:nth-child(7),
body.admin-page .services-table td:nth-child(7) {
    width: 34%;
}

body.admin-page .tickets-table th:nth-child(1),
body.admin-page .tickets-table td:nth-child(1) {
    width: 5%;
}

body.admin-page .tickets-table th:nth-child(2),
body.admin-page .tickets-table td:nth-child(2) {
    width: 18%;
}

body.admin-page .tickets-table th:nth-child(3),
body.admin-page .tickets-table td:nth-child(3) {
    width: 18%;
}

body.admin-page .tickets-table th:nth-child(4),
body.admin-page .tickets-table td:nth-child(4) {
    width: 34%;
}

body.admin-page .tickets-table th:nth-child(5),
body.admin-page .tickets-table td:nth-child(5) {
    width: 25%;
}

body.admin-page .services-table .row-form,
body.admin-page .tickets-table .row-form {
    width: 100%;
}

body.admin-page .services-table .service-delete-form {
    margin-top: 8px;
}

body.admin-page .services-table .service-delete-form .btn-mini {
    width: 100%;
}

body.admin-page .services-table .row-form textarea,
body.admin-page .tickets-table .row-form textarea {
    max-width: 100%;
    resize: vertical;
}

body.admin-page .tickets-table .admin-chat-thread {
    width: 100%;
    min-width: 0;
    max-height: 260px;
}

body.admin-page .tickets-table .chat-message {
    width: min(100%, 620px);
}

body.admin-page .tickets-table-compact th:nth-child(1),
body.admin-page .tickets-table-compact td:nth-child(1) {
    width: 27%;
}

body.admin-page .tickets-table-compact th:nth-child(2),
body.admin-page .tickets-table-compact td:nth-child(2) {
    width: 43%;
}

body.admin-page .tickets-table-compact th:nth-child(3),
body.admin-page .tickets-table-compact td:nth-child(3) {
    width: 30%;
}

body.admin-page .ticket-meta-cell {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .ticket-meta-cell > strong,
body.admin-page .ticket-meta-cell > small,
body.admin-page .ticket-meta-cell > span:not(.source-badge) {
    display: block;
}

body.admin-page .ticket-preview {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

body.admin-page .ticket-preview p {
    margin: 6px 0 0;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .ticket-thread-details {
    margin-top: 8px;
}

body.admin-page .ticket-thread-details summary {
    cursor: pointer;
    color: var(--cyan);
    font-weight: 800;
}

body.admin-page .ticket-thread-details .admin-chat-thread {
    margin-top: 10px;
    max-height: 220px;
    overflow: auto;
}

body.admin-page .ticket-actions {
    display: grid;
    gap: 8px;
}

body.admin-page .ticket-actions .btn-mini,
body.admin-page .ticket-delete-form .btn-mini {
    width: 100%;
}

body.admin-page .orders-table {
    font-size: 12px;
    min-width: 0;
    table-layout: fixed;
}

body.admin-page .orders-table * {
    max-width: 100%;
    min-width: 0;
}

body.admin-page .orders-table th:nth-child(1),
body.admin-page .orders-table td:nth-child(1) {
    width: 24%;
}

body.admin-page .orders-table th,
body.admin-page .orders-table td {
    padding: 9px 7px;
    font-size: 12px;
    line-height: 1.22;
}

body.admin-page .orders-table th:nth-child(2),
body.admin-page .orders-table td:nth-child(2) {
    width: 22%;
}

body.admin-page .orders-table th:nth-child(3),
body.admin-page .orders-table td:nth-child(3) {
    width: 16%;
}

body.admin-page .orders-table th:nth-child(4),
body.admin-page .orders-table td:nth-child(4) {
    width: 23%;
}

body.admin-page .orders-table th:nth-child(5),
body.admin-page .orders-table td:nth-child(5) {
    width: 15%;
}

body.admin-page .orders-table td > strong,
body.admin-page .orders-table td > small {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .orders-table td > small {
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.22;
}

body.admin-page .orders-table .status-badge {
    width: 100%;
    justify-content: center;
    min-width: 0;
    margin-bottom: 10px;
    padding: 7px 6px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .orders-table .mini-status-list {
    gap: 2px;
    font-size: 10.5px;
    line-height: 1.2;
}

body.admin-page .orders-table .table-actions {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

body.admin-page .orders-table .btn-mini {
    width: auto;
    min-height: 28px;
    flex: 1 1 58px;
    padding-inline: 5px;
    font-size: 11.5px;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.admin-page .orders-table .table-actions form {
    width: auto;
    flex: 1 1 50px;
}

body.admin-page .empty-cell {
    padding: 26px 12px;
    color: var(--muted);
    text-align: center;
}

body.admin-page .site-footer {
    padding: 18px 0;
}

body.admin-page .footer-grid {
    display: none;
}

body.admin-page .footer-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: 13px;
}

@media (max-width: 920px) {
    body.admin-page .admin-title-row {
        align-items: flex-start;
    }

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

    .workflow-grid,
    .fulfillment-item,
    .automation-box {
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-direction: column;
    }

    body.admin-page .admin-tabs .logout-link {
        margin-left: 0;
    }
}

@media (max-width: 620px) {
    body.admin-page .stats-grid.admin-stats {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-toolbar,
    body.admin-page .admin-toolbar label {
        align-items: stretch;
        flex-direction: column;
    }

    body.admin-page .admin-toolbar select {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.035);
        overflow: hidden;
    }

    .admin-table td {
        padding: 11px 12px;
    }

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

    .table-actions,
    .inline-form {
        align-items: stretch;
    }

    .table-actions .btn-mini,
    .inline-form .btn-mini {
        flex: 1 1 auto;
    }
}
