:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #101014;
  --muted: #6f7480;
  --border: #e9eaee;
  --brand: #ff2d55;
  --brand-dark: #e01f45;
  --gold: #f7b733;
  --green: #22c55e;
  --shadow: 0 12px 32px rgba(18, 18, 24, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  background: none;
}

img {
  display: block;
  width: 100%;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(247, 247, 249, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 234, 238, 0.7);
}

.top-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-tab {
  padding: 9px 16px;
  border-radius: 999px;
  color: #6f7480;
  font-size: 16px;
  font-weight: 800;
}

.top-tab.active {
  background: var(--text);
  color: #fff;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.brand span {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.wallet-chip {
  position: relative;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(18, 18, 24, 0.06);
}

.icon-btn {
  font-size: 18px;
}

.wallet-chip {
  gap: 5px;
  font-weight: 800;
  font-size: 14px;
}

.coin {
  color: var(--gold);
  font-size: 13px;
}

.mini-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 17px;
}

.home-content {
  padding: 14px 12px 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 12px;
}

.section-title-row h1,
.screen-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.5px;
}

.section-title-row p,
.screen-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.text-btn {
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.08);
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: #3d414a;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.category-chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.screen {
  display: none;
  animation: fadeIn 0.22s ease;
}

.screen.active {
  display: block;
}

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

.live-card {
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.16s ease;
}

.live-card:active {
  transform: scale(0.97);
}

.live-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #f2c2cf, #9c5f80);
}

.live-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.live-card:hover .live-cover {
  transform: scale(1.05);
}

.live-gradient,
.room-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.live-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.35);
}

.viewers {
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.host-chip {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.host-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  background: #ddd;
}

.live-card-body {
  padding: 10px 10px 12px;
}

.live-card-body h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.live-card-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  padding: 52px 18px;
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  font-size: 46px;
  margin-bottom: 8px;
}

.empty-state h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 19px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.screen-heading {
  padding: 14px 4px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  z-index: 30;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #8b8f99;
  font-size: 11px;
  font-weight: 700;
}

.nav-item.active {
  color: var(--text);
}

.nav-item {
  position: relative;
}

.nav-message-badge {
  top: 0;
  right: calc(50% - 16px);
}

.nav-icon {
  font-size: 20px;
}

.nav-create {
  position: relative;
  color: var(--text);
}

.create-circle {
  width: 46px;
  height: 34px;
  margin-top: -13px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), #ff6b7f);
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.32);
}

/* Profile */
.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff2d55, #7a4df0);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.profile-card h2,
.profile-card p {
  margin: 0;
}

.profile-card h2 {
  font-size: 20px;
}

.profile-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.balance-card {
  margin: 14px 0;
  padding: 18px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #101014, #2b2b33);
  color: #fff;
}

.balance-label {
  color: #b8b9c2;
  font-size: 12px;
}

.balance-value {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 900;
}

.primary-btn {
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 45, 85, 0.24);
}

.primary-btn.small {
  padding: 10px 14px;
  font-size: 13px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat-box {
  padding: 13px 8px;
  text-align: center;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.stat-box strong {
  display: block;
  font-size: 19px;
}

.stat-box span {
  color: var(--muted);
  font-size: 11px;
}

.panel {
  margin-bottom: 14px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-title {
  padding: 9px 2px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}

.menu-item:last-child {
  border-bottom: 0;
}

.order-list {
  padding: 8px 2px 12px;
}

.order-item {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item p {
  margin: 3px 0 0;
  font-size: 11px;
}

.muted {
  color: var(--muted);
}

/* Messages */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.message-item img {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
}

.message-main {
  min-width: 0;
  flex: 1;
}

.message-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.message-top strong {
  font-size: 14px;
}

.message-top span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.message-preview {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}

/* Room screen */
.room-screen {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  z-index: 40;
  background: #000;
}

.room-page,
.room-video {
  position: absolute;
  inset: 0;
}

.room-video {
  overflow: hidden;
}

.room-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 18s ease-in-out infinite alternate;
}

.room-video-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.05) 32%, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.76) 100%);
}

.room-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(13px + env(safe-area-inset-top)) 12px 8px;
  color: #fff;
  z-index: 3;
}

.room-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 19px;
}

.room-host-meta {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-live-label {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.room-viewers {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.92;
}

.room-chat {
  position: absolute;
  left: 12px;
  right: 78px;
  bottom: 118px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  pointer-events: none;
}

.chat-line {
  max-width: 82%;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(16, 16, 20, 0.45);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  backdrop-filter: blur(10px);
  animation: chatIn 0.25s ease;
  align-self: flex-start;
}

.chat-line.system {
  align-self: center;
  background: rgba(247, 183, 51, 0.85);
  color: #241a00;
  font-weight: 800;
}

.chat-line b {
  color: #ffd1db;
}

.room-info {
  position: absolute;
  left: 12px;
  right: 78px;
  bottom: 66px;
  z-index: 3;
  color: #fff;
}

.room-info h2 {
  margin: 0;
  font-size: 18px;
}

.room-info p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.room-composer {
  position: absolute;
  left: 12px;
  right: 78px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-composer input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-actions {
  position: absolute;
  right: 10px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.action-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.action-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 24, 0.42);
  backdrop-filter: blur(10px);
  font-size: 22px;
  transition: transform 0.15s ease;
}

.action-circle:active {
  transform: scale(0.86);
}

.action-circle.followed {
  background: var(--brand);
}

.action-rail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.float-heart {
  position: absolute;
  z-index: 10;
  font-size: 26px;
  pointer-events: none;
  animation: floatHeart 1.3s ease-out forwards;
}

/* Modals and sheets */
.modal-backdrop,
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.sheet-backdrop {
  align-items: flex-end;
}

.modal-card {
  width: calc(100% - 36px);
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.28s ease;
}

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  animation: sheetUp 0.28s ease;
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 6px auto 14px;
  border-radius: 999px;
  background: #d9dbe0;
}

.auth-backdrop {
  align-items: center;
  background: rgba(16, 13, 24, 0.72);
  backdrop-filter: blur(12px);
}

.auth-card {
  overflow: hidden;
  padding: 0;
}

.auth-hero {
  padding: 26px 22px 20px;
  background: linear-gradient(135deg, #ff2d55, #7a4df0);
  color: #fff;
  text-align: center;
  border-radius: 24px 24px 0 0;
}

.auth-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.auth-hero h2 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 23px;
}

.auth-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.auth-card .form-field {
  margin-left: 20px;
  margin-right: 20px;
}

.auth-card .pay-btn {
  width: calc(100% - 40px);
  margin-left: 20px;
  margin-right: 20px;
}

.auth-card .secure-line {
  margin: 8px 20px 22px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2f3f5;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555a64;
}

.modal-card h2,
.sheet h2,
.sheet h3 {
  margin: 0;
  font-size: 21px;
}

.modal-card > p,
.sheet > p {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.recharge-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.recharge-method {
  padding: 13px 8px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.recharge-method.active {
  border-color: var(--brand);
  background: rgba(255, 45, 85, 0.06);
  color: var(--brand);
}

.crypto-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.crypto-option {
  padding: 10px 4px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.crypto-option.active {
  border-color: var(--brand);
  background: rgba(255, 45, 85, 0.06);
  color: var(--brand);
}

.crypto-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border-radius: 13px;
  background: #f2f3f5;
  font-size: 12px;
  margin-bottom: 14px;
}

.crypto-address b {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-note {
  margin: 4px 0 12px;
  padding: 11px 12px;
  border-radius: 13px;
  background: #f2f3f5;
  color: #3d414a;
  font-size: 12px;
  line-height: 1.5;
}

.copy-btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

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

.package {
  position: relative;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
}

.package.selected {
  border-color: var(--brand);
  background: rgba(255, 45, 85, 0.05);
}

.package strong {
  display: block;
  font-size: 17px;
}

.package span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.package .bonus {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.pay-method {
  padding: 11px 4px;
  border: 2px solid var(--border);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
}

.pay-method.selected {
  border-color: var(--text);
}

.pay-btn {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.secure-line {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.gift-item {
  padding: 10px 4px;
  border: 2px solid var(--border);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
}

.gift-item.selected {
  border-color: var(--gold);
  background: rgba(247, 183, 51, 0.08);
}

.gift-emoji {
  font-size: 26px;
}

.gift-name {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
}

.gift-price {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-balance {
  flex: 1;
  padding: 11px 13px;
  border-radius: 13px;
  background: #f2f3f5;
  font-size: 13px;
  font-weight: 800;
}

.form-field {
  margin: 14px 0;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8f8fa;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.form-field textarea {
  min-height: 78px;
  resize: none;
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(82vw, 380px);
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(16, 16, 20, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.25s ease, toastOut 0.3s ease 2.2s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes chatIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

@keyframes floatHeart {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  20% { opacity: 1; transform: translate(6px, -18px) scale(1.1); }
  100% { opacity: 0; transform: translate(20px, -150px) scale(0.8) rotate(12deg); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.96); }
}

@media (min-width: 480px) {
  .bottom-nav {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

@media (max-width: 360px) {
  .live-grid {
    gap: 9px;
  }

  .live-card-body h3 {
    font-size: 13px;
  }

  .gift-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.invite-linked {
  padding: 13px 14px;
  border: 1px solid #d9f3e3;
  border-radius: 14px;
  background: #effcf4;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.form-hint {
  margin: 8px 2px 0;
  color: #e11d48;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.invite-code {
  display: inline-block;
  padding: 10px 12px;
  border: 1px dashed #c7cad1;
  border-radius: 12px;
  background: #f8f8fa;
  font-family: Consolas, Monaco, monospace;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
input.invite-code {
  width: 100%;
  text-align: center;
}
