:root {
    --brand-from: #3b82f6;
    --brand-to:   #8b5cf6;
}

/* Базовый header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: radial-gradient(900px 600px at 0% 0%, #eef3ff, transparent),
                linear-gradient(90deg, #0f172a, #020617);
    color: #f9fafb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Левая часть */
.site-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .6);
    background: #0b1220;
}

.site-header__brand {
    display: flex;
    flex-direction: column;
}

.site-header__title {
    font-size: 20px;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-header__subtitle {
    margin: 0;
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Правая часть */
.site-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Общая кнопка в header */
.site-header__btn {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    transition:
        background .18s ease,
        transform .16s ease,
        box-shadow .18s ease,
        opacity .18s ease;
    opacity: 0.95;
}

.site-header__btn:hover {
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
    opacity: 1;
}

/* In development — отдельный бейдж с бренд-градиентом */
/* In development — красивый градиентный бейдж, НЕ меняет позицию */
.updates-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
    color: #fff;

    border: none;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    cursor: pointer;

    transition:
        filter .18s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

/* Hover — без смещения, так что кнопка НЕ увеличивается и НЕ ломает layout */
.updates-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* Active — лёгкое нажатие */
.updates-btn:active {
    transform: scale(0.97);
}


/* Эти классы можно использовать, если захочешь добавить точку и span внутри кнопки */
.updates-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .35);
}

.updates-text {
    text-shadow: 0 1px 2px rgba(15, 23, 42, .45);
}

/* Settings wrapper + кнопка */
.settings-wrapper {
    position: relative;
}

.settings-btn {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 13px;
}

.settings-btn__icon {
    font-size: 15px;
}

.settings-btn__label {
    font-size: 13px;
}

/* Панель настроек */
.settings-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #020617;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .9);
    border: 1px solid rgba(148, 163, 184, .4);
    backdrop-filter: blur(10px);
}

.settings-panel__section {
    padding: 8px 6px;
    border-radius: 10px;
    transition: background .15s ease;
}

.settings-panel__section + .settings-panel__section {
    margin-top: 4px;
}

.settings-panel__section:hover {
    background: rgba(15, 23, 42, 0.8);
}

.settings-panel__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 4px;
}

/* Внутренние элементы */
.settings-toggle {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .5);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .12s ease;
}

.settings-toggle:hover {
    background: rgba(30, 64, 175, 0.9);
    border-color: #60a5fa;
    transform: translateY(-0.5px);
}

.settings-select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
}

.settings-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px #60a5fa;
}

/* На маленьких экранах — чуть более компактно */
@media (max-width: 640px) {
    .site-header {
        padding: 8px 12px;
    }

    .site-header__title {
        font-size: 17px;
    }

    .site-header__subtitle {
        display: none;
    }

    .updates-text {
        display: none; /* можно оставить только текст "In development" или только точку */
    }

    .settings-btn__label {
        display: none;
    }

    .settings-panel {
        min-width: 190px;
    }
}

/* ===== IN DEVELOPMENT MODAL ===== */

.updates-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none; /* по умолчанию скрыта */
}

.updates-modal.active {
    display: block;
}

.updates-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(4px);
}

.updates-modal__card {
    position: relative;
    max-width: 520px;
    margin: 8vh auto 0;
    background: #020617;
    border-radius: 18px;
    padding: 20px 22px 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
}

/* header модалки */
.updates-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.updates-modal__pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
    color: #fff;
}

.updates-modal__close {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}

.updates-modal__close:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

/* контент модалки */
.updates-modal__title {
    font-size: 20px;
    margin: 0 0 4px;
}

.updates-modal__subtitle {
    margin: 0 0 14px;
    font-size: 13px;
    color: #9ca3af;
}

.updates-modal__list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.updates-modal__list li {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.8);
}

/* ---------- Scrollable updates list ---------- */
.updates-modal__list {
    max-height: 300px;          /* Можно увеличить/уменьшить */
    overflow-y: auto;
    padding-right: 6px;         /* Чтобы текст не прилипал к скроллу */
    margin-top: 12px;
}

/* Custom scrollbar (Webkit browsers: Chrome, Edge, Safari) */
.updates-modal__list::-webkit-scrollbar {
    width: 8px;
}

.updates-modal__list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.updates-modal__list::-webkit-scrollbar-thumb {
    background: #7c3aed; /* Фиолетовый брендовый */
    border-radius: 10px;
}

.updates-modal__list::-webkit-scrollbar-thumb:hover {
    background: #5b21b6;
}

/* Firefox scrollbar */
.updates-modal__list {
    scrollbar-width: thin;
    scrollbar-color: #7c3aed rgba(0,0,0,0.05);
}


.updates-item__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.updates-item__desc {
    font-size: 13px;
    color: #9ca3af;
}

/* теги статуса */
.updates-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.updates-tag--wip {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
}

.updates-tag--soon {
    background: rgba(52, 211, 153, 0.16);
    color: #34d399;
}

.updates-tag--idea {
    background: rgba(244, 114, 182, 0.16);
    color: #f472b6;
}

/* OK кнопка */
.updates-modal__ok {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
    transition: filter .18s ease, transform .12s ease, box-shadow .2s ease;
}

.updates-modal__ok:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.updates-modal__ok:active {
    transform: scale(0.98);
}

/* адаптив */
@media (max-width: 640px) {
    .updates-modal__card {
        margin: 12vh 16px 0;
        padding: 18px 16px 14px;
    }
}

/* Button in modal header (Add) */
.updates-modal__manage {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;
    color: white;

    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Icon style */
.manage-icon {
    font-size: 14px;
    line-height: 1;
}

/* Hover */
.updates-modal__manage:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* Active (click) */
.updates-modal__manage:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.2);
}

/* Fix spacing so it doesn't stick to the close button */
.updates-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Keep badge + Add button grouped together */
.updates-modal__pill,
.updates-modal__manage {
    margin-right: 6px;
}


.manage-text {
    margin-top: 1px;
}


/* Кнопки внутри каждого пункта (Edit/Delete) */
.updates-item__actions {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

.updates-action-btn {
    border: none;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
    background: rgba(148,163,184,0.15);
    color: #e5e7eb;
}

.updates-action-btn--danger {
    background: rgba(248,113,113,0.15);
    color: #fecaca;
}

/* Форма админа */
.updates-form {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(148,163,184,0.3);
}

.updates-form__title {
    margin: 0 0 10px;
    font-size: 16px;
}

.updates-form__label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: .8;
}

.updates-form__input,
.updates-form__textarea,
.updates-form__select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 10px;
    padding: 8px;
    color: #e5e7eb;
    font-size: 14px;
    margin-top: 4px;
}

.updates-form__textarea {
    min-height: 70px;
    resize: vertical;
}

.updates-form__actions {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.updates-form__save {
    background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.updates-form__cancel {
    padding: 8px 20px;
    background: rgba(148,163,184,0.15);
    border-radius: 10px;
    color: #e5e7eb;
    cursor: pointer;
}

/* ====== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ (до 768px) ====== */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 14px;
    }

    .site-header__logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .site-header__title {
        font-size: 18px;
    }

    .updates-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .settings-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .updates-modal__card {
        max-width: 480px;
        margin-top: 12vh;
        padding: 18px 16px 14px;
    }

    .updates-modal__list {
        max-height: 45vh;
    }
}

/* ====== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ (до 640px) ====== */
@media (max-width: 640px) {
    .site-header {
        padding: 6px 10px;
    }

    .site-header__left {
        gap: 8px;
    }

    .site-header__logo {
        width: 30px;
        height: 30px;
    }

    .site-header__title {
        font-size: 16px;
    }

    .site-header__subtitle {
        display: none; /* убираем вторую строку, чтобы шапка была ниже */
    }

    .site-header__right {
        gap: 6px;
    }

    .updates-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .updates-text {
        display: none; /* оставляем только цветной бейдж/точку */
    }

    .settings-btn__label {
        display: none;
    }

    .settings-btn {
        padding: 4px 8px;
        min-width: auto;
    }

    .settings-panel {
        right: 0;
        left: auto;
        min-width: 190px;
        padding: 8px 10px;
    }

    .settings-panel__section {
        padding: 6px 4px;
    }

    .settings-toggle,
    .settings-select {
        font-size: 12px;
        padding: 5px 8px;
    }

    /* Модалка почти на всю ширину экрана */
    .updates-modal__card {
        margin: 10vh 10px 0;
        width: calc(100% - 20px);
        padding: 16px 12px 12px;
        border-radius: 14px;
    }

    .updates-modal__title {
        font-size: 18px;
    }

    .updates-modal__subtitle {
        font-size: 12px;
    }

    .updates-modal__list {
        max-height: 50vh;  /* больше места под скролл */
        padding-right: 4px;
        gap: 8px;
    }

    .updates-modal__list li {
        padding: 7px 8px;
    }

    .updates-item__title {
        font-size: 13px;
    }

    .updates-item__desc {
        font-size: 12px;
    }

    .updates-modal__ok {
        font-size: 13px;
        padding: 7px 0;
    }

    .updates-form__actions {
        flex-direction: column;
        gap: 8px;
    }

    .updates-form__save,
    .updates-form__cancel {
        width: 100%;
        text-align: center;
        padding: 7px 14px;
    }
}

/* ====== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px) ====== */
@media (max-width: 480px) {
    .site-header__title {
        font-size: 15px;
        letter-spacing: 0.03em;
    }

    .updates-modal__card {
        margin-top: 8vh;
    }

    .updates-modal__header {
        gap: 8px;
    }

    .updates-modal__manage {
        padding: 6px 10px;
        font-size: 12px;
    }

    .updates-modal__pill {
        padding: 3px 8px;
        font-size: 10px;
    }

    .updates-item__actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    .updates-action-btn {
        padding: 3px 8px;
        font-size: 10px;
    }
}
/* Кнопка "What's new" в хедере */
.site-header__btn.releases-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-inline: 0.7rem;
}

.releases-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.releases-text {
    font-size: 0.78rem;
}

/* Пиллюля "What’s new" в модалке */
.releases-pill {
    background: linear-gradient(120deg, #16a34a, #22c55e);
    border-color: rgba(187, 247, 208, 0.9);
}
.updates-tag--live {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}
.updates-item__meta {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #6b7280;
}
.updates-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.updates-modal.updates-modal--open {
    display: block;
}
.releases-btn {
    position: relative;
}

/* маленькая точка слева от текста */
.releases-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
    margin-right: 4px;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

/* активная — есть новые релизы */
.releases-dot--active {
    background: #ef4444; /* красный */
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.35);
}

/* бейдж с числом */
.releases-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.releases-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.9),
                0 6px 14px rgba(220, 38, 38, 0.55);
}

.release-item--fresh {
    border-left: 3px solid #22c55e; /* зелёная полоска */
    background: rgba(34, 197, 94, 0.04);
}
