:root {
  --radius: 26px;
  --font: "Nunito", "Noto Sans Myanmar", "Noto Sans Thai", "Noto Sans SC", "Noto Sans KR", "Noto Sans JP", system-ui, sans-serif;
  --display: "Nunito", "Noto Sans Myanmar", system-ui, sans-serif;
  --tap: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}
html, body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  color-scheme: dark;
  overscroll-behavior: none;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sw-canvas);
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}
body.is-maintenance .sw-canvas-glow {
  display: none;
}

.petal-layer { display: none; }
.petal { display: none; }

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  min-height: 100dvh;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: pan-x pan-y;
  background: transparent;
  box-shadow: 0 0 0 1px var(--stroke), var(--shadow);
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(14px + var(--safe-bottom));
}

.home-screen,
.chat-screen,
.screen:has(.nav) {
  overflow: hidden;
  padding-bottom: 0;
}
.screen-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 18px;
}
.screen-body > .glass-card { min-height: auto; flex-shrink: 0; }

.app-masthead {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px -14px 8px;
  padding: 10px 16px 12px;
  overflow: hidden;
  background: transparent;
  background-color: transparent;
  isolation: isolate;
}
.brand-lockup {
  text-align: center;
  position: relative;
  padding: 12px 0 8px;
}
.logo-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 78%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff8a3d 0%,
    #ff4ecd 25%,
    #8b5cff 50%,
    #3d7eff 75%,
    #ff8a3d 100%
  );
  filter: blur(28px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  transform: translate(-58%, -50%);
  animation: logo-drift 36s ease-in-out infinite;
}
.masthead-logo,
.brand-lockup .brand-logo {
  position: relative;
  z-index: 1;
}
@keyframes logo-drift {
  0%,
  100% { transform: translate(-62%, -50%); }
  50% { transform: translate(-38%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-aura {
    animation: none;
    opacity: 0.1;
    transform: translate(-50%, -50%);
  }
}
.brand-logo,
.masthead-logo {
  display: block;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  background: none;
  background-color: transparent;
  /* ကြွကြွလေး: top-left glass highlight + bottom-right bevel + soft lift */
  filter:
    drop-shadow(-1px -1.5px 0 rgba(255, 255, 255, 0.82))
    drop-shadow(0 -2px 1px rgba(255, 255, 255, 0.38))
    drop-shadow(1px 1.5px 0 rgba(78, 18, 120, 0.34))
    drop-shadow(0 3px 1px rgba(50, 12, 90, 0.2))
    drop-shadow(0 8px 10px rgba(40, 10, 70, 0.2));
}
.brand-logo {
  width: min(88%, 300px);
}
.welcome-hero .brand-logo {
  width: min(86%, 320px);
  filter:
    drop-shadow(-1px -1.5px 0 rgba(255, 255, 255, 0.88))
    drop-shadow(0 -2px 1px rgba(255, 255, 255, 0.42))
    drop-shadow(1px 1.5px 0 rgba(20, 50, 40, 0.28))
    drop-shadow(0 3px 1px rgba(10, 40, 30, 0.18))
    drop-shadow(0 10px 14px rgba(0, 30, 20, 0.22));
}
.masthead-logo {
  width: min(200px, 68vw);
  margin: 0;
  background: none;
  background-color: transparent;
}
body:has(.welcome-screen),
body:has(.auth-screen) {
  color-scheme: dark;
  background: var(--sw-canvas);
}
.app:has(.welcome-screen),
.app:has(.auth-screen) {
  background: transparent;
  box-shadow: none;
  max-width: none;
}
.welcome-screen {
  padding: max(12px, var(--safe-top)) 18px calc(16px + var(--safe-bottom));
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative;
  align-items: center;
}
.welcome-hero {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 0;
  padding: 10px 12px 8px;
  color: #f7fffb;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  text-align: center;
  width: 100%;
}
.welcome-hero .brand-lockup { padding: 8px 0 0; }
.welcome-hero .logo-aura { opacity: 0.28; }
.welcome-hero .brand-logo { width: min(62%, 220px); }
.welcome-hero .login-mark {
  display: block;
  width: min(72%, 280px);
  height: auto;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}
.welcome-hero h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 9vw, 2.8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  height: auto;
  overflow: visible;
  color: #fff;
  text-shadow: 0 4px 18px rgba(55, 13, 100, 0.55);
}
.hero-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 24px rgba(0,40,24,0.18);
  color: #fff;
}
.hero-mark svg { width: 36px; height: 36px; }
.hero-wave { display: none; }
.welcome-card {
  position: relative;
  z-index: 1;
  margin: 8px auto 0;
  width: min(100%, 380px);
  padding: 22px 22px 18px;
  background: rgba(14, 10, 24, 0.38);
  border: 1px solid var(--glass-stroke);
  border-radius: 28px;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--auth-ink);
}
.welcome-card.stack {
  gap: 10px;
  align-content: start;
}
.welcome-title {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}
.welcome-card .field { margin-bottom: 0; }
.welcome-card .field label {
  color: rgba(237, 233, 254, 0.78);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}
.welcome-card .field input {
  background: rgba(8, 6, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--auth-ink);
  caret-color: var(--neon-cyan);
  border-radius: 12px;
}
.welcome-card .field input:focus {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 0 3px rgba(232, 121, 249, 0.22);
}
.welcome-card .field input:-webkit-autofill,
.welcome-card .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-ink);
  box-shadow: 0 0 0 1000px #161022 inset;
}
.welcome-card .lang-switch {
  margin: 0;
  padding: 4px 0 8px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 3;
  background: transparent;
}
.welcome-card .lang-switch span { color: rgba(237, 233, 254, 0.72); }
.welcome-card .lang-switch select {
  background: rgba(8, 6, 16, 0.55);
  color: var(--auth-ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.auth-card .lang-switch {
  margin: 0 0 10px;
  padding: 0;
}
.auth-card .lang-switch span { color: rgba(237, 233, 254, 0.72); }
.auth-card .lang-switch select {
  background: rgba(8, 6, 16, 0.55);
  color: var(--auth-ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.welcome-card .btn.block { border-radius: 14px; }
.welcome-login-btn,
.welcome-card #login-btn {
  background: linear-gradient(90deg, #7c3aed, #ec4899 52%, #e11d48);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.38);
  color: #fff;
}
.welcome-card .btn.secondary {
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.welcome-card .btn.ghost {
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
  color: #f0abfc;
}
.welcome-forgot { align-self: center; }

.register-screen,
.scan-screen {
  padding: max(12px, var(--safe-top)) 18px calc(16px + var(--safe-bottom));
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative;
  align-items: stretch;
}
.auth-topbar {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  margin: 0 auto 8px;
  color: var(--auth-ink);
}
.scan-screen .auth-topbar { width: min(100%, 420px); }
.auth-topbar h2 { color: #fff; }
.auth-topbar .icon-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.auth-card {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(100%, 380px);
  padding: 22px 22px 18px;
  background: rgba(14, 10, 24, 0.38);
  border: 1px solid var(--glass-stroke);
  border-radius: 28px;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--auth-ink);
  flex: 0 0 auto;
}
.scan-screen .auth-card { width: min(100%, 420px); }
.auth-card .field label {
  color: rgba(237, 233, 254, 0.78);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}
.auth-card .btn.block {
  background: var(--sw-cta);
  box-shadow: var(--sw-cta-shadow);
  color: #fff;
  border-radius: 14px;
}
.auth-card .muted,
.auth-card .small { color: var(--sw-muted); }
.auth-card .photo-pick {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 6, 16, 0.35);
}
.muted { color: var(--muted); font-size: 0.95rem; }

.glass-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius);
  backdrop-filter: var(--sw-blur);
  -webkit-backdrop-filter: var(--sw-blur);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 16px;
}

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 6, 16, 0.55);
  color: var(--auth-ink);
  caret-color: var(--neon-cyan);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  color-scheme: dark;
}
.field input::placeholder, .field textarea::placeholder { color: var(--sw-faint); }
.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-ink);
  box-shadow: 0 0 0 1000px #161022 inset;
  transition: background-color 9999s ease-out;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 0 3px rgba(232, 121, 249, 0.22);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 16px;
  min-height: var(--tap);
  min-width: var(--tap);
  color: #fff;
  background: var(--sw-cta);
  box-shadow: var(--sw-cta-shadow);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(124, 58, 237, 0.28); }
.profile-vote-btn:not(:disabled) { opacity: 1; filter: none; color: #fff; background: var(--sw-cta); box-shadow: var(--sw-cta-shadow); }
.profile-vote-btn:disabled { opacity: 1 !important; filter: none !important; color: #fff !important; background: var(--sw-cta) !important; box-shadow: var(--sw-cta-shadow) !important; cursor: pointer !important; }
.btn.secondary {
  color: var(--auth-ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn.block { width: 100%; }
.btn.danger {
  color: #fff;
  background: linear-gradient(180deg, #fb7185, #e11d48);
  box-shadow: 0 8px 16px rgba(225, 29, 72, 0.25);
}
.btn.ghost {
  background: transparent;
  color: var(--green-deep);
  box-shadow: none;
  font-weight: 700;
}

.help-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}
.help-ok {
  color: var(--green-deep);
  font-weight: 700;
  margin: 4px 0 0;
}
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 8px 12px 8px 8px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}
.back-home-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-btn {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  flex-shrink: 0;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: translateY(1px); }

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.topbar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  font-weight: 800;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.group-create-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}
.group-create-label {
  color: var(--auth-ink);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.pill-slot { flex-shrink: 0; max-width: min(58%, 12rem); }
.pill {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--green-deep);
  border: 1px solid rgba(34, 211, 238, 0.35);
  display: inline-block;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.paid-tick {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-weight: 700;
}

.gender-filter {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  min-height: var(--tap);
  padding: 0;
  margin-bottom: 12px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  flex-shrink: 0;
}
.gender-chip {
  appearance: none;
  border: 0;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  min-height: var(--tap);
  min-width: 0;
  padding: 0 8px;
  cursor: pointer;
}
.gender-chip[aria-selected="true"] {
  color: var(--auth-ink);
  border-bottom-color: rgba(255, 255, 255, 0.82);
}
.gender-chip[data-gender="male"][aria-selected="true"] {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
}
.gender-chip[data-gender="female"][aria-selected="true"] {
  color: #f472b6;
  border-bottom-color: #ec4899;
}

.user-list {
  flex: 1;
  overflow: auto;
  min-height: 0;
  min-width: 0;
  padding: 2px 4px 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  min-height: 64px;
  margin-bottom: 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stroke);
  cursor: pointer;
  min-width: 0;
}
.user-row:hover { background: var(--surface); }
.user-row.gender-male,
.user-row.gender-female {
  border-radius: 20px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(14, 10, 24, 0.22));
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.user-row.gender-male {
  border: 1px solid rgba(37, 99, 235, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(37, 99, 235, 0.16),
    0 0 16px rgba(59, 130, 246, 0.28);
}
.user-row.gender-female {
  border: 1px solid rgba(236, 72, 153, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(236, 72, 153, 0.16),
    0 0 16px rgba(236, 72, 153, 0.28);
}
.user-row.gender-male:hover { background: rgba(37, 99, 235, 0.14); }
.user-row.gender-female:hover { background: rgba(236, 72, 153, 0.14); }
.user-row.gender-male .avatar.round {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 3px rgba(37, 99, 235, 0.38),
    0 0 12px rgba(59, 130, 246, 0.36);
}
.user-row.gender-female .avatar.round {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 3px rgba(236, 72, 153, 0.38),
    0 0 12px rgba(236, 72, 153, 0.36);
}
.row-ava {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}
.row-ava .avatar {
  width: 52px;
  height: 52px;
}
.row-ava .ava-on {
  right: 1px;
  bottom: 1px;
}
.avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 6px 14px var(--stroke);
}
.avatar.fallback-male { background: #0a0a0a; }
.avatar.fallback-female { background: #ffc2d4; }
.avatar[data-photo-user] { cursor: pointer; }
.profile-lite { text-align: center; padding-top: 8px; }
.profile-lite-name {
  margin: 10px 0 4px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
}
.profile-lite-roles {
  margin: 0 0 8px;
  line-height: 1.4;
}
.profile-lite-photo + .profile-lite-roles {
  margin-top: 10px;
}
.profile-lite-roles .badge-lv,
.profile-lite-roles .badge-neon {
  font-size: 0.78rem;
}
.profile-lite-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
  margin: -28px auto 4px;
  box-shadow: 0 0 0 4px rgba(14, 10, 24, 0.92), 0 12px 28px rgba(0, 0, 0, 0.35);
}
.profile-lite-photo.fallback-female { background: #ffc2d4; }
.profile-lite-photo.fallback-male { background: #0a0a0a; }
.modal .glass-card:has(.profile-lite) {
  padding-top: 36px;
  border-radius: 28px;
  overflow: visible;
}
.profile-id {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  margin: 0 0 14px;
}
.profile-bio {
  margin: 8px 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.profile-bio strong { color: var(--auth-ink); font-weight: 800; }
.bio-format-toolbar { display: flex; gap: 8px; margin: 0 0 6px; }
.bio-bold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--auth-ink);
  font-size: 1rem;
}
.bio-bold-btn[aria-pressed="true"] {
  border-color: var(--neon-magenta);
  background: rgba(232, 121, 249, .2);
  color: #fff;
}
.bio-rich-editor {
  width: 100%;
  min-height: 96px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(8, 6, 16, .55);
  color: var(--auth-ink);
  caret-color: var(--neon-cyan);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
  outline: none;
  color-scheme: dark;
}
.bio-rich-editor:focus {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 0 3px rgba(232, 121, 249, .22);
}
.bio-rich-editor[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: var(--sw-faint);
  pointer-events: none;
}
.bio-char-count { margin: 4px 0 0; text-align: right; }
.bio-char-count.is-over-limit { color: #f87171; }
.modal .profile-fullscreen-card {
  width: min(100%, 620px);
  min-height: min(88dvh, 760px);
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(24px, 7vw, 54px) clamp(18px, 6vw, 42px) max(20px, var(--safe-bottom));
  border-radius: 32px;
}
.ui-loading-state {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.profile-fullscreen-card .ui-loading-state {
  flex: 1;
  flex-direction: column;
  min-height: 220px;
}
.ui-loading-spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #f1b7ff;
  border-radius: 50%;
  animation: ui-loading-spin .75s linear infinite;
}
@keyframes ui-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ui-loading-spinner { animation: none; }
}
.profile-detail {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  gap: 10px;
}
.profile-detail .profile-lite-photo {
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  margin: 0 auto 6px;
  border-radius: 26px;
  box-shadow: 0 0 0 5px rgba(226, 193, 255, .16), 0 22px 48px rgba(5, 1, 16, .42);
}
.profile-detail .profile-lite-name { font-size: clamp(1.5rem, 6vw, 2.1rem); margin: 0; }
.profile-detail-facts {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 8px 0;
}
.profile-detail-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(226, 193, 255, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  text-align: left;
}
.profile-detail-fact > span { color: var(--sw-muted); font-size: .82rem; }
.profile-detail-fact > strong { text-align: right; overflow-wrap: anywhere; }
.profile-detail-fact.profile-detail-tags { align-items: flex-start; }
.profile-detail-tags > strong { max-width: 78%; }
.profile-detail-tags .profile-glass-tags { justify-content: flex-end; }
.profile-chat-btn { margin-top: 8px; min-height: 52px; }
.me-card .profile-bio {
  text-align: left;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.4;
}
.avatar.ai {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--hero-a), var(--hero-b));
  font-size: 1.4rem;
  overflow: hidden;
}
.avatar.ai img { width: 100%; height: 100%; object-fit: cover; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(237, 233, 254, 0.28);
}
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.meta { flex: 1; min-width: 0; }
.meta .name {
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  overflow-wrap: anywhere;
}
.meta .sub {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta .when {
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}

.fab {
  position: absolute;
  right: 18px;
  bottom: calc(92px + var(--safe-bottom));
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: #fff;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.42);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 9;
  touch-action: manipulation;
}
.fab svg { width: 26px; height: 26px; }
.home-screen { position: relative; }
.upgrade-promo {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px calc(18px + var(--safe-bottom));
  background: rgba(5, 4, 12, 0.55);
}
.upgrade-promo-card {
  position: relative;
  width: min(340px, 100%);
  background: var(--glass-fill);
  border-radius: 24px;
  padding: 28px 20px 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  border: 1px solid var(--glass-stroke);
  backdrop-filter: var(--sw-blur);
  -webkit-backdrop-filter: var(--sw-blur);
  color: var(--auth-ink);
}
.upgrade-promo-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 800;
}
.upgrade-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff8a3d, #ff4ecd);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.upgrade-promo-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--green-deep);
}
.upgrade-promo-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.upgrade-promo-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 3;
  object-fit: contain;
  margin: 0 0 16px;
  border: 1px solid var(--glass-stroke);
  border-radius: 14px;
}
.upgrade-promo-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.upgrade-promo-x svg { width: 18px; height: 18px; }

.nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  margin-top: 4px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 8;
  padding: 4px 0 calc(8px + var(--safe-bottom));
  background: rgba(14, 10, 24, 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--stroke);
}
.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  justify-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 1px;
  min-height: 68px;
  min-width: 0;
  touch-action: manipulation;
}
.nav button.active { color: var(--green-deep); }
.nav .icon-btn { width: var(--tap); height: var(--tap); background: var(--surface); }
.nav button.active .icon-btn {
  background: linear-gradient(145deg, var(--hero-a), var(--hero-b));
  color: #fff;
}

/* Selected controls outside the unchanged Home/Chat/Group/Game/Profile/Help nav. */
button[aria-pressed="true"]:not([data-go]),
button[aria-selected="true"]:not([data-go]),
.btn.active,
.btn.selected,
.btn.is-selected,
.btn.on,
.vote-btn.is-voted {
  color: #fff;
  background: linear-gradient(145deg, rgba(232, 121, 249, 0.48), rgba(34, 211, 238, 0.34));
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 2px rgba(232, 121, 249, 0.18), 0 8px 22px rgba(34, 211, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}
.group-section {
  margin: 16px 4px 8px;
  font-size: 0.95rem;
}
.reward-top-card { gap: 12px; }
.voting-reward-ranks { display: grid; gap: 8px; }
.voting-reward-rank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.voting-reward-rank-row[data-profile-id] { cursor: pointer; }
.voting-reward-rank-row[data-profile-id]:hover, .voting-reward-rank-row[data-profile-id]:focus-visible { outline: none; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.voting-reward-rank-tag, .reward-top-gold-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 30px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 900; letter-spacing: .05em; color: #fff8df; background: linear-gradient(145deg, rgba(255, 211, 93, .7), rgba(152, 91, 16, .62)); border: 1px solid rgba(255, 232, 155, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 5px 14px rgba(188, 125, 20, .25); }
.voting-reward-rank-row.vote-rank-top-2 .voting-reward-rank-tag { color: #f4f8ff; background: linear-gradient(145deg, rgba(224, 235, 248, .65), rgba(91, 109, 135, .58)); border-color: rgba(235, 244, 255, .82); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), 0 5px 14px rgba(175, 196, 220, .2); }
.voting-reward-rank-row.vote-rank-top-3 .voting-reward-rank-tag { color: #fff0e5; background: linear-gradient(145deg, rgba(221, 145, 103, .68), rgba(116, 55, 33, .62)); border-color: rgba(245, 183, 145, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 5px 14px rgba(163, 83, 54, .22); }
.voting-reward-rank-copy { display: flex; min-width: 0; justify-content: space-between; gap: 8px; align-items: baseline; }
.voting-reward-rank-copy strong, .voting-reward-rank-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voting-reward-rank-copy small { color: var(--muted); }
.voting-reward-rank-days { color: var(--auth-ink); font-size: .78rem; }
.reward-top-profile-wrap { display: grid; gap: 8px; }
.reward-top-gold-tag { justify-self: start; min-width: 84px; min-height: 34px; font-size: .82rem; background: linear-gradient(145deg, rgba(255, 224, 112, .86), rgba(172, 100, 13, .74)); color: #3d2300; }
.reward-top-badge,
.reward-top-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(232, 121, 249, 0.42), rgba(34, 211, 238, 0.28));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.reward-top-profile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.reward-top-profile:hover,
.reward-top-profile:focus-visible {
  background: linear-gradient(145deg, rgba(232, 121, 249, 0.28), rgba(34, 211, 238, 0.2));
  outline: none;
}
.reward-top-avatar { width: 56px; height: 56px; }
.reward-top-copy { min-width: 0; display: grid; gap: 3px; }
.reward-top-copy strong,
.reward-top-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward-top-copy small { color: var(--muted); }
.group-invite { margin-bottom: 10px; }
.group-invite .user-row { border: 0; padding: 0; background: transparent; }
.home-me {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: var(--tap);
  min-height: var(--tap);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.home-me-ava {
  width: 36px;
  height: 36px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.chat-head .icon-btn,
.chat-head .chat-tool { width: var(--tap); height: var(--tap); flex-shrink: 0; }
.chat-head .avatar { width: 36px; height: 36px; }
.chat-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}
.messages {
  flex: 1;
  overflow: auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 2px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.bubble-row.me { justify-content: flex-end; }
.bubble-row.them { justify-content: flex-start; }
.bubble-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 78%;
}
.bubble-wrap > .bubble { max-width: 100%; }
.bubble-ava {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.bubble-ava .avatar {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.bubble-ava.is-empty { visibility: hidden; }
.bubble {
  max-width: 78%;
  padding: 8px 14px;
  border-radius: 22px;
  line-height: 1.32;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.bubble.me {
  align-self: flex-end;
  background: linear-gradient(165deg, var(--cta-a) 0%, var(--cta-b) 58%, var(--cta-c) 140%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.34);
}
.bubble.them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--auth-ink);
  border: 1px solid var(--glass-stroke);
  border-bottom-left-radius: 6px;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.bubble.ai {
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.28), rgba(14, 10, 24, 0.5));
  border: 1px solid rgba(232, 121, 249, 0.32);
  color: var(--auth-ink);
}
.chat-screen .bubble:not(.media):not(.system) {
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(9px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.12) !important;
}
.bubble img {
  max-width: 100%;
  border-radius: 16px;
  display: block;
}
.locked-photo {
  width: min(180px, 70vw);
  height: 120px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  background: var(--stroke);
  border: 1px dashed var(--stroke);
  cursor: pointer;
}
.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 0;
  position: sticky;
  bottom: 0;
  z-index: 8;
  padding: 8px 12px calc(10px + var(--safe-bottom));
  background: rgba(14, 10, 24, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.composer-main {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.saka-faq {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.saka-faq-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.saka-faq-category {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.saka-faq-chips {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  max-height: 156px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.saka-faq-chip {
  appearance: none;
  border: 1px solid rgba(232, 121, 249, 0.32);
  border-radius: 999px;
  background: rgba(8, 6, 16, 0.45);
  color: var(--auth-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 10px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.saka-faq-chip:active {
  background: rgba(232, 121, 249, 0.2);
  border-color: var(--neon-magenta);
}
.composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 24px;
  max-height: 120px;
  resize: none;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--auth-ink);
  caret-color: var(--neon-cyan);
  padding: 8px 4px;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  outline: none;
}
.composer textarea::placeholder { color: var(--muted); }
.upgrade-banner {
  background: var(--glass-fill);
  border: 1px solid rgba(232, 121, 249, 0.32);
  border-radius: 16px;
  padding: 12px;
  margin: 8px 12px 0;
  text-align: center;
  backdrop-filter: var(--sw-blur);
  -webkit-backdrop-filter: var(--sw-blur);
  color: var(--auth-ink);
}

.avatar.round {
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.28);
  overflow: hidden;
  background-clip: padding-box;
}
.chat-tool {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.chat-tool svg { width: 22px; height: 22px; }
.chat-tool:active { background: var(--surface); }
.chat-tool.live { color: var(--danger); background: rgba(225, 29, 72, .1); }
.chat-tool[hidden],
.chat-send[hidden] { display: none !important; }
.composer-plus {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sw-muted);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.composer-plus svg { width: 20px; height: 20px; }
.composer-mic {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sw-muted);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.composer-mic svg { width: 20px; height: 20px; }
.composer-mic.live { color: #b56cff; background: rgba(181, 108, 255, .14); box-shadow: 0 0 0 3px rgba(181, 108, 255, .12); }
.plus-menu {
  position: absolute;
  left: 12px;
  bottom: calc(64px + var(--safe-bottom));
  background: var(--glass-strong);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: var(--sw-blur);
  -webkit-backdrop-filter: var(--sw-blur);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  min-width: 160px;
  z-index: 10;
}
.plus-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  min-height: var(--tap);
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  border-radius: 12px;
  cursor: pointer;
}
.plus-menu button:active { background: var(--surface); }
.chat-send {
  appearance: none;
  border: 0;
  background: var(--sw-cta);
  color: #fff;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.38);
}
.chat-send svg { width: 18px; height: 18px; }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }
.composer-pill {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-stroke);
  border-radius: 999px;
  background: rgba(8, 6, 16, 0.62);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  min-height: 48px;
  padding: 4px 6px 4px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.chat-ava {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.chat-ava .avatar { width: 36px; height: 36px; }
.ava-on {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(237, 233, 254, 0.28);
  border: 2px solid var(--sw-deep);
}
.ava-on.on { background: var(--ok); box-shadow: 0 0 6px var(--ok); }

.chat-screen {
  padding: 0;
  background:
    radial-gradient(720px 280px at 50% -8%, rgba(124, 58, 237, 0.28), transparent 58%),
    radial-gradient(520px 260px at 110% 100%, rgba(34, 211, 238, 0.12), transparent 52%),
    transparent;
}
.chat-screen .screen-body { padding: 0; }
.chat-screen .chat-head {
  margin: 0;
  padding: 10px 12px 8px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(14, 10, 24, 0.55), rgba(14, 10, 24, 0.08));
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: none;
}
.chat-screen .chat-head .chat-tool {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--auth-ink);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.chat-screen .chat-head .chat-tool:not(:has(svg)) {
  width: auto;
  min-width: var(--tap);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.72rem;
}
.chat-screen .chat-head .avatar {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.28);
}
.chat-screen .chat-head .meta .name {
  display: block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-screen .chat-head .meta .sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.chat-screen .messages {
  padding: 10px 12px 8px;
  gap: 2px;
}
.chat-screen .bubble-row:has(.bubble.first),
.chat-screen .bubble-row:has(.bubble.alone) { margin-top: 8px; }
.chat-screen .bubble-row:first-child { margin-top: 0; }
.chat-screen .bubble.alone,
.chat-screen .bubble.first { margin-top: 2px; }
.chat-screen .bubble.first.me,
.chat-screen .bubble.alone.me { border-radius: 20px 20px 6px 20px; }
.chat-screen .bubble.mid.me { border-radius: 20px 6px 6px 20px; }
.chat-screen .bubble.last.me { border-radius: 20px 6px 20px 20px; }
.chat-screen .bubble.first.them,
.chat-screen .bubble.alone.them { border-radius: 20px 20px 20px 6px; }
.chat-screen .bubble.mid.them { border-radius: 6px 20px 20px 6px; }
.chat-screen .bubble.last.them { border-radius: 6px 20px 20px 20px; }
.chat-screen .bubble.media {
  padding: 2px;
  background: transparent;
  max-width: 72%;
  box-shadow: none;
}
.chat-screen .bubble.media.me { background: transparent; }
.chat-screen .bubble.media img { border-radius: 18px; }
.chat-screen .bubble.system {
  max-width: 86%;
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-stroke);
  color: var(--sw-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.chat-time {
  align-self: center;
  margin: 10px 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.bubble-time {
  display: block;
  align-self: flex-end;
  margin: 3px 8px 0;
  color: var(--sw-faint);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}
.bubble-row.me .bubble-time { color: var(--sw-muted); }
.bubble-row.them .bubble-time { color: var(--sw-faint); }
.chat-screen .typing {
  min-height: 1.1em;
  padding: 0 18px 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.chat-screen .composer {
  gap: 8px;
  padding: 8px 12px calc(14px + var(--safe-bottom));
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
}
.chat-screen audio {
  width: 210px;
  max-width: 100%;
  height: 36px;
}
.chat-screen .host-earn {
  margin: 8px 12px 0;
  border-radius: 14px;
  font-size: 0.78rem;
  text-align: center;
}
.chat-screen .badge-neon,
.chat-screen .badge-lv { font-size: 0.62rem; }

.id-doc-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: var(--tap);
  padding: 4px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: var(--surface);
}
.id-doc-chip {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  min-height: calc(var(--tap) - 8px);
  cursor: pointer;
}
.id-doc-chip[aria-selected="true"] {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(167, 139, 250, 0.42));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2), 0 4px 12px rgba(91, 33, 182, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.id-doc-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.id-doc-photos.is-passport { grid-template-columns: 1fr; }
.id-doc-photos .photo-pick { margin-bottom: 0; }
.photo-pick {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px;
  min-height: var(--tap);
  border-radius: 18px;
  border: 1px dashed var(--stroke);
  cursor: pointer;
  margin-bottom: 12px;
}
.photo-pick img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }

.scan-stage { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 24px; }
.scan-stage video, .scan-stage canvas {
  width: 100%;
  max-height: min(52dvh, 420px);
  border-radius: 24px;
  background: #000;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.face-guide {
  position: absolute;
  inset: 8% 16% 22%;
  border: 3px solid rgba(34, 211, 238, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(5, 4, 12, 0.55);
  pointer-events: none;
}
.scan-hint {
  text-align: center;
  margin-top: 12px;
  font-weight: 800;
}

.quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
}
.quote-card > span,
.quote-card > strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.quote-card > span { line-height: 1.35; }
.quote-card strong {
  font-family: var(--display);
  font-size: clamp(1rem, 5vw, 1.4rem);
  line-height: 1.2;
  color: var(--green-deep);
  text-align: right;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%);
  background: rgba(14, 10, 24, 0.92);
  color: #f7fffb;
  padding: 10px 14px;
  border-radius: 14px;
  z-index: 50;
  max-width: min(90vw, 420px);
  width: max-content;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 12, 0.55);
  place-items: center;
  align-items: safe center;
  z-index: 40;
  padding: max(12px, var(--safe-top)) max(12px, var(--safe-right)) max(12px, var(--safe-bottom)) max(12px, var(--safe-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal:not([hidden]) { display: grid; }
body.profile-modal-open #app { visibility: hidden; }
[hidden] { display: none !important; }
.modal[hidden],
.toast[hidden],
.tour[hidden],
.plus-menu[hidden],
.upgrade-promo[hidden] {
  display: none !important;
}
.modal .glass-card {
  max-width: 420px;
  width: 100%;
  max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tour {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.tour-spot {
  position: absolute;
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(5, 4, 12, 0.72), 0 0 0 3px var(--green);
  pointer-events: none;
}
.tour-card {
  position: absolute;
  pointer-events: auto;
  width: min(320px, calc(100vw - 32px - var(--safe-left) - var(--safe-right)));
}
.tour-arrow {
  position: absolute;
  font-size: 28px;
  pointer-events: none;
}

.hidden-file { display: none; }

body.is-maintenance {
  background: #000;
  overflow: hidden;
}
body.is-maintenance .app,
body.is-maintenance .petal-layer,
body.is-maintenance #toast,
body.is-maintenance #modal,
body.is-maintenance #tour {
  visibility: hidden !important;
  pointer-events: none !important;
}

#maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(60% 45% at 20% 15%, rgba(219, 126, 255, .28), transparent 70%),
    radial-gradient(55% 40% at 85% 85%, rgba(96, 165, 250, .22), transparent 70%),
    var(--sw-canvas);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  pointer-events: auto;
  overflow-y: auto;
}
#maintenance-screen[hidden] { display: none !important; }
.maintenance-card {
  width: min(100%, 440px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 24px 26px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  animation: maintenance-rise .6s ease-out both;
}
#maintenance-screen img {
  width: min(46vw, 150px);
  height: auto;
  background: transparent;
}
.maintenance-brand {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.maintenance-brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 5.5vw, 1.8rem);
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 0 24px rgba(219, 126, 255, .55);
}
.maintenance-title {
  margin: 4px 0 0;
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
}
#maintenance-screen p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(250, 245, 255, .86);
}
.maintenance-note {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .14);
  text-align: start;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.maintenance-note[hidden] { display: none; }
.maintenance-note b { font-size: .78rem; letter-spacing: .04em; color: rgba(233, 213, 255, .9); }
.maintenance-dots { display: flex; gap: 8px; margin-top: 4px; }
.maintenance-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e9d5ff;
  animation: maintenance-blink 1.2s ease-in-out infinite;
}
.maintenance-dots span:nth-child(2) { animation-delay: .2s; }
.maintenance-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes maintenance-blink { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes maintenance-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .maintenance-card, .maintenance-dots span { animation: none; }
}
.small { font-size: 0.82rem; }
.center { text-align: center; }
.stack { display: grid; gap: 10px; }
.badge-lv {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #047857;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-color: #047857;
  background-image: linear-gradient(90deg, #047857, #0f766e, #4d7c0f, #047857);
  background-size: 280% 100%;
  animation: neon-run 2.2s linear infinite;
  filter: none;
  text-shadow: none;
  box-shadow: none;
  vertical-align: middle;
}
.badge-neon {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #9d174d;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-color: #be185d;
  background-image: linear-gradient(90deg, #be185d, #0f766e, #4d7c0f, #c2410c, #6d28d9, #be185d);
  background-size: 280% 100%;
  animation: neon-run 2.2s linear infinite;
  filter: none;
  text-shadow: none;
  box-shadow: none;
  vertical-align: middle;
}
.badge-neon[data-badge="Admin"],
.badge-neon[data-badge="guide"] {
  border-color: #9d174d;
  background-image: linear-gradient(90deg, #be185d, #db2777, #0e7490, #be185d);
}
.badge-neon[data-badge="officer"] {
  border-color: #92400e;
  background-image: linear-gradient(90deg, #b45309, #ca8a04, #a16207, #b45309);
}
.badge-neon[data-badge="sponsor"] {
  border-color: #047857;
  background-image: linear-gradient(90deg, #047857, #0f766e, #4d7c0f, #047857);
}
.badge-neon[data-badge="VVIP"] {
  border-color: #6b21a8;
  background-image: linear-gradient(90deg, #7e22ce, #be185d, #b45309, #7e22ce);
}
.badge-neon[data-badge="host"],
.badge-neon.badge-host {
  border-color: #1d4ed8;
  background-image: linear-gradient(90deg, #1d4ed8, #0369a1, #2563eb, #1d4ed8);
}
@keyframes neon-run {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.badge-lv,
.badge-neon,
.profile-gender-tag {
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 10px var(--badge-glow, rgba(52, 211, 153, 0.38));
}
.badge-lv::after,
.badge-neon::after,
.profile-gender-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02) 62%);
}
.badge-lv { --badge-glow: rgba(52, 211, 153, 0.42); }
.badge-neon { --badge-glow: rgba(236, 72, 153, 0.42); }
.badge-neon[data-badge="Admin"],
.badge-neon[data-badge="guide"] { --badge-glow: rgba(232, 121, 249, 0.48); }
.badge-neon[data-badge="host"],
.badge-neon.badge-host { --badge-glow: rgba(34, 211, 238, 0.48); }
.badge-neon[data-badge="officer"] { --badge-glow: rgba(251, 191, 36, 0.4); }
.badge-neon[data-badge="sponsor"] { --badge-glow: rgba(52, 211, 153, 0.42); }
.badge-neon[data-badge="VVIP"] { --badge-glow: rgba(167, 139, 250, 0.48); }
.typing { font-size: 0.78rem; opacity: .7; min-height: 1em; }
.host-earn {
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.32);
  color: var(--neon-cyan);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.host-earn.dim { opacity: .75; }
.ad-banner {
  margin: 0 0 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  min-height: 72px;
  max-width: 100%;
  flex-shrink: 0;
  background: var(--surface);
}
.ad-banner img {
  display: block;
  width: 100%;
  height: 92px;
  max-height: 28vw;
  min-height: 72px;
  object-fit: cover;
}
.income-demo { margin: 8px 0 12px; }
.income-demo p { margin: 0 0 8px; font-size: .92rem; line-height: 1.45; }
.income-demo .host-earn { margin: 0 0 10px; font-weight: 650; }
.bubble.system {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-stroke);
  color: var(--sw-muted);
  text-align: center;
  max-width: 92%;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.system-message-delete {
  margin-left: 8px;
  border: 0;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(251, 113, 133, 0.18);
  color: var(--danger);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  vertical-align: middle;
}
.system-message-delete:hover { background: rgba(251, 113, 133, 0.3); }
.sys-note { font-size: .86rem; }
.ledger { display: grid; gap: 6px; }
.ledger-row {
  font-size: 0.82rem;
  padding: 8px 10px;
  min-height: var(--tap);
  border-radius: 10px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

button:disabled, .btn:disabled, .icon-btn:disabled, .chat-tool:disabled, .chat-send:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.glass-card { min-width: 0; max-width: 100%; }
.bubble { overflow-wrap: anywhere; word-break: break-word; }

.me-name {
  font-family: var(--display);
  font-size: 1.55rem;
  overflow-wrap: anywhere;
}
.me-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  text-align: center;
}
.me-identity .me-ava {
  display: block;
  margin: 0 auto;
}
.me-identity .me-name {
  text-align: center;
}
.me-ava {
  width: 96px;
  height: 96px;
}
.me-card .avatar.round,
.edit-photo .avatar.round {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 10px 24px var(--stroke);
}
.me-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.me-actions .btn {
  width: 100%;
  padding: 10px 8px;
  font-size: 0.88rem;
}
.admin-coin-balance {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}
.admin-coin-balance strong { white-space: nowrap; }
.admin-coin-modal { width: min(100%, 420px); }
.admin-coin-modal .field input { width: 100%; }
.admin-coin-modal .me-actions { margin-top: 12px; }
.me-secondary-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.me-tags {
  text-align: center;
}
.me-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  padding: 4px 0 2px;
}
.me-stat {
  text-align: center;
}
.me-stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--auth-ink);
  line-height: 1.15;
}
.me-stat span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sw-muted);
}

.profile-screen {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}
.profile-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.profile-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.profile-orb-a {
  width: 180px;
  height: 180px;
  left: -70px;
  top: 18%;
  background: radial-gradient(circle at 32% 28%, rgba(232, 121, 249, 0.55), rgba(124, 58, 237, 0.12) 72%);
}
.profile-orb-b {
  width: 160px;
  height: 160px;
  right: -60px;
  top: 8%;
  background: radial-gradient(circle at 40% 36%, rgba(34, 211, 238, 0.38), rgba(124, 58, 237, 0.1) 74%);
}
.profile-orb-c {
  width: 22px;
  height: 22px;
  right: 28px;
  top: 36%;
  filter: blur(0.4px);
  background: var(--neon-magenta);
  box-shadow: 0 0 16px var(--neon-magenta);
}
.profile-screen .screen-body,
.profile-screen .topbar,
.profile-screen .glass-card,
.profile-screen .nav {
  position: relative;
  z-index: 1;
}
.profile-screen .topbar .icon-btn,
.glass-orb {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.profile-screen .me-card {
  margin-top: 36px;
  padding: 16px 16px 18px;
  border-radius: 28px;
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(70, 30, 90, 0.16));
}
.profile-screen .me-identity .me-ava {
  width: 112px;
  height: 112px;
  margin-top: -72px;
  box-shadow:
    0 0 0 4px rgba(14, 10, 24, 0.94),
    0 0 0 6px rgba(34, 211, 238, 0.35),
    0 14px 28px rgba(0, 0, 0, 0.35);
}
.profile-screen .me-actions .btn.block {
  grid-column: 1 / -1;
}
.host-code-frame,
.host-balance-block {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(14, 10, 24, 0.28));
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.22);
}
.host-code-frame {
  width: fit-content;
  max-width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(34, 211, 238, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.22);
}
.host-code-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sw-muted);
}
.host-code-digits,
#host-code-value {
  display: block;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.host-balance-block {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(232, 121, 249, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.22);
}
.host-balance-amount {
  margin: 0;
  display: block;
  font-size: 1.02rem;
  color: var(--sw-ink);
}
.host-balance-amount strong {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.host-balance-meta {
  margin: 0;
  display: block;
  font-size: 0.82rem;
  color: var(--sw-muted);
}
@media (prefers-reduced-motion: reduce) {
  .profile-orb { filter: blur(12px); }
}
.settings-screen {
  overflow: hidden;
  padding-bottom: 0;
  font-size: 0.8rem;
}
.settings-screen .screen-body {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(10px + var(--safe-bottom));
}
.settings-screen .topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  margin-bottom: 8px;
  padding-bottom: 2px;
  background: rgba(14, 10, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.settings-screen .topbar h2 {
  font-size: 1.05rem;
}
.settings-screen .topbar h2.upgrade-history-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  line-height: 1.15;
}
.upgrade-history-paid-until {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(74, 222, 128, .38);
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  color: #c9ffd9;
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}
.upgrade-history-paid-label { opacity: .78; }
.settings-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.settings-earnings-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.settings-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  isolation: isolate;
  flex: 0 0 auto;
  margin-bottom: 0;
  background: var(--glass-fill);
  border: 1px solid var(--stroke);
  backdrop-filter: var(--sw-blur);
  -webkit-backdrop-filter: var(--sw-blur);
  border-radius: 14px;
  overflow: visible;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.settings-row + .settings-row { border-top: 1px solid var(--stroke); }
.settings-row:active { background: var(--surface); }
.upgrade-history-date-filter { margin: 10px 0; }
.upgrade-history-date-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--glass-stroke);
  border-radius: 14px;
  background: var(--glass-fill);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.upgrade-history-date-icon { display: inline-flex; width: 21px; height: 21px; color: var(--green); }
.upgrade-history-date-icon svg,
.upgrade-history-date-chevron svg { width: 20px; height: 20px; }
.upgrade-history-date-value { flex: 1; }
.upgrade-history-date-chevron { display: inline-flex; opacity: .68; transition: transform .16s ease; }
.upgrade-history-date-chevron.is-open { transform: rotate(90deg); }
.upgrade-history-calendar {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--glass-stroke);
  border-radius: 20px;
  background: var(--glass-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.upgrade-history-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.upgrade-history-month-head h3 { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: .95rem; }
.upgrade-history-month-head .icon-btn:disabled { opacity: .35; cursor: default; }
.upgrade-history-prev-icon { display: inline-flex; transform: rotate(180deg); }
.upgrade-history-weekdays,
.upgrade-history-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.upgrade-history-weekday { min-width: 0; padding: 4px 0; color: var(--sw-muted); text-align: center; font-size: .67rem; overflow: hidden; text-overflow: ellipsis; }
.upgrade-history-day-empty,
.upgrade-history-day { aspect-ratio: 1; min-width: 0; }
.upgrade-history-day {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  touch-action: manipulation;
}
.upgrade-history-day.has-history { border-color: rgba(217, 184, 120, .38); background: rgba(217, 184, 120, .1); }
.upgrade-history-day.has-history::after { position: absolute; right: 5px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); content: ''; }
.upgrade-history-day.is-selected { border-color: var(--green); background: rgba(145, 165, 138, .28); box-shadow: inset 0 0 0 1px rgba(145, 165, 138, .18); }
.upgrade-history-day.is-selected::after { background: var(--ink); }
.upgrade-history-calendar-actions { display: flex; justify-content: center; margin-top: 10px; }
.upgrade-history-calendar-actions button { padding: 6px 12px; border: 1px solid var(--glass-stroke); border-radius: 999px; background: transparent; color: var(--green); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.upgrade-history-selected-date { margin: 10px 0 0; color: var(--sw-muted); text-align: center; font-size: .75rem; }
.upgrade-history-results > h3 { margin: 10px 2px 8px; font-size: .9rem; }
.upgrade-history-list { display: grid; gap: 8px; padding-bottom: 10px; }
.upgrade-history-entry { min-width: 0; padding: 11px 12px; border: 1px solid var(--glass-stroke); border-radius: 16px; background: rgba(255, 255, 255, .045); }
.upgrade-history-entry-head,
.upgrade-history-entry-meta,
.upgrade-history-entry-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upgrade-history-entry-head { font-size: .85rem; }
.upgrade-history-status { flex: 0 0 auto; color: var(--gold); font-size: .72rem; }
.upgrade-history-entry-meta { margin-top: 5px; color: var(--sw-muted); font-size: .75rem; }
.upgrade-history-entry-meta > span { min-width: 0; overflow-wrap: anywhere; }
.upgrade-history-entry-meta b { flex: 0 0 auto; color: var(--ink); text-align: right; }
.upgrade-history-entry-foot { margin-top: 6px; color: var(--sw-faint); font-size: .69rem; }
.upgrade-history-entry-foot > span { text-align: right; }
.settings-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--green-deep);
}
.settings-ico svg { width: 18px; height: 18px; }
.settings-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.settings-chev {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.4;
  color: var(--ink);
}
.settings-chev svg { width: 20px; height: 20px; }
.settings-row.danger {
  color: var(--danger);
  font-weight: 800;
}
.settings-note {
  padding: 10px 12px 12px;
  position: relative;
  z-index: 0;
}
.settings-note-title {
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.settings-note p {
  margin: 0 0 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.settings-note p:last-child { margin-bottom: 0; }
.settings-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--muted);
}
.blocked-list { display: grid; gap: 8px; }
.blocked-row { cursor: default; }
.blocked-row .unblock {
  flex-shrink: 0;
  width: auto;
  padding: 8px 12px;
  font-size: 0.82rem;
}
.edit-photo {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 4px auto 8px;
}
.edit-photo-change {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-deep);
}
.topbar .btn.ghost {
  width: auto;
  min-width: var(--tap);
  padding: 8px 12px;
  color: var(--green-deep);
}
.lang-switch {
  display: grid;
  gap: 6px;
  text-align: left;
}
.lang-switch span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.lang-switch select {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 6, 16, 0.55);
  color: var(--auth-ink);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
}
.settings-lang {
  margin-bottom: 0;
  padding: 8px 12px 10px;
  overflow: visible;
}
.settings-lang-help {
  display: block;
  position: static;
  z-index: 0;
  margin: 6px 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.settings-screen .lang-switch { gap: 4px; }
.settings-screen .lang-switch span { font-size: 0.68rem; letter-spacing: 0.06em; }
.settings-screen .lang-switch select {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 16px;
  border-radius: 12px;
}
.settings-screen .nav {
  position: relative;
  z-index: 8;
}

@media (max-width: 399px) {
  .row-2 { grid-template-columns: 1fr; }
  .user-row .avatar,
  .row-ava,
  .row-ava .avatar { width: 48px; height: 48px; }
  .user-row.gender-male,
  .user-row.gender-female { border-width: 1px; }
  .composer { gap: 6px; }
  .chat-head .meta .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-height: 800px) {
  .welcome-hero {
    min-height: 0;
    padding: 10px 16px 26px;
  }
  .welcome-hero .brand-logo { width: min(56%, 200px); }
}

@media (max-height: 700px) {
  .welcome-hero {
    padding: 8px 16px 22px;
  }
  .welcome-hero .brand-logo { width: min(50%, 180px); }
  .hero-wave { height: 26px; }
  .welcome-card { gap: 6px; }
  .welcome-card.stack { gap: 6px; }
  .welcome-card .field label { margin-bottom: 4px; }
}

@media (min-width: 900px) {
  body {
    padding: 24px 0;
    overflow: auto;
  }
  .app {
    height: min(860px, calc(100dvh - 48px));
    min-height: 0;
    max-height: calc(100dvh - 48px);
    border-radius: 32px;
    overflow: hidden;
    padding-top: 0;
  }
  .welcome-hero { border-radius: 32px 32px 0 0; }
  body:has(.welcome-screen),
  body:has(.auth-screen) {
    padding: 0;
  }
  .app:has(.welcome-screen),
  .app:has(.auth-screen) {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    max-width: none;
    border-radius: 0;
  }
  .app:has(.welcome-screen) .welcome-hero { border-radius: 0; }
}

.payment-details {
  gap: 8px;
  text-align: left;
  background: rgba(255,255,255,.06);
}
.payment-qr,
.admin-payment-qr {
  display: block;
  width: min(220px, 100%);
  max-height: 220px;
  object-fit: contain;
  border-radius: 16px;
  margin: 4px auto;
  background: #fff;
  padding: 8px;
}

/* Keep neon shake/glow strictly inside the rounded frame silhouette. */
.user-row.gender-male,
.user-row.gender-female,
.user-row.gender-male::before,
.user-row.gender-female::before,
.user-row.gender-male::after,
.user-row.gender-female::after {
  overflow: hidden;
  border-radius: 20px;
}
.user-row.gender-male,
.user-row.gender-female {
  isolation: isolate;
  clip-path: inset(0 round 20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}
.user-row.gender-male::before,
.user-row.gender-female::before,
.user-row.gender-male::after,
.user-row.gender-female::after {
  content: none !important;
}
.swipe-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 10px;
}
.swipe-shell .user-row { margin-bottom: 0; transition: transform .2s ease; }
.swipe-actions {
  position: absolute;
  inset: 0 0 0 auto;
  width: 286px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 7px;
  background: rgba(150, 20, 74, .35);
  transform: translateX(286px);
  transition: transform .2s ease;
}
.swipe-shell.swiped .user-row { transform: translateX(-286px); }
.swipe-shell.swiped .swipe-actions { transform: translateX(0); }
.swipe-actions .btn { min-width: 62px; padding: 7px 8px; font-size: .68rem; }

.nav .icon-btn { position: relative; }
.nav-noti-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid rgba(14, 10, 24, .9);
  box-shadow: 0 0 10px rgba(239, 68, 68, .8);
}
.about-app { text-align: left; line-height: 1.7; }
.about-app h3 { margin-top: 0; color: #f0abfc; }
.about-app h4 { margin-bottom: 6px; color: #8be9fd; }
.about-app p { margin: 10px 0; }
.about-app ul { padding-left: 22px; margin: 8px 0 14px; }
.about-app li { margin: 8px 0; }
html, body, #app, #admin-app, button, .btn, .nav, .user-row, .settings-row {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
:where(button, a, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #67e8f9 !important;
  outline-offset: 3px !important;
}
input, textarea, select { -webkit-tap-highlight-color: transparent; }

/* Mobile-only product frame: keep the app phone-sized even on desktop browsers. */
@media (min-width: 481px) {
  body { padding: 0; overflow: hidden; }
  .app,
  .app:has(.welcome-screen),
  .app:has(.auth-screen) {
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    padding-top: var(--safe-top);
  }
  .app:has(.welcome-screen) .welcome-hero,
  .app:has(.auth-screen) .welcome-hero { border-radius: 0; }
}

/* Consistent rounded glass frames across auth and app surfaces. */
.auth-card,
.welcome-card,
.glass-card,
.upgrade-promo-card,
.payment-details,
.commission-pay,
.host-earnings-card,
.group-invite,
.me-card,
.tour-card,
.quote-card,
.screen-body > .card,
.screen-body > .panel,
.screen-body > .notice {
  border-radius: 28px;
}
.auth-screen .auth-card {
  border-radius: 32px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 28px rgba(124, 58, 237, 0.14);
}
.user-row.gender-male,
.user-row.gender-female,
.group-card,
.chat-row,
.inbox-row,
.settings-row,
.profile-row {
  border-radius: 22px;
}

.group-audio-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.group-audio-slot {
  min-width: 0;
  min-height: 76px;
  border: 1px solid var(--glass-stroke);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  overflow: hidden;
}
.group-audio-slot img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.group-audio-slot span { max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.group-audio-slot.empty { border-style: dashed; color: var(--sw-muted); }
.group-audio-slot.empty span { font-size: 1.6rem; font-weight: 700; }
.group-audio-requests, .group-audio-invites { margin-top: 10px; display: grid; gap: 7px; }
.group-audio-request, .group-audio-member { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; }
.group-audio-request > span, .group-audio-member > span { flex: 1; min-width: 90px; }
.group-audio-request .btn, .group-audio-member .btn { min-height: 32px; padding: 5px 10px; font-size: .72rem; }
.group-audio-slot-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.group-audio-slot-actions .btn { min-height: 26px; padding: 3px 7px; font-size: .62rem; }
.group-audio-end { color: var(--danger); font-size: 1.25rem; line-height: 1; }


/* Keep long Burmese Profile actions inside the modal's scrollable glass frame. */
.modal .glass-card:has(.profile-lite) {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#photo-close {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* ---- Group pending deletion + re-create fee (glass) ---- */
.group-pending-banner {
  margin: 8px 12px 4px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #fff;
  text-align: left;
  background: linear-gradient(160deg, rgba(255, 170, 90, .22), rgba(255, 80, 120, .10));
  border: 1px solid rgba(255, 200, 150, .38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.me-card .group-pending-banner { margin: 6px 0 0; width: 100%; box-sizing: border-box; }
.group-pending-banner .gpb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-pending-banner .gpb-ico { font-size: 1.15rem; line-height: 1; }
.group-pending-banner .gpb-left { margin-left: auto; font-size: .86rem; opacity: .95; }
.group-pending-banner .gpb-left b { font-variant-numeric: tabular-nums; color: #ffd59a; }
.group-pending-banner p { margin: 6px 0 0; font-size: .82rem; line-height: 1.45; opacity: .86; }
.group-pending-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; white-space: nowrap; color: #ffe2b8;
  background: rgba(255, 160, 80, .16);
  border: 1px solid rgba(255, 190, 130, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.group-pending-pill b { font-variant-numeric: tabular-nums; }
.group-fee-note {
  padding: 10px 12px; border-radius: 14px; font-size: .86rem;
  background: rgba(255, 215, 120, .12); border: 1px solid rgba(255, 215, 120, .32);
}
.group-fee-card { max-width: 360px; }
.group-fee-sheet { display: grid; justify-items: center; gap: 8px; text-align: center; }
.group-fee-sheet h3 { margin: 0; }
.group-fee-sheet p { margin: 0; font-size: .92rem; line-height: 1.5; opacity: .9; }
.group-fee-sheet .gfs-ico { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(255, 200, 80, .45)); }
.group-fee-sheet .gfs-balance {
  padding: 6px 12px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
}
.group-fee-sheet .gfs-balance.short { color: #ffb3b3; border-color: rgba(255, 120, 120, .45); }
.group-fee-sheet .gfs-err { color: #ffb3b3; font-size: .86rem; }
.group-fee-sheet .gfs-actions { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.group-fee-sheet .gfs-actions .btn { flex: 1; }

.group-chat-screen { position: relative; background: #160f24; }
.group-chat-screen > * { position: relative; z-index: 1; }
.glass-icon { border:1px solid rgba(255,255,255,.38); border-radius:14px; padding:8px 14px; color:#fff; background:rgba(255,255,255,.16); backdrop-filter:blur(10px); }

/* A message queued while the server restarts: shown faded until it is delivered. */
.bubble.is-pending { opacity: .6; }

/* Solid-color rounded pills for role tags, matching the supplied reference. */
.badge-lv, .badge-neon, .paid-crown-tag { border-radius: 999px; background-image: none !important; animation: none !important; box-shadow: none !important; filter: none !important; text-shadow: none !important; }
.badge-lv::after, .badge-neon::after, .paid-crown-tag::after { display: none !important; content: none !important; }
.badge-lv { background-color: #13795b !important; }
.badge-neon[data-badge="host"], .badge-neon.badge-host { background-color: #2459a6 !important; }
.badge-neon[data-badge="agent"] { background-color: #a65f32 !important; }
.paid-crown-tag { background-color: #6f5941 !important; }
.system-message-row { display: flex; align-items: center; gap: 8px; }
.system-message-row .bubble { flex: 1; }
.system-message-delete { border: 0; border-radius: 999px; padding: 6px 10px; color: #fff; background: rgba(225,29,72,.86); cursor: pointer; }
/* Final tag normalization: every role/level/paid label is a solid rounded pill. */
.badge,
.badge-lv,
.badge-neon,
.paid-crown-tag,
.profile-gender-tag,
.extra-upgrade-badge,
.voting-reward-rank-tag,
.reward-top-gold-tag,
.upgrade-promo-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background-image: none !important;
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}
.badge-lv { background-color: #13795b !important; }
.badge-neon { background-color: #8b3f70 !important; }
.badge-neon[data-badge="host"], .badge-neon.badge-host { background-color: #2459a6 !important; }
.badge-neon[data-badge="agent"] { background-color: #a65f32 !important; }
.paid-crown-tag, .reward-top-gold-tag { background-color: #6f5941 !important; }
.badge-neon::after, .badge-lv::after, .profile-gender-tag::after { display: none !important; content: none !important; }
/* Same role name, same tag surface in every app context (profile card, profile view, chat preview). */
.profile-tile .badge-neon,
.profile-tile .badge-lv,
.profile-lite-roles .badge-neon,
.profile-lite-roles .badge-lv,
.profile-glass-tags .badge-neon,
.profile-glass-tags .badge-lv,
.chat-screen .badge-neon,
.chat-screen .badge-lv,
.agent-group-meta .badge-neon {
  opacity: 1 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.profile-tile .badge-neon,
.profile-lite-roles .badge-neon,
.profile-glass-tags .badge-neon,
.chat-screen .badge-neon,
.agent-group-meta .badge-neon { background-color: #8b3f70 !important; }
.profile-tile .badge-neon[data-badge="host"],
.profile-tile .badge-neon.badge-host,
.profile-lite-roles .badge-neon[data-badge="host"],
.profile-lite-roles .badge-neon.badge-host,
.profile-glass-tags .badge-neon[data-badge="host"],
.profile-glass-tags .badge-neon.badge-host,
.chat-screen .badge-neon[data-badge="host"],
.chat-screen .badge-neon.badge-host { background-color: #2459a6 !important; }
.profile-tile .badge-neon[data-badge="agent"],
.profile-lite-roles .badge-neon[data-badge="agent"],
.profile-glass-tags .badge-neon[data-badge="agent"],
.chat-screen .badge-neon[data-badge="agent"],
.agent-group-meta .badge-neon[data-badge="agent"] { background-color: #a65f32 !important; }
.profile-tile .badge-lv,
.profile-lite-roles .badge-lv,
.profile-glass-tags .badge-lv,
.chat-screen .badge-lv { background-color: #13795b !important; }
.profile-tile .paid-crown-tag,
.profile-lite-roles .paid-crown-tag,
.profile-glass-tags .paid-crown-tag,
.chat-screen .paid-crown-tag { background-color: #6f5941 !important; }
.profile-gender-tag { background-color: #704a7f !important; color: #fff !important; border: 1px solid #a477c8 !important; }
.upgrade-promo-badge { background-color: #a65f32 !important; color: #fff !important; }
