/* 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: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Pacifico", "Segoe UI", system-ui, cursive;
}

*, *::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, "Sora", "Manrope", sans-serif);
  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--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: 0.45; pointer-events: none; filter: grayscale(0.35); }

/* 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;
  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-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 { width: 100%; }
.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;
}
.media-card__frame video {
  width: 100%;
  max-height: min(70dvh, 640px);
  height: auto;
  display: block;
  background: #000;
  object-fit: contain;
}
.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); }
}

.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; }

.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;
}
