:root {
  --bg-deep: #04060c;
  --bg-card: rgba(18, 24, 42, 0.6);
  --bg-card-subtle: rgba(22, 30, 52, 0.45);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #2b79ff;
  --accent-cyan: #38bdf8;
  --accent-gold: #fbbf24;
  --accent-green: #22c55e;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: radial-gradient(circle at 50% 5%, #15274d 0%, #080d1a 45%, #03060c 100%) no-repeat fixed;
  background-color: var(--bg-deep);
  color: var(--text-white);
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

/* ЭКРАН ЗАГРУЗКИ (SPLASH SCREEN / МЕНЮ ЗАГРУЗКИ) */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at 50% 30%, #122852 0%, #050812 60%, #020306 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  overflow: hidden;
}

.splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(43, 121, 255, 0.45) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.splash-logo {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.splash-sticker-wrap {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.splash-sticker {
  width: 100%;
  height: 100%;
}

.splash-sticker div,
.splash-sticker svg {
  width: 100% !important;
  height: 100% !important;
}

.splash-status-text {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.splash-progress-bar {
  width: 190px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.splash-progress-fill {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, #2b79ff, #38bdf8, #818cf8);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  transition: width 0.3s ease;
}

/* ОСНОВНОЙ КОНТЕЙНЕР */
#app-container {
  width: 100%;
  max-width: 440px;
  min-height: 100%;
  margin: 0 auto;
  padding: 14px 18px calc(120px + env(safe-area-inset-bottom, 0px)) 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

#main-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Guard Screen */
.guard-screen {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.guard-screen h2 {
  font-size: 20px;
  font-weight: 800;
}

.guard-screen p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.btn-tg {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  color: #000000;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 10px;
  box-shadow: none;
  transition: transform 0.15s ease;
}

.btn-tg:active {
  transform: translateY(2px) scale(0.97);
}

/* ИКОНКИ SVG И ТАБ-БАРА (БЕЗ ИСКУССТВЕННЫХ ПЯТЕН И СВЕЧЕНИЙ) */
.svg-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dock-svg {
  display: block;
  margin-bottom: 3px;
  transition: transform 0.15s ease, stroke 0.15s ease;
}

.btn-hero-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

/* TOP BAR (iOS Header with Stars & Balance capsules — Liquid Glass) */
.ios-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 4px 0;
  z-index: 50;
  box-sizing: border-box;
}

.pill-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 8px 18px;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-badge:active {
  transform: translateY(1.5px) scale(0.96);
  box-shadow: none;
}

.pill-stars .badge-value {
  color: #ffffff;
}

.pill-balance .badge-value {
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* TABS CONTAINER & CONTENT */
.tab-content {
  display: none;
  width: 100%;
  flex-direction: column;
  animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  padding-bottom: 110px;
}

.tab-content.active {
  display: flex;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* TAB 1: HOME / GLOW & HERO */
.glow-bg {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(43, 121, 255, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 26px;
}

.hero-sticker-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sticker {
  width: 100%;
  height: 100%;
}

.hero-sticker div,
.hero-sticker svg {
  width: 100% !important;
  height: 100% !important;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.home-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* МЯГКИЕ КАРТОЧКИ — ЖИДКОЕ СТЕКЛО (LIQUID GLASS) */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25), 0 20px 48px rgba(0, 0, 0, 0.5);
}

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

.card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.status-pill.active {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.15) 100%);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(34, 197, 94, 0.25);
}

.status-pill.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-main-text {
  font-size: 14px;
  color: #d1d1d6;
  line-height: 1.5;
  font-weight: 500;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.btn-action-hero {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #ffffff;
  border: none;
  border-radius: 22px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
  text-align: left;
  min-width: 0;
  box-shadow: none;
}

.btn-action-hero:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.btn-action-hero.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  box-shadow: none;
}

.btn-hero-icon {
  flex-shrink: 0;
}

.btn-hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.btn-hero-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-hero-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-action-hero.secondary .btn-hero-sub {
  color: var(--text-muted);
}

/* SECTION HEADERS */
.section-header {
  margin-top: 6px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-dim);
}

/* TAB 2: PLANS (ТАРИФЫ — ЖИДКОЕ СТЕКЛО, ОБЪЕМНЫЕ КНОПКИ) */
.plans-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.plan-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25), 0 20px 48px rgba(0, 0, 0, 0.5);
}

.plan-card.featured {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0.45) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25), 0 22px 50px rgba(37, 99, 235, 0.35);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.plan-badge.hot {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: none;
}

.plan-badge.save {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: none;
}

.plan-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 70px;
}

.plan-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.plan-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.plan-price {
  font-size: 24px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.plan-price span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  font-family: -apple-system, sans-serif;
  margin-left: 2px;
}

.btn-buy {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 12px 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.btn-buy:active {
  transform: scale(0.96);
  background: #1d4ed8;
}

.btn-buy.featured {
  background: #2563eb;
  box-shadow: none;
}

/* TAB 3: WALLET (TONKEEPER BLUE-BLACK MODERN STYLE — LIQUID GLASS) */
.tonkeeper-card {
  background: linear-gradient(135deg, #1b68ff 0%, #0084ff 50%, #00b4d8 100%);
  border-radius: 30px;
  padding: 24px 22px 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 20px 48px rgba(0, 114, 255, 0.4);
  margin-bottom: 22px;
  box-sizing: border-box;
}

.ton-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.ton-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 6px;
}

.ton-card-top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ton-card-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 3px;
}

.ton-card-rate-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ton-card-rate-val {
  font-size: 22px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1.15;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.ton-card-rate-change {
  font-size: 12px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 9px;
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
}

.ton-card-rate-change.positive {
  background: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.ton-card-rate-change.negative {
  background: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.ton-card-chart-wrap {
  width: 100%;
  height: 75px;
  position: relative;
  overflow: visible;
  margin: 6px 0 12px 0;
}

.ton-card-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.ton-card-balance {
  font-size: 38px;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.8px;
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ton-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
  user-select: none;
}

.ton-card-pill:active {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(1.5px) scale(0.97);
}

.ton-card-arrow {
  font-size: 14px;
  opacity: 0.8;
  margin-left: 2px;
}

.ton-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ton-card-user {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.2px;
}

.ton-card-qr {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}

.ton-card-qr:active {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(1px) scale(0.93);
}

/* 4 КНОПКИ ДЕЙСТВИЙ ПОД КАРТОЧКОЙ (СТИЛЬ ФОТО: ТЕМНЫЕ СКРУГЛЕННЫЕ КАРТОЧКИ, СИНИЕ ИКОНКИ) */
.wallet-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.wallet-action-item {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 14px 6px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.wallet-action-item:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.12);
}

.action-icon-circle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  box-shadow: none;
  color: #2b79ff;
}

.action-blue,
.action-gold,
.action-purple,
.action-cyan {
  background: none;
  border: none;
  box-shadow: none;
  color: #2b79ff;
}

.action-label {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  letter-spacing: -0.1px;
}


/* МОДАЛЬНОЕ ОКНО ПОПОЛНЕНИЯ (BOTTOM SHEET — ЖИДКОЕ СТЕКЛО) */
.deposit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.deposit-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.deposit-modal-content {
  background: rgba(18, 24, 40, 0.88);
  backdrop-filter: blur(40px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(40px) saturate(190%) contrast(105%);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 14px 20px 38px 20px;
  box-sizing: border-box;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.3), 0 -15px 50px rgba(0, 0, 0, 0.75);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.deposit-modal-backdrop.active .deposit-modal-content {
  transform: translateY(0);
}

.deposit-modal-handle {
  width: 36px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 0 auto 16px auto;
}

.deposit-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.deposit-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.deposit-modal-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-close-modal:active {
  background: rgba(255, 255, 255, 0.2);
}

.deposit-section-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.app-deposit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-deposit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 14px 16px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.app-deposit-item:active {
  transform: translateY(1.5px) scale(0.98);
  background: rgba(255, 255, 255, 0.12);
}

.app-deposit-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.real-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.token-icon-real {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.app-deposit-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.app-deposit-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-deposit-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.app-badge-rec {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(43, 121, 255, 0.25);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.app-deposit-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.app-deposit-chevron {
  font-size: 18px;
  color: var(--text-muted);
}

.deposit-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 18px;
  padding: 12px 14px;
  margin-top: 14px;
}

.warning-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-text {
  font-size: 11px;
  color: #fde047;
  line-height: 1.45;
}

.warning-text b {
  color: #ffffff;
}

/* КОПИРОВАНИЕ ДАННЫХ — ОБЪЕМНЫЕ ЧИПЫ */
.copy-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.copy-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green);
}

.field-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-code {
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
  color: #ffffff;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn-copy-chip {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-copy-chip:active {
  transform: scale(0.95);
  background: #1d4ed8;
}

/* TAB 4: PROFILE */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 24px;
}

.profile-big-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: 3px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.35);
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.profile-tag {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-id {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-details-list {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25), 0 20px 48px rgba(0, 0, 0, 0.5);
  padding: 6px;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  margin: 3px;
}

.detail-title {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.detail-value {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* FLOATING BOTTOM DOCK (ТРИ РАЗДЕЛЬНЫЕ КАПСУЛЫ: ПОИСК + МЕНЮ + ПРОФИЛЬ) */
/* FLOATING BOTTOM DOCK (ТРИ РАЗДЕЛЬНЫЕ КАПСУЛЫ: ПОИСК + МЕНЮ + ПРОФИЛЬ) */
.bottom-dock-wrapper {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 440px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 99999;
  box-sizing: border-box;
  pointer-events: none;
}

/* ОСТРОВ 1: ПОИСК (СЛЕВА) */
.dock-search-island {
  position: relative;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  flex: 0 0 60px;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 44, 0.82);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.35), 0 24px 60px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dock-search-island:active {
  transform: scale(0.92);
}

.dock-search-island.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.dock-search-island .dock-search-bubble {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dock-search-island.active .dock-search-bubble {
  border-color: #ffffff;
  background: #2563eb;
  color: #ffffff;
}

.dock-search-island .dock-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ЦЕНТРАЛЬНАЯ ОСНОВНАЯ КАПСУЛА МЕНЮ */
.dock-main-capsule {
  flex: 1;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  background: rgba(18, 24, 44, 0.82);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  padding: 6px 8px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.35), 0 24px 60px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  pointer-events: auto;
}

.dock-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, color 0.2s, box-shadow 0.2s;
  color: rgba(255, 255, 255, 0.55);
  flex: 1;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dock-item:active {
  transform: scale(0.92);
}

.dock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Активная кнопка меню — без сияний и пыли */
.dock-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.dock-item.active .dock-svg {
  stroke: #ffffff;
}

/* ОСТРОВ 2: ПРОФИЛЬ (СПРАВА) */
.dock-profile-island {
  position: relative;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  flex: 0 0 60px;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 44, 0.82);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.35), 0 24px 60px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dock-profile-island:active {
  transform: scale(0.92);
}

.dock-profile-island.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.dock-profile-island .dock-avatar-bubble {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.dock-profile-island.active .dock-avatar-bubble {
  border-color: #ffffff;
  box-shadow: none;
}

/* VIP FILTERS & SETTINGS CARD (ЖИДКОЕ СТЕКЛО) */
.vip-settings-card {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25), 0 20px 48px rgba(0, 0, 0, 0.5);
}

.vip-settings-card .card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.setting-hint {
  font-size: 11px;
  color: var(--text-dim);
}

.rating-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-rating-pill {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 20px;
  padding: 9px 15px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.btn-rating-pill:active {
  transform: scale(0.95);
}

.btn-rating-pill.active {
  background: #2563eb;
  border: none;
  color: #ffffff;
  box-shadow: none;
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.toggle-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* iOS-style toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.16);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

input:checked + .slider {
  background: #2563eb;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: none;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.vip-settings-status {
  font-size: 10px;
  color: var(--accent-green);
  text-align: center;
  margin-top: 2px;
  opacity: 0.85;
}

/* ==========================================================================
   MARKET SEGMENTED CONTROL & TELEGRAM STARS (LIQUID GLASS & VOLUMETRIC)
   ========================================================================== */
.market-segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 5px;
  gap: 6px;
  margin-bottom: 22px;
}

.btn-segment {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.4px;
}

.btn-segment.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: none;
  border: none;
}

.stars-market-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(35px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 22px;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.25), 0 20px 48px rgba(0, 0, 0, 0.5);
}

.stars-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.stars-icon-large {
  font-size: 32px;
  line-height: 1;
}

.stars-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.stars-subtitle {
  font-size: 11px;
  color: var(--text-dim);
}

.stars-field-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stars-input-row {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px 8px 6px 14px;
  gap: 6px;
}

.input-at {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 14px;
}

.stars-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.stars-input-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-stars-verify {
  background: #2563eb;
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-stars-verify:active {
  transform: scale(0.96);
  background: #1d4ed8;
}

.stars-rec-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
}

.stars-rec-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background-size: cover;
  background-position: center;
}

.stars-rec-info {
  display: flex;
  flex-direction: column;
}

.stars-rec-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.stars-rec-valid {
  font-size: 10px;
  color: var(--accent-green);
  font-weight: 600;
}

.stars-pills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.btn-stars-pill {
  padding: 12px 4px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn-stars-pill.active {
  background: #2563eb;
  border: none;
  color: #ffffff;
  box-shadow: none;
}

.custom-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.custom-stars-input {
  width: 80px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.stars-calc-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.calc-val-ton {
  font-size: 16px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: -0.3px;
}

.calc-line.sub {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.btn-buy-stars-balance {
  width: 100%;
  padding: 15px;
  border-radius: 20px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 850;
  font-size: 13px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.6px;
  box-shadow: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.btn-buy-stars-balance:active {
  transform: scale(0.97);
  background: #1d4ed8;
}

.btn-buy-stars-balance:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-buy-stars-wallet {
  width: 100%;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #38bdf8;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.btn-buy-stars-wallet:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.14);
}

.stars-feedback-msg {
  font-size: 11px;
  text-align: center;
  margin-top: 10px;
  min-height: 16px;
  transition: all 0.3s ease;
}

.stars-feedback-msg.success {
  color: var(--accent-green);
  font-weight: 700;
}

.stars-feedback-msg.error {
  color: var(--accent-red);
  font-weight: 600;
}

/* =========================================================
   РАЗДЕЛ: ПОИСК И КОЛЛЕКЦИИ (NFT ПОДАРКИ & ЮЗЕРНЕЙМЫ)
   ========================================================= */

.search-type-toggle {
  margin-bottom: 14px;
}

.search-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.search-query-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 38px 12px 42px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.search-query-input:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.search-query-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.search-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 100;
}

/* ВЫПАДАЮЩИЕ СПИСКИ ФИЛЬТРОВ ПОИСКА */
.search-filter-dropdown-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-filter-dropdown-btn {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  box-sizing: border-box;
}

.search-filter-dropdown-btn:active,
.search-filter-dropdown-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.dropdown-chevron {
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.search-filter-dropdown-btn.active .dropdown-chevron {
  transform: rotate(180deg);
}

/* МЕНЮ ВЫБОРА */
.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 140px;
  background: rgba(18, 24, 44, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 5px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.12s ease;
  user-select: none;
}

.dropdown-item:active,
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item.active {
  background: rgba(37, 99, 235, 0.22);
}

.dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.dropdown-item-hint {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 2px;
}

.dropdown-item-check {
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.dropdown-item.active .dropdown-item-check {
  opacity: 1;
}

.btn-search-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #60a5fa;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-search-refresh:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.search-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.search-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Сетка из 2 колонок */
.search-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

/* КАРТОЧКА (ОБЩИЙ СТИЛЬ ДЛЯ ПОДАРКОВ И ЮЗЕРНЕЙМОВ) */
.search-card {
  background: rgba(18, 24, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.search-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Плавающие бейджи поверх превью */
.card-badges-float {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.card-status-badge {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 7px;
  padding: 2.5px 5px;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.card-status-badge.status-auction {
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #facc15;
}

.card-status-badge.status-sale {
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

.card-status-badge.status-sold {
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.card-tier-badge {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 800;
  padding: 2.5px 5px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.card-tier-badge.tier-r {
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.5);
}

.card-tier-badge.tier-m {
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.5);
}

.card-tier-badge.tier-l {
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

/* Полная область превью (1:1 квадрат) */
.gift-preview-box,
.user-preview-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 13px;
  margin-bottom: 7px;
  overflow: hidden;
  box-sizing: border-box;
  background: #0f121d;
}

.gift-preview-box.tier-r,
.user-preview-box.tier-r {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28) 0%, rgba(15, 18, 29, 0.95) 100%), #0f121d;
}

.gift-preview-box.tier-m,
.user-preview-box.tier-m {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.22) 0%, rgba(15, 18, 29, 0.95) 100%), #0f121d;
}

.gift-preview-box.tier-l,
.user-preview-box.tier-l {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(15, 18, 29, 0.95) 100%), #0f121d;
}

.gift-preview-img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.2s ease;
}

.user-nft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.2s ease;
}

.search-card:active .gift-preview-img,
.search-card:active .user-nft-img {
  transform: scale(0.96) translateZ(0);
}

/* ТЕЛО КАРТОЧКИ (ФИКСИРОВАННЫЕ ВЫСОТЫ ДЛЯ ИДЕАЛЬНОГО ВЫРАВНИВАНИЯ КНОПОК) */
.search-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 18px;
  min-width: 0;
  box-sizing: border-box;
}

.card-title-text {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.card-badge-nft {
  font-size: 9px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 5px;
  padding: 0 4px;
  line-height: 15px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.card-meta-row {
  height: 15px;
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 1px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.card-sub-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* СЕТКА КНОПОК ДЕЙСТВИЙ (РОДИТЕЛЬ 100% ШИРИНЫ, БЕЗ ВЫЛЕЗАНИЙ) */
.card-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.card-sub-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.btn-card-sub {
  height: 29px;
  min-height: 29px;
  max-height: 29px;
  width: 100%;
  min-width: 0;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  overflow: hidden;
}

.btn-card-sub:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}

.btn-card-tonscan {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #60a5fa;
}

.btn-card-tonscan:active {
  background: rgba(59, 130, 246, 0.25);
}

.btn-card-sub.btn-copied {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
}

.btn-card-sub .btn-label,
.btn-card-write .btn-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.btn-card-write {
  height: 31px;
  min-height: 31px;
  max-height: 31px;
  width: 100%;
  min-width: 0;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  overflow: hidden;
}

.btn-card-write:active {
  transform: scale(0.96);
  background: #1d4ed8;
}

/* ВСПЛЫВАЮЩИЙ ТОАСТ КОПИРОВАНИЯ (ПО ЦЕНТРУ ЭКРАНА ВВЕРХУ) */
.waster-copy-toast {
  position: fixed;
  top: max(20px, env(safe-area-inset-top, 20px));
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 999999;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.waster-copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.search-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.btn-search-more {
  padding: 10px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-search-more:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
}

.search-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim);
  font-size: 13px;
}


