:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.live-room {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 420px;
  overflow: hidden;
  background: #050505;
}

.live-video,
.video-fallback,
.vignette,
.video-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-video {
  z-index: -4;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.05) brightness(.72);
}

.video-fallback {
  z-index: -5;
  background:
    radial-gradient(circle at 54% 30%, rgba(241, 100, 166, .3), transparent 32%),
    radial-gradient(circle at 25% 80%, rgba(70, 25, 111, .55), transparent 42%),
    linear-gradient(135deg, #382035, #0b0a10 60%, #050505);
  animation: fallback-shift 8s ease-in-out infinite alternate;
}

.vignette {
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .18), transparent 28%, transparent 56%, rgba(0, 0, 0, .78)),
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .38) 100%);
}

.video-surface {
  z-index: -1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.status-bar {
  position: absolute;
  z-index: 20;
  top: max(18px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-badge,
.viewer-badge,
.icon-button,
.show-chat-button {
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: rgba(0, 196, 88, .94);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e9fff1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
  animation: pulse 1.8s ease-in-out infinite;
}

.viewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  background: rgba(10, 10, 12, .66);
  color: rgba(255, 255, 255, .88);
  font-size: 10px;
  font-weight: 700;
}

.viewer-badge svg,
.icon-button svg,
.show-chat-button svg,
.chat-form button svg,
.chat-actions button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 28px;
  padding: 0;
  border-radius: 999px;
  background: rgba(10, 10, 12, .55);
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(10, 10, 12, .78);
}

.hide-chat-wrap {
  position: relative;
  display: flex;
}

.hide-chat-wrap[hidden] {
  display: none;
}

.hide-tip {
  position: absolute;
  top: 0;
  left: calc(100% + 7px);
  display: grid;
  place-items: center;
  width: 132px;
  height: 31px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e50078, #f00086);
  box-shadow: 0 8px 28px rgba(240, 0, 134, .23);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}

.hide-tip::before {
  position: absolute;
  left: -4px;
  width: 9px;
  height: 9px;
  content: "";
  background: #e7007a;
  transform: rotate(45deg);
}

.hide-tip.is-hidden {
  opacity: 0;
  transform: translateX(-7px);
  pointer-events: none;
}

.show-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, .13);
  background: rgba(229, 0, 120, .92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  animation: chat-pulse 1.8s ease-in-out infinite;
}

.show-chat-button[hidden] {
  display: none;
}

.show-chat-button span[hidden] {
  display: none;
}

.chat-layer {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.chat-layer.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.messages {
  position: absolute;
  left: 50%;
  bottom: 94px;
  width: min(455px, calc(100vw - 32px));
  max-height: min(48vh, 430px);
  padding: 42px 4px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(-50%);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: none;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 11%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 11%,
    #000 88%,
    transparent 100%
  );
  transition: bottom .25s ease, max-height .25s ease;
}

.messages::-webkit-scrollbar {
  display: none;
}

.chat-layer.has-actions .messages {
  bottom: 143px;
  max-height: min(43vh, 390px);
}

.chat-layer.has-vip .messages {
  bottom: 201px;
  max-height: min(37vh, 345px);
}

.message {
  width: fit-content;
  max-width: 92%;
  margin: 8px 0;
  padding: 11px 14px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 0 18px 18px 18px;
  background: rgba(19, 16, 24, .38);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  animation: message-in .25s ease-out;
}

.message-user {
  margin-left: auto;
  border-color: rgba(236, 15, 129, .25);
  border-radius: 18px 0 18px 18px;
  background: rgba(226, 0, 112, .28);
}

.message-author {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .035em;
}

.message p {
  margin: 0;
  color: rgba(255, 255, 255, .93);
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-line;
}

.message-media {
  width: min(390px, 92%);
  padding: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(19, 16, 24, .52);
}

.message-media .message-author {
  padding: 5px 8px 0;
}

.message-media img {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: 13px;
  object-fit: cover;
}

.payment-pending-message {
  width: min(430px, 96%);
  padding: 15px;
  border-color: rgba(34, 197, 94, .42);
  border-radius: 14px;
  background: rgba(20, 20, 24, .86);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, .08) inset,
    0 13px 36px rgba(0, 0, 0, .3);
}

.payment-pending-message.is-approved {
  border-color: rgba(34, 197, 94, .8);
}

.payment-pending-message.is-failed {
  border-color: rgba(248, 113, 113, .58);
}

.payment-status-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
}

.payment-lock {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .17);
  font-size: 20px;
}

.payment-status-head b {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.payment-status-head small {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  line-height: 1.35;
}

.payment-gateway-label {
  display: inline-block;
  margin: 11px 0 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 193, 7, .14);
  color: #ffd65a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
}

.payment-qr-code {
  display: block;
  width: min(210px, 78%);
  aspect-ratio: 1;
  margin: 3px auto 12px;
  padding: 8px;
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
}

.copy-pix-button,
.payment-status-button {
  width: 100%;
  min-height: 38px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.copy-pix-button:disabled,
.payment-status-button:disabled {
  cursor: default;
  opacity: .58;
}

.copy-pix-button {
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: #17171a;
}

.payment-status-button {
  margin-top: 7px;
  border: 1px solid rgba(34, 197, 94, .3);
  background: rgba(34, 197, 94, .09);
  color: #73efaa;
}

.enter-call-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 46px;
  margin-top: 11px;
  border-radius: 11px;
  background: linear-gradient(90deg, #11bb6a, #00dd85);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(0, 220, 130, .2);
}

.enter-call-button:hover {
  filter: brightness(1.08);
}

.payment-steps {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  color: rgba(255, 255, 255, .32);
  font-size: 8px;
}

.typing-indicator {
  display: flex;
  justify-content: flex-start;
  width: fit-content;
  max-width: 92%;
  margin: 8px 0;
  padding: 0;
  pointer-events: none;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px 8px 13px;
  border-radius: 0 16px 16px 16px;
  background: rgba(12, 12, 14, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
}

.chat-actions {
  position: absolute;
  left: 50%;
  bottom: 91px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(650px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: auto;
}

.chat-actions.has-vip {
  padding-top: 59px;
}

.chat-actions[hidden],
.chat-actions button[hidden] {
  display: none;
}

.chat-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  transition: transform .18s ease, filter .18s ease;
}

.chat-actions button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.preview-button {
  background: linear-gradient(90deg, #ff7417, #ff083f);
}

.gift-button {
  background: linear-gradient(90deg, #d91ebd, #7c18e9);
}

.vip-button {
  background: linear-gradient(90deg, #15a85a, #08cb7d);
}

.chat-actions.has-vip .vip-button {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(340px, calc(100vw - 34px));
  min-height: 51px;
  padding-inline: 28px;
  border: 1px solid rgba(117, 255, 188, .48);
  font-size: 14px;
  letter-spacing: .025em;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 0 rgba(11, 210, 111, .42),
    0 13px 35px rgba(0, 0, 0, .34),
    0 0 24px rgba(11, 210, 111, .26);
  animation: vip-button-pulse 1.65s ease-in-out infinite;
}

.chat-actions.has-vip .vip-button:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.015);
}

.feature-modal {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-modal[hidden],
.modal-panel[hidden] {
  display: none;
}

.feature-modal-card {
  position: relative;
  width: min(390px, 100%);
  max-height: calc(100dvh - 28px);
  padding: 24px 14px 14px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(33, 31, 42, .98), rgba(12, 11, 16, .98));
  box-shadow: 0 25px 80px rgba(0, 0, 0, .5);
  animation: message-in .22s ease-out;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.modal-kicker {
  display: block;
  margin-bottom: 7px;
  color: #ff399f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.modal-panel h2 {
  margin: 0 32px 15px 0;
  font-size: 22px;
  line-height: 1.15;
}

.modal-panel p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  line-height: 1.5;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.gift-grid button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.gift-grid button:hover {
  border-color: rgba(236, 25, 142, .65);
  background: rgba(236, 25, 142, .13);
}

.gift-grid button span {
  font-size: 30px;
}

.gift-grid button b {
  font-size: 11px;
}

.gift-grid button small {
  color: #ff75bd;
  font-size: 10px;
  font-weight: 900;
}

.gift-intro {
  margin: 5px 0 13px !important;
  text-align: center;
}

.gift-request-label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 800;
}

.gift-request-label textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: inherit;
  line-height: 1.4;
}

.gift-request-label textarea:focus {
  border-color: rgba(236, 8, 126, .78);
  box-shadow: 0 0 0 3px rgba(236, 8, 126, .12);
}

.gift-note {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .38);
  text-align: center;
  font-size: 9px;
  line-height: 1.4;
}

.modal-primary {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #ed087e, #8b19ef);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.plan-sparkle {
  margin: -12px auto 3px;
  text-align: center;
  font-size: 34px;
}

.plan-eyebrow {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.plan-eyebrow b {
  color: #ff3b9d;
}

.plan-subtitle {
  margin: 5px 8px 16px !important;
  text-align: center;
  font-size: 11px !important;
  font-style: italic;
}

.plan-benefits,
.complete-benefits {
  padding: 19px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(8, 7, 10, .76);
}

.plan-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.plan-benefit + .plan-benefit {
  margin-top: 15px;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(236, 9, 127, .18);
  font-size: 16px;
}

.plan-benefit b {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.plan-benefit small {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  line-height: 1.35;
}

.plan-price {
  display: grid;
  place-items: center;
  padding: 18px 0 13px;
}

.plan-price span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .76);
  font-size: 8px;
  font-weight: 900;
}

.plan-price strong {
  margin: 6px 0 1px;
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
}

.plan-price strong small {
  font-size: 18px;
}

.plan-price em {
  color: rgba(255, 255, 255, .32);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.plan-cta {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .045em;
  cursor: pointer;
}

.basic-cta {
  background: linear-gradient(90deg, #ec087e, #8c1ff0);
  box-shadow: 0 6px 0 #6612be;
}

.complete-panel {
  text-align: center;
}

.upgrade-badge {
  display: inline-block;
  margin: -8px auto 14px;
  padding: 5px 16px;
  border-radius: 999px;
  background: #987815;
  color: #050505;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .06em;
}

.complete-panel h2 {
  margin: 0 0 16px;
  font-size: 25px;
  font-weight: 950;
}

.complete-panel h2 em {
  display: block;
  color: #ff2691;
  font-size: 32px;
  font-style: italic;
}

.complete-benefits {
  text-align: left;
}

.complete-benefits > b {
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  letter-spacing: .06em;
}

.complete-benefits mark {
  padding: 0;
  background: transparent;
  color: #e6cb1d;
}

.complete-benefits ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.complete-benefits li {
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.complete-price {
  padding-bottom: 16px;
}

.complete-price span {
  background: transparent;
  color: #22d878;
}

.complete-cta {
  background: linear-gradient(90deg, #ff031d, #ff244e);
  box-shadow: 0 6px 0 #9d0011, 0 0 22px rgba(255, 8, 48, .22);
}

.secondary-plan-button {
  width: 100%;
  min-height: 49px;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  background: #29292e;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
}

.payment-panel h2 {
  margin-bottom: 4px;
  text-align: center;
}

.payment-plan-summary {
  margin: 0 0 15px !important;
  color: #ff74bd !important;
  text-align: center;
  font-size: 13px !important;
  font-weight: 850;
}

.payment-form {
  display: grid;
  gap: 11px;
}

.payment-form label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  font-weight: 800;
}

.payment-form input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: inherit;
}

.payment-form input:focus {
  border-color: rgba(236, 8, 126, .78);
  box-shadow: 0 0 0 3px rgba(236, 8, 126, .12);
}

.payment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.payment-form-error {
  margin: 0 !important;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(248, 113, 113, .12);
  color: #ffaaaa !important;
  font-size: 10px !important;
}

.payment-form .plan-cta {
  margin-top: 4px;
}

.payment-privacy {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .38);
  text-align: center;
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 420px) {
  .payment-form-row {
    grid-template-columns: 1fr;
  }
}

.typing-indicator[hidden] {
  display: none;
}

.typing-label {
  width: auto;
  height: auto;
  margin: 0;
  white-space: nowrap;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
}

.typing-dots i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  animation: typing 1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: .14s;
}

.typing-dots i:nth-child(3) {
  animation-delay: .28s;
}

.chat-form {
  position: absolute;
  left: 50%;
  bottom: max(31px, calc(env(safe-area-inset-bottom) + 18px));
  width: min(545px, calc(100vw - 32px));
  height: 48px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.chat-form input {
  width: 100%;
  height: 100%;
  padding: 0 56px 0 16px;
  outline: 0;
  border: 1px solid rgba(238, 0, 129, .88);
  border-radius: 999px;
  background: rgba(16, 16, 19, .72);
  box-shadow: 0 13px 42px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .18) inset;
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.chat-form input::placeholder {
  color: rgba(255, 255, 255, .38);
}

.chat-form input:focus {
  border-color: #ff299d;
  box-shadow: 0 0 0 3px rgba(234, 0, 126, .15), 0 13px 42px rgba(0, 0, 0, .28);
}

.chat-form button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 45, 49, .92);
  color: rgba(255, 255, 255, .85);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.chat-form button:hover:not(:disabled) {
  background: #e60078;
  transform: translateY(-50%) scale(1.04);
}

.chat-form button:disabled {
  opacity: .42;
  cursor: default;
}

.toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 98px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(10, 10, 12, .72);
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  50% { opacity: .45; }
}

@keyframes typing {
  0%, 70%, 100% { transform: translateY(0); opacity: .4; }
  35% { transform: translateY(-4px); opacity: 1; }
}

@keyframes chat-pulse {
  50% { box-shadow: 0 0 0 7px rgba(229, 0, 120, .12); }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
}

@keyframes fallback-shift {
  to { filter: hue-rotate(16deg) brightness(1.15); transform: scale(1.04); }
}

@keyframes vip-button-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(11, 210, 111, .42),
      0 13px 35px rgba(0, 0, 0, .34),
      0 0 22px rgba(11, 210, 111, .24);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 0 9px rgba(11, 210, 111, 0),
      0 15px 40px rgba(0, 0, 0, .38),
      0 0 38px rgba(11, 210, 111, .48);
    filter: brightness(1.12);
  }
}

@media (max-width: 640px) {
  .status-bar {
    top: max(12px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    gap: 7px;
  }

  .online-badge,
  .viewer-badge {
    padding-inline: 8px;
  }

  .hide-tip {
    width: 119px;
  }

  .messages {
    bottom: 80px;
    width: calc(100vw - 28px);
    max-height: min(54vh, 455px);
  }

  .chat-layer.has-actions .messages {
    bottom: 127px;
    max-height: min(46vh, 390px);
  }

  .chat-layer.has-vip .messages {
    bottom: 186px;
    max-height: min(39vh, 335px);
  }

  .message {
    max-width: 88%;
  }

  .message p {
    font-size: 13px;
  }

  .chat-form {
    bottom: max(17px, calc(env(safe-area-inset-bottom) + 12px));
    width: calc(100vw - 24px);
  }

  .chat-actions {
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px));
    gap: 6px;
  }

  .chat-actions.has-vip {
    padding-top: 57px;
  }

  .chat-actions button {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .chat-actions.has-vip .vip-button {
    top: 0;
    min-height: 49px;
    font-size: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
