:root {
  --bg: #edf6f8;
  --surface: #fff;
  --ink: #0b1730;
  --muted: #607084;
  --line: #cfe1e8;
  --graphite: #06142b;
  --graphite-2: #12345b;
  --teal: #09d7d9;
  --teal-dark: #057f91;
  --coral: #ff675f;
  --success: #20b877;
  --shadow: 0 18px 45px rgba(6, 31, 57, 0.14);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -12%, rgba(9, 215, 217, 0.18) 0, transparent 30%),
    radial-gradient(circle at 96% 4%, rgba(255, 103, 95, 0.12) 0, transparent 25%),
    var(--bg);
}
button,
a {
  font: inherit;
}
.app-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: auto;
  background: rgba(247, 252, 253, 0.88);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(9, 215, 217, 0.24);
  background: linear-gradient(105deg, rgba(6, 20, 43, 0.98), rgba(18, 52, 91, 0.96));
  backdrop-filter: blur(18px);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  font-size: 20px;
  letter-spacing: -0.04em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.brand span span {
  color: var(--teal);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.install-button {
  border: 1px solid rgba(9, 215, 217, 0.4);
  border-radius: 999px;
  background: rgba(9, 215, 217, 0.12);
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
}
.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 18px 0 30px;
}
.dashboard-shortcuts button {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  border: 1px solid rgba(5, 127, 145, 0.2);
  border-radius: 17px;
  padding: 13px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(6, 31, 57, 0.08);
}
.dashboard-shortcuts span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(9, 215, 217, 0.18), rgba(9, 215, 217, 0.07));
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 900;
}
.dashboard-shortcuts button:nth-child(2) span,
.dashboard-shortcuts button:nth-child(4) span {
  background: linear-gradient(145deg, rgba(255, 103, 95, 0.18), rgba(255, 103, 95, 0.07));
  color: #c53f3a;
}
.dashboard-shortcuts strong { font-size: 13px; align-self: end; }
.dashboard-shortcuts small { color: var(--muted); font-size: 10px; align-self: start; }
.coin-pill,
.icon-button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.coin-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
}
.coin-dot {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--teal);
  color: #082f33;
  font-weight: 900;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
main {
  padding: clamp(20px, 4vw, 44px) clamp(15px, 4vw, 44px) 112px;
}
.view {
  display: none;
  animation: enter 0.25s ease;
}
.view.active {
  display: block;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.welcome-row,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.welcome-row h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: -0.05em;
}
.online-count {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dff7ed;
  color: #14764f;
  font-size: 13px;
  font-weight: 750;
}
.online-count i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(32, 184, 119, 0.13);
}
.balance-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 26px 0 38px;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(9, 215, 217, 0.22);
  background:
    radial-gradient(circle at 12% 130%, rgba(9, 215, 217, 0.28), transparent 38%),
    radial-gradient(circle at 98% -20%, rgba(255, 103, 95, 0.2), transparent 34%),
    linear-gradient(125deg, var(--graphite), var(--graphite-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.balance-card p {
  margin: 0 0 8px;
  color: #aeb8c3;
  font-size: 12px;
}
.balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.balance > span {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.balance small {
  color: var(--teal);
}
.time-balance {
  padding-left: 24px;
  border-left: 1px solid #3a4651;
}
.time-balance strong {
  display: block;
  font-size: 22px;
}
.time-balance small {
  display: block;
  margin-top: 4px;
  color: #8e9aa6;
  font-size: 11px;
}
.balance-card button,
.primary-link {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #13e2dc, var(--teal));
  color: #07383b;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}
.section-heading h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}
.filter-button {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 9px 14px;
  font-weight: 700;
}
.quick-filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 16px 0 18px;
}
.quick-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 8px 15px;
  color: var(--muted);
  font-weight: 750;
}
.quick-filters button.active {
  border-color: var(--graphite-2);
  background: linear-gradient(135deg, var(--graphite), var(--graphite-2));
  color: #fff;
}
.host-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.host-card {
  overflow: hidden;
  border: 1px solid rgba(5, 127, 145, 0.18);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(6, 31, 57, 0.09);
}
.host-photo {
  position: relative;
  aspect-ratio: 1.32;
  background:
    radial-gradient(circle at 15% 100%, rgba(9, 215, 217, 0.24), transparent 40%),
    linear-gradient(145deg, var(--graphite-2), var(--graphite));
  overflow: hidden;
}
.host-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.host-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 52px;
  font-weight: 900;
}
.host-status {
  position: absolute;
  left: 12px;
  bottom: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(13, 18, 24, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.host-status.online:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #29dc93;
}
.like-button {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #37414b;
  font-size: 22px;
}
.like-button.liked {
  color: var(--coral);
}
.host-copy {
  padding: 15px;
}
.host-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.host-name-row h3 {
  margin: 0;
  font-size: 18px;
}
.host-name-row span {
  color: var(--muted);
  font-size: 12px;
}
.host-language {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #edf0f2;
}
.rate-row strong {
  font-size: 14px;
}
.rate-row small {
  color: var(--muted);
}
.call-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}
.call-actions button {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f5f7f8;
  padding: 10px 6px;
  font-weight: 800;
}
.call-actions .video-call {
  border-color: var(--graphite-2);
  background: linear-gradient(135deg, var(--graphite), var(--graphite-2));
  color: #fff;
}
.empty-card {
  grid-column: 1/-1;
  padding: 45px;
  border: 1px dashed #cbd1d7;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
}
.page-heading {
  margin-bottom: 25px;
}
.page-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}
.wallet-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(9, 215, 217, 0.22);
  background:
    radial-gradient(circle at 95% 0, rgba(255, 103, 95, 0.2), transparent 38%),
    linear-gradient(135deg, var(--graphite), var(--graphite-2));
  color: #fff;
}
.wallet-summary > span,
.wallet-summary small {
  color: #9da9b5;
}
.wallet-summary strong {
  font-size: 32px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.plan-card strong {
  display: block;
  font-size: 22px;
}
.plan-card span {
  color: var(--muted);
}
.primary-link {
  display: block;
  margin-top: 20px;
}
.safe-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}
.profile-card h2 {
  margin: 0;
}
.profile-card p {
  margin: 5px 0;
  color: var(--muted);
}
.verified-chip {
  font-size: 11px;
  font-weight: 800;
  color: #14764f;
}
.settings-list {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.settings-list button,
.settings-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 17px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  text-align: left;
}
.settings-list button:last-child,
.settings-list label:last-child {
  border-bottom: 0;
}
.settings-list b {
  color: #9aa3ac;
  font-size: 22px;
}
.settings-list .logout {
  color: #c43f37;
}
.call-view {
  padding: 0;
}
.call-stage {
  position: relative;
  min-height: calc(100vh - 190px);
  overflow: hidden;
  border-radius: 26px;
  background: #111820;
  color: #fff;
}
.call-stage > video:first-child {
  width: 100%;
  height: calc(100vh - 190px);
  object-fit: cover;
}
.remote-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #30404b, #111820);
}
.remote-placeholder h2 {
  margin: 14px 0 5px;
}
.remote-placeholder p {
  margin: 0;
  color: #9eabb6;
}
.call-avatar {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  font-size: 34px;
  font-weight: 900;
}
.local-video {
  position: absolute;
  right: 16px;
  top: 65px;
  width: 105px;
  height: 145px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: #222;
}
.call-topline {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  display: flex;
  justify-content: space-between;
}
.secure-badge,
.call-timer,
.call-balance {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  font-size: 12px;
}
.secure-badge {
  color: #96ffe5;
}
.call-balance {
  position: absolute;
  bottom: 98px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.call-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.call-controls button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 62px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.call-controls span {
  font-size: 19px;
}
.call-controls small {
  margin-top: 4px;
  font-size: 9px;
}
.call-controls .end-call {
  background: #ef4f49;
}
.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(1180px, 100%);
  padding: 8px max(8px, env(safe-area-inset-right))
    calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(5, 127, 145, 0.22);
  background: rgba(250, 254, 255, 0.96);
  backdrop-filter: blur(18px);
}
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: #7b858e;
}
.bottom-nav span {
  font-size: 20px;
}
.bottom-nav small {
  font-size: 10px;
  font-weight: 750;
}
.bottom-nav button.active {
  color: #07577a;
  font-weight: 850;
}
.bottom-nav .call-nav span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -18px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
}
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 95px;
  transform: translate(-50%, 20px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #111820;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 820px) {
  .host-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balance-card {
    grid-template-columns: 1fr 1fr;
  }
  .balance-card button {
    grid-column: 1/-1;
  }
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  main {
    padding-top: 22px;
  }
  .install-button { padding: 7px 10px; font-size: 11px; }
  .dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-row {
    align-items: flex-start;
  }
  .welcome-row h1 {
    font-size: 28px;
  }
  .online-count {
    padding: 7px 9px;
  }
  .balance-card {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
    padding: 21px;
  }
  .time-balance {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid #3a4651;
  }
  .balance-card button {
    grid-column: auto;
  }
  .host-grid {
    grid-template-columns: 1fr;
  }
  .host-photo {
    aspect-ratio: 1.55;
  }
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bottom-nav small {
    font-size: 9px;
  }
  .bottom-nav span {
    font-size: 18px;
  }
  .call-stage {
    min-height: calc(100vh - 155px);
    border-radius: 0;
    margin: -22px -15px 0;
  }
  .call-stage > video:first-child {
    height: calc(100vh - 155px);
  }
}
@media (display-mode: standalone) {
  .install-button,
  #settingsInstall {
    display: none;
  }
}
.remote-media {
  position: absolute;
  inset: 0;
}
.remote-media > div,
.remote-media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.remote-media.has-media + .remote-placeholder {
  display: none;
}
[hidden] {
  display: none !important;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
.topbar > * {
  min-width: 0;
}
@media (max-width: 430px) {
  .top-actions .icon-button {
    display: none;
  }
  .brand {
    font-size: 18px;
  }
  .coin-pill {
    padding: 6px 9px;
  }
  .bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .bottom-nav button {
    min-width: 0;
    padding: 1px;
  }
  .bottom-nav small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
