/* =================================
   RANDOMMEET - NATIVE ANDROID SHELL
   Loaded after style.css. Deep navy + electric cyan, 5-tab layout.
   Animations only use transform/opacity so they stay on the GPU.
================================= */

:root {
  --bg: #060b19;
  --bg-2: #0d172a;
  --surface: rgba(15, 23, 42, 0.88);
  --surface-solid: #0f172a;
  --line: rgba(148, 163, 184, 0.16);
  --accent: #00d2ff;
  --accent-2: #0080ff;
  --accent-grad: linear-gradient(135deg, #00d2ff, #0080ff);
  --danger: #ff3b4e;
  --sat: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --nav-h: calc(64px + var(--sab));
  --header-h: 56px;
}

/* ---------- global behaviour ---------- */

html {
  background: #060b19;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #060b19;
  overflow-x: clip;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  padding-bottom: var(--nav-h);
  font-family: Roboto, "Segoe UI", system-ui, Arial, sans-serif;
}

body.matching-view,
body.kbd-open {
  padding-bottom: 0;
}

button,
a,
.nav-tab {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

video {
  transform: translateZ(0);
  will-change: transform;
  object-fit: cover;
}

/* Lightweight surfaces instead of blur on lists and bars */
.navbar,
.bottom-nav,
.friends-page *,
.discover-page *,
.wallet-page *,
.profile-page *,
.landing-page * {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */

.account-menu-wrap,
#homeFeatures,
footer {
  display: none !important;
}

body > .navbar {
  position: sticky;
  top: 0;
  z-index: 700;
  height: calc(var(--header-h) + var(--sat));
  padding: var(--sat) 16px 0;
  background: #060b19;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}

body:not([data-tab="discover"]):not([data-tab="match"]) > .navbar {
  display: none;
}

.navbar .logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar .nav-right {
  margin-left: auto;
  gap: 8px;
}

.coin-balance:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  color: #7ee8ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
}

.coin-balance:not([hidden])::before {
  content: "\1FA99";
}

.navbar .coin-add {
  min-width: 34px;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #031022;
}

.navbar .coin-add svg {
  width: 18px;
  height: 18px;
}

.navbar .login-btn {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #031022;
  font-weight: 700;
}

.container {
  max-width: 560px;
  padding: 0;
}

.page-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
}

.section-title {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.ghost-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: #e2e8f0;
}

/* ---------- bottom navigation ---------- */

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: flex;
  height: var(--nav-h);
  padding-bottom: var(--sab);
  background: #0a1122;
  border-top: 1px solid var(--line);
}

body.matching-view .bottom-nav,
body.kbd-open .bottom-nav,
body:has(#profileBox:not([hidden])) .bottom-nav,
body.auth-modal-open .bottom-nav {
  display: none;
}

.nav-tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #71819e;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s;
}

.nav-tab.is-active {
  color: var(--accent);
}

.nav-tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent-grad);
}

.nav-tab.is-active svg {
  filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.55));
}

body.feature-discover-off .nav-tab[data-tab="discover"],
body.feature-discover-off .discover-page,
body.feature-friends-off .nav-tab[data-tab="friends"],
body.feature-wallet-off .nav-tab[data-tab="wallet"],
body.feature-wallet-off #coinBalance,
body.feature-wallet-off #coinAddBtn,
body.premium-hidden .wallet-premium-card,
body.premium-hidden #profilePremiumBtn {
  display: none !important;
}

.config-banner {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  right: 0;
  left: 0;
  z-index: 1500;
  padding: 8px 14px;
  background: #0b3a55;
  color: #e6f7ff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.config-banner[hidden] {
  display: none;
}

.config-banner[data-tone="promo"] {
  background: linear-gradient(90deg, #00d2ff, #0080ff);
  color: #04101f;
}

.config-banner[data-tone="warning"] {
  background: #7a4a00;
  color: #fff3d6;
}

.config-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #060b19;
}

.config-overlay[hidden] {
  display: none;
}

.config-overlay-card {
  max-width: 360px;
  padding: 28px 24px;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 20px;
  background: #0f172a;
  color: #e6edf7;
  text-align: center;
}

.config-overlay-card h2 {
  margin: 0 0 10px;
  color: #00d2ff;
}

.config-overlay-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d2ff, #0080ff);
  color: #04101f;
  font-weight: 700;
  text-decoration: none;
}

body.config-blocked {
  overflow: hidden;
}

.ac-users,
.ac-interests {
  display: grid;
  gap: 8px;
}

.ac-interests {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.ac-user {
  display: grid;
  grid-template-columns: 1fr 60px 60px;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ac-user input,
.ac-user select {
  min-width: 0;
}

.ac-user .ac-user-photo {
  grid-column: 1 / -1;
}

.app-toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 16px);
  left: 16px;
  z-index: 950;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  color: #e2e8f0;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.app-toast[hidden] {
  display: none;
}

/* ---------- tab visibility ---------- */

.discover-page,
.profile-page {
  display: none;
}

body[data-tab="discover"]:not(.matching-view) .discover-page,
body[data-tab="profile"]:not(.matching-view) .profile-page {
  display: block;
}

body:not([data-tab="match"]) #homePage {
  display: none;
}

/* ---------- Discover ---------- */

.discover-page {
  padding: 12px 0 24px;
}

.discover-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.category-bar {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}

.category-pill.is-active {
  border-color: transparent;
  background: var(--accent-grad);
  color: #031022;
}

.filter-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  color: #cbd5e1;
}

.filter-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.discover-note {
  margin: 10px 16px 0;
  color: #64748b;
  font-size: 12px;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 0;
}

.discover-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: var(--surface-solid);
  content-visibility: auto;
  contain-intrinsic-size: 220px 290px;
}

.discover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 25, 0.92));
  pointer-events: none;
}

.discover-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 11, 25, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.discover-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22e58b;
  box-shadow: 0 0 6px #22e58b;
}

.discover-status.is-online::before {
  background: #4ade80;
  box-shadow: none;
}

.discover-info {
  position: absolute;
  right: 56px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.discover-info strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-flag {
  font-size: 16px;
}

.discover-call {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #031022;
  box-shadow: 0 4px 14px rgba(0, 128, 255, 0.5);
}

.discover-call:active {
  transform: scale(0.92);
}

.discover-empty {
  padding: 40px 16px;
  color: #64748b;
  text-align: center;
}

/* ---------- Match (home) ---------- */

.landing-page {
  padding: 8px 16px calc(var(--nav-h) + 88px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #060b19, #0d172a);
  box-shadow: none;
}

.landing-page .hero {
  margin: 0 0 12px;
}

.radar-orb {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 4px auto 6px;
  display: grid;
  place-items: center;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(0, 210, 255, 0.55);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.45);
  animation: radar-pulse 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  will-change: transform, opacity;
}

.radar-ring:nth-child(2) {
  animation-delay: 1.2s;
}

.radar-ring:nth-child(3) {
  animation-delay: 2.4s;
}

.radar-globe {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #7ee8ff 0, #0aa3e6 24%, #0a4f9e 58%, #06193a 100%);
  box-shadow:
    0 0 38px rgba(0, 210, 255, 0.45),
    inset -14px -12px 26px rgba(2, 8, 24, 0.7),
    inset 6px 6px 14px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.radar-globe::before,
.radar-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.radar-globe::before {
  transform: scaleX(0.45);
}

.radar-globe::after {
  background: repeating-linear-gradient(0deg, transparent 0 17px, rgba(255, 255, 255, 0.14) 17px 18px);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(0, 210, 255, 0.32) 100%);
  animation: radar-spin 3.2s linear infinite;
  will-change: transform;
}

@keyframes radar-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes radar-spin {
  to {
    transform: rotate(360deg);
  }
}

.landing-page .tag {
  margin-bottom: 14px;
  padding: 7px 16px;
  border: 1px solid rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.1);
  color: #7ee8ff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.landing-page .hero h1 {
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.landing-page .hero h1 span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-page .hero p {
  max-width: 320px;
  font-size: 15px;
}

.landing-start {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.landing-guest-options {
  margin-bottom: 12px;
}

.landing-guest-options select {
  background: var(--surface-solid);
  border-color: var(--line);
}

.landing-interests {
  margin-top: 8px;
  padding: 0;
  border: 0;
}

.landing-interests legend {
  padding: 0;
  margin-bottom: 4px;
}

.landing-interest-options {
  gap: 8px;
}

.landing-interest-options span {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: #94a3b8;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.landing-interest-options span::after {
  display: none;
}

.landing-interest-options input:checked + span {
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.12);
  color: #7ee8ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.landing-start-button {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 12px);
  left: 16px;
  z-index: 850;
  width: auto;
  min-height: 54px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #031022;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 128, 255, 0.45);
}

.landing-start-button:active {
  transform: scale(0.98);
}

body.kbd-open .landing-start-button {
  position: static;
  width: 100%;
  margin-top: 12px;
}

/* ---------- Friends ---------- */

body.friends-page-open,
body.matching-view.friends-page-open {
  background: #060b19;
}

.friends-page {
  min-height: calc(100dvh - var(--nav-h));
  padding: calc(var(--sat) + 16px) 16px 24px;
  background: linear-gradient(180deg, #060b19, #0d172a);
}

.friends-page-content {
  max-width: 560px;
}

.friends-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.friends-page-heading .page-title {
  margin: 0;
}

.friends-page .friends-refresh {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: #cbd5e1;
  font-size: 20px;
}

.friends-notice,
.friends-status {
  margin: 4px 0;
  color: #64748b;
  font-size: 12px;
}

.friends-page #requestsPanel[hidden] {
  display: block;
}

.friend-requests-card {
  padding: 4px 14px 12px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 18px;
  background: var(--surface-solid);
}

.friend-requests-card .section-title {
  margin-top: 12px;
}

.friends-empty {
  margin: 6px 0;
  color: #64748b;
  font-size: 13px;
}

.online-friends-bar {
  display: flex;
  gap: 14px;
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.online-friends-bar::-webkit-scrollbar {
  display: none;
}

.online-friend {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e2e8f0;
}

.online-friend:disabled {
  opacity: 0.6;
}

.online-friend-name {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--hue, 200), 70%, 45%), hsl(calc(var(--hue, 200) + 50), 75%, 28%));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.online-friend .friend-avatar {
  width: 56px;
  height: 56px;
  border: 2px solid var(--accent);
}

.friend-avatar.is-online::after,
.friend-row[data-presence="online"] > .friend-avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 13px;
  border: 2px solid #0f172a;
  border-radius: 50%;
  background: #22e58b;
}

.friends-search {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  color: #fff;
}

.friends-search-label {
  display: none;
}

.friends-online-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #94a3b8;
  font-size: 13px;
}

.friends-page .friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.friends-page .friends-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  content-visibility: auto;
  contain-intrinsic-size: 64px;
}

.friends-page .friends-list .friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.friends-page .friend-name {
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  min-width: 0;
  font-weight: 700;
}

.friends-page .friend-name > span:not(.friend-gender):not(.friend-presence) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friends-page .friend-gender,
.friends-page .friend-presence {
  display: none;
}

.friends-page .friend-row .friend-name::after {
  content: "Offline";
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.friends-page .friend-row[data-presence="online"] .friend-name::after {
  content: "Online";
  color: #22e58b;
}

.friends-page .friends-list li:not(.friend-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.friends-page .friends-list li:not(.friend-row) > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.friends-page .friends-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.friends-page .friends-row-actions button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 0;
  color: #fff;
}

.friends-page .friends-row-actions button::before {
  font-size: 20px;
  font-weight: 800;
}

.friends-page [data-request-action="accept"] {
  background: #16a34a;
}

.friends-page [data-request-action="accept"]::before {
  content: "\2713";
}

.friends-page [data-request-action="decline"] {
  background: #dc2626;
}

.friends-page [data-request-action="decline"]::before {
  content: "\2715";
}

.friends-page [data-friend-video-call] {
  background: var(--accent-grad) !important;
  box-shadow: 0 4px 12px rgba(0, 128, 255, 0.4);
}

.friends-page [data-friend-video-call]::before {
  content: "";
  width: 22px;
  height: 22px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23031022' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='13' height='12' rx='3'/><path d='m16 11 5-3v8l-5-3'/></svg>");
}

.friends-page [data-friend-video-call]:disabled {
  background: #1e293b !important;
  box-shadow: none;
  opacity: 0.55;
}

.friends-page [data-friend-unfriend] {
  display: none !important;
}

.friends-page-actions {
  margin-top: 14px;
}

/* ---------- Wallet ---------- */

dialog.wallet-page {
  position: fixed;
  inset: 0 0 var(--nav-h) 0;
  z-index: 800;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background: linear-gradient(180deg, #060b19, #0d172a);
  color: #fff;
  overscroll-behavior: contain;
}

dialog.wallet-page:not([open]) {
  display: none;
}

.wallet-content {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--sat) + 16px) 16px 24px;
}

.wallet-balance-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0aa3e6, #0050c8);
  box-shadow: 0 10px 28px rgba(0, 100, 255, 0.35);
}

.wallet-balance-label {
  font-size: 13px;
  opacity: 0.85;
}

.wallet-balance-value {
  display: block;
  margin: 4px 0;
  font-size: 38px;
  font-weight: 900;
}

.wallet-balance-note {
  font-size: 12px;
  opacity: 0.85;
}

.wallet-premium-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 20px;
  background: linear-gradient(135deg, #2b1f05, #6b4a0b 55%, #b8861a);
}

.wallet-premium-crown {
  font-size: 34px;
}

.wallet-premium-text h2 {
  font-size: 17px;
  color: #fde68a;
}

.wallet-premium-text p {
  margin-top: 2px;
  color: #fef3c7;
  font-size: 12px;
  opacity: 0.85;
}

#walletPremiumBtn {
  grid-column: 1 / -1;
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #3b2600;
  font-weight: 800;
}

.wallet-status,
.wallet-note {
  margin: 4px 0 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.coin-grid:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.coin-grid button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 112px;
  padding: 14px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  color: #fff;
}

.coin-grid button strong {
  font-size: 26px;
  color: var(--accent);
}

.coin-grid button span {
  text-transform: capitalize;
  color: #94a3b8;
  font-size: 12px;
}

.coin-grid button[data-popular] {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.3);
}

.coin-grid button[data-popular]::before {
  content: "POPULAR";
  position: absolute;
  top: -9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #031022;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.wallet-history {
  margin-top: 8px;
}

.wallet-page .wallet-calls li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.wallet-page .wallet-calls li span {
  color: #94a3b8;
  font-size: 12px;
}

/* ---------- Profile ---------- */

.profile-page {
  padding: calc(var(--sat) + 16px) 16px 24px;
  min-height: calc(100dvh - var(--nav-h));
  background: linear-gradient(180deg, #060b19, #0d172a);
}

.profile-header-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
}

.profile-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-identity strong {
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity span {
  color: #64748b;
  font-size: 13px;
}

.profile-edit-btn {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.profile-edit-btn[hidden],
.settings-list[hidden],
.logout-btn[hidden],
.profile-login-btn[hidden],
#profileAdminRow[hidden] {
  display: none;
}

.settings-list {
  margin-top: 16px;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.settings-list li + li {
  border-top: 1px solid var(--line);
}

.app-language-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  color: #e2e8f0;
  font-size: 15px;
}

.app-language-setting select {
  width: min(190px, 52%);
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: #e2e8f0;
}

.settings-list button,
.settings-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
}

.settings-list button:active,
.settings-list a:active {
  background: rgba(148, 163, 184, 0.1);
}

.row-icon {
  width: 24px;
  text-align: center;
}

.settings-list span:nth-child(2) {
  flex: 1 1 auto;
}

.row-chevron {
  color: #64748b;
  font-size: 22px;
}

.logout-btn,
.profile-login-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}

.logout-btn {
  border: 1px solid rgba(255, 59, 78, 0.5);
  background: rgba(255, 59, 78, 0.12);
  color: #ff5a6b;
}

.profile-login-btn {
  border: 0;
  background: var(--accent-grad);
  color: #031022;
}

/* ---------- Video call ---------- */

.partner-radar {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

body:not(.matching-view) .partner-radar,
#remoteVideo[style*="block"] ~ .partner-radar {
  display: none;
}

.partner-radar .radar-ring {
  inset: auto;
  width: 220px;
  height: 220px;
}

.radar-core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px 6px rgba(0, 210, 255, 0.6);
}

.partner-radar::after {
  content: "Finding someone for you...";
  position: absolute;
  bottom: 14%;
  color: #8fdcf2;
  font-size: 13px;
  font-weight: 600;
}

.coin-rate-badge {
  position: absolute;
  z-index: 8;
  top: calc(10px + var(--sat));
  left: 58px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 999px;
  background: var(--surface);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
}

.call-fab-bar {
  display: none;
}

.coin-rate-badge[hidden] {
  display: none;
}

.video-label {
  border-color: rgba(0, 210, 255, 0.5);
  background: rgba(0, 210, 255, 0.16);
  color: #7ee8ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 850px) {
  body.matching-view {
    background: #060b19;
  }

  body.matching-view .video-area {
    background: linear-gradient(180deg, #0d172a 0 50%, #060b19 50% 100%);
  }

  body.matching-view .call-card {
    background: #060b19;
  }

  body.matching-view .mobile-match-topbar {
    top: calc(10px + var(--sat));
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.matching-view .mobile-gender-toggle[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-2);
  }

  body.matching-view .partner-premium-badge {
    top: calc(52px + var(--sat));
  }

  body.matching-view .partner-radar {
    inset: 0 0 50%;
  }

  body.matching-view .call-fab-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translate(-50%, -50%);
  }

  .fab {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: var(--surface);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  }

  .fab:active {
    transform: scale(0.92);
  }

  .fab:disabled {
    opacity: 0.4;
  }

  .fab .icon-off {
    display: none;
  }

  .fab.is-off {
    border-color: rgba(255, 59, 78, 0.6);
    color: #ff5a6b;
  }

  .fab.is-off .icon-on {
    display: none;
  }

  .fab.is-off .icon-off {
    display: block;
  }

  .fab-end {
    width: 62px;
    height: 62px;
    border: 0;
    background: var(--danger);
    box-shadow: 0 6px 20px rgba(255, 59, 78, 0.55);
  }

  .fab-end svg {
    transform: rotate(135deg);
  }

  .fab-next {
    display: flex;
    gap: 4px;
    width: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #031022;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.55);
  }

  body.matching-view .media-controls {
    display: none !important;
  }

  body.matching-view .media-controls {
    top: calc(50% + 44px) !important;
    left: 12px !important;
  }

  body.matching-view .media-controls button {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.18);
  }

  body.matching-view .friend-match-controls {
    top: calc(50% + 44px);
  }

  body.matching-view .video-like-widget {
    bottom: calc(50% + 40px);
  }

  body.matching-view .video-label {
    bottom: calc(96px + var(--sab));
    left: 12px;
  }

  body.matching-view .settings {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-height: none;
    padding: 28px 12px calc(12px + var(--sab));
    overflow: visible;
    border: 0;
    background: linear-gradient(180deg, transparent, rgba(6, 11, 25, 0.85));
    pointer-events: none;
  }

  body.matching-view .settings > * {
    pointer-events: auto;
  }

  body.matching-view .settings > .notice {
    order: -1;
    flex: 1 0 100%;
    margin: 0;
    overflow: hidden;
    color: #cfefff;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px #000;
    white-space: nowrap;
    pointer-events: none;
  }

  body.matching-view .matching-actions,
  body.matching-view .chat-controls,
  body.matching-view .safety-controls {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }

  body.matching-view .chat-controls button:not(#previousBtn),
  body.matching-view #mobileHomeBtn {
    display: none !important;
  }

  body.matching-view #previousBtn,
  body.matching-view #matchingToggleBtn,
  body.matching-view #blockUserBtn {
    min-height: 38px;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: var(--surface);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
  }

  body.matching-view #matchingToggleBtn {
    flex: 0 0 auto;
    min-height: 38px;
  }

  body.matching-view #matchingToggleBtn.is-active {
    border-color: rgba(255, 59, 78, 0.55);
    background: rgba(90, 20, 34, 0.9);
  }
}

@media (min-width: 851px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    width: 560px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-ring,
  .radar-sweep {
    animation: none;
  }

  .radar-ring {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

/* ---------- mockup polish ---------- */

.glass-card,
.friend-requests-card,
.profile-header-card,
.settings-list,
.landing-interests {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 18px;
}

.landing-interests {
  padding: 14px;
}

.coin-balance:not([hidden]) {
  border-color: rgba(34, 229, 139, 0.6);
  background: rgba(34, 229, 139, 0.1);
  color: #4ff0a6;
  box-shadow: 0 0 12px rgba(34, 229, 139, 0.25);
}

.coin-balance:not([hidden])::before {
  content: "";
  width: 18px;
  height: 18px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ff0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h12v4'/><path d='M3 7v11a2 2 0 0 0 2 2h14a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1H5a2 2 0 0 1-2-2z'/><circle cx='16' cy='14.5' r='1'/></svg>");
}

body > .navbar {
  background: transparent;
  border-bottom: 0;
}

/* floating rounded bottom bar */
.bottom-nav {
  right: 10px;
  bottom: calc(8px + var(--sab));
  left: 10px;
  height: 60px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.has-admob-banner .bottom-nav {
  bottom: calc(8px + var(--sab) + var(--admob-banner-height));
}

body.has-admob-banner .landing-start-button {
  bottom: calc(var(--nav-h) + 12px + var(--admob-banner-height));
}

body.has-admob-banner > main {
  padding-bottom: calc(var(--admob-banner-height) + 12px);
}

.nav-tab {
  border-radius: 18px;
}

.nav-tab.is-active {
  background: rgba(0, 210, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.35), 0 0 14px rgba(0, 210, 255, 0.25);
}

.nav-tab.is-active::before {
  display: none;
}

:root {
  --nav-h: calc(76px + var(--sab));
}

.landing-interest-options span::after {
  display: inline;
  content: "+";
  margin-left: 6px;
  color: var(--accent);
  font-weight: 800;
}

.landing-interest-options input:checked + span::after {
  content: "\00d7";
}

.landing-interest-options label:nth-child(3n+1) span {
  border-color: rgba(34, 229, 139, 0.55);
}

.landing-interest-options label:nth-child(3n+2) span {
  border-color: rgba(251, 146, 60, 0.55);
}

.landing-interest-options label:nth-child(3n) span {
  border-color: rgba(129, 140, 248, 0.6);
}

.landing-interest-options label input:checked + span {
  border-color: var(--accent);
}

/* friends */
.friends-page .friend-row[data-presence="online"] [data-friend-video-call]:not(:disabled) {
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.6);
}

.friends-page .friend-row[data-presence="online"] {
  border-color: rgba(0, 210, 255, 0.25);
}

/* wallet */
.wallet-balance-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(0, 210, 255, 0.55);
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.25);
}

.wallet-balance-label {
  color: #cbd5e1;
}

.wallet-premium-card {
  background: linear-gradient(115deg, #3a2a08, #0d0b06 70%);
  border: 1.5px solid #c99a2e;
  border-radius: 20px;
}

.wallet-premium-text p {
  display: none;
}

.wallet-premium-text h2 {
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
}

#walletPremiumBtn {
  grid-column: 2;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #fbbf24;
  font-size: 22px;
  text-align: left;
}

.coin-grid button::after {
  content: "Buy";
  order: 2;
  min-width: 80%;
  padding: 6px 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d2ff, #0aa3e6);
  color: #031022;
  font-size: 14px;
  font-weight: 800;
}

.coin-grid button span {
  order: 3;
}

/* profile premium banner */
.profile-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1.5px solid #c99a2e;
  border-radius: 18px;
  background: linear-gradient(115deg, #4a3508, #0d0b06 80%);
  color: #fff;
  text-align: left;
}

.profile-premium strong {
  display: block;
  color: #fbbf24;
  font-size: 18px;
}

.profile-premium small {
  color: #e5e7eb;
  font-size: 13px;
}

.profile-premium-crown {
  font-size: 34px;
}

@media (max-width: 850px) {
  body.matching-view .call-fab-bar {
    top: auto;
    bottom: calc(14px + var(--sab));
    transform: translateX(-50%);
  }

  body.matching-view .settings {
    padding-bottom: calc(88px + var(--sab));
  }

  body.matching-view .video-label {
    bottom: calc(136px + var(--sab));
  }
}

/* profile: premium tile with Admin tile beside it */
.profile-premium-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.profile-premium-row .profile-premium {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin-top: 0;
}

.profile-admin-tile {
  flex: 0 0 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent);
  font-size: 14px;
}

.profile-admin-tile[hidden] {
  display: none;
}

.profile-admin-icon {
  font-size: 26px;
}

.profile-referral-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.profile-referral-card h2 {
  margin: 0 0 6px;
  color: #e2e8f0;
  font-size: 17px;
}

.profile-referral-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.profile-share-btn {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.profile-referral-status {
  min-height: 18px;
}

.profile-referral-card[hidden] {
  display: none;
}

/* profile tiles: equal height, single-line titles, content clear of the bottom bar */
.profile-premium-row {
  align-items: stretch;
}

.profile-premium-row .profile-premium {
  padding: 12px 14px;
}

.profile-premium strong {
  font-size: 15px;
  white-space: nowrap;
}

.profile-premium small {
  font-size: 12px;
}

.profile-premium-crown {
  font-size: 28px;
}

.profile-admin-tile {
  flex-basis: 76px;
  gap: 4px;
  padding: 0;
  font-size: 13px;
}

.profile-admin-tile strong {
  font-size: 13px;
}

.profile-admin-icon {
  font-size: 22px;
}

.profile-page {
  padding-bottom: calc(var(--nav-h) + 24px);
}

/* force identical tile height */
.profile-premium-row {
  align-items: stretch;
  height: 88px;
}

.profile-premium-row > button {
  box-sizing: border-box;
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  margin: 0;
}

/* header: opaque, auto-hides on scroll down, no wallet icon button */
body > .navbar {
  background: #060b19;
  transition: transform 0.2s ease;
  will-change: transform;
}

body.header-hidden > .navbar {
  transform: translateY(-100%);
}

.navbar .coin-add {
  display: none !important;
}

@media (min-width: 851px) {
  body.matching-view .container {
    max-width: 1040px;
    padding: 0 16px;
  }

  body.matching-view .call-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  }

  body.matching-view .chat-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.matching-view .chat-controls button {
    min-height: 44px;
    padding: 10px 8px !important;
    white-space: nowrap;
  }
}

/* ---------- desktop layout ---------- */
@media (min-width: 1024px) {
  body.matching-view #localVideo {
    width: 240px;
    height: 320px;
    right: 20px;
    bottom: 20px;
  }

  .container {
    max-width: 1200px;
    padding: 0 24px;
  }

  body .navbar {
    padding-left: 32px;
    padding-right: 32px;
  }

  #homePage.landing-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 16px 24px calc(var(--nav-h) + 72px);
    background: transparent;
  }

  #homePage .hero {
    margin: 0;
  }

  #homePage .radar-orb {
    width: 280px;
    height: 280px;
  }

  #homePage .landing-start {
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.88);
  }

  .discover-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .discover-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .friends-page-content,
  .wallet-content {
    max-width: 960px;
  }

  .profile-page {
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
  }

  body.matching-view .container {
    max-width: 1400px;
  }

  body.matching-view .call-card {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    min-height: calc(100vh - 110px);
  }

  body.matching-view .video-area {
    min-height: calc(100vh - 150px);
    aspect-ratio: auto;
  }
}

/* desktop: keep the floating nav centered with the content column */
@media (min-width: 851px) {
  body .landing-start-button {
    position: static;
    left: auto;
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    font-size: 17px;
    transform: none;
  }

  body .bottom-nav {
    left: 50%;
    right: auto;
    width: 540px;
    transform: translateX(-50%);
  }
}

/* ---------- match screen: report and block actions ---------- */
body.matching-view .match-top-controls {
  position: absolute;
  top: calc(10px + var(--sat));
  right: calc(10px + env(safe-area-inset-right, 0px));
  left: calc(10px + env(safe-area-inset-left, 0px));
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.matching-view .match-safety-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.matching-view #reportUserBtn,
body.matching-view #blockUserBtn {
  display: flex !important;
  width: auto !important;
  min-width: 40px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 104, 104, 0.65) !important;
  border-radius: 999px !important;
  background: rgba(111, 28, 38, 0.92) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

body.matching-view #reportUserBtn[hidden] {
  display: none !important;
}

body.matching-view #reportUserBtn {
  position: static;
}

body.matching-view #safetyControls {
  position: static;
  display: block;
  width: auto;
  margin: 0;
}

body.matching-view #blockUserBtn {
  width: 44px !important;
  padding: 0 !important;
}

body.matching-view #safetyControls[hidden] {
  display: none !important;
}

body.matching-view .match-top-controls .mobile-match-topbar {
  position: static;
}

body.matching-view #reportUserBtn svg,
body.matching-view #blockUserBtn svg {
  width: 16px;
  height: 16px;
}

/* ---------- swipe / edge arrows for previous + next ---------- */
.swipe-arrow,
.swipe-guide {
  display: none;
}

body.matching-view .swipe-arrow {
  position: absolute;
  top: 22%;
  z-index: 8;
  display: grid;
  width: 44px;
  height: 64px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #ffc53d;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
  cursor: pointer;
}

body.matching-view .swipe-prev {
  left: 0;
}

body.matching-view .swipe-next {
  right: 0;
}

body.matching-view .swipe-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

body.matching-view .swipe-guide:not([hidden]) {
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 12;
  display: flex;
  max-width: 86%;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 197, 61, 0.6);
  border-radius: 16px;
  background: rgba(6, 11, 25, 0.9);
  color: #fff;
  font-size: 13px;
  pointer-events: none;
  transform: translateX(-50%);
  animation: swipe-guide-nudge 1.4s ease-in-out infinite;
}

.swipe-guide p {
  margin: 0;
}

.swipe-guide-hand {
  color: #ffc53d;
  font-size: 26px;
  line-height: 1;
}

@keyframes swipe-guide-nudge {
  0%, 100% { transform: translateX(calc(-50% - 8px)); }
  50% { transform: translateX(calc(-50% + 8px)); }
}

/* mobile: previous/next live on the video edge arrows and swipe */
@media (max-width: 850px) {
  body.matching-view #previousBtn,
  body.matching-view .call-fab-bar .fab-next {
    display: none !important;
  }
}

/* ---------- left-edge call options (mobile) ---------- */
.side-controls {
  display: none;
}

@media (max-width: 850px) {
  body.matching-view .side-controls {
    position: absolute;
    top: calc(50% + 12px);
    left: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 0 14px 14px 0;
    background: rgba(6, 11, 25, 0.55);
  }

  body.matching-view .side-btn {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  }

  body.matching-view .side-btn:disabled {
    opacity: 0.4;
  }

  .side-btn .off,
  .side-btn.is-off .on {
    display: none;
  }

  .side-btn.is-off .off {
    display: block;
    color: #ff6b6b;
  }

  body.matching-view .call-fab-bar .fab-mic,
  body.matching-view .call-fab-bar .fab-flip {
    display: none !important;
  }
}

/* collapsible call options */
@media (max-width: 850px) {
  body.matching-view .side-more {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  }

  body.matching-view .side-controls:not(.open) {
    padding: 2px 4px;
    background: rgba(6, 11, 25, 0.5);
  }

  body.matching-view .side-controls:not(.open) .side-btn {
    display: none;
  }

  body.matching-view .side-controls.open .side-more {
    color: #00d2ff;
  }
}

/* mobile: Start/Stop Matching and End Call side by side, same size */
.fab-end-label {
  display: none;
}

@media (max-width: 850px) {
  body.matching-view .call-fab-bar {
    top: auto;
    bottom: calc(14px + var(--sab));
    left: calc(50% + 6px);
    transform: none;
  }

  body.matching-view .matching-actions {
    position: absolute;
    right: calc(50% + 6px);
    bottom: calc(14px + var(--sab));
  }

  body.matching-view .call-fab-bar .fab-end,
  body.matching-view #matchingToggleBtn {
    display: flex;
    width: 150px;
    height: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  }

  body.matching-view .call-fab-bar .fab-end {
    border-color: transparent;
    background: var(--danger);
    color: #fff;
  }

  body.matching-view .call-fab-bar .fab-end svg {
    width: 22px;
    height: 22px;
  }

  body.matching-view .fab-end-label {
    display: inline;
  }

  body.matching-view #matchingToggleBtn {
    background: var(--surface);
    color: #fff;
  }

  body.matching-view #matchingToggleBtn.is-active {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--surface);
  }
}

.partner-info, .match-premium-promo { display: none; }

@media (max-width: 850px) {
  body.matching-view .partner-info:not([hidden]) {
    position: absolute;
    left: 10px;
    bottom: calc(50% + 10px);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 110px);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(6, 11, 25, 0.78);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  }

  .partner-info .partner-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd34d, #f5a300);
    color: #2a1c00;
  }
  .partner-info .partner-crown[hidden] { display: none; }
  .partner-info .partner-gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
  }
  .partner-info .partner-gender[hidden] { display: none; }
  .partner-info .partner-gender.female { background: linear-gradient(135deg, #ff7ab8, #e0368a); }
  .partner-info .partner-gender.male { background: linear-gradient(135deg, #4db8ff, #1f6fe0); }
  .partner-info .partner-gender.other { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
  .partner-info .partner-flag { font-size: 17px; }
  .partner-info .partner-country {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .partner-info > * + * {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
  }

  body.matching-view:not(.is-premium-user) .match-premium-promo {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(50% + 14px);
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.92);
    text-align: center;
  }

  body.matching-view #remoteVideo[style*="block"] ~ .match-premium-promo {
    display: none;
  }

  .match-premium-promo p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  }

  .match-premium-promo button {
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd34d, #f5a300);
    color: #2a1c00;
    font-size: 14px;
    font-weight: 800;
  }
}

body.is-premium-user .match-premium-promo,
body.is-premium-user .wallet-premium-card,
body.is-premium-user #profilePremiumBtn,
body.is-premium-user #profileBuyPremiumBtn,
body.is-premium-user #walletPremiumBtn {
  display: none !important;
}
