:root {
  --green:       #56EF9F;
  --green-d:     #2BC878;
  --navy-deep:   #001240;
  --navy-mid:    #001a5e;
  --navy:        #002582;
  --blue:        #0039C8;
  --blue-mid:    #2A89FB;
  --blue-soft:   #F4F7FF;
  --blue-softer: #EEF2FF;
  --border:      #e0e8f8;
  --muted:       #666;
  --dim:         #aaa;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* iOS hace zoom automático al enfocar un input con font-size menor a 16px */
input, textarea, select { font-size: 16px; }

button { touch-action: manipulation; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 56px;
  background: rgba(0, 18, 64, .97);
  border-bottom: .5px solid rgba(86,239,159,.1);
  backdrop-filter: blur(16px);
}
.nav .logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.4px; color: #fff; }
.nav .logo img { height: 26px; width: auto; }
.nav .logo span.green { color: var(--green); }
.nav .links { display: flex; align-items: center; gap: 28px; }
.nav .links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.55); transition: color .2s var(--ease); }
.nav .links a:hover { color: #fff; }

.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(86,239,159,.35); background: var(--navy-mid); flex-shrink: 0; }
.user-name { font-size: 13px; color: #fff; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.16); color: rgba(255,255,255,.8);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .user-name { display: none; }
}

.bell-wrap { position: relative; }
.bell-badge {
  position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b30; border: 2px solid var(--navy-deep); display: none;
}
.bell-badge.show { display: block; }
.bell-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 320px; max-width: calc(100vw - 32px);
  background: var(--navy-deep); border: .5px solid rgba(255,255,255,.14); border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4); z-index: 300; display: none; max-height: 400px; overflow-y: auto;
}
.bell-dropdown.show { display: block; }
@media (max-width: 480px) {
  .bell-dropdown { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; }
}
.bell-item { display: block; padding: 14px 16px; border-bottom: .5px solid rgba(255,255,255,.08); color: #fff; }
.bell-item:last-child { border-bottom: none; }
.bell-item:hover { background: rgba(255,255,255,.04); }
.bell-item .t { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.bell-item .b { font-size: 12px; color: #7a9fd4; }
.bell-empty { padding: 24px 16px; text-align: center; color: #4a6aaa; font-size: 12.5px; line-height: 1.5; }
.nav .nav-cta { padding: 9px 18px; font-size: 12px; }
@media (max-width: 720px) {
  .nav { padding: 14px 16px; }
  .nav .links { display: none; }
}
@media (max-width: 400px) {
  .nav .logo span { display: none; }
  .nav .nav-cta { padding: 9px 14px; font-size: 11.5px; white-space: nowrap; }
}

/* ---------- Botones ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--navy);
  padding: 14px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(86,239,159,.28); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-navy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 12px 22px; border-radius: 8px;
  font-size: 13px; font-weight: 700; border: none; cursor: pointer;
  font-family: inherit;
  transition: transform .2s var(--ease), background .2s;
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,.7);
  padding: 12px 22px; border-radius: 8px; border: .5px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(86,239,159,.4); color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 56px; }
@media (max-width: 720px) { .wrap { padding: 24px 18px; } }

.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: #fff;
  text-align: center; padding: 72px 56px 56px;
}
.hero::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(86,239,159,.05); pointer-events: none;
}
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -1.8px; line-height: 1.07; margin: 0 0 16px; position: relative; }
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero p { color: #7a9fd4; font-size: 15px; line-height: 1.7; margin: 8px 0; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.hero p strong { color: #fff; }
.hero .btn-primary { margin: 20px 0 8px; padding: 16px 30px; font-size: 15px; }
.fineprint { color: var(--dim); font-size: 11px; }
.hero .fineprint { color: #4a6aaa; }

.section-light { background: #fff; padding: 72px 56px; }
.section-blue-soft { background: var(--blue-soft); padding: 72px 56px; }
.section-navy { background: var(--navy); color: #fff; padding: 72px 56px; }
@media (max-width: 720px) {
  .section-light, .section-blue-soft, .section-navy, .hero { padding: 40px 20px; }
}

.section-light h2, .section-blue-soft h2, .section-navy h2 {
  font-size: 32px; font-weight: 800; letter-spacing: -.8px; line-height: 1.12; margin-bottom: 14px;
}
@media (max-width: 480px) {
  .section-light h2, .section-blue-soft h2, .section-navy h2 { font-size: 26px; letter-spacing: -.5px; }
}
.section-content { max-width: 880px; margin: 0 auto; }
.section-content p { font-size: 15px; line-height: 1.78; color: var(--muted); }
.section-navy p { color: #7a9fd4; }

.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; justify-content: center; }
.ew-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.ew-t { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: var(--blue); }
.hero .eyebrow { justify-content: center; }
.hero .ew-dot { background: var(--green); }
.hero .ew-t { color: var(--green); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 32px 0; }
.card {
  border: .5px solid var(--border); border-radius: 12px; background: #fff; padding: 22px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,37,130,.08); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--navy); }
.card p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

.card-dark {
  background: rgba(255,255,255,.04); border: .5px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 22px;
  transition: border-color .3s var(--ease);
}
.card-dark:hover { border-color: rgba(86,239,159,.25); }

footer.site-footer {
  background: var(--navy-deep); border-top: .5px solid #0a3070;
  padding: 28px 56px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer.site-footer a { font-size: 12px; color: rgba(255,255,255,.4); transition: color .2s; }
footer.site-footer a:hover { color: rgba(255,255,255,.75); }
footer.site-footer .logo { color: rgba(255,255,255,.6); font-weight: 800; font-size: 14px; }

.faq-item { margin-bottom: 24px; }
.faq-item h3 { margin-bottom: 4px; color: var(--navy); font-size: 15px; font-weight: 800; }
.faq-item p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0; }

/* ---------- App shell (monedero / estadísticas) ---------- */
.app-shell { background: var(--navy-deep); min-height: 100vh; color: #fff; }
.app-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; }
.app-wrap h1 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 24px; }
.app-wrap .muted { color: #7a9fd4; font-size: 13px; }

.balance-box { background: rgba(255,255,255,.04); border: .5px solid rgba(255,255,255,.07); border-radius: 14px; padding: 24px; margin: 16px 0; }
.balance-box .label { color: #7a9fd4; font-size: 11px; margin-bottom: 4px; }
.balance-box .amount { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: #fff; }
.balance-box .amount.green { color: var(--green); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.amount-grid button {
  padding: 14px; border-radius: 10px; border: .5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: border-color .2s, transform .2s var(--ease);
}
.amount-grid button:hover { border-color: rgba(86,239,159,.35); transform: translateY(-2px); }
.amount-grid button.featured { border-color: var(--green); color: var(--green); font-weight: 800; }
.amount-grid button.wide { grid-column: 1 / -1; }

/* ---------- Transacciones ---------- */
.tx-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tx-filter {
  background: rgba(255,255,255,.04); color: #fff; border: .5px solid rgba(255,255,255,.15); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-family: inherit;
}
.tx-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tx-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13px; }
.tx-table th {
  text-align: left; color: #7a9fd4; font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: .3px; padding: 10px 12px; border-bottom: .5px solid rgba(255,255,255,.1);
}
.tx-table td { padding: 12px; border-bottom: .5px solid rgba(255,255,255,.06); color: #fff; white-space: nowrap; }
.tx-table tr.tx-live { animation: tx-row-in .5s ease; }
.tx-table tr.tx-leaving { animation: tx-row-out .4s ease forwards; }
@keyframes tx-row-in {
  from { opacity: 0; transform: translateY(-10px); background: rgba(86,239,159,.18); }
  to { opacity: 1; transform: translateY(0); background: transparent; }
}
@keyframes tx-row-out { to { opacity: 0; transform: translateY(6px); } }
.tx-amount.pos { color: var(--green); font-weight: 700; }
.tx-amount.neg { color: #ff8a8a; font-weight: 700; }
.tx-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.1); color: #cfe0ff;
}
.tx-pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; }
.tx-pager span { color: var(--dim); font-size: 13px; }
.tx-empty { color: var(--dim); text-align: center; padding: 32px 0; }
@media (max-width: 480px) {
  .tx-table { font-size: 12px; }
  .tx-table td, .tx-table th { padding: 8px; }
}

.app-nav-link { display: inline-block; margin: 4px 0; font-size: 13px; color: var(--blue-mid); }
.app-nav-link:hover { color: var(--green); }

.app-toast {
  position: fixed; top: calc(20px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%) translateY(-8px);
  background: rgba(0,18,64,.96); color: #fff; padding: 12px 20px; border-radius: 10px;
  border: .5px solid rgba(86,239,159,.3); font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 200; max-width: calc(100% - 40px);
  text-align: center; pointer-events: none;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Estadísticas ---------- */
.filter-pills { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.filter-pills button {
  padding: 8px 16px; border-radius: 999px; border: .5px solid rgba(255,255,255,.14);
  background: transparent; color: rgba(255,255,255,.6); font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .2s var(--ease);
}
.filter-pills button:hover { border-color: rgba(86,239,159,.3); color: #fff; }
.filter-pills button.active { background: var(--green); border-color: var(--green); color: var(--navy); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
@media (min-width: 600px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: rgba(255,255,255,.04); border: .5px solid rgba(255,255,255,.07); border-radius: 12px; padding: 18px; }
.stat-card .n { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: #fff; }
.stat-card .n.green { color: var(--green); }
.stat-card .l { font-size: 11px; color: #4a6aaa; margin-top: 4px; line-height: 1.4; }

.donor-list { list-style: none; margin: 0; padding: 0; }
.donor-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: .5px solid rgba(255,255,255,.07);
}
.donor-row:last-child { border-bottom: none; }
.donor-rank {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #7a9fd4; flex-shrink: 0;
}
.donor-row:nth-child(1) .donor-rank { background: var(--green); color: var(--navy); }
.donor-row:nth-child(2) .donor-rank { background: rgba(86,239,159,.4); color: var(--navy); }
.donor-row:nth-child(3) .donor-rank { background: rgba(86,239,159,.2); color: var(--green); }
.donor-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); object-fit: cover; flex-shrink: 0; }
.donor-info { flex: 1; min-width: 0; }
.donor-name { font-size: 14px; font-weight: 700; color: #fff; }
.donor-meta { font-size: 11px; color: #7a9fd4; }
.donor-total { font-size: 15px; font-weight: 800; color: var(--green); white-space: nowrap; }
.empty-state { text-align: center; padding: 40px 20px; color: #4a6aaa; font-size: 13px; }

/* ---------- Onboarding (bienvenida) ---------- */
.onboarding-wrap {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}
.onboarding-card { max-width: 380px; animation: fIn .4s var(--ease); }
.onboarding-emoji { font-size: 60px; margin-bottom: 18px; line-height: 1; }
.onboarding-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 12px; }
.onboarding-card p { color: #7a9fd4; font-size: 15px; line-height: 1.6; margin: 0; }
.onboarding-dots { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.onboarding-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.15); transition: background .2s; }
.onboarding-dots span.active { background: var(--green); }
.onboarding-progress { width: 100%; max-width: 280px; margin-top: 28px; }
.onboarding-step-label { font-size: 12.5px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.onboarding-bar-track { width: 100%; height: 5px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.onboarding-bar-fill { height: 100%; width: 0%; background: var(--green); border-radius: 999px; }
@keyframes fIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Room live ---------- */
.room-app {
  position: relative; width: 100%; background: #000; overflow: hidden; font-family: "Plus Jakarta Sans", sans-serif;
  height: 100vh; /* fallback para navegadores sin soporte dvh */
  height: 100dvh; /* evita que la barra del navegador móvil corte los controles */
}
#player { width: 100%; height: 100%; object-fit: cover; background: #000; }
.overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,18,64,0.75); text-align: center; padding: 24px; color: #fff;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  transition: opacity .45s ease;
}
.overlay.fade-out { opacity: 0; pointer-events: none; }
.overlay h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; }
.overlay .fineprint { color: #7a9fd4; }
.room-avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--green, #56EF9F); margin-bottom: 16px; background: #001240;
}
/* Efecto de "llamando" tipo FaceTime — un anillo que respira alrededor de la
   foto mientras se conecta. Si no hay avatar el selector no aplica, sin romper nada. */
.overlay.connecting .room-avatar { animation: avatar-breathe 1.6s ease-in-out infinite; }
@keyframes avatar-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86,239,159,.5); }
  50% { box-shadow: 0 0 0 14px rgba(86,239,159,0); }
}
.connect-spinner { display: none; gap: 6px; justify-content: center; margin: 14px 0; }
.connect-spinner span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green, #56EF9F);
  animation: connect-dot-bounce 1.2s infinite ease-in-out;
}
.connect-spinner span:nth-child(2) { animation-delay: .15s; }
.connect-spinner span:nth-child(3) { animation-delay: .3s; }
@keyframes connect-dot-bounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}
.controls {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; gap: 16px; background: rgba(0,18,64,0.7); padding: 10px 16px; border-radius: 28px;
  border: .5px solid rgba(86,239,159,.15);
  flex-wrap: wrap; justify-content: center;
  /* "left:50%" sin un ancho explícito hace que el navegador calcule el
     shrink-to-fit con la mitad del viewport como base disponible, y envuelve
     los botones antes de tiempo — width:max-content lo corrige. */
  width: max-content; max-width: min(92vw, 440px);
}
.controls.entering { animation: controls-in .4s ease; }
@keyframes controls-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.controls button { font-size: 1.4rem; background: none; border: none; color: #fff; cursor: pointer; padding: 4px 8px; }
.ctrl-btn.off { opacity: .5; }
.ctrl-btn.active { text-shadow: 0 0 10px var(--green, #56EF9F); }
.cam-select {
  background: rgba(0,18,64,.7); color: #fff; border: .5px solid rgba(86,239,159,.3); border-radius: 999px;
  padding: 4px 10px; font-size: .8rem; font-family: inherit; max-width: 120px;
}
.ticker {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; background: rgba(0,18,64,0.75); color: var(--green);
  font-weight: 800; padding: 8px 14px; border-radius: 10px; border: .5px solid rgba(86,239,159,.2);
  display: flex; align-items: center; gap: 8px;
}
/* Botón de terminar transmisión: secundario a propósito — no debe competir
   con la barra de controles principal ni ser el primer botón que se toca. */
.btn-stop-secondary {
  position: absolute; top: calc(60px + env(safe-area-inset-top)); right: 16px;
  background: rgba(0,18,64,.55); color: rgba(255,255,255,.65);
  font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: .5px solid rgba(255,255,255,.15); cursor: pointer; font-family: inherit;
}
.btn-stop-secondary:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.chat-panel {
  position: absolute; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom));
  max-height: 42vh; display: none; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, rgba(0,18,64,.35), rgba(0,18,64,.88));
  border-radius: 16px; padding: 10px 12px; border: .5px solid rgba(86,239,159,.15);
}
.chat-panel-header { display: flex; align-items: center; gap: 10px; }
#chat-wave { flex: 1; min-width: 0; height: 32px; display: block; }
#dim-slider { width: 90px; accent-color: var(--green, #56EF9F); }
.chat-feed {
  overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column;
  gap: 6px; padding-right: 4px; min-height: 40px;
}
.chat-msg { font-size: 13px; color: #fff; line-height: 1.35; word-break: break-word; }
.chat-msg-name { font-weight: 800; color: var(--green, #56EF9F); }
.chat-msg-body { color: #e8edf8; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input {
  flex: 1; background: rgba(255,255,255,.08); border: .5px solid rgba(86,239,159,.25); border-radius: 999px;
  padding: 8px 14px; color: #fff; font-size: 14px; font-family: inherit;
}
.chat-input-row input::placeholder { color: rgba(255,255,255,.5); }
#btn-chat-send {
  background: var(--green); color: var(--navy); border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 14px; cursor: pointer; flex-shrink: 0;
}
@media (max-width: 480px) {
  .chat-panel { left: 8px; right: 8px; max-height: 38vh; }
}
.conn-quality {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.3);
}
.conn-quality.good { background: var(--green, #56EF9F); }
.conn-quality.ok { background: #F5C542; }
.conn-quality.bad { background: #E5484D; animation: conn-pulse 1.2s ease-in-out infinite; }
@keyframes conn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.audio-only-badge {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; background: rgba(0,18,64,0.75); color: var(--green);
  font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 10px; border: .5px solid rgba(86,239,159,.2);
}
.toast {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; background: rgba(0,18,64,0.85); padding: 10px 16px;
  border-radius: 10px; opacity: 0; transition: opacity 0.3s; color: #fff; font-size: 13px; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; }
.tip-band {
  position: absolute; bottom: calc(90px + env(safe-area-inset-bottom)); left: 0; right: 0; background: rgba(43,200,120,.94); color: #001240;
  padding: 14px 20px; font-weight: 800; font-size: 1.05rem; text-align: center;
}
.sheet { position: fixed; inset: 0; background: rgba(0,18,64,.6); display: flex; align-items: flex-end; z-index: 50; }
.sheet-inner { background: var(--navy-deep); width: 100%; border-radius: 20px 20px 0 0; padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); color: #fff; }
.sheet-inner h3 { margin-top: 0; }
.sheet-inner .amounts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.sheet-inner .amounts button {
  padding: 12px 18px; border-radius: 10px; border: .5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); color: #fff; font-family: inherit; cursor: pointer;
}
.sheet-inner .amounts button:hover { border-color: var(--green); }
.sheet-inner input {
  width: 100%; padding: 12px; border-radius: 10px; border: .5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); color: #fff; margin-bottom: 12px; font-family: inherit; box-sizing: border-box;
}
.sheet-inner #tip-cancel { background: none; border: none; color: #7a9fd4; padding: 8px 0; cursor: pointer; font-family: inherit; }
