:root {
  --bg-deep: #05070e;
  --bg-card: rgba(16, 23, 40, 0.72);
  --bg-card-subtle: rgba(22, 30, 52, 0.6);
  --border-subtle: rgba(120, 170, 255, 0.15);
  --border-glow: rgba(56, 189, 248, 0.35);
  --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% 10%, #102448 0%, #060913 50%, #030408 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(135deg, #ffffff, #e2e8f0);
  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: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* КАСТОМНЫЕ ЭМОДЗИ — С ЯРКИМ СВЕЧЕНИЕМ, ЧТОБЫ НЕ ТЕРЯЛИСЬ */
.custom-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.custom-emoji div,
.custom-emoji svg {
  width: 100% !important;
  height: 100% !important;
}

.custom-emoji.lg {
  width: 32px;
  height: 32px;
  padding: 4px;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.custom-emoji.dock {
  width: 24px;
  height: 24px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 3px;
}

/* Специфические свечения для эмодзи */
#emoji-top-star,
#emoji-dock-home {
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

#emoji-top-diamond,
#emoji-hero-diamond,
#emoji-dock-wallet {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

#emoji-hero-lightning,
#emoji-dock-plans {
  background: rgba(96, 165, 250, 0.2);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* TOP BAR (iOS Header with Stars & Balance capsules) */
.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: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 7px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.pill-badge:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}

.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;
}

.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.45) 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;
  filter: drop-shadow(0 12px 28px rgba(43, 121, 255, 0.35));
}

.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%;
}

/* МЯГКИЕ КАРТОЧКИ (БЕЗ ПРЯМЫХ УГЛОВ) */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.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: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.status-pill.active {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.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: linear-gradient(135deg, #ffffff, #eef2f6);
  color: #000000;
  border: none;
  border-radius: 26px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: left;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-action-hero:active {
  transform: scale(0.96);
}

.btn-action-hero.secondary {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.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: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.plan-card.featured {
  background: linear-gradient(135deg, rgba(26, 42, 78, 0.85), rgba(16, 26, 48, 0.85));
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 14px 40px rgba(43, 121, 255, 0.25);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.plan-badge.hot {
  background: rgba(43, 121, 255, 0.3);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

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

.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;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.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: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #000000;
  border: none;
  border-radius: 24px;
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

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

.btn-buy.featured {
  background: linear-gradient(135deg, #2b79ff, #0055ff);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(43, 121, 255, 0.5);
}

/* TAB 3: WALLET (КОШЕЛЕК — СКРУГЛЕННЫЙ СТИЛЬ) */
.wallet-balance-card {
  background: linear-gradient(135deg, rgba(20, 35, 68, 0.8), rgba(12, 18, 36, 0.8));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 32px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 20px;
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.wallet-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.wallet-amount {
  font-size: 40px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -1px;
}

.wallet-unit {
  font-size: 16px;
  color: var(--text-dim);
  font-family: -apple-system, sans-serif;
  margin-left: 2px;
}

.wallet-subtext {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 260px;
  margin-top: 4px;
}

.deposit-box {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

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

.deposit-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.deposit-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 14px;
}

.deposit-info-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  border-left: 3px solid var(--accent-blue);
  padding-left: 12px;
}

.deposit-info-text b {
  color: #ffffff;
}

.copy-field {
  background: rgba(20, 28, 48, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.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: rgba(43, 121, 255, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
}

.btn-copy-chip:active {
  transform: scale(0.95);
  background: rgba(43, 121, 255, 0.35);
}

.wallet-links-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.btn-wallet-action {
  width: 100%;
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #2b79ff, #0055ff);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 26px;
  box-shadow: 0 6px 24px rgba(43, 121, 255, 0.4);
  transition: transform 0.15s;
}

.btn-wallet-action:active {
  transform: scale(0.97);
}

.btn-wallet-action.secondary {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 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);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-row:last-child {
  border-bottom: none;
}

.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 ("КАПЛЯМИ, КАК НА АЙФОН" — СКРУГЛЕННЫЙ) */
.ios-dock {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 32px);
  max-width: 410px;
  background: rgba(14, 20, 36, 0.82);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(120, 170, 255, 0.2);
  border-radius: 40px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  z-index: 100;
  box-sizing: border-box;
}

.dock-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, color 0.2s;
  color: var(--text-dim);
  flex: 1;
}

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

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

/* Активная "капля" (pill highlight) */
.dock-item.active {
  background: rgba(43, 121, 255, 0.25);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(43, 121, 255, 0.3);
}

/* Профиль в доке (правая круглая "капля") */
.dock-profile-drop {
  flex: 0 0 auto;
  padding: 4px 10px;
}

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

.dock-item.active .dock-avatar-bubble {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

/* VIP FILTERS & SETTINGS CARD */
.vip-settings-card {
  margin-top: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.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: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 8px 14px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-rating-pill.active {
  background: rgba(43, 121, 255, 0.28);
  border-color: rgba(56, 189, 248, 0.55);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(43, 121, 255, 0.35);
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
}

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

.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: linear-gradient(135deg, #2b79ff, #00d2ff);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(43, 121, 255, 0.4);
}

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;
}

