/* ============================================================
   WHISPERPLUSME — MASTER STYLESHEET v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ── */
html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #0e0e1c;
  /* Lightened overlay — lifted from #050505 for more breathing room */
  background-image:
    linear-gradient(rgba(14,14,28,0.55), rgba(14,14,28,0.70)),
    url('/bbg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ── HEADER — fixed height, never overlaps content ── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  text-align: center;
  padding: 16px 20px;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122,0,255,0.30);
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e6d6ff;
  text-shadow: 0 0 8px #7a00ff, 0 0 22px #7a00ff;
  line-height: 1;
}

footer {
  text-align: center;
  padding: 14px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(122,0,255,0.55);
}

/* ── APP ROOT ── */
#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   LOGIN PAGE — full viewport, centered
───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   LANDING PAGE (logged-out state)
───────────────────────────────────────────── */

/* ── Keyframes ── */
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.08); }
  66%      { transform: translate(-20px,20px) scale(0.95); }
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes logoGlow {
  0%,100% { text-shadow: 0 0 12px #7a00ff, 0 0 40px #7a00ff44; }
  50%     { text-shadow: 0 0 24px #7a00ff, 0 0 80px #7a00ff88, 0 0 120px #00e3ae44; }
}
@keyframes pulsePing {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Wrapper ── */
.lp-wrap {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* ── Orbs ── */
.lp-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.lp-orb  {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 14s ease-in-out infinite;
}
.lp-orb1 { width:500px; height:500px; background:#7a00ff; top:-100px; left:-150px; animation-delay:0s; }
.lp-orb2 { width:400px; height:400px; background:#00e3ae; bottom:-80px; right:-100px; animation-delay:-5s; }
.lp-orb3 { width:300px; height:300px; background:#ff3cac; top:40%; left:50%; animation-delay:-9s; }

/* ── Ticker ── */
.lp-ticker {
  position: relative; z-index: 2;
  width: 100%; overflow: hidden;
  background: rgba(122,0,255,0.12);
  border-bottom: 1px solid rgba(122,0,255,0.25);
  padding: 8px 0;
}
.lp-ticker-inner {
  display: flex; gap: 60px;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
  white-space: nowrap;
  font-size: 12px;
  color: #b08fff;
  letter-spacing: 0.5px;
}
.lp-ticker-inner span { flex-shrink: 0; }

/* ── Hero ── */
.lp-hero {
  position: relative; z-index: 2;
  text-align: center;
  padding: 60px 24px 40px;
  animation: fadeUp 0.8s ease both;
}
.lp-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.lp-logo-pulse {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #7a00ff44 0%, transparent 70%);
  animation: pulsePing 2.5s ease-out infinite;
}
.lp-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 10vw, 62px);
  font-weight: 800;
  color: #e6d6ff;
  letter-spacing: 4px;
  animation: logoGlow 3s ease-in-out infinite;
  position: relative;
}
.lp-plus { color: #00e3ae; }
.lp-tagline {
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
  animation: fadeUp 0.9s 0.15s ease both;
}
.lp-sub {
  font-size: 14px;
  color: #aaa;
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.6;
  animation: fadeUp 1s 0.25s ease both;
}
.lp-cta-btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, #7b2ff7, #00e3ae, #7b2ff7);
  background-size: 200% auto;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  animation: shimmer 3s linear infinite, fadeUp 1s 0.35s ease both;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 30px #7b2ff755;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lp-cta-btn:active { transform: scale(0.97); }

/* ── Feature cards ── */
.lp-features {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 0 16px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.lp-feat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(122,0,255,0.2);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.lp-feat:hover { border-color: #7a00ff; transform: translateY(-3px); }
.lp-feat-icon  { font-size: 28px; margin-bottom: 8px; }
.lp-feat-title { font-size: 14px; font-weight: 700; color: #e6d6ff; margin-bottom: 6px; }
.lp-feat-desc  { font-size: 12px; color: #888; line-height: 1.5; }

/* ── How it works ── */
.lp-how {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px 48px;
}
.lp-section-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #e6d6ff;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.lp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}
.lp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(122,0,255,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 190px;
  text-align: left;
}
.lp-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b2ff7, #00e3ae);
  color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-step-text { font-size: 12px; color: #ccc; line-height: 1.4; }
.lp-step-arrow { color: #7a00ff; font-size: 20px; }

/* ── Auth card ── */
.lp-auth-wrap {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  padding: 0 20px 32px;
}
.lp-auth-card {
  width: 100%;
  max-width: 380px;
  background: rgba(12,12,20,0.96);
  border: 1px solid rgba(122,0,255,0.35);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 0 60px rgba(122,0,255,0.2);
}
.lp-auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.lp-tab {
  flex: 1; padding: 10px; border: none;
  border-radius: 9px; background: transparent;
  color: #888; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.lp-tab-active { background: rgba(122,0,255,0.4); color: #fff; }
.lp-input {
  display: block; width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: rgba(255,255,255,0.07);
  color: #fff; font-size: 16px;
  margin-bottom: 12px; outline: none;
  transition: border-color 0.2s;
}
.lp-input:focus { border-color: #7a00ff; }
.lp-input::placeholder { color: #555; }
.lp-submit-btn {
  width: 100%; padding: 14px;
  border-radius: 22px; border: none;
  background: linear-gradient(90deg, #7b2ff7, #00e3ae);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
  min-height: 50px;
}
.lp-submit-btn:active { opacity: 0.85; }
.lp-terms {
  font-size: 11px; color: #555;
  text-align: center; margin-top: 12px;
  line-height: 1.4;
}

/* ── Footer note ── */
.lp-footer-note {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #666;
  padding: 0 20px;
}

/* Keep old .login-btns button style for any legacy use */
/* ── Menu tab labels ── */
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 8px 4px 6px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.menu-icon  { font-size: 20px; line-height: 1; }
.menu-label { font-size: 9px; font-weight: 600; color: #666; letter-spacing: 0.5px; text-transform: uppercase; }
.menu-active .menu-label { color: #00e3ae; }
.menu-active .menu-icon  { filter: drop-shadow(0 0 6px #00e3ae88); }

.login-btns button {
  flex: 1;
  padding: 14px;
  border-radius: 22px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  transition: opacity 0.15s, transform 0.1s;
}
.login-btns button:active { transform: scale(0.97); opacity: 0.85; }

.btn-primary {
  background: linear-gradient(90deg,#7b2ff7,#00e3ae);
  color: #fff;
}
.btn-secondary {
  background: #1e1e2a;
  color: #e6d6ff;
  border: 1px solid rgba(122,0,255,0.3) !important;
}

/* ─────────────────────────────────────────────
   STAGE — single screen at a time (swipe to navigate)
───────────────────────────────────────────── */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 640px;
  padding: 20px 0 10px;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,transparent,#7a00ff,transparent);
  opacity: 0.20;
  pointer-events: none;
}

/* ── PHONE ── */
.phone {
  width: 340px;
  height: 590px;
  border-radius: 44px;
  overflow: hidden;
  background: #0c0c14;
  border: 1px solid rgba(122,0,255,0.30);
  box-shadow:
    0 0 0 1px rgba(0,255,255,0.06),
    0 8px 40px rgba(0,0,0,0.80),
    0 0 60px rgba(122,0,255,0.12);
  transition: opacity 0.25s;
  flex-shrink: 0;
}

/* Active screen — visible */
.phone-visible,
.phone.center {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  transform: none !important;
  pointer-events: all !important;
  z-index: 10;
}

/* All other screens — completely hidden */
.phone-hidden-screen,
.phone.left,
.phone.right,
.phone.hidden {
  display: none !important;
}

/* ── SWIPE HINT DOTS ── */
.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 2px;
}

.swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.2s, width 0.2s;
}

.swipe-dot.active {
  background: #7b2ff7;
  width: 18px;
  border-radius: 3px;
}

/* ── MENU — icon nav ── */
.menu {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 8px 0 6px;
  position: relative;
  z-index: 20;
  /* Fixed width matching the phone UI — never spreads on desktop */
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
}

.menu div {
  cursor: pointer;
  font-size: 22px;
  padding: 8px 6px;
  opacity: 0.50;
  transition: all 0.15s;
  border-radius: 12px;
  min-height: 44px;
  /* Fixed width per tab — 4 tabs × 76px = 304px, fits in 320px container */
  width: 76px;
  max-width: 76px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu div:hover  { transform: scale(1.15); opacity: 0.85; background: rgba(122,0,255,0.12); }
.menu div:active { transform: scale(0.95); }
.menu-active {
  opacity: 1 !important;
  background: rgba(122,0,255,0.18) !important;
  filter: drop-shadow(0 0 6px #7a00ff);
}

/* ── CONTENT AREA ── */
.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 14px 40px;
  text-align: center;
}

/* ── INPUTS ── */
input, select, textarea {
  margin: 5px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: rgba(255,255,255,0.07);
  color: #fff;
  width: 100%;
  font-size: 16px; /* prevent iOS zoom */
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus { border-color: #7a00ff; }
input::placeholder, textarea::placeholder { color: #555; }

select option { background: #111; color: #fff; }

/* ── BUTTONS — universal base ── */
button {
  background: linear-gradient(90deg,#7a00ff,#00ffaa);
  border: none;
  padding: 12px 18px;
  border-radius: 22px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  transition: opacity 0.15s, transform 0.1s;
}
button:hover  { opacity: 0.92; }
button:active { transform: scale(0.97); opacity: 0.8; }

hr { margin: 20px 0; border: 0; border-top: 1px solid #1e1e1e; }

/* ── FORMS ── */
.form-section {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  padding: 4px 0 20px;
}

.form-section h2 {
  margin: 20px 0 8px;
  font-size: 13px;
  color: #888;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-section h3 {
  margin: 14px 0 6px;
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.form-section input,
.form-section select,
.form-section button {
  width: 100%;
  display: block;
}

/* ── DASHBOARD ── */
.dash-ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  height: 100%;
  overflow-y: auto;
}

.dash-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid #1e1e2a;
  border-radius: 14px;
  padding: 14px 18px;
}

.dash-num   { font-size: 22px; font-weight: 800; color: #00e3ae; }
.dash-label { font-size: 13px; color: #666; }

/* ── COINS ── */
.coin-buy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.coin-qty-input {
  width: 90px !important;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #2a2a2a;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  -moz-appearance: textfield;
}
.coin-qty-input::-webkit-outer-spin-button,
.coin-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.coin-qty-input:focus { border-color: #00e3ae; }

.coin-buy-btn {
  flex: 1;
  padding: 12px;
  border-radius: 22px;
  border: none;
  background: linear-gradient(90deg,#7b2ff7,#00e3ae);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

.coin-total-label {
  font-size: 12px;
  color: #00e3ae;
  margin-bottom: 4px;
  text-align: left;
}

/* ── MAP ── */
.map-controls {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loc-btn {
  padding: 13px 30px;
  border-radius: 26px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s;
  min-height: 48px;
}
.loc-btn:active { transform: scale(0.96); }
.loc-on  { background: linear-gradient(90deg,#00e3ae,#00b48a); color: #000; }
.loc-off { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid #333; }

/* ── CALL SCREEN ── */
.call-screen {
  width: 100%;
  height: 100%;
  background: #050508;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  color: #fff;
  border-radius: inherit;
}

.call-avatar  {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-bottom: 14px;
}
.call-status  { font-size: 13px; opacity: 0.55; margin-bottom: 3px; }
.call-name    { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.call-timer   {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.call-end-btn    {
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  background: #e53935;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.call-accept-btn {
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  background: #2e7d32;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.call-end-btn:active, .call-accept-btn:active { opacity: 0.8; }

/* ── INCOMING CALL BANNER ── */
#incomingCallBanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  padding: 28px 20px;
  border-bottom: 3px solid #7a00ff;
  box-shadow: 0 0 60px rgba(122,0,255,0.5);
}
#incomingCallBanner.visible {
  display: flex;
  animation: bannerIn 0.3s ease;
}
@keyframes bannerIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
#incomingCallBanner .ic-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7a00ff;
  margin-bottom: 10px;
  animation: icPulse 1.2s ease-in-out infinite;
}
@keyframes icPulse {
  0%,100% { box-shadow: 0 0 14px rgba(122,0,255,0.5); }
  50%     { box-shadow: 0 0 36px rgba(122,0,255,1); }
}
#incomingCallBanner .ic-label  { font-size: 10px; color: #777; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; }
#incomingCallBanner .ic-name   { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 3px; }
#incomingCallBanner .ic-price  { font-size: 12px; color: #00e3ae; margin-bottom: 18px; }
#incomingCallBanner .ic-buttons { display: flex; gap: 14px; }
#incomingCallBanner .ic-accept {
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg,#00e3ae,#00bfff);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
  animation: acceptPulse 1.2s ease-in-out infinite;
}
@keyframes acceptPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.05); }
}
#incomingCallBanner .ic-decline {
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid #e53935;
  background: transparent;
  color: #e53935;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
}

/* ─────────────────────────────────────────────
   PHONE UI INNER CONTENT
───────────────────────────────────────────── */

/* member profile phone view */
.phone-profile-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #060608;
  overflow: hidden;
}

.phone-profile-wrap img.profile-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.90));
}

.phone-profile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.phone-profile-name  { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }
.phone-profile-price { font-size: 12px; color: #00e3ae; margin-bottom: 10px; width: 100%; text-align: center; }

.phone-profile-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.phone-call-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 22px;
  border: none;
  background: linear-gradient(90deg,#7b2ff7,#00e3ae);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  min-height: 42px;
  box-shadow: 0 3px 16px rgba(0,227,174,0.30);
  animation: callPulse 2.5s ease-in-out infinite;
}
@keyframes callPulse {
  0%,100% { box-shadow: 0 3px 16px rgba(0,227,174,0.30); }
  50%     { box-shadow: 0 3px 28px rgba(0,227,174,0.65); }
}

.phone-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 38px;
  line-height: 1;
}
.phone-nav-btn:active { background: rgba(255,255,255,0.32); }

/* ── PHONE CHAT ── */
.phone-chat-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #090910;
  overflow: hidden;
  border-radius: inherit;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #e6d6ff;
  background: rgba(0,0,0,0.70);
  border-bottom: 1px solid rgba(122,0,255,0.25);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.phone-chat-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  scrollbar-width: none;
  background: #090910;
}
.phone-chat-msgs::-webkit-scrollbar { display: none; }

/* ── ROOM GRID ── */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 10px;
}

.room-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid #1e1e1e;
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.room-card.active-room {
  border-color: #7b2ff7 !important;
  background: rgba(123,47,247,0.20) !important;
}

/* ── CHAT INPUT BAR ── */
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.75);
  border-top: 1px solid rgba(122,0,255,0.20);
  flex-shrink: 0;
  align-items: center;
}

.chat-input-bar input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 22px;
  border: 1px solid #2a2a2a;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 14px;
  width: auto;
  margin: 0;
}
.chat-input-bar input::placeholder { color: #555; }

.chat-send-btn {
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg,#7b2ff7,#00e3ae);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-promo-btn {
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(122,0,255,0.35);
  background: rgba(122,0,255,0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-img-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  opacity: 0.80;
  flex-shrink: 0;
}

/* ── LIVE MIC BAR ── */
.live-mic-bar {
  display: none;
  background: #0d0d1a;
  border-bottom: 1px solid #222;
  padding: 6px 12px;
  font-size: 11px;
  color: #a78bfa;
  flex-shrink: 0;
}

/* ── CHAT MESSAGES ── */
.chat-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  max-width: 200px;
}

/* ─────────────────────────────────────────────
   MEMBER CARDS — 3-column grid BELOW the phone
───────────────────────────────────────────── */

/* "How it works" banner */
.hiw-wrap  { padding: 0 12px 14px; }
.hiw-banner {
  background: rgba(12,12,20,0.92);
  border: 1px solid rgba(122,0,255,0.25);
  border-radius: 18px;
  padding: 18px 14px;
  backdrop-filter: blur(10px);
}
.hiw-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.hiw-cols {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.hiw-col   { text-align: center; padding: 10px 6px; }
.hiw-icon  { font-size: 28px; margin-bottom: 6px; }
.hiw-label { font-size: 14px; font-weight: 700; color: #00e3ae; margin-bottom: 4px; }
.hiw-desc  { font-size: 12px; color: #999; line-height: 1.45; }

/* cards wrapper — max-width matches .content */
.cards-wrap {
  padding: 0 12px 24px;
}

/* 3-column grid */
.member-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-items: stretch;
}

/* card — SOLID, not transparent */
.member-card {
  background: rgba(14,14,22,0.95);
  border: 1px solid rgba(122,0,255,0.18);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.60);
  transition: transform 0.20s, box-shadow 0.20s, border-color 0.20s;
}
.member-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(122,0,255,0.25);
  border-color: rgba(122,0,255,0.40);
}
.member-card:active { transform: scale(0.98); opacity: 0.85; }

.member-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  flex-shrink: 0;
}
.member-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.member-card-live-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #000;
  box-shadow: 0 0 6px #22c55e;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.member-card-body {
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: left;
}
.member-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-card-bio {
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  min-height: 36px;
}
.member-card-price { font-size: 13px; font-weight: 700; color: #00e3ae; }
.member-card-socials { display: flex; gap: 6px; margin-top: 4px; font-size: 15px; }

.member-card-actions {
  padding: 6px 10px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.member-call-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 18px;
  border: none;
  background: linear-gradient(90deg,#7b2ff7,#00e3ae);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}
.member-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  background: rgba(255,255,255,0.06);
  color: #00e3ae;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

/* ── PROFILE MODAL ── */
#profileModal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#profileModalBody {
  /* SOLID background */
  background: #0f0f18;
  border: 1px solid rgba(122,0,255,0.35);
  border-radius: 24px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 0 50px rgba(122,0,255,0.30);
  overflow: hidden;
  position: relative;
}

/* ── MAPBOX POPUP OVERRIDES ── */
.mapboxgl-popup-content {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 14px !important;
}
.mapboxgl-popup-tip          { display: none !important; }
.mapboxgl-popup-close-button { display: none !important; }

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────────── */
@media (max-width: 768px) {

  header {
    font-size: 20px !important;
    letter-spacing: 1.5px !important;
    padding: 14px 16px !important;
  }

  /* stage: single screen, no 3D carousel */
  .stage {
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 12px 0 !important;
    overflow: hidden !important;
  }

  /* full-width phone */
  .phone {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 72vh !important;
    min-height: 540px !important;
    max-height: 680px !important;
    border-radius: 28px !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .phone.left,
  .phone.right,
  .phone-hidden-screen {
    display: none !important;
  }

  /* menu — keep fixed width on desktop, don't expand */
  .menu {
    gap: 2px !important;
    padding: 10px 0 8px !important;
    width: 320px !important;
  }
  .menu div {
    font-size: 22px !important;
    padding: 8px 6px !important;
    width: 76px !important;
    max-width: 76px !important;
    min-width: unset !important;
  }

  /* member cards — 2-column on narrow mobile */
  .member-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .member-card-name { font-size: 14px !important; }
  .member-card-bio  { font-size: 11px !important; }

  /* form fields */
  .form-section {
    max-width: 100% !important;
    padding: 0 4px 20px !important;
  }

  input, select, textarea { font-size: 16px !important; }

  .content { padding: 0 10px 60px !important; }

  /* hiw */
  .hiw-cols { grid-template-columns: 1fr 1fr 1fr !important; gap: 6px !important; }
  .hiw-icon  { font-size: 24px !important; }
  .hiw-label { font-size: 12px !important; }
  .hiw-desc  { font-size: 10px !important; }

  .room-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* sticky chat bar */
  .chat-input-bar {
    position: sticky;
    bottom: 0;
    z-index: 30;
  }
}

/* very small screens */
@media (max-width: 400px) {
  .member-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .phone {
    min-height: 500px !important;
    border-radius: 22px !important;
  }
  .hiw-cols { grid-template-columns: 1fr 1fr 1fr !important; }
  .hiw-icon  { font-size: 20px !important; }
  .hiw-label { font-size: 11px !important; }
  .hiw-desc  { font-size: 9px !important; }
}

/* ─────────────────────────────────────────────
   MEMBER-CREATED CHAT ROOMS
───────────────────────────────────────────── */
.member-rooms-section {
  padding: 20px 0 0;
}

.member-rooms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 14px;
}

.member-rooms-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.create-room-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(90deg, #7b2ff7, #00e3ae);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 34px;
  white-space: nowrap;
}

/* 4-column grid */
.member-rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 32px;
}

@media (max-width: 900px) {
  .member-rooms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .member-rooms-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* Card — margin-top to leave room for floating avatar */
.mroom-card {
  position: relative;
  background: #13131f;
  border: 1px solid rgba(123, 47, 247, 0.20);
  border-radius: 18px;
  padding: 0 0 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  overflow: visible;
  margin-top: 50px;
  text-align: center;
}

.mroom-card:hover {
  border-color: rgba(123, 47, 247, 0.60);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(123, 47, 247, 0.20);
}

.mroom-card.mroom-active {
  border-color: #00e3ae;
  box-shadow: 0 0 0 2px rgba(0, 227, 174, 0.25);
}

/* Floating avatar — half above the card top edge */
.mroom-avatar-wrap {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #13131f;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  background: #1a1a2a;
  z-index: 2;
}

.mroom-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Push body content below the protruding avatar */
.mroom-body {
  padding: 58px 12px 0;
}

.mroom-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.25;
  word-break: break-word;
}

.mroom-host {
  font-size: 11px;
  color: #777;
  margin-bottom: 10px;
}

.mroom-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mroom-cost {
  font-size: 11px;
  font-weight: 700;
  color: #00e3ae;
  background: rgba(0, 227, 174, 0.10);
  border-radius: 20px;
  padding: 3px 9px;
}

.mroom-slots {
  font-size: 11px;
  color: #a78bfa;
  background: rgba(123, 47, 247, 0.12);
  border-radius: 20px;
  padding: 3px 9px;
}

.mroom-slots.mroom-full {
  color: #e06060;
  background: rgba(224, 96, 96, 0.10);
}

.mroom-actions { margin-top: 2px; }

.mroom-join-btn {
  padding: 9px 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(90deg, #7b2ff7, #00e3ae);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  width: 88%;
  transition: opacity 0.15s;
}

.mroom-join-btn:hover { opacity: 0.85; }

.mroom-join-disabled {
  background: #2a2a3a !important;
  color: #555 !important;
  cursor: not-allowed !important;
}

.mroom-delete-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(224, 96, 96, 0.35);
  background: rgba(224, 96, 96, 0.10);
  color: #e06060;
  font-size: 11px;
  cursor: pointer;
  min-height: 34px;
  width: 88%;
}

/* ── PERFORMANCE ── */
.phone,
.member-card,
.member-card-img img,
.stage,
.call-screen {
  transform: translateZ(0);
  will-change: transform;
}

img { image-rendering: auto;
