/* ligh theme */
:root {
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --card-shadow: rgba(44, 62, 80, 0.5);
    --text: #2c3e50;
    --black-text: #2c3e50;
    --accent: #3498db;
    --accent-hover: #2980b9;
    --border: #e0e6ed;
    --header-bg: #ffffff;     /* Чуть светлее фона для карточек (чтобы они отделялись) */
    --bord-bg: #37474f;
}
/* */

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* dark theme */

body.theme-dark {
    --bg: #212121;           /* Тёмно‑графитовый фон страницы */
    --card-bg: #37474f;     /* Чуть светлее фона для карточек (чтобы они отделялись) */
    --bord-bg: #37474f;     /* Чуть светлее фона для карточек (чтобы они отделялись) */
    --text: #f5f5f5;         /* Очень светлый серый (почти белый, но мягче чистого #fff) */
    --card-shadow: rgba(245, 245, 245, 0.5);
    --accent: #3498db;       /* Оставляем твой синий — он отлично читается на тёмном */
    --accent-hover: #2980b9; /* Чуть темнее при наведении */
    --border: #555555;       /* Тёмные рамки, чтобы не сливались с фоном */
    --header-bg: #2b323b;    /* Чуть темнее фона для шапки — чтобы был лёгкий контраст */
}
body.theme-dark .light-theme {
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --card-bg: #dad8d8;
    --text: #2c3e50;
    --accent: #3498db;
    --accent-hover: #2980b9;
    --border: #e0e6ed;
    --header-bg: #ffffff;
    --card-shadow: rgba(245, 245, 245, 0.5);
}
#loadIcon {
    border: 16px solid var(--text);
    border-top: 16px solid var(--accent);
    border-bottom: 16px solid var(--accent);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;position: fixed;
    left: 50%;
    margin-left: -60px;
    top: 50%;
    margin-top: -60px;
    z-index: 20000;
    display: none;
    filter: blur(0.8px);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
body.stop-scroll-and-blur {
    height: 100vh;
    overflow: hidden;
}

body.stop-scroll-and-blur > *:not(.header):not(.c-modal):not(.modal):not(.modal-auth):not(#modal-cookie):not(.iti--container):not(.modal-hint):not(#loadIcon) {
    filter: blur(3.5px);
    pointer-events: none;
}
/* */
.symbol { font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; }
.e {
    fill: #6C5CE7;
    font-size: 230%;
} /* Ethereum ETH */
.a {
    fill: #9e1f63;
    font-size: 170%;
} /* Basic Attention Token BAT */
.r {
    fill: transparent;
    stroke: #f21a22;
    font-size: 160%;
} /* Reddcoin 	RDD */
.n {
    fill: #6787b7;
    font-size: 170%;
} /* NMC namecoin */
.y {
    fill: #fed81b;
    stroke: #000;
    font-size: 160%;
} /* Primecoin 	XPM */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Шапка */
header {
    padding: 0 4px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    margin-bottom: 10px;
    border-radius: 0 0 12px 12px;
    position: relative;
}
/* * /
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
/* */
.hdrLogin {
    font-size: 110%;
    font-weight: 600;
    text-shadow: 0px 0px 3px rgba(0,0,0,0.3);
}
.minPay {
    float: right;
    text-align: right;
}
.minPay .tit {
    display: block;
    font-size: 78%;
    color: var(--text);
}
.minPay .val {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 8px;
    display: inline-block;
    font-size: 80%;
}
.clear {
    clear:both;
}
.logo {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2px 12px 5px 14px;
    box-shadow: 0 2px 1px rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--border);
    display: block;
    text-decoration: none;
    margin-top: -10px;
    margin-right: 10px;
}

.logo span {
    color: var(--text);
}

/* Языковой переключатель */
.lang-switcher {
    display: flex;
    gap: 8px;
}
.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: #fff;
    background: var(--card-bg);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.lang-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.lang-btn:hover:not(.active) {
    background: #f0f2f5;
}
body.theme-dark .lang-btn:hover:not(.active) {
    color: var(--card-bg);
}


/* Основное меню */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent); /* твой синий акцент */
}


/* Большая кнопка */
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;           /* На всю ширину контейнера (на мобильных) */
    max-width: 400px;      /* Ограничение ширины на десктопе */
    padding: 20px 32px;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); /* Тень под синим цветом */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
}

.btn-primary-lg:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px); /* Лёгкий подъём */
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-primary-lg:active {
    transform: translateY(-1px);
}

.btn-arrow {
    margin-left: 12px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.btn-primary-lg:hover .btn-arrow {
    margin-left: 16px;
    opacity: 1;
    transform: translateX(4px);
}
/* Бургер-кнопка */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px !important;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    margin-left: 5px;
    margin-top: 8px;
}
.burger-btn,
.burger-btn.btn {
    display: none; /* скрываем на десктопе */
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text);
    margin: 4px 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
/* Мобильное меню (скрыто по умолчанию) */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 280px;
    background-color: var(--header-bg);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9990;
    text-align: left;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
    text-align: center;
}

.mobile-nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
 /*   color: var(--accent); */
    box-shadow: 0 0 1px rgba(0,0,0,0.2) inset;
    background-color: var(--card-bg);
}

/* Адаптив: показываем бургер и скрываем десктоп-меню */
@media (max-width: 820px) {
    .burger-btn,
    .burger-btn.btn {
        display: block;
    }
    .logo {
        margin-right: auto;
    }
    .main-nav {
        display: none; /* скрываем горизонтальное меню */
    }

    .header-container {
        justify-content: start; /* логотип и бургер слева */
        gap: 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-btn,
    .btn-login {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

.close-btn {
    position: absolute; top: 18px; right: 16px; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text);
}

/* Десктопное меню */
.desktop-nav {
    display: none;
}
.desktop-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}
.desktop-nav a:hover { color: var(--accent); }

/* Блок фильтров */
.filters {
    margin: 14px 0 20px;
    padding: 4px 15px;
    background: var(--card-bg);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: none transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.filters label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.filters select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
}

.currRate {
    margin-left: auto;
}

a {
    color: var(--accent);
    text-decoration: underline;
}
a:hover {
    color: var(--accent);
    text-decoration: none;
}
h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

p.subtitle {
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

main {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Сетка: 3 колонки от 768px, 2 колонки до 768px */
@media (min-width: 576px) {
    main { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    main { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1020px) {
    main { grid-template-columns: repeat(4, 1fr); }
}

.elementsGrid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Сетка: 3 колонки от 768px, 2 колонки до 768px */
@media (min-width: 576px) {
    .elementsGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .elementsGrid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1020px) {
    .elementsGrid { grid-template-columns: repeat(4, 1fr); }
}

.systemData {
    float: right;
    text-align: right;
    max-width: 120px;
}
.systemData a {

}
.systemData img {
    max-width: 100%;
    max-height: 38px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.06);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 4px var(--card-shadow);

    flex: 0 1 auto; /* не расти сверх контента, можно сжиматься до auto */
    min-width: 0;   /* критично: разрешает уменьшение flex-элемента ниже его контента */
    position:relative;
}

.card.hidden {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    display: none;
}
.elementsGrid .card {

}

/* * /
.currency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
/* */
.currency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 36px; /* фиксируем высоту, чтобы все карточки были одинаковыми */
    align-items: flex-start;
}

.currency-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
}
.elementsGrid .currency-tags {
    margin-bottom: 0;
}
.elementsGrid .currency-tag {
    margin-left: auto;
}


/* Иконки валют через псевдоэлемент * /
.currency-icon::before {
    font-size: 0.9em;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-btc::before { content: '₿'; }
.icon-eth::before { content: 'Ξ'; }
.icon-usdt::before { content: 'USD₮'; }
.icon-ltc::before { content: 'Ł'; }
/* */
.currency-icon::before {
    content:'';
    display: block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: 0 0 ;
    background-size: contain;
}
.currency-more-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 6px 6px;
    line-height: 1;
    box-shadow: 0px -2px 4px rgba(0,0,0,0.3) inset;
    border-radius: 0 0 5px 5px;
}
.currency-more-btn[aria-expanded="true"] {
    box-shadow: 0px 2px 4px rgba(0,0,0,0.3) inset;
    border-radius: 5px 5px 0 0;
}

.currency-more-btn:hover {
    text-decoration: underline;
    color: #0056b3;
}

.currency-extra {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Опционально: иконка стрелочки при раскрытии */
.currency-more-btn[aria-expanded="true"]::after {
    /*content: " ▼";*/
    /*font-size: 10px;*/
}

.bannAftH1 {
    text-align: center;
    margin-bottom: 5px;
}
.bannAftH1 a {
    display: block;
}
.bannAftH1 span {
    padding: 4px;
    display: inline-block;
}
.bannAftH1 img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.icon-bch::before { background-image: url('/images/icons/bch.svg'); }
.icon-bnb::before { background-image: url('/images/icons/bnb.svg'); }
.icon-bsc::before { background-image: url('/images/icons/bsc.svg'); }
.icon-btc::before { background-image: url('/images/icons/btc.svg'); }
.icon-doge::before { background-image: url('/images/icons/doge.svg'); }
.icon-eth::before { background-image: url('/images/icons/eth.svg'); }
.icon-ltc::before { background-image: url('/images/icons/ltc.svg'); }
.icon-ton::before, .icon-ton_gram::before { background-image: url('/images/icons/ton.svg'); }
.icon-tron::before,.icon-trx::before { background-image: url('/images/icons/tron.svg'); }
.icon-usdc::before { background-image: url('/images/icons/usdc.svg'); }
.icon-usdt::before { background-image: url('/images/icons/usdt.svg'); }
.icon-xrp::before { background-image: url('/images/icons/xrp.svg'); }
.icon-sol::before { background-image: url('/images/icons/sol.svg'); }
.icon-dash::before { background-image: url('/images/icons/dash.png'); }
.icon-pol::before { background-image: url('/images/icons/pol.png'); }

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color:var(--text);
    padding: 5px 5px;
}
.fctName {
  background-color: #ecf0f1;
  padding: 2px;
}
.fctName img {
    max-height: 40px;
    float: left;
    margin: -4px 5px 0;
}
.card .cardDsc {
    overflow: hidden;
    margin-bottom: 50px;
}

.card .btnBlock {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0px;
    width: 100%;
    padding: 0 12px 12px;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
    color:var(--text);
    /* * /
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    /* */
    /* * /
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    /* */
}

.card .cardDsc p {

}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
    transition: background-color 0.2s ease;
    border: none;
}
.pointer {
    cursor: pointer;
}
.btn:hover {
    background-color: var(--accent-hover);
    color: white;
}

footer {
    margin-top: 48px;
    padding-bottom: 32px;
    text-align: center;
    color: #95a5a6;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .burger, .mobile-menu { display: none; }
    .desktop-nav { display: flex; }
}

.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.auth-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.auth-popup {
    background: #fff;
    color:var(--black-text);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}
.emLable {
    font-size: 16px;
}

.auth-captcha-wrapper {
    margin-top: 18px;
    margin-bottom: 20px;
    text-align: center;
    min-height: 70px;
}

.auth-captcha-preview {
    background: #f5f5f5;
    min-height: 60px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 8px;
    /* сюда можно вставить background-image с картинкой капчи или iframe виджета */
}
.cf-turnstile iframe {
    width: 100%;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.auth-submit:hover {
    background: #0056b3;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.auth-close:hover {
    color: #333;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
}
.btn-outline:hover {
    border-color: #007bff;
    color: #007bff;
}
.btn-link {
    background: none;
    border: none;
    font-weight: 500;
}
.btn-link:hover {
    color: #d9534f;
}
.user-menu-wrapper {
    position: relative;
    z-index: 10000;
}
.user-menu-toggle {
    background:none;
    border:1px solid var(--border);
    border-radius:6px;
    padding:2px 10px 4px;
    cursor:pointer;
    line-height:0;

    color: var(--text);
}
.user-menu-toggle:hover {
    background-color: var(--accent);
    color:white;
}
.user-menu-toggle span {
    margin-left:6px;
    font-size:14px;
}
.user-menu-toggle svg {
    fill: var(--text);
    stroke: var(--text);
}
.user-menu-toggle:hover svg {
    opacity: 0.8;
    fill: white;
    stroke: white;
}

.user-dropdown {
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    background:#fff;
    background: var(--header-bg);
    border:1px solid #ddd;
    border-radius:6px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    min-width:200px;
    display:none;
    z-index:1000;
}
.user-dropdown .dropdown-item {
    display:block;
    padding:10px 16px;
    color:#333;
    color:var(--text);
    background: var(--header-bg);

    text-decoration:none;
}
.user-dropdown .dropdown-item:hover {
    box-shadow: 0 0 1px rgba(0,0,0,0.2) inset;
    background-color: var(--card-bg);

}
@media (max-width: 768px) {
    .user-menu-toggle span { display: none; } /* скрываем стрелку */
    /* меню слева * /
    .user-dropdown { right: auto; left: 0; } /* меню слева */
}

.content-container {

}

.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); }
}

.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: 768px) {
    #to-top-btn {
        bottom: 24px;
        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;
    }
}
