/* Общий стиль */
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}


.modal-register,
.modal-allcoins,
.modal-avatars {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-allcoins-content::-webkit-scrollbar {
  width: 0;
  height: 0
}

.modal-register-content,
.modal-allcoins-content,
.modal-avatars-content {
  background: rgba(26,26,26,0.95);
  padding: 30px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  max-height: 80%;
  overflow-y: auto;
}

.modal-register-content {
  width: 500px !important;
}


.close-register,
.close-allcoins,
.close-avatars {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
}

.close-register:hover,
.close-allcoins:hover,
.close-avatars:hover {
  color: #fff;
}

/* ..........................модалка с кодом 2ффа............................ */
/* Модалка ввода кода из письма */
.modal-code {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-code-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-code-content h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  text-align: center;
}

.modal-code-content input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-code-content button {
  width: 95%;
  margin: 15px auto 0 auto;
  padding: 12px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
}

.modal-code-content button:hover {
  opacity: 0.9;
}

/* Кнопка закрытия */
.modal-code-content .close-code {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* ..........................модалка с кодом 2ффа............................ */


/* Регистрация */
/* --- Логин --- */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  font-family: Arial, sans-serif;
  color: #fff;
}

.login-icon {
  width: 130px;
  animation: fadeIn 2s ease-in-out;
  cursor: pointer;
  transition: transform 0.2s;
}

.login-icon:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-container {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(6px);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(185,19,114,0.5);
  width: 320px;
  text-align: center;
}

.login-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: #b91372;
  animation-duration: 2s;
  animation-name: slidein;
}

.login-subtitle {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #2a2a2a;
  color: #fff;
}

.login-form button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  animation: fadeIn 1s ease-in-out;
}

.login-form button:hover {
  opacity: 0.9;
}

.login-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.login-register {
  margin-top: 15px;
  font-size: 14px;
  color: #ccc;
}

@keyframes slidein {
  from {
    margin-left: 100%;
    width: 80%;
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}

.login-register span {
  animation-duration: 4s;
  animation-name: fadeIn;
}

.login-register span {
  color: #b91372;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.login-register span:hover {
  color: #fff;
  text-shadow: 0 0 8px #b91372;
}

/* --- Модалка регистрации --- */
 /* .modal-register {
  display: none; 
  position: fixed;
  z-index: 10;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
} */

.modal-register-content {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 20px rgba(185,19,114,0.6);
  color: #fff;
}

.modal-register-content h2 {
  margin-bottom: 20px;
  color: #ffffff;
}

.modal-register-content input {
  width: 90%;
  margin: 8px auto;
  display: block;
  padding: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #2a2a2a;
  color: #fff;
  text-align: left;
}

.modal-register-content button {
  width: 95%;
  margin: 15px auto 0 auto;
  padding: 12px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
}

.modal-register-content button:hover {
  opacity: 0.9;
}

/* .close {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
}

.close:hover {
  color: #fff;
} */ */

.error {
  margin-top: 10px;
  font-size: 14px;
  color: #ff4d4d;
  min-height: 18px;
}



/* Регистрация */

/* Header */

.profileWrapper {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-radius: 16px;
}

.profileWrapper:hover {
  opacity: 0.9;
  box-shadow: 0 0 25px #b91372, 0 0 35px #6a11cb;
}

.profile {
  flex: 1;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(106, 17, 203, 0.2);
  transition: all 0.3s;
  color: white;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #6c63ff;
  object-fit: cover;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #6c63ff;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.profile img:hover {
  transform: scale(1.1);
}

/* Header */


/* Фон для страницы логина */
.login-body {
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Контейнер логина */
.login-container {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 16px;
  width: 350px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  animation: fadeIn 0.5s ease-in-out;
}

/* Заголовки */
.login-title {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 25px;
}

/* Форма */
.login-form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: background 0.3s;
}

.login-form input:focus {
  background: #333;
}

/* Кнопка */
.login-form button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

/* Эффект при наведении */
.login-form button:hover {
  opacity: 1;
  box-shadow: 0 0 20px #b91372, 0 0 40px #6a11cb, 0 0 60px #b91372;
  transform: translateY(-2px);
}


/* Подсказка */
.login-hint {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ///////////////////////////////////////DASHBOARD/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////DASHBOARD////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////DASHBOARD////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////DASHBOARD///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////DASHBOARD////////////////////////////////////////////////// */

/* Общий стиль */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #0d0d0d;
  color: #fff;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100%;
  background: rgba(26, 26, 26, 0.75); /* прозрачность */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 20px;
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.logoWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px; 
  margin-bottom: 40px;
}

.sidebarLogo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.4));
}


/* .sidebar .logo {
  color: #fff;
  font-size: 20px;
  margin-bottom: 40px;
  text-align: center;
} */

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.sidebar nav ul li.active,
.sidebar nav ul li:hover {
  background: linear-gradient(135deg, #6a11cb, #b91372);
  box-shadow: 0 0 10px #b91372, 0 0 20px #6a11cb;
}

/* Main content */
.main-content {
  margin-left: 240px;
  padding: 30px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header .search input {
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  outline: none;
  width: 250px;
}

.header .search input:hover {
  box-shadow: 0 0 15px #b91372, 0 0 25px #6a11cb;
}

.header .profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .profile button {
  padding: 8px 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px #6a11cb, 0 0 25px #b91372;
  animation: fadeIn 1s ease-in-out;
}

.header .profile button:hover {
  box-shadow: 0 0 15px #b91372, 0 0 25px #6a11cb;
}

/* Cards */
.cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-in-out;
}


.card {
  flex: 1;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(106, 17, 203, 0.2);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 0 25px #b91372, 0 0 35px #6a11cb;
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.card p {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #ccc;
}

.card span {
  font-weight: bold;
  color: #fff;
}

/* Graph placeholder */
.graph {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(106, 17, 203, 0.2);
  animation: fadeIn 1.5s ease-in-out;
}

.graph:hover {
  transition: all 0.3s;
  box-shadow: 0 0 25px #b91372, 0 0 35px #6a11cb;
}

.graph h3 {
  margin-top: 0;
}

/* .graph-placeholder {
  height: 10px;
  border: 2px dashed #444;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  margin-top: 15px;
} */

/* Адаптивность */
@media (max-width: 900px) {
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  .cards {
    flex-direction: column;
  }
}

/* Wrapper для левого и правого блоков */
.dashboard-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  padding-left: 20px;
}

/* Левая часть: карточки и график */
.dashboard-left {
  flex: 3;
}

/* Правая панель: Chain Allocation */
.dashboard-right {
  flex: 1;
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(6px);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(185,19,114,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dashboard-right:hover {
  transition: all 0.3s;
  box-shadow: 0 0 25px #b91372, 0 0 35px #6a11cb;
}

.dashboard-right h3 {
  color: #ffffff;
  margin-bottom: 15px;
}

.coin-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.coin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
}

.coin-item img {
  width: 24px;
  height: 24px;
}

.show-all-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px #6a11cb, 0 0 25px #b91372;
  animation: fadeIn 1s ease-in-out;
}

.show-all-btn:hover {
  opacity: 0.9;
}


.all-coins-content {
  width: 500px;
  max-height: 600px;
  overflow-y: auto;
}

/* Модалка для всех монет */
.modal-allcoins {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* Контент модалки */
.modal-allcoins-content {
  background: rgba(26,26,26,0.95);
  padding: 25px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  width: 500px;        /* фиксированная ширина */
  max-height: 600px;   /* фиксированная высота */
  overflow-y: auto;    /* прокрутка при переполнении */
  box-shadow: 0 0 25px rgba(106,17,203,0.3);
}

/* Крестик закрытия */
.close-allcoins {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
  margin-bottom: 10px;
}

.close-allcoins:hover {
  color: #fff;
}

/* Список монет внутри модалки */
.all-coins-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}



/* ///////////////////////////////////////DASHBOARD/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////DASHBOARD////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////DASHBOARD////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////DASHBOARD///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////DASHBOARD////////////////////////////////////////////////// */


/* ///////////////////////////////////////WALLET/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////WALLET////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////WALLET////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////WALLET///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////WALLET////////////////////////////////////////////////// */

.wallet-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.wallet-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.wallet-btn:hover {
  box-shadow: 0 0 15px #b91372, 0 0 25px #6a11cb;
  transform: translateY(-2px);
}

.wallet-info:hover {
  transition: all 0.3s;
  box-shadow: 0 0 25px #b91372, 0 0 35px #6a11cb;
}



/* ///////////////////////////////////////WALLET/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////WALLET////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////WALLET////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////WALLET///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////WALLET////////////////////////////////////////////////// */


/* ///////////////////////////////////////EXCHANGE/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////EXCHANGE////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////EXCHANGE////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////EXCHANGE///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////EXCHANGE////////////////////////////////////////////////// */

.exchange-section {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(106,17,203,0.2);
  max-width: 400px;
}

.exchange-section:hover {
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(106,17,203,0.5);
}

.exchange-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.exchange-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.exchange-row {
  display: flex;
  flex-direction: column;
}

.exchange-row label {
  margin-bottom: 5px;
  color: #ccc;
}

.exchange-row input,
.exchange-row select {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  outline: none;
}

.exchange-row button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px #6a11cb, 0 0 25px #b91372;
  animation: fadeIn 1s ease-in-out;
}

.exchange-row button:hover {
  box-shadow: 0 0 15px #b91372, 0 0 25px #6a11cb;
  transform: translateY(-2px);
}

#exchangeResult {
  margin-top: 10px;
  color: #fff;
  font-weight: bold;
}


/* ///////////////////////////////////////EXCHANGE/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////EXCHANGE////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////EXCHANGE////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////EXCHANGE///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////EXCHANGE////////////////////////////////////////////////// */



/* ///////////////////////////////////////HISTORY/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////HISTORY////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////HISTORY////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////HISTORY///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////HISTORY////////////////////////////////////////////////// */

.history-section {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(106,17,203,0.2);
  overflow-x: auto;
}

.history-section:hover {
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(106,17,203,0.5);
}

.history-section h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 12px 15px;
  text-align: left;
  color: #fff;
}

.history-table th {
  background: #2a2a2a;
  border-bottom: 2px solid #444;
}

.history-table tr {
  border-bottom: 1px solid #333;
}

.history-table tr:nth-child(even) {
  background: #1f1f2b;
}


/* ///////////////////////////////////////HISTORY/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////HISTORY////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////HISTORY////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////HISTORY///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////HISTORY////////////////////////////////////////////////// */


/* ///////////////////////////////////////ACCOUNT/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////ACCOUNT////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////ACCOUNT////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////ACCOUNT///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////ACCOUNT////////////////////////////////////////////////// */

.account-section {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(106,17,203,0.2);
  max-width: 500px;
}

.account-section:hover {
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(106,17,203,0.5);
}

.account-card {
  display: flex;
  gap: 20px;
  align-items: center;
}

.account-card .avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #6a11cb;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-info button {
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  width: fit-content;
  box-shadow: 0 0 15px #6a11cb, 0 0 25px #b91372;
  animation: fadeIn 1s ease-in-out;
}

.user-info button:hover {
  box-shadow: 0 0 15px #b91372, 0 0 25px #6a11cb;
  transform: translateY(-2px);
}


/* .modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1e1e2f;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
} */

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.avatar-grid img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.avatar-grid img:hover {
  transform: scale(1.1);
}
.modal-avatars input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}


.modal-avatars button {
  width: 95%;
  margin: 15px auto 0 auto;
  padding: 12px;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
}

.modal-avatars button:hover {
  opacity: 0.9;
}

/* Форма внутри модалки */
.change-username-form,
.change-password-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ///////////////////////////////////////ACCOUNT/////////////////////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////ACCOUNT////////////////////////////////////////////////////////// */
/* /////////////////////////////////////////ACCOUNT////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////ACCOUNT///////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////ACCOUNT////////////////////////////////////////////////// */

/* КОШЕЛЕК */
.wallet-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wallet-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.wallet-info h2 {
  color: #fff;
  font-size: 1rem;
}

.wallet-btn.main {
  background: #6c63ff;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.wallet-btn.main:hover {
  background: #5848e0;
}

.no-coins {
  text-align: center;
  color: #999;
  font-size: 1rem;
  padding: 20px;
}
/* КОШЕЛЕК */

/* Поиск и Модалка монетки из поиска */

.search-results {
  position: absolute;
  background: linear-gradient(135deg, #6a11cb, #b91372);
  /* border: 1px solid #ccc; */
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  width: 200px;
  z-index: 10;
}

.search-results::-webkit-scrollbar {
  width: 4px;
}

.search-results div {
  padding: 5px;
  cursor: pointer;
}

.search-results div:hover {
  background: #b91372;
}

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

.modal-coin-info-content {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 16px;
  width: 340px;
  position: relative;
  box-shadow: 0 0 25px rgba(106, 17, 203, 0.3);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.25s ease-out;
  transition: all 0.3s;
}

.modal-coin-info-content:hover {
  box-shadow: 0 0 25px #b91372, 0 0 35px #6a11cb;
}

.modal-coin-info-content img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(185, 19, 114, 0.4);
}

.modal-coin-info-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  text-align: center;
  color: #fff;
}

.modal-coin-info-content p {
  margin: 2px 0;
  font-size: 15px;
  color: #ccc;
}

.modal-coin-info-content p span {
  font-weight: bold;
  color: #fff;
}

/* Цвет процентов — рост/падение */
.modal-coin-info-content p span.growth {
  color: #00ff85;
}
.modal-coin-info-content p span.fall {
  color: #ff4b4b;
}

/* Кнопка закрытия */
.modal-coin-info-content .close-coin-info {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
}

.modal-coin-info-content .close-coin-info:hover {
  color: #fff;
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* Поиск и Модалка монетки из поиска */

#walletCards {
  display: flex;
  flex-wrap: wrap;          /* позволяет переносить карточки */
  /* justify-content: center;   */
  gap: 15px;                /* отступы между карточками */
  padding: 15px;
  box-sizing: border-box;
}

.userCard {
  width: 100%;
  max-width: 300px;
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(106, 17, 203, 0.2);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rechargeButton {
  padding: 8px 12px;
  width: 70%;
  background-color: #6a11cb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px #6a11cb, 0 0 25px #b91372;
  animation: fadeIn 1s ease-out;
}

.rechargeButton:hover {
  background-color: #b91372;
  box-shadow: 0 0 15px #b91372, 0 0 25px #6a11cb;
}

.wallet-info h2 {
  width: 100%;
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #fff;
}

.wallet-info span {
  font-weight: bold;
  color: #b91372;
}


.custom-select-wrapper {
  position: relative;
  width: 95%;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 4px;
}

.custom-select-wrapper input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  outline: none;
  cursor: pointer;
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px; /* фиксированная высота */
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  z-index: 10;
  display: none; /* по умолчанию скрыт */
}

.custom-select-dropdown .option {
  padding: 8px 10px;
  cursor: pointer;
}

.custom-select-dropdown .option:hover {
  background: #2a2a2a;
}


/* /////////////////////////////////////// ГАФИК //////////////////////////////////////// */

.graphSelect {
  width: 100%;
  margin-bottom: 25px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  outline: none;
  cursor: pointer;
}


.graphSelect option {
  background: #2a2a2a;
}

.graphSelect::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#chart-container {
  width: 100%;
  height: 600px;
}

/* .........................Бегущая строка....................... */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 580px;
  background: none;
  color: #b91372;
  padding: 10px 0;
  font-family: monospace;
}

.track {
  display: inline-block;
  animation: scroll 300s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ..................................Футер в Логине............................... */

.loginFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  color: #fff;
  padding: 10px 20px;
  font-family: monospace;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  overflow: hidden;
}

/* Левая часть */
.footerLeft {
  text-align: left;
  flex-shrink: 0;
}

/* Правая часть */
.footerRight {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  margin-left: 20px;
}

/* Статичная надпись */
.footerLabel {
  margin-left: 65%;
  flex-shrink: 0;
  font-weight: bold;
}

/* Бегущая строка */
.footerMarquee {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
}

.footerTrack {
  display: inline-block;
  position: relative;
  left: 100%;
  animation: scroll 45s linear infinite;
}

.footerTrack p {
  display: inline-block;
  color: #5848e0;
  margin: 0;
  padding: 0;
}

/* Анимация */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}



/* ..................................Хедер в Логине............................... */


/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Cursor */
.cursor{
    position: relative;
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 30px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);    
}
/* Animation */
.typewriter-animation {
  animation: 
    typewriter 5s steps(35) 1s 1 normal both, 
    blinkingCursor 500ms steps(35) infinite normal;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 60%; }
}
@keyframes blinkingCursor{
  from { border-right-color: rgba(255,255,255,.75); }
  to { border-right-color: transparent; }
}


/* ..................................Фон видео............................... */

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

