@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Readex+Pro:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --sky: #0284c7;
  --sky-hover: #0369a1;
  --sky-dark: #075985;
  --sky-light: #f0f9ff;
  --sky-border: #bae6fd;
  
  --orange: #f97316;
  --orange-hover: #ea580c;
  --orange-light: #fff7ed;
  --orange-border: #ffedd5;
  
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --red-light: #fef2f2;
  --red-border: #fecaca;
  
  /* Modern soft shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Readex Pro', 'Inter', 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: 58px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input { font-family: inherit; }

.ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.ico-lg { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  flex: none;
}
.brand:hover { opacity: 0.92; }
.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--orange);
}
.brand-name em {
  font-style: normal;
  color: var(--sky);
}
.brand-name::first-letter {
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1;
}
.brand-tag {
  font-size: 9px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  border: 1px solid var(--line);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding: 2px;
}
.top-right::-webkit-scrollbar { display: none; }
.top-right > * { flex: none; }
/* custom language picker */
.lang-wrap { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; color: var(--text); outline: none; }
.lang-btn:focus { outline: none; }
.lang-btn:focus-visible { box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.35); }
.lang-btn .chev { font-size: 9px; opacity: 0.6; }
.lang-menu {
  position: fixed;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.2);
  padding: 6px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu button {
  display: flex; align-items: center; gap: 9px;
  background: none; border: none; border-radius: 10px;
  padding: 9px 11px; font-size: 13.5px; cursor: pointer; color: inherit; text-align: start; width: 100%;
}
.lang-menu button:hover { background: var(--sky-light); }
.lang-menu button.active { background: var(--sky-light); font-weight: 800; }
.lang-menu .tick { margin-inline-start: auto; color: var(--sky-dark); font-weight: 800; }
body.dark .lang-menu { background: #131c27; }
body.dark .lang-menu button { color: #f1f5f9; }
body.dark .top-right .lang-btn,
body.dark .top-right .lang-btn:focus,
body.dark .top-right .lang-btn:focus-visible,
body.dark .top-right .lang-btn:active { background: #111827 !important; border: 1px solid #1f2937 !important; color: #ffffff !important; box-shadow: none !important; outline: none !important; }
body.dark .top-right .lang-btn:hover { background: #1a2433 !important; border-color: #2b3a4f !important; color: #ffffff !important; }
body.dark .lang-menu button:hover { background: #0f2740; }
body.dark .lang-menu button.active { background: #0f2740; }
.theme-switch {
  width: 58px;
  height: 30px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.theme-switch:hover { border-color: #cbd5e1; }
.theme-switch .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
  color: #475569;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.theme-switch.dark-on { background: #1e293b; border-color: #334155; }
.theme-switch.dark-on .thumb {
  transform: translateX(28px);
  background: #0f172a;
  border-color: #334155;
  color: var(--orange);
}
.online-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: #334155;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.online-pill b { color: var(--text); font-weight: 700; }
.sm-wrap { position: relative; }
.sm-menu {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 24px));
  max-height: min(600px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  z-index: 80;
  overflow: hidden;
}
.fp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 800; font-size: 15px; flex: none; }
.fp-head .prem-bolt { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#fbbf24,#f97316); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fp-head .sp { flex: 1; }
.fp-head .link { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.fp-head .x { background: none; border: none; font-size: 15px; cursor: pointer; color: var(--muted); }
.fp-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 10px; gap: 2px; flex: none; }
.fp-tabs button { flex: 1; background: none; border: none; border-bottom: 2.5px solid transparent; padding: 9px 4px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fp-tabs button.active { color: var(--sky-dark); border-color: var(--sky); }
.fp-tabs .new { background: linear-gradient(135deg,#fbbf24,#f97316); color: #fff; font-size: 9.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.fp-sub { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 4px; font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 40px; height: 22px; background: #d4dae1; border-radius: 999px; border: none; cursor: pointer; transition: .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch.on { background: var(--orange); }
.switch.on::after { transform: translateX(18px); }
body.rtl .switch.on::after, [dir="rtl"] .switch.on::after { transform: translateX(-18px); }
.fp-search { margin: 8px 14px 2px; }
.fp-search input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-family: inherit; background: var(--card); color: var(--text); }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px 14px; overflow-y: auto; flex: 1; min-height: 90px; }
.fp-flag-img { width: 44px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--line); background: #f1f5f9; }
.fp-lock { margin: 0 14px 12px; background: #fff7ed; border: 1.5px solid #fdba74; color: #9a3412; border-radius: 12px; padding: 10px 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.fp-lock a { font-weight: 800; color: var(--orange-dark); }
body.dark .fp-lock { background: #2c1a06; border-color: #92600a; color: #fde68a; }
.fp-grid button {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 9px 10px; font-size: 13.5px; cursor: pointer; color: inherit; text-align: start;
}
.fp-grid button:hover { border-color: var(--sky); }
.fp-grid button.sel { border-color: var(--sky); background: var(--sky-light); color: var(--sky-dark); font-weight: 700; }
.fp-grid button.prem-pick:not(.sel) { border-style: dashed; }
.fp-flag { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#e0f2fe,#fef3c7); color: var(--sky-dark); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.fp-sec { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.fp-sec label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.fp-sec select, .fp-sec input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; font-family: inherit; background: var(--card); color: var(--text); }
.fp-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.fp-mode { display: flex; gap: 8px; padding: 10px 14px 0; }
.fp-mode button { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 8px; font-size: 13px; font-weight: 700; cursor: pointer; color: inherit; }
.fp-mode button.sel { border-color: var(--orange); background: #fff7ed; color: var(--orange-dark); }
body.dark .sm-menu { background: #131c27; }
body.dark .fp-grid button { background: #0f1620; }
body.dark .fp-grid button.sel { background: #0f2740; }
@media (max-width: 560px) {
  .sm-menu { left: 10px; right: 10px; top: auto; bottom: 86px; transform: none; width: auto; max-height: 70dvh; }
  .fp-grid { max-height: none; }
}
.prem-btn{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#fbbf24,#f97316);color:#fff!important;font-weight:800;font-size:13px;padding:7px 15px;border-radius:999px;box-shadow:0 4px 14px rgba(249,115,22,.4);transition:.18s;white-space:nowrap}
.prem-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(249,115,22,.55)}
.prem-btn.live{background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 4px 14px rgba(217,119,6,.45)}
body.dark .prem-btn{box-shadow:0 4px 14px rgba(249,115,22,.3)}
/* premium identity */
body.is-premium{border-top:3px solid transparent;border-image:linear-gradient(90deg,#fbbf24,#f97316,#0284c7) 1}
.video-box.prem-gold{border:2px solid #f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.25),0 10px 30px rgba(245,158,11,.25)}
.msg.gold{background:linear-gradient(180deg,#fff7e0,#ffefc2)!important;color:#7c4a03!important;border:1px solid #f5c86e}
.msg .pbadge{background:linear-gradient(135deg,#fbbf24,#f97316);color:#fff;font-size:10px;font-weight:800;padding:1px 7px;border-radius:999px}
.sys.prem-welcome{background:linear-gradient(135deg,#fff7e0,#ffedd5);border:1px solid #f5c86e;color:#92400e}
.hd-badge{background:#0b1526;color:#fff;font-size:10px;font-weight:800;padding:2px 7px;border-radius:6px;margin-inline-start:6px;letter-spacing:.5px}
.prem-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.prem-chips button{font-size:12px;font-weight:700;border:1px solid #f5c86e;background:#fff7e0;color:#92400e;border-radius:999px;padding:4px 11px;cursor:pointer}
.char-count{position:absolute;bottom:4px;inset-inline-end:52px;font-size:10.5px;color:var(--muted)}
.send.locked{position:relative;color:#b0bcc9}
.send .lock{position:absolute;top:-6px;inset-inline-end:-4px;background:linear-gradient(135deg,#fbbf24,#f97316);color:#fff;font-size:8.5px;font-weight:800;padding:1px 6px;border-radius:999px}
.send .lock-img{position:absolute;top:-9px;inset-inline-end:-7px;width:20px;height:20px;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.25)}
body.dark .msg.gold{background:linear-gradient(180deg,#3a2c08,#2c2206)!important;color:#fde68a!important;border-color:#92600a}
body.dark .prem-chips button{background:#2c2206;border-color:#92600a;color:#fde68a}
body.dark .sys.prem-welcome{background:#2c2206;color:#fde68a;border-color:#92600a}

.wave { position: fixed; z-index: -1; pointer-events: none; opacity: 0.35; }
.wave-tr { top: 0; right: 0; width: 340px; }
.wave-bl { left: 0; bottom: 0; width: 220px; }

/* Main Container */
.container {
  max-width: 1120px;
  margin: 36px auto 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.hero {
  padding: 64px 72px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";position:absolute;inset:-40% -20% auto;height:420px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(2,132,199,.09),transparent 70%),radial-gradient(closest-side at 75% 40%,rgba(249,115,22,.07),transparent 70%);
}
.hero>*{position:relative}
/* entrance: GPU-only, staggered */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.hero .eyebrow,.hero h1,.hero .desc,.hero .btn-row,.hero .trust{animation:rise .55s var(--ease, cubic-bezier(.4,0,.2,1)) backwards}
.hero h1{animation-delay:.06s}.hero .desc{animation-delay:.12s}.hero .btn-row{animation-delay:.18s}.hero .trust{animation-delay:.24s}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;
  font-size:13px;font-weight:700;letter-spacing:.4px;color:var(--sky-dark);
  background:var(--sky-light);border:1px solid var(--sky-border);
  padding:7px 16px;border-radius:999px;
}
.eyebrow .pulse{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 0 rgba(16,185,129,.5);animation:pulse 2s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(16,185,129,0)}100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}}
.trust{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:4px 0 26px}
.trust span{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--muted)}
.trust svg{color:var(--sky)}
.btn-row .btn svg{flex:none}
/* speed: skip offscreen paint */
.features,.faq{content-visibility:auto;contain-intrinsic-size:auto 400px}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 60px;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -2.2px;
  line-height: 1.05;
  color: #0f172a;
}
.hero h1 span {
  background: linear-gradient(92deg, #0284c7 20%, #f97316 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
}
.proof span {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #475569;
}
.proof .ico { color: var(--sky); }
.hero p.desc {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: 19px;
  line-height: 1.8;
  color: #475569;
}
.btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.btn-row .btn{width:220px;min-width:0;transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .25s,border-color .25s,filter .25s}
.btn {
  font-size: 22px;
  font-weight: 700;
  padding: 17px 36px;
  border-radius: 16px;
  cursor: pointer;
  min-width: 200px;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-outline {
  background: #ffffff;
  color: var(--sky-dark);
  border: 1.5px solid #bae6fd;
}
.btn-outline:hover {
  background: var(--sky-light);
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}
.btn-fill {
  background: linear-gradient(180deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.22);
  border: 1.5px solid transparent;
}
.btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
  filter: brightness(1.04);
}
.or { color: #94a3b8; font-size: 13px; font-weight: 500; }
.interest-label {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 14px;
  color: #1e293b;
}
.tags-box {
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(180deg,#ffffff,#f8fbfe);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7);
}
.tags-box:hover{border-color:var(--sky-border)}
.tags-box:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}
.tags-box input:focus-visible{box-shadow:none} /* container ring is enough */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  justify-content: center;
}
.tag {
  background: var(--sky-light);
  color: var(--sky-dark);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 6px 6px 12px;
  border-radius: 999px;
  display: flex;
  gap: 4px;
  align-items: center;
  border: 1px solid var(--sky-border);
  animation: tagpop .2s var(--ease);
}
@keyframes tagpop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
.tag button {
  border: none;
  background: rgba(2,132,199,.1);
  color: var(--sky-dark);
  cursor: pointer;
  font-weight: 700;
  width: 22px;height: 22px;border-radius: 50%;
  display: inline-flex;align-items: center;justify-content: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tag button:hover { background: var(--red-deep); color: #fff; opacity: 1; }
.tags-box input {
  width: 100%;
  border: none;
  background: #f6f9fc;
  border-radius: 10px;
  outline: none;
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  padding: 8px;
  color: inherit;
}
.tags-box input::placeholder { color: #b3c2d1; font-weight: 400; }
.suggest {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.suggest button {
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 18px;
  cursor: pointer;
  transition: var(--transition);
}
.suggest button:hover {
  border-color: var(--sky);
  color: var(--sky-dark);
  background: var(--sky-light);
}
.suggest button:active{transform:scale(.94)}
.suggest button.added{border-color:var(--sky);color:var(--sky-dark);background:var(--sky-light)}
.mod-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 30px auto 10px;
  background: var(--sky-light);
  border: 1px solid var(--sky-border);
  color: var(--sky-dark);
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 48px 20px;
  border-top: 1px solid var(--line);
  background: #fafcff;
}
.feat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.feat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.1);
}
.feat-icon {
  width: 56px;
  height: 56px;
  background: var(--sky-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--sky);
}
.feat-icon svg{width:24px;height:24px}
.feat:nth-child(even) .feat-icon {
  background: var(--sky-light);
  color: var(--sky);
}
.feat h4 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}
.feat p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 0;
  min-height: 46px;
}
.faq {
  padding: 44px 56px 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 90px);
}
.faq-header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 28px;
}
.faq-header h2 {
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.faq-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--orange));
  margin: 10px auto 0;
}
.faq-header p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-card:hover {
  border-color: var(--sky-border);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
  transform: translateY(-1px);
}
.faq-card.open {
  border-color: var(--sky);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.14);
}
.faq-item {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  user-select: none;
  transition: var(--transition);
}
.faq-item:hover {
  color: var(--sky-dark);
}
.faq-ico {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--sky-dark);
  background: var(--sky-light);
  border-radius: 50%;
  padding: 4px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s;
}
.faq-card.open .faq-ico {
  transform: rotate(180deg);
  color: #ffffff;
  background: var(--sky);
}
.faq-card.open .faq-item {
  color: var(--sky-dark);
  background: var(--sky-light);
}
.faq-answer {
  display: none;
  padding: 15px 20px 19px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.7;
  background: #f0f9ff;
  border-top: 1px solid var(--sky-border);
}
.faq-card.open .faq-answer {
  display: block;
  animation: faqIn .3s var(--ease);
}
@keyframes faqIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  color: #94a3b8;
  font-size: 12.5px;
  background: #f8fafc;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer nav a:hover {
  color: var(--sky);
}

/* Chat Layout & Components */
.chat-wrap {
  max-width: 1280px;
  margin: 12px auto 28px;
  padding: 0 24px;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  color: #334155;
}
.statusbar .st-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.st-idle .st-dot { background: #94a3b8; }
.st-connecting .st-dot { background: var(--yellow); animation: pulse 1s infinite; }
.st-live .st-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }

.chat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
#log {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 460px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: #f8fafc;
  flex: 1;
}
#log::-webkit-scrollbar { width: 10px; }
#log::-webkit-scrollbar-track { background: transparent; }
#log::-webkit-scrollbar-thumb { background: #c3ccd6; border-radius: 999px; border: 2px solid #f8fafc; }
body.dark #log::-webkit-scrollbar-thumb { background: #334155; border-color: #0b0f19; }
.msg {
  max-width: 72%;
  padding: 11px 16px 7px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.msg .meta {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 3px;
}
.msg.rtl-msg .meta { text-align: right; }
.msg.you {
  align-self: flex-end;
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}
.msg.stranger {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #0b1b2c;
  border-bottom-left-radius: 5px;
}
.sys {
  align-self: center;
  background: var(--sky-light);
  color: var(--sky-dark);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--sky-border);
}
.typing-bubble {
  align-self: flex-start;
  background: #f1f4f8;
  border-radius: 999px;
  padding: 7px 13px;
  display: flex;
  gap: 4px;
  align-items: center;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.typing-bubble.show { opacity: 1; transform: none; }
.typing-bubble span {
  width: 6px;
  height: 6px;
  background: #64748b;
  border-radius: 50%;
  animation: tbounce 1.1s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tbounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }
body.dark .typing-bubble { background: #232e3c; }
body.dark .typing-bubble span { background: #9fb0c2; }

.controls {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  align-items: center;
  flex-wrap: wrap;
}
.pill {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: #334155;
  transition: var(--transition);
}
.pill .ico { color: var(--sky); }
.pill:hover {
  border-color: var(--sky);
  color: var(--sky-dark);
  background: var(--sky-light);
}
.premium {
  background: linear-gradient(180deg, #fb923c, #f97316);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.28);
  transition: var(--transition);
}
.premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.38);
  filter: brightness(1.04);
}
.bottom-bar {
  display: flex;
  gap: 12px;
}
.action-btn {
  background: var(--sky);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  min-width: 120px;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.1;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.22);
}
.action-btn:hover {
  background: var(--sky-hover);
  transform: translateY(-1px);
}
.action-btn small {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
}
.action-btn.next { background: #1e293b; box-shadow: 0 4px 14px rgba(30, 41, 59, 0.25); }
.action-btn.stop { background: var(--red); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25); }
.action-btn.stop:hover { background: #dc2626; }
.timer {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.msg-input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 86px 0 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.msg-input:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.msg-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 14px 0;
  background: transparent;
  color: inherit;
}
.send {
  color: var(--sky);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
}
.send:hover {
  background: var(--sky-light);
  transform: scale(1.08);
}

/* Video Layout */
body.video-page .chat-wrap { max-width: 1560px; padding: 0 12px; }
body.video-page .header-inner { max-width: none; }
.video-layout {
  display: grid;
  grid-template-columns: 320px 10px minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: stretch;
  min-height: calc(100vh - 190px);
}
.video-layout.no-side { grid-template-columns: 320px 10px minmax(0, 1fr); }
.videos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
/* stranger screen on top, yours below */
.video-box:has(#remoteVideo) { order: -1; }
.video-box {
  background: #090d16;
  border-radius: 14px;
  flex: 1;
  width: 100%;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.video-box.video-main { flex: 1; }
.ad-rail {
  width: 160px;
  align-self: stretch;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  gap: 8px;
  position: sticky;
  top: 70px;
  overflow: hidden;
}
.ad-rail .ad-tag { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ad-rail .ad-box {
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 12px, #e8eef4 12px, #e8eef4 24px);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark .ad-rail { background: #101722; }
@media (max-width: 1240px) {
  .video-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .video-layout.no-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .ad-rail, .drag-handle { display: none; }
}
.statusbar.slim {
  margin-bottom: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
}
.video-box video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #090d16;
}
.video-placeholder { z-index: 1; }
.v-label { z-index: 3; }
.v-report { z-index: 3; }
.v-actions { z-index: 3; }
.v-wm { z-index: 2; }
.v-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.v-wm {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0.85;
  white-space: nowrap;
}
.v-wm small { font-weight: 700; color: #38bdf8; }
.v-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}
.v-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}
.v-actions button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  transform: scale(1.05);
}
.v-report {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}
.v-report:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  transform: scale(1.08);
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
}
.video-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.video-col .chat-card {
  flex: 1;
  min-height: 380px;
}
.video-col #log {
  flex: 1;
  max-height: none;
  min-height: 280px;
}

/* Modals & Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal h3 {
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}
.modal p {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
}
.check:hover { background: #f1f5f9; border-color: #cbd5e1; }
.check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--sky);
}
.modal .m-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
/* generic popup forms (auth, coins, premium panels) */
.overlay .modal input[type="text"],
.overlay .modal input[type="password"],
.overlay .modal input:not([type]),
.overlay .modal select,
.overlay .modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fbfdff;
  color: inherit;
  margin: 5px 0;
  transition: var(--transition);
}
.overlay .modal input:focus,
.overlay .modal select:focus,
.overlay .modal textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  background: #fff;
}
.overlay .modal > div[style*="display:flex"] {
  flex-wrap: wrap;
}
.overlay .modal .btn {
  flex: 1 1 auto;
  min-width: 110px;
  white-space: nowrap;
}
.m-primary {
  flex: 1;
  background: var(--sky);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: var(--transition);
}
.m-primary:hover:not(:disabled) {
  background: var(--sky-hover);
  transform: translateY(-1px);
}
.m-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.m-ghost {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #475569;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-ghost:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.rep-modal { max-width: 430px; }
.rep-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 6px; }
.rep-ic { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #ef4444, #b91c1c); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35); }
.rep-head h3 { margin: 2px 0 3px !important; font-size: 19px !important; }
.rep-head p { margin: 0 !important; font-size: 13px !important; color: var(--muted); }
.rep-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  padding: 11px 12px;
  margin: 9px 0;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: inherit;
}
.rep-opt:hover {
  border-color: var(--red);
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.14);
}
.rep-opt .ro-ic { width: 36px; height: 36px; border-radius: 11px; background: #fef2f2; color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px; }
.rep-opt:hover .ro-ic { background: var(--red); color: #fff; }
.rep-opt b { display: block; font-size: 14.5px; }
.rep-opt small { font-size: 12px; color: var(--muted); }
.rep-opt .ro-go { margin-inline-start: auto; font-size: 20px; color: #cbd5e1; font-weight: 300; }
.rep-opt:hover .ro-go { color: var(--red); }
.rep-cancel { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin-top: 4px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); font-family: inherit; }
.rep-cancel:hover { background: #e8edf3; color: var(--text); }
body.dark .rep-opt { background: #131c27; }
body.dark .rep-opt .ro-ic { background: #2a1215; }
body.dark .rep-cancel { background: #131c27; }
.price {
  background: linear-gradient(135deg, #1e1b4b, #312e81 40%, #0369a1);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  margin: 14px 0;
  box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.price .amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.price .amount small {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
}
.price .features-sub {
  font-size: 13px;
  opacity: 0.88;
  line-height: 1.5;
}
.hidden { display: none !important; }

/* Dark Theme */
html.dark,
html.dark body,
body.dark {
  --bg: #0b1220;
  --card: #111a2c;
  --text: #eef3f9;
  --muted: #8fa0b5;
  --line: #22304a;
  --sky-light: #0c2a3f;
  --sky-border: #164e63;
  --orange-light: #2c1a08;
  --orange-border: #7c4a12;
  --red-light: #2a1215;
  --red-border: #7f1d1d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.55);
  background: var(--bg);
  color: var(--text);
}
body.dark .site-header {
  background: rgba(9, 14, 23, 0.85);
  border-color: #1e293b;
}
body.dark .container,
body.dark .chat-card,
body.dark .statusbar,
body.dark .msg-input,
body.dark .pill,
body.dark .online-pill,
body.dark .theme-switch,
body.dark .modal,
body.dark .faq-item {
  background: #111827;
  border-color: #1f2937;
  color: #f1f5f9;
}
body.dark .online-pill b { color: #ffffff; }
body.dark #log {
  background: #0b0f19;
}
body.dark .msg.stranger {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}
body.dark .msg.you {
  background: var(--sky);
  color: #ffffff;
}
body.dark .tags-box,
body.dark .feat,
body.dark .footer {
  background: #111827;
  border-color: #1f2937;
  color: #94a3b8;
}
body.dark .features {
  background: #0d131f;
  border-color: #1f2937;
}
body.dark .hero h1 { color: #f8fafc; }
body.dark .hero h1 span {
  background: linear-gradient(92deg, #38bdf8 20%, #fb923c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.dark .hero p.desc { color: #94a3b8; }
body.dark .eyebrow{background:rgba(2,132,199,.14);border-color:rgba(2,132,199,.35);color:#7dd3fc}
body.dark .trust span{color:#94a3b8}
body.dark .hero::before{background:radial-gradient(closest-side,rgba(56,189,248,.1),transparent 70%),radial-gradient(closest-side at 75% 40%,rgba(249,115,22,.06),transparent 70%)}
body.dark .interest-label { color: #f1f5f9; }
body.dark .tags-box input { color: #f1f5f9; }
body.dark .tags-box input::placeholder { color: #64748b; }
body.dark .suggest button {
  background: #111827;
  border-color: #1f2937;
  color: #94a3b8;
}
body.dark .suggest button:hover {
  background: #1e293b;
  border-color: var(--sky);
  color: #38bdf8;
}
body.dark .proof span {
  background: #111827;
  border-color: #1f2937;
  color: #94a3b8;
}
body.dark .faq-header h2,
body.dark .feat h4 { color: #f1f5f9; }
body.dark .faq-header p { color: #94a3b8; }
body.dark .feat p { color: #94a3b8; }
body.dark .faq-card {
  background: #111827;
  border-color: #1f2937;
}
body.dark .faq-card:hover {
  border-color: #374151;
}
body.dark .faq-card.open {
  border-color: #0369a1;
}
body.dark .faq-item {
  color: #f1f5f9;
}
body.dark .faq-card.open .faq-item {
  background: #082f49;
  color: #7dd3fc;
}
body.dark .faq-card.open .faq-ico {
  color: #38bdf8;
}
body.dark .faq-answer {
  color: #94a3b8;
  background: #0b0f19;
  border-color: #1f2937;
}
body.dark .mod-banner {
  background: #082f49;
  border-color: #0369a1;
  color: #7dd3fc;
}
/* dark-mode repairs: outline button, faq section, interests */
body.dark .btn-outline{background:#0f1b2d;border-color:rgba(56,189,248,.45);color:#7dd3fc}
body.dark .btn-outline:hover{background:rgba(2,132,199,.16);border-color:#38bdf8}
body.dark .faq{background:linear-gradient(180deg,#0d1626 0%,#0b1220 120px);border-color:#1e293b}
body.dark .tags-box{background:#0f1a2c;border-color:#22304a}
body.dark .tags-box input{background:#16233a}
body.dark .tags-box:hover{border-color:#33507a}
body.dark .tags-box:focus-within{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.15)}
body.dark .tag{background:rgba(2,132,199,.16);border-color:rgba(56,189,248,.35);color:#7dd3fc}
body.dark .tag button{color:#7dd3fc}
body.dark .modal p,
body.dark .modal h3 { color: #f1f5f9; }
body.dark .check {
  background: #162032;
  border-color: #1e293b;
  color: #cbd5e1;
}
body.dark .m-ghost {
  background: #162032;
  border-color: #1e293b;
  color: #cbd5e1;
}
body.dark .m-ghost:hover {
  background: #1e293b;
  color: #ffffff;
}
body.dark .rep-opt {
  background: #162032;
  border-color: #1e293b;
  color: #cbd5e1;
}
body.dark .sys {
  background: #082f49;
  border-color: #0369a1;
  color: #7dd3fc;
}
body.dark .msg-input input { color: #f1f5f9; }
body.dark .msg-input input::placeholder { color: #64748b; }
body.dark .timer { color: #94a3b8; }
body.dark .footer nav a { color: #94a3b8; }
body.dark .footer nav a:hover { color: #38bdf8; }
body.dark .typing {
  background: #1f2937;
  border-color: #374151;
}
body.dark .typing i { background: #64748b; }

/* Fit to viewport chat pages */
html, body {
  overscroll-behavior: none;
}
body.fit-page {
  height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding-top: 66px;
}
body.fit-page .chat-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  margin: 10px auto 14px;
}
body.fit-page .video-layout { flex: 1; min-height: 0; }
body.fit-page .videos { min-height: 0; }
body.fit-page .video-box { min-height: 0; }
body.fit-page .video-col { min-height: 0; }
body.fit-page .video-col .chat-card { flex: 1; min-height: 0; }
body.fit-page .video-col #log { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
body.fit-page .chat-card.text-fit { flex: 1; min-height: 0; }
body.fit-page .chat-card.text-fit #log { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
body.fit-page .footer { flex: none; }

/* ===== Mobile Messenger fullscreen (hidden on desktop) ===== */
.m-app{display:none}
@media (max-width: 860px) {
  body { padding-top: 58px; }
  .header-inner{padding:8px 12px}
  .brand-name { font-size: 20px; }
  .brand svg{width:28px!important;height:28px!important}
  .brand-tag{display:none}
  .theme-switch{width:52px;height:30px}
  .online-pill{font-size:12px;padding:5px 10px}
  .container { margin: 10px 10px 28px; border-radius: 18px; }
  .hero { padding: 30px 18px 20px; }
  .hero h1 { font-size: clamp(34px,9vw,44px); letter-spacing: -1.2px; line-height:1.06; }
  .hero p.desc{font-size:15.5px}
  .proof{font-size:12px}
  .btn-row{flex-direction:row;gap:10px}
  .btn { min-width: 0; flex:1; width:auto; font-size: 17px; padding: 13px 10px; }
  .features { grid-template-columns: 1fr 1fr; padding: 18px 14px; gap:12px; }
  .feat{padding:18px 10px}.feat h4{font-size:15px}.feat p{font-size:12.5px}
  .faq { padding: 20px 14px 30px; }
  .faq-item{font-size:14.5px}
  .footer{flex-direction:column;gap:10px;text-align:center}
  /* text chat mobile: app-like, no page scroll, no cut-off */
  body.fit-page.text-page{padding-top:58px;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  body.fit-page.text-page .site-header{display:flex}
  body.fit-page.text-page .chat-wrap{flex:1;display:flex;flex-direction:column;min-height:0;width:100%;margin:8px auto 0;padding:0 10px calc(10px + env(safe-area-inset-bottom))}
  body.fit-page.text-page .statusbar{font-size:13px;flex:none;margin-bottom:8px}
  body.fit-page.text-page .chat-card.text-fit{flex:1;min-height:0;display:flex;flex-direction:column}
  body.fit-page.text-page .chat-card.text-fit #log{flex:1;min-height:0;max-height:none;overflow-y:auto}
  body.fit-page.text-page .controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 0;overflow:visible}
  body.fit-page.text-page .controls .pill,body.fit-page.text-page .controls .premium{font-size:13px;padding:10px 12px;justify-content:center;min-width:0;white-space:nowrap}
  body.fit-page.text-page .bottom-bar{display:flex;gap:8px;flex:none}
  body.fit-page.text-page .action-btn{min-width:88px;font-size:16px;flex:none}
  body.fit-page.text-page .msg-input{flex:1;min-width:0}
  body.fit-page.text-page .msg-input input{flex:1;min-width:0;font-size:15px}
  body.fit-page.text-page .send{flex:none}
  body.fit-page.text-page .footer{display:none}
  .chat-wrap{padding:0 10px}
  .statusbar{font-size:13px}
  .bottom-bar{position:sticky;bottom:0;gap:8px}
  .msg{max-width:88%;font-size:14.5px}
  .overlay{padding:0;align-items:flex-end}
  .modal{max-width:100%;border-radius:20px 20px 0 0;padding:20px 18px calc(18px + env(safe-area-inset-bottom))}
  .modal .m-btns{display:flex;gap:10px}
  .modal .m-btns .m-primary{flex:1;min-width:0}
  .modal .m-btns .m-ghost{flex:none}
  /* video: hide desktop, show messenger */
  body.fit-page.video-page{padding-top:0;height:100dvh;overflow:hidden}
  body.fit-page.video-page .site-header{display:none}
  body.fit-page.video-page .chat-wrap.desktop-only{display:none}
  .m-app{display:block;position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100dvh;background:#000;z-index:60;overflow:hidden;overscroll-behavior:none;touch-action:manipulation}
  .m-app #mRemote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0b0f19;touch-action:none;transform:translateZ(0);will-change:transform}
  .m-pip video{width:100%;height:100%;object-fit:cover;transform:translateZ(0)}
  .m-remote-ph{position:absolute;inset:0;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;color:#8fa0b5;font-size:14px;background:#101722}
  .m-grad-top{position:absolute;top:0;left:0;right:0;height:120px;background:linear-gradient(180deg,rgba(0,0,0,.55),transparent);pointer-events:none}
  .m-grad-bottom{position:absolute;bottom:0;left:0;right:0;height:320px;background:linear-gradient(0deg,rgba(0,0,0,.72),transparent);pointer-events:none}
  .m-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 12px 26px;color:#fff;transition:transform .45s cubic-bezier(.16,1,.3,1),opacity .35s ease;will-change:transform,opacity;z-index:63}
  .m-back{width:38px;height:38px;flex:none;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.35);transition:transform .15s}
  .m-id{flex:1;display:flex;align-items:center;gap:12px;min-width:0}
  .m-ava{width:38px;height:38px;flex:none;border-radius:50%;background:linear-gradient(135deg,#fbbf24,#f97316);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;color:#fff;border:2px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.35)}
  .m-name{flex:1;min-width:0}.m-name b{display:flex;align-items:center;gap:8px;font-size:15.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-name small{font-size:11.5px;font-weight:400;opacity:.85;font-variant-numeric:tabular-nums}
  .m-live{background:#e11d48;border-radius:999px;font-size:9px;font-weight:700;padding:3px 8px;letter-spacing:1.2px}
  .m-icon{width:38px;height:38px;flex:none;border-radius:50%;border:none;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.35);transition:transform .15s}
  .m-pip{position:absolute;top:calc(70px + env(safe-area-inset-top));right:12px;width:82px;height:110px;border-radius:16px;overflow:hidden;border:1.5px solid rgba(255,255,255,.9);background:#1c2534;box-shadow:0 4px 14px rgba(0,0,0,.35);transition:top .45s cubic-bezier(.16,1,.3,1),box-shadow .3s;z-index:65}
  .m-pip video{width:100%;height:100%;object-fit:cover}
  .m-pip-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:12px}
  .m-rail{position:absolute;right:8px;bottom:calc(78px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px;transition:transform .45s cubic-bezier(.16,1,.3,1),opacity .35s ease;will-change:transform,opacity;z-index:63}
  .m-rail button{width:42px;height:42px;border-radius:50%;border:none;background:rgba(10,12,20,.68);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.35);transition:transform .15s,opacity .25s}
  .m-rail button svg{width:19px;height:19px;flex:none}
  .m-rail button small{font-size:8.5px;font-weight:600;letter-spacing:.2px;text-transform:uppercase;opacity:.9;line-height:1;margin-top:1px}
  .m-rail button.off{background:#ef4444;color:#fff}
  .m-rail button.end{background:#e11d48;color:#fff;width:42px;height:42px}
  .m-rail button:active,.m-icon:active,.m-back:active,.m-send:active,.m-emo:active{transform:scale(.92)}
  .m-chat{position:absolute;left:12px;right:72px;bottom:calc(92px + env(safe-area-inset-bottom));max-height:30vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px;transition:opacity .25s;scrollbar-width:none}
  .m-chat::-webkit-scrollbar{display:none}
  .mrow{display:flex;align-items:flex-end;gap:6px;width:fit-content;max-width:94%;content-visibility:auto;contain-intrinsic-size:auto 60px}
  .mtag{flex:none;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);color:rgba(255,255,255,.85);font-size:9px;font-weight:700;letter-spacing:.3px}
  .mrow.you .mtag{width:30px;height:30px;border-radius:50%}
  .mrow.stranger .mtag{padding:5px 10px;border-radius:999px}
  .mtime{flex:none;font-size:9.5px;font-weight:400;color:rgba(255,255,255,.6);font-variant-numeric:tabular-nums;padding-bottom:2px}
  .m-chat .bubble{flex:1 1 auto;min-width:0;padding:8px 12px;border-radius:16px;font-size:14px;font-weight:400;line-height:1.45;color:rgba(255,255,255,.92);background:rgba(15,20,30,.62);overflow-wrap:anywhere}
  .m-chat .bubble.you,.m-chat .bubble.stranger{align-self:auto;background:rgba(15,20,30,.62);color:rgba(255,255,255,.92)}
  .m-chat{align-items:flex-start}
  .m-app.chat-hidden .m-chat{transform:translateX(-115%);opacity:0;pointer-events:none}
  .m-chat{transition:opacity .25s,transform .25s}
  #mChatTab{display:none;position:absolute;left:0;bottom:calc(110px + env(safe-area-inset-bottom));width:34px;height:46px;border:1px solid rgba(255,255,255,.14);border-left:none;border-radius:0 14px 14px 0;background:rgba(12,16,24,.62);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:rgba(255,255,255,.9);align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,0,0,.35);cursor:pointer;transition:transform .15s,background .2s;z-index:64}
  #mChatTab:active{transform:scale(.92);background:rgba(12,16,24,.85)}
  .m-app.chat-hidden #mChatTab{display:flex}
  .m-chat .sys{align-self:center;text-align:center;background:rgba(0,0,0,.5);color:rgba(255,255,255,.88);font-weight:500;font-size:11px;padding:6px 14px;border:1px solid rgba(255,255,255,.14);border-radius:999px;margin:2px auto;transition:opacity .6s;content-visibility:auto}
  .m-chat .sys.fade{opacity:0}
  #mNew{position:sticky;bottom:0;align-self:center;background:rgba(255,255,255,.92);border:none;border-radius:999px;padding:6px 14px;font-size:12px;font-weight:700;color:#0f172a;cursor:pointer}
  .m-inputbar{position:absolute;left:12px;right:12px;bottom:calc(22px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;transition:opacity .25s}
  .m-inputbar input{flex:1;min-width:0;border:none;outline:none;background:rgba(20,26,38,.78);color:#fff;font-size:14.5px;font-weight:400;padding:0 16px;height:48px;border-radius:999px;transition:box-shadow .25s,background .25s}
  .m-inputbar input::placeholder{color:rgba(255,255,255,.75);font-weight:400}
  .m-inputbar input:focus{background:rgba(255,255,255,.26);box-shadow:0 0 0 2px rgba(2,132,199,.8)}
  .m-emo{width:48px;height:48px;flex:none;border-radius:50%;border:none;background:rgba(255,255,255,.16);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s}
  .m-send{width:48px;height:48px;flex:none;border-radius:50%;border:none;background:#fff;color:#0284c7;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.35);transition:transform .15s}
  body.video-page #panicBtn{display:none!important}
  .m-emoji-panel{position:absolute;left:12px;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));background:rgba(20,28,40,.95);border-radius:16px;padding:10px;display:grid;grid-template-columns:repeat(8,1fr);gap:4px}
  .m-emoji-panel button{font-size:22px;background:none;border:none}
  #mHearts{position:absolute;inset:0;pointer-events:none;overflow:hidden}
  #mHearts span{position:absolute;bottom:120px;font-size:26px;animation:hrt 1.6s ease-out forwards}
  @keyframes hrt{to{transform:translateY(-260px) scale(1.2);opacity:0}}
  .m-start{position:absolute;left:50%;transform:translateX(-50%);bottom:170px;background:var(--red-deep,#e11d48);color:#fff;border:none;border-radius:999px;padding:13px 48px;font-size:17px;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.4)}
  .m-app.hide-ui .m-top{transform:translateY(calc(-100% - env(safe-area-inset-top) - 20px));opacity:0;pointer-events:none}
  .m-app.hide-ui .m-rail{transform:translateX(calc(100% + 24px));opacity:0;pointer-events:none}
  .m-app.hide-ui .m-grad-top{opacity:0}
  .m-app.hide-ui .m-pip{top:calc(14px + env(safe-area-inset-top));opacity:1!important;pointer-events:auto!important}
  .m-app.hide-ui .m-inputbar,.m-app.hide-ui .m-chat,.m-app.hide-ui #mChatTab{opacity:1!important;pointer-events:auto!important}
}
@media (max-height: 640px) {
  .m-pip{width:74px;height:98px;top:calc(64px + env(safe-area-inset-top))}
  .m-rail{gap:6px;bottom:calc(74px + env(safe-area-inset-bottom))}
  .m-rail button{width:38px;height:38px}
  .m-rail button svg{width:17px;height:17px}
  .m-rail button small{font-size:7.5px}
  .m-rail button.end{width:38px;height:38px}
}
@media (max-width: 420px){
  .features{grid-template-columns:1fr}
  .btn-row{gap:8px}
}
/* ===== Extra modules (accounts, safety, fun) ===== */
#authBtn,#coinBtn{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}
.coin-ic{width:22px;height:22px;vertical-align:-5px;border-radius:50%;object-fit:cover;object-position:center 18%;background:#000}
#authBtn .k{color:var(--orange-dark);font-weight:800}
.lang-btn { font-size: 12px; padding: 6px 10px; }
.v-actions { opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.video-box:hover .v-actions, .video-box:focus-within .v-actions { opacity: 1; pointer-events: auto; transform: none; }
#langSel{width:auto;padding:0;border:none;border-radius:0;background:none;font-size:12.5px;font-weight:700}
body.rtl{direction:rtl}
body.rtl .msg.you{border-bottom-right-radius:18px;border-bottom-left-radius:5px}
body.rtl .msg.stranger{border-bottom-left-radius:18px;border-bottom-right-radius:5px}
.rate-bar{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:8px 8px 8px 18px;font-size:13.5px;font-weight:600;box-shadow:0 14px 40px rgba(15,23,42,.18);z-index:75;white-space:nowrap}
.rate-bar button{font-size:19px;background:var(--bg);border:1px solid var(--line);border-radius:50%;width:38px;height:38px;cursor:pointer}
.tr-btn{background:none;border:none;cursor:pointer;padding:0;margin-inline-start:7px;vertical-align:middle;display:inline-flex;opacity:.85;transition:.2s}
.tr-btn:hover{opacity:1;transform:scale(1.12)}
.tr-btn img{width:16px;height:16px;border-radius:50%;display:block;box-shadow:0 1px 4px rgba(0,0,0,.2)}
body.dark .tr-btn{color:#7dd3fc;background:rgba(125,211,252,.12)}
#log>.sys+.sys{margin-top:-7px}
#log>.sys+.msg{margin-top:-3px}
#panicBtn{position:fixed;bottom:16px;inset-inline-end:16px;z-index:70;background:var(--red);color:#fff;border:none;border-radius:999px;padding:10px 18px;font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgba(225,29,72,.4)}
#consentOv, #blurBtn{display:none!important}
.q-dots{display:inline-flex;gap:3px;margin-inline-start:6px}
.q-dots i{width:7px;height:7px;border-radius:50%;background:#cbd5e1}
.q-dots i.g{background:var(--green)}.q-dots i.y{background:var(--yellow)}.q-dots i.r{background:var(--red)}
.timed-bar{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:12px;padding:8px 14px;margin-bottom:8px;font-size:13.5px;text-align:center}
.timed-bar button{background:var(--orange);color:#fff;border:none;border-radius:999px;padding:5px 14px;font-weight:700;cursor:pointer;margin-inline-start:8px}
.wait-game{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:8px;text-align:center;font-size:13px}
.wg-grid{display:grid;grid-template-columns:repeat(3,44px);gap:6px;justify-content:center;margin:8px 0}
.wg-grid button{width:44px;height:44px;font-size:19px;font-weight:800;border:1px solid var(--line);border-radius:9px;background:var(--bg);cursor:pointer}
#cookieBar{position:fixed;bottom:0;left:0;right:0;z-index:80;background:#0b1526;color:#fff;padding:11px 16px;display:flex;gap:12px;align-items:center;justify-content:center;font-size:13px;flex-wrap:wrap}
#cookieBar a{color:#7dd3fc}
#cookieBar button{background:#fff;border:none;border-radius:999px;padding:7px 20px;font-weight:800;cursor:pointer}
body.dark .rate-bar,body.dark .wait-game,body.dark .timed-bar{background:#131c27}
/* ===== gifts & coin extras ===== */
.gift-pick{position:absolute;bottom:calc(100% + 8px);inset-inline-end:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px rgba(15,23,42,.18);padding:8px;display:flex;gap:6px;z-index:40}
.gift-pick button{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:7px 9px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px}
.gift-pick button small{font-size:10.5px;font-weight:700;color:var(--muted)}
.gift-pick button:hover{border-color:var(--orange)}
.msg-input{position:relative}
.sys.gift-in{background:linear-gradient(135deg,#fff7e0,#ffedd5);border:1px solid #f5c86e;color:#92400e;font-weight:600}
body.dark .gift-pick{background:#131c27}
body.dark .sys.gift-in{background:#2c2206;color:#fde68a;border-color:#92600a}
/* ===== L1MESH wallet modal ===== */
.coin-modal{max-width:440px !important;padding:0 !important;overflow:hidden;display:flex;flex-direction:column;max-height:88dvh}
.cm-head{display:flex;align-items:center;gap:10px;padding:16px 18px 12px;border-bottom:1px solid var(--line)}
.cm-head b{font-size:17px}
.cm-bal{display:block;font-size:12.5px;color:var(--muted);font-weight:400}
.cm-bal b{color:var(--orange-dark);font-size:13.5px}
.cm-x{margin-inline-start:auto;background:var(--bg);border:1px solid var(--line);border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:13px;color:var(--muted)}
.cm-body{overflow-y:auto;padding:6px 14px 16px}
.cm-sec{font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:12px 2px 7px}
.spend{display:flex;align-items:center;gap:11px;width:100%;background:#fff;border:1.5px solid var(--line);border-radius:13px;padding:10px 12px;cursor:pointer;margin-bottom:8px;text-align:start;color:inherit;font-family:inherit;transition:.15s}
.spend:hover{border-color:var(--orange);box-shadow:0 4px 14px rgba(249,115,22,.15);transform:translateY(-1px)}
.sp-ic{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:16px;flex:none}
.sp-tx{flex:1;min-width:0}
.sp-tx b{display:block;font-size:14px}
.sp-tx small{font-size:12px;color:var(--muted);line-height:1.4;display:block}
.sp-pr{background:linear-gradient(135deg,#fbbf24,#f97316);color:#fff;font-size:12px;font-weight:800;border-radius:999px;padding:4px 11px;flex:none}
.sp-pr.free{background:#e6f4ea;color:var(--green)}
.cm-row{display:flex;gap:8px;flex-wrap:wrap}
.cm-row select,.cm-row input{flex:1;min-width:120px;border:1.5px solid var(--line);border-radius:11px;padding:10px 12px;font-size:13.5px;font-family:inherit;background:#fbfdff;color:inherit}
.cm-row .btn{flex:none}
.cm-msg{font-size:13px;font-weight:600;color:var(--orange-dark);min-height:18px;margin:8px 2px 0}
body.dark .spend{background:#131c27}
body.dark .sp-ic{background:#2c2206;color:#fde68a}
/* ===== waiting TV (stranger screen while searching) ===== */
.wait-tv-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#090d16}
.video-placeholder,.m-remote-ph{overflow:hidden}
.wait-tv-cap{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:rgba(15,23,42,.65);backdrop-filter:blur(8px);color:#fff;font-size:13px;font-weight:600;padding:7px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.15);white-space:nowrap;z-index:2}
/* ===== UI/UX polish batch (identity preserved) ===== */
.btn,.pill,.action-btn,.prem-btn,.send,.fp-grid button,.sm-menu button,.gcard .btn,.plan-pick{transition:transform .2s,box-shadow .2s,background .2s,border-color .2s}
.btn:active,.pill:active,.action-btn:active,.prem-btn:active,.send:active{transform:scale(.96)}
.feat,.gcard,.pcard{border-radius:18px}
.feat{padding:24px 20px}
.brand-name{font-weight:900}
.top-right svg,.top-right img{vertical-align:middle}
#langSel:hover .lang-btn{background:#f8fafc}
body.dark #langSel:hover .lang-btn{background:#1a2433}
#authBtn{border:1.5px solid var(--line);background:transparent}
.msg{line-height:1.6}
.action-btn small{display:block;text-align:center;margin:2px auto 0}
#panicBtn{background:rgba(225,29,72,.12);color:var(--red);border:1px solid rgba(225,29,72,.35)}
#panicBtn:hover{background:rgba(225,29,72,.2)}
.video-placeholder svg{width:52px;height:52px}
.wait-tv-cap .dots::after{content:'';animation:wdots 1.2s infinite}
@keyframes wdots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}
.video-col .bottom-bar{padding-top:10px;border-top:1px solid var(--line)}
.msg-input textarea{flex:1;border:none;outline:none;resize:none;font-size:15px;padding:13px 0;background:transparent;color:inherit;font-family:inherit;line-height:1.5;max-height:120px}
.skip-ov{position:absolute;bottom:12px;inset-inline-end:12px;z-index:3;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(15,23,42,.6);backdrop-filter:blur(8px);color:#fff;cursor:pointer;font-size:17px;display:flex;align-items:center;justify-content:center}
.skip-ov:hover{background:var(--sky)}
/* ===== video cleanup batch ===== */
.video-box:has(#remoteVideo) .v-label,.video-box:has(#remoteVideo) .v-report{opacity:.55;transition:opacity .2s}
.video-box:has(#remoteVideo) .v-label:hover,.video-box:has(#remoteVideo) .v-report:hover{opacity:1}
.top-right .pill,.top-right .prem-btn,.top-right .theme-switch,.top-right .lang-btn,.top-right #authBtn,.top-right #coinBtn,.top-right .online-pill{height:34px;display:inline-flex;align-items:center}
.v-timer{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:rgba(15,23,42,.65);backdrop-filter:blur(8px);color:#fff;font-size:12.5px;font-weight:700;padding:5px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.15);z-index:3;font-variant-numeric:tabular-nums}
/* ===== day polish ===== */
::selection{background:rgba(2,132,199,.22)}
/* ===== dark: leftovers catch-all ===== */
body.dark .proof span{background:#111a2c;border-color:var(--line);color:var(--muted)}
body.dark .hero p.desc{color:#9fb0c2}
body.dark .suggest button{background:#111a2c;border-color:var(--line);color:var(--muted)}
body.dark .tag{background:#0c2a3f;border-color:#164e63;color:#bae6fd}
body.dark .tags-box input{color:var(--text)}
body.dark .tags-box input::placeholder,.msg-input input::placeholder{color:#5b6b7e}
body.dark .faq-answer{background:#0d1524;color:#9fb0c2}
body.dark .typing{background:#1e2a3d}
body.dark .typing i{background:#7d90a5}
body.dark .check{background:#0d1524;border-color:var(--line);color:#c6d3e0}
body.dark .price{filter:brightness(.85)}
body.dark .theme-switch{background:#111a2c;border-color:var(--line)}
body.dark .theme-switch .thumb{background:#1e2a3d;border-color:#334155;color:#fbbf24}
body.dark .online-pill .dot{box-shadow:0 0 0 4px rgba(34,197,94,.15)}
body.dark .ad-rail .ad-box{background:repeating-linear-gradient(45deg,#141d2e,#141d2e 12px,#1a2438 12px,#1a2438 24px);color:#5b6b7e}
body.dark .spend{background:#131c27;border-color:var(--line);color:var(--text)}
body.dark .sp-ic{background:#2c2206;color:#fde68a}
body.dark .cm-row select,.cm-row input{background:#0d1524;border-color:var(--line);color:var(--text)}
body.dark .overlay .modal input,.overlay .modal select,.overlay .modal textarea{background:#0d1524;border-color:var(--line);color:var(--text)}
body.dark .m-ghost{background:#131c27;border-color:var(--line);color:var(--text)}
body.dark .m-primary{filter:brightness(1.05)}
body.dark .sys{background:#0c2a3f;color:#bae6fd}
body.dark .video-placeholder{color:#7d90a5}
body.dark .statusbar .timer{color:#9fb0c2}
body.dark .footer nav a{color:#8fa0b5}
body.dark code{background:#1a2438}
body.dark .heat div{border-color:var(--line)}
body.dark .logbox{background:#080d15}
body.dark .empty{color:#5b6b7e}
/* buttons at bar corner when side rail is visible, shifted when hidden (Exit overlap) */
body.has-side .msg-input{padding-right:8px}
/* ===== video focus mode + declutter ===== */
.video-box{transition:flex .35s ease}
.video-layout.focus-remote .video-box:has(#remoteVideo){flex:2.6}
.video-layout.focus-remote .video-box:has(#localVideo){flex:.75}
#focusBtn.active{border-color:var(--sky);color:var(--sky-dark);background:var(--sky-light)}
#setMenu{min-width:220px;padding:8px}
#setMenu .pill{width:100%;justify-content:flex-start;margin:3px 0}
.video-col .chat-card{background:#f9fafb}
.video-col #log{background:transparent}
body.dark .video-col .chat-card{background:#0d1420}
body.dark .video-col #log{background:transparent}
/* ===== video empty state + resizer + mod strip ===== */
.mod-strip{display:flex;align-items:center;justify-content:center;gap:8px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-size:12.5px;font-weight:600;border-radius:11px;padding:7px 10px;margin-bottom:10px}
body.dark .mod-strip{background:#0c2237;border-color:#164e63;color:#7dd3fc}
.drag-handle{display:flex;align-items:center;justify-content:center;cursor:col-resize;border-radius:999px;min-height:120px}
.drag-handle span{width:5px;height:64px;border-radius:999px;background:var(--line);transition:.2s}
.drag-handle:hover span,.drag-handle:active span{background:var(--sky);box-shadow:0 0 0 4px rgba(2,132,199,.15)}
.empty-chat{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center;padding:20px;pointer-events:none}
.empty-chat svg{opacity:.5}
.empty-chat b{font-size:17px;color:var(--text)}
.empty-chat span{font-size:12.5px;max-width:340px;line-height:1.7}
.chat-card{position:relative}
body.dark .video-col .chat-card{background:#101a2e}

/* ============================================================
   OMEGLE.IN — ELITE DESIGN POLISH (30 SYSTEMATIC REFINEMENTS)
   Strictly preserves brand identity (Sky Blue #0284c7, Orange #f97316)
   Zero DOM additions • Pure visual elevation & geometric harmony
   ============================================================ */

/* [1] Header: Unified pill heights, gaps, and vertical alignment */
.header-inner {
  padding: 10px 24px;
}
.top-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
.top-right .pill,
.top-right .prem-btn,
.top-right .theme-switch,
.top-right .lang-btn,
.top-right #authBtn,
.top-right #coinBtn,
.top-right .online-pill {
  height: 36px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

/* [2] Header: Breathing / pulse animation on live online indicator */
.online-pill .dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  position: relative !important;
  animation: live-pulse-dot 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}
@keyframes live-pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  65% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* [3] Header: Coin badge glassmorphism & amber accents */
#coinBtn, .coin-pill {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
  font-weight: 700 !important;
  padding: 0 12px !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
#coinBtn:hover, .coin-pill:hover {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.16) !important;
}
body.dark #coinBtn, body.dark .coin-pill {
  background: #231c0e !important;
  border-color: #78350f !important;
  color: #fbbf24 !important;
}

/* [4] Header: Premium button micro-elevation with orange gradient */
.top-right .prem-btn {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  font-weight: 700 !important;
  padding: 0 14px !important;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.28) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.top-right .prem-btn:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.38) !important;
  transform: translateY(-1px) !important;
}

/* [5] Header: Frosted glass backdrop blur & border */
.site-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03) !important;
}
body.dark .site-header {
  background: rgba(15, 23, 42, 0.88) !important;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8) !important;
}

/* [6] Video: Camera-off radial depth (replacing flat pitch black) */
.video-box, #localPH, .video-placeholder {
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%) !important;
}
body.dark .video-box, body.dark #localPH {
  background: radial-gradient(circle at center, #172033 0%, #070a10 100%) !important;
}

/* [7] Video: Geometric border radius (16px) & subtle inner stroke */
.video-box {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
  position: relative !important;
}
.video-box video {
  border-radius: 16px !important;
}

/* [8] Video: Frosted glass pill timer with tabular digits */
.v-timer, #callTimer {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

/* [9] Video: Badges (You & Stranger) with polished glassmorphism */
.v-label {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}
.v-report {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}
.v-report:hover {
  background: rgba(239, 68, 68, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.08) !important;
}

/* [10] Video: Refined remote video placeholder (smooth gradient) */
#remotePH {
  background: radial-gradient(circle at center, #1e293b 0%, #0b1120 100%) !important;
}

/* [11] Chat: Main chat card elevation and contrast */
.chat-card {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
}
body.dark .chat-card, body.dark .video-col .chat-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
}

/* [12] Chat: Cohesive system status badges & match indicators */
.sys, .sys-msg, .match-badge, .log-notice {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 4px auto !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.05) !important;
}
body.dark .sys, body.dark .sys-msg, body.dark .match-badge, body.dark .log-notice {
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
}

/* [13] Chat: Header separation in embedded headers */
.chat-top-bar {
  border-bottom: 1px solid var(--line) !important;
  padding: 10px 16px !important;
  background: transparent !important;
}
body.dark .chat-top-bar {
  border-bottom-color: #1e293b !important;
}

/* [14] Chat: Modern chat bubbles with directional corners */
.msg {
  padding: 10px 16px !important;
  border-radius: 18px !important;
  line-height: 1.55 !important;
  font-size: 14.5px !important;
  max-width: 82% !important;
  word-break: break-word !important;
}
.msg.you {
  background: var(--sky) !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22) !important;
}
.msg.stranger {
  background: #f1f5f9 !important;
  color: var(--text) !important;
  border-bottom-left-radius: 4px !important;
}
body.dark .msg.stranger {
  background: #1e293b !important;
  color: #f8fafc !important;
}
body.rtl .msg.you {
  border-bottom-right-radius: 18px !important;
  border-bottom-left-radius: 4px !important;
}
body.rtl .msg.stranger {
  border-bottom-left-radius: 18px !important;
  border-bottom-right-radius: 4px !important;
}

/* [15] Chat: Fluid typing indicator bounce & fade */
.typing {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 14px !important;
  background: #f1f5f9 !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  color: var(--muted) !important;
}
.typing i {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: var(--muted) !important;
  animation: typing-dot-bounce 1.4s infinite ease-in-out both !important;
}
@keyframes typing-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* [16] Input: Keyboard <kbd> / <small> badge styling on Next & Start */
.action-btn small, #startBtn small, #nextBtn small, .btn small {
  display: inline-block !important;
  font-family: inherit !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  margin-top: 3px !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12) !important;
}
.action-btn, #startBtn, #nextBtn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 78px !important;
  height: 50px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
.action-btn:hover, #startBtn:hover, #nextBtn:hover {
  transform: translateY(-1px) !important;
}
.action-btn:active, #startBtn:active, #nextBtn:active {
  transform: scale(0.97) !important;
}
.action-btn.next, #nextBtn {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3) !important;
}
.action-btn.next:hover, #nextBtn:hover {
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.42) !important;
}

/* [17] Input: Focus ring on message input container */
.msg-input {
  display: flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 4px 8px 4px 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.msg-input:focus-within {
  background: #ffffff !important;
  border-color: var(--sky) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
body.dark .msg-input {
  background: #111827 !important;
  border-color: #1f2937 !important;
}
body.dark .msg-input:focus-within {
  background: #0f172a !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

/* [18] Input: Micro-interactions & scale on action icons */
.send, .msg-btn, .msg-input button {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  color: var(--muted) !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease, background 0.18s ease !important;
}
.send:hover, .msg-btn:hover, .msg-input button:hover {
  transform: scale(1.14) !important;
  background: rgba(2, 132, 199, 0.08) !important;
  color: var(--sky) !important;
}

/* [19] Controls: Secondary action bar unified heights & subtle hover */
.bottom-bar, .sub-actions, .ctrl-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.sub-actions .pill, .bottom-bar .pill, .bottom-bar button.pill, .action-ctrl {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
  color: var(--muted) !important;
  transition: var(--transition) !important;
}
.sub-actions .pill:hover, .bottom-bar .pill:hover, .bottom-bar button.pill:hover, .action-ctrl:hover {
  border-color: var(--sky-border) !important;
  color: var(--sky) !important;
  background: var(--sky-light) !important;
}
body.dark .sub-actions .pill, body.dark .bottom-bar .pill, body.dark .bottom-bar button.pill, body.dark .action-ctrl {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

/* [20] Controls: Polished floating panic exit button */
.exit-btn, #exitBtn, .panic-exit, .btn-exit {
  background: #ffffff !important;
  border: 1.5px solid #fecaca !important;
  color: #ef4444 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12) !important;
  transition: var(--transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.exit-btn:hover, #exitBtn:hover, .panic-exit:hover, .btn-exit:hover {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.22) !important;
}
body.dark .exit-btn, body.dark #exitBtn, body.dark .panic-exit, body.dark .btn-exit {
  background: #1f1315 !important;
  border-color: #7f1d1d !important;
  color: #f87171 !important;
}

/* [21] Hero: Title gradient on Strangers with tight tracking */
.hero h1 {
  letter-spacing: -1.2px !important;
}
.hero h1 span, .brand-hero span {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.5px !important;
}

/* [22] Hero: Action buttons harmony (Text & Video) */
.btn-row .btn {
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 30px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
.btn-outline {
  border: 1.5px solid var(--line) !important;
  background: #ffffff !important;
  color: var(--text) !important;
}
.btn-outline:hover {
  border-color: var(--sky) !important;
  color: var(--sky) !important;
  background: var(--sky-light) !important;
  transform: translateY(-1px) !important;
}
body.dark .btn-outline {
  border-color: rgba(56,189,248,.45) !important;
  background: #0f1b2d !important;
  color: #7dd3fc !important;
}
body.dark .btn-outline:hover {
  border-color: #38bdf8 !important;
  color: #bae6fd !important;
  background: rgba(2,132,199,.18) !important;
}
.btn-fill {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 22px -4px rgba(2, 132, 199, 0.4) !important;
}
.btn-fill:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.5) !important;
  transform: translateY(-1px) !important;
}

/* [23] Hero: Interests input field elevation */
.tags-box, #interestInput, .tags-input-wrap {
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.tags-box:focus-within, #interestInput:focus {
  border-color: var(--sky) !important;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15) !important;
}
body.dark .tags-box, body.dark #interestInput {
  background: #0f172a !important;
  border-color: #1e293b !important;
}
body.dark .tags-box:focus-within, body.dark #interestInput:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3.5px rgba(56, 189, 248, 0.2) !important;
}

/* [24] Hero: Suggested interest pills hover states */
.suggest button, .tag-pill {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
.suggest button:hover, .tag-pill:hover {
  border-color: var(--sky-border) !important;
  background: var(--sky-light) !important;
  color: var(--sky) !important;
  transform: translateY(-1px) !important;
}
body.dark .suggest button, body.dark .tag-pill {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
body.dark .suggest button:hover, body.dark .tag-pill:hover {
  background: #0c2a3f !important;
  border-color: #164e63 !important;
  color: #38bdf8 !important;
}

/* [25] Hero: Security & trust banner styling */
.proof, .trust-pill, .moderated-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
  padding: 7px 18px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.05) !important;
}
body.dark .proof, body.dark .trust-pill, body.dark .moderated-badge {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
}

/* [26] Gifts: Consistent card image canvas */
.gcard img.gimg {
  aspect-ratio: 1 !important;
  width: 130px !important;
  height: 130px !important;
  object-fit: contain !important;
  border-radius: 20px !important;
  background: radial-gradient(circle, #fff7ed 0%, #ffedd5 100%) !important;
  padding: 12px !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12) !important;
  margin: 0 auto 12px !important;
  display: block !important;
}
body.dark .gcard img.gimg {
  background: radial-gradient(circle, #2d1c10 0%, #1a1410 100%) !important;
}

/* [27] Gifts: Smooth card hover lift */
.gcard {
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  padding: 22px 18px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}
.gcard:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(249, 115, 22, 0.08) !important;
}
body.dark .gcard {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

/* [28] Gifts: Buy buttons tactile depth & alignment */
.gcard .btn, .gbtn {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: var(--transition) !important;
  cursor: pointer !important;
}
.gcard .btn:hover, .gbtn:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* [29] Ad Rail: Clean modern container integration */
.ad-rail, .ad-box {
  border: 1px dashed #cbd5e1 !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  transition: var(--transition) !important;
}
body.dark .ad-rail, body.dark .ad-box {
  border-color: #334155 !important;
  background: #0f172a !important;
}

/* [30] Scrollbar: Sleek minimal custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}
body.dark ::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.5);
}
body.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

/* ============================================================
   TEXT CHAT (text.html) — FLAWLESS VIEWPORT FIT & AD INTEGRATION
   Zero window overflow • Pinned bottom bar • Integrated Ad-Rail
   ============================================================ */

/* Viewport fit container: strictly prevents page scrolling / cutoffs */
body.fit-page.text-page {
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding-top: 58px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 2-Column Desktop Grid: Main Chat (flexible) + Vertical Ad Banner (160px) */
body.fit-page.text-page .chat-wrap.text-layout {
  flex: 1 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 160px !important;
  gap: 14px !important;
  max-width: 1260px !important;
  width: 100% !important;
  margin: 8px auto 10px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

/* If ad-rail is disabled or closed: Chat seamlessly expands to full width */
body.fit-page.text-page .chat-wrap.text-layout.no-side,
body.fit-page.text-page.no-side .chat-wrap.text-layout {
  grid-template-columns: 1fr !important;
}

/* Main chat column: strict flex column occupying 100% of grid cell */
body.fit-page.text-page .text-col {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  flex: 1 !important;
}

/* Top Status Bar: Sleek, compact, non-overflowing */
body.fit-page.text-page .statusbar {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  padding: 8px 18px !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
body.dark.text-page .statusbar {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

body.fit-page.text-page .statusbar .st-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex: none !important;
}
body.fit-page.text-page .statusbar.st-connected .st-dot,
body.fit-page.text-page .statusbar.st-live .st-dot {
  background: #10b981 !important;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6) !important;
  animation: live-pulse-dot 2s infinite !important;
}

body.fit-page.text-page .statusbar .timer,
body.fit-page.text-page #timer {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-variant-numeric: tabular-nums !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  margin-left: auto !important;
}
body.dark.text-page .statusbar .timer,
body.dark.text-page #timer {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

body.fit-page.text-page #aliasChip {
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
  padding: 3px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
}
body.dark.text-page #aliasChip {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Chat Card: Flexible height, perfectly absorbs available viewport */
body.fit-page.text-page .chat-card.text-fit {
  flex: 1 !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
}
body.dark.text-page .chat-card.text-fit {
  background: #0f172a !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
}

body.fit-page.text-page .chat-card.text-fit #log {
  flex: 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding: 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: #ffffff !important;
}
body.dark.text-page .chat-card.text-fit #log {
  background: #0f172a !important;
}

/* System Badges centering */
body.fit-page.text-page .sys,
body.fit-page.text-page .match-badge,
body.fit-page.text-page .log-notice {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin: 3px auto !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.05) !important;
  align-self: center !important;
}
body.dark.text-page .sys,
body.dark.text-page .match-badge {
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
}

/* Message Bubbles */
body.fit-page.text-page .msg {
  padding: 10px 18px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  max-width: 72% !important;
  word-break: break-word !important;
  display: inline-block !important;
}
body.fit-page.text-page .msg.stranger {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-radius: 18px 18px 18px 4px !important;
  border: 1px solid #e2e8f0 !important;
  align-self: flex-start !important;
}
body.dark.text-page .msg.stranger {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
body.fit-page.text-page .msg.you {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-radius: 18px 18px 4px 18px !important;
  border: none !important;
  align-self: flex-end !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25) !important;
}
body.rtl.text-page .msg.stranger {
  border-radius: 18px 18px 4px 18px !important;
  align-self: flex-start !important;
}
body.rtl.text-page .msg.you {
  border-radius: 18px 18px 18px 4px !important;
  align-self: flex-end !important;
}

body.fit-page.text-page .msg-time {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 3px !important;
  font-weight: 500 !important;
}
body.fit-page.text-page .msg.you + .msg-time {
  align-self: flex-end !important;
}
body.fit-page.text-page .msg.stranger + .msg-time {
  align-self: flex-start !important;
}

/* Secondary Controls Row: Clean, unified, without duplicate Premium button */
body.fit-page.text-page .controls {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 0 6px !important;
  flex-wrap: wrap !important;
}
body.fit-page.text-page .controls .premium {
  display: none !important; /* Premium already cleanly lives in top navbar */
}
body.fit-page.text-page .controls .pill,
body.fit-page.text-page .controls button.pill,
body.fit-page.text-page .controls a.pill {
  height: 34px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}
body.fit-page.text-page .controls .pill:hover,
body.fit-page.text-page .controls a.pill:hover,
body.fit-page.text-page .controls button.pill:hover {
  border-color: var(--sky-border) !important;
  color: var(--sky) !important;
  background: var(--sky-light) !important;
  transform: translateY(-1px) !important;
}
body.dark.text-page .controls .pill,
body.dark.text-page .controls a.pill,
body.dark.text-page .controls button.pill {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

/* Bottom Bar: Pinned, crisp, perfectly aligned above viewport bottom */
body.fit-page.text-page .bottom-bar {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 2px 0 4px !important;
}
body.fit-page.text-page .action-btn,
body.fit-page.text-page #startBtn {
  height: 48px !important;
  min-width: 84px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  flex: none !important;
  transition: all 0.18s ease !important;
}
body.fit-page.text-page .action-btn small,
body.fit-page.text-page #startBtn small {
  display: inline-block !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  margin-top: 2px !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}
body.fit-page.text-page .action-btn.next,
body.fit-page.text-page #startBtn.next {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3) !important;
}

body.fit-page.text-page .msg-input {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 2px 10px 2px 18px !important;
  height: 48px !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}
body.fit-page.text-page .msg-input textarea {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  resize: none !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 6px 0 !important;
  max-height: 38px !important;
}
body.fit-page.text-page .msg-input:focus-within {
  background: #ffffff !important;
  border-color: var(--sky) !important;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15) !important;
}
body.dark.text-page .msg-input {
  background: #111827 !important;
  border-color: #1f2937 !important;
}
body.dark.text-page .msg-input:focus-within {
  background: #0f172a !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3.5px rgba(56, 189, 248, 0.2) !important;
}

/* Right-Side Vertical Ad Rail (160 x 600) */
body.fit-page.text-page .ad-rail {
  width: 160px !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  padding: 10px 8px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
body.dark.text-page .ad-rail {
  border-color: #334155 !important;
  background: #101722 !important;
}
body.fit-page.text-page .ad-rail .ad-tag {
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 6px !important;
  display: block !important;
  text-align: center !important;
}
body.fit-page.text-page .ad-rail .ad-box {
  flex: 1 !important;
  width: 100% !important;
  min-height: 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 12px, #e8eef4 12px, #e8eef4 24px) !important;
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
body.dark.text-page .ad-rail .ad-box {
  background: repeating-linear-gradient(45deg, #141d2e, #141d2e 12px, #1a2438 12px, #1a2438 24px) !important;
  color: #5b6b7e !important;
}

/* Floating Exit Button */
body.fit-page.text-page #exitBtn,
body.fit-page.text-page .panic-exit {
  position: fixed !important;
  bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  inset-inline-end: 18px !important;
  z-index: 50 !important;
  background: #ffffff !important;
  border: 1.5px solid #fecaca !important;
  color: #ef4444 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  border-radius: 999px !important;
  padding: 5px 13px !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12) !important;
  transition: all 0.2s ease !important;
}
body.fit-page.text-page #exitBtn:hover,
body.fit-page.text-page .panic-exit:hover {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.22) !important;
}
body.dark.text-page #exitBtn,
body.dark.text-page .panic-exit {
  background: #1f1315 !important;
  border-color: #7f1d1d !important;
  color: #f87171 !important;
}

/* ============================================================
   10 CORE UX ENHANCEMENTS (Omegle.in UX Upgrade)
   ============================================================ */

/* [1] Smart Auto-Scroll Floating Pill */
.chat-card {
  position: relative !important;
}
.log-new-btn {
  position: absolute !important;
  bottom: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(0) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  color: var(--sky-dark) !important;
  border: 1px solid var(--sky-border) !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.22) !important;
  cursor: pointer !important;
  z-index: 25 !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}
.log-new-btn:hover {
  background: var(--sky-light) !important;
  border-color: #38bdf8 !important;
  transform: translateX(-50%) translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3) !important;
}
.log-new-btn.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(12px) !important;
}
body.dark .log-new-btn {
  background: #111a2c !important;
  color: #38bdf8 !important;
  border-color: #164e63 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
}
body.dark .log-new-btn:hover {
  background: #0c2a3f !important;
  border-color: #0284c7 !important;
}

/* [2] Instant Esc Key Micro-Feedback */
.action-btn.esc-pressed {
  transform: scale(0.93) !important;
  filter: brightness(1.22) !important;
  box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.5) !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}
.action-btn.stop.esc-pressed {
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.5) !important;
}

/* [3] Dynamic Status Dot Breathing */
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); transform: scale(0.95); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); transform: scale(0.95); }
}
.statusbar.st-connecting .st-dot {
  background: #f59e0b !important;
  animation: pulse-amber 1.5s infinite ease-in-out !important;
}
.statusbar.st-connected .st-dot,
.statusbar.st-live .st-dot {
  background: #10b981 !important;
  animation: live-pulse-dot 2s infinite ease-in-out !important;
}
.statusbar.st-idle .st-dot {
  background: #94a3b8 !important;
  box-shadow: none !important;
  animation: none !important;
}

/* [4] Interactive You: Alias Chip */
#aliasChip, .alias-chip {
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
#aliasChip:hover, .alias-chip:hover {
  background: var(--sky-light) !important;
  border-color: var(--sky-border) !important;
  color: var(--sky-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.16) !important;
}
body.dark #aliasChip:hover, body.dark .alias-chip:hover {
  background: #0c2a3f !important;
  border-color: #164e63 !important;
  color: #38bdf8 !important;
}

/* [5] Smart Character Counter */
.char-count {
  position: absolute !important;
  bottom: 8px !important;
  right: 50px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  pointer-events: none !important;
  font-variant-numeric: tabular-nums !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: color 0.15s ease, background 0.15s ease !important;
  z-index: 5 !important;
}
.char-count.warning {
  color: #d97706 !important;
  background: #fef3c7 !important;
  border-color: #fde68a !important;
}
.char-count.limit {
  color: #dc2626 !important;
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  font-weight: 700 !important;
}
body.dark .char-count {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}
body.dark .char-count.warning {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
body.dark .char-count.limit {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}
body.rtl .char-count {
  right: auto !important;
  left: 50px !important;
}

/* [6] Switch to Video Accent Call-to-Action */
.controls a.pill[href="video.html"] {
  background: var(--sky-light) !important;
  border-color: var(--sky-border) !important;
  color: var(--sky-dark) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}
.controls a.pill[href="video.html"]:hover {
  background: #e0f2fe !important;
  border-color: #38bdf8 !important;
  color: var(--sky) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.2) !important;
}
.controls a.pill[href="video.html"] .ico {
  color: var(--sky) !important;
}
body.dark .controls a.pill[href="video.html"] {
  background: rgba(2, 132, 199, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
}
body.dark .controls a.pill[href="video.html"]:hover {
  background: rgba(2, 132, 199, 0.28) !important;
  border-color: #38bdf8 !important;
}

/* [7] Responsive Ad-Rail & Grid Breakpoints */
@media (max-width: 1040px) {
  body.fit-page.text-page .chat-wrap.text-layout,
  .chat-wrap.text-layout {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
  }
  body.fit-page.text-page .ad-rail,
  .chat-wrap .ad-rail {
    display: none !important;
  }
}

/* [8] Interactive Timed Button State */
#timedBtn.active {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.22) !important;
}
#timedBtn.active .timer-ico {
  animation: clock-spin 5s linear infinite !important;
  transform-origin: center !important;
  color: #d97706 !important;
}
@keyframes clock-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
body.dark #timedBtn.active {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fde68a !important;
}

/* [9] Image Bubble Shimmer & Rounded Corners */
.msg img,
.bubble img {
  max-width: 240px !important;
  max-height: 280px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07) !important;
  display: block !important;
  object-fit: cover !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  cursor: pointer !important;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%) !important;
  background-size: 200% 100% !important;
  animation: img-shimmer 1.5s infinite !important;
}
.msg img:hover,
.bubble img:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14) !important;
}
@keyframes img-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
body.dark .msg img,
body.dark .bubble img {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%) !important;
  background-size: 200% 100% !important;
}

/* ================= Modern Social Auth Card ================= */
.auth-overlay {
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  background: rgba(15, 23, 42, 0.55);
}
.auth-card {
  max-width: 400px;
  width: 90%;
  padding: 32px 28px 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  position: relative;
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-sizing: border-box;
}
.auth-close-btn {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}
.auth-header {
  margin-bottom: 22px;
}
.auth-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(249, 115, 22, 0.12));
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.auth-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.auth-subtitle {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  padding: 0 8px;
}
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}
.google-btn {
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1.5px);
}
.facebook-btn {
  background: #1877F2;
  color: #ffffff;
  border: 1.5px solid #1877F2;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.28);
}
.facebook-btn:hover {
  background: #166fe5;
  border-color: #166fe5;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
  transform: translateY(-1.5px);
}
.social-icon {
  flex-shrink: 0;
  display: block;
}
.auth-footer-notes {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-perk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
}
.auth-perk svg {
  color: #10b981;
  flex-shrink: 0;
}
.auth-status-msg {
  min-height: 18px;
  font-size: 13px;
  margin: 10px 0 0;
  font-weight: 500;
}

/* Dark mode */
body.dark .auth-card {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}
body.dark .auth-title {
  color: #f8fafc;
}
body.dark .auth-subtitle {
  color: #94a3b8;
}
body.dark .auth-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
body.dark .auth-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
body.dark .google-btn {
  background: #1f2937;
  color: #f1f5f9;
  border-color: #374151;
}
body.dark .google-btn:hover {
  background: #283548;
  border-color: #4b5563;
}
body.dark .auth-footer-notes {
  border-color: #1f2937;
}
body.dark .auth-perk {
  color: #94a3b8;
}

/* ================= Cosmic Radar Waiting Animation ================= */
.radar-search-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  padding: 32px 20px 24px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  user-select: none;
  position: relative;
  animation: radar-wrap-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 5;
}
@keyframes radar-wrap-fade-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

#log { position: relative; }
.radar-search-wrap.found {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  pointer-events: none;
  animation: radar-wrap-pop-out 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes radar-wrap-pop-out {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  35% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
}

/* Outer Aura */
.radar-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
  filter: blur(22px);
  pointer-events: none;
  animation: radar-aura-pulse 3s infinite ease-in-out;
}
@keyframes radar-aura-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

/* Radar circular viewport */
.radar-viewport {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(15, 23, 42, 0.03) 70%, transparent 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.32);
  box-shadow: 0 0 35px rgba(2, 132, 199, 0.16), inset 0 0 25px rgba(2, 132, 199, 0.08);
  overflow: hidden;
  margin-bottom: 22px;
}

/* Radar concentric pulse rings */
.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(2, 132, 199, 0.6);
  pointer-events: none;
  box-sizing: border-box;
}
.r-ring-1 { animation: radar-ring-expand 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 0s; }
.r-ring-2 { animation: radar-ring-expand 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 0.75s; }
.r-ring-3 { animation: radar-ring-expand 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 1.5s; }
.r-ring-4 { animation: radar-ring-expand 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 2.25s; }

@keyframes radar-ring-expand {
  0% { width: 30px; height: 30px; opacity: 0.95; transform: translate(-50%, -50%) scale(0.6); border-color: rgba(56, 189, 248, 0.85); }
  60% { opacity: 0.5; border-color: rgba(2, 132, 199, 0.5); }
  100% { width: 230px; height: 230px; opacity: 0; transform: translate(-50%, -50%) scale(1.1); border-color: rgba(2, 132, 199, 0); }
}

/* Crosshairs grid inside radar */
.radar-viewport::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.25) 50%, transparent);
}
.radar-viewport::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(2, 132, 199, 0.25) 50%, transparent);
}

/* 360-degree rotating sonar beam sweep */
.radar-sweep {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(2, 132, 199, 0.05) 305deg, rgba(56, 189, 248, 0.45) 360deg);
  animation: radar-sweep-rotate 2.5s linear infinite;
  pointer-events: none;
}
@keyframes radar-sweep-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Radar Blips (active online signals) */
.radar-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.8);
  pointer-events: none;
}
.b-1 { top: 32%; left: 72%; animation: radar-blip-pulse 2.5s infinite ease-in-out 0.4s; }
.b-2 { top: 76%; left: 62%; animation: radar-blip-pulse 2.5s infinite ease-in-out 1.2s; }
.b-3 { top: 68%; left: 24%; animation: radar-blip-pulse 2.5s infinite ease-in-out 1.8s; }
.b-4 { top: 22%; left: 35%; animation: radar-blip-pulse 2.5s infinite ease-in-out 2.2s; }

@keyframes radar-blip-pulse {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  25%, 60% { opacity: 1; transform: scale(1.3); }
  75% { opacity: 0.2; transform: scale(0.8); }
}

/* Radar center avatar core */
.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 4;
}
.radar-center-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: radar-icon-float 2.5s ease-in-out infinite;
}
@keyframes radar-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.radar-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  animation: radar-core-ping 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}
@keyframes radar-core-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* Text and Info HUD */
.radar-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.radar-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.radar-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.8);
  animation: radar-live-dot-pulse 1.4s infinite ease-in-out;
}
@keyframes radar-live-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}
.radar-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0284c7, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.radar-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  min-height: 20px;
  transition: opacity 0.3s ease;
}

/* Audio/Frequency Equalizer Waveform */
.radar-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  margin: 4px 0;
}
.wave-bar {
  width: 3.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  animation: wave-bar-bounce 1.1s ease-in-out infinite alternate;
}
.w-1 { height: 7px; animation-delay: 0.1s; }
.w-2 { height: 16px; animation-delay: 0.3s; }
.w-3 { height: 22px; animation-delay: 0.5s; }
.w-4 { height: 13px; animation-delay: 0.2s; }
.w-5 { height: 20px; animation-delay: 0.4s; }
.w-6 { height: 11px; animation-delay: 0.6s; }
.w-7 { height: 6px; animation-delay: 0.25s; }

@keyframes wave-bar-bounce {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1.1); opacity: 1; }
}

/* Micro badge */
.radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.22);
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.06);
}
.radar-badge svg {
  color: #f59e0b;
}

/* Match Found state styling */
.radar-search-wrap.found .radar-viewport {
  border-color: #10b981;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.5), inset 0 0 30px rgba(16, 185, 129, 0.25);
}
.radar-search-wrap.found .radar-center {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.8);
}
.radar-search-wrap.found .radar-title {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.radar-search-wrap.found .radar-live-dot {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}

/* Dark mode */
body.dark .radar-viewport {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.16) 0%, rgba(15, 23, 42, 0.7) 70%, #0b0f19 100%);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 45px rgba(2, 132, 199, 0.3), inset 0 0 30px rgba(2, 132, 199, 0.2);
}
body.dark .radar-subtitle {
  color: #94a3b8;
}
body.dark .radar-badge {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

/* Statusbar connecting laser shimmer */
.statusbar.st-connecting {
  position: relative;
  overflow: hidden;
}
.statusbar.st-connecting::after {
  content: '';
  position: absolute;
  left: -100%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #0284c7, transparent);
  animation: laser-sweep 1.8s infinite linear;
}
@keyframes laser-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}





/* ================= Chat box: no visible scrollbar + radar always fits ================= */
/* Hide the chat scrollbar (long chats can still be scrolled with wheel / touch) */
#log {
  scrollbar-width: none !important;
  -ms-overflow-style: none;
  scrollbar-gutter: auto !important;
}
#log::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

/* While searching, the radar must fit entirely — never scroll */
#log:has(> #radarSearch) { overflow: hidden !important; }

/* Compact radar that scales with the screen height */
.radar-search-wrap {
  padding: 6px 16px;
  flex: 1 1 auto;
  min-height: 0;
}
.radar-viewport {
  width: clamp(92px, 21vh, 175px);
  height: clamp(92px, 21vh, 175px);
  flex: none;
  margin-bottom: clamp(8px, 1.6vh, 18px);
}
.radar-aura {
  width: clamp(130px, 30vh, 250px);
  height: clamp(130px, 30vh, 250px);
}
.radar-center {
  width: clamp(38px, 6.5vh, 58px);
  height: clamp(38px, 6.5vh, 58px);
}
.radar-center-icon svg { width: 52%; height: 52%; }
.radar-center-icon { width: 100%; height: 100%; }
.radar-info { gap: clamp(3px, 0.8vh, 8px); }
.radar-title { font-size: clamp(15px, 2.4vh, 19px); }
.radar-subtitle { font-size: clamp(12px, 1.8vh, 13.5px); min-height: 0; }
.radar-waveform { height: clamp(14px, 2.4vh, 22px); margin: 0; }

/* Short screens: drop secondary details so nothing overflows */
@media (max-height: 820px) {
  .radar-waveform { display: none; }
}
@media (max-height: 700px) {
  .radar-badge { display: none; }
}
@media (max-height: 560px) {
  .radar-subtitle { display: none; }
}

/* ================= Video page: hide empty-state once the chat log has content ================= */
/* "Press Start to begin a new chat" is an absolute overlay; it must disappear when
   the radar (or any message) is shown, otherwise both render on top of each other. */
.chat-card:has(#log > *) .empty-chat {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.empty-chat {
  transition: opacity 0.25s ease;
}

/* ============================================================
   Global Design System v1 — one language for every page
   (colors / radii / motion / touch / focus / icons)
   ============================================================ */
:root{
  --red-deep:#e11d48;                 /* single danger hue (was #fe2c55/#ef4444 mix) */
  --r-sm:10px; --r-md:16px; --r-lg:20px; --r-pill:999px;
  --tap:48px;                          /* minimum touch target */
  --dur-fast:.15s; --dur:.25s;
  --ease:cubic-bezier(.4,0,.2,1);
  --focus:0 0 0 3px rgba(2,132,199,.45);
  --shadow-soft:0 4px 14px rgba(0,0,0,.12);
}
html{scroll-behavior:smooth}

/* --- base: inherit type, kill tap flash --- */
button{font:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
input,select,textarea{font:inherit}
img{max-width:100%}
::selection{background:rgba(2,132,199,.28)}

/* --- focus: keyboard-only ring, never on mouse tap --- */
:focus{outline:none}
:focus-visible{outline:none;box-shadow:var(--focus)}

/* --- buttons: one height, one motion, three states --- */
.btn{min-height:var(--tap);display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--r-md);transition:transform var(--dur-fast) var(--ease),opacity var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.btn svg{flex:none;pointer-events:none}
button svg{pointer-events:none} /* taps land on the button, not the icon */

/* --- icon discipline: fixed box, taps land on buttons --- */
.btn svg,.pill svg,.iconbtn svg,.m-icon svg,.m-rail svg{flex:none}
button svg{pointer-events:none} /* taps land on the button, not the icon */

/* --- form consistency --- */
input::placeholder,textarea::placeholder{opacity:.7}
@media (max-width:860px){
  input,select,textarea{font-size:16px} /* stops iOS auto-zoom, keeps layout stable */
}

/* --- coarse pointers: guaranteed touch targets --- */
@media (pointer:coarse){
  .btn{min-height:var(--tap)}
  .iconbtn,.m-icon,.m-back{width:44px;height:44px}
  .footer a,.site-footer a{padding-top:12px;padding-bottom:12px}
}

/* --- motion discipline: one curve, reduced-motion respected --- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* --- scrollbars: thin, neutral, everywhere --- */
*{scrollbar-width:thin;scrollbar-color:rgba(100,116,139,.5) transparent}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-thumb{background:rgba(100,116,139,.45);border-radius:8px}
*::-webkit-scrollbar-track{background:transparent}

/* --- danger hue unification (deep red everywhere) --- */
.m-live{background:var(--red-deep)}
.m-rail button.end{background:var(--red-deep)}

/* ===== Clean Screen Mobile Video UX Enhancements ===== */
.m-pip{touch-action:none;user-select:none;transition:top .45s cubic-bezier(.16,1,.3,1),left .45s cubic-bezier(.16,1,.3,1),right .45s cubic-bezier(.16,1,.3,1),bottom .45s cubic-bezier(.16,1,.3,1),box-shadow .3s,transform .2s}
.m-pip.dragging{transition:none!important;transform:scale(1.05);box-shadow:0 12px 28px rgba(0,0,0,.6)}
.m-pip.flipping{animation:pipFlip .4s cubic-bezier(.16,1,.3,1)}
@keyframes pipFlip{0%{transform:scale(1) rotateY(0deg)}50%{transform:scale(.9) rotateY(90deg)}100%{transform:scale(1) rotateY(0deg)}}
.mrow{transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1);will-change:opacity,transform}
.mrow.faded{opacity:0;transform:translateY(-8px);pointer-events:none}
.m-chat.show-all .mrow.faded,.m-chat:hover .mrow.faded{opacity:1;transform:none;pointer-events:auto}
.m-app.night-boost #mRemote,.m-app.night-boost #mLocal{filter:brightness(1.28) contrast(1.14) saturate(1.18)}
.m-rail button#mNight.active{background:rgba(245,158,11,.78);color:#fff;box-shadow:0 0 18px rgba(245,158,11,.6)}
.m-speaking-pill{display:none;align-items:center;gap:3px;background:rgba(34,197,94,.24);border:1px solid rgba(34,197,94,.55);border-radius:999px;padding:2px 7px;height:18px;margin-inline-start:4px}
.m-app.speaking .m-speaking-pill{display:inline-flex}
.m-app.speaking .m-ava{box-shadow:0 0 0 2.5px #22c55e,0 4px 14px rgba(34,197,94,.55);transition:box-shadow .25s ease}
.m-sound-bars{display:inline-flex;align-items:flex-end;gap:2px;height:10px}
.m-sound-bars i{width:2px;height:100%;background:#22c55e;border-radius:2px;animation:sbar .65s ease-in-out infinite alternate}
.m-sound-bars i:nth-child(2){animation-delay:.18s;height:60%}
.m-sound-bars i:nth-child(3){animation-delay:.36s;height:80%}
@keyframes sbar{0%{height:25%}100%{height:100%}}
.m-swipe-hint{position:absolute;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(16px);opacity:0;display:flex;align-items:center;gap:6px;background:rgba(15,23,42,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font-size:12px;font-weight:600;padding:8px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.16);box-shadow:0 8px 24px rgba(0,0,0,.5);pointer-events:none;transition:opacity .25s,transform .25s;z-index:66}
.m-swipe-hint.visible{opacity:1;transform:translateX(-50%) translateY(0)}
.floating-reaction{position:absolute;pointer-events:none;font-size:30px;z-index:70;user-select:none;animation:floatReaction 1.4s cubic-bezier(.18,.89,.32,1.28) forwards}
@keyframes floatReaction{0%{transform:translate(-50%,-50%) scale(.35);opacity:0}20%{transform:translate(-50%,-50%) scale(1.3);opacity:1}80%{opacity:.95}100%{transform:translate(-50%,-180px) scale(1) rotate(14deg);opacity:0}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
