:root {
    --srv-bg: #eef2f7;
    --srv-surface: #ffffff;
    --srv-border: #e2e8f0;
    --srv-border-strong: #cbd5e1;
    --srv-primary: #2563eb;
    --srv-primary-hover: #1d4ed8;
    --srv-primary-soft: #eff6ff;
    --srv-text: #0f172a;
    --srv-muted: #64748b;
    --srv-success: #059669;
    --srv-radius: 12px;
    --srv-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body.lease-servers-page,
body.lease-server-detail-page {
    font-family: 'Work Sans', sans-serif;
    background: var(--srv-bg) !important;
}

body.lease-servers-page #site-wrapper,
body.lease-server-detail-page #site-wrapper {
    background: var(--srv-bg) !important;
}

/* Keep lang dropdown unclipped; appearance matches site-wide bootstrap-select (style.css + topmenu). */
body.lease-servers-page #header .header-customize,
body.lease-servers-page #header .lang_selector_elem,
body.lease-servers-page #header .lang_selector_elem .bootstrap-select,
body.lease-server-detail-page #header .header-customize,
body.lease-server-detail-page #header .lang_selector_elem,
body.lease-server-detail-page #header .lang_selector_elem .bootstrap-select {
    overflow: visible;
}

body.lease-servers-page #header .lang_selector_elem .bootstrap-select .dropdown-menu,
body.lease-server-detail-page #header .lang_selector_elem .bootstrap-select .dropdown-menu {
    z-index: 2000;
    min-width: 100%;
}

body.lease-servers-page #header .lang_selector_elem .filter-option-inner-inner,
body.lease-server-detail-page #header .lang_selector_elem .filter-option-inner-inner {
    font-weight: normal;
}

.srv-hero {
    background: linear-gradient(165deg, #f8fafc 0%, #e8eef8 45%, #eef2f7 100%);
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--srv-border);
    margin-top: 120px;
}

.srv-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.srv-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--srv-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.srv-hero p {
    font-size: 1.125rem;
    color: var(--srv-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

.srv-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.srv-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--srv-surface);
    border: 1px solid var(--srv-border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--srv-muted);
}

.srv-pill i {
    color: var(--srv-primary);
}

.srv-layout {
    max-width: 1140px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

body.lease-servers-page .srv-hero-inner,
body.lease-servers-page .srv-layout,
body.lease-server-detail-page .srv-layout {
    max-width: min(1480px, calc(100vw - 0.2rem));
}

.srv-card {
    background: var(--srv-surface);
    border: 1px solid var(--srv-border);
    border-radius: var(--srv-radius);
    box-shadow: var(--srv-shadow);
    padding: 1.75rem;
}

.srv-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.srv-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 140px;
    opacity: 0.45;
    transition: opacity 0.25s ease;
}

.srv-step.active,
.srv-step.done {
    opacity: 1;
}

.srv-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--srv-border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--srv-muted);
    background: #f8fafc;
    flex-shrink: 0;
}

.srv-step.active .srv-step-icon {
    border-color: var(--srv-primary);
    background: var(--srv-primary);
    color: #fff;
}

.srv-step.done .srv-step-icon {
    border-color: var(--srv-success);
    background: var(--srv-success);
    color: #fff;
}

.srv-step-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--srv-text);
    line-height: 1.3;
}

.srv-step-connector {
    flex: 0 0 24px;
    height: 2px;
    background: var(--srv-border);
}

.srv-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--srv-text);
    margin-bottom: 1rem;
}

.srv-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.srv-choice-btn {
    border: 2px solid var(--srv-border);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    background: #fafbfc;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--srv-text);
}

.srv-choice-btn:hover {
    border-color: var(--srv-primary);
    background: var(--srv-primary-soft);
}

.srv-choice-btn.selected {
    border-color: var(--srv-primary);
    background: var(--srv-primary-soft);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.srv-os-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 88px;
    justify-content: center;
}

.srv-os-btn i {
    font-size: 1.5rem;
    color: var(--srv-muted);
}

.srv-os-btn.selected i {
    color: var(--srv-primary);
}

.srv-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.srv-server-tile {
    border: 2px solid var(--srv-border);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.srv-server-tile:hover {
    border-color: var(--srv-primary);
}

.srv-server-tile.selected {
    border-color: var(--srv-primary);
    background: var(--srv-primary-soft);
}

.srv-server-tile h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--srv-text);
}

.srv-spec-line {
    font-size: 0.8125rem;
    color: var(--srv-muted);
    margin-bottom: 0.35rem;
}

.srv-badge-eoi {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
}

.srv-badge-price {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--srv-primary);
}

.srv-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--srv-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.srv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.srv-btn-primary {
    background: var(--srv-primary);
    color: #fff;
}

.srv-btn-primary:hover {
    background: var(--srv-primary-hover);
    color: #fff;
}

.srv-btn-secondary {
    background: #fff;
    color: var(--srv-text);
    border: 1px solid var(--srv-border-strong);
}

.srv-btn-secondary:hover {
    background: #f8fafc;
}

.srv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.srv-panel {
    display: none;
}

.srv-panel.active {
    display: block;
}

.srv-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.srv-form-group {
    margin-bottom: 1rem;
}

.srv-form-group:last-of-type {
    margin-bottom: 0;
}

.srv-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--srv-text);
    margin-bottom: 0.4rem;
}

.srv-form-group input:not([type="checkbox"]):not([type="radio"]),
.srv-form-group select,
.srv-form-group textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--srv-border-strong);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--srv-text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.srv-form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.srv-form-group select:focus,
.srv-form-group textarea:focus {
    outline: none;
    border-color: var(--srv-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.srv-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.srv-form-group textarea {
    min-height: 5.5rem;
    resize: vertical;
}

/* Quantity stepper (same pattern as listing product pages) */
.srv-form-group .srv-qty-stepper.input-group {
    border: 1px solid var(--srv-border-strong);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    background: #fff;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.srv-form-group .srv-qty-stepper input[type='button'] {
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px;
    height: auto;
    min-height: 42px;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #f8fafc;
    color: var(--srv-text);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.srv-form-group .srv-qty-stepper input[type='button']:hover {
    background: var(--srv-text);
    color: #fff;
}

.srv-form-group .srv-qty-stepper .quantity-field {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 0.5rem !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: center;
    font-weight: 600;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.srv-form-group .srv-qty-stepper .quantity-field:focus {
    box-shadow: none;
    border-color: transparent;
}

.srv-form-group .srv-qty-stepper .quantity-field::-webkit-outer-spin-button,
.srv-form-group .srv-qty-stepper .quantity-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.srv-form-group.full {
    grid-column: 1 / -1;
}

.srv-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.srv-benefit {
    text-align: left;
}

.srv-benefit-icon {
    font-size: 1.5rem;
    color: var(--srv-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.srv-benefit h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--srv-text);
}

.srv-benefit p {
    font-size: 0.9rem;
    color: var(--srv-muted);
    margin: 0;
    line-height: 1.55;
}

.srv-catalog-lead {
    color: var(--srv-muted);
    max-width: 720px;
    margin-bottom: 0;
}

.srv-custom-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 1.75rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 55%, #f0f9ff 100%);
    border-color: #dbeafe;
}

.srv-custom-cta-text h3 {
    margin: 0 0 0.35rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--srv-text);
}

.srv-custom-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--srv-muted);
    max-width: 42rem;
}

#srv-custom-open {
    flex-shrink: 0;
    white-space: nowrap;
}

#srv-custom-open i {
    margin-right: 0.45rem;
}

/* Above .sticky-area (z-index 9999) and site chrome */
body.lease-servers-page.modal-open .modal-backdrop {
    z-index: 10040;
}

body.lease-servers-page .srv-custom-modal {
    z-index: 10050;
    padding: 1rem !important;
    overflow-x: hidden;
    overflow-y: auto;
}

body.lease-servers-page .srv-custom-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body.lease-servers-page .srv-custom-modal .modal-dialog {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: auto;
    transform: none !important;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

body.lease-servers-page .srv-custom-modal.fade .modal-dialog,
body.lease-servers-page .srv-custom-modal.show .modal-dialog,
body.lease-servers-page .srv-custom-modal .modal-dialog {
    transform: none !important;
}

.srv-custom-modal .modal-content {
    border: 1px solid var(--srv-border);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    max-height: min(680px, calc(100vh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

.srv-custom-modal .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--srv-border);
    padding: 1rem 1.25rem;
}

.srv-custom-modal .modal-header .close {
    margin: 0;
    padding: 0.25rem;
    flex-shrink: 0;
}

.srv-custom-modal-head {
    flex: 1;
    min-width: 0;
}

.srv-custom-modal .modal-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--srv-text);
    margin: 0;
    line-height: 1.35;
}

.srv-custom-modal-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--srv-muted);
    margin: 0.35rem 0 0;
}

.srv-custom-modal .srv-custom-form-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.srv-custom-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.85rem 1.25rem 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.srv-custom-modal .modal-footer,
.srv-custom-modal .srv-custom-modal-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--srv-border);
    padding: 0.85rem 1.25rem 1rem;
    background: #fff;
    border-radius: 0 0 14px 14px;
}

.srv-custom-modal .modal-footer .srv-eoi-submit,
.srv-custom-modal .srv-custom-modal-footer .srv-eoi-submit {
    width: 100%;
    margin: 0;
}

.srv-custom-modal .srv-consent--pinned {
    margin: 0;
    padding: 0;
    border-top: none;
    gap: 0.5rem;
}

.srv-custom-modal .srv-form-group {
    margin-bottom: 0.75rem;
}

.srv-custom-modal .srv-form-group:last-of-type {
    margin-bottom: 0;
}

.srv-custom-modal .srv-consent--compact {
    margin: 0.65rem 0 0;
    padding-top: 0.65rem;
    gap: 0.55rem;
}

.srv-custom-modal .srv-consent--compact .srv-consent-text {
    font-size: 0.75rem;
    line-height: 1.45;
}

.srv-custom-modal .srv-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.srv-custom-modal .srv-field-hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--srv-muted);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.srv-custom-modal .bootstrap-select .dropdown-menu {
    z-index: 1060;
}

.srv-catalog-section {
    margin-top: 0;
}

.srv-catalog-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.srv-catalog-panel {
    margin-top: 1.5rem;
    padding: 0;
    overflow: hidden;
}

.srv-catalog-table-wrap {
    overflow-x: visible;
}

.srv-catalog-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.srv-catalog-table thead th {
    background: #f8fafc;
    color: var(--srv-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--srv-border);
}

.srv-catalog-table thead th.col-server {
    width: 18%;
}

.srv-catalog-table thead th.col-spec:not(.col-spec-storage) {
    width: 12%;
}

.srv-catalog-table thead th.col-spec-storage {
    width: 22%;
}

.srv-catalog-table thead th.col-lease {
    width: 17%;
}

.srv-catalog-table thead th.col-action {
    width: 16%;
    padding-right: 1rem;
}

.srv-catalog-table tbody td {
    padding: 0.85rem 0.85rem;
    font-size: 0.875rem;
    color: var(--srv-text);
    border-bottom: 1px solid var(--srv-border);
    vertical-align: middle;
}

.srv-catalog-table tbody td.col-action {
    padding-right: 1rem;
}

.srv-catalog-table tbody td.col-server,
.srv-catalog-table tbody td.col-spec {
    overflow: hidden;
}

.srv-catalog-table tbody tr:last-child td {
    border-bottom: none;
}

.srv-catalog-table tbody tr:hover td {
    background: #fafbfc;
}

.srv-catalog-table .col-lease {
    line-height: 1.4;
}

.srv-catalog-table .col-action {
    text-align: right;
}

.srv-list-server {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.srv-list-thumb {
    flex-shrink: 0;
    align-self: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--srv-border);
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.srv-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.srv-list-thumb .srv-thumb-icon {
    font-size: 1.125rem;
    color: #94a3b8;
}

.srv-list-server-text {
    flex: 1;
    min-width: 0;
}

.srv-list-server-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--srv-text);
    text-decoration: none;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srv-list-server-name:hover {
    color: var(--srv-primary);
}

.srv-list-server-meta {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--srv-muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.srv-list-spec {
    display: block;
    color: var(--srv-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.srv-list-lease-price {
    font-weight: 600;
    color: var(--srv-primary);
    font-size: 0.875rem;
}

.srv-list-lease-eoi {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    line-height: 1.35;
    max-width: 12rem;
    white-space: normal;
}

.srv-list-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--srv-border-strong);
    border-radius: 999px;
    background: var(--srv-surface);
    color: var(--srv-text);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
    text-align: left;
    max-width: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.srv-list-action-pill:hover {
    border-color: var(--srv-primary);
    background: var(--srv-primary-soft);
    color: var(--srv-text);
}

.srv-list-action-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.srv-list-action-dot--lease {
    background: var(--srv-success);
}

.srv-list-action-dot--eoi {
    background: #f59e0b;
}

/* Detail page — clear floating site header (#header.header-float) */
body.lease-server-detail-page {
    scroll-padding-top: 120px;
}

.srv-layout.srv-detail-page {
    margin-top: 128px;
}

@media (min-width: 768px) {
    .srv-layout.srv-detail-page {
        margin-top: 148px;
    }
}

@media (min-width: 1200px) {
    .srv-layout.srv-detail-page {
        margin-top: 172px;
    }
}

.srv-detail-header-card {
    background: var(--srv-surface);
    border: 1px solid var(--srv-border);
    border-radius: var(--srv-radius);
    box-shadow: var(--srv-shadow);
    margin-bottom: 1.5rem;
    overflow-x: clip;
    overflow-y: visible;
}

.srv-detail-header-top {
    padding: 1.25rem 1.75rem 0;
}

.srv-detail-header-nav {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
}

.srv-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    color: var(--srv-muted);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.srv-detail-back:hover {
    color: var(--srv-text);
    background: #f1f5f9;
    text-decoration: none;
}

.srv-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--srv-muted);
    margin: 0;
    min-width: 0;
    flex: 1 1 0;
}

.srv-breadcrumb a {
    color: var(--srv-muted);
    font-weight: 500;
    text-decoration: none;
}

.srv-breadcrumb a:hover {
    color: var(--srv-primary);
}

.srv-breadcrumb-sep {
    color: #94a3b8;
}

.srv-breadcrumb-current {
    color: var(--srv-text);
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.srv-detail-hero {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.75rem 0;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.srv-detail-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--srv-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.srv-detail-icon i {
    font-size: 1.35rem;
    color: var(--srv-primary);
}

.srv-detail-hero-text {
    min-width: 0;
    flex: 1;
}

.srv-detail-hero-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: var(--srv-text);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    hyphens: auto;
}

.srv-detail-submeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--srv-muted);
    line-height: 1.45;
}

.srv-detail-dot {
    color: #cbd5e1;
    user-select: none;
}

.srv-detail-header-card .srv-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 1.25rem 1.75rem 0;
}

.srv-detail-header-card .srv-pill-row {
    margin-top: 0;
}

.srv-detail-tabs-bar {
    margin-top: 1.25rem;
    padding: 0 1.75rem;
    border-top: 1px solid var(--srv-border);
}

.srv-tabs {
    display: flex;
    gap: 1.75rem;
    margin-top: 0;
    border-bottom: none;
}

.srv-detail-header-card .srv-tab {
    padding: 1rem 0;
    margin-bottom: -1px;
}

.srv-tab {
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--srv-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.srv-tab:focus,
.srv-tab:focus-visible {
    outline: none;
    box-shadow: none;
}

.srv-tab.active {
    color: var(--srv-primary);
    border-bottom-color: var(--srv-primary);
}

.srv-tab-panel {
    display: none;
    margin-bottom: 1rem;
}

.srv-tab-panel.active {
    display: block;
}

.srv-detail-grid > div > .srv-tab-panel:not(.active) {
    display: none;
}

.srv-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.srv-sidebar-card {
    position: sticky;
    top: 100px;
}

.srv-eoi-box {
    background: linear-gradient(135deg, #f7fcff, #eff7ff);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.srv-eoi-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--srv-text);
}

.srv-eoi-box-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
    color: #78350f;
}

.srv-eoi-form {
    margin-top: 0;
}

.srv-consent {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.25rem 0 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--srv-border);
}

.srv-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.srv-consent-check {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    margin: 0.15rem 0 0;
    padding: 0;
    accent-color: var(--srv-primary);
    cursor: pointer;
}

.srv-consent-text {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--srv-muted);
}

.srv-consent-text a {
    color: var(--srv-primary);
    font-weight: 600;
    text-decoration: none;
}

.srv-consent-text a:hover {
    text-decoration: underline;
}

.srv-eoi-submit {
    width: 100%;
    margin-top: 0.25rem;
}

.srv-form-group--customer-type .option-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--srv-text);
    margin-bottom: 0.4rem;
    text-transform: none;
    letter-spacing: normal;
    opacity: 1;
}

.srv-customer-type-select.select-custom::after,
.srv-customer-type-select.select-custom::before {
    display: none;
}

.srv-customer-type-select .bootstrap-select {
    width: 100% !important;
}

.srv-customer-type-select .bootstrap-select > .dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid var(--srv-border-strong);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    background: #fff;
    color: var(--srv-text);
    box-shadow: none;
}

.srv-customer-type-select .bootstrap-select > .dropdown-toggle:focus,
.srv-customer-type-select .bootstrap-select > .dropdown-toggle:focus-visible {
    outline: none;
    border-color: var(--srv-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.srv-customer-type-select .bootstrap-select .dropdown-menu {
    border-radius: 8px;
    border-color: var(--srv-border-strong);
    box-shadow: var(--srv-shadow);
    max-height: 280px;
}

.srv-customer-type-select .bootstrap-select .dropdown-menu li a {
    font-size: 0.9375rem;
    padding: 0.5rem 0.85rem;
}

.srv-form-group--customer-type select.srv-customer-type-picker {
    width: 100%;
}

.srv-vat-optional-hint {
    font-weight: 400;
    color: var(--srv-muted);
    font-size: 0.75rem;
}

.srv-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.srv-spec-table tr {
    border-bottom: 1px solid var(--srv-border);
}

.srv-spec-table th,
.srv-spec-table td {
    padding: 0.75rem 0;
    text-align: left;
    font-size: 0.9375rem;
}

.srv-spec-table th {
    color: var(--srv-muted);
    font-weight: 500;
    width: 40%;
}

.srv-lease-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.srv-lease-form-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.srv-vat-switch-wrap {
    flex-shrink: 0;
}

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

.srv-vat-switch-lbl {
    display: block;
    position: relative;
    min-width: 148px;
    max-width: 168px;
    min-height: 36px;
    background: var(--srv-border);
    border-radius: 100px;
    cursor: pointer;
    border: 2px solid var(--srv-border-strong);
    user-select: none;
}

.srv-vat-switch-toggle {
    position: absolute;
    width: 50%;
    height: 100%;
    background: var(--srv-surface);
    border-radius: 100px;
    left: 0;
    top: 0;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.srv-vat-switch-input:checked + .srv-vat-switch-lbl .srv-vat-switch-toggle {
    transform: translateX(100%);
}

.srv-vat-switch-names {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

.srv-vat-name {
    padding: 0 8px;
    text-align: center;
}

.srv-vat-switch-input:not(:checked) + .srv-vat-switch-lbl .srv-vat-name--excl {
    color: var(--srv-text);
}

.srv-vat-switch-input:not(:checked) + .srv-vat-switch-lbl .srv-vat-name--incl {
    color: var(--srv-muted);
    opacity: 0.85;
}

.srv-vat-switch-input:checked + .srv-vat-switch-lbl .srv-vat-name--incl {
    color: var(--srv-text);
}

.srv-vat-switch-input:checked + .srv-vat-switch-lbl .srv-vat-name--excl {
    color: var(--srv-muted);
    opacity: 0.85;
}

.srv-vat-switch-input:focus-visible + .srv-vat-switch-lbl {
    outline: 2px solid var(--srv-primary);
    outline-offset: 2px;
}

.srv-leasing-option {
    border: 2px solid var(--srv-border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: block;
}

.srv-leasing-option:has(input:checked) {
    border-color: var(--srv-primary);
    background: var(--srv-primary-soft);
}

.srv-leasing-option input {
    margin-right: 0.5rem;
}

.srv-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--srv-muted);
}

@media (max-width: 991px) {
    body.lease-servers-page .srv-hero-inner,
    body.lease-servers-page .srv-layout {
        max-width: 1140px;
    }

    .srv-custom-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    #srv-custom-open {
        width: 100%;
    }

    .srv-custom-modal .srv-form-grid-2,
    .srv-custom-modal .srv-form-grid-2--vat {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.lease-servers-page .srv-custom-modal {
        padding: 0.75rem !important;
        padding-top: max(0.75rem, env(safe-area-inset-top, 0px)) !important;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
    }

    body.lease-servers-page .srv-custom-modal.show {
        align-items: flex-start;
    }

    body.lease-servers-page .srv-custom-modal .modal-dialog {
        max-height: calc(100vh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        margin-top: 0;
    }

    .srv-custom-modal .modal-content {
        max-height: calc(100vh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    .srv-catalog-table-wrap {
        overflow-x: visible;
    }

    .srv-catalog-table {
        table-layout: auto;
        min-width: 0;
    }

    .srv-catalog-table thead {
        display: none;
    }

    .srv-catalog-table tbody tr {
        display: block;
        padding: 1rem 1rem 1.15rem;
        border-bottom: 1px solid var(--srv-border);
    }

    .srv-catalog-table tbody tr:last-child {
        border-bottom: none;
    }

    .srv-catalog-table tbody td {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        overflow: visible;
        text-align: left;
    }

    .srv-catalog-table tbody td + td {
        margin-top: 0.65rem;
    }

    .srv-catalog-table tbody td.col-server {
        margin-top: 0;
    }

    .srv-catalog-table tbody td.col-spec::before,
    .srv-catalog-table tbody td.col-lease::before {
        content: attr(data-label);
        display: block;
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--srv-muted);
        margin-bottom: 0.25rem;
    }

    .srv-catalog-table tbody td.col-action {
        margin-top: 1rem;
    }

    .srv-catalog-table tbody td.col-action::before {
        display: none;
    }

    .srv-catalog-table tbody tr:hover td {
        background: transparent;
    }

    .srv-list-server-name {
        white-space: normal;
    }

    .srv-list-spec {
        display: block;
        -webkit-line-clamp: unset;
    }

    .srv-list-lease-eoi {
        max-width: none;
    }

    .srv-list-action-pill {
        display: flex;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        padding: 0.7rem 1rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }

    .srv-benefits-grid {
        grid-template-columns: 1fr;
    }

    .srv-detail-grid {
        grid-template-columns: 1fr;
    }

    .srv-detail-header-top,
    .srv-detail-hero,
    .srv-detail-header-card .srv-detail-meta,
    .srv-detail-tabs-bar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .srv-breadcrumb-current,
    .srv-breadcrumb-sep:last-of-type {
        display: none;
    }

    .srv-detail-hero-text h1 {
        font-size: 1.2rem;
        line-height: 1.35;
    }

    .srv-sidebar-card {
        position: static;
    }

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

    .srv-step-connector {
        display: none;
    }

    .srv-hero h1 {
        font-size: 2rem;
    }
}

/* Custom modal uses z-index 10050 — SweetAlert default (1060) sits underneath */
body.lease-servers-page .swal2-container {
    z-index: 10100 !important;
}

body.lease-servers-page .swal2-popup .swal2-icon {
    font-size: 1rem;
    width: 5em;
    height: 5em;
    line-height: 5em;
    margin: 1.25em auto 0.6em;
}

.srv-custom-recaptcha-mount {
    height: 0;
    overflow: hidden;
}
