/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* отключаем горизонтальный скролл */
  width: 100vw;
  max-width: 100vw;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  color: #fff;
  background-color: #080a0e;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative; /* чтобы псевдоэлементы позиционировались относительно body */
}

body::before,
body::after {
  content: "";
  position: absolute;
  width: 430px;  /* размер круга */
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 63, 198, 0.6) 0%, transparent 70%);
  pointer-events: none; /* чтобы не мешали кликам */
  z-index: -1; /* чтобы не перекрывать контент */
}

body::before {
  top: -150px; /* часть круга сверху */
  left: 50%;
  transform: translateX(-50%);
}

body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 150px; /* половина высоты круга */
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  border-radius: 0 0 150px 150px; /* скругляем только нижнюю часть */
  background: radial-gradient(circle at center bottom, rgba(7, 63, 198, 0.6), transparent 50%);
}


.app-container {
    max-width: 400px;
    /* margin: 0 auto; */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top:50px;
}

/* Header */
/* .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 18px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */



.balance-add {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.balance-add:hover {
    transform: scale(1.1);
}

/* Game Container */
.game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    padding-bottom:80px;
}

.lucky-pass-btn.lucky-active {
  background: #28a745; /* зелёный */
  border: 2px solid #1e7e34;
  transition: 0.3s ease;
}


.roulette-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.roulette-container {
    position: relative;
    margin: 5px 0;
}

#rouletteCanvas {
    border-radius: 50%;
    /* box-shadow: 0 0 30px rgba(255, 107, 107, 0.3); */
}

@keyframes arrow-wobble-once {
  0%   { transform: translateX(-50%) rotate(0deg); }
  30%  { transform: translateX(-50%) rotate(-51deg); } /* влево */
  60%  { transform: translateX(-50%) rotate(51deg); }  /* вправо */
  100% { transform: translateX(-50%) rotate(0deg); }   /* центр */
}

.roulette-arrow {
  width: 40px;
  height: 40px;
  background-image: url('1321315170.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.roulette-arrow.wobble-once {
  animation: arrow-wobble-once 0.5s ease-in-out;
}


#loader {
  position: fixed;
  inset: 0;
  background: black; /* запасной цвет, пока картинка не загрузилась */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Nunito Sans', sans-serif;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#loader.hide {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.loader-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* чтобы картинка покрывала весь экран */
  z-index: 0;
}

.loader-text {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 20px;
  font-weight: bold;
  animation: fadeBlink 1.5s infinite;
}

@keyframes fadeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}





.spin-button {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    padding: 15px 50px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.spin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Profile Section */
.profile-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 15px;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 10px;
    margin-bottom: 10px;
}



.stat-value {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.profile-btn:not(.secondary) {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
}

.profile-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-btn:hover {
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2;
}
@font-face {
  font-family: 'Unbounded-bold'; /* имя шрифта, которое ты будешь использовать */
  src: url('/static/fonts/Unbounded-Bold.ttf') format('truetype');
  font-weight: bold; /* или 700 */
  font-style: normal;
}

.modal-title {
  text-align: center;
  font-family: "Unbounded-bold";
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top:30px;
}


.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
}

.share-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-container input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
}

.share-container button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.friend-counter {
    text-align: center;
    color: #ccc;
    margin-top: 15px;
}

/* Navigation */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0; /* Удалён отступ снизу */
  left: 0;    /* Установлено на 0 для полной ширины */
  right: 0;   /* Установлено на 0 для полной ширины */
  
  height: 70px;
  background-color: rgba(13, 13, 13, 1);
  /* backdrop-filter: blur(20px); */
  border-radius: 36px 36px 0 0; /* округлённые только верхние края */
  /* box-shadow: 0 0 15px rgba(16, 85, 251, 0.5); синий свет по краям */
  z-index: 300;
  padding: 0 20px; /* Отступы внутри, если они нужны */
  /* border-color:656565; */
  border: 0.5px solid rgba(122, 123, 124, 0.4); 
}

.nav-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 11px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: bold;
  color: #7a7a7a;
  background: transparent;
  border: none;
  overflow: visible;
}

.nav-btn.active {
  color: white;
  font-weight: 600;
}



.icon {
  width: 24px;
  height: 24px;
  background-color: #7a7a7a; /* цвет по умолчанию */
  mask-image: url('/static/icons/my-icon.svg'); /* путь к твоему SVG */
  -webkit-mask-image: url('/static/icons/my-icon.svg');
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: background 0.3s;
}

.nav-btn.active .icon {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  /* background: #ff6b6b; если браузер не поддерживает */
}




/* Win Notification - маленькое сверху, полностью круглое, смещено вниз */
.win-notification {
    position: fixed;
    top: 100px; /* опускаем на 40 пикселей вниз */
    left: 50%;
    transform: translateX(-50%);
    background-color: #2E2E2E;
    padding: 10px 20px;
    border-radius: 25.5px; /* половина высоты (51 / 2) для полной округлости */
    text-align: left;
    z-index: 5000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    width: 350px;
    height: 51px;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* medium */
    font-size: 14px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


/* Иконка успеха слева */
.win-notification__icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    background-image: url('success-icon.png'); /* вставь сюда путь к твоему значку */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.copy-notification__icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    background-image: url('copy-icon.png'); /* вставь сюда путь к твоему значку */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.error-notification__icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    background-image: url('error.png'); /* вставь сюда путь к твоему значку */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Класс для показа уведомления */
.win-notification.show {
    opacity: 1;
    pointer-events: auto;
}

/* Ad Modal */
.ad-content {
    text-align: center;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ad-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
}


.timer {
    font-size: 24px;
    color: #feca57;
    margin-top: 10px;
}

.skip-ad {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    cursor: not-allowed;
}

.skip-ad.enabled {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    cursor: pointer;
}

/* Friends Section Styles */
.friends-section {

    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.friends-header {
    text-align: center;
    padding: 3px 0;
    align-items:center;
}

@font-face {
  font-family: 'Montserrat-Regular'; /* имя шрифта */
  src: url('/static/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat-Medium'; /* имя шрифта */
  src: url('/static/fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.friends-header h2 {
    font-size: 28px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.balance-header {
    text-align: center;
    padding: 3px 0;
}

.balance-header h2 {


    margin-bottom: 10px;
    font-family: 'Unbounded', sans-serif;
  font-weight: 700; /* bold */
  font-size:16px;
  color: #fff;
}



.friends-subtitle {
  color: #fff;
  font-size: 14px;
  max-width: 400px;
  font-family: 'Montserrat-Regular', Helvetica, sans-serif;
}
.friends-subtitle strong {
  font-weight: 700; /* или font-family: 'Montserrat-Bold', sans-serif; */
}


.friends-share-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 33px;
    padding: 16px;
    margin-top: 10px;

}

.friends-share-container label {
    display: block;
    margin-bottom: 15px;
    color: #feca57;
    font-weight: bold;
}

.share-box {
    display: flex;
    gap: 10px;
}

.share-box input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat-Regular';
    font-weight: 400; /* регулярный */
}


.copy-btn {
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.friends-stats {
    text-align: center;
}

.stat-circle {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(254, 202, 87, 0.2));
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 107, 107, 0.3);
    margin: 0 auto;
}

.stat-number {
    font-size: 16px;
    font-weight: bold;
    color: #feca57;
}



.friends-rewards {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-rewards h3 {
    color: #feca57;
    margin-bottom: 20px;
    text-align: center;
}

.reward-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-icon {
    font-size: 30px;
}

.reward-title {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.reward-desc {
    color: #ccc;
    font-size: 14px;
}

.reward-count {
    margin-left: auto;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.main-button {
  display: flex;
  width: 302px;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: absolute;

  border-radius: 12px;
  border: 1px solid;
  border-color: #1055fb;
  box-shadow: inset 0px 2px 8px #ffffff40, 0px 2px 12px #00000040;
  background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
}

.main22-button {
  position: relative;
  z-index: auto;
  display: inline-block;
  margin: 0px auto 0 auto; /* Отступ сверху + автополя слева и справа */
  border-radius: 12px;
  border: 1px solid;
  background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
  padding: 17px;
  min-width: 300px;
  text-align: center; /* для текста внутри */
  cursor: pointer;
}
.main24-button {
  display: block; /* было inline-block */
  margin: 0 auto; /* авто-поля по горизонтали */
  position: relative;
  z-index: auto;
  border-radius: 12px;
  border: 1px solid;
  background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
  padding: 17px;
  min-width: 300px;
  text-align: center;
  cursor: pointer;
  margin-top:15px;
}



.back-to-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.balance-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* равномерное распределение */
  gap: 5px;
  width: 100%;
  max-width: 100%; /* на случай ограничений */
  padding: 0 0px; /* отступы слева и справа */
  background: transparent;
  border: none;
  box-sizing: border-box; /* чтобы padding не выходил за пределы ширины */
}


.balance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1); /* светлый прозрачный фон */
  padding: 6px 14px;
  border-radius: 30px; /* округляем по максимуму для овала */
  
  min-width: 80px; /* можно подкорректировать под твои цифры */
  justify-content: center;
  font-weight: 500;
  color: white;
  user-select: none;
  min-width:90px;
  min-height:38px;
  font-family: "Montserrat-Bold", Helvetica;
  font-size:14px;
}

.balance-item.wallet-item {
  min-width: auto; /* чтобы под иконку */
  padding: 6px 10px;
}

.balance-item.wallet-item button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width:48px;
}

.stats-tabs {
  display: flex;
  justify-content: space-between; /* равномерно растягивает */
  gap: 15px;
  margin-bottom: 25px;
  width: 100vw;          /* полная ширина экрана */
  max-width: 78%;       /* не вылезать за контейнер */
  padding: 0 12px;       /* отступы слева и справа */
  box-sizing: border-box;
  margin-left:60px;
  margin-right:28px;
}


.balance-icon {
    width: 20px;
    height: 20px;
}

.balance-amount {
    font-weight: bold;
}



.select-btn {
  /* background-color: #1a1a2e; */
  color: #fff;
  /* border: 1px solid #444; */
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  /* box-shadow: 0 0 6px rgba(255, 255, 255, 0.1); */
  transition: box-shadow 0.3s ease;
  max-width:48px;
}

.select-btn:focus,
.select-btn:hover {
  box-shadow: 0 0 8px #00c8ff;
}

.selected-flag {
  margin-right: 6px;
  font-size: 18px;
}

.arrow {
  transition: transform 0.3s ease;
}



.options {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  background-color: #1a1a2e;
  border: 1px solid #444;
  border-radius: 6px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}



.options li {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.options li .flag {
  margin-right: 8px;
  font-size: 18px;
}

.options li:hover {
  background-color: #333;
}


.roulette-container {
  position: relative;
}



.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 17px;
  /* background-color: #1a1a2e; */
  color: #fff;
  position: relative;
  flex-wrap: wrap;
  gap: 20px;
}

.header h1 {
  margin: 0;
  font-size: 1.6rem;
  flex-shrink: 0;
}





.balance-icon {
  width: 24px;
  height: 24px;
}

.balance-amount {
  font-weight: 600;
  font-size: 1rem;
}

/* .balance-add {
  background-color: #2ecc71;
  border: none;
  color: white;
  padding: 5px 12px;
  font-size: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.balance-add:hover {
  background-color: #27ae60;
} */






.roulette-wrapper {
  width: 320px;
  margin: 0 auto;
}

.buttons-row {
  display: flex;
  justify-content: center; /* спин по центру горизонтали */
  align-items: flex-end;   /* выравниваем по нижнему краю (spin ниже) */
  margin-top: 15px;
  gap: 20px;               /* расстояние между кнопками */
}

.spin-button {
  display: flex;
  width: 300px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  border-radius: 12px;
  border: 1px solid;
  border-color: #1055fb;
  background: linear-gradient(
    180deg,
    rgba(7, 63, 198, 1) 0%,
    rgba(24, 84, 232, 1) 100%
  );
}

.spin-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.spin-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spin-button {
  /* остальной стиль без изменений */
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border: none;
  padding: 15px 50px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  flex-shrink: 0;
}




.buttons-column {
  width: 320px; /* подстрой под ширину рулетки */
  margin: 0 auto;
}

.top-row {
  display: flex;
  justify-content: flex-end; /* кнопка справа */
  margin-bottom: 8px; /* расстояние между строками */
}

.bottom-row {
  display: flex;
  justify-content: center; /* кнопка по центру */
}
  
.spin-button {
  display: flex;
  width: 300px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  border-radius: 12px;
  border: 1px solid;
  border-color: #1055fb;
  background: linear-gradient(
    180deg,
    rgba(7, 63, 198, 1) 0%,
    rgba(24, 84, 232, 1) 100%
  );
}


.lucky-pass-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #ffca28, 0 0 30px #ffa000;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.language-select {
  position: relative;
  display: inline-block;
  user-select: none;
  cursor: pointer;
  color: white;
}
.language-select .options {
  display: none;
}

.language-select .options.show {
  display: block;
  position: absolute;
  top: 100%;
  /* right: 0; */
  background: #333;
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  min-width: 100px;
  min-height: 100px;
}


.language-select .options li {
  padding: 8px 15px;
  cursor: pointer;
  white-space: nowrap;
}

.language-select .options li:hover {
  background: #444;
}


.lucky-pass-btn img {
  width: 24px;
  height: 24px;
  display: block;
  user-select: none;
  pointer-events: none;
}


.modal-overlay-pass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay-pass.show {
  display: flex;
}

.modal-content-pass {
  background: #1a1a2e;
  color: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  max-width: 320px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
  touch-action: none;
}

.close-btn-pass {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
}

.modal-description-pass {
  margin-top: 10px;
  font-size: 16px;
  color: #ccc;
}

.modal-image-pass {
  width: 100%;
  /* max-width: 200px; */
  width:240px;
  height:240px;
  margin: 20px auto;
  display: block;
}

.modal-price-pass {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* если нужно пространство между элементами */
}



.old-price-pass {
  text-decoration: line-through;
  color: #888;
  margin-right: 10px;
}

.new-price-pass {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD700;
}

.buy-btn-pass {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 20px auto 0 auto; /* сверху 20px, по бокам auto */
}


.loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-modal.hidden {
  display: none;
}

.loading-modal .modal-content {
  background: #1f1f1f;
  color: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  min-width: 260px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.modal-spinner {
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #feca57;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.modal-icon.hidden {
  display: none;
}

/* Statistics Styles */
.stats-container {
    /* background: rgba(255, 255, 255, 0.05); */
    border-radius: 20px;
    padding: 25px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(10px);
    /* margin-top:70px; */
}





.stat-header {
  font-family: 'Unbounded-bold', Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}


@font-face {
  font-family: 'Montserrat-Regular'; /* имя шрифта для использования в CSS */
  src: url('/static/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.stat-dop {
  font-family: 'Montserrat-Regular', Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
}


.stats-header {
    text-align: center;
    margin-bottom: 20px;
}

.stats-header h3 {
    font-size: 20px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stats-header p {
    color: #ccc;
    font-size: 14px;
}

/* .stats-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
} */

@font-face {
  font-family: 'Unbounded-Medium';
  src: url('/static/fonts/Unbounded-Medium.ttf') format('truetype');
  font-weight: 500; /* обычно medium — это около 500 */
  font-style: normal;
}

.tab-btn {
  flex: 1 1 0;              /* Растягиваем кнопки равномерно */
  max-width: 100%;          /* Максимальная ширина не превышает контейнер */
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 20px;
  font-family: 'Unbounded-Medium', Helvetica, sans-serif;
  letter-spacing: -0.24%;
  
  display: flex;            /* для центрирования контента */
  align-items: center;      /* по вертикали */
  justify-content: center;  /* по горизонтали */
  text-align: center;
  gap:5px;
}

.tab-btn-plus {
  flex: 1 1 0;              /* Растягиваем кнопки равномерно */
  max-width: 74%;          /* Максимальная ширина не превышает контейнер */
  padding: 10px;
  background: rgb(33, 35, 39);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 20px;
  font-family: 'Unbounded-Medium', Helvetica, sans-serif;
  letter-spacing: -0.24%;
  
  display: flex;            /* для центрирования контента */
  align-items: center;      /* по вертикали */
  justify-content: center;  /* по горизонтали */
  text-align: center;
  margin-left:70px;
  margin-right:38px;
  z-index:2;
}



.tab-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #fff;
    border-color: transparent;
}


.stats-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-label {
    color: #ccc;
    font-weight: bold;
}

.stats-value {
    color: #feca57;
    font-weight: bold;
}

.stats-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(254, 202, 87, 0.2));
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    font-weight: bold;
}

/* Quests Section */
.quests-section {
    padding: 20px;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quests-header {
    text-align: center;
    padding: 9px 0;
}

.quests-header h2 {
    font-size: 28px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.quests-subtitle {
    color: #ccc;
    font-size: 16px;
}

.quests-container {
    display: flex;
    flex-direction: column;
}

.quest-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.quest-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.quest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width:340px;
}

.quest-content {
    padding: 20px;
}

.quest-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.quest-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.quest-progress {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    transition: width 0.3s ease;
}

.quest-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.reward-icon {
    color: #feca57;
}

.complete-btn {
    display: block;   
    text-align: center;        /* чтобы margin auto сработал */
    max-width: 300px;         /* максимальная ширина кнопки */
    margin: 0 auto;           /* центрирование по горизонтали */
    padding: 12px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;  
    text-decoration: none;
    font-size:14px;            /* занимает всю ширину max-width */
}

.complete-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.complete-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
}


.back-btn {
    margin-top: auto;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}



.modal-content {
  z-index: 10001;
  /* остальные стили */
}

#balanceSection {
  padding: 0px 20px;
  /* background: #fff; */
  border-radius: 8px;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.tabs-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  border-radius: 8px;
  cursor: pointer;
  border: none;
  color:#ddd;
  font-weight: bold;
  transition: all 0.2s ease;
}

.tab:hover {
  background-color: #ddd;
}

.tab.active {
  background-color: #007bff;
  color: #fff;
}

.tab-content {
  padding: 10px;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.withdraw-btn {
  padding: 12px 24px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.withdraw-btn:hover {
  transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}




.confirm-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.confirm-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.confirm-btn.yes {
  background-color: #4CAF50;
  color: white;
}

.confirm-btn.no {
  background-color: #f44336;
  color: white;
}


.withdraw-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}



/* Статусы
.card-success {
  background: linear-gradient(to right, #d1f9d1, #b0eac3);
  border-left: 5px solid #28a745;
}

.card-rejected {
  background: linear-gradient(to right, #ffe3e3, #ffcccc);
  border-left: 5px solid #dc3545;
}

.card-pending {
  background: linear-gradient(to right, #fef6d5, #fff3b0);
  border-left: 5px solid #ffc107;
} */

/* Анимация */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.gradient-amount {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 1.1rem;
}

.gradient-status {
  background: linear-gradient(90deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 0.95rem;
}

.frame-11 {
  display: flex;
  width: 51px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 32px;
  position: absolute;

  /* выше */
  left: 320px;  /* правее */

  background-color: #ffffff;
  border-radius: 12px;
}



.bottom-row {
  display: flex;
  align-items: center; /* Выравнивание по вертикали */
  gap: 10px; /* Расстояние между frame-11 и frame-left */
}

.frame-left {
  display: flex;
  min-width: 65px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  position: absolute;

  /* выше */
  left: -20px;  /* правее */
  z-index:3;
  font-family: "Montserrat-Bold", Helvetica;
  font-size:14px;
  font-weight: 100;

  background: linear-gradient(180deg, #FBB03B, #EC6F10);
  border-radius: 12px;

  
}



.text-wrapper-left {
  font-family: 'Unbounded-Bold';
}

.bottom-row {
  display: flex;
  align-items: center;
  gap: 20px; /* расстояние между фреймами и кнопкой */
}

.frames-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* расстояние между frame-left и frame-11 */
}







.stat-item {
  margin-bottom: 10px;
}



.reward-list {
  list-style: none;
  padding-left: 0;
}

.reward-list li {
  margin: 4px 0;
}

.text-wrapper-9 {
  position: relative;

  margin-top: -1px;
  background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
  -webkit-background-clip: text !important;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-family: "Montserrat-Bold", Helvetica;
  font-weight: 700;
  color: transparent;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 21px;
  white-space: nowrap;
}

.text-wrapper-8 {

  font-family: "Montserrat-Bold", Helvetica;
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  position: relative;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}



.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px 18px;

  color: white;
  font-family: 'Montserrat-Bold', sans-serif;

}

.header-title {
  font-weight: 700; /* Unbounded Bold */
  font-size: 18px;
  margin: 0;
}



.balance-icon {
  width: 24px;
  height: 24px;
}

@font-face {
  font-family: 'Montserrat-Bold';
  src: url('/static/fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: bold; /* 700 */
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat-SemiBold';
  src: url('/static/fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600; /* SemiBold обычно 600 */
  font-style: normal;
}

.balance-amount {
  font-family: 'Montserrat-Bold', sans-serif;
  font-weight: bold;
  font-size: 14px;
}


.balance-add {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.controls-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* равномерно растягивает */
  gap: 3px;
  width: 100%;
  padding: 0 0px; /* небольшой отступ слева и справа */
  box-sizing: border-box;
  
}


/* Языковой селектор - оставь как есть, если хочешь, могу помочь */

.lucky-pass-btn {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border: none;
  background: linear-gradient(180deg, #FBB03B, #EC6F10);
  color: #fcfbfb;
  border-radius: 30px;
  cursor: pointer;
  left:50%;
  min-width:225px;
}

.volume-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}


.modal-overlay-pass {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: env(safe-area-inset-top); /* учитываем вырезы */
  padding-top: env(safe-area-inset-top); /* чтобы не перекрывать системную панель */
  background: rgba(18, 22, 32, 0.8);
  backdrop-filter: blur(8px);
  /* остальное без изменений */
}


.modal-overlay-pass.show {
  visibility: visible;
  opacity: 1;
}

.modal-content-pass {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 76.66vh;
  background: #121620;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  overflow-y: auto;
  margin-top: 3vh;

  transform: translateY(100%);
  transition: transform 0.4s ease;
}


.modal-overlay-pass.show .modal-content-pass {
  transform: translateY(0); /* выезжает наверх */
}

/* Полоса для свайпа сверху */
.modal-handle-pass {
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 3px;
  margin: 0 auto 15px auto;
  cursor: grab;
}

.close-btn-pass {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}



.luckytext {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700; /* bold */
  font-size:20px;
}

.modal-description-pass,
#luckyPassStatusText {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* regular */
  font-size: 14px;
  color: #fff;
  max-width: 300px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}




.friends-stats-container {
  width: 100%;
  max-width: 400px; /* можно убрать или подстроить */
  margin: 0 auto;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.stats-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: left;
  font-family: 'Unbounded-bold', Helvetica, sans-serif;


}


.text-wrapper-10 {

  font-family: 'Unbounded-bold', Helvetica, sans-serif;
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  position: relative;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

.friends-invited-block {
  text-align: center;
  margin-bottom: 20px;
}

.friends-invited-block .stat-label {
  font-size: 16px;
  margin-bottom: 5px;
}

.friends-invited-block .stat-value {
  font-size: 28px;
  font-weight: 700;
}

.rewards-row {
  display: flex;
  gap: 10px;

}

.stat-item {
  font-size: 16px;
}

.half-width {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  font-family: 'Montserrat-Regular';
  font-size:14px;
}

.full-width {
  width: 100%;
  background: rgb(33, 35, 39);
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  font-family: 'Montserrat-Regular';
  font-size:14px;
  z-index:2;
}

@font-face {
  font-family: 'Unbounded-Medium';
  src: url('/static/fonts/Unbounded-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

.stat-label {

  margin-bottom: 4px;
  font-family: 'Montserrat-Regular';
  font-size:14px;
}

#rewardTon {
  font-family: 'Unbounded-Medium', sans-serif;
  /* дополнительные стили, если нужно */
}

 
#rewardMtt {
  font-family: 'Unbounded-Medium', sans-serif;

}

#rewardUsdt {
  font-family: 'Unbounded-Medium', sans-serif;

}


/* Скрытая модалка */
.modal-hidden {
  display: none;
}

/* Фон блюрится, когда модалка активна */
.blur {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* Само модальное окно */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  backdrop-filter: blur(8px);
  align-items: flex-end; /* чтобы контент был внизу */
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-modal.show {
  visibility: visible;
  opacity: 1;
}

.confirm-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 76.66vh;
  background: #121620;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  overflow-y: auto;

  /* чтобы модалка не "прилипала" к верху экрана — отступ */
  margin-top: 3vh;

  /* анимация подъёма / возврата */
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(.22,.9,.3,1);
  touch-action: pan-y; /* разрешаем вертикальные пан-движения внутри модалки */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; 
  gap:13px;
}




.confirm-modal.show .confirm-modal-content {
  transform: translateY(0); /* выезжает */
}


.task-modal {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  backdrop-filter: blur(8px);
  align-items: flex-end; /* чтобы контент был внизу */
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* фон модалки */
#taskmodal {
  /* чтобы не «протаскивало» страницу за модалкой */
  overscroll-behavior: contain;
}

.task-modal.show {
  visibility: visible;
  opacity: 1;
}
.task-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 76.66vh;
  background: #121620;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  overflow-y: auto;

  /* чтобы модалка не "прилипала" к верху экрана — отступ */
  margin-top: 3vh;

  /* анимация подъёма / возврата */
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(.22,.9,.3,1);
  touch-action: pan-y; /* разрешаем вертикальные пан-движения внутри модалки */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; 
  gap:13px;
}

.task-modal.show .task-modal-content {
  transform: translateY(0); /* выезжает */
}

.roulette-modal {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  backdrop-filter: blur(8px);
  align-items: flex-end; /* чтобы контент был внизу */
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* фон модалки */
#roulettemodal {
  /* чтобы не «протаскивало» страницу за модалкой */
  overscroll-behavior: contain;
}

.roulette-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 76.66vh;
  background: #121620;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  overflow-y: auto;

  /* чтобы модалка не "прилипала" к верху экрана — отступ */
  margin-top: 3vh;

  /* анимация подъёма / возврата */
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(.22,.9,.3,1);
  touch-action: pan-y; /* разрешаем вертикальные пан-движения внутри модалки */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; 
  gap:13px;
}

.roulette-modal.show {
  visibility: visible;
  opacity: 1;
}

.roulette-modal.show .task-modal-content {
  transform: translateY(0); /* выезжает */
}
/* Контент модалки, можно кастомизировать */
.modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Заголовок/описание */
.task-title {
  text-align: center;
  color: #fff;
  font-family: "Unbounded-Bold", sans-serif;
  font-size: 20px;
  margin: 12px 10px 6px;
}
.task-desc {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin: 0 18px 6px;
}

.task-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}
.task-icon-wrap img#taskBigIcon {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.bottom-row {
  position: relative; /* Контейнер для абсолютного позиционирования frame-11 */
  display: inline-block; /* Чтобы размер был по содержимому */
}

/* Кнопка */
#spinBtn {
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 12px;
  /* остальные твои стили */
  position: relative; /* если нужны вложенные абсолютные элементы */
}

.frame-11 {
  position: absolute;
  top: -20px;      /* поднять над кнопкой */
  left: calc(100% - 50px); /* подвинуть вправо, но внутри контейнера */
  background-color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 33px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: 'Montserrat-SemiBold', sans-serif;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  z-index: 10;
}



/* Блокировка фона при открытой модалке:
   позиционирование фикс и top устанавливаем через JS (чтобы сохранить scroll position) */
body.modal-open {
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* Overlay занимает весь экран (учитываем safe-area) */
.modal-overlay-pass {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: env(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
  background: rgba(18, 22, 32, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 3000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* Показывается при open */
.modal-overlay-pass.show {
  visibility: visible;
  opacity: 1;
}



/* Overlay занимает весь экран (учитываем safe-area) */
.modal-overlay-pass-task {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  backdrop-filter: blur(8px);
  align-items: flex-end; /* чтобы контент был внизу */
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Показывается при open */
.modal-overlay-pass-task.show {
  visibility: visible;
  opacity: 1;
}

.modal-content-pass-task {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 76.66vh;
  background: #121620;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  overflow-y: auto;

  /* чтобы модалка не "прилипала" к верху экрана — отступ */
  margin-top: 3vh;

  /* анимация подъёма / возврата */
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(.22,.9,.3,1);
  touch-action: pan-y; /* разрешаем вертикальные пан-движения внутри модалки */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* предотвращаем выход скролла наружу */
}

/* Когда показываем overlay — модалка выезжает */
.modal-overlay-pass-task.show .modal-content-pass {
  transform: translateY(0);
}

/* Контент модалки — внутренний блок, который мы будем тянуть */
.modal-content-pass {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 76.66vh;
  background: #121620;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  overflow-y: auto;

  /* чтобы модалка не "прилипала" к верху экрана — отступ */
  margin-top: 3vh;

  /* анимация подъёма / возврата */
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(.22,.9,.3,1);
  touch-action: pan-y; /* разрешаем вертикальные пан-движения внутри модалки */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* предотвращаем выход скролла наружу */
}

/* Когда показываем overlay — модалка выезжает */
.modal-overlay-pass.show .modal-content-pass {
  transform: translateY(0);
}

/* маленькая полоса-хэндл */
.modal-handle-pass {
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 3px;
  margin: 8px auto 15px auto;
  cursor: grab;
  touch-action: none; /* ручка будет перехватывать жесты */
}

/* Для более плавного возврата/закрытия */
.modal-content-pass.dragging {
  transition: none;
}

/* Кнопка крестик если есть */
.close-btn-pass {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}

#walletContent {
  font-family: 'Montserrat-Regular';
  font-size: 14px;
  /* дополнительные стили, если нужно */
}
.star-icon {
  width: 27px; /* подгони под дизайн */
  height: 27px;
  vertical-align: middle; /* чтобы была на уровне текста */
  margin-left: 2px; /* небольшой отступ от числа */
}

.wallet-title, .balances-title, .history-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  margin: 15px 0;
}

.wallet-address-row {
  display: flex;
  justify-content: center; /* выравнивает по горизонтали */
  align-items: center;     /* по вертикали */
  gap: 8px;                /* расстояние между элементами */
         /* добавим внутренние отступы, чтобы было красиво */
}

.wallet-address {
  font-family: monospace;
  font-size: 14px;
  color: #ccc;
  background-color: #2E3239;
  border-radius: 18px;      /* скругление углов, если нужно */
  border: 0.5px solid #494F5B;
  padding: 14px 16px; 
  min-width:260px;
}

.copy-btn22 {
  padding: 12px 24px;
    background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}


.disconnect-btn {
  display: block; /* было inline-block */
  margin: 0 auto; /* авто-поля по горизонтали */
  position: relative;
  z-index: auto;
  border-radius: 12px;
  border: 1px solid;
  background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
  padding: 17px;
  min-width: 300px;
  text-align: center;
  cursor: pointer;
  margin-top:15px;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #1c1c1e; /* пример */
  border: 0.5px solid rgba(122, 123, 124, 0.4); 
}

.withdraw-btn {
  padding: 5px 10px;
  background: linear-gradient(180deg, #FBB03B, #EC6F10);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Montserrat-SemiBold';
  font-weight: 100;
  font-size: 14px;
  max-width:87px;
}



.withdraw-title {
  font-family: 'Montserrat-Medium';

  font-size: 14px;
  color: white;
}

.withdraw-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

.withdraw-status {
  font-size: 14px;
  margin-top: 4px;
}

.withdraw-status.card-success {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.withdraw-status.card-pending {
  color: #999999;
}

.withdraw-status.card-rejected {
  color: #FF0000;
}

.withdraw-amount {
  font-family: 'Montserrat-Regular';
  font-size: 14px;
}

.withdraw-amount.card-success {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.withdraw-amount.card-pending {
  color: #999999;
}

.withdraw-amount.card-rejected {
  color: #FF0000;
}

.withdraw-time {
  font-size: 12px;
  color: #aaa;
  text-align: right;
}

.withdraw-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #1c1c1e; /* пример */
  border: 0.5px solid rgba(122, 123, 124, 0.4); 
}

.withdraw-left,
.withdraw-center,
.withdraw-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.withdraw-center {
  flex: 1;
  align-items: center; /* центрирование по горизонтали */
}

.withdraw-right {
  align-items: flex-end;
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
}

.balance-amount22 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family:"Unbounded-Medium";
  font-size:20px;
}

.balance-icon22 {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}


.balance-icon22 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}




@keyframes fly-up {
  from {
    transform: translate(0, 0);
    opacity: 1;
  }
  to {
    transform: translate(0, var(--ty));
    opacity: 0;
  }
}

.modal-subtext {
  width: 220px;              /* фиксированная ширина */
  margin: 0 auto;            /* центрируем горизонтально */
  text-align: center;         /* текст по центру внутри блока */
  font-family: "Montserrat-Regular";
  font-size: 14px;
  color: #fff;
}



.modal-title {
  text-align: center;
  font-family: "Unbounded-Bold";
  font-size: 20px;
  color: #fff;
}

.modal-subtitle {
  text-align: center;
  font-family: "Unbounded-Regular";
  font-size: 14px;
  color: #ccc;
}

.balance-block {
  background: #38393E;
  padding: 15px 26px;
  border-radius: 30px;
  margin: 0 auto; 
  font-family:"Unbounded-Medium";
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width:140px;
}

.token-icon {
  width: 24px;
  height: 24px;
}

.token-icon-task {
  width: 140px;
  height: 140px;
}

.input-block {
  display: flex;
  gap: 8px;
  margin: 0 auto; 
  max-width:200px;
}

.input-block input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 30px;
  background: #2E3239;
  color: #fff;
  font-size: 16px;
  max-width:100px;
  border: 0.5px solid #494F5B; 
}

.input-block .max-btn {
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  background: #2979ff; /* синий как на скриншоте */
  color: #fff;
  font-weight: 100;
  cursor: pointer;
  font-size:14px;
  font-family:"Montserrat-Regular";
}

.min-amount {
  font-size: 14px;
  color: #888;
  text-align: center;
  font-family:"Montserrat-Regular";
}

.withdraw-btn22 {
  position: relative;
  z-index: auto;
  display: inline-block;
  margin: 0px auto 0 auto; /* Отступ сверху + автополя слева и справа */
  border-radius: 12px;
  border: 1px solid;
  background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
  padding: 17px;
  min-width: 300px;
  text-align: center; /* для текста внутри */
  cursor: pointer;
}



/* Награда */
.reward-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}
.reward-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #38393E;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.reward-inner img {
  width: 28px;
  height: 28px;
}
.reward-value {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

* Кнопки подписки */
.subscribe-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 24px;
  margin-top: 6px;
}
.subscribe-btn {
  position: relative;
  z-index: auto;
  display: inline-block;
  margin: 0 auto; /* Отступ сверху + автополя слева и справа */
  border-radius: 12px;
  border: 1px solid;
  background: linear-gradient(180deg, rgba(7, 63, 198, 1) 0%, rgba(24, 84, 232, 1) 100%);
  padding: 17px;
  min-width: 300px;
  text-align: center; /* для текста внутри */
  cursor: pointer;
}
.subscribe-btn.secondary {
  background: #3A3A3A; /* альтернативная кнопка */
  color: #fff;
}
/* Кнопки подписки */
.subscribe-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 24px;
  margin-top: 6px;
}

/* Футер - кнопка Проверить — всегда видна под .scroll-area */
.footer-actions {
  flex: 0 0 auto;
  padding: 10px 20px 18px;
  background: transparent;
}
.verify-btn {
  position: relative;
  z-index: auto;
  display: inline-block;
  margin: 0 auto; /* Отступ сверху + автополя слева и справа */
  border-radius: 12px;
  border: 1px solid;
  background: linear-gradient(180deg, #FBB03B, #EC6F10);
  padding: 17px;
  min-width: 300px;
  text-align: center; /* для текста внутри */
  cursor: pointer;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#coin-container {
    position: fixed; /* вместо absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999; /* чтобы всегда было сверху */
}


.coin {
    position: absolute;
    width: 32px;
    height: 32px;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform, opacity;
    opacity: 1;
}



@keyframes riseCoin {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) scale(0.8);
        opacity: 0;
    }
}

.roulette-container {
  position: relative;
  width: 400px; /* размер контейнера */
  height: 400px;
}

.roulette-container img {
  position: absolute;
  top: 50%;
  /* left: 50%; */
  transform: translate(-50%, -50%);
}

#wheel {
  width: 380px; /* размер колеса */
  height: 380px;
  transition: transform 2s ease-out;
}

#center {
  width: 140px; /* размер центра */
  height: 140px;
  pointer-events: none;
}


#stats-total-value {
  display: inline-flex;
  align-items: center; /* центрируем текст и иконку по вертикали */
  gap: 4px; /* расстояние между текстом и картинкой */
}
#stats-total-value img {
  display: block; /* убирает лишние отступы снизу */
}


.broll-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    position: relative;
    padding: 0 10px;
}

.broll-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    transform: translateY(-50%);
}

.broll-line label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 1;
}

.broll-line input {
    display: none;
}

.broll-line span {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.broll-line input + span::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.broll-line input:checked + span::before {
    background: #fff;
    transform: scale(1.3);
}

.broll-line input:checked + span {
    color: #fff;
    font-weight: 600;
}

.broll-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

