* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: #0a0a12;
  --bg-card: #151522;
  --bg-card-glass: rgba(21, 21, 34, 0.88);
  --accent-gradient: linear-gradient(135deg, #ff3366, #ff8008);
  --accent-pink: #ff3366;
  --accent-orange: #ff8008;
  --text-main: #ffffff;
  --text-muted: #8e8e9f;
  --green-online: #00e676;
  --red-danger: #ff3b30;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background-color: #030307;
  color: var(--text-main);
  font-family: var(--font);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ANIMATED SPLASH SCREEN ON APP OPEN */
.app-splash-overlay {
  position: fixed;
  inset: 0;
  background: #07070e;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.app-splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splash-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.splash-logo-img {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  box-shadow: 0 0 50px rgba(255, 42, 133, 0.5), 0 0 80px rgba(255, 140, 0, 0.35);
  animation: splashPulse 1.6s ease-in-out infinite alternate;
  z-index: 2;
}

.splash-halo {
  position: absolute;
  border-radius: 32px;
  border: 2px solid rgba(255, 51, 102, 0.5);
  inset: -12px;
  animation: splashHalo 2.2s ease-out infinite;
}

.splash-halo.halo-2 {
  animation-delay: 1.1s;
  border-color: rgba(255, 128, 8, 0.5);
}

@keyframes splashPulse {
  0% { transform: scale(0.92); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 35px #ff3366); }
}

@keyframes splashHalo {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.splash-brand-title {
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.splash-tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.splash-loader {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.splash-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--accent-gradient);
  border-radius: 99px;
  animation: splashLoad 1.4s ease-in-out infinite;
}

@keyframes splashLoad {
  0% { left: -40%; width: 30%; }
  50% { left: 30%; width: 50%; }
  100% { left: 100%; width: 30%; }
}

.app-container {
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 500px) {
  .app-container {
    height: 94vh;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  }
  .app-header {
    padding-top: 18px !important;
  }
}

/* Screen Management */
.screen {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  flex-direction: column;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

/* LOBBY SCREEN */
.app-header {
  padding-top: max(46px, calc(env(safe-area-inset-top, 0px) + 20px));
  padding-bottom: 12px;
  padding-left: max(18px, env(safe-area-inset-left, 18px));
  padding-right: max(18px, env(safe-area-inset-right, 18px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(10, 10, 18, 0.98) 60%, rgba(10, 10, 18, 0.8) 80%, transparent);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35);
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.brand-tagline {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.online-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green-online);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-online);
  animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--green-online); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.lobby-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  position: relative;
}

/* Radar & Camera Preview */
.radar-container {
  position: relative;
  width: 240px;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.radar-circle {
  position: absolute;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 51, 102, 0.25);
  pointer-events: none;
}

.circle-1 {
  width: 260px;
  height: 330px;
  animation: radar-wave 3s infinite ease-out;
}

.circle-2 {
  width: 280px;
  height: 350px;
  animation: radar-wave 3s infinite ease-out 1.5s;
}

@keyframes radar-wave {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 0; }
}

.camera-preview-card {
  width: 230px;
  height: 300px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.camera-preview-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform: scaleX(-1);
}

.cam-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--green-online);
}

.cam-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #11111c;
  color: var(--text-muted);
  font-size: 11px;
  gap: 10px;
}

.avatar-silhouette {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

/* Action Area */
.action-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-primary-glow {
  width: 100%;
  padding: 16px 20px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 30px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(255, 51, 102, 0.45);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 51, 102, 0.6);
}

.btn-primary-glow:active {
  transform: scale(0.98);
}

.trust-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Bottom Nav */
.bottom-nav {
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-left: 6px;
  padding-right: 6px;
  flex-shrink: 0;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--accent-pink);
}

.nav-icon {
  font-size: 18px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
}

/* MATCHING SCREEN */
.matching-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.pulsing-radar {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.3;
  animation: radar-pulse 2.2s infinite ease-out;
}

.wave2 { animation-delay: 0.7s; }
.wave3 { animation-delay: 1.4s; }

@keyframes radar-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.center-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.5);
}

.radar-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

.matching-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.matching-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 30px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ========================================================== */
/* SPLIT-SCREEN CALL VIEW: MOBILE EDGE-TO-EDGE FIT */
/* ========================================================== */
#callScreen {
  background: #000;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.call-split-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.split-half {
  flex: 1;
  min-height: 0; /* CRITICAL: prevents flex children from overflowing on mobile */
  position: relative;
  overflow: hidden;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-half {
  border-bottom: 2px solid rgba(255, 51, 102, 0.35);
}

.local-half {
  background: #030306;
}

/* Contain ensures 100% wide camera angle without aggressive zoom */
.split-half video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#localVideo {
  transform: scaleX(-1);
}

.half-label {
  position: absolute;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.stranger-label {
  bottom: 8px;
  left: 10px;
}

.self-label {
  top: 10px;
  left: 10px;
}

.remote-waiting-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 18, 0.9);
  gap: 12px;
  z-index: 5;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-pink);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Call Top Bar */
.call-top-bar {
  position: absolute;
  top: max(44px, calc(env(safe-area-inset-top, 0px) + 16px));
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.caller-info-chip {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.live-indicator {
  color: var(--green-online);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.call-timer {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-report {
  background: rgba(255, 59, 48, 0.25);
  border: 1px solid rgba(255, 59, 48, 0.5);
  color: #ff6b6b;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* Bottom In-Call Controls */
.call-controls-bar {
  position: absolute;
  bottom: 14px;
  left: 10px;
  right: 10px;
  background: rgba(18, 18, 28, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.control-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn .icon { font-size: 17px; }
.control-btn .label { font-size: 9px; font-weight: 600; }
.control-btn:active { transform: scale(0.92); }

.end-btn {
  background: var(--red-danger);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.4);
}

.end-btn .label { display: none; }

.next-match-btn {
  background: var(--accent-gradient);
  padding: 8px 16px;
  border-radius: 20px;
  flex-direction: row;
  gap: 5px;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 51, 102, 0.45);
}

.next-match-btn .icon { font-size: 14px; }
.next-match-btn .label { font-size: 11px; letter-spacing: 0.5px; }

/* MODALS */
.modal-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

/* DUAL TAB MODAL (BLOCK & REPORT) */
.action-tab-header {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  gap: 6px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--bg-card);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

.block-info-box {
  text-align: center;
  padding: 6px 0 16px 0;
}

.block-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.block-info-box h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.block-info-box p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.report-info-box h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}

textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px;
  font-family: inherit;
  font-size: 12px;
  resize: none;
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-cancel {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

.btn-confirm-block {
  background: var(--red-danger);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
}

.btn-confirm-report {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 51, 102, 0.4);
}

/* SAFETY RULES MODAL (EXPANDED UGC) */
.rules-card-full {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.rules-header {
  text-align: center;
  margin-bottom: 14px;
}

.shield-badge {
  display: inline-block;
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-pink);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rules-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.rules-header p {
  font-size: 11px;
  color: var(--text-muted);
}

.rules-scroll-area {
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
}

.rule-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rule-title .num {
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.rule-title h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.rule-box p {
  font-size: 11px;
  color: #bbb;
  line-height: 1.4;
  margin-left: 28px;
}

/* PROFILE CARD & GOOGLE LOGIN */
.profile-card {
  text-align: center;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.user-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-pink);
  box-shadow: 0 4px 18px rgba(255, 51, 102, 0.4);
}

.verified-pill {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--green-online);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: var(--radius-md);
  margin: 14px 0;
}

.pstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pval {
  font-size: 15px;
  font-weight: 800;
}

.plbl {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-logout {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff6b6b;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Guest View inside Profile */
.guest-header {
  margin-bottom: 16px;
}

.guest-avatar-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 10px auto;
}

.guest-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.google-perks-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.perk-item {
  font-size: 11px;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Official Google Sign-In Button */
.btn-google-signin {
  width: 100%;
  background: #ffffff;
  color: #3c4043;
  border: none;
  border-radius: 24px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Google Sans", "Roboto", var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.btn-google-signin:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-google-signin:active {
  transform: scale(0.98);
}

/* RECENT CALLS */
.recent-list-container {
  max-height: 240px;
  overflow-y: auto;
  margin: 14px 0;
}

.empty-recent {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.recent-name {
  font-weight: 700;
  font-size: 13px;
}

.recent-time {
  font-size: 10px;
  color: var(--text-muted);
}

/* GENDER SELECTOR CARD */
.gender-selector-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}

.gender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gender-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 68px;
  text-align: left;
}

.gender-pills {
  display: flex;
  gap: 5px;
  flex: 1;
}

.gpill {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.gpill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.gpill.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255, 51, 102, 0.45);
}

/* DYNAMIC FACE PILL STATES */
#faceStatusPill.checking {
  color: #ffb703;
  border-color: rgba(255, 183, 3, 0.4);
}

#faceStatusPill.verified {
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.15);
}

#faceStatusPill.noface {
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.5);
  background: rgba(255, 77, 77, 0.2);
  animation: shake-badge 0.5s ease;
}

@keyframes shake-badge {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* POLICY PLEDGE MODAL */
.pledge-card {
  max-width: 380px;
}

.pledge-header {
  text-align: center;
  margin-bottom: 14px;
}

.pledge-badge {
  display: inline-block;
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-pink);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.pledge-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pledge-header p {
  font-size: 11px;
  color: var(--text-muted);
}

.pledge-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.pledge-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: #ddd;
  cursor: default;
}

.pledge-item input[type="checkbox"] {
  accent-color: var(--accent-pink);
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.pledge-item strong {
  color: #fff;
}

.pledge-warning {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff6b6b;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   LEGAL HUB & NEON BUTTONS (MATCHING USER SCREENSHOTS)
   ========================================================================== */
.legal-modal-card {
  width: 95%;
  max-width: 440px;
  max-height: 85vh;
  background: #0d0e15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.legal-section {
  display: none;
  flex-direction: column;
  height: 100%;
}

.legal-section.active {
  display: flex;
}

/* Section 1: Menu View */
.legal-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-menu-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.modal-close-icon {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.legal-menu-sub {
  font-size: 13px;
  color: #94a3b8;
  padding: 14px 20px 0 20px;
  line-height: 1.5;
}

.neon-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 20px;
  align-items: center;
  justify-content: center;
}

/* Photo 1: Neon Pink Button */
.btn-neon-pink {
  width: 100%;
  padding: 22px 16px;
  background: #12131d;
  border: 2.5px solid #ff2a85;
  border-radius: 24px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.35), inset 0 0 10px rgba(255, 42, 133, 0.15);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-neon-pink:hover, .btn-neon-pink:active {
  background: #1c1328;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 42, 133, 0.55), inset 0 0 15px rgba(255, 42, 133, 0.25);
  border-color: #ff529f;
}

/* Photo 1: Neon Orange Button */
.btn-neon-orange {
  width: 100%;
  padding: 22px 16px;
  background: #12131d;
  border: 2.5px solid #ff8c00;
  border-radius: 24px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.35), inset 0 0 10px rgba(255, 140, 0, 0.15);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-neon-orange:hover, .btn-neon-orange:active {
  background: #241610;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 140, 0, 0.55), inset 0 0 15px rgba(255, 140, 0, 0.25);
  border-color: #ffa726;
}

.legal-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px 20px 20px;
  font-size: 11.5px;
  color: #64748b;
}

.legal-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.legal-footer-links a:hover {
  color: #ff2a85;
}

/* Document Top Bar */
.legal-doc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.legal-doc-topbar h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.legal-back-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.legal-back-btn:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
}

/* Scrollable Document Area */
.legal-doc-scroll {
  padding: 18px 20px;
  overflow-y: auto;
  max-height: calc(85vh - 65px);
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.6;
}

.legal-meta-badge {
  display: inline-block;
  background: rgba(255, 42, 133, 0.12);
  border: 1px solid rgba(255, 42, 133, 0.3);
  color: #ff70a6;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.legal-meta-badge.orange {
  background: rgba(255, 140, 0, 0.12);
  border-color: rgba(255, 140, 0, 0.3);
  color: #ffaa40;
}

.legal-h5 {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 18px 0 8px 0;
}

.legal-block {
  margin-bottom: 12px;
}

.legal-block h6 {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.legal-block p {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.legal-block ul, .legal-ul {
  margin-left: 18px;
  margin-bottom: 12px;
}

.legal-block li, .legal-ul li {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 5px;
}

.legal-alert-box {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 500;
  margin: 14px 0;
  line-height: 1.5;
}

.legal-alert-box.pink {
  background: rgba(255, 42, 133, 0.08);
  border-left: 3px solid #ff2a85;
  color: #ffd1e4;
}

.legal-alert-box.blue {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  color: #bfdbfe;
}

.legal-alert-box.orange {
  background: rgba(255, 140, 0, 0.08);
  border-left: 3px solid #ff8c00;
  color: #fed7aa;
}

.legal-note {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.legal-footer-clause {
  font-size: 11px;
  color: #64748b;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

