/* 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(4, 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: 13px !important;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.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.15;
  font-size: 11px !important;
}

.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; }

.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; }
.chat-list, .thread { display: flex; flex-direction: column; height: 100%; }
.chat-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.unread {
  background: var(--orange);
  color: #fff;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
}

.thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.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; }
}

.call-stage {
  position: relative;
  background: #0B1211;
  color: #fff;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

#remote-video, #local-video {
  background: #111;
  object-fit: cover;
}

#remote-video { width: 100%; height: 100%; }
#local-video {
  position: absolute;
  width: 108px;
  height: 148px;
  right: 12px;
  top: 18px;
  border-radius: 16px;
  border: 2px solid #fff;
  object-fit: cover;
  z-index: 3;
}

.call-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px 22px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  z-index: 6;
}

.call-status { text-align: center; margin-bottom: 12px; }
.call-controls { display: flex; justify-content: space-between; gap: 8px; }
.call-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; color: #fff; background: rgba(255,255,255,.16);
  cursor: pointer; font-size: 18px;
}
.call-btn.is-off { background: #fff; color: var(--text); }
.call-btn.end { background: var(--orange); }

.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;
}

.urgent-pill {
  background: #ffebee;
  color: #c62828;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  animation: pulse 1s infinite;
}

.feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 1px 8px 20px;
}

.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;
}

.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; }

.voice-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 30%, #1c3a52 0%, #070b10 70%);
  color: #fff;
  z-index: 1;
}
.voice-face img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3da9ff;
}
.voice-face strong { font-size: 22px; }
.voice-face span { color: #8ec8ff; font-weight: 700; }
.call-stage--voice #remote-video { opacity: 0; }

.call-wait {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px 120px;
  background: radial-gradient(circle at 50% 28%, #1a4a42 0%, #07110f 72%);
  color: #fff;
  text-align: center;
}
.call-wait[hidden] { display: none; }
.call-wait img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #7CFFB2;
  box-shadow: 0 0 0 10px rgba(124,255,178,.15);
  animation: ringPulse 1.6s ease-in-out infinite;
}
.call-wait strong { font-size: 22px; }
.call-wait span {
  font-size: 18px;
  font-weight: 800;
  color: #7CFFB2;
}
.call-wait[data-state="busy"] span { color: #FFB74D; }
.call-wait[data-state="busy"] img { border-color: #FFB74D; }
.call-wait p {
  max-width: 280px;
  margin: 4px 0 0;
  color: #c9d3d8;
  font-size: 14px;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(124,255,178,.12); }
  50% { box-shadow: 0 0 0 16px rgba(124,255,178,.05); }
}

.admin-ring {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 10, 9, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-ring[hidden] { display: none; }
.admin-ring__card {
  position: relative;
  width: min(360px, 100%);
  text-align: center;
  color: #fff;
  padding: 28px 20px 24px;
}
.admin-ring__card img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #7CFFB2;
  position: relative;
  z-index: 1;
}
.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__actions { margin-top: 22px; display: flex; justify-content: center; }
.admin-ring .incoming-btn {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.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;
}
