@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    color-scheme: dark;
    --primary-color: #ff6a00;
    --primary-hover: #ff8a3d;
    --secondary-color: #3ee07f;
    --danger-color: #ff5f57;
    --dark-bg: #111117;
    --darker-bg: #07070a;
    --card-bg: rgba(20, 20, 26, 0.72);
    --panel-bg:
        radial-gradient(ellipse at 50% 0%, rgba(255, 106, 0, 0.075), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        var(--card-bg);
    --text-primary: #f2f2f5;
    --text-secondary: rgba(242, 242, 245, 0.68);
    --border-color: rgba(255, 255, 255, 0.14);
    --accent-dim: rgba(255, 106, 0, 0.14);
    --accent-border: rgba(255, 106, 0, 0.38);
    --brand-gradient: linear-gradient(120deg, #ff3d2e, #ff6a00 45%, #ffb300);
    --success-bg: #183829;
    --error-bg: #451e20;
    --warning-bg: #513412;
    --info-bg: #172f52;
    --temp-unav: #ff8800;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-display: "Unbounded", var(--font-body);
}

body {
    font-family: var(--font-body);
    background: var(--darker-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    isolation: isolate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -2;
    background:
        radial-gradient(60vmax 40vmax at 12% -8%, rgba(255, 61, 46, 0.22), transparent 60%),
        radial-gradient(55vmax 38vmax at 92% -4%, rgba(255, 179, 0, 0.14), transparent 62%);
}

body::after {
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000, transparent 85%);
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.25;
}

button, input, textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary-hover);
    outline-offset: 3px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(12, 12, 16, 0.62);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--shadow);
}

.site-brand {
    color: var(--text-primary);
    font: 700 0.86rem var(--font-display);
    padding: 0.5rem 0.25rem;
    text-decoration: none;
}

.hero {
    padding: clamp(2rem, 6vw, 4.5rem) 0 0;
    text-align: left;
}

.header.hero h1 {
    font-size: clamp(1.8rem, 5.6vw, 3.65rem);
    letter-spacing: -0.035em;
}

.site-brand span,
.hero h1 span {
    background: var(--brand-gradient);
    background-clip: text;
    color: transparent;
}

.header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.header-nav {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-bar .header-nav {
    gap: 0.25rem;
    justify-content: flex-start;
    margin: 0;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-nav-link:hover,
.header-nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.07);
}

.header-nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: auto 0.75rem 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
    gap: 1.5rem;
    align-items: start;
}

.content-single {
    grid-template-columns: minmax(0, 1fr);
}

.header-back {
    margin-top: 1rem;
}
.header-back.bottom-back {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.link-back {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}
.link-back:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.discount a,
.discount .link-back {
    color: var(--primary-color);
}
.discount a:hover,
.discount .link-back:hover {
    color: var(--primary-hover);
}

.promotion-block .promotion-body {
    margin-top: 0;
}
.promotion-lead {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.promotion-list {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.promotion-list li {
    margin-bottom: 0.5rem;
}
.promotion-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}
.promotion-block.promotion-important {
    border-left: 4px solid var(--primary-color);
}

.form-block {
    background: var(--panel-bg);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.block-header svg {
    color: var(--primary-color);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.config-toggle {
    display: flex;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.config-toggle button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.config-toggle button.active {
    background: var(--primary-color);
    color: var(--darker-bg);
}

.config-server-count {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-server-count-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.counter {
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.counter-button {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.counter-button:hover {
    background: var(--border-color);
}

.counter-value {
    padding: 0 1rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.preset-container {
    margin-top: 1.5rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.preset-card {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.preset-card.selected {
    border-color: var(--primary-color);
    background: var(--accent-dim);
}

.preset-card.selected::before {
    transform: scaleX(1);
}

.preset-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preset-card.selected .preset-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.preset-card.selected .preset-checkbox::after {
    content: '✓';
    color: var(--darker-bg);
    font-size: 14px;
}

/* Стили для недоступных тарифов (цвет из config: unav-color) */
.preset-card.disabled {
    opacity: 0.85;
    pointer-events: none; /* запрещаем клики */
    position: relative;
    border-color: var(--unav-color, var(--danger-color));
}

.preset-card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    z-index: 1;
    pointer-events: none;
}

.preset-card .disabled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    background: var(--unav-color, var(--danger-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    max-width: calc(100% - 0.5rem);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* @media (max-width: 860px) {
    .content {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .preset-card .disabled-overlay {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
} */

.preset-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.preset-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.preset-specs {
    margin-bottom: 1rem;
}

.preset-spec {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.preset-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.custom-config {
    display: none;
    margin-top: 1.5rem;
}

.custom-config.show {
    display: block;
}

/* Произвольная конфигурация отключена: обводка и оверлей на слайдерах */
.custom-config.disabled {
    position: relative;
    opacity: 0.85;
    border: 2px solid var(--custom-unav-color, var(--danger-color));
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

.custom-config.disabled .config-grid {
    position: relative;
    pointer-events: none;
}

/* Оверлей только по области сетки, чтобы обводка родителя оставалась контрастной */
.custom-config.disabled .config-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    z-index: 1;
    pointer-events: none;
}

.custom-config.disabled .config-item {
    border-color: var(--custom-unav-color, var(--danger-color));
}

.custom-config .custom-config-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--custom-unav-color, var(--danger-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.config-grid {
    display: grid;
    gap: 2rem;
}

.config-item {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}

.config-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.config-item-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.config-item-value {
    color: var(--primary-color);
    font-weight: 600;
}

.config-item-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.slider-container {
    position: relative;
}

.slider {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    margin: 1rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hint {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.hint-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.hint-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.security-options {
    display: grid;
    gap: 1rem;
}

.service-card {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-card.selected {
    border-color: var(--primary-color);
    background: var(--accent-dim);
}

.service-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card.selected .service-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.service-card.selected .service-checkbox::after {
    content: '✓';
    color: var(--darker-bg);
    font-size: 14px;
}

/* Бэкапы отключены для текущего типа конфигурации — как на слайдерах: контрастная обводка, без grayscale */
.service-card.backup-disabled {
    opacity: 0.85;
    pointer-events: none;
    position: relative;
    border: 2px solid var(--backup-unav-color, var(--danger-color));
}

.service-card.backup-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    z-index: 1;
    pointer-events: none;
}

.service-card .backup-disabled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    background: var(--backup-unav-color, var(--danger-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    max-width: calc(100% - 0.5rem);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Количество серверов неактивно (при ограничении) */
.config-server-count.disabled,
.config-server-count.disabled .counter {
    opacity: 0.85;
    pointer-events: none;
}

.config-server-count.disabled .counter {
    border-color: var(--danger-color);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.service-icon {
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.backup-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.backup-config {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.backup-counter {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.backup-counter-button {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.backup-counter-button:hover {
    background: var(--border-color);
}

.backup-counter-value {
    padding: 0 0.75rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.backup-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.backup-price-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.sidebar {
    position: sticky;
    top: 2rem;
}

.summary {
    background: var(--panel-bg);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.summary-header {
    margin-bottom: 1.5rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-filter {
    display: flex;
    background: var(--dark-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.price-filter button {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.price-filter button.active {
    background: var(--primary-color);
    color: var(--darker-bg);
}

.summary-params {
    margin-bottom: 1.5rem;
}

.summary-param {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.summary-param-label {
    color: var(--text-secondary);
}

.summary-param-value {
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.summary-total span:first-child {
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.create-button {
    width: 100%;
    padding: 1rem;
    background: var(--brand-gradient);
    color: var(--darker-bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.create-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--accent-border);
}

.create-button:active {
    transform: translateY(0);
}

.create-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.discount {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--dark-bg);
    border-radius: var(--radius);
    max-width: 600px;
    max-height: calc(100% - 2rem);
    overflow-y: auto;
    width: 90%;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-footer {
    text-align: right;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: var(--danger-color);
}

.form-input,
.form-textarea {
    max-height: 200px;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--danger-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    background: var(--success-bg);
    border-left: 4px solid var(--secondary-color);
}

.notification.error {
    background: var(--error-bg);
    border-left: 4px solid var(--danger-color);
}

.notification.warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--secondary-color);
}

.notification.info {
    background: var(--info-bg);
    border-left: 4px solid var(--secondary-color);
}

.notification-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 860px) {
    .content {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .form-block, .summary, .modal-content {
        padding: 1.25rem;
    }
    .preset-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .config-toggle {
        width: 100%;
    }
    .config-toggle button {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.65rem 0.5rem;
        overflow-wrap: anywhere;
    }
    .config-server-count, .backup-config {
        flex-wrap: wrap;
    }
    .config-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .backup-custom {
        flex-direction: column;
        align-items: flex-start;
    }
    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
