/* ===================== ОСНОВНЫЕ ИСПРАВЛЕНИЯ ДЛЯ КОМПЬЮТЕРА ===================== */
html {
    background: #2c3e50; /* Темный фон по бокам */
    
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #000000;
    color: #000000;
    display: flex;
    flex-direction: column;
    max-width: 480px; /* Ширина как у мобильного устройства */
    margin: 0 auto; /* Центрирование */
    box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Тень по бокам */
    min-height: 100vh;
    
    position: relative;
    
}

/* Улучшаем внешний вид для десктопа */
@media (min-width: 768px) {
    body {
        margin: 20px auto; /* Добавляем отступ сверху и снизу */
    }
}

/* Для очень больших экранов */
@media (min-width: 1200px) {
    body {
        margin: 40px auto;
    }
}

/* Убедимся, что все изображения не выходят за пределы */
img {
    max-width: 100%;
    height: auto;
}

/* Гарантируем, что горизонтального скролла не будет */
* {
    box-sizing: border-box;
}



/* ===================================================== HEADER ================================================ */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 100%;
    box-shadow: 0 3px 10px #0002;
    background: rgb(0, 0, 0);
    z-index: 5;
}



/* =================================================== MAIN =================================================================== */
main {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    flex: 1;
    /* padding-bottom для защиты от перекрытия bottom-nav */
    padding-bottom: var(--bottom-nav-height);
}

/* Сохраняем высоту меню в CSS-переменной */
:root {
    --bottom-nav-height: 10px; /* высота меню */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 5px;
    text-decoration: none;
    color: #ffc400;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0 2px;
    font-family: 'Days Sans Black';
    position: relative;
}

/* ===============================Иконка для центральной кнопки==================================================================== */
.nav-item:nth-child(3) .nav-icon {
    margin-bottom: 0;
    font-size: 32px;
    width: 80px;    
    height: 80px;   
    
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 1002;
    position: relative;
}


/* --- НИЖНЕЕ МЕНЮ --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #272C35;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 10px 5px 20px; /* Немного увеличил нижний отступ */
    box-shadow: 0 -2px 25px rgba(0,0,0,0.6);
    border-top: 2px solid #ffc400;
    z-index: 1000;
    font-family: 'Days Sans Black', sans-serif;
    overflow: visible;
}

/* --- УВЕЛИЧЕННАЯ ЦЕНТРАЛЬНАЯ КНОПКА --- */
.nav-item:nth-child(3) {
    flex: 0 0 auto;
    width: 85px;  /* Увеличено с 70px */
    height: 85px; /* Увеличено с 70px */
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    
    margin-top: -45px; /* Сместил выше, так как кнопка стала больше */
    border: 4px solid #FFD700 !important; /* Чуть толще рамка */
    z-index: 1001;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.5);
}

/* --- ВРАЩАЮЩЕЕСЯ ЗОЛОТОЕ КОЛЬЦО --- */
.nav-item:nth-child(3)::before {
    content: '';
    position: absolute;
    /* Кольцо теперь подстроено под размер 85px */
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        #FFD700 25%,
        transparent 50%,
        #FFD700 75%,
        transparent 100%
    );
    z-index: -1;
    animation: rotateRing 3s linear infinite;
    filter: blur(2px);
}



/* --- АКТИВНОЕ СОСТОЯНИЕ --- */
.nav-item:nth-child(3).active {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

/* --- ХОВЕР --- */
.nav-item:nth-child(3):hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.7);
}

/* --- СКРЫТЫЙ ТЕКСТ --- */
.nav-item:nth-child(3) .nav-text {
    display: none !important;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Также обновляем стили для активных кнопок в целом */


/* Для остальных кнопок - обычный стиль */
.nav-item:not(:nth-child(3)) {
    flex: 1;
    margin-top: 0;
}

.nav-item.active {
    color: #ffee00;
    background: rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    font-family: 'Days Sans Black';
}

/* ===============================Иконка для центральной кнопки==================================================================== */


/* ===================== CONTENT ===================== */
.content {
    width: 100%;
    padding: 10px;
    display: flex;
    background-color: #161a1f;
    flex-direction: column;
    gap: 15px;
    /* padding снизу для учета bottom-nav */
    padding-bottom: calc(10px + var(--bottom-nav-height));
}

/* ===================== LEFT PANEL ===================== */
.left-panel {
    display: none;
}


/* =================================================================== Баннер ======================================================= */
.banner-slider {
    width: 95%;
    max-width: 480px; /* Добавил ограничение, чтобы на ПК не растягивало */
    height: 170px;
    margin: 15px auto;
    border-radius: 20px !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #1a1a1a;
}

.banner-slider .slides {
    display: flex;
    height: 100%;
    width: 100%; /* Возвращаем 100% */
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    /* Убираем любые внешние влияния */
    margin: 0;
    padding: 0;
}

.banner-slider .slide {
    /* Слайд занимает 100% от РОДИТЕЛЯ (.banner-slider), а не от ленты */
    flex: 0 0 100%; 
    width: 100%;
    height: 100%;
}

/* Твой стиль для внутреннего контента */
.slide-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
    background-color: #161A1F; /* Вернул твой темный цвет */
    gap: 10px;
}

.slide-text {
    flex: 0 0 55%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-text h2 {
    color: #ffd700;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.slide-text p {
    color: #fff;
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

.slide-img {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.slide-img img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

/* Точки */
.banner-slider .dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.banner-slider .dot {
    width: 20px;
    height: 4px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.banner-slider .dot.active {
    background: #ffd700;
    width: 30px;
}

/* =================================================================== Баннер ======================================================= */






/* ==================================================== Меню кнопки главная ============================================================== */
.menu-grid {
    width: 100%;
    display: grid;
    /* Теперь 4 колонки в ряд */
    grid-template-columns: repeat(4, 1fr); 
    gap: 8px; /* Уменьшили зазор, так как кнопки стали уже */
    padding: 5px;
}

.menu-grid .menu-btn {
    width: 100%;
    height: 85px; /* Уменьшили высоту, чтобы кнопки оставались квадратными */
    padding: 10px 4px;
    border-radius: 16px; /* Чуть меньше закругление для компактности */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Фон: темный благородный глянец */
    background: linear-gradient(145deg, #1e242a, #161a1f);
    border: 1px solid rgba(255, 215, 0, 0.15);
    
    color: #fff;
    font-size: 9px; /* Уменьшили шрифт, чтобы длинные слова влезали в узкую кнопку */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Эффект при нажатии */
.menu-grid .menu-btn:active {
    transform: scale(0.92);
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

/* МАГИЯ ПЕРЕКРАСКИ ИКОНОК В ЗОЛОТОЙ */
.menu-grid .menu-btn img {
    width: 28px; /* Компактный размер для 4-х в ряд */
    height: 28px;
    margin-bottom: 8px;
    
    /* Этот фильтр превращает ЧЕРНЫЙ цвет в ЗОЛОТОЙ (#ffd700) */
    filter: invert(85%) sepia(35%) saturate(1000%) hue-rotate(1deg) brightness(105%) contrast(105%) drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
    
    transition: 0.3s;
}

/* При наведении иконка "горит" ярче */
.menu-grid .menu-btn:hover img {
    filter: invert(85%) sepia(35%) saturate(1500%) hue-rotate(1deg) brightness(110%) contrast(110%) drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* ==================================================== Меню кнопки главная ============================================================== */










/* ===================== REFERRALS ===================== */
.referrals-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.referrals-summary,
.referrals-list {
    width: 94%;
    margin: 0 auto;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.referrals-list ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.referrals-list ul li:last-child {
    border-bottom: none;
}

.referrals-list .btn.show-all {
    margin-top: 10px;
}

/* ===================== INVITE ===================== */
.invite-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.invite-link-card,
.invite-qr-card {
    width: 94%;
    margin: 0 auto;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.invite-qr-card img {
    width: 170px;
    height: 170px;
}



/* ===================== FOOTER ===================== */
footer {
    padding: 20px;
    background: #000000;
    color: white;
    text-align: center;
    
}






/* ===================================================== ПАРТНЕРЫ нижнее окно ================================================================ */
.partners-section {
    background: rgba(22, 26, 31, 0.85); 
    backdrop-filter: blur(12px);
    padding: 18px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 900px;
    margin: 15px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.partners-section h2 {
    margin-bottom: 18px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    font-weight: 800;
}

.partners-list {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center; 
    gap: 20px 30px; 
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    padding: 5px 0;
}

.partners-list::-webkit-scrollbar {
    display: none;
}

.partner-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-item img {
    height: 18px; 
    width: auto;
    display: block;
    object-fit: contain;

    /* Объединяем перекраску и тень в одно свойство filter */
    filter: brightness(0) saturate(100%) invert(85%) sepia(35%) saturate(1000%) hue-rotate(1deg) brightness(105%) contrast(105%) drop-shadow(0 0 3px rgba(255, 215, 0, 0.4));
}

/* Эффект при нажатии: логотип становится ярче */
.partner-item:active {
    transform: scale(0.92);
}

.partner-item:active img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(35%) saturate(2000%) hue-rotate(1deg) brightness(120%) contrast(110%);
}

@media (max-width: 480px) {
    .partners-list {
        gap: 15px 20px;
    }
    .partner-item img {
        height: 16px; 
    }
}

/* ===================================================== ПАРТНЕРЫ нижнее окно ================================================================ */






/* ================================================= Модульные окна всплывающие ========================================================== */

/* Основной фон модалки (затемнение) */
.modal {
  display: none; /* ИЗМЕНИТЕ ЭТО: Окна будут скрыты при загрузке */
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Контейнер модального окна */
.modal-content {
  background: #111418 !important; /* Глубокий темный из нового стиля */
  padding: 25px;
  border-radius: 28px; /* Более скругленные углы */
  max-width: 400px;
  width: 90%;
  text-align: center; /* Центрируем текст для Telegram модалки */
  position: relative;
  color: #ffffff !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important; /* Золотая рамка */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  animation: modalSlideUp 0.4s ease; /* Добавляем анимацию появления */
}

/* Заголовок (h3 внутри модалки) */
.modal-content h3 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;

  
  
  /* Золотой градиент */
  background: linear-gradient(180deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.2));
}

.modal-content h2 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;

  
  
  /* Золотой градиент */
  background: linear-gradient(180deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.2));
}

.close {
  position: absolute !important;
  right: 20px !important;
  top: 20px !important; /* делаем одинаковый отступ сверху */
  color: #555;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: 0.3s;
  z-index: 1001;
}

.close:hover {
  color: #ffd700;
  transform: scale(1.1);
}

/* Кнопка действия */
.functional-btn {
  margin-top: 15px;
  width: 100%;
  padding: 12px 0; /* Чуть увеличил отступы */
  border: none;
  background: linear-gradient(145deg, #ffd700, #b8860b); /* Золотой градиент */
  color: #000;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.functional-btn:hover {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Поля ввода (если они используются в этом окне) */
.email-row input, .code-row input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: white;
  padding: 10px;
  border-radius: 8px;
}

/* Анимация появления */
@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* ================================================= Модульные окна всплывающие ========================================================== */





/* Стили для меню пользователя */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-info {
    text-align: right;
    min-width: 0;
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #4f46e5;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-id {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.logout-btn {
    padding: 8px 14px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.logout-btn:hover {
    background: #b91c1c;
}



@media (max-width: 320px) {
    .user-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .user-info {
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
    }
}

/* ===================== БЛОК ПОЛЬЗОВАТЕЛЯ В HEADER (ЗОЛОТОЙ СТИЛЬ) ===================== */
.user-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    margin-top: 10px;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-radius: 12px;
    /* Золотой градиент как на кнопках и балансе */
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 1px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    flex: 1;
}

.user-name {
    font-weight: 800; /* Делаем жирнее для контраста */
    font-size: 16px;
    color: #000000; /* Черный текст на золотом фоне читается лучше всего */
    font-family: 'Days Sans Black', sans-serif; /* Добавил ваш фирменный шрифт */
}

.user-id {
    font-size: 12px;
    color: #333; /* Темно-серый для ID */
    font-weight: 600;
    opacity: 0.8;
}

/* Кнопка выйти — сделаем её темной, чтобы она выделялась на фоне золота */
.logout-btn {
    padding: 10px 18px;
    background: #1a1a1a; /* Темный графит */
    color: #FFD700; /* Золотой текст на кнопке */
    border: 1px solid #FFD700;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-transform: uppercase;
    font-size: 11px;
}

.logout-btn:hover {
    background: #000000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}



/* Адаптив для маленьких экранов */
@media (max-width: 400px) {
    .user-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .user-info {
        flex-direction: column; /* на маленьких экранах снова столбцом */
        width: 100%;
        text-align: center;
        gap: 5px;
    }

    .logout-btn {
        width: 100%;
    }
}


.crypto-dropdown {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.crypto-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    background: #000000;
}

.crypto-selected img {
    width: 22px;
    height: 22px;
}

/* Выпадающий список */
.crypto-options {
    position: absolute;
    left: 0;
    top: calc(100% + 5px);
    width: 100%;
    background: rgb(0, 0, 0);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    display: none;
    overflow: hidden;
    max-height: 260px; /* скролл если много валют */
    overflow-y: auto;
    z-index: 9999; /* чтобы было поверх модального окна */
}

.crypto-option {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.crypto-option:hover {
    background: #f1f1f1;
}

.crypto-option img {
    width: 22px;
    height: 22px;
}


.withdraw-input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.referrals-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 6px;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #1e1e1e;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 14px;
}

.referral-id {
    font-weight: bold;
}

.referral-date {
    opacity: 0.7;
}




/* ========================СТРАНИЦА УРОВНЕЙ - адаптировано под ваш дизайн==================================== */

/* --- ОСНОВНОЙ КОНТЕЙНЕР --- */
#page-levels {
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    padding-bottom: 50px;
}

/* --- ШАПКА (PREMIUM) --- */
#page-levels .levels-header {
    
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#page-levels .levels-header h2 {
    flex-grow: 1;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffd700;
    margin: 0;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

#page-levels .back-btn {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

/* --- ГЛАВНАЯ КАРТОЧКА (ТЕКУЩИЙ УРОВЕНЬ) --- */
.current-level-container {
    padding: 20px;
}

.level-card-main {
    background: linear-gradient(145deg, #252b33 0%, #161a1f 100%);
    border: 1px solid #ffd700;
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
}

.level-badge-glow .label {
    font-size: 10px;
    color: rgba(255, 215, 0, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.level-badge-glow h3 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 25px 0;
    color: #fff;
}

.level-perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.perk-item {
    display: flex;
    flex-direction: column;
}

.perk-val {
    color: #ffd700;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 4px;
}

.perk-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
}

/* --- СПИСОК ВСЕХ УРОВНЕЙ --- */
.levels-list {
    padding: 0 20px;
}

.section-title {
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0 15px 5px;
}

/* КАРТОЧКА ОБЫЧНОГО УРОВНЯ */
.tier-card {
    background: rgba(33, 38, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    margin-bottom: 20px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.tier-card.unlocked {
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(33, 38, 45, 0.8);
}

.tier-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-title {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
}

.tier-status {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}

.tier-status.success {
    background: #00ffa3; /* Сделал цвет сплошным для лучшей читаемости */
    color: #000;
}

/* --- ТЕКСТ И РАСПОЛОЖЕНИЕ ВНУТРИ (ИЗМЕНЕНИЯ ТУТ) --- */
.tier-body {
    padding: 20px;
}


.info-row span:first-child {
    color: #888; /* Названия условий стали чуть мягче */
}

.gold-text {
    color: #ffd700;
    font-weight: bold;
    font-size: 15px;
}

.note {
    font-size: 11px !important;
    color: #666 !important;
    font-style: normal; /* Убрал курсив для чистоты */
    margin-top: 12px;
    display: block;
    text-align: right;
}

/* ТРЕБОВАНИЯ */
.requirements-box {
    background: rgba(0, 0, 0, 0.3); /* Затемнил фон для выделения текста */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Сплошная тонкая линия вместо пунктира */
}

.req-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: #aaa;
}

.req-item:last-child { margin-bottom: 0; }

.req-item b {
    color: #fff;
    font-weight: 700;
}

/* ВЫДЕЛЕНИЕ УСЛОВИЯ (ВАЖНОЕ) */
.tier-requirement {
    background: rgba(255, 183, 0, 0.05); /* Сделал фон еще прозрачнее */
    color: #ffb700;
    padding: 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    border-left: 4px solid #ffb700; /* Утолщил линию выделения */
    margin-top: 10px;
}

/* --- КНОПКИ --- */
.unlock-btn-gold {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    background: linear-gradient(90deg, #ffd700, #b8860b);
    border: none;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.unlock-btn-disabled {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    background: #2a2f35;
    border: 1px solid #3d444d;
    color: #5c636a;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    cursor: not-allowed;
}

/* ========================СТРАНИЦА УРОВНЕЙ - адаптировано под ваш дизайн==================================== */








/* ================================================== СТРАНИЦА РЕФЕРАЛОВ ===================================================================== */

.referrals-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    padding-bottom: 80px;
}



/* Заголовок с кнопкой копирования */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-header h3 {
    margin: 0;
    color: #333;
}

.btn.copy-id {
    background: #f0f9f7;
    color: #0aa079;
    border: 1px solid #0aa079;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Статистика */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    background: #f0f9f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0aa079;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

/* Реферальная ссылка */
.referral-link-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.referral-link-section h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#referralLink {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
}

.btn.copy-link {
    background: #0aa079;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.link-note {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}



/* Модальное окно всех рефералов */
.referrals-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#searchReferrals {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn.search-btn {
    background: #0aa079;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.all-referrals-list {
    max-height: 400px;
    overflow-y: auto;
}

.all-referrals-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.all-referrals-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-referrals-list li:last-child {
    border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wallet-balance-card {
        flex-direction: column;
        text-align: center;
    }
    
    .balance-actions {
        justify-content: center;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .referrals-table th,
    .referrals-table td {
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .link-box {
        flex-direction: column;
    }
    
    .balance-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .chart-bars {
        gap: 15px;
    }
    
    .chart-bar {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .balance-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .balance-actions .btn {
        width: 100%;
    }
    
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .referrals-table {
        font-size: 12px;
    }
}

/* ================================================== СТРАНИЦА РЕФЕРАЛОВ ===================================================================== */





/* ==================================================== СТРАНИЦА Рефералы ====================================================================== */




.invite-card, .activity-section {
    padding: 15px;
    color: white;
   
    width: 100%; /* На всю ширину родителя */
    box-sizing: border-box;
    display: block; /* Убедимся что это блочный элемент */
    margin: 0; /* Убираем отступы */
}

.invite-card h3, .qr-card h3 {
    margin: 0 0 20px 0;
    color: #ffffff;
    text-align: center;
}

.invite-card label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%; /* Контейнер на всю ширину */
}

.link-box input {
    flex: 1;
    min-width: 0; /* Разрешаем сжиматься */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
    box-sizing: border-box;
    width: 100%; /* input на всю ширину контейнера */
    text-align: center;
}

.link-box button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    width: 100%; /* Кнопка тоже на всю ширину */
}

.invite-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}



/* Если страница в отдельном контейнере */
.page {
    width: 100%;
    max-width: 100%;
}


/* Если проблема в flex-контейнере */
main, .invite-container, .content {
    display: block; /* Вместо flex если нужно на всю ширину */
    width: 100%;
}

/* Убедимся, что нет ограничивающих контейнеров */
* {
    box-sizing: border-box;
}

/* Принудительно растягиваем */
.invite-card {
    width: 100% !important;
    max-width: none !important;
    
}




.stat-item {
    background: #272C35;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0; /* Позволяет контенту сжиматься */
    box-sizing: border-box;
    border: 2px solid #FFD700;
}

.stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0aa079;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0; /* Позволяет тексту обрезаться */
    overflow: hidden;
}

.stat-label {
    font-size: 13px;
    color: #FFD700;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-change {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}



/* ==================================================== СТРАНИЦА Рефералы ====================================================================== */





/* ================================================== СТРАНИЦА НАСТРОЕК ======================================================================= */

.settings-container {
    padding: 20px;
    padding-bottom: 100px;
    background-color: #161a1f;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; 
    color: white;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    flex-wrap: wrap; 
    gap: 15px;
    width: 100%;
    
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.back-btn:hover {
    background: #272C35;
    transform: translateX(-3px);
}

.back-btn span {
    font-size: 18px;
}

.settings-header h1 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    word-wrap: break-word;
    max-width: 100%;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: #272C35;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.badge-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.badge-info {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Позволяет тексту обрезаться */
}

.badge-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-id {
    font-size: 14px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-section {
    background: #272C35;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.section-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #272C35;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    flex: 1;
    min-width: 0; 
    word-wrap: break-word;
}

.section-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-badge.verified {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
}

.section-badge.incomplete {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
}

/* Карточки настроек */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

.setting-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #FFD700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 0; /* Позволяет сжиматься */
    box-sizing: border-box;
}

.setting-card:hover {
    background: #272C35(36, 36, 36);
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.setting-icon {
    font-size: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.setting-info {
    flex: 1;
    min-width: 0; /* Позволяет тексту обрезаться */
}

.setting-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setting-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setting-arrow {
    font-size: 24px;
    color: #999;
    flex-shrink: 0;
}

/* Переключатели */
.toggle-switch {
    position: relative;
    flex-shrink: 0;
}

.toggle-label {
    display: block;
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.toggle-label:after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

input[type="checkbox"]:checked + .toggle-label {
    background: #0aa079;
}

input[type="checkbox"]:checked + .toggle-label:after {
    left: 26px;
}

/* Форма профиля */
.profile-form {
    max-width: 100%;
    box-sizing: border-box;
}

.avatar-section {
    margin-bottom: 30px;
    width: 100%;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-btn {
    padding: 10px 20px;
    background: white;
    border: 2px dashed #667eea;
    border-radius: 8px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.avatar-btn:hover {
    background: #667eea;
    color: white;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.email-verified {
    position: relative;
    width: 100%;
}

.verified-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.phone-input {
    display: flex;
    gap: 10px;
    width: 100%;
}

.phone-input select {
    width: 100px;
    flex-shrink: 0;
}

.phone-input input {
    flex: 1;
    min-width: 0;
}

.save-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Настройки уведомлений */
.notification-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.notification-group {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
}

.notification-group h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    word-wrap: break-word;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    min-width: 0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

.notification-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Опасная зона */
.danger-zone {
    border: 2px solid #ff6b6b;
    background: #272C35;
    box-sizing: border-box;
}

.danger-zone .section-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.danger-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.danger-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
    justify-content: center;
    white-space: nowrap;
}

.danger-btn.export {
    background: #4dabf7;
    color: white;
}

.danger-btn.delete {
    background: #ff6b6b;
    color: white;
}

.danger-btn.logout {
    background: #ffd43b;
    color: rgb(0, 0, 0)
}

.danger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.danger-warning {
    color: #ffd900;
    font-size: 14px;
    text-align: center;
    font-style: italic;
    word-wrap: break-word;
    width: 100%;
}

/* ================================================== СТРАНИЦА НАСТРОЕК ======================================================================= */




/* Контейнер для снежинок над хедером */
#snowflakes-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 90px !important;
    pointer-events: none !important;
    z-index: 1001 !important;
    overflow: hidden !important;
}

/* Хедер должен быть ниже */
header {
    z-index: 1000 !important;
    position: relative !important;
}

/* Индивидуальные снежинки */
.snowflake {
    z-index: 1002 !important;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    background: #008d47;
    border-bottom: 2px solid #ffffff;
    padding: 8px 0;
    white-space: nowrap;
    position: relative;
}

.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: tickerMove 25s linear infinite;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker span {
    margin: 0 40px;
}






.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none; /* по умолчанию скрыто */
}

.promo-content-only-img {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.promo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.promo-close:hover {
    background: rgba(255,0,0,0.7);
}

.promo-image-full {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}








/* ====================================================== АНИМИРОВАННАЯ КНОПКА СТРАТЕГИИ ===================================================== */
.strategy-container {
    width: 100%;
    margin-bottom: 25px;
}

.strategy-card {
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2a2a2a 50%, 
        #1a1a1a 100%);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(212, 175, 55, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.25);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(12px);
    position: relative;
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.strategy-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    position: relative;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.15);
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap; /* Важно: запрещаем перенос строк */
    display: flex;
    align-items: center;
}

.strategy-header h3::before {
    content: '⚡';
    margin-right: 8px;
    animation: lightning 2s ease-in-out infinite;
    font-size: 15px;
    flex-shrink: 0; /* Чтобы иконка не сжималась */
}





/* Информация о стратегии */
.strategy-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(10, 160, 121, 0.1);
    z-index: 2;
    position: relative;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 15px;
    border: 1px solid rgba(10, 160, 121, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 160, 121, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #ffd166, #ff9e00);
}

.info-label {
    font-weight: 700;
    color: #000000;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label::before {
    content: '✨';
    font-size: 16px;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.info-value {
    font-weight: 800;
    color: #000000;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(10, 160, 121, 0.2);
    background: black;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.strategy-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #000000, #252525);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
}

.strategy-badge.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: rgb(0, 0, 0);
    border: 1px solid rgba(255, 251, 0, 0.3);
    box-shadow: 0 6px 18px rgba(255, 208, 0, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

.strategy-badge.completed {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.3);
}

/* Быстрое исправление центрирования - ВАРИАНТ 2 */
html {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}



/* Центрируем только на больших экранах */
@media (min-width: 768px) {
    html {
        background: #2c3e50;
        /* Добавляем padding по бокам И снизу, но не сверху */
        padding: 0 20px 20px 20px;
        box-sizing: border-box;
        /* Центрируем контент */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    body {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 0;
        background: #000000;
        min-height: calc(100vh - 20px); /* Учитываем padding снизу у html */
        position: relative;
        overflow: hidden;
        box-shadow: 0 0 30px rgba(0,0,0,0.2);
        border-radius: 12px; /* Добавляем радиусы как у мобильных элементов */
    }
    
    /* Основной контент */
    #mainApp {
        background: white;
        width: 100%;
        height: 100%;
        position: relative;
        margin: 0;
        padding: 0;
        
        overflow: hidden; /* Чтобы контент не выходил за радиусы */
    }
    
    /* Нижнее меню для десктопа */
    .bottom-nav {
        max-width: 480px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}

/* Убедимся, что все основные элементы не превышают ширину */
header, main, .content, .page {
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Для нижнего меню отдельно */
.bottom-nav {
    max-width: 480px;
    width: 100%;
}

/* Гарантируем скролл и убираем отступы */
html {
    /* Фоновый карбон браузера (оставляем как есть) */
    background-color: #121212 !important;
    background-image: 
        radial-gradient(circle at center, rgba(184, 134, 11, 0.15) 0%, transparent 70%),
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png') !important;
    background-attachment: fixed !important;
    margin: 0;
    padding: 0;
}

body, #mainApp {
    /* Твой оригинальный цвет + ЕДВА ЗАМЕТНЫЙ КАРБОН (0.3 прозрачность) */
    background: 
        linear-gradient(rgba(26, 31, 37, 0.7), rgba(26, 31, 37, 0.7)), 
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png'),
        linear-gradient(135deg, #1A1F25, #1A1F25, #1A1F25) !important;
    
    background-attachment: fixed !important; /* Текстура внутри тоже будет зафиксирована */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Для длинных страниц */
.page {
    min-height: auto;
    overflow: visible;
    width: 100%;
}

/* Убедимся, что контент не перекрывается нижним меню */
main {
    padding-bottom: 80px;
    width: 100%;
}

/* Хедер тоже должен быть правильной ширины */
header {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Исправляем баннер */
.banner-slider {
    width: 100%;
    max-width: 480px;
    margin: 10px auto;
    border-radius: 15px !important; 
}

/* Исправляем меню */
.menu-grid {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ОСНОВНОЙ ФИКС: Для десктопа применяем те же радиусы что и на мобильных */
@media (min-width: 768px) {
    .banner-slider { border-radius: 15px !important; }
    .balance-box { border-radius: 14px !important; }
    .strategy-card { border-radius: 24px !important; }
    .wallet-balance-card { border-radius: 15px !important; }
    .menu-grid .menu-btn { border-radius: 15px !important; }
    
    .invite-card, .qr-card, .referrals-section, 
    .activity-section, .settings-section, .level-card {
        border-radius: 15px !important;
    }
    
    body > *:first-child, #mainApp > *:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    
    body > header:first-child, #mainApp > header:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
}

/* Для мобильных оставляем радиусы как были */
@media (max-width: 767px) {
    .banner-slider { border-radius: 15px; }
    .balance-box { border-radius: 14px; }
    .strategy-card { border-radius: 24px; }
    .wallet-balance-card { border-radius: 15px; }
    .menu-grid .menu-btn { border-radius: 15px; }
    
    .invite-card, .qr-card, .referrals-section, 
    .activity-section, .settings-section, .level-card {
        border-radius: 15px;
    }
}

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ УСТРОЙСТВ */
.banner-slider { border-radius: 15px; }
.balance-box { border-radius: 14px; }
.strategy-card { border-radius: 24px; }
.wallet-balance-card { border-radius: 15px; }
.menu-grid .menu-btn { border-radius: 15px; }

.invite-card, .qr-card, .referrals-section, 
.activity-section, .settings-section, .level-card {
    border-radius: 15px;
}

/* Скрываем белый фон у activity-chart */
.activity-chart {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}





/* Основной контейнер с эффектом "Затмения" */
.neon-timer-mini {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(20, 20, 20, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    /* Разрешаем узорам выходить чуть за край, если нужно */
    overflow: visible; 
}

/* СЛОЙ УЗОРА 1: Внешняя прерывистая гравировка */
.neon-timer-mini::before {
    content: '';
    position: absolute;
    /* Выносим узор на самый край */
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    /* Рисуем узор пунктиром */
    border: 2px dashed rgba(255, 215, 0, 0.3);
    /* Добавляем мягкое свечение самому узору */
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
    /* Медленное вращение для эффекта "живого" артефакта */
    animation: neonRotate 15s linear infinite;
    pointer-events: none;
}

/* СЛОЙ УЗОРА 2: Внутренние точки (древний орнамент) */
.neon-timer-mini::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    /* Точечный узор */
    border: 3px dotted rgba(255, 215, 0, 0.2);
    /* Вращаем в обратную сторону */
    animation: neonRotateReverse 10s linear infinite;
    pointer-events: none;
}

/* Остальные твои стили без изменений */
.neon-ring-mini {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.neon-ring-mini.outer {
    width: 94px;
    height: 94px;
    border-top: 2px solid #FFD700;
    border-right: 2px solid rgba(255, 215, 0, 0.3);
    border-left: 2px solid rgba(255, 215, 0, 0.3);
    filter: drop-shadow(0 0 8px #FFD700);
    animation: neonRotate 6s linear infinite;
}

.neon-ring-mini.middle {
    width: 74px;
    height: 74px;
    border-bottom: 3px solid #FF8C00;
    border-left: 1px solid rgba(255, 140, 0, 0.2);
    filter: blur(0.5px) drop-shadow(0 0 5px #FF8C00);
    animation: neonRotateReverse 4s linear infinite;
}

.neon-ring-mini.inner {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    animation: neonPulse 2s ease-in-out infinite;
}

.mini-digits {
    position: relative;
    z-index: 10;
    font-size: 16px; 
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 5px #926b00,
        0 0 10px #FFD700,
        0 0 20px #FFD700;
    letter-spacing: 1px;
    font-family: 'Arial Black', 'Gadget', sans-serif;
    transform: scaleY(1.1);
    transition: all 0.3s ease;
}

.floating-particle-mini {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
    offset-path: path('M 50,0 A 50,50 0 1 1 50,100 A 50,50 0 1 1 50,0');
}

/* Выбираем именно ПЕРВУЮ частицу среди частиц */
.floating-particle-mini:nth-of-type(1) { 
    animation: orbit 4s linear infinite; 
}

/* Выбираем именно ВТОРУЮ частицу среди частиц */
.floating-particle-mini:nth-of-type(2) { 
    animation: orbit 7s linear infinite reverse; 
}
/* Твои анимации */
@keyframes neonRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes neonRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes neonPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); }
}

@keyframes orbit {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
}

/* Делаем текст текущего языка белым */
.lang-current {
    color: #ffffff !important; /* Белый цвет текста */
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон, чтобы кнопка была видна */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая стальная граница */
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

/* Эффект при наведении (опционально) */
.lang-current:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

:root {
    
    --card-bg: #1a1c23;
    --accent-gold: #ffd700;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --border-color: #2d303a;
    --input-bg: #242731;
}

/* Контейнер страницы */
#page-settings {
    background-color: var(--bg-dark);
    min-height: 100vh;
    padding-bottom: 80px; /* Чтобы не перекрывало нижнее меню */
}

.settings-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка профиля */
.settings-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
}

.user-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.avatar-container {
    position: relative;
    width: 65px;
    height: 65px;
    background: var(--input-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    border: 2px solid var(--accent-gold);
}

.edit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-gold);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
}

.badge-id {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Карточка верификации */
.verification-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1a1c23 0%, #242731 100%);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-gold);
}

.status-icon { font-size: 24px; }
.status-text h3 { font-size: 15px; margin: 0; }
.status-text p { font-size: 13px; margin: 3px 0 0; color: var(--text-dim); }

.verify-btn {
    margin-left: auto;
    background: var(--accent-gold);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}



.settings-section h2 {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 15px;
    padding-left: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-grid {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-dim);
    margin-left: 2px;
}

.form-group input {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-gold);
}

.readonly-input {
    opacity: 0.6;
    cursor: not-allowed;
    background: transparent !important;
}

/* Кнопки действий */
.save-btn {
    width: 100%;
    background: var(--accent-gold);
    color: black;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.action-btn {
    width: 100%;
    background: var(--card-bg);
    color: white;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logout-btn {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.2);
    margin-top: 20px;
}



/* Контейнер ввода суммы */
.strategy-input-container {
    background: #272C35;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-input-container label {
    color: #FFD700;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Поле ввода */
#strategyAmount {
    background: #25251a;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    outline: none;
    transition: border-color 0.3s;
}

#strategyAmount:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

/* Блок быстрых кнопок */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    color: #FFD700;
    
}

.quick-amounts button {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quick-amounts button:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
}

/* Адаптация основной кнопки запуска (если нужно) */
#startStrategyBtn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

#startStrategyBtn:disabled {
    background: #444;
    color: #888;
    box-shadow: none;
}

/* Убедимся, что overlay не блокирует сам себя */
.modal-overlay {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Самое важное: кнопки должны быть кликабельными */
.modal-buttons button {
    position: relative;
    z-index: 10000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.listing-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Более глубокий градиент */
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 12px 20px;
    margin: 20px 0;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.listing-banner:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: rotateCoin 6s linear infinite;
}

.banner-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-display {
    /* Меняем шрифт на более современный без засечек */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.1);
    white-space: nowrap;
}

.banner-arrow {
    font-size: 1.2rem;
    color: #FFD700;
    opacity: 0.6;
    transition: 0.3s;
}

.listing-banner:hover .banner-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Анимация блика стала мягче */
.listing-banner::after {
    content: '';
    position: absolute;
    top: -50%; left: -150%;
    width: 100%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
    transform: rotate(30deg);
    transition: 0.8s;
}

.listing-banner:hover::after {
    left: 150%;
}

@keyframes rotateCoin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); } /* Вращение по оси Y выглядит круче (3D эффект) */
}

.timer-display {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums; /* Цифры фиксированной ширины */
    color: #FFD700;
    display: flex;
    align-items: baseline;
    gap: 8px; /* Расстояние между блоками */
    font-weight: 800;
}

/* Стили для маленьких букв d, h, m */
.timer-display small {
    font-size: 0.65em;
    text-transform: lowercase;
    margin-left: 2px;
    color: rgba(255, 215, 0, 0.6); /* Чуть прозрачнее цифр */
    font-weight: 400;
}





/* Основной контейнер */
.listing-wrapper {
    padding: 20px;
    background: #161a1f; /* Глубокий темный цвет */
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Навигация */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    
    position: relative;
    
}

.title-container {
    position: relative;
    text-align: center;
}

.page-title {
    font-size: 18px; /* Чуть уменьшили размер для изящности */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to bottom, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 217, 0, 0.15) 0%, transparent 70%);
    filter: blur(12px);
    z-index: -1;
    pointer-events: none;
}

.page-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #ffd700;
    margin: 4px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Главная карточка */
.listing-main-card {
    background-color: #1d232b;
    border-radius: 30px;
    padding: 25px 20px; /* Уменьшили padding (было 40px) */
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin-bottom: 20px;
}

.osmo-logo-container img {
    width: 110px; /* Немного компактнее */
    height: 110px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.listing-status-tag {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.main-date {
    font-size: 32px;
    font-weight: 800;
    margin: 5px 0;
    letter-spacing: -1px;
    color: #fff;
}

.listing-subtitle {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* Таймер */
.listing-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.t-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: 12px;
    min-width: 48px;
}

.t-item span {
    font-size: 20px;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
}

.t-item small {
    font-size: 8px;
    color: #555;
    text-transform: uppercase;
    margin-top: 3px;
}

.t-sep {
    color: #333;
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 12px;
}

/* Описание */
.ai-description-card {
    background: #1d232b;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ai-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ai-icon { color: #ffd700; font-size: 16px; }
.ai-label { font-size: 10px; font-weight: 700; color: #ffd700; letter-spacing: 1px; }

.ai-description-card p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
}

/* Партнеры */
.partners-container {
    margin-top: 30px;
    padding: 20px 15px;
    background-color: #1d232b;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-container h3 {
    font-size: 9px;
    color: #444; 
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.partners-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 15px;
    align-items: center;
    justify-items: center;
}

.p-logo img {
    max-width: 75px; 
    max-height: 25px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.4;
    transition: 0.3s;
}

.p-logo:hover img {
    opacity: 0.8;
    filter: grayscale(0) brightness(1);
}

.wallet-balance-card {
    background: #161a1f;
    border-radius: 20px;
    padding: 24px 20px; /* Немного увеличил внутренний отступ для солидности */
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 15px 0;
}

.balances-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем саму группу */
    margin-bottom: 25px;
}

.balance-info-item {
    flex: 1; /* Каждый блок занимает ровно 50% */
    text-align: center; /* Текст внутри блока всегда по центру своей половины */
}

.balance-info-item h3 {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center; /* Центрируем число и валюту */
    gap: 4px;
}

.balance-amount.osmo-color {
    color: #ffd700;
}

.balance-amount small {
    font-size: 10px;
    opacity: 0.4;
    font-weight: 600;
}

/* Вертикальная линия - теперь она будет точно по центру */
.balance-divider-vertical {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.balance-actions-full {
    width: 100%;
}

.btn.deposit.full-width {
    width: 100%;
    background: #ffd700;
    color: #000;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: 0.2s;
}

.btn.deposit.full-width:active {
    transform: scale(0.98);
}

/* Контейнер страницы */
.wallet-page-container {
    padding: 10px 15px; /* Немного ужали сверху */
}

/* Основная карта */
.wallet-main-card {
    background: linear-gradient(145deg, #1a1f26, #14181d);
    border-radius: 24px;
    padding: 18px 20px; /* Уменьшили вертикальный padding с 20 до 18 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px; /* Уменьшили расстояние до кнопок (было 20px) */
}

/* Шапка с ID */
.wallet-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px; /* Уменьшили с 15px */
}

.account-label {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.account-id {
    font-size: 13px;
    color: #ffd700;
    font-family: 'Courier New', monospace;
}

.card-divider-light {
    height: 1px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px; /* Уменьшили с 15px */
}

/* Сетка балансов */
.wallet-balances-grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-item-box {
    flex: 1;
    text-align: center;
}

.balance-item-box h3 {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px; /* Уменьшили с 6px */
}

.balance-val {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.balance-val.osmo-accent {
    color: #ffd700;
}

.balance-val small {
    font-size: 10px;
    opacity: 0.4;
    margin-left: 2px;
}

.balance-v-separator {
    width: 1px;
    height: 25px; /* Немного укоротили разделитель */
    background: rgba(255, 255, 255, 0.08);
}

/* Группа кнопок */
.wallet-action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; /* Уменьшили зазор между кнопками с 12px */
}

/* Общий стиль для кнопок кошелька */
.btn-wallet {
    padding: 14px; /* Уменьшили высоту кнопок с 16px */
    border-radius: 16px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

/* Пополнить */
.btn-wallet.deposit {
    background: #ffd700;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Вывести */
.btn-wallet.withdraw {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-wallet:active {
    transform: scale(0.96);
}


.income-calculator {
    background: #161a1f;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 15px 0;
}

.calc-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.calc-field {
    margin-bottom: 15px;
}

.calc-field label {
    display: block;
    font-size: 11px;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Стилизация инпута и селекта */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#calcAmount, #calcPercent {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: 0.3s;
}

#calcAmount:focus {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.input-suffix {
    position: absolute;
    right: 15px;
    font-size: 10px;
    color: #555;
    font-weight: 800;
}

/* Кнопка */
.btn-calc-main {
    width: 100%;
    background: #ffd700;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin: 10px 0 20px 0;
    transition: 0.3s;
}

.btn-calc-main:active {
    transform: scale(0.97);
}

/* Блок результатов */
.calc-result-grid {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.res-box {
    flex: 1;
    text-align: center;
}

.res-label {
    display: block;
    font-size: 9px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.res-amount {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.res-amount.primary-res {
    color: #ffd700;
}

.res-amount small {
    font-size: 9px;
    opacity: 0.4;
}

.res-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.08);
}

/* Исправление видимости текста в выпадающем списке */
#calcPercent option {
    background-color: #1a1f26; /* Темный фон как у карточки */
    color: #fff;               /* Белый текст */
    padding: 10px;
}

/* Убираем стандартную стрелку браузера (по желанию для красоты) */
#calcPercent {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px !important; /* Место под стрелку */
}

/* Чтобы на iOS/Android при нажатии тоже было темно */
#calcPercent:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffd700;
}

.balance-box-modern {
    background: rgba(22, 26, 31, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 10px 14px; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    min-height: 85px; /* Немного увеличили высоту под крупный текст */
}

.balance-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.balance-column.left { text-align: left; }

.balance-column.center { 
    flex: 0 0 115px; /* Еще чуть шире для удобного расположения таймера */
    justify-content: center; 
    align-items: center; 
}

.balance-column.right { text-align: right; }

/* Заголовки (USDT / OSMO) */
.balance-column h3 {
    font-size: 11px; /* Увеличено с 8px */
    color: #888; /* Сделали чуть светлее для читаемости */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    font-weight: 700;
}

.sub-balances p {
    margin: 1px 0;
    line-height: 1.3;
    white-space: nowrap;
}

/* Названия полей (Дост / Замор) */
.label {
    font-size: 10px; /* Увеличено с 8px */
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
}

/* Сами цифры баланса */
.val {
    font-size: 15px; /* Увеличено с 13px */
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}

.val.frozen { color: #ff5e5e; }
.osmo-text { color: #ffd700; }

/* Текст статуса (ACTIVE) */
.val-status {
    font-size: 11px; /* Увеличено с 9px */
    color: #00ffa3;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(0, 255, 163, 0.4);
    letter-spacing: 0.5px;
}

/* Контейнер таймера */
.balance-icon-wrapper {
    position: relative;
    width: 75px; 
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neon-timer-mini {
    transform: scale(0.95); /* Таймер теперь почти на весь контейнер */
    transform-origin: center;
    flex-shrink: 0;
}



/* Контейнер страницы приглашений */
.invite-container {
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Премиальная карточка реферала */
.invite-card-premium {
    background: linear-gradient(145deg, #1a1f26, #14181d);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 24px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.user-id-badge {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 15px;
}

.invite-card-premium h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.invite-descr {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Поле ссылки и кнопка */
.link-box-premium {
    display: flex;
    background: #000;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 5px;
    align-items: center;
}

.link-box-premium input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.copy-btn-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn-gold:active {
    transform: scale(0.9);
}

/* Сетка статистики */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background: #161a1f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon-glow {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.03);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.osmo-accent {
    color: #ffd700 !important;
}

/* Основная карточка профиля */
.user-main-card-premium {
    background: linear-gradient(145deg, #1a1f26, #14181d);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    background: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.avatar-main { font-size: 30px; }

.edit-icon-gold {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ffd700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #14181d;
}

.user-display-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

/* Верификация */
.verification-card-premium {
    background: linear-gradient(90deg, #161a1f 0%, #1c2229 100%);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #ffd700;
    margin-bottom: 20px;
}

.status-icon-glow {
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.3));
}

.status-details h3 { font-size: 14px; margin: 0; color: #fff; }
.status-details p { font-size: 12px; margin: 3px 0 0; color: #666; }
.status-unverified { color: #ff4d4d; font-weight: bold; }

.verify-btn-gold {
    margin-left: auto;
    background: #ffd700;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
}

/* Карточки секций и инпуты */
.settings-section-card {
    background: #161a1f;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.form-group-premium { margin-bottom: 15px; }
.form-group-premium label {
    display: block;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    margin-left: 5px;
}

.input-wrapper {
    
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2px;
    transition: 0.3s;
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.input-wrapper.readonly { opacity: 0.5; background: rgba(255,255,255,0.02); }

/* Кнопки */
.save-btn-gold {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

.action-item-btn {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: none;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
}

.logout-color { color: #ff4d4d; }
.arrow-right { color: #333; font-size: 18px; }
.section-label { font-size: 12px; color: #444; margin-bottom: 15px; text-transform: uppercase; }



 





















/* Сетка вознаграждений */
.rewards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.reward-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.reward-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.reward-icon-box {
    width: 45px;
    height: 45px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #222;
}

.reward-info h4 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.reward-info p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.osmo-accent {
    color: #ffd700;
    font-weight: bold;
}

/* Шаги 1-2-3 */
.steps-mini-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 10px;
    padding: 0 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.step-item.highlight .step-num {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    border: none;
}

.step-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
    margin-bottom: 20px; /* выравнивание по кружкам */
}

/* Баннер снизу */
.promo-banner-mini {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), transparent);
    border-left: 3px solid #ffd700;
    padding: 15px;
    border-radius: 0 12px 12px 0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bolt-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 5px #ffd700);
}

.promo-banner-mini p {
    font-size: 13px;
    line-height: 1.4;
    color: #ccc;
    margin: 0;
}

/* Упрощенные карточки статы */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

/* Делаем логотип XRP чисто белым */
.coin-logo.white-logo {
    filter: brightness(0) invert(1);
    background: transparent; /* Убираем фон подложки, если он был */
}

/* Общий стиль для логотипов (чуть подправил для четкости) */
.coin-logo { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    object-fit: contain;
    flex-shrink: 0;
}





/* Список транзакций со скроллом */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px; 
    overflow-y: auto;
    padding-right: 8px;
}

/* Кастомный золотой скролл */
.transactions-list::-webkit-scrollbar { width: 3px; }
.transactions-list::-webkit-scrollbar-track { background: transparent; }
.transactions-list::-webkit-scrollbar-thumb {
    background: linear-gradient(#ffd700, #b8860b);
    border-radius: 10px;
}

/* Элемент транзакции */
.transaction-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.transaction-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

/* Иконка */
/* Квадратная иконка в стиле Premium */
.tx-icon-box {
    width: 45px;
    height: 45px;
    /* Уходим от чисто черного к глубокому графиту */
    background: linear-gradient(145deg, #1a1f26, #0a0c10); 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    /* Тонкая рамка и внутренний блик */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 
                0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Эффект свечения внутри для каждой иконки (опционально) */
.tx-icon-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Инфо */
.tx-info { margin-left: 15px; }
.tx-info h4 { margin: 0; font-size: 14px; color: #fff; font-weight: 700; }
.tx-info p { margin: 4px 0 0; font-size: 11px; color: #666; text-transform: uppercase; }

/* Суммы */
.tx-amount { font-weight: 800; font-size: 16px; font-family: 'Monaco', monospace; }
.tx-gold { color: #ffd700; }
.tx-red { color: #ff4d4d; }
.tx-green { color: #00ffa3; }

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Контейнер уровней - Gold Border */
/* Контейнер уровней */
.referral-levels-nav {
    display: flex;
    gap: 2px;
    margin: 20px 0;
    padding: 3px;
    background-color: #14181d;
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.3); 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
}

.level-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #555;
    padding: 10px 2px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.level-btn.active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

/* Обертка таблицы со скроллом */
.referrals-table-wrapper {
    background: #14181d;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    max-height: 310px; 
    overflow-y: auto;
    overflow-x: hidden;
}

/* Золотой скроллбар */
.referrals-table-wrapper::-webkit-scrollbar {
    width: 4px;
}
.referrals-table-wrapper::-webkit-scrollbar-track {
    background: #111111;
}
.referrals-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.referrals-table {
    width: 100%;
    border-collapse: collapse;
}

/* Липкая шапка */
.referrals-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #111111;
    text-align: left;
    padding: 12px 15px;
    color: #FFD700;
    font-size: 0.65em;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.referrals-table tr td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
    color: #ffffff;
    font-size: 14px;
    vertical-align: middle;
}

/* Колонки */
.referrals-table th:nth-child(2), .referrals-table td:nth-child(2) { width: 80px; text-align: center; }
.referrals-table th:nth-child(3), .referrals-table td:nth-child(3) { width: 90px; text-align: center; }

/* E-mail (макс 12 символов) */
.ref-login-text {
    color: #e0e0e0;
    font-size: 0.9em;
    font-weight: 600;
    display: block;
    max-width: 95px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'JetBrains Mono', monospace; 
}

.ref-id-text {
    color: #FFD700; 
    font-size: 0.7em;
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
}

/* УЛЬТРА-КОМПАКТНЫЙ ЗНАЧОК */
.status-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    
    font-size: 10px; /* Оставляем стандартный, чтобы не мылило */
    font-weight: 800;
    color: #FFD700;
    text-align: center;
    text-transform: uppercase;
    
    /* УМЕНЬШЕНИЕ САМОГО ОБЪЕКТА */
    transform: scale(0.8); 
    transform-origin: center; 
    
    width: fit-content;
    min-width: auto; 
    line-height: 1;
    white-space: nowrap;
}

.referrals-table tr:hover td {
    background: rgba(255, 215, 0, 0.03);
}

/* Дополнение к твоим стилям */
.swap-section .input-wrapper {
    display: flex;
    align-items: center;
    background: #14181d /* В стиле link-box-premium */
}

.swap-section .input-wrapper input {
    flex: 1;
}

/* Эффект нажатия на главную кнопку */
.save-btn-gold:active {
    transform: scale(0.98);
    filter: brightness(0.9);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.price-chart-container svg {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки в ряд */
    gap: 10px;
    margin-bottom: 10px; /* Отступ от нижнего блока */
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Твои 2 блока в ряд */
    gap: 10px;
}

/* На мобилках, если будет тесно, можно уменьшить шрифт */
@media (max-width: 480px) {
    .levels-grid .stat-label {
        font-size: 10px;
    }
}

