/* iOS Safari оптимизации */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Фиксы для iOS Safari - прозрачные фоны */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .no-friends-message,
  .copy-button,
  .enhanced-button {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }
}

/* Fallback для устройств без поддержки backdrop-filter */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .no-friends-message,
  .copy-button,
  .enhanced-button {
    background: rgba(255, 255, 255, 0.15) !important;
  }
}

/* Специальные фиксы для iOS Safari */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari */
  .no-friends-message,
  .copy-button,
  .enhanced-button {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }

  /* Альтернативные цвета для элементов с белым фоном */
  .wave {
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .bubble {
    background: rgba(255, 255, 255, 0.3) !important;
  }

  .enhanced-card {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .card-number-section {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .card-name-section {
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .card-iin-section {
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .friend-item {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .button-icon {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .profile-level {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .profile-stats {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .profile-date {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* Дополнительные фиксы для кнопок и интерактивных элементов */
  .enhanced-button {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08)
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .enhanced-button:hover {
    background: linear-gradient(
      135deg,
      rgba(0, 188, 212, 0.2),
      rgba(0, 150, 136, 0.15)
    ) !important;
  }

  .copy-button {
    background: rgba(0, 188, 212, 0.2) !important;
    border: 1px solid rgba(0, 188, 212, 0.3) !important;
  }

  /* .copy-button:hover {
    background: rgba(0, 188, 212, 0.3) !important;
  } */

  .enhanced-confirm {
    background: #b04d56 !important;
  }

  .enhanced-confirm:hover {
    background: #b04d56 !important;
  }

  /* Фиксы для градиентов и теней */
  .menu::before {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08)
    ) !important;
  }

  .enhanced-button::before {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08)
    ) !important;
  }

  /* Фиксы для текстовых элементов */
  .menu-title {
    background: linear-gradient(135deg, #ffffff, #00e5ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  /* Фиксы для скроллбаров */
  .friends-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .friends-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
  }

  .transaction-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .transaction-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #26668c, #009688) !important;
  }
}

/* Основной фон и базовые стили */
body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background: none;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

button {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* Контейнер для контента приложения */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  position: relative;
  z-index: 2; /* Контент выше волн */
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

#app {
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  display: flex;
  align-items: start;
  justify-content: center;
  padding: 20px;
  padding-top: 110px;
  position: relative;
}

/* Анимация волн */
.wave {
  position: fixed;
  width: 200%;
  height: 100px;
  left: -50%;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  animation: wave 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.wave:nth-child(2) {
  animation-delay: -4s;
  opacity: 0.5;
}

@keyframes wave {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(50px) translateY(10px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Анимация пузырьков */
.bubble {
  position: fixed;
  bottom: -50px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: bubble 10s linear infinite;
  z-index: 4; /* Пузырьки всегда выше всего */
  pointer-events: none;
}

@keyframes bubble {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-1000px) scale(0.5);
  }
}

/* Стили для страницы реквизитов */
.enhanced-details {
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.details-header {
  text-align: center;
  margin-bottom: 25px;
}

.details-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.payment-instruction {
  text-align: center;
}

.payment-instruction p {
  color: #ffffff;
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.amount-highlight {
  color: #a7ecf3;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 188, 212, 0.3);
}

.enhanced-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стили для содержимого карты */
.card-details-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-number-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
}

.card-number-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.copy-button {
  background: rgba(0, 188, 212, 0.2);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* .copy-button:hover {
  background: rgba(0, 188, 212, 0.3);
  border-color: rgba(0, 188, 212, 0.5);
  transform: scale(1.05);
} */

/* .copy-button:active {
  transform: scale(0.95);
} */

.copy-button img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.copy-button:hover img {
  opacity: 1;
}

.card-name-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
}

.card-name-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.card-name-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.card-iin-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.card-iin-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.enhanced-confirm {
  background: #b04d56;
  border: none;
  border-radius: 15px;
  padding: 15px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.enhanced-confirm:active {
  transform: translateY(0);
}

/* Стили для страницы друзей */
.friends-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.friends-page-container::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(0, 188, 212, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(0, 150, 136, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* Секция реферальной ссылки */
.referral-section {
  padding: 20px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.referral-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.referral-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.referral-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

.referral-icon img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(2, 56, 90, 0.3));
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.referral-link-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.referral-link-text {
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  padding: 12px;
  padding: 15px;
  border-radius: 12px;
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 14px;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.referral-copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #b04d56;
  border: none;
  border-radius: 15px;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.referral-copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.referral-copy-button:active {
  transform: translateY(0);
}

.copy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-icon img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
}

/* Секция друзей */
.friends-section {
  padding: 20px;
}

.friends-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.friends-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.friends-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.friends-icon img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 188, 212, 0.3));
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 5px;
}

.friends-list::-webkit-scrollbar {
  width: 4px;
}

.friends-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.friends-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.friends-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Загрузка друзей */
.loading-friends {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  font-size: 16px;
}

.loading-bubble {
  width: 12px;
  height: 12px;
  background: #26668c;
  border-radius: 50%;
  animation: loadingBubble 1.4s ease-in-out infinite both;
}

.loading-bubble:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-bubble:nth-child(2) {
  animation-delay: -0.16s;
}
.loading-bubble:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loadingBubble {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Элементы друзей */
.friend-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out;
}

.friend-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 150, 136, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

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

/* Сообщение об отсутствии друзей */
.friends-list div:not(.friend-item):not(.loading-friends) {
  text-align: center;
  color: #ffffff;
  font-size: 16px;
  padding: 15px;
}

.no-friends-message {
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.friend-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 5px !important;
}

.friend-grade {
  color: #e0f2f1;
  font-size: 13px;
  opacity: 0.9;
  padding: 5px !important;
}

.menu {
  display: block !important;
  /* background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.08)
  ); */
  /* backdrop-filter: blur(15px); */
  padding: 15px;
  /* border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 2; */
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  position: relative;
}

/* Улучшенное меню */
.enhanced-menu {
  padding: 15px;
  max-width: 400px;
  margin: 0 auto;
  animation: menuFloat 6s ease-in-out infinite;
}

@keyframes menuFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.menu-header {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  animation: fadeInDown 0.8s ease-out;
}

.club-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 240px;
  height: 240px;
}

.club-logo {
  width: 200px;
  height: 200px;
  transition: all 0.3s ease;
  animation: fadeInDown 0.8s ease-out;
}

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

.menu-title {
  margin-bottom: 15px !important;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  text-shadow: 0 4px 8px rgba(0, 188, 212, 0.4);
  background: linear-gradient(135deg, #ffffff, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.menu-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.enhanced-button {
  position: relative;
  /* overflow: hidden; */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.enhanced-button:nth-child(1) {
  animation-delay: 0.1s;
}
.enhanced-button:nth-child(2) {
  animation-delay: 0.2s;
}
.enhanced-button:nth-child(3) {
  animation-delay: 0.3s;
}

.enhanced-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 188, 212, 0.3);
  border-color: rgba(0, 188, 212, 0.4);
}

.enhanced-button:active {
  transform: translateY(-2px) scale(1.01);
}

.button-content {
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.button-icon {
  font-size: 24px;
  width: 80px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  /* background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2); */
  /* transition: all 0.3s ease; */

  img {
    /* width: 100%; */
    margin-left: 30px;
    height: 100%;
  }
}

.enhanced-button:hover .button-icon {
  transform: scale(1.1) rotate(5deg);
  /* background: rgba(0, 188, 212, 0.2); */
  /* border-color: rgba(0, 188, 212, 0.3); */
}

.button-text {
  flex: 1;
  text-align: left;
}

.button-title {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.button-description {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.enhanced-button:hover .button-glow {
  left: 100%;
}

/* Стили для отключенного состояния кнопок */
.enhanced-button:disabled {
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  pointer-events: none;
}

.enhanced-button:disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.enhanced-button:disabled .button-icon {
  opacity: 0.6;
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.enhanced-button:disabled .button-title {
  color: rgba(255, 255, 255, 0.6);
}

.enhanced-button:disabled .button-description {
  color: rgba(255, 255, 255, 0.4);
}

.enhanced-button:disabled .button-glow {
  display: none;
}

/* Дополнительные стили для программно отключенных кнопок */
.enhanced-button.disabled {
  position: relative;
}

/* .enhanced-button.disabled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  pointer-events: none;
  z-index: 3;
} */

/* Стили для сообщения "Обработка запроса" в button-description */
.button-description.processing-message {
  color: #ff9800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  animation: fadeInUp 0.3s ease-out !important;
  opacity: 1 !important;
}

/* Стили для сообщений об недоступности сервиса */
.button-description.service-unavailable {
  color: #ff9800 !important;
  opacity: 1 !important;
}

/* Стили для обычных описаний кнопок */
.button-description:not(.processing-message):not(.service-unavailable) {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

/* Принудительная непрозрачность для сообщения в отключенных кнопках */
.enhanced-button:disabled .button-description.processing-message,
.enhanced-button.disabled .button-description.processing-message {
  opacity: 1 !important;
}

.processing-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-top: 2px solid #ff9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 1 !important;
}

/* Принудительная непрозрачность для спиннера в отключенных кнопках */
.enhanced-button:disabled .processing-spinner,
.enhanced-button.disabled .processing-spinner,
.enhanced-button:disabled .button-description .processing-spinner,
.enhanced-button.disabled .button-description .processing-spinner {
  opacity: 1 !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Специфичные стили для кнопок */
.deposit-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 188, 212, 0.2),
    rgba(0, 150, 136, 0.15)
  );
}

.withdraw-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.2),
    rgba(255, 152, 0, 0.15)
  );
}

.profile-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(156, 39, 176, 0.2),
    rgba(103, 58, 183, 0.15)
  );
}

.menu-footer {
  text-align: center;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.ocean-decoration {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.coral {
  font-size: 20px;
  opacity: 0.6;
  animation: coralFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 188, 212, 0.3));
}

.coral-1 {
  animation-delay: 0s;
}
.coral-2 {
  animation-delay: 1.3s;
}
.coral-3 {
  animation-delay: 2.6s;
}

@keyframes coralFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

/* Эффект пульсации для кнопок при загрузке */
.enhanced-button {
  animation: buttonSlideIn 0.6s ease-out, buttonPulse 2s ease-in-out 1s;
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.2);
  }
}

/* Улучшенный эффект нажатия */
.enhanced-button:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

/* Эффект свечения для заголовка */
.menu-title {
  position: relative;
}

.menu-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #00e5ff, #26668c);
  opacity: 0.1;
  filter: blur(20px);
  z-index: -1;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Стили блоков приложения (glassmorphism) */
.input-section,
.method-section {
  padding: 15px;
  margin: 10px auto;
  color: white;
  width: 100%;
}

h2,
h3,
h4 {
  margin-bottom: 20px;
  color: white;
}

p {
  color: white;
  margin: 0px;
  padding: 0px;
  font-size: 12px;
}

.menu-button:not(.enhanced-button),
.confirm-button,
.method-button,
.back-button {
  width: 100%;
  padding: 15px;
  margin: 8px 0;
  border: none;
  border-radius: 12px;
  background: #b04d56;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.menu-button:not(.enhanced-button):hover,
.confirm-button:hover,
.method-button:hover,
.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
  background: #b04d56;
}

/* Быстрые суммы */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.quick-amounts button {
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #26668c;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: 0.3s;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.quick-amounts button:hover {
  background: #02385a;
}

/* Поле ввода суммы */
input[type="number"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin-bottom: 15px;
  font-size: 16px;
  text-align: center;
  background: #fff;
  color: black;
  backdrop-filter: blur(4px);
  -webkit-appearance: none;
  appearance: none;
  -webkit-touch-callout: none;
  -webkit-user-select: text;
  user-select: text;
  min-height: 44px; /* Минимальная высота для iOS */
}

input[type="number"]::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* Для Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Для Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Кнопка Вернуться внизу */
.back-button-icon {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  opacity: 0.8;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  z-index: 2222; /* Чтобы была выше контента */
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.back-button-icon-block {
  margin: 0 auto;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  opacity: 0.8;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  z-index: 2222; /* Чтобы была выше контента */
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Анимация скрытия кнопки при открытии клавиатуры */
.back-button-icon.keyboard-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
  pointer-events: none;
}

/* Дополнительные стили для мобильных устройств */
@media (max-height: 500px) {
  .back-button-icon {
    display: none !important;
  }
}

/* Скрытие кнопки при малой высоте экрана (клавиатура открыта) */
@media (max-height: 600px) and (orientation: portrait) {
  .back-button-icon {
    opacity: 0.3;
    transform: translateX(-50%) translateY(50px);
  }
}

.input-section,
.method-section,
.profile,
.profile-section {
  position: relative;
}

/* Стили для нового дизайна профиля */
.profile-section {
  /* background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px; */
  padding: 15px;
  /* border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 150, 136, 0.2); */
  margin: 20px auto;
  margin-top: 0px;
  max-width: 400px;
  position: relative;
}

/* Кнопка назад в профиле */
.back-button-back,
.back-button-home {
  position: absolute;
  top: 75px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.back-button-back {
  left: 40px;
}

.back-button-home {
  right: 40px;
}

.back-button-back:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.back-button-back img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Заголовок профиля */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
}

.user-level {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.user-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-rank {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.user-avatar {
  position: relative;
  max-width: 88px;
  max-height: 88px;
  background-color: #000;
  border-radius: 50%;
  padding: 10px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  transition: all 0.3s ease;
}

/* .user-avatar::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #26668c, #009688);
  opacity: 0.2;
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
} */

/* Секция опыта */
.experience-section {
  margin-bottom: 25px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00c6ff, #26668c);
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.progress-label {
  font-weight: 400;
}

.progress-value {
  font-weight: 600;
}

/* Сетка блоков */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.grid-row {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.grid-row-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  height: 100px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.1);
}

.grid-item {
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  min-height: 80px;
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.1);
}

/* Специальный стиль для блока верификации с двумя значениями */
.grid-item:has(#kyc-status) {
  justify-content: space-between;
}

.grid-item:has(#kyc-status) .grid-icon {
  margin-bottom: 4px;
}

.grid-item:has(#kyc-status) .grid-text {
  margin-bottom: 4px;
}

.grid-item:has(#kyc-status) #kyc-status {
  font-size: 10px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 150, 136, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.grid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-icon img {
  /* filter: brightness(0) invert(1); */
  opacity: 0.9;
}

.grid-value {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.grid-text {
  position: relative;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  width: 100%;
}

.grid-arrow {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-35%);
  color: rgba(255, 255, 255, 0.6);
}

/* Секция транзакций */
.transactions-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.1);
}

.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  cursor: pointer;
}

.transactions-header h3 {
  position: relative;
  text-align: center;
  width: 100%;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.transactions-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: bold;
}

.transactions-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.table-row:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.table-row.highlighted {
  background: rgba(255, 255, 255, 0.05);
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.table-cell {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-cell:last-child {
  text-align: right;
}

.amount-positive {
  color: #00ff88 !important;
  font-weight: 600;
}

.amount-negative {
  color: #ff6b6b !important;
  font-weight: 600;
}

/* Скрытые элементы для логики */
#level-title,
#profile-date {
  display: none !important;
}

.attach-button {
  width: 100%;
  padding: 15px;
  margin: 8px 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.attach-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.card-number {
  cursor: pointer;
  transition: 0.3s;
}

.card-number:hover {
  opacity: 0.7;
}

/* Стили для страницы final */
.final-section {
  padding: 15px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.final-section h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 8px rgba(0, 188, 212, 0.4);
}

.final-section p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 30px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  white-space: pre-line;
}

.final-section .confirm-button {
  width: 100%;
  padding: 15px;
  background: #b04d56;
  border: none;
  border-radius: 15px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.final-section .confirm-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #b04d56;
  transition: left 0.6s ease;
}

.bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bubble-fly {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: fly 6.5s forwards ease-out;
}

@keyframes fly {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(var(--x), var(--y)) scale(0.5);
    opacity: 0;
  }
}

.fish-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.fish {
  position: absolute;
  opacity: 0.8;
}

.fish svg {
  width: 100%;
  height: 100%;
}

.fish-inner {
  width: 100%;
  height: 100%;
}

@keyframes swim-right {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(60vw, 5vh); /* Немного вверх или вниз */
  }
  100% {
    transform: translate(120vw, 0);
  }
}

@keyframes swim-left {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-60vw, -5vh); /* Немного вверх или вниз */
  }
  100% {
    transform: translate(-120vw, 0);
  }
}

.final-section::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(0, 188, 212, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(0, 150, 136, 0.1) 0%,
      transparent 50%
    );
  border-radius: 25px;
  z-index: -1;
  pointer-events: none;
}

/* Фоновое изображение */
.background-container {
  position: fixed; /* Фиксированное положение — не будет скроллиться */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("container/assets/backFull.png");
  background-size: cover;
  background-position: center;
  z-index: -1; /* На самом заднем плане */
}

@media (max-width: 400px) {
  .background-container {
    background-image: url("container/assets/background.png");
  }
}

/* Основные стили */
.name-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Cтили для заголовка истории транзакций */
.menu h3 {
  color: #ffffff;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
  position: relative;
}

input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: black;
  backdrop-filter: blur(4px);
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  -webkit-touch-callout: none;
  -webkit-user-select: text;
  user-select: text;
  min-height: 44px; /* Минимальная высота для iOS */
}

input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

button.confirm-button {
  width: 100%;
  padding: 15px;
  background: #b04d56;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

button.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
  background: #b04d56;
}

/* Сообщение об ошибке */
.error-message {
  color: white;
  text-shadow: -0.5px -0.5px 0 #b04d56, 0.5px -0.5px 0 #b04d56,
    -0.5px 0.5px 0 #b04d56, 0.5px 0.5px 0 #b04d56, 0 0 3px #b04d56,
    0 0 3px #b04d56, 0 0 3px #b04d56, 0 0 3px #b04d56;
  margin-bottom: 5px;
  font-size: 14px;
  max-width: 300px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.method-button {
  width: 100%;
  height: 50px; /* Фиксируем высоту */
  padding: 0 15px; /* Горизонтальный padding, без вертикального */
  margin: 8px 0;
  border: none;
  border-radius: 12px;
  background: #b04d56;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  overflow: hidden; /* скрытие если вдруг иконка выбивается */
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.method-button:hover {
  background: #b04d56;
}

.method-button .method-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.method-icon {
  height: 100%; /* ограничение по высоте кнопки */
  width: auto; /* ширина подстраивается пропорционально */
  max-width: 100px; /* или 100px — если нужно ещё шире */
  object-fit: contain;
  flex-shrink: 0;
}

.withdraw-details-section {
  padding: 20px;
  border-radius: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.withdraw-details-section input {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: black;
  backdrop-filter: blur(4px);
  font-size: 16px;
  text-align: center;
}

.withdraw-details-section input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.withdraw-details-section label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
  text-align: left;
  width: 100%;
}

.withdraw-details-section button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: #b04d56;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.withdraw-details-section button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
  background: #b04d56;
}

/* Стили для таблицы транзакций */
.transaction-container {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 150, 136, 0.2);
}

.transaction-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  table-layout: fixed;
}

.transaction-table thead {
  background: rgba(38, 102, 140, 1);
  backdrop-filter: blur(5px);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

.transaction-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-shadow: none;
}

.transaction-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  vertical-align: middle;
  color: #ffffff;
  text-shadow: none;
  font-weight: 500;
}

.transaction-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}

.transaction-table tbody tr:nth-child(odd) {
  /* background: rgba(255, 255, 255, 0.08); */
  backdrop-filter: blur(3px);
}

/* Колонки */
.transaction-table th:nth-child(1),
.transaction-table td:nth-child(1) {
  width: 100px;
  text-align: left;
}

.rakeback-table th:nth-child(1),
.rakeback-table td:nth-child(1) {
  width: auto;
  text-align: left;
}

.transaction-table th:nth-child(2),
.transaction-table td:nth-child(2) {
  /* width: 25%; */
  text-align: center;
}

.transaction-table th:nth-child(3),
.transaction-table td:nth-child(3) {
  /* width: 35%; */
  text-align: right;
  padding-right: 12px;
}

/* Стили для rakeback таблицы */
.rakeback-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  table-layout: fixed;
}

.rakeback-table thead {
  background: rgba(38, 102, 140, 1);
  backdrop-filter: blur(5px);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rakeback-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-shadow: none;
}

.rakeback-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  vertical-align: middle;
  color: #ffffff !important;
  text-shadow: none;
  font-weight: 500;
}

.rakeback-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}

.rakeback-table tbody tr:nth-child(odd) {
  /* background: rgba(255, 255, 255, 0.08); */
  backdrop-filter: blur(3px);
}

.rakeback-table th:nth-child(1),
.rakeback-table td:nth-child(1) {
  text-align: left;
}

.rakeback-table th:nth-child(2),
.rakeback-table td:nth-child(2) {
  text-align: right;
  padding-right: 12px;
}

/* Скроллбар */
/* .transaction-container::-webkit-scrollbar {
  width: 4px;
} */

.transaction-container::-webkit-scrollbar-thumb {
  background: rgba(38, 102, 140, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 2px;
}

/* Цвета сумм */
.transaction-table td,
.rakeback-table td {
  font-weight: 700;
  font-size: 12px;
}

.transaction-table td,
.rakeback-table td {
  font-weight: 700;
  font-size: 12px;
}

/* Иконки */
/* .transaction-table td[style*="color:green"]::before {
  content: "↑";
  margin-right: 2px;
  color: #10b981;
  font-weight: bold;
  font-size: 10px;
} */

/* .transaction-table td[style*="color:red"]::before {
  content: "↓";
  margin-right: 2px;
  color: #ef4444;
  font-weight: bold;
  font-size: 10px;
} */

.form-container {
  max-width: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 15px;
}

.form-container button {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  background: #b04d56;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

.form-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
  background: #b04d56;
}

select {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  background: #26668c;
  color: white;
  backdrop-filter: blur(4px);
  font-size: 16px;
  appearance: none;
  text-align: center;
  -webkit-appearance: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  min-height: 44px; /* Минимальная высота для iOS */
}

/* Кастомный select */
.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.select-selected {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
  color: black;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* .select-selected:after {
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.select-selected.select-arrow-active:after {
  transform: translateY(-50%) rotate(180deg);
} */

.select-selected:focus,
.select-selected:hover {
  outline: none;
  border-color: #26668c;
  box-shadow: 0 0 0 2px rgba(38, 102, 140, 0.3);
}

.select-items {
  position: absolute;
  background-color: white;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  border: 2px solid #26668c;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 2px;
}

.select-option {
  color: black;
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background-color: #f0f8ff;
  color: #26668c;
}

.select-option.select-same-as-selected {
  background-color: #26668c;
  color: white;
}

.select-hide {
  display: none;
}

.friends-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1px;
}
.friend-item {
  padding: 1px;
  background: #06b9f0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(7, 48, 228, 0.1);
}

#add-card-button:disabled,
#verification-button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

/* Дополнительные фиксы для iOS Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* WebKit browsers (Safari, Chrome) */
  .no-friends-message,
  .copy-button,
  .enhanced-button {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Фиксы для старых версий iOS Safari */
@supports (-webkit-appearance: none) and (not (overflow: -webkit-marquee)) {
  .no-friends-message,
  .copy-button,
  .enhanced-button {
    background: rgba(255, 255, 255, 0.15) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Стили для прогресс-бара и финальных сообщений */
.payment-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.payment-progress-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  width: 90%;
  animation: slideIn 0.3s ease-out;
}

.payment-progress-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #26668c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.payment-progress-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.payment-progress-subtext {
  font-size: 14px;
  color: #666;
}

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

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

.final-message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.final-message-container {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  width: 90%;
  animation: slideIn 0.3s ease-out;
}

.final-message-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.final-message-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.4;
}

.final-message-button {
  background: #26668c;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.final-message-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.final-message-button:active {
  transform: translateY(0);
}

.final-message-success .final-message-icon {
  color: #4caf50;
}

.final-message-warning .final-message-icon {
  color: #ff9800;
}

.final-message-error .final-message-icon {
  color: #f44336;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
  .payment-progress-container,
  .final-message-container {
    padding: 25px;
    max-width: 280px;
  }

  .payment-progress-spinner {
    width: 50px;
    height: 50px;
  }

  .payment-progress-text {
    font-size: 16px;
  }

  .final-message-icon {
    font-size: 40px;
  }

  .final-message-text {
    font-size: 15px;
  }
}

.page-title,
.final-title {
  margin-bottom: 0px;
  font-size: 30px;
  font-weight: 700;
}

.page-description {
  margin-top: 30px;
  margin-bottom: 10px;
}

.amount-input-title {
  font-size: 14px;
  font-weight: 500;
}
