/* bundle bundle-app.css */

/* --- aquarium.css --- */
/* CocoHub — scene layer (night gradient applied via styles.css) */
.underwater-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #021018;
}
body.is-watching-video .underwater-scene {
  visibility: hidden;
}
body.is-watching-video .underwater-scene,
body.is-watching-video .underwater-scene * {
  animation: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.water-depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 55% at 50% -5%, rgba(20, 80, 90, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 40%, rgba(8, 45, 58, 0.25) 0%, transparent 45%),
    linear-gradient(180deg, #0a2530 0%, #061a22 40%, #041218 75%, #010a10 100%);
}

.water-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(0, 5, 10, 0.55) 100%);
  pointer-events: none;
}

.light-rays {
  position: absolute;
  top: -5%;
  left: 50%;
  width: 120%;
  height: 55%;
  transform: translateX(-50%);
  background: conic-gradient(
    from 180deg at 50% 0%,
    transparent 0deg,
    rgba(80, 140, 160, 0.04) 25deg,
    transparent 50deg,
    rgba(60, 120, 140, 0.03) 80deg,
    transparent 120deg
  );
  filter: blur(12px);
  animation: rays-drift 20s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes rays-drift {
  0%, 100% { transform: translateX(-50%) rotate(-1deg); opacity: 0.45; }
  50% { transform: translateX(-49%) rotate(1deg); opacity: 0.55; }
}

.caustics {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  animation: caustics-move 28s linear infinite;
  mix-blend-mode: soft-light;
}

@keyframes caustics-move {
  0% { background-position: 0 0; }
  100% { background-position: 200px 140px; }
}

.sand-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(70, 55, 40, 0.18), transparent 60%),
    linear-gradient(180deg, transparent, rgba(50, 38, 28, 0.15) 45%, rgba(35, 26, 18, 0.28) 100%);
  background-size: 80px 80px, 100% 100%, 100% 100%;
}

.sand-floor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 60%, rgba(90, 70, 50, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(70, 55, 40, 0.1) 0.8px, transparent 0.8px);
  background-size: 28px 28px, 22px 22px;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent, black 30%);
}

.seaweed-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32%;
  pointer-events: none;
}

.seaweed {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  opacity: var(--weed-opacity, 0.55);
}

.seaweed--a { animation: weed-sway-a var(--weed-dur, 7s) ease-in-out infinite; }
.seaweed--b { animation: weed-sway-b var(--weed-dur, 8.5s) ease-in-out infinite; }
.seaweed--c { animation: weed-sway-c var(--weed-dur, 6.5s) ease-in-out infinite; }

@keyframes weed-sway-a {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.5deg); }
}

@keyframes weed-sway-b {
  0%, 100% { transform: rotate(1.5deg); }
  33% { transform: rotate(-2deg); }
  66% { transform: rotate(2deg); }
}

@keyframes weed-sway-c {
  0%, 100% { transform: rotate(-1deg) skewX(0deg); }
  50% { transform: rotate(1.5deg) skewX(1deg); }
}

.fish-school {
  position: absolute;
  inset: 0;
}

.fish {
  position: absolute;
  will-change: transform;
  opacity: var(--fish-opacity, 0.62);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.fish svg { display: block; overflow: visible; }

.fish--flip > svg { transform: scaleX(-1); }

.fish--wiggle .fish-tail {
  animation: tail-wiggle 0.45s ease-in-out infinite;
  transform-origin: 12% 50%;
}
.fish--path-a {
  animation: fish-path-a var(--fish-duration, 38s) linear infinite;
  animation-delay: var(--fish-delay, 0s);
}

.fish--path-b {
  animation: fish-path-b var(--fish-duration, 42s) linear infinite;
  animation-delay: var(--fish-delay, 0s);
}

.fish--path-c {
  animation: fish-path-c var(--fish-duration, 36s) linear infinite;
  animation-delay: var(--fish-delay, 0s);
}

.fish--path-d {
  animation: fish-path-d var(--fish-duration, 45s) linear infinite;
  animation-delay: var(--fish-delay, 0s);
}

.fish--wiggle .fish-body {
  animation: body-glide 2.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes body-glide {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1px) rotate(0.8deg); }
}

@keyframes fish-path-a {
  0% { transform: translate3d(-12vw, var(--fish-y, 0px), 0) scaleX(1); }
  25% { transform: translate3d(25vw, calc(var(--fish-y, 0px) - 4px), 0) scaleX(1); }
  50% { transform: translate3d(50vw, calc(var(--fish-y, 0px) + 3px), 0) scaleX(1); }
  75% { transform: translate3d(75vw, calc(var(--fish-y, 0px) - 2px), 0) scaleX(1); }
  100% { transform: translate3d(112vw, var(--fish-y, 0px), 0) scaleX(1); }
}

@keyframes fish-path-b {
  0% { transform: translate3d(112vw, var(--fish-y, 0px), 0); }
  25% { transform: translate3d(78vw, calc(var(--fish-y, 0px) + 3px), 0); }
  50% { transform: translate3d(48vw, calc(var(--fish-y, 0px) - 4px), 0); }
  75% { transform: translate3d(22vw, calc(var(--fish-y, 0px) + 2px), 0); }
  100% { transform: translate3d(-12vw, var(--fish-y, 0px), 0); }
}

@keyframes fish-path-c {
  0% { transform: translate3d(-12vw, var(--fish-y, 0px), 0) scaleX(1); }
  33% { transform: translate3d(35vw, calc(var(--fish-y, 0px) - 6px), 0) scaleX(1); }
  66% { transform: translate3d(72vw, calc(var(--fish-y, 0px) + 4px), 0) scaleX(1); }
  100% { transform: translate3d(112vw, var(--fish-y, 0px), 0) scaleX(1); }
}

@keyframes fish-path-d {
  0% { transform: translate3d(112vw, var(--fish-y, 0px), 0); }
  30% { transform: translate3d(70vw, calc(var(--fish-y, 0px) - 5px), 0); }
  60% { transform: translate3d(35vw, calc(var(--fish-y, 0px) + 3px), 0); }
  100% { transform: translate3d(-12vw, var(--fish-y, 0px), 0); }
}

@keyframes tail-wiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
}

.jellyfish-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jellyfish {
  position: absolute;
  opacity: var(--jelly-opacity, 0.45);
  animation: jelly-drift var(--jelly-duration, 16s) ease-in-out infinite;
  animation-delay: var(--jelly-delay, 0s);
  filter: drop-shadow(0 2px 10px rgba(80, 40, 120, 0.2));
}

.jellyfish .jelly-tentacles {
  animation: jelly-tentacles 4.5s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes jelly-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(6px, -10px, 0); }
  45% { transform: translate3d(-4px, -6px, 0); }
  70% { transform: translate3d(5px, -14px, 0); }
  85% { transform: translate3d(-2px, -8px, 0); }
}

@keyframes jelly-tentacles {
  0%, 100% { transform: scaleY(1) skewX(0deg); }
  33% { transform: scaleY(1.04) skewX(1.5deg); }
  66% { transform: scaleY(0.97) skewX(-1deg); }
}

.bubbles-layer {
  position: absolute;
  inset: 0;
}

.bubble {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.55), rgba(180, 220, 230, 0.12) 45%, transparent 68%);
  border: 1px solid rgba(160, 210, 220, 0.18);
  box-shadow: inset -1px -1px 2px rgba(255, 255, 255, 0.15);
  animation: bubble-rise var(--bubble-duration, 14s) ease-in infinite;
  animation-delay: var(--bubble-delay, 0s);
  opacity: 0;
}

@keyframes bubble-rise {
  0% { transform: translate3d(0, 0, 0) scale(0.3); opacity: 0; }
  10% { opacity: 0.35; }
  50% { transform: translate3d(var(--bubble-drift, 6px), -48vh, 0) scale(0.75); }
  85% { opacity: 0.15; }
  100% { transform: translate3d(calc(var(--bubble-drift, 6px) * 1.5), -100vh, 0) scale(0.9); opacity: 0; }
}

.particles-drift {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(180, 220, 230, 0.25) 0.5px, transparent 0.5px);
  background-size: 100px 100px;
  opacity: 0.04;
  animation: particles-float 55s linear infinite;
}

@keyframes particles-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-60px); }
}

@media (prefers-reduced-motion: reduce) {
  .fish, .bubble, .seaweed, .light-rays, .caustics, .particles-drift, .jellyfish {
    animation: none !important;
  }
  .fish--wiggle .fish-tail, .jellyfish .jelly-tentacles { animation: none !important; }
  .fish--wiggle .fish-body { animation: none !important; }
}

/* --- lang-dropdown.css --- */
/* Shared language dropdown — RU / US / UA / CN */
.lang-dropdown {
  position: relative;
  font-family: inherit;
  z-index: 40;
}

.lang-dropdown__trigger,
.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.lang-dropdown__trigger {
  min-width: 148px;
  width: auto;
  max-width: 42vw;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 70, 0.55);
  background: rgba(22, 16, 12, 0.92);
  color: #f5f0e8;
  font-weight: 700;
  font-size: 0.82rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lang-dropdown__trigger:hover {
  border-color: rgba(210, 170, 90, 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lang-dropdown__trigger:active { transform: scale(0.97); }

.lang-dropdown__chevron {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.7;
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: max(100%, 160px);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(180, 140, 70, 0.55);
  background: rgba(18, 13, 10, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 1200;
}

.lang-dropdown__item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f0ebe3;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.12s ease;
}

.lang-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-dropdown__item.is-active {
  background: rgba(120, 85, 45, 0.55);
  color: #fff8ee;
}

.lang-dropdown__item:active { transform: scale(0.98); }

.lang-dropdown__badge {
  flex-shrink: 0;
  min-width: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lang-dropdown__label {
  flex: 1;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .lang-dropdown__trigger {
    min-width: 96px;
    max-width: 30vw;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .lang-dropdown__menu {
    max-width: min(88vw, 240px);
  }
}

/* --- brand-wordmark.css --- */
/* CocoHub live wordmark */
.brand-wordmark-live {
  display: inline-flex;
  align-items: flex-end;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  white-space: nowrap;
}

/* Login / hero — coco brown + hub sea blue + wave */
.brand-wordmark-live--hero,
.brand-wordmark-live:not(.brand-wordmark-live--app) {
  filter: drop-shadow(0 2px 6px rgba(93, 64, 55, 0.2));
}

.brand-wordmark-live__coco {
  background: linear-gradient(180deg, #c49a6c 0%, #8b5a2b 55%, #6d4c2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-wordmark-live__hub {
  position: relative;
  display: inline-block;
  padding-right: 2px;
  background: linear-gradient(180deg, #5ec8f2 0%, #1a8fd4 45%, #1565a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-wordmark-live__wave {
  position: absolute;
  top: -5px;
  right: -1px;
  width: 15px;
  height: 8px;
  color: #2ec4e8;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(21, 101, 168, 0.25));
}

/* Main app — co (brown) + co (white) + hub (sand), no wave */
.brand-wordmark-live--app {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.brand-wordmark-live--app .brand-wordmark-live__co1 {
  background: linear-gradient(180deg, #f0c080 0%, #d4a05a 35%, #a66b2e 70%, #7a4a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-wordmark-live--app .brand-wordmark-live__co2 {
  color: var(--wordmark-co-white, #ffffff);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.brand-wordmark-live--app .brand-wordmark-live__hub {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--wordmark-hub-sand, #fde68a);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding-right: 0;
}

.brand-wordmark-live--app .brand-wordmark-live__wave {
  display: none;
}

.brand-wordmark-live--hero {
  font-size: 2.35rem;
  filter: drop-shadow(0 3px 10px rgba(93, 64, 55, 0.22));
}

.brand-wordmark-live--hero .brand-wordmark-live__wave {
  top: -7px;
  right: -2px;
  width: 22px;
  height: 11px;
}

@media (max-width: 520px) {
  .brand-wordmark-live {
    font-size: 1.35rem;
  }

  .brand-wordmark-live__wave {
    top: -4px;
    width: 13px;
    height: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-lockup__mascot {
    animation: none;
  }
}

/* --- styles.css --- */
/* CocoHub — deep night blue UI (main app) */
:root {
  --sand: #fde68a;
  --sand-light: #faf3e0;
  --sand-dark: #d8bc82;
  --wordmark-co-brown: #d4a05a;
  --wordmark-co-white: #ffffff;
  --wordmark-hub-sand: #fde68a;
  --ocean-deep: #042535;
  --ocean-mid: #063d5c;
  --ocean-light: #2ec4b6;
  --teal: #00838f;
  --teal-light: #4dd0e1;
  --palm: #1b7a5c;
  --coconut: #78350f;
  --coconut-shell: #d4a574;
  --coral: #ff6b9d;
  --coral-bright: #ff8c42;
  --sunset: #fbbf24;
  --sun-glow: rgba(46, 196, 182, 0.12);
  --foam: rgba(220, 250, 255, 0.92);
  --bg: #021018;
  --surface: rgba(4, 37, 53, 0.78);
  --surface-strong: rgba(2, 16, 24, 0.88);
  --surface-card: rgba(255, 255, 255, 0.08);
  --border: rgba(120, 220, 255, 0.16);
  --text: #e8fbff;
  --text-soft: #94d4e8;
  --text-muted: #5eb8d4;
  --title-accent: var(--sand);
  --accent: #fbbf24;
  --accent-strong: #ff8c42;
  --accent-rgb: 251, 191, 36;
  --green: #4ade80;
  --red: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: system-ui, sans-serif;
  --font-display: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.is-dialog-open { overflow: hidden; }

.app-shell {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.app.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1440px;
  margin: 0 auto;
}

/* —— Layout chrome —— */
.topbar, .content, .bottom-nav, .mirror-domains-bar {
  position: relative;
  z-index: 2;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(2, 16, 24, 0.92), rgba(4, 37, 53, 0.75));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  z-index: 30;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}
.brand-lockup--simple {
  gap: 10px;
  flex: 0 1 auto;
  margin-right: auto;
}
.brand-lockup--simple .brand-lockup__mascot-img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.brand-lockup--simple .brand-lockup__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: #f6e7c5;
  line-height: 1;
  white-space: nowrap;
}
.brand-lockup__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.brand-lockup__mascot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.1rem;
  width: 2.1rem;
  margin-right: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  overflow: hidden;
  padding: 2px;
  animation: brand-island-sway 3.6s ease-in-out infinite;
  transform-origin: 50% 92%;
}
.brand-lockup__mascot-img {
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.42));
}
.brand-lockup__mascot.is-hidden {
  display: none;
}
@keyframes brand-island-sway {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  25% { transform: translateY(-1.5px) rotate(1.5deg); }
  50% { transform: translateY(-2.5px) rotate(2.5deg); }
  75% { transform: translateY(-1px) rotate(-1deg); }
}
.brand-lockup__logo {
  display: none;
}
@media (min-width: 521px) {
  .brand-lockup__logo {
    animation: logo-bob 3s ease-in-out infinite;
  }
}
.brand-lockup__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.brand-lockup__title {
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
  flex: 1 1 auto;
}
.brand-lockup__wordmark {
  display: block;
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.brand-lockup__title-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--title-accent);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 16px rgba(255, 152, 0, 0.35);
}
.brand-lockup__tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.notifications-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-card);
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .notifications-bell:hover {
    transform: scale(1.08) rotate(-8deg);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.2);
  }
}
.notifications-bell:active { transform: scale(0.92); transition-duration: 0.08s; }
.notifications-bell__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.balance-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.15));
  color: var(--text);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .balance-pill:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(251, 191, 36, 0.75);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.28);
  }
  .balance-pill:hover .balance-plus { animation: btn-icon-wiggle 0.4s ease; }
}
.balance-pill:active { transform: scale(0.94); transition-duration: 0.08s; }
.balance-plus { color: var(--accent); font-size: 1.1rem; display: inline-block; }
.app-lang-switcher {
  position: relative;
  z-index: 40;
}

@media (max-width: 520px) {
  .topbar {
    gap: 6px;
    padding: 10px 10px;
    flex-wrap: nowrap;
  }

  .brand-lockup {
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
  }

  .brand-lockup__mascot {
    height: 1.55rem;
    margin-right: 5px;
  }

  .brand-lockup__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-lockup__title {
    line-height: 1;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
    max-width: none;
  }

  .brand-lockup__wordmark,
  .brand-wordmark-live {
    max-width: 100%;
  }

  .brand-wordmark-live {
    font-size: 1.2rem;
  }

  .topbar-actions {
    gap: 5px;
    flex: 0 0 auto;
  }

  .notifications-bell {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.96rem;
  }

  .balance-pill {
    gap: 3px;
    padding: 6px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .balance-plus {
    font-size: 0.95rem;
  }
}

.content {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.panel { display: none; animation: panel-in 0.35s ease; }
.panel.is-active { display: block; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading — fullscreen overlay until bootstrap paints real data */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background: rgba(2, 16, 24, 0.92);
  backdrop-filter: blur(8px);
}
.loading-screen.is-hidden { display: none !important; }
html.cocohub-seo .loading-screen { display: none !important; }
.boot-fail-tip {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 10050;
  max-width: min(92vw, 28rem);
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(2, 16, 24, 0.92);
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.seo-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 400;
  color: var(--title-accent);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 16px rgba(255, 152, 0, 0.35);
}
.seo-hero__text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.loading-coconut { position: relative; width: 80px; height: 80px; }
.loading-coconut__shell { font-size: 3rem; display: block; animation: logo-bob 1.2s ease-in-out infinite; }
.loading-coconut__ring {
  position: absolute;
  inset: -8px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--ocean-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Home */
.home-hero {
  text-align: center;
  margin-bottom: 20px;
  padding: 12px;
}
.home-hero__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sand);
  margin: 0 0 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.home-hero__text { margin: 0; color: var(--text-soft); font-size: 0.9rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 420px) {
  .cards-grid {
    gap: 8px;
  }
  .home-card {
    min-height: 88px;
    padding: 12px 10px;
  }
  .home-card__icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .home-card__title {
    font-size: 0.78rem;
  }
  .home-card--exchange .home-card__title,
  .home-card--compact .home-card__title {
    font-size: 0.78rem;
  }
}
.home-card {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 18px;
  padding: 14px 12px;
  min-height: 96px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.22s ease, filter 0.22s ease;
  animation: home-card-in 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}
.home-card-row {
  display: contents;
}
.home-card--compact {
  min-height: 96px;
  padding: 14px 12px;
}
.home-card--compact .home-card__title {
  font-size: 0.86rem;
}
.home-card__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}
.home-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
.home-card__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  transition: transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.home-card__title {
  flex: 1;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
.home-card--exchange .home-card__title {
  font-size: 0.84rem;
}
.home-card--catalog {
  background: linear-gradient(145deg, #14532d 0%, #16a34a 38%, #22c55e 62%, #4ade80 100%);
}
.home-card__alert {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 4;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 4px 10px rgba(185, 28, 28, 0.45);
  animation: home-card-alert-shake 1.15s ease-in-out infinite;
}
@keyframes home-card-alert-shake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  15% { transform: translate3d(-1.5px, 0, 0) rotate(-8deg); }
  30% { transform: translate3d(1.5px, 0, 0) rotate(8deg); }
  45% { transform: translate3d(-1px, 0, 0) rotate(-5deg); }
  60% { transform: translate3d(1px, 0, 0) rotate(5deg); }
  75% { transform: translate3d(-0.5px, 0, 0) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .home-card__alert { animation: none; }
}
.home-card--buy-stars {
  background: linear-gradient(145deg, #facc15 0%, #fde047 42%, #fef08a 72%, #fffbeb 100%);
  color: #422006;
}
.home-card--buy-stars .home-card__title {
  color: #422006;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.home-card--buy-stars .home-card__icon {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(161, 98, 7, 0.35);
  color: #854d0e;
}
.home-card--buy-stars::after {
  background:
    radial-gradient(ellipse 70% 80% at 88% 108%, rgba(202, 138, 4, 0.28), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 55%);
}
.stars-sale-card .stars-sale-input {
  margin: 10px 0 12px;
}
.stars-sale-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}
.stars-sale-steps {
  margin: 16px 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 8px;
  opacity: 0.9;
  font-size: 0.9rem;
  line-height: 1.4;
}
.stars-sale-steps a {
  color: #7dd3fc;
  font-weight: 700;
}
.home-card--catalog::after {
  background:
    radial-gradient(ellipse 80% 70% at 18% 100%, rgba(0, 0, 0, 0.18), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%);
}
.home-card__float-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.home-card__float {
  position: absolute;
  line-height: 1;
  opacity: 0.42;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  backface-visibility: hidden;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.home-card__float--dark {
  filter: grayscale(1) brightness(0.1);
}
.home-card__float--text {
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: -0.06em;
}
.home-card__float--text-dark {
  filter: none;
  color: rgba(0, 0, 0, 0.4);
  text-shadow: none;
}
.home-card__float--light {
  filter: none;
  opacity: 0.34;
}
.home-card-float-1 { animation-name: home-float-1; }
.home-card-float-2 { animation-name: home-float-2; }
.home-card-float-3 { animation-name: home-float-3; }
.home-card-float-4 { animation-name: home-float-4; }
@keyframes home-float-1 {
  0% { transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.88); opacity: 0.22; }
  25% { transform: translate3d(6px, -5px, 0) rotate(4deg) scale(1); opacity: 0.5; }
  50% { transform: translate3d(12px, 2px, 0) rotate(10deg) scale(1.06); opacity: 0.58; }
  75% { transform: translate3d(6px, 6px, 0) rotate(2deg) scale(0.96); opacity: 0.4; }
  100% { transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.88); opacity: 0.22; }
}
@keyframes home-float-2 {
  0% { transform: translate3d(0, 0, 0) rotate(8deg) scale(0.9); opacity: 0.24; }
  25% { transform: translate3d(-5px, 4px, 0) rotate(-2deg) scale(1.02); opacity: 0.46; }
  50% { transform: translate3d(-10px, -3px, 0) rotate(-12deg) scale(1.08); opacity: 0.56; }
  75% { transform: translate3d(-4px, -7px, 0) rotate(-4deg) scale(0.94); opacity: 0.38; }
  100% { transform: translate3d(0, 0, 0) rotate(8deg) scale(0.9); opacity: 0.24; }
}
@keyframes home-float-3 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.92); opacity: 0.26; }
  33% { transform: translate3d(8px, 5px, 0) rotate(14deg) scale(1.04); opacity: 0.52; }
  66% { transform: translate3d(-7px, 4px, 0) rotate(-11deg) scale(1.02); opacity: 0.48; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.92); opacity: 0.26; }
}
@keyframes home-float-4 {
  0% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(0.86); opacity: 0.2; }
  20% { transform: translate3d(-6px, -4px, 0) rotate(6deg) scale(0.98); opacity: 0.44; }
  55% { transform: translate3d(5px, -8px, 0) rotate(12deg) scale(1.07); opacity: 0.55; }
  80% { transform: translate3d(9px, 3px, 0) rotate(-4deg) scale(0.95); opacity: 0.36; }
  100% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(0.86); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .home-card__float { animation: none !important; opacity: 0.3; }
}
.home-card--catalog .home-card__icon {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}
.home-card--topup {
  background: linear-gradient(145deg, #4a2f14 0%, #7a4a1a 32%, #a66b2e 62%, #d4a05a 100%);
}
.home-card--topup::after {
  background:
    radial-gradient(ellipse 60% 80% at 12% 100%, rgba(40, 20, 6, 0.35), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 55%);
}
.home-card--topup .home-card__icon {
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 220, 160, 0.35);
}
.home-card--casino .home-card__icon {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.32);
}
.home-card--video {
  background: linear-gradient(128deg, #6b21a8 0%, #c026d3 48%, #f472b6 100%);
}
.home-card--video::after {
  background:
    radial-gradient(ellipse 72% 88% at 90% 108%, rgba(45, 8, 58, 0.34), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-card--market {
  background: linear-gradient(128deg, #9a3412 0%, #ea580c 48%, #fb923c 100%);
}
.home-card--market::after {
  background:
    radial-gradient(ellipse 72% 88% at 12% 108%, rgba(67, 20, 7, 0.34), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-card--lottery {
  background: linear-gradient(128deg, #1e1b4b 0%, #4338ca 48%, #818cf8 100%);
}
.home-card--lottery::after {
  background:
    radial-gradient(ellipse 72% 88% at 88% 108%, rgba(30, 27, 75, 0.4), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-card--casino {
  background: linear-gradient(128deg, #0f766e 0%, #2dd4bf 50%, #99f6e4 100%);
}
.home-card--casino::after {
  background:
    radial-gradient(ellipse 72% 88% at 10% 108%, rgba(0, 55, 50, 0.28), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-card--chat {
  background: linear-gradient(128deg, #ca8a04 0%, #a3e635 55%, #bef264 100%);
}
.home-card--chat::after {
  background:
    radial-gradient(ellipse 72% 88% at 90% 108%, rgba(48, 62, 8, 0.32), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-card--tasks {
  background: linear-gradient(128deg, #db2777 0%, #fb7185 52%, #fecdd3 100%);
}
.home-card--tasks::after {
  background:
    radial-gradient(ellipse 72% 88% at 10% 108%, rgba(72, 12, 38, 0.32), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-card--exchange {
  background: linear-gradient(128deg, #1d4ed8 0%, #38bdf8 52%, #7dd3fc 100%);
}
.home-card--exchange::after {
  background:
    radial-gradient(ellipse 72% 88% at 90% 108%, rgba(8, 32, 78, 0.32), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
}
.home-card--anon-exchange {
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 38%, #eef2ff 72%, #f1f5f9 100%);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.home-card--anon-exchange::after {
  background:
    radial-gradient(ellipse 70% 80% at 88% 100%, rgba(148, 163, 184, 0.22), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 55%);
}
.home-card--anon-exchange .home-card__glow {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%, rgba(148, 163, 184, 0.08) 100%);
}
.home-card--anon-exchange .home-card__title {
  color: #0f172a;
  text-shadow: none;
  font-size: 0.72rem;
  line-height: 1.12;
}
.home-card--anon-exchange .home-card__icon {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(100, 116, 139, 0.28);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .home-card--anon-exchange:not(.is-disabled):hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  }
}
.home-card--chat-exchange {
  background: linear-gradient(145deg, #1a8ad4 0%, #229ED9 42%, #2AABEE 72%, #54b9f0 100%);
}
.home-card--chat-exchange::after {
  background:
    radial-gradient(ellipse 72% 88% at 12% 108%, rgba(10, 70, 120, 0.35), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 60%);
}
.home-card--chat-exchange .home-card__icon {
  filter: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  padding: 0;
}
.home-card__float--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-card__float--icon .tg-brand-icon,
.home-card__float--icon .home-card__brand-icon {
  width: 1em;
  height: 1em;
  display: block;
  object-fit: contain;
}
.home-card__brand-icon,
.tg-brand-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}
.home-card--chat-exchange .home-card__title {
  font-size: 0.78rem;
  line-height: 1.15;
}
.chat-exchange-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-exchange-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chat-exchange-card:active {
  transform: scale(0.985);
}
.chat-exchange-card__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a8ad4 0%, #229ED9 45%, #2AABEE 100%);
  box-shadow: 0 6px 14px rgba(34, 158, 217, 0.28);
}
.chat-exchange-card__icon img {
  width: 28px;
  height: 28px;
  display: block;
}
.chat-exchange-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chat-exchange-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}
.chat-exchange-card__meta {
  font-size: 0.82rem;
  color: var(--text-soft);
}
.chat-exchange-card__arrow {
  flex: 0 0 auto;
  opacity: 0.55;
  font-size: 1.1rem;
}
.home-card:nth-child(1) { animation-delay: 0.04s; }
.home-card:nth-child(2) { animation-delay: 0.1s; }
.home-card:nth-child(3) { animation-delay: 0.16s; }
.home-card:nth-child(4) { animation-delay: 0.22s; }
.home-card:nth-child(5) { animation-delay: 0.28s; }
.home-card:nth-child(6) { animation-delay: 0.34s; }
.home-card:nth-child(7) { animation-delay: 0.4s; }
.home-card:nth-child(8) { animation-delay: 0.46s; }
.home-card:nth-child(9) { animation-delay: 0.52s; }
@keyframes home-card-in {
  0% { opacity: 0; transform: translateY(26px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* Hover/shine для карточек — только tropical.css (без sweep/wiggle). */
@media (prefers-reduced-motion: reduce) {
  .home-card { animation: none !important; }
}
.home-card:active:not(.is-disabled) {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.08s;
}
.home-card__hint { font-size: 0.72rem; opacity: 0.9; margin-top: 4px; }
.home-card.is-disabled { opacity: 1; pointer-events: none; filter: none; }
.home-card.is-disabled .home-card__content { opacity: 0.45; filter: grayscale(0.35); }
.home-card__maint {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  max-width: calc(100% - 16px);
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #3f2a00;
  background: rgba(255, 236, 153, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* Panels */
.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head--compact { justify-content: center; text-align: center; }
.panel-head--center .panel-head > div { text-align: center; }
.panel-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.panel-title { margin: 4px 0 0; font-size: 1.35rem; font-weight: 800; }
.back-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
}
.back-button__icon {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.22s ease;
}
.back-button--round {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}
.back-button--round span:not(.back-button__icon) { display: none; }
@media (hover: hover) {
  .back-button:hover {
    transform: translateX(-3px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 6px 18px rgba(34, 211, 238, 0.18);
    background: rgba(12, 74, 110, 0.55);
  }
  .back-button:hover .back-button__icon { transform: translateX(-4px); }
}
.back-button:active {
  transform: scale(0.93) translateX(-1px);
  transition-duration: 0.08s;
}

.section-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.section-card__title { font-weight: 800; margin-bottom: 8px; }
.section-card__text { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 12px; }
.section-card a { color: var(--accent); font-weight: 700; text-decoration: none; }
.exchange-text { white-space: pre-line; }

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}
.primary-button {
  background: linear-gradient(135deg, var(--sunset), var(--coral));
  color: #422006;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}
.secondary-button {
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.primary-button--wide { width: 100%; }
.primary-button:disabled, .secondary-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
@media (hover: hover) {
  .primary-button:not(:disabled):hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
    filter: brightness(1.05);
  }
  .secondary-button:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
}
.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

/* Catalog */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}
.category-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
@media (hover: hover) {
  .category-tab:not(.is-active):hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.35);
  }
  .category-tab.is-active:hover { transform: translateY(-2px) scale(1.03); }
}
.category-tab:active { transform: scale(0.94); transition-duration: 0.08s; }
.category-tab.is-active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(251, 191, 36, 0.2));
  border-color: var(--ocean-light);
  color: var(--foam);
}
.catalog-list { display: flex; flex-direction: column; gap: 10px; }
.product-card, .task-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .product-card:hover, .task-card:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }
}
.product-card:active, .task-card:active { transform: scale(0.98); transition-duration: 0.08s; }
.product-card__media {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}
video.product-card__media {
  pointer-events: none;
}
.product-card__body { flex: 1; min-width: 0; }
.product-card__name {
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.product-card__name .product-card__badge {
  margin: 0;
}
.product-card__desc { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 8px; }
.product-card__price { font-weight: 800; color: var(--accent); }
.product-card__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff5f5;
  background: rgba(220, 38, 38, 0.92);
  border: 1px solid rgba(254, 202, 202, 0.45);
}
.product-card--unavailable {
  border-color: rgba(239, 68, 68, 0.75);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.55), rgba(69, 10, 10, 0.72));
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.25), 0 10px 24px rgba(127, 29, 29, 0.28);
}
.product-card--unavailable .product-card__name,
.product-card--unavailable .product-card__price {
  color: #fecaca;
}
.product-card--unavailable .product-card__desc {
  color: rgba(254, 226, 226, 0.86);
}
.product-detail--unavailable {
  border-color: rgba(239, 68, 68, 0.7);
  background: linear-gradient(160deg, rgba(127, 29, 29, 0.45), rgba(30, 8, 8, 0.72));
}
.product-unavailable-banner {
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  color: #fff1f2;
  background: rgba(220, 38, 38, 0.88);
  border: 1px solid rgba(254, 202, 202, 0.4);
}
.product-slots {
  margin: 10px 0 12px;
}
.product-slots__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.product-slots__label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.04em;
}
.product-slots__hint {
  font-size: 0.75rem;
  color: var(--text-soft);
}
.product-slots__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.product-slots__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #f97316 55%, #ef4444);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.45);
}
.task-card {
  position: relative;
}
.task-card--featured {
  background: transparent;
  border: 2px solid #f5c518;
  box-shadow: none;
}
.task-card__alert {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(185, 28, 28, 0.4);
  animation: home-card-alert-shake 1.15s ease-in-out infinite;
}
.task-progress {
  margin: 0 0 12px;
}
.task-progress__meta {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.task-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.task-progress__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #22c55e);
}
.task-dialog__ref {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  word-break: break-all;
}
.task-dialog__ref-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  opacity: 0.75;
}
.task-dialog__ref-value {
  font-size: 0.82rem;
}
.task-dialog__reward-slot {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.task-dialog__reward-title {
  font-weight: 800;
  margin-bottom: 6px;
}
.task-dialog__reward-link {
  color: #0f766e;
  font-weight: 700;
  word-break: break-all;
}
.task-card__hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.95;
}
.task-card__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.task-card__icon .tg-brand-icon,
.task-card__icon .home-card__brand-icon {
  width: 22px;
  height: 22px;
}
.task-card--group {
  cursor: default;
  align-items: flex-start;
}
.task-card--group:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.task-card--group:active {
  transform: none;
}
.task-card__children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.task-card__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 158, 217, 0.35);
  background: linear-gradient(145deg, rgba(26, 138, 212, 0.18), rgba(42, 171, 238, 0.1));
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.task-card__sub:active {
  transform: scale(0.985);
}
.task-card__sub.is-done {
  opacity: 0.72;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}
.task-card__sub-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a8ad4 0%, #229ED9 45%, #2AABEE 100%);
}
.task-card__sub-icon .tg-brand-icon,
.task-card__sub-icon .home-card__brand-icon {
  width: 18px;
  height: 18px;
  filter: none;
}
.task-card__sub-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.task-card__sub-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}
.task-card__sub-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.task-card__sub-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.28);
  border: 1px solid rgba(74, 222, 128, 0.45);
  white-space: nowrap;
}
.task-card__sub-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}
.product-detail {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.product-detail__media {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 240px;
  margin: 12px auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}
.product-detail__price { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin: 12px 0; }
.product-detail__meta { font-size: 0.84rem; color: var(--text-soft); margin-top: -6px; margin-bottom: 12px; }
.product-pay-open {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.product-pay-open .section-card__title {
  margin-bottom: 8px;
}
.product-pay-open .section-card__text {
  margin: 0 0 12px;
  line-height: 1.45;
}
.product-pay-open__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 6px;
}
.product-pay-open__input {
  width: 100%;
  margin: 0 0 12px;
  font-size: 0.82rem;
  word-break: break-all;
}
.product-pay-open__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-preview-carousel { position: relative; margin: 12px 0; }
.product-preview-carousel .product-detail__media { margin: 0; }
.product-preview-carousel__image {
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.product-preview-carousel video.product-preview-carousel__image {
  pointer-events: none;
}
.product-preview-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 16, 24, 0.82);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.product-preview-carousel__nav[data-preview-prev] { left: 8px; }
.product-preview-carousel__nav[data-preview-next] { right: 8px; }
.product-preview-carousel__counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(2, 16, 24, 0.72);
  font-size: 0.75rem;
  color: var(--text-soft);
  z-index: 2;
  pointer-events: none;
}

/* Video */
.video-screen__intro { margin-bottom: 16px; text-align: center; }
.video-screen__title { font-weight: 800; font-size: 1.1rem; }
.video-screen__text { font-size: 0.85rem; color: var(--text-soft); margin-top: 6px; }
.video-screen #videoQuickWatchButton { margin-bottom: 10px; }
.video-screen #videoCategoryToggleButton {
  width: 100%;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.video-category-toggle__chevron {
  font-size: 0.85em;
  opacity: 0.85;
  transition: transform 0.18s ease;
}
#videoCategoryToggleButton.is-open .video-category-toggle__chevron {
  transform: rotate(180deg);
}
.video-category-picker {
  margin-top: 2px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.video-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.video-category-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: #2a3142;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.video-category-chip--wide {
  grid-column: 1 / -1;
}
.video-category-chip.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: #3a455c;
}
.video-category-chip.is-disabled,
.video-category-chip:disabled {
  background: #141821;
  color: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}
.video-category-list { display: flex; flex-direction: column; gap: 10px; }
.secondary-button--wide { width: 100%; }
.category-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.8), rgba(22, 101, 52, 0.35));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .category-chip:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  }
  .category-chip:hover span:last-child { animation: btn-icon-wiggle 0.45s ease; }
}
.category-chip:active { transform: scale(0.97); transition-duration: 0.08s; }
.category-chip.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 10px 24px rgba(0, 0, 0, 0.22);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.9), rgba(22, 101, 52, 0.45));
}
.category-chip.is-empty-cat .category-chip__meta {
  color: rgba(226, 232, 240, 0.55);
}
.category-chip__name { font-weight: 800; }
.category-chip__meta { font-size: 0.82rem; color: var(--accent); margin-top: 0; }
.video-screen #videoQuickWatchButton { margin-top: 4px; margin-bottom: 10px; }
.video-screen #videoCategoriesOpenButton { width: 100%; margin-bottom: 10px; }
.video-selected-cat {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  min-height: 1.2em;
}
.video-category-dialog__card {
  max-height: min(78vh, 640px);
  overflow: auto;
}
.video-category-dialog__card .video-category-list {
  margin: 12px 0 4px;
  max-height: min(52vh, 420px);
  overflow: auto;
}
.video-actions .primary-button--wide,
.video-actions .secondary-button.primary-button--wide { width: 100%; text-align: center; }
.media-card {
  background: var(--surface-strong);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.media-card__frame {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  isolation: isolate;
  contain: layout style;
}
.media-card__frame video {
  width: 100%;
  max-height: min(70dvh, 640px);
  height: auto;
  display: block;
  background: #000;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transform: translateZ(0);
}
.media-card__frame video::-webkit-media-controls-overflow-button,
.media-card__frame video::-internal-media-controls-download-button {
  display: none !important;
}
.video-placeholder {
  padding: 40px 20px;
  text-align: center;
}
.video-placeholder__icon { font-size: 3rem; margin-bottom: 12px; animation: logo-bob 2s ease-in-out infinite; }
.video-actions { display: flex; flex-direction: column; gap: 10px; }
.is-hidden { display: none !important; }

/* Casino */
.casino-card {
  background: linear-gradient(160deg, rgba(120, 53, 15, 0.5), rgba(8, 47, 73, 0.9));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  text-align: center;
}
.casino-reels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.casino-reel {
  width: 64px;
  height: 80px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  background: var(--foam);
  color: var(--ocean-deep);
  border-radius: 12px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.1);
}
.casino-reel.is-spinning { animation: reel-shake 0.1s linear infinite; }
@keyframes reel-shake {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.casino-bets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.casino-bet {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
@media (hover: hover) {
  .casino-bet:not(.is-active):hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.45);
  }
  .casino-bet.is-active:hover { transform: scale(1.05); }
}
.casino-bet:active { transform: scale(0.92); transition-duration: 0.08s; }
.casino-bet.is-active {
  border-color: var(--accent);
  background: rgba(251, 191, 36, 0.25);
}
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* Chat */
.panel--chat { padding: 0 !important; margin: -16px; }
.chat-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 140px);
  background: var(--surface-strong);
}
.chat-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-icon-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-peer { display: flex; align-items: center; gap: 10px; flex: 1; }
.chat-peer__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--palm-light), var(--ocean-mid));
  display: grid;
  place-items: center;
}
.chat-peer__name { font-weight: 800; font-size: 0.9rem; }
.chat-peer__status { font-size: 0.75rem; color: var(--text-muted); }
.chat-thread {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-bubble--own {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--ocean-mid), var(--palm));
  border-bottom-right-radius: 4px;
}
.chat-bubble--peer {
  align-self: flex-start;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-composer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.chat-composer input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  color: var(--text);
  font-family: inherit;
}
.chat-send-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: #422006;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.2s ease;
}
@media (hover: hover) {
  .chat-send-btn:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
  }
}
.chat-send-btn:active { transform: scale(0.9); transition-duration: 0.08s; }

/* Referral & profile */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.stat-card__value { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.stat-card__label { font-size: 0.75rem; color: var(--text-soft); margin-top: 4px; }
.referral-link {
  word-break: break-all;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.referral-progress {
  margin: 0 0 14px;
  padding: 0 2px;
}
.referral-progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.referral-progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}
.referral-progress__label {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}
#referralHowText {
  white-space: pre-line;
}
.referral-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.referral-recent__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.referral-recent__id {
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.referral-recent__meta {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: 0.78rem;
}
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.profile-avatar-wrap { margin-bottom: 12px; }
.profile-avatar-fallback {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sand), var(--coconut-shell));
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--coconut);
}
.profile-card__name { font-size: 1.2rem; font-weight: 800; }
.profile-card__username { color: var(--text-muted); font-size: 0.9rem; }
.profile-menu { display: flex; flex-direction: column; gap: 8px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  will-change: transform;
  contain: layout style paint;
  -webkit-font-smoothing: antialiased;
}
@media (hover: hover) {
  .menu-item:hover {
    transform: translateX(6px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: rgba(12, 74, 110, 0.45);
  }
}
.menu-item:active { transform: scale(0.97) translateX(2px); transition-duration: 0.08s; }

/* Topup */
.topup-promo-button { margin-top: 10px; }
.promo-card { margin-top: 4px; }
.promo-input {
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(2, 16, 24, 0.55);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.promo-input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.18);
}
.pack-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.pack-card {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
@media (hover: hover) {
  .pack-card:not(.is-active):hover {
    transform: translateY(-3px);
    border-color: rgba(251, 191, 36, 0.4);
  }
  .pack-card.is-active:hover { transform: scale(1.04); }
}
.pack-card:active { transform: scale(0.94); transition-duration: 0.08s; }
.pack-card.is-active { border-color: var(--accent); background: rgba(251, 191, 36, 0.15); }
.pack-card__amount { font-size: 1.2rem; font-weight: 800; }
.amount-input { display: block; margin-bottom: 14px; }
.amount-input__field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2);
}
.amount-input__field input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .payment-method:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }
}
.payment-method:active { transform: scale(0.98); transition-duration: 0.08s; }
.payment-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.clone-bots-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}
.clone-bots-title { margin: 0 0 6px; font-size: 1.1rem; }
.clone-bots-subtitle { margin: 0 0 8px; font-size: 0.85rem; color: var(--text-soft); }
.clone-bots-hint {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.video-soon {
  text-align: center;
  padding: 28px 18px;
}
.video-soon .video-placeholder__icon {
  margin-bottom: 10px;
}
.clone-bots-create-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed rgba(251, 191, 36, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .clone-bots-create-btn:hover {
    transform: translateY(-2px);
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.75);
  }
}
.clone-bots-create-btn:active { transform: scale(0.97); transition-duration: 0.08s; }
.clone-bots-create-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.clone-bot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 10px;
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(2, 16, 24, 0.96), rgba(4, 37, 53, 0.85));
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 10;
}
.bottom-nav.is-hidden { display: none; }
.nav-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  position: relative;
  z-index: 1;
  transition: transform 0.22s cubic-bezier(0.34, 1.5, 0.64, 1), color 0.2s ease;
}
@media (hover: hover) {
  .nav-button:hover {
    transform: translateY(-4px);
    color: var(--text-soft);
  }
  .nav-button:hover .nav-icon { animation: btn-icon-wiggle 0.45s ease; }
  .nav-button.is-active:hover { color: var(--accent); }
}
.nav-button:active { transform: scale(0.9) translateY(0); transition-duration: 0.08s; }
.nav-button.is-active { color: var(--accent); }
.nav-icon {
  font-size: 1.35rem;
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  transition: transform 0.2s ease;
}

.btn-emoji,
.menu-item,
.notifications-bell__icon,
.video-placeholder__icon {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.nav-label { font-size: 0.68rem; font-weight: 700; }
.nav-indicator {
  position: absolute;
  bottom: 6px;
  height: 3px;
  width: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean-light), var(--accent));
  transition: left 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mirror-domains-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  font-size: 0.78rem;
  overflow: hidden;
}
.mirror-domains-bar__track { display: flex; gap: 16px; animation: marquee 20s linear infinite; white-space: nowrap; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.mirror-domains-bar__copy {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease;
}
@media (hover: hover) {
  .mirror-domains-bar__copy:hover {
    transform: scale(1.12);
    background: rgba(251, 191, 36, 0.12);
  }
}
.mirror-domains-bar__copy:active { transform: scale(0.9); }

@keyframes btn-icon-wiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-10deg) scale(1.12); }
  75% { transform: rotate(10deg) scale(1.12); }
}

.market-db-lost {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.88);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fff7f7;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}
.market-db-lost[hidden] {
  display: none;
}

.toast {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  max-width: 90%;
  padding: 12px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  box-shadow: var(--shadow);
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.task-dialog {
  position: fixed;
  inset: 0;
  z-index: 4000;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(2, 16, 24, 0.66);
  backdrop-filter: blur(6px);
}
.task-dialog__card {
  width: min(560px, 100%);
  max-height: min(78dvh, 720px);
  overflow: auto;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.task-dialog__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.task-dialog__text {
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.task-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.is-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Deep night blue backdrop */
.underwater-scene.underwater-scene--night {
  background:
    radial-gradient(ellipse 85% 55% at 50% -8%, rgba(46, 140, 196, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 61, 92, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #010810 0%, #021018 22%, #042535 52%, #063d5c 76%, #010a14 100%);
}

/* ===== Desktop Layout (same UX, larger spacing) ===== */
@media (min-width: 768px) {
  :root {
    --spacing-base: 20px;
  }

  .underwater-scene .water-depth,
  .underwater-scene .light-rays,
  .underwater-scene .caustics,
  .underwater-scene .water-vignette,
  .underwater-scene .sand-floor,
  .underwater-scene .fish,
  .underwater-scene .bubble,
  .underwater-scene .seaweed,
  .underwater-scene .jellyfish {
    display: none !important;
  }

  .app-shell {
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
  }

  .topbar {
    padding: 14px 22px;
  }

  .content {
    padding: 22px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .brand-lockup__title { font-size: 1.55rem; }
  .home-hero__title { font-size: 1.75rem; }
  .panel-title { font-size: 1.55rem; }

  .home-card,
  .product-card,
  .task-card {
    padding: 18px;
  }

  .product-card__media {
    width: 112px;
    height: 112px;
  }

  .product-detail__media {
    max-width: 360px;
    max-height: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-preview-carousel {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .menu-item {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .category-tab {
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .pack-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

@media (min-width: 1100px) {
  .content {
    padding: 26px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .pack-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-card__frame video {
    max-height: min(64dvh, 560px);
  }
}

/* ===== Mobile performance (phones / coarse pointer) ===== */
@media (pointer: coarse), (max-width: 767px) {
  .topbar,
  .bottom-nav,
  .section-card,
  .product-card,
  .task-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar {
    background: rgba(2, 16, 24, 0.97);
  }

  .bottom-nav:not(.bottom-nav--dock) {
    background: rgba(2, 16, 24, 0.97);
  }

  .brand-lockup__mascot {
    animation: none;
  }

  .brand-lockup__mascot-img {
    filter: none;
  }

  .home-card__float {
    animation: none !important;
    will-change: auto;
    opacity: 0.28;
  }

  .home-card__float--dark {
    filter: none;
    color: rgba(0, 0, 0, 0.55);
  }

  .home-card {
    animation: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    transition: transform 0.12s ease;
  }

  .home-card__alert {
    animation: none;
  }

  .nav-button {
    min-height: 48px;
    padding: 10px 8px;
  }

  .panel {
    animation: none;
  }
}



.tasks-bot-cta {
  display: block;
  margin: 14px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #14352f;
  background: linear-gradient(135deg, rgba(255, 214, 120, 0.95), rgba(120, 220, 190, 0.9));
  border: 1px solid rgba(20, 53, 47, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.tasks-bot-cta:active {
  transform: translateY(1px);
}


.news-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
}
.news-tab {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.news-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 214, 120, 0.95), rgba(120, 220, 190, 0.9));
  color: #14352f;
  border-color: transparent;
}
.news-pane[hidden] { display: none !important; }
.news-card + .news-card { margin-top: 10px; }
.news-card .primary-button,
.news-card .secondary-button { margin-top: 12px; }

.alert-bang {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(2, 16, 24, 0.65);
  pointer-events: none;
}
.alert-bang.is-hidden { display: none !important; }
.nav-item { position: relative; }
.nav-item__bang {
  margin-left: auto;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.notify-list { display: grid; gap: 10px; margin: 12px 0; text-align: left; }
.notify-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-card);
}
.notify-item strong { display: block; margin-bottom: 4px; }
.notify-item span { color: var(--text-soft); font-size: 0.84rem; }
#marketPlayer { width: 100%; max-height: 70vh; background: #000; }
.seller-wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.seller-wallet-grid div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.seller-wallet-grid strong { display: block; font-size: 1.05rem; }
.seller-wallet-grid span { color: var(--text-soft); font-size: 0.75rem; }
.seller-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  min-width: 0;
}
.seller-field span { color: var(--text-soft); font-size: 0.8rem; }
.seller-field .promo-input,
#marketCatSelect,
#marketSortSelect,
#marketUploadCard .promo-input,
#sellerUploadCard .promo-input,
#sellerWithdrawCard .promo-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.seller-lot-card { flex-direction: column; }
.seller-lot-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.market-sell-btn { margin: 0 0 12px; }
.seller-warn {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}
.market-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.market-grid .is-empty { grid-column: 1 / -1; }
.market-tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
}
.market-tile__preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.market-tile__preview--empty { background: linear-gradient(145deg, #1f2937, #111827); }
.market-tile__body { padding: 8px 10px 10px; min-width: 0; }
.market-tile__name {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-tile__desc {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-tile__price { font-size: 0.78rem; font-weight: 800; color: var(--accent); }
.market-tile__tech {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 2px 0 4px;
}
.market-upload-card { margin: 0 0 14px; position: relative; }
.market-upload-card .seller-field { margin-top: 8px; }
.market-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.market-upload-name { color: var(--text-muted); font-size: 0.85rem; word-break: break-all; }
.market-upload-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.reco-wrap { margin: 0 0 16px; }
.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.reco-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 14px 12px 12px;
  text-align: center;
}
.reco-card__avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #334155;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.reco-card__nick {
  background: none;
  border: 0;
  color: #e2e8f0;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.reco-card__rating { margin: 6px 0 10px; font-size: 0.82rem; }
.reco-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  text-align: left;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.reco-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
}
.reco-card__actions .primary-button,
.reco-card__actions .secondary-button {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
}
.seller-info-card__nick--link {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.rating-help-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  margin-left: 6px;
}
.rating-help-list { margin: 10px 0 0; padding-left: 18px; line-height: 1.7; }
.rating-tone--unrated { color: #94a3b8; }
.rating-tone--excellent { color: #4ade80; }
.rating-tone--great { color: #22c55e; }
.rating-tone--good { color: #38bdf8; }
.rating-tone--poor { color: #fb923c; }
.rating-tone--terrible { color: #fb7185; }
.lottery-hero { text-align: center; }
.lottery-hero__icon { font-size: 2.4rem; margin-bottom: 6px; }
.lottery-hero__title { font-weight: 800; }
.lottery-hero__ends { margin: 8px 0; color: #a5b4fc; font-weight: 700; }
.lottery-hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
  margin: 12px 0;
  font-size: 0.9rem;
}
.lottery-prizes { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.api-docs-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.78rem;
}
.seller-lot-card { align-items: stretch; }
.seller-lot-thumb {
  width: 100%;
  max-height: none;
  border-radius: 12px 12px 0 0;
}
@media (min-width: 720px) {
  .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.market-cat-tools {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.market-cat-tools .seller-field { margin-bottom: 0; }
#marketTabs.category-tabs {
  flex-wrap: wrap;
  overflow-x: hidden;
}
.seller-lot-actions .primary-button,
.seller-lot-actions .secondary-button,
#sellerUploadCard .primary-button--wide,
#sellerWithdrawCard .primary-button--wide,
#sellerWithdrawCard .secondary-button,
#sellerWalletCard .primary-button--wide {
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .market-cat-tools { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
}
.market-discover-wrap { margin: 0 0 12px; }
.market-discover {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.market-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
}
.market-chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.market-tile__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.seller-stars { color: #fbbf24; letter-spacing: 0.04em; }
.seller-stars-n { color: var(--text-soft); font-size: 0.72rem; }
.seller-info-card { text-align: center; }
.seller-info-card__nick {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.seller-info-card__stars { margin-bottom: 6px; }
.seller-info-card__rating { margin: 0 0 10px; }
.seller-info-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.seller-info-stats span {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  font-size: 0.8rem;
}
.market-rate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.market-rate .secondary-button {
  min-width: 2.4rem;
  width: auto;
  padding: 6px 8px;
}
.seller-rules-card {
  border-color: rgba(251, 191, 36, 0.55) !important;
  background: rgba(120, 53, 15, 0.28);
  text-align: left;
}
.seller-rules-card .section-card__title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.seller-rules-list {
  margin: 8px 0 10px;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}
.seller-rules-list li { margin-bottom: 8px; }
.seller-rules-foot {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}
.seller-rules-foot:last-child { margin-bottom: 0; }
#sellerProfileCard .promo-input,
#sellerProfileCard .primary-button--wide,
#marketSellerCard .primary-button--wide {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .primary-button, .secondary-button {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
  .reco-grid { grid-template-columns: 1fr 1fr; }
  .lottery-hero__meta { grid-template-columns: 1fr; }
  .market-upload-row {
    flex-direction: column;
    align-items: stretch;
  }
  .market-discover { gap: 8px; }
  .market-chip { padding: 8px 12px; }
  .seller-lot-actions,
  .video-actions { gap: 8px; }
}
@media (max-width: 520px) {
  .seller-info-stats { grid-template-columns: 1fr; }
  .seller-wallet-grid { grid-template-columns: 1fr; }
  .panel-head { gap: 8px; align-items: flex-start; }
  .panel-head .back-button { flex: 0 0 auto; }
  .reco-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .market-tile__name { font-size: 0.76rem; }
  .market-tile__desc { display: none; }
  .reco-card { padding: 12px 10px 10px; }
}

/* --- vendor/remixicon/remixicon.css --- */
/*
 * Remix Icon v4.3.0 subset — Apache License 2.0
 * https://remixicon.com
 */
@font-face {
  font-family: "remixicon";
  src: url("vendor/remixicon/remixicon.woff2?v=4.3.0") format("woff2");
  font-display: swap;
}

[class^="ri-"],
[class*=" ri-"] {
  font-family: "remixicon" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ri-chat-3-fill:before { content: "\eb50"; }
.ri-customer-service-2-fill:before { content: "\ec0b"; }
.ri-download-2-fill:before { content: "\ec53"; }
.ri-file-text-fill:before { content: "\ed0e"; }
.ri-ghost-fill:before { content: "\edb4"; }
.ri-home-5-fill:before { content: "\ee1e"; }
.ri-key-2-fill:before { content: "\ee6e"; }
.ri-logout-box-r-fill:before { content: "\eed9"; }
.ri-movie-2-fill:before { content: "\ef7e"; }
.ri-newspaper-fill:before { content: "\ef8e"; }
.ri-share-forward-fill:before { content: "\f0fc"; }
.ri-shopping-bag-3-fill:before { content: "\f115"; }
.ri-star-fill:before { content: "\f186"; }
.ri-store-2-fill:before { content: "\f1a4"; }
.ri-store-3-fill:before { content: "\f1a6"; }
.ri-task-fill:before { content: "\f1e7"; }
.ri-telegram-fill:before { content: "\f1ef"; }
.ri-user-fill:before { content: "\f25f"; }
.ri-user-star-fill:before { content: "\f275"; }
.ri-vip-diamond-fill:before { content: "\f28f"; }
.ri-wallet-3-fill:before { content: "\f2ab"; }
.ri-loop-right-fill:before { content: "\f33e"; }
.ri-dice-3-fill:before { content: "\f3f8"; }
.ri-dice-fill:before { content: "\f400"; }

/* --- tropical.css --- */
/* CocoHub — tropical dusk glass overlay (existing class names) */
:root {
  --bg-deep: #06121f;
  --bg: #06121f;
  --glass: rgba(8, 22, 38, 0.66);
  --surface: rgba(8, 22, 38, 0.72);
  --surface-strong: rgba(4, 14, 26, 0.88);
  --surface-card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(120, 220, 255, 0.28);
  --text: #f4fbff;
  --text-soft: rgba(220, 240, 255, 0.72);
  --text-muted: rgba(180, 210, 230, 0.55);
  --foam: rgba(244, 251, 255, 0.94);
  --cyan: #2ad4c7;
  --gold: #f6c344;
  --violet: #a855f7;
  --teal: #2ad4c7;
  --ocean-light: #2ad4c7;
  --ocean-mid: #0e7490;
  --ocean-deep: #042535;
  --palm: #10b981;
  --sunset: #f6c344;
  --coral: #ff6b8a;
  --accent: #f6c344;
  --accent-strong: #f59e0b;
  --accent-rgb: 246, 195, 68;
  --title-accent: #f6c344;
  --green: #4ade80;
  --red: #f87171;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --radius-sm: 14px;
  --font: system-ui, sans-serif;
  --font-display: system-ui, sans-serif;
  --display: var(--font-display);
  --nav-h: 68px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
}

/* —— Beach dusk scene —— */
.underwater-scene,
.underwater-scene.underwater-scene--night,
body.underwater {
  background:
    linear-gradient(180deg, rgba(4, 14, 26, 0.42), rgba(4, 14, 26, 0.68)),
    radial-gradient(ellipse at 20% 0%, rgba(42, 212, 199, 0.1), transparent 42%),
    url("assets/bg-beach-dusk.jpg") center / cover no-repeat !important;
  background-color: var(--bg-deep);
}
.underwater-scene .water-depth,
.underwater-scene .light-rays,
.underwater-scene .caustics,
.underwater-scene .water-vignette,
.underwater-scene .sand-floor,
.underwater-scene .fish,
.underwater-scene .bubble,
.underwater-scene .seaweed,
.underwater-scene .jellyfish {
  opacity: 0.12;
  filter: saturate(0.7);
}

/* —— Chrome —— */
.topbar {
  background: rgba(5, 16, 28, 0.58);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand-lockup__title-text,
.home-hero__title,
.panel-title,
.seo-hero__title,
.loading-screen__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-lockup__title-text {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.brand-lockup__mascot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.brand-lockup__mascot-img,
.auth-logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.notifications-bell {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  border-radius: 12px;
}
.balance-pill {
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(246, 195, 68, 0.42);
  background: linear-gradient(135deg, rgba(246, 195, 68, 0.24), rgba(120, 53, 15, 0.28));
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.22);
  font-weight: 800;
}
.balance-plus { color: var(--gold); }
.balance-emoji { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }

/* Dedicated online strip under topbar */
.online-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  padding: 8px 14px 0;
}
.online-pill,
.online-pill--bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.42);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(8, 22, 38, 0.78));
  color: #bbf7d0;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.online-pill em {
  font-style: normal;
  color: rgba(187, 247, 208, 0.78);
  font-weight: 700;
}
.online-pill strong { font-weight: 800; color: #fff; font-size: 0.9rem; }
.online-pill::before,
.online-pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: tropical-pulse-online 1.6s ease infinite;
}
.online-pill::before { content: ""; display: block; }
.online-pill:has(.online-pill__dot)::before { display: none; }
.online-pill__dot { display: inline-block; }
@keyframes tropical-pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.content {
  padding-bottom: calc(var(--nav-h) + 36px + env(safe-area-inset-bottom));
}

/* Home card accent tokens (layout/skin in shell section below) */
.home-card--catalog { --card-accent: #4ade80; --card-bg: none; }
.home-card--buy-stars,
.home-card--chat,
.home-card--topup { --card-accent: #f6c344; --card-bg: none; }
.home-card--video,
.home-card--anon-exchange { --card-accent: #a855f7; --card-bg: none; }
.home-card--tasks { --card-accent: #ff6b8a; --card-bg: none; }
.home-card--casino { --card-accent: #2ad4c7; --card-bg: none; }
.home-card--exchange,
.home-card--chat-exchange { --card-accent: #38bdf8; --card-bg: none; }
.home-card--market { --card-accent: #fb923c; --card-bg: none; }
.home-card--lottery { --card-accent: #818cf8; --card-bg: none; }

/* —— Panels / glass surfaces —— */
.panel-kicker {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.back-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}
.section-card,
.chat-shell,
.video-soon,
.stars-sale-card,
.promo-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-card__title { font-family: var(--font-display); font-weight: 800; }
.section-card__text { color: var(--text-soft); }
.section-card a { color: var(--cyan); }

.primary-button {
  color: #042535;
  background: linear-gradient(135deg, #5eead4, #2ad4c7 50%, #1496a8);
  box-shadow: 0 10px 28px rgba(42, 212, 199, 0.32);
  border-radius: 999px;
}
.secondary-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}
@media (hover: hover) {
  .primary-button:not(:disabled):hover {
    box-shadow: 0 12px 32px rgba(42, 212, 199, 0.42);
    filter: brightness(1.04);
  }
}

.category-tabs { gap: 8px; }
.category-tab {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-soft);
}
.category-tab.is-active {
  color: #042535;
  background: linear-gradient(135deg, #5eead4, #2ad4c7);
  border-color: transparent;
}
.category-chip {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.product-card,
.task-card,
.chat-exchange-card,
.history-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.product-card__price { color: var(--gold); }
.product-card--unavailable {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.28), rgba(8, 22, 38, 0.65));
  opacity: 1;
}
.product-card--unavailable .product-card__name,
.product-card--unavailable .product-card__price {
  color: rgba(248, 250, 252, 0.55);
}
.product-card__badge {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
}
.chat-exchange-card__icon {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.chat-exchange-card__icon img {
  object-fit: contain;
  background: transparent !important;
}

/* —— Casino reels —— */
.casino-reels { gap: 10px; }
.casino-reel {
  width: 68px;
  height: 84px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(180deg, rgba(42, 212, 199, 0.22), rgba(0, 0, 0, 0.35));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
.casino-reel.is-spinning {
  animation: tropical-reel-spin 0.12s linear infinite;
  filter: blur(1.4px) brightness(1.15);
  transform: scale(1.06);
}
.casino-reels .casino-reel:nth-child(1).is-spinning { animation-duration: 0.1s; }
.casino-reels .casino-reel:nth-child(2).is-spinning { animation-duration: 0.13s; animation-delay: 0.04s; }
.casino-reels .casino-reel:nth-child(3).is-spinning { animation-duration: 0.16s; animation-delay: 0.08s; }
.casino-reel.is-land {
  animation: tropical-reel-land 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) both;
  filter: none;
}
@keyframes tropical-reel-spin {
  0% { transform: scale(1.05) translateY(0); }
  50% { transform: scale(1.08) translateY(-5px); }
  100% { transform: scale(1.05) translateY(2px); }
}
@keyframes tropical-reel-land {
  0% { transform: scale(1.1) translateY(-8px); filter: blur(1px); }
  60% { transform: scale(0.96) translateY(2px); filter: blur(0); }
  100% { transform: scale(1) translateY(0); filter: none; }
}
.casino-bet.is-active,
.casino-bet.is-selected {
  border-color: var(--gold);
  background: rgba(246, 195, 68, 0.14);
  color: #fde68a;
}

/* —— Chat —— */
.chat-topbar {
  background: rgba(5, 16, 28, 0.55);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.chat-peer__avatar {
  background: rgba(42, 212, 199, 0.18);
  border: 1px solid rgba(42, 212, 199, 0.28);
}
.chat-bubble--own {
  background: linear-gradient(135deg, rgba(42, 212, 199, 0.42), rgba(20, 150, 168, 0.48));
  color: #f4fbff;
}
.chat-bubble--peer {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}
.chat-composer {
  background: rgba(5, 16, 28, 0.55);
  border-top-color: var(--border);
}
.chat-composer input {
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--border);
}
.chat-send-btn {
  background: linear-gradient(135deg, #5eead4, #2ad4c7 55%, #1496a8);
  color: #042535;
}
.chat-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
}

/* —— Bottom nav (mobile) + desktop sidebar shell —— */
.site-bg__veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 14, 26, 0.35), rgba(4, 14, 26, 0.55)),
    radial-gradient(ellipse at 20% 0%, rgba(42, 212, 199, 0.08), transparent 42%);
}
.underwater-scene { z-index: 0; }
.app.app-shell {
  /* No z-index here: it would create a stacking context under #sidebarScrim
     (z-index 40 outside .app) and block taps on the mobile drawer. */
  position: relative;
  z-index: auto;
  /* Mobile: flex — иначе fixed sidebar.is-drawer в grid занимает ряд 100dvh и ломает экран */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  isolation: auto;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
.sidebar {
  display: none;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 18px 14px;
  flex-direction: column;
  gap: 10px;
  background: rgba(5, 16, 28, 0.92);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  flex-shrink: 0;
}
.sidebar__logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}
.sidebar__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-right: 2px;
}
.sidebar__footer {
  flex-shrink: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-item--info {
  margin-top: 0;
  border: 1px solid rgba(246, 195, 68, 0.28);
  background: rgba(246, 195, 68, 0.08);
  color: #fde68a;
}
.nav-item--info:hover {
  background: rgba(246, 195, 68, 0.14);
  color: #fff;
}
.nav-item__icon--alert {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #041018;
  background: linear-gradient(135deg, #fde68a, #f6c344 55%, #f59e0b);
  box-shadow: 0 6px 14px rgba(246, 195, 68, 0.28);
  flex-shrink: 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.nav-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: transparent !important;
}
.nav-tile {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(22, 34, 50, 0.45);
  color: #8ea2b8;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-item.is-active .nav-tile {
  background: rgba(4, 20, 15, 0.18);
  color: #04140f;
}
.menu-item .nav-tile {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(22, 34, 50, 0.45);
  color: #8ea2b8;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav-item:active { transform: scale(0.98); }
.nav-item.is-active {
  color: #04140f;
  font-weight: 800;
  background: linear-gradient(135deg, #7dffb2, #34d399 55%, #10b981);
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.32);
}
.nav-item__badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.nav-item__icon { font-size: 1.05rem; line-height: 1; }
.sidebar-toggle { display: inline-grid; }
.brand-mobile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  margin-right: auto;
}
.brand-mobile img { border-radius: 8px; }
.brand-lockup--desktop { display: none; }
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn:active { transform: scale(0.94); }
.balance-chip__ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: transparent !important;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 10px;
}
.topbar-actions { margin-left: auto; }
.balance-pill,
.primary-button,
.secondary-button,
.back-button,
.category-tab,
.pack,
.method,
.menu-item,
.chat-send-btn,
.chat-icon-btn,
.btn {
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.balance-pill:active,
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.back-button:active,
.btn:active,
.menu-item:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .balance-pill:hover,
  .primary-button:not(:disabled):hover,
  .secondary-button:not(:disabled):hover,
  .btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 168px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 40, 52, 0.9), rgba(8, 20, 35, 0.25));
}
.hero__dots {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 5px;
}
.hero__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.hero__dots i.is-on {
  background: #fff;
  width: 14px;
  border-radius: 999px;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 20px 16px;
  max-width: 420px;
}
.hero__content h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.hero__content p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.btn--cyan {
  color: #042535;
  background: linear-gradient(135deg, #5eead4, #2ad4c7 50%, #1496a8);
  box-shadow: 0 10px 28px rgba(42, 212, 199, 0.32);
}

/* Home cards — service-card look */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-card,
.service-card {
  --card-accent: var(--cyan);
  --accent: var(--card-accent);
  --card-bg: none;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 178px;
  padding: 14px 12px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent);
  background: rgba(8, 16, 28, 0.46) !important;
  background-image: none !important;
  background-size: auto !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
  background-attachment: scroll !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  box-shadow:
    0 12px 28px color-mix(in srgb, var(--card-accent) 16%, transparent),
    var(--shadow);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: inherit;
  font: inherit;
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease, filter 0.2s ease;
}
/* Мягкий подъём + акцентная рамка — без scale/wiggle/shine-sweep */
@media (hover: hover) and (pointer: fine) {
  .home-card:not(.is-disabled):hover,
  .service-card:not(.is-disabled):hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-accent) 78%, #fff);
    box-shadow:
      0 20px 42px color-mix(in srgb, var(--card-accent) 30%, transparent),
      0 0 0 1px color-mix(in srgb, var(--card-accent) 42%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    filter: none;
  }
  .home-card:not(.is-disabled):hover::after,
  .service-card:not(.is-disabled):hover::after {
    display: none;
  }
  .home-card:not(.is-disabled):hover .card-tile,
  .home-card:not(.is-disabled):hover .home-card__icon-img,
  .home-card:not(.is-disabled):hover .home-card__icon img,
  .service-card:not(.is-disabled):hover .service-card__icon {
    transform: translateY(-3px);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
  }
  .home-card:not(.is-disabled):hover .home-card__cta,
  .service-card:not(.is-disabled):hover .service-card__cta {
    filter: brightness(1.08);
    transform: translateX(3px);
  }
}
.home-card:active,
.service-card:active {
  transform: translateY(0) scale(0.985);
}
.home-card.is-disabled,
.service-card.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.home-card::before,
.home-card::after,
.service-card::before,
.service-card::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
.home-card__glow { display: none; }
.home-card__float-bg { display: none !important; }
.home-card__content,
.service-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 0;
  align-items: stretch;
}
.home-card__icon {
  width: auto;
  height: auto;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  border-radius: 0;
  margin: 0 0 10px;
  justify-content: flex-start;
}
.card-tile {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(8, 14, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.22s ease;
}
.home-card__icon img,
.home-card__icon-img,
.service-card__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}
.home-card__title,
.service-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.service-card__desc,
.home-card__desc {
  color: var(--text-soft);
  font-size: 0.74rem;
  line-height: 1.35;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card__cta,
.home-card__cta {
  align-self: flex-start;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f8fafc;
  background: rgba(8, 14, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.home-card__icon-img,
.home-card__icon img,
.service-card__icon {
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.22s ease;
}
.home-card__alert,
.service-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.service-card__online,
.home-card__online {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(6, 40, 28, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #bbf7d0;
  font-size: 0.64rem;
  font-weight: 800;
}
.service-card__online i,
.home-card__online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: tropical-pulse-online 1.6s ease infinite;
}
.home-card--soon .home-card__cta,
.service-card--soon .service-card__cta {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.home-card--catalog { --card-accent: #4ade80; --card-bg: none; }
.home-card--buy-stars,
.home-card--chat,
.home-card--topup { --card-accent: #f6c344; --card-bg: none; }
.home-card--video,
.home-card--anon-exchange { --card-accent: #a855f7; --card-bg: none; }
.home-card--tasks { --card-accent: #ff6b8a; --card-bg: none; }
.home-card--casino { --card-accent: #2ad4c7; --card-bg: none; }
.home-card--exchange,
.home-card--chat-exchange { --card-accent: #38bdf8; --card-bg: none; }
.home-card--market { --card-accent: #fb923c; --card-bg: none; }
.home-card--lottery { --card-accent: #818cf8; --card-bg: none; }

.home-card.home-card--catalog,
.home-card.home-card--buy-stars,
.home-card.home-card--video,
.home-card.home-card--market,
.home-card.home-card--lottery,
.home-card.home-card--casino,
.home-card.home-card--chat,
.home-card.home-card--tasks,
.home-card.home-card--exchange,
.home-card.home-card--anon-exchange,
.home-card.home-card--chat-exchange,
.home-card.home-card--topup {
  background: rgba(8, 16, 28, 0.46) !important;
  background-image: none !important;
  color: #f8fafc;
}
.home-card--buy-stars,
.home-card--buy-stars .home-card__title,
.home-card--buy-stars .home-card__desc,
.home-card--anon-exchange,
.home-card--anon-exchange .home-card__title {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.home-card--catalog .home-card__icon,
.home-card--buy-stars .home-card__icon,
.home-card--topup .home-card__icon,
.home-card--casino .home-card__icon,
.home-card--video .home-card__icon,
.home-card--chat .home-card__icon,
.home-card--tasks .home-card__icon,
.home-card--exchange .home-card__icon,
.home-card--anon-exchange .home-card__icon,
.home-card--chat-exchange .home-card__icon,
.home-card--market .home-card__icon,
.home-card--lottery .home-card__icon {
  background: transparent !important;
  border: 0 !important;
}

/* Mobile bottom nav — full-bleed bar like testd */
.bottom-nav--dock.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: rgba(5, 16, 28, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: none;
}
.bottom-nav--dock.mobile-nav .nav-button {
  flex: unset;
  min-width: 0;
  gap: 2px;
  padding: 4px 2px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease, transform 0.18s ease;
}
.bottom-nav--dock.mobile-nav .nav-button + .nav-button::before { display: none; }
.bottom-nav--dock.mobile-nav .nav-icon {
  width: 22px;
  height: 22px;
  font-size: 0;
}
.bottom-nav--dock.mobile-nav .nav-icon img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}
.bottom-nav--dock.mobile-nav .nav-label {
  font-size: 0.62rem;
  font-weight: 700;
}
.bottom-nav--dock.mobile-nav .nav-button.is-active { color: var(--cyan); }
.bottom-nav--dock.mobile-nav .nav-button.is-active .nav-icon img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(42, 212, 199, 0.55));
  transform: translateY(-1px);
}
.bottom-nav--dock.mobile-nav .nav-button:active { transform: scale(0.94); }
.bottom-nav--dock.mobile-nav .nav-badge {
  top: 0;
  right: 14px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 0.58rem;
  line-height: 14px;
  background: #ef4444;
}
.bottom-nav.is-hidden { display: none !important; }

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  padding: 0;
  margin: 0;
  touch-action: none;
  pointer-events: auto;
}
.sidebar-scrim.is-open { display: block; }
.sidebar.is-drawer {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  width: min(300px, 86vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
  /* не участвует в потоке родителя */
  flex: none !important;
}
.sidebar.is-drawer.is-open {
  transform: none;
  pointer-events: auto;
}
.sidebar.is-drawer .sidebar__nav,
.sidebar.is-drawer .nav-item {
  pointer-events: auto;
  touch-action: manipulation;
}

.footer {
  display: none;
}
.content {
  flex: 1;
  padding: 12px 12px calc(var(--nav-h) + 18px);
}

/* Mobile chrome: топбар и карточки без «кривизны» */
@media (max-width: 899px) {
  .topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .sidebar-toggle {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
  }
  .brand-lockup--simple {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    gap: 8px;
  }
  .brand-lockup--simple .brand-lockup__title {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
  }
  .app-lang-switcher .lang-dropdown__label {
    display: none;
  }
  .online-bar {
    padding: 8px 12px 0;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-card,
  .service-card {
    min-height: 168px;
    padding: 12px 10px;
  }
  .card-tile,
  .home-card__icon img,
  .home-card__icon-img,
  .service-card__icon {
    width: 52px;
    height: 52px;
  }
  .card-tile { font-size: 26px; }
  .home-card__title,
  .service-card__title {
    font-size: 0.88rem;
  }
  .home-card__desc,
  .service-card__desc {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }
  .home-card__cta,
  .service-card__cta {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.68rem;
  }
  .content {
    padding: 10px 10px calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  }
  .main {
    min-height: calc(100dvh - env(safe-area-inset-top));
  }
}

@media (max-width: 380px) {
  .brand-lockup--simple .brand-lockup__mascot-img {
    width: 28px;
    height: 28px;
  }
  .notifications-bell {
    display: none;
  }
}

@media (min-width: 900px) {
  :root { --sidebar-w: 248px; }
  .app.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    padding-left: 0 !important;
  }
  .main {
    min-height: 100dvh;
  }
  .sidebar { display: flex; }
  .sidebar.is-drawer {
    position: sticky;
    transform: none;
    width: auto;
    pointer-events: auto;
    flex: unset !important;
  }
  .sidebar-toggle,
  .brand-mobile,
  .brand-lockup--simple { display: none !important; }
  .brand-lockup--desktop {
    display: flex;
    margin-right: auto;
  }
  .bottom-nav--dock,
  .bottom-nav--dock.mobile-nav { display: none !important; }
  .content {
    padding: 16px 18px 28px !important;
  }
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .home-card,
  .service-card {
    min-height: 200px;
    padding: 16px;
  }
  .card-tile,
  .home-card__icon img,
  .home-card__icon-img,
  .service-card__icon {
    width: 72px;
    height: 72px;
  }
  .card-tile { font-size: 36px; }
  .home-card__title,
  .service-card__title { font-size: 1.02rem; }
  .home-card__desc,
  .service-card__desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 4;
  }
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    background: rgba(5, 16, 28, 0.45);
  }
  .footer__brand {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .footer__brand strong {
    display: block;
    font-family: var(--font-display);
  }
  .footer__brand span {
    color: var(--text-muted);
    font-size: 0.72rem;
  }
  .footer__utils {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .footer__utils button,
  .footer__utils .footer__link {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.18s ease;
  }
  .footer__utils button:hover,
  .footer__utils .footer__link:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .footer__tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    color: #7dd3fc;
    transition: transform 0.18s ease, filter 0.2s ease;
  }
  .footer__tg:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
  }
  .hero { min-height: 200px; }
  .hero__content h1 { font-size: 1.45rem; }
  .panel--chat { height: calc(100dvh - 140px); }
  .chat-peer__meta { display: flex; }
}

/* Chat roulette polish */
.chat-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.chat-peer__copy { min-width: 0; flex: 1; }
.chat-peer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 2px;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.25;
}
.chat-peer__meta.is-hidden { display: none !important; }
.chat-icon-btn--next {
  background: rgba(42, 212, 199, 0.14);
  border: 1px solid rgba(42, 212, 199, 0.35);
  color: #99f6e4;
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 0 10px;
}
.chat-icon-btn--end {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}
.chat-bubble__time {
  display: block;
  margin-top: 4px;
  font-size: 0.64rem;
  opacity: 0.65;
}
.chat-searching {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 160px;
  color: var(--text-soft);
  text-align: center;
  font-weight: 700;
}
.chat-searching__pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: tropical-pulse-online 1.6s ease infinite;
}

@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Forms / misc */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  font-family: var(--font);
}
.toast {
  background: rgba(8, 22, 38, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}
.loading-screen { color: var(--text-soft); }
.mirror-domains-bar {
  background: rgba(5, 16, 28, 0.7);
  border-bottom: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .online-pill::before,
  .online-pill__dot,
  .casino-reel.is-spinning,
  .casino-reel.is-land,
  .home-card__float,
  .nav-item,
  .home-card,
  .service-card,
  .btn,
  .primary-button,
  .secondary-button {
    animation: none !important;
    transition: none !important;
  }
  .casino-reel.is-spinning { filter: none; transform: none; }
  .home-card:hover,
  .service-card:hover { transform: none; }
}

/* Mobile performance: cut blur/hover cost */
@media (max-width: 899px), (pointer: coarse) {
  .topbar,
  .section-card,
  .chat-shell,
  .video-soon,
  .stars-sale-card,
  .promo-card,
  .product-card,
  .task-card,
  .home-card,
  .service-card,
  .bottom-nav--dock.mobile-nav,
  .online-pill,
  .stat-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .home-card:hover,
  .service-card:hover,
  .nav-item:hover,
  .btn:hover,
  .primary-button:hover,
  .balance-pill:hover {
    transform: none !important;
    filter: none !important;
  }
  .home-card,
  .service-card,
  .nav-item,
  .btn,
  .primary-button,
  .secondary-button,
  .nav-button {
    transition: background 0.12s ease, color 0.12s ease !important;
  }
  .underwater-scene .fish,
  .underwater-scene .bubble,
  .underwater-scene .jellyfish,
  .underwater-scene .seaweed,
  .underwater-scene .caustics,
  .underwater-scene .light-rays {
    display: none !important;
  }
}

/* Site fingerprint — quiet bottom mark only */
.market-pager {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}
.market-pager__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.market-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 24, 36, 0.55);
  color: #e8f4ff;
  font-weight: 700;
  cursor: pointer;
}
.market-page-btn.is-active {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(125, 211, 252, 0.55);
}
.site-canary {
  display: block;
  margin: 0;
  padding: 4px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #6b8494);
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}
.site-canary[data-state="ok"] { opacity: 0.68; }
.site-canary[data-state="warn"],
.site-canary[data-state="bad"] { opacity: 0.45; }
.site-canary-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  background: #7f1d1d;
  color: #fee2e2;
}
.site-canary-banner[data-tone="warn"] {
  background: #78350f;
  color: #ffedd5;
}
@media (max-width: 899px) {
  .site-canary {
    padding-bottom: calc(var(--nav-h, 68px) + 6px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- mirrors.css --- */
.mirror-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.mirror-switch:hover {
  border-color: rgba(56, 189, 248, 0.55);
}

.mirror-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mirror-switch-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed 55%, #4c1d95);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  position: relative;
  flex: 0 0 auto;
}

.mirror-switch-icon i {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.mirror-switch [data-mirror-label] b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-mirror-row {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.topbar .mirror-switch {
  margin-right: 6px;
}

.mirror-card-link {
  display: block;
  margin: 6px 0;
  word-break: break-all;
  color: #7dd3fc;
  text-decoration: none;
}

.mirror-card-link span {
  color: #94a3b8;
  font-size: 12px;
}

.tor-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.tor-guide-modal.is-hidden {
  display: none;
}

.tor-guide-modal__card {
  width: min(520px, 100%);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 20px 18px 16px;
  color: #e2e8f0;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.tor-guide-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}

.tor-guide-modal__card h2 {
  margin: 0 28px 8px 0;
  font-size: 18px;
}

.tor-guide-modal__card p {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
}

.tor-guide-modal__steps {
  margin: 0 0 14px 18px;
  padding: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.tor-guide-modal__links {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.tor-guide-modal__links a {
  color: #7dd3fc;
  font-size: 12px;
  word-break: break-all;
}

.tor-guide-modal__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 720px) {
  .topbar .mirror-switch [data-mirror-label] b {
    font-size: 11px;
  }
}
