/* ============================================
   MEETLY — styles.css
   Production-grade CSS
   ============================================ */

/* ===== RESET & ROOT ===== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:         #07070f;
  --bg2:        #0d0d1a;
  --surface:    #111120;
  --surface2:   #18182a;
  --surface3:   #20203a;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.12);

  --accent:     #5c5cff;
  --accent-h:   #7070ff;
  --accent-glow:rgba(92,92,255,0.35);
  --accent2:    #ff4d8d;
  --accent2-glow:rgba(255,77,141,0.3);

  --green:      #00f080;
  --green-glow: rgba(0,240,128,0.25);
  --red:        #ff4d4d;

  --text:       #f0f0ff;
  --text2:      #a0a0c0;
  --muted:      #555570;

  --font:       'Outfit', 'DM Sans', sans-serif;
  --font-display:'Outfit', sans-serif;

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.6);

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Safe area insets for notch phones */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
select, input { font-family: var(--font); }
img { max-width: 100%; }

/* ===== PAGES ===== */
.page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: opacity, transform;
}

.page.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98) translateY(8px);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px 16px;
  padding-bottom: calc(16px + var(--sab));
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
  padding: 28px 22px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s var(--ease-bounce);
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ===== AGE MODAL ===== */
.age-emoji { font-size: 40px; text-align: center; }

.age-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.3px;
}

.age-desc {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  line-height: 1.6;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.checkbox-row:hover { border-color: var(--accent); }

.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}

.checkbox-custom { display: none; }

.checkbox-label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
  user-select: none;
}

.checkbox-label strong { color: var(--text); }

.age-legal {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 24px;
  width: 100%;
  transition: all 0.18s var(--ease);
  box-shadow: 0 4px 20px var(--accent-glow);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.18s;
}

.btn-primary:hover:not(:disabled)::after { opacity: 1; }
.btn-primary:active:not(:disabled) { transform: scale(0.97); }

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary.sm { font-size: 13px; padding: 11px 20px; }
.btn-primary.btn-danger { background: linear-gradient(135deg, var(--red), #c0392b); box-shadow: 0 4px 20px rgba(255,77,77,0.3); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  transition: all 0.18s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-ghost:active { transform: scale(0.97); }

.btn-ghost-sm {
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn-accent-sm {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}

.btn-icon:hover { background: var(--surface3); color: var(--text); }

/* ===== LINK ===== */
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border2);
  padding: 14px 16px;
  padding-bottom: calc(14px + var(--sab));
  z-index: 900;
  animation: slideUp 0.3s var(--ease);
}

.cookie-banner.hidden { display: none; }

.cookie-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text2);
}

.cookie-actions {
  display: flex; gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ===== REPORT MODAL ===== */
.report-card { gap: 14px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.report-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

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

.report-option {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  transition: all 0.15s;
}

.report-option:hover { border-color: var(--accent); color: var(--text); background: var(--surface3); }
.report-option.selected { border-color: var(--accent); background: rgba(92,92,255,0.1); color: var(--text); }

/* ===== AD OVERLAY ===== */
.ad-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  padding: 20px;
  animation: fadeIn 0.3s var(--ease);
}

.ad-overlay.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ad-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 20px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s var(--ease-bounce);
}

.ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ad-timer-text {
  font-size: 13px;
  color: var(--text2);
}

.ad-timer-text strong { color: var(--accent); }

.ad-content {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 160px;
}

.ad-placeholder {
  width: 100%;
  height: 200px;
  background: var(--surface2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.ad-placeholder-icon { font-size: 32px; }
.ad-placeholder-text { font-size: 14px; font-weight: 600; color: var(--text2); }
.ad-placeholder-sub { font-size: 12px; color: var(--muted); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: calc(16px + var(--sat));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s var(--ease-bounce);
  backdrop-filter: blur(12px);
}

.toast.green { border-color: rgba(0,240,128,0.3); color: var(--green); background: rgba(0,240,128,0.08); }
.toast.red { border-color: rgba(255,77,77,0.3); color: var(--red); background: rgba(255,77,77,0.08); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

/* ===== HOME PAGE ===== */
#homePage { overflow: hidden auto; background: var(--bg); }

/* Background */
.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbDrift 10s ease-in-out infinite;
  pointer-events: none;
}

.bg-orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(92,92,255,0.18) 0%, transparent 70%);
  top: -150px; left: -150px;
  animation-delay: 0s;
}

.bg-orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,77,141,0.12) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -5s;
}

.bg-orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,240,128,0.08) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -3s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(25px, -20px) scale(1.04); }
  66%       { transform: translate(-15px, 12px) scale(0.97); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bg-noise {
  position: absolute; inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Nav */
.home-nav {
  position: relative; z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: calc(16px + var(--sat));
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.logo-mark.sm {
  width: 28px; height: 28px;
  font-size: 14px;
  border-radius: 8px;
}

.logo-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  transition: all 0.18s;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* Hero */
.home-main {
  flex: 1;
  position: relative; z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 440px;
}

/* Online badge */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,240,128,0.07);
  border: 1px solid rgba(0,240,128,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50%       { box-shadow: 0 0 0 8px rgba(0,240,128,0); }
}

.online-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: dotBlink 2s infinite;
  flex-shrink: 0;
}

.online-dot.sm {
  width: 6px; height: 6px;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.online-text { line-height: 1; }

/* Hero title */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-align: center;
}

.hero-line1 {
  font-size: clamp(36px, 10vw, 58px);
  color: var(--text);
  animation: heroIn 0.6s var(--ease-bounce) 0.1s both;
}

.hero-line2 {
  font-size: clamp(40px, 12vw, 68px);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroIn 0.6s var(--ease-bounce) 0.2s both;
}

.hero-line3 {
  font-size: clamp(28px, 8vw, 48px);
  color: rgba(255,255,255,0.45);
  animation: heroIn 0.6s var(--ease-bounce) 0.3s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 15px;
  color: var(--text2);
  text-align: center;
  line-height: 1.65;
  max-width: 320px;
}

/* Country stats */
.country-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.country-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}

.cs-more {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  font-weight: 400;
}

/* Filters */
.filter-box {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
}

.filter-select {
  width: 100%;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 32px 10px 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s;
}

.filter-select:focus { border-color: rgba(92,92,255,0.5); }

.select-arrow {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
}

/* Start buttons */
.start-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-start-video {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  padding: 16px 20px;
  width: 100%;
  text-align: left;
  transition: all 0.18s var(--ease);
  box-shadow: 0 8px 28px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-start-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s;
}

.btn-start-video:hover::before { opacity: 1; }
.btn-start-video:active { transform: scale(0.98); }

.btn-start-text {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  color: var(--text);
  padding: 14px 20px;
  width: 100%;
  text-align: left;
  transition: all 0.18s var(--ease);
}

.btn-start-text:hover { background: var(--surface3); border-color: rgba(255,255,255,0.15); }
.btn-start-text:active { transform: scale(0.98); }

.btn-icon-wrap { font-size: 22px; flex-shrink: 0; }

.btn-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.btn-main-text { font-size: 15px; font-weight: 700; }
.btn-sub-text { font-size: 12px; opacity: 0.7; }
.btn-arrow { font-size: 18px; margin-left: auto; opacity: 0.7; }

.home-terms {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* Footer */
.home-footer {
  position: relative; z-index: 5;
  padding: 16px 20px;
  padding-bottom: calc(16px + var(--sab));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--text2); }

.footer-copy {
  font-size: 11px;
  color: var(--muted);
}

/* ===== MATCHING PAGE ===== */
#matchingPage {
  background: var(--bg);
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.matching-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}

.matching-content {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

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

/* Radar animation */
.matching-anim {
  width: 140px; height: 140px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  animation: radarPulse 2.4s var(--ease) infinite;
}

.radar-ring.r1 { inset: 0;   border-color: rgba(92,92,255,0.6); animation-delay: 0s; }
.radar-ring.r2 { inset: 14px; border-color: rgba(92,92,255,0.4); animation-delay: 0.3s; }
.radar-ring.r3 { inset: 28px; border-color: rgba(92,92,255,0.25); animation-delay: 0.6s; }
.radar-ring.r4 { inset: 42px; border-color: rgba(255,77,141,0.3); animation-delay: 0.9s; }

@keyframes radarPulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  50%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1);    opacity: 0.8; }
}

.radar-center {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px var(--accent-glow);
  z-index: 1;
}

.radar-emoji { font-size: 24px; }

.matching-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
}

.matching-sub {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text2);
  text-align: center;
}

.match-stat {
  display: flex; align-items: center; gap: 6px;
}

.match-stat-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: dotBlink 2s infinite;
}

.match-sep { color: var(--muted); }

.matching-dots {
  display: flex; gap: 6px;
}

.matching-dots span {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: matchDot 1.2s infinite;
  opacity: 0.4;
}

.matching-dots span:nth-child(2) { animation-delay: 0.2s; }
.matching-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes matchDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30%            { opacity: 1;   transform: scale(1.2); }
}

/* ===== CHAT PAGE ===== */
#chatPage {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  padding-top: calc(10px + var(--sat));
  background: rgba(7,7,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 20;
  gap: 10px;
}

.chat-nav-left {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; flex: 1;
}

.nav-logo.compact { gap: 8px; flex-shrink: 0; }

.connection-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  min-width: 0;
  overflow: hidden;
}

.conn-flag { font-size: 13px; flex-shrink: 0; }
.conn-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.conn-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 2px;
}

.chat-nav-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.online-mini {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,240,128,0.07);
  border: 1px solid rgba(0,240,128,0.18);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.lock-badge {
  font-size: 14px;
  color: var(--muted);
}

/* Video area */
.video-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #000;
}

.video-stranger {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #08081a 0%, #100820 40%, #080f1a 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s var(--ease);
}

.video-stranger video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Video placeholder */
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.placeholder-avatar {
  font-size: 60px;
  position: relative; z-index: 2;
  animation: avatarFloat 4s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.placeholder-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(92,92,255,0.2);
  animation: ringExpand 3s ease-in-out infinite;
}

.placeholder-ring.r1 { width: 140px; height: 140px; animation-delay: 0s; }
.placeholder-ring.r2 { width: 200px; height: 200px; animation-delay: 0.8s; }

@keyframes ringExpand {
  0%   { opacity: 0.6; transform: scale(0.95); }
  50%  { opacity: 1;   transform: scale(1.02); }
  100% { opacity: 0.6; transform: scale(0.95); }
}

/* Disconnect overlay */
.disconnect-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  animation: fadeIn 0.3s var(--ease);
}

.disconnect-overlay.hidden { display: none; }

.disconnect-content {
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}

.disconnect-icon { font-size: 44px; }

.disconnect-content p {
  font-size: 17px;
  font-weight: 600;
  color: var(--text2);
}

/* PiP video */
.video-pip {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 88px; height: 116px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.15);
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 8px 28px rgba(0,0,0,0.7);
  background: var(--surface2);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}

.video-pip:active { transform: scale(0.96); }

.video-pip video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.pip-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

.pip-overlay {
  position: absolute;
  bottom: 4px; left: 6px;
  font-size: 12px;
}

/* Badges */
.stranger-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
  max-width: 200px;
}

.session-timer {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  z-index: 5;
}

/* Video controls */
.vid-controls {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; gap: 8px;
  z-index: 10;
}

.vid-ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}

.vid-ctrl-btn:active { transform: scale(0.9); }
.vid-ctrl-btn.off {
  background: rgba(255,50,50,0.3);
  border-color: rgba(255,50,50,0.35);
}

/* Chat bottom */
.chat-bottom {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: 45vh;
}

/* Typing bar */
.typing-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(92,92,255,0.04);
  flex-shrink: 0;
}

.typing-bubbles {
  display: flex; gap: 3px; align-items: center;
}

.typing-bubbles span {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: typeDot 1.2s infinite;
  opacity: 0.5;
}

.typing-bubbles span:nth-child(2) { animation-delay: 0.15s; }
.typing-bubbles span:nth-child(3) { animation-delay: 0.30s; }

@keyframes typeDot {
  0%, 60%, 100% { transform: translateY(0);  opacity: 0.35; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

.typing-text { font-size: 12px; color: var(--accent); font-weight: 500; }

/* Messages */
.messages-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.messages-list::-webkit-scrollbar { width: 3px; }
.messages-list::-webkit-scrollbar-track { background: transparent; }
.messages-list::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }

.msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: msgSlide 0.25s var(--ease-bounce);
}

@keyframes msgSlide {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.msg.me   { align-items: flex-end; }
.msg.them { align-items: flex-start; }

.bubble {
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 78%;
  word-break: break-word;
  position: relative;
}

.msg.me .bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.msg.them .bubble {
  background: var(--surface3);
  color: var(--text);
  border-bottom-left-radius: 5px;
  border: 1px solid var(--border);
}

.msg-time {
  font-size: 10px;
  color: var(--muted);
  padding: 0 5px;
}

/* Input bar */
.input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.msg-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
  min-width: 0;
  caret-color: var(--accent);
}

.msg-input:focus { border-color: rgba(92,92,255,0.45); }
.msg-input::placeholder { color: var(--muted); }

.send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s var(--ease);
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.send-btn:hover { background: var(--accent-h); transform: scale(1.05); }
.send-btn:active { transform: scale(0.92); }

/* Action bar */
.action-bar {
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  padding-bottom: calc(10px + var(--sab));
  flex-shrink: 0;
}

.btn-next {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  transition: all 0.18s var(--ease);
  box-shadow: 0 4px 18px var(--accent-glow);
  letter-spacing: 0.2px;
}

.btn-next:active { transform: scale(0.97); opacity: 0.9; }

.btn-stop {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 13px;
  transition: all 0.18s;
}

.btn-stop:hover { border-color: rgba(255,77,77,0.3); color: var(--red); }
.btn-stop:active { transform: scale(0.97); }

.btn-report-sm {
  width: 48px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}

.btn-report-sm:active { border-color: rgba(255,77,77,0.35); transform: scale(0.95); }

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 768px) {
  #chatPage { flex-direction: column; }

  .video-pip {
    width: 130px; height: 170px;
    bottom: 20px; right: 20px;
  }

  .chat-bottom { max-height: none; }
  .messages-list { max-height: 180px; }
}

@media (min-width: 1024px) {
  #chatPage {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    padding-top: 52px;
  }

  .chat-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    height: 52px;
  }

  .video-area {
    flex: 1 1 0%;
    min-width: 0;
    height: calc(100vh - 52px);
    position: relative;
    overflow: hidden;
  }

  .chat-bottom {
    flex: 0 0 320px;
    width: 320px;
    height: calc(100vh - 52px);
    border-top: none;
    border-left: 1px solid var(--border);
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .messages-list {
    flex: 1;
    max-height: none;
    overflow-y: auto;
  }
}

/* ===== SMALL PHONES ===== */
@media (max-height: 667px) {
  .hero-title { gap: 0; }
  .hero-content { gap: 16px; }
  .chat-bottom { max-height: 42vh; }
}

/* ===== OPTION GROUP ===== */
optgroup { background: var(--surface); color: var(--muted); }
option   { background: var(--surface); color: var(--text); }
/* ============================================
   MEETLY — styles-extra.css
   Styles complémentaires : premium, pub, bannière
   À ajouter à la suite de styles.css
   ============================================ */

/* ===== AD BANNER ===== */
.ad-banner-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 50px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-banner-inner {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  text-align: center;
}

/* ===== AFFILIATION BANNERS ===== */
/* À placer dans la page d'accueil entre les sections */
.affiliation-strip {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.affil-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.affil-badge:hover {
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}

.affil-badge.vpn   { border-color: rgba(92,92,255,0.2);  }
.affil-badge.renco { border-color: rgba(255,77,141,0.2); }
