

.iconcaptcha-widget {
    margin: 0 auto;
}
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999; /* выше почти всего */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* прижимаем к правому краю */
    gap: 12px; /* расстояние между уведомлениями */
    max-height: calc(100vh - 40px); /* чтобы не вылезало за экран */
    /* overflow-y: hidden; */
}

.notification {
    background: var(--bg);
    border-left: 4px solid #007bff; /* цвет можно менять под тип сообщения */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 14px 16px;
    min-width: 300px;
    max-width: 420px;
    border-radius: 8px;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.3s forwards;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Полоса прогресса */
.notification-progress-bar {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.notification-progress-fill {
    height: 100%;
    width: 100%;
    background-color: #007bff;
    transition: width 0.1s linear;
}

/* Кнопка закрытия (крестик) */
.notification-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.notification-close:hover {
    color: #333;
}

/* Адаптив: на мобильных прижимаем к центру или слева, чтобы не было слишком узко */
@media (max-width: 600px) {
    .notifications-container {
        align-items: stretch;
        width: calc(100% - 32px);
        left: 16px;
        right: auto;
        top: 16px;
    }

    .notification {
        align-self: stretch;
        max-width: none;
        margin-right: 0;
    }
}

#to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #007bff; /* цвет кнопки */
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9998;
    overflow: hidden;
}

#to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#to-top-btn span {
    font-size: 20px;
    line-height: 1;
}

#to-top-btn:hover {
    background: #0056b3;
    transform: translateY(-4px);
}

@media (max-width: 1023px) {
    #to-top-btn {
        bottom: 80px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
    #to-top-btn span {
        font-size: 18px;
    }
}
/* Адаптив: на мобильных можно чуть уменьшить */
@media (max-width: 768px) {
    #to-top-btn {
        bottom: 44px;
        right: 24px;
        width: 44px;
        height: 44px;
    }
    #to-top-btn span {
        font-size: 18px;
    }
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 25, 0.92); /* Полупрозрачный тёмный фон под твою тему */
    backdrop-filter: blur(8px);
    color: #e0e0e0;
    padding: 14px 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    justify-content: space-between;
}

.cookie-text {
    color: #d0d0d0;
}

.cookie-link {
    color: var(--accent, #3498db);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-link:hover {
    color: var(--accent-hover, #2980b9);
}

.cookie-btn {
    background-color: var(--accent, #3498db);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: var(--accent-hover, #2980b9);
    transform: translateY(-1px);
}

.cookie-btn:active {
    transform: translateY(0);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .privacy-page {
        padding: 20px;
    }

    .privacy-page h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .privacy-page h2 {
        font-size: 1.3rem;
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .privacy-page p,
    .privacy-page ul {
        font-size: 1rem;
        line-height: 1.5;
    }

    .privacy-page ul {
        padding-left: 16px;
        margin-bottom: 16px;
    }

    .privacy-page a {
        color: var(--accent, #3498db);
        text-decoration: underline;
    }

    .privacy-page small {
        font-size: 0.85rem;
        color: rgba(245, 245, 245, 0.6);
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        padding: 12px 16px;
        gap: 12px;
        align-items: stretch;
    }

    .cookie-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .cookie-btn {
        width: 100%; /* Кнопка на всю ширину — удобно нажимать пальцем */
        max-width: none;
        padding: 12px;
    }

    .cookie-text {
        line-height: 1.4;
    }

    .cookie-link {
        display: block;
        margin-top: 8px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .privacy-page table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
        margin-bottom: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 8px;
    }

    /* Убираем стандартную табличную сетку на мобильном */
    .privacy-page table thead,
    .privacy-page table tbody,
    .privacy-page table tr,
    .privacy-page table td,
    .privacy-page table th {
        display: block;
    }

    /* Превращаем строки в «карточки» */
    .privacy-page table tr {
        margin-bottom: 12px;
        padding: 12px;
        background-color: var(--card-bg, #37474f);
        border-radius: 8px;
        border: 1px solid var(--border, #555555);
    }

    /* Делаем заголовки колонок маленькими подписями перед данными */
    .privacy-page table thead th {
        position: absolute;
        clip: rect(1px, 1px, 1px, 1px);
        padding: 0;
        border: 0;
        height: 1px;
        width: 1px;
        overflow: hidden;
        white-space: nowrap;
    }

    .privacy-page table td {
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid var(--border, #555555);
        margin-bottom: 8px;
    }

    /* Добавляем подписи колонок через data-label (нужно будет добавить в HTML) */
    .privacy-page table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        color: var(--accent, #3498db);
        margin-right: 12px;
        text-transform: uppercase;
        font-size: 0.75rem;
    }

    .privacy-page table td:last-child {
        border-bottom: none;
    }
}


.auth-captcha-wrapper {
    margin-top: 18px;
    margin-bottom: 20px;
    text-align: center;
    min-height: 70px;
}
.fillGrid {
    grid-column: 1 / -1;
}
.alignCenter {
    text-align: center;
}
.alignCenter iframe {
    display:inline-block !important;
}


 /* Tabs */

.tabs-container {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.tabs-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tab-btn {

    /* каждая кнопка занимает равную долю пространства */
    flex: 1 1 0;
    padding: 10px 16px;
    border: 1px solid var(--bord-bg);
    background: #f9f9f9;
    background: var(--card-bg);
    color: #333;
    color: var(--text);
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
}

.tab-btn .lbl {
    color: var(--bg);
    display: inline-block;
    margin-left: 4px;
    background-color: var(--text);
    font-size: 80%;
    padding: 2px 3px;
    border-radius: 4px;
}

.tab-btn:hover {
    background: var(--header-bg);
    border-color: var(--card-shadow);
}

.tab-btn.active {
    background: #fff;
    background: var(--bg);
    border: 1px solid var(--bord-bg);
    border-bottom: 1px solid var(--bg);
    color: var(--text);
    font-weight: 600;
    top: 1px;
    position: relative;
    padding-top: 11px;
}

.tabs-content {
    border: 1px solid #ccc;
    border: 1px solid var(--bord-bg);
    padding: 10px;
    background: #fff;
    background: var(--bg);
    min-height: 200px; /* чтобы блок не «прыгал» */
}

.tab-pane {
    display: none; /* скрываем все по умолчанию */
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block; /* показываем активную вкладку */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}