/* VibeConnect — original mobile-first social calling UI */

:root {
  --teal: #1B635A;
  --teal-dark: #154E47;
  --teal-soft: #E7F4F2;
  --green: #00C853;
  --green-dark: #00A043;
  --orange: #D84315;
  --bg: #eef5f6;
  --text: #111111;
  --muted: #555555;
  --card: #FFFFFF;
  --line: #D7E6E4;
  --charcoal: #1e1e24;
  --danger: #D32F2F;
  --shadow: 0 3px 10px rgba(0,0,0,0.05);
  --app-width: 430px;
  --header: 108px;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #1e1e24;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

.app-shell {
  width: var(--app-width);
  height: min(850px, 95vh);
  background: #eef5f6;
  background-image: radial-gradient(#d3e3e5 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 36px;
  border: 12px solid #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-header {
  background: #1B635A;
  color: #fff;
  padding: 16px 0 0;
  flex-shrink: 0;
}

.app-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: 26px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover,
.icon-btn.is-active { background: rgba(255, 255, 255, 0.12); }

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--teal);
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  padding: 0 10px;
}

.app-tabs a {
  text-align: center;
  padding: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.app-tabs a.is-active {
  color: #fff;
}

.app-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 4px;
  background: #fff;
  border-radius: 4px 4px 0 0;
}

.app-tabs a.tab-quick {
  font-size: 16px;
  font-weight: 700;
}

.app-main.live-main {
  padding: 0 0 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  overflow: auto;
  padding: 16px 14px 24px;
  -webkit-overflow-scrolling: touch;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h1 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #E53935;
}

.pill-limited {
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 6px;
}

.room-card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #E8EEEE;
}

.room-card.is-alert {
  border: 2px solid #E53935;
}

.room-card__row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
}

.room-card__info h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.room-card__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-pill {
  min-width: 88px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}

.btn-pill.call { background: var(--green); color: #083318; }
.btn-pill.chat { background: var(--orange); color: #fff; }
.btn-pill:disabled { opacity: 0.45; cursor: not-allowed; }

.avatar-ring {
  border: 3px solid #E0B34C;
  box-sizing: border-box;
}

.expire-badge.is-missed {
  background: #FDECEA;
  color: #C62828;
  animation: none;
}

.tab-quick {
  line-height: 1.2;
}

.qr-box {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  margin: 8px 0;
}

.qr-box img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
}

.upi-id {
  text-align: center;
  font-size: 14px;
}

.pay-card { text-align: center; }
.pay-card + .pay-card { margin-top: 12px; }
.upi-apps { display: grid; gap: 8px; margin: 14px 0 4px; }
.upi-apps .btn { width: 100%; }

.room-card__top {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--teal-soft);
}

.avatar--sm { width: 44px; height: 44px; }
.avatar--lg { width: 96px; height: 96px; margin: 0 auto 10px; }
.avatar-wrap { position: relative; width: 64px; height: 64px; }

.online-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid #fff;
  border-radius: 50%;
}

.room-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.status-line {
  margin: 10px 0 8px;
  font-size: 13px;
  color: #3d4a48;
}

.expire-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3E0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

.expire-badge.is-expired {
  background: #ECEFF1;
  color: #607D8B;
}

.room-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
}

.btn-call {
  background: var(--green);
  color: #083318;
}

.btn-chat {
  background: #fff;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  width: 100%;
}

.btn-orange { background: var(--orange); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: var(--teal-soft); color: var(--teal-dark); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.progress {
  height: 4px;
  background: #E0EBE9;
  border-radius: 99px;
  margin-top: 12px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--teal));
  width: 100%;
  transform-origin: left;
}

.auth-wrap {
  padding: 28px 20px 40px;
}

.auth-hero {
  text-align: center;
  margin-bottom: 24px;
}

.auth-hero h1 {
  margin: 10px 0 4px;
  font-size: 28px;
}

.auth-hero p { margin: 0; color: var(--muted); }

.form-field { margin-bottom: 12px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
}

.form-field textarea { min-height: 90px; resize: vertical; }

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.alert-error { background: #FFEBEE; color: #B71C1C; }
.alert-ok { background: #E8F5E9; color: #1B5E20; }

.profile-card, .panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.profile-card { text-align: center; }
.profile-card h1 { margin: 0; font-size: 24px; }
.stack { display: grid; gap: 10px; margin-top: 16px; }
.muted { color: var(--muted); font-size: 13px; }

.drawer, .sheet, .search-overlay, .modal {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.drawer { background: rgba(0,0,0,.35); }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 78%;
  background: #fff;
  padding: 22px 16px;
  box-shadow: -10px 0 30px rgba(0,0,0,.12);
}

.drawer__profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.drawer__profile img { width: 52px; height: 52px; border-radius: 50%; }
.drawer__nav { display: grid; gap: 4px; }
.drawer__nav a, .drawer__nav button {
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
}

.search-overlay { background: var(--bg); padding: 12px; }
.search-box { display: flex; gap: 8px; }
.search-box input {
  flex: 1;
  border: 0;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.sheet { background: rgba(0,0,0,.35); }
.drawer:not([hidden]) { display: block; }
.sheet:not([hidden]) { display: flex; align-items: flex-end; }
.search-overlay:not([hidden]) { display: block; }
[hidden] { display: none !important; }
.sheet__panel {
  background: #fff;
  width: 100%;
  max-height: 78%;
  border-radius: 22px 22px 0 0;
  padding: 8px 14px 20px;
  overflow: auto;
}
.sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.notif-item, .search-hit {
  display: flex;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.chip {
  display: inline-flex;
  min-width: 18px;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  padding: 1px 6px;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.filters button,
.filters a {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
}

.filters button.is-on,
.filters a.is-on {
  background: var(--teal);
  color: #fff;
}

.quick-hero { text-align: center; padding: 18px 8px 8px; }
.quick-hero h1 { font-size: 26px; margin: 0 0 8px; }
.btn-xl {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  font-size: 16px;
  margin-top: 18px;
}

.chat-layout { display: flex; flex-direction: column; height: 100%; padding: 0; background: #fff; }
.chat-list, .thread { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
#chat-list-rows,
#call-list-rows {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.chat-row,
.call-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef2f2;
  align-items: center;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.chat-row:active,
.call-row:active { background: #f6f8f8; }
.chat-row__avatar,
.call-row__avatar {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.chat-row__avatar img,
.call-row__avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.chat-row__avatar .online-dot {
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
}
.chat-row__body,
.call-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chat-row__name,
.call-row__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-row__preview,
.call-row__line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: #667781;
  line-height: 1.3;
}
.chat-row__preview span,
.call-row__line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-row__line svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.call-row__line.is-missed { color: #c62828; }
.call-row__line.is-ok { color: #128c7e; }
.chat-row__meta,
.call-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 52px;
}
.chat-row__time,
.call-row__time {
  font-size: 12px;
  color: #667781;
  white-space: nowrap;
  font-weight: 600;
}
.call-back {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e8f5f1;
  color: #128c7e;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.call-back:active { background: #d4efe8; }
.call-back[disabled] { opacity: 0.4; pointer-events: none; }
.row-del {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fdecea;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.row-del:active { background: #f8d7d4; }
.thread-del { color: #c62828 !important; }
.listing-search { margin-bottom: 8px; }

.unread {
  background: var(--orange);
  color: #fff;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
}

.call-time-chip,
.call-left-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 12px;
  background: #e7f4f2;
  color: #0e524c;
  font-size: 12px;
  font-weight: 800;
}
.call-time-chip span,
.call-left-bar span {
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
}
.call-time-chip b,
.call-left-bar b { color: #176F67; }
.call-time-chip .is-out,
.call-left-bar .is-out { color: #c62828; background: #fdecea; }
.call-time-chip .is-out b,
.call-left-bar .is-out b { color: #c62828; }
.call-left-mini {
  margin: 4px 0 2px;
  font-size: 12px;
  font-weight: 800;
  color: #176F67;
}
.call-left-note {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #7CFFB2;
}

.thread-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.thread-head__who {
  flex: 1;
  min-width: 0;
}
.thread-head__who strong,
.thread-head__who .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-head__calls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.thread-head__calls[hidden],
.thread-head__select[hidden] { display: none !important; }
.thread-head__select {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.thread-head__select strong { color: #176F67; min-width: 1.2em; text-align: center; }
.thread-more { position: relative; }
.thread-more__menu {
  position: absolute;
  right: 0;
  top: 42px;
  min-width: 168px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  z-index: 30;
  overflow: hidden;
}
.thread-more__menu[hidden] { display: none !important; }
.thread-more__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}
.thread-more__menu button:active { background: #f4f6f6; }
.bubble.is-selected { box-shadow: inset 0 0 0 2px #1b635a; }
.thread.is-selecting .bubble { cursor: pointer; }
.thread-call-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #176F67;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.thread-call-btn:active { background: #E8F5F1; }
.thread-call-btn[disabled] { opacity: 0.4; pointer-events: none; }

.messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
}

.bubble--me {
  margin-left: auto;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble--them {
  background: #fff;
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
}

.bubble time { opacity: 0.75; font-size: 10px; margin: 0; }
.bubble__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 4px;
}
.bubble--them .bubble__meta { justify-content: flex-start; }
.ticks {
  font-size: 13px;
  letter-spacing: -3px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}
.ticks--read { color: #53bdeb; }
.chat-photo {
  display: block;
  max-width: min(220px, 70vw);
  max-height: 280px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 4px;
}
.chat-photo-link { display: block; }
.chat-caption { word-break: break-word; }
.chat-list-title {
  font-size: 18px;
  margin: 0;
  padding: 14px 16px 8px;
}
.composer {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
  align-items: center;
}
.attach-btn { padding: 4px; }

.composer input:not([type="file"]) {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.typing {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 16px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.typing[hidden] { display: none !important; }
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f3f1;
  border-radius: 14px;
  padding: 8px 10px;
}
.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #176F67;
  opacity: 0.35;
  animation: typingBounce 1.1s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: 0.18s; }
.typing-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-4px); opacity: 1; }
}

body.call-body {
  background: #0b141a;
}
body.call-body .app-shell {
  background: #0b141a;
  background-image: none;
}
body.call-body .app-main {
  padding: 0;
  overflow: hidden;
}

.call-stage {
  position: relative;
  background: #0b141a;
  color: #fff;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
}

#remote-video, #local-video {
  background: #111;
  object-fit: cover;
}

#remote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.call-stage.is-live:not(.call-stage--voice) #remote-video { opacity: 1; }

#local-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0.35;
}
.call-stage.is-live #local-video {
  inset: auto;
  top: 18px;
  right: 14px;
  width: 104px;
  height: 142px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.85);
  opacity: 1;
  z-index: 4;
}
#remote-audio,
.call-stage--voice #remote-video {
  position: absolute;
  width: 2px;
  height: 2px;
  opacity: 0.01;
  pointer-events: none;
  z-index: 0;
}
.call-stage--voice #local-video,
.call-stage.is-cam-off #local-video { display: none; }
.call-stage.is-clip:not(.call-stage--voice):not(.is-cam-off) #local-video {
  display: block;
  inset: auto;
  right: 14px;
  bottom: 118px;
  width: 108px;
  height: 148px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.9);
  opacity: 1;
  z-index: 7;
  transform: scaleX(-1);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.call-stage.is-clip.is-live #remote-video { opacity: 1; }

.call-sleep {
  position: absolute;
  inset: 0;
  z-index: 50;
  border: 0;
  padding: 0;
  margin: 0;
  background: #000;
  cursor: pointer;
}
.call-sleep[hidden] { display: none !important; }
.call-stage.is-asleep .call-top,
.call-stage.is-asleep .call-bar,
.call-stage.is-asleep .call-face,
.call-stage.is-asleep .call-shade { opacity: 0; }

.call-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(11,20,26,.55) 0%, rgba(11,20,26,.15) 28%, rgba(11,20,26,.2) 58%, rgba(11,20,26,.88) 100%);
  pointer-events: none;
}
.call-stage.is-live:not(.call-stage--voice) .call-shade {
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, transparent 28%, transparent 62%, rgba(0,0,0,.72) 100%);
}

.call-face {
  position: absolute;
  left: 0; right: 0;
  top: 38%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  justify-content: center;
}
.call-face img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}
.call-stage.is-waiting .call-face img {
  animation: ringPulse 1.6s ease-in-out infinite;
}
.call-stage.is-live:not(.call-stage--voice):not(.is-cam-off) .call-face { display: none; }
.call-stage[data-state="busy"] .call-face img { box-shadow: 0 0 0 6px rgba(255,183,77,.28); }
.call-stage[data-state="noanswer"] .call-face img { box-shadow: 0 0 0 6px rgba(234,67,53,.28); }

.call-top {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 6;
  padding: 18px 16px 0;
  text-align: center;
}
.call-mini {
  position: absolute;
  left: 10px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.call-enc {
  margin: 8px 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 700;
}
.call-top h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}
#call-status {
  margin: 8px 0 0;
  font-size: 15px;
  color: #8696a0;
  font-weight: 600;
}
#call-timer {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #d1d7db;
}
#call-timer[hidden],
#call-status[hidden] { display: none; }
.call-detail {
  margin: 8px auto 0;
  max-width: 260px;
  font-size: 13px;
  color: #8696a0;
}
.call-detail:empty,
.call-detail[hidden] { display: none; }
.call-stage[data-state="busy"] #call-status { color: #FFB74D; }
.call-stage[data-state="noanswer"] #call-status { color: #FF8A80; }

.call-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  padding: 18px 22px 28px;
}
.call-controls {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 10px;
}
.call-btn {
  width: auto;
  min-width: 64px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.call-btn svg {
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  box-sizing: border-box;
}
.call-btn span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.78);
}
.call-btn.is-off svg { background: #fff; color: #111; }
.call-btn.is-on svg { background: #fff; color: #111; }
.call-btn.is-earpiece svg { background: #263238; color: #fff; }
.call-btn--end svg { background: #e54b4b; color: #fff; }

.map-canvas {
  position: relative;
  height: 420px;
  background: #CDE6DF;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
}

.map-pin img {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

.preview-card {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.stories-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 16px;
}

.story-orb {
  width: 74px;
  text-align: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  font-size: 11px;
}

.story-orb img {
  width: 64px; height: 64px; border-radius: 50%;
  padding: 3px;
  border: 2.5px solid var(--orange);
  margin: 0 auto 6px;
}

.story-orb.is-seen img { border-color: #B0BEC5; }

.story-viewer {
  position: absolute; inset: 0; z-index: 30;
  background: #111;
  color: #fff;
  display: flex; flex-direction: column;
}

.story-progress { display: flex; gap: 4px; padding: 10px; }
.story-progress i {
  flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 4px; overflow: hidden;
}
.story-progress i span { display: block; height: 100%; background: #fff; width: 0; }

.story-frame { flex: 1; position: relative; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; }
.story-caption {
  position: absolute; left: 16px; right: 16px; bottom: 28px;
  font-size: 20px; font-weight: 800;
}

.toast {
  position: absolute;
  left: 16px; right: 16px; bottom: 18px;
  background: #1B2B29;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  z-index: 40;
  font-size: 13px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.stat b { display: block; font-size: 22px; }
.table-wrap { overflow: auto; background: #fff; border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}

.bell-btn .badge-dot { top: 6px; right: 6px; }

.incoming-body { background: #070707; }
.incoming-body .app-shell { background: #0B0B0B; }
.incoming-screen, .verify-screen, .pick-screen {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px 28px;
  position: relative;
}

.incoming-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, #1c3a52 0%, transparent 42%),
    linear-gradient(180deg, #0e1a24 0%, #070b10 100%);
}

.incoming-card, .verify-card, .pick-card {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  color: #fff;
}

.incoming-avatar-wrap, .pick-avatar-wrap {
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
  position: relative;
}

.incoming-avatar, .pick-avatar-wrap img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3da9ff;
  box-shadow: 0 0 0 10px rgba(61, 169, 255, 0.18);
}

.incoming-dot { width: 16px; height: 16px; right: 8px; bottom: 8px; }
.incoming-card h1, .pick-card h1 { margin: 0 0 8px; font-size: 28px; }
.incoming-line { color: #8ec8ff; font-weight: 700; margin: 0 0 6px; }
.incoming-sub { color: #c9d3d8; margin: 0 0 28px; }
.incoming-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.incoming-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.incoming-btn span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.incoming-btn.decline span { background: #E53935; }
.incoming-btn.message span { background: #5c6370; }
.incoming-btn.accept span { background: #1E88FF; }

.verify-screen { background: rgba(0,0,0,.55); }
.verify-card {
  background: #141414;
  border: 2px solid #F4D03F;
  border-radius: 22px;
  padding: 22px 16px 18px;
  box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.25);
}
.verify-card h1 { margin: 0 0 10px; font-size: 26px; }
.verify-lead { color: #F4D03F; font-weight: 800; margin: 0 0 8px; }
.verify-hi { color: #cfcfcf; font-size: 13px; margin: 0 0 16px; }
.verify-input {
  width: 100%;
  border: 1.5px solid #444;
  background: #1c1c1c;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-size: 16px;
}
.verify-go {
  width: 100%;
  border: 0;
  background: #F4D03F;
  color: #111;
  font-weight: 800;
  border-radius: 14px;
  min-height: 48px;
  cursor: pointer;
}

.pick-card {
  background: #111;
  border: 3px solid #F4D03F;
  border-radius: 28px;
  padding: 22px 16px 16px;
}
.pick-avatar-wrap img { border-color: #F4D03F; box-shadow: none; }
.pick-online { color: #F4D03F; font-weight: 800; margin: 0 0 6px; }
.pick-sub { color: #bbb; margin: 0 0 16px; }
.pick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111;
}
.pick-btn.public { background: #F4D03F; }
.pick-btn.private { background: #1E88FF; color: #fff; }
.pick-btn.vvip { background: #F9A825; }
.pick-btn.verify {
  background: transparent;
  color: #F4D03F;
  border: 1.5px dashed #F4D03F;
  font-size: 13px;
}
.pick-btn.cancel { background: #3a3a3a; color: #fff; }
.pick-note {
  border: 1.5px dashed #F4D03F;
  border-radius: 14px;
  padding: 10px;
  color: #eee;
  font-size: 12px;
  margin: 8px 0 10px;
}

.sub-header {
  padding: 10px 16px 6px;
  font-size: 14px;
  font-weight: 800;
  color: #d32f2f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.state-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 10px;
}
.state-bar label {
  font-size: 13px;
  font-weight: 800;
  color: #176F67;
}
.state-bar select {
  flex: 1;
  border: 1px solid #d7e6e4;
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  background: #fff;
  color: #171717;
}
.seek-switch {
  border: 0;
  background: #176F67;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.seek-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.seek-actions .public-btn { margin-top: 18px; }
.seek-actions .seek-man { background: #1565C0; }
.state-count {
  font-size: 12px;
  font-weight: 800;
  color: #176F67;
  white-space: nowrap;
}

.urgent-pill {
  background: #ffebee;
  color: #c62828;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  animation: pulse 1s infinite;
}

.seek-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 10px;
  flex-shrink: 0;
}
.seek-bar__label {
  font-size: 13px;
  font-weight: 800;
  color: #176F67;
}
.seek-bar__picks { display: flex; gap: 6px; flex: 1; }
.seek-pick {
  border: 1px solid #d7e6e4;
  background: #fff;
  color: #176F67;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.seek-pick.is-on { background: #176F67; color: #fff; border-color: #176F67; }
.feed-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1px 8px 20px;
  -webkit-overflow-scrolling: touch;
}

.feed-card {
  background: #fff;
  border-radius: 18px;
  padding: 10px 8px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feed-card.missed-shake {
  animation: shake 0.4s ease-in-out;
  border: 2px solid #d32f2f !important;
}

.feed-card.fade-out {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  transform: translateY(-20px) scale(0.95);
  border: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.progress-border {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #00C853, #FFCC00, #FF0055);
  transition: width 1s linear;
}

.avatar-wrapper { position: relative; flex-shrink: 0; }
.feed-card .avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #D4AF37;
}

.feed-card .content { flex: 1; min-width: 0; }
.feed-card .name {
  font-size: 18px;
  font-weight: 800;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-badge {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ff9800;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 3px;
}

.booking-badge.urgent {
  background: #ffebee;
  color: #c62828;
  border-color: #f44336;
  animation: pulse 0.8s infinite;
}

.booking-badge.missed {
  background: #d32f2f;
  color: #fff;
  border-color: #b71c1c;
  animation: none;
  white-space: normal;
  line-height: 1.25;
}

.info-row {
  margin-top: 4px;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-text { font-weight: 700; color: #111; }
.msg-desc {
  margin-top: 3px;
  font-size: 12px;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.btn-pill {
  border: none;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-video-call { background: #00C853; }
.btn-open-chat { background: #D84315; }
.btn-pill svg { width: 13px; height: 13px; fill: #fff; }

.home-line {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  border-radius: 20px;
  background: #ccc;
  z-index: 2;
}

.hot-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 50;
  padding: 20px;
}

.hot-box {
  width: 100%;
  max-width: 340px;
  background: #111;
  border-radius: 32px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  animation: popup .25s ease;
  border: 2px solid #FFFC00;
  box-shadow: 0 0 35px rgba(255, 252, 0, 0.2);
}

@keyframes popup {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hot-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFFC00;
  margin: 0 auto;
}

.hot-online {
  position: absolute;
  top: 108px;
  left: 50%;
  margin-left: 32px;
  width: 18px;
  height: 18px;
  border: 3px solid #111;
}

.hot-name { color: #fff; margin-top: 16px; font-size: 26px; font-weight: 800; }
.hot-status { color: #FFFC00; margin-top: 6px; font-size: 14px; font-weight: 700; }
.hot-desc { color: #bbb; font-size: 13px; margin-top: 10px; line-height: 1.5; }

.payment-note {
  background: rgba(255, 252, 0, 0.1);
  border: 1px dashed #FFFC00;
  color: #fff;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  margin-top: 15px;
  font-weight: 600;
}

.public-btn, .private-btn, .changing-btn, .close-btn {
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: 16px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.public-btn { background: #FFFC00; color: #000; }
.private-wrap { display: block; position: relative; margin-top: 14px; }
.private-wrap .private-btn { margin-top: 0; animation: cpaPulse 1.6s ease-in-out infinite; }
.private-btn { background: #00b6ff; color: #fff; }
.changing-btn { background: linear-gradient(135deg, #FFD700, #FFC107); color: #000; }
.close-btn { background: #2b2b2b; color: #fff; }

@keyframes cpaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 198, 255, 0.6); }
  50% { transform: scale(1.04); box-shadow: 0 0 28px rgba(0, 198, 255, 1); }
}

.cpa-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF0055;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 10px;
  z-index: 2;
}

.mobile-input-field {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #FFFC00;
  background: #222;
  color: #fff;
  font-size: 16px;
  text-align: center;
  margin-top: 15px;
  outline: none;
}
.mobile-input-field::placeholder { color: #777; }

@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255,255,255,.12); }
  50% { box-shadow: 0 0 0 18px rgba(255,255,255,.04); }
}

.admin-ring {
  position: absolute;
  inset: 0;
  z-index: 120;
  background: rgba(4, 10, 9, .94);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 16px 28px;
  overflow-y: auto;
}
.admin-ring[hidden] { display: none !important; }
.admin-ring__card {
  position: relative;
  width: min(360px, 100%);
  text-align: center;
  color: #fff;
  padding: 28px 12px 12px;
  margin: auto 0 8px;
}
.admin-ring__card img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #7CFFB2;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}
.admin-ring__pulse {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 132px;
  height: 132px;
  margin-left: -66px;
  border-radius: 50%;
  border: 2px solid rgba(124,255,178,.45);
  animation: ringPulse 1.4s ease-out infinite;
}
.admin-ring__as { color: #9ad7c8; margin: 14px 0 4px; }
.admin-ring__card h2 { margin: 0 0 6px; font-size: 26px; }
.admin-ring__timer {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: #FFCC80;
}
.admin-ring__voices-label {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #9ad7c8;
}
.admin-ring__voices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.admin-voice {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 12px;
  padding: 8px 6px 7px;
  cursor: pointer;
  line-height: 1.2;
}
.admin-voice strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.admin-voice span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #9ad7c8;
}
.admin-voice.is-on {
  background: #00C853;
  border-color: #00C853;
  color: #06210f;
}
.admin-voice.is-on span { color: #14532d; }
.call-voice-tag {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #7CFFB2;
}
.admin-ring__actions {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  position: relative;
  z-index: 5;
  width: 100%;
}
.admin-ring__act {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.admin-ring__act i {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-style: normal;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.admin-ring__act--decline i { background: #E53935; }
.admin-ring__act--accept i { background: #00C853; }
.op-ring-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-wait-chip {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.admin-wait-chip[hidden] { display: none; }
.admin-wait-chip a {
  color: #7CFFB2;
  font-weight: 800;
  text-decoration: none;
}

.op-banner {
  margin: 0;
  padding: 8px 12px;
  background: #fff8e1;
  color: #6d4c00;
  font-size: 12px;
  font-weight: 700;
}
.op-actions, .op-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-nav { margin-bottom: 14px; }

.crop-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #101918;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.crop-overlay[hidden] { display: none !important; }
.crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #1B635A;
  flex-shrink: 0;
}
.crop-text-btn {
  background: none;
  border: 0;
  color: #fff;
  font-weight: 800;
  padding: 8px 4px;
}
.crop-text-btn--ok { color: #b7ff6a; }
.crop-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px;
}
.crop-viewport {
  width: min(92vw, 390px);
  aspect-ratio: 1;
  max-height: 56vh;
  overflow: hidden;
  background: #000;
  position: relative;
  touch-action: none;
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.45);
}
.crop-viewport.is-45 { aspect-ratio: 4 / 5; }
.crop-viewport.is-169 { aspect-ratio: 16 / 9; }
.crop-viewport.is-free {
  aspect-ratio: auto;
  width: min(92vw, 390px);
  height: min(56vh, 420px);
}
.crop-viewport img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.crop-tools {
  padding: 10px 14px 16px;
  display: grid;
  gap: 10px;
  background: #16332f;
  flex-shrink: 0;
}
.crop-ratios {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.crop-ratios button {
  background: #234843;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
}
.crop-ratios button.is-on { background: #1B635A; }
.crop-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crop-icon-btn {
  background: #234843;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  white-space: nowrap;
}
.crop-zoom-label {
  flex: 1;
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #cfe8e3;
}
.crop-zoom-label input { width: 100%; }
.crop-tools #crop-caption {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.grant-box {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line, #d7e6e4);
  border-radius: 12px;
  background: #f7fbfb;
}
.grant-box summary {
  cursor: pointer;
  font-weight: 700;
  color: #176F67;
}
.grant-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  max-height: 160px;
  overflow: auto;
}
.grant-list label,
.grant-box > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.pwa-install {
  color: #FFFC00;
}
.app-shell--auth .pwa-install,
body.call-body .pwa-install {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 40;
  background: #176F67;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.pwa-tip {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}
.pwa-tip[hidden] { display: none; }
.pwa-tip__box {
  width: min(360px, 100%);
  background: #fff;
  color: #171717;
  border-radius: 18px;
  padding: 16px;
}
.pwa-tip__box p { margin: 0 0 12px; line-height: 1.45; }

.join-page { padding: 16px 16px 28px; }
.join-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 10px 28px rgba(23, 111, 103, 0.08);
}
.join-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.join-card h1 {
  margin: 8px 0 6px;
  font-size: 26px;
  letter-spacing: -0.4px;
}
.join-lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}
.join-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: 14px;
  line-height: 1.4;
}
.join-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}
.join-login {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
}
.join-login a { color: var(--teal); font-weight: 800; }
.auth-install-bar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px 0;
}
.auth-install-bar:has(#pwa-install[hidden]) { display: none; }
.auth-install-bar .pwa-install {
  position: static;
  width: 44px;
  height: 44px;
  background: #176F67;
  color: #FFFC00;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(23, 111, 103, 0.22);
}
