
:root{--orange:#ffb21c;--orange2:#f39a00;--cream:#fffaf2;--ink:#2a2118;--muted:#8c7a65;--line:#efe2d1;--page1:#fffdf9;--page2:#fff5e4;--card:#fff;--radar1:#fffdf8;--radar2:#fff0d3;--nav:#fff;--safe-top:env(safe-area-inset-top);--safe-bottom:env(safe-area-inset-bottom)}
html[data-theme="night"]{--cream:#11100f;--ink:#fff6eb;--muted:#b8aa98;--line:#3a3026;--page1:#171411;--page2:#0f0e0d;--card:#1c1815;--radar1:#2b241b;--radar2:#16120d;--nav:#1c1815;--orange:#ffb52a;--orange2:#ff9800}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--cream);color:var(--ink)}a{text-decoration:none;color:inherit}button{font:inherit}.page{height:100dvh;width:100%;max-width:460px;margin:auto;position:relative;overflow:hidden;background:linear-gradient(180deg,var(--page1),var(--page2))}
.login-page{padding:calc(var(--safe-top) + 28px) 24px calc(var(--safe-bottom) + 18px);display:flex;flex-direction:column;align-items:center}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:54px;height:54px;border-radius:18px;background:linear-gradient(180deg,#ffc84f,var(--orange2));display:grid;place-items:center;color:#fff;font-size:25px;font-weight:900;box-shadow:0 10px 22px #e8950033}.brand-name{font-size:28px;font-weight:900}
.cloud-radar{position:relative;width:min(78vw,330px);aspect-ratio:1;margin-top:18px;border:0;padding:0;border-radius:50%;overflow:hidden;cursor:pointer;appearance:none;background:radial-gradient(circle at 50% 50%,rgba(255,177,28,.18),transparent 22%),radial-gradient(circle at 42% 38%,rgba(255,255,255,.10),transparent 18%),radial-gradient(circle,var(--radar1) 0%,var(--radar2) 74%,transparent 75%);box-shadow:0 22px 46px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,184,72,.16)}
.cloud-radar-small{width:190px;margin:0 auto 4px}.cloud-core{position:absolute;left:50%;top:50%;width:44%;height:44%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.9),transparent 8%),radial-gradient(circle at 65% 40%,rgba(255,186,60,.75),transparent 15%),radial-gradient(circle at 45% 65%,rgba(255,146,0,.55),transparent 18%),radial-gradient(circle at 50% 50%,rgba(255,180,30,.28),rgba(255,145,0,.05) 65%,transparent 70%);animation:cloudBreath 2.8s ease-in-out infinite alternate}@keyframes cloudBreath{from{transform:translate(-50%,-50%) scale(.92);filter:blur(.8px)}to{transform:translate(-50%,-50%) scale(1.08);filter:blur(.2px)}}.cloud-particle{position:absolute;border-radius:50%;background:radial-gradient(circle,#fff 0 16%,#ffc34d 17% 42%,rgba(255,168,0,.22) 43% 68%,transparent 69%);box-shadow:0 0 18px rgba(255,172,20,.45);animation:particleFloat 3.2s ease-in-out infinite alternate}@keyframes particleFloat{from{transform:translate3d(-4px,4px,0) scale(.72);opacity:.46}to{transform:translate3d(7px,-8px,0) scale(1.18);opacity:1}}.cp1{width:42px;height:42px;left:18%;top:18%}.cp2{width:30px;height:30px;left:66%;top:16%}.cp3{width:56px;height:56px;left:10%;top:48%}.cp4{width:34px;height:34px;right:12%;top:43%}.cp5{width:46px;height:46px;left:26%;bottom:10%}.cp6{width:28px;height:28px;right:24%;bottom:12%}.cp7{width:18px;height:18px;left:47%;top:12%}.cp8{width:22px;height:22px;left:15%;bottom:28%}.cp9{width:18px;height:18px;right:16%;bottom:32%}.cp10{width:24px;height:24px;left:43%;bottom:7%}.cp11{width:16px;height:16px;right:7%;top:27%}.cp12{width:14px;height:14px;left:6%;top:31%}.cloud-wave{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:1px solid rgba(255,183,55,.34);animation:cloudWave 3.6s ease-out infinite}.cw1{width:35%;height:35%}.cw2{width:58%;height:58%;animation-delay:-1.2s}.cw3{width:82%;height:82%;animation-delay:-2.4s}@keyframes cloudWave{0%{opacity:.10;transform:translate(-50%,-50%) scale(.72)}45%{opacity:.75}100%{opacity:0;transform:translate(-50%,-50%) scale(1.18)}}.me-dot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#ffc848,#f39b00);color:#fff;font-weight:900;box-shadow:0 0 0 10px rgba(255,178,28,.12),0 0 30px rgba(255,157,0,.35);z-index:5}.touch-pulse{position:absolute;width:22px;height:22px;border-radius:50%;border:3px solid var(--orange);pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(.2)}.touch-pulse.show{animation:tapPulse .65s ease-out}@keyframes tapPulse{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(4.8)}}.login-copy{text-align:center;margin-top:4px}.login-copy p{font-size:14px;color:var(--muted);margin:6px 0 0}.age-check{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:auto;margin-bottom:12px;font-size:15px;font-weight:800}.age-check input{position:absolute;opacity:0;pointer-events:none}.age-check .checkmark{width:28px;height:28px;border-radius:9px;border:2px solid var(--orange);display:grid;place-items:center;color:transparent;transition:.18s}.age-check input:checked+.checkmark{background:var(--orange);color:#fff;box-shadow:0 0 0 5px rgba(255,178,28,.12)}.google-button{width:100%;height:64px;border-radius:20px;background:linear-gradient(180deg,#ffbd39,#f39a00);display:flex;align-items:center;justify-content:center;gap:12px;color:#fff;font-size:18px;font-weight:900;box-shadow:0 14px 30px #d98a0030}.google-button.disabled{opacity:.38;pointer-events:none;box-shadow:none}.gmark{width:36px;height:36px;border-radius:12px;background:#fff;color:#4285f4;display:grid;place-items:center;font-size:22px;font-weight:900}
.simple-head{position:absolute;top:calc(var(--safe-top) + 16px);left:18px;display:flex;align-items:center;gap:10px}.mini-profile{width:46px;height:46px;border-radius:50%;overflow:hidden;background:#ffb21c;color:#fff;display:grid;place-items:center;font-weight:900}.mini-profile img,.profile-photo img,.avatar img,.radar-card-avatar img{width:100%;height:100%;object-fit:cover}.simple-head strong,.simple-head small{display:block}.simple-head small{font-size:11px;color:var(--muted)}.checkin-page{display:grid;place-items:center;padding:22px}.checkin-card{text-align:center;width:100%;max-width:350px}.checkin-card h1{font-size:38px;margin:4px 0}.checkin-card p{margin:0 auto 24px;color:var(--muted);font-size:17px;max-width:300px}.main-button{border:0;width:100%;height:62px;border-radius:20px;background:linear-gradient(180deg,#ffbc37,#f49a00);color:#fff;font-size:18px;font-weight:900}.status{margin-top:14px;color:var(--muted);font-size:12px;line-height:1.45}
.topbar{height:88px;padding:calc(var(--safe-top) + 16px) 20px 10px;display:flex;align-items:flex-end;justify-content:space-between}.topbar strong,.friends-head strong{display:block;font-size:24px}.topbar small,.friends-head small{display:block;color:var(--muted);font-size:12px}.round-link,.back-link{width:42px;height:42px;border-radius:14px;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;font-size:22px;box-shadow:0 8px 20px #b37b1620}
.live-radar{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:min(86vw,370px);aspect-ratio:1;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 50%,rgba(255,185,65,.18),transparent 21%),radial-gradient(circle at 35% 35%,rgba(255,255,255,.08),transparent 20%),radial-gradient(circle,var(--radar1),var(--radar2));box-shadow:inset 0 0 0 1px rgba(255,181,42,.23),0 24px 50px rgba(0,0,0,.20)}
.radar-haze{position:absolute;border-radius:50%;filter:blur(22px);opacity:.45;animation:haze 6s ease-in-out infinite alternate}.h1{width:44%;height:44%;left:7%;top:20%;background:#ffad16}.h2{width:42%;height:42%;right:6%;top:30%;background:#ffc85b;animation-delay:-2s}.h3{width:34%;height:34%;left:35%;bottom:4%;background:#ff8d00;animation-delay:-4s}@keyframes haze{to{transform:translate(18px,-14px) scale(1.18);opacity:.25}}
.live-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#ffc84f,#f59a00);color:white;font-size:13px;font-weight:900;z-index:4;box-shadow:0 0 0 10px rgba(255,178,28,.13),0 0 34px rgba(255,160,0,.35)}
.live-dot{position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border:0;background:transparent;padding:0;cursor:pointer;z-index:3}.live-dot-core{position:absolute;inset:7px;border-radius:50%;background:#ffd66d;box-shadow:0 0 12px #ffad16}.live-dot-glow{position:absolute;inset:0;border-radius:50%;border:1px solid rgba(255,181,42,.55);animation:dotPulse 2.1s ease-out infinite}.live-dot.online .live-dot-core{background:#fff}.live-dot.online .live-dot-glow{box-shadow:0 0 18px rgba(255,189,55,.7)}@keyframes dotPulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.65);opacity:0}}
.radar-card{position:absolute;left:16px;right:16px;bottom:14px;height:68px;border-radius:22px;background:rgba(20,17,14,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;padding:9px;gap:10px;color:#fff;z-index:8}.radar-card.hidden{display:none}.radar-card-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;background:#ffad16;display:grid;place-items:center;font-weight:900}.radar-card-text{flex:1;min-width:0}.radar-card-text strong,.radar-card-text small{display:block}.radar-card-text small{opacity:.72;font-size:12px}.radar-card-chat{padding:10px 13px;border-radius:13px;background:#ffad16;color:#fff;font-weight:900}
.radius-bar{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--safe-bottom) + 92px);display:flex;gap:7px;padding:6px;background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 22px rgba(0,0,0,.08)}.radius-btn{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:13px;font-size:12px;font-weight:900}.radius-btn.active{background:#fff0cf;color:#ea9000}
.bottom-nav{position:absolute;z-index:10;left:12px;right:12px;bottom:calc(var(--safe-bottom) + 10px);height:72px;border-radius:24px;background:var(--nav);border:1px solid var(--line);box-shadow:0 14px 32px #8e641c24;display:grid;grid-template-columns:repeat(4,1fr);padding:6px}.bottom-nav a{border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted)}.bottom-nav a.active{background:#fff0cf;color:#ee9600}.bottom-nav span{font-size:22px}.bottom-nav small{font-size:11px;font-weight:800}
.friends-page{padding-bottom:calc(var(--safe-bottom) + 94px)}.friends-head{height:96px;padding:calc(var(--safe-top) + 16px) 18px 10px;display:flex;gap:12px;align-items:flex-end}.back-link{font-size:34px}.friend-list{padding:8px 14px 0;display:flex;flex-direction:column;gap:8px;height:calc(100% - 96px);overflow-y:auto;overscroll-behavior:contain}.friend-row{height:74px;flex:0 0 74px;border-radius:20px;background:var(--card);border:1px solid var(--line);display:flex;align-items:center;padding:10px;gap:11px;box-shadow:0 6px 16px #b8821920}.avatar{width:50px;height:50px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#ffad16;color:#fff;font-size:19px;font-weight:900}.friend-info{flex:1;min-width:0}.friend-info strong{display:block;font-size:17px}.friend-info small{display:block;color:var(--muted);font-size:12px}.distance{font-size:12px;color:var(--muted);font-weight:800}.chat-button{border:0;border-radius:13px;padding:10px 12px;background:#fff0cf;color:#e98e00;font-weight:900}.empty-state{margin:auto;text-align:center;color:var(--muted);font-weight:700;padding:40px 20px}.profile-page{padding:0 18px}.profile-card{text-align:center;margin-top:110px}.profile-photo{width:96px;height:96px;border-radius:50%;overflow:hidden;margin:auto;background:#ffb21c;color:#fff;display:grid;place-items:center;font-size:34px;font-weight:900}.profile-card h1{margin:14px 0 2px}.profile-card p{margin:0;color:var(--muted)}.logout-button{margin-top:26px;border:0;border-radius:16px;padding:14px 24px;background:#fff0cf;color:#d77f00;font-weight:900}


/* 39GO Login Nebula V2.3.0 */
.nebula-login-page{
  max-width:none;
  padding:0;
  background:
    radial-gradient(circle at 20% 15%, rgba(108,76,255,.24), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(0,225,255,.18), transparent 20%),
    radial-gradient(circle at 50% 72%, rgba(255,120,180,.22), transparent 25%),
    linear-gradient(180deg, rgba(6,10,18,1) 0%, rgba(10,12,26,1) 55%, rgba(14,11,23,1) 100%);
}
html[data-theme="day"] .nebula-login-page{
  background:
    radial-gradient(circle at 18% 15%, rgba(255,159,64,.24), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(80,201,255,.20), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(200,126,255,.22), transparent 26%),
    linear-gradient(180deg, #fff7ef 0%, #f7f5ff 55%, #eef7ff 100%);
}
.nebula-bg{
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
}
.nebula-orb,.nebula-wave,.nebula-grid,.nebula-stars{
  position:absolute;
}
.nebula-orb{
  border-radius:50%;
  filter:blur(38px);
  opacity:.8;
  mix-blend-mode:screen;
  animation:nebulaFloat 11s ease-in-out infinite alternate;
}
.orb-a{width:52vw;height:52vw;min-width:240px;min-height:240px;left:-10vw;top:8vh;background:radial-gradient(circle,#7f58ff 0%,#4e2bff 22%,rgba(127,88,255,.28) 55%,transparent 72%)}
.orb-b{width:60vw;height:60vw;min-width:260px;min-height:260px;right:-18vw;top:12vh;background:radial-gradient(circle,#00e0ff 0%,#19b6ff 26%,rgba(0,224,255,.22) 56%,transparent 74%);animation-delay:-4s}
.orb-c{width:72vw;height:72vw;min-width:300px;min-height:300px;left:12vw;bottom:-18vw;background:radial-gradient(circle,#ff6db0 0%,#ff9759 24%,rgba(255,111,170,.18) 58%,transparent 78%);animation-delay:-7s}
.orb-d{width:34vw;height:34vw;min-width:150px;min-height:150px;right:8vw;bottom:10vh;background:radial-gradient(circle,#80ffdb 0%,#44d7b6 28%,rgba(128,255,219,.16) 58%,transparent 78%);animation-delay:-2s}
.nebula-wave{
  left:-10%; right:-10%; height:42vh;
  border-radius:50%;
  filter:blur(24px);
  opacity:.65;
  transform-origin:center;
}
.wave-a{bottom:20vh;background:radial-gradient(ellipse at center, rgba(255,255,255,.08) 0%, rgba(120,90,255,.14) 24%, rgba(0,0,0,0) 66%);animation:waveShift 10s ease-in-out infinite}
.wave-b{bottom:8vh;background:radial-gradient(ellipse at center, rgba(255,255,255,.06) 0%, rgba(0,231,255,.14) 22%, rgba(0,0,0,0) 68%);animation:waveShift 13s ease-in-out infinite reverse}
.wave-c{bottom:-2vh;background:radial-gradient(ellipse at center, rgba(255,255,255,.07) 0%, rgba(255,119,179,.16) 18%, rgba(0,0,0,0) 70%);animation:waveShift 15s ease-in-out infinite}
.nebula-grid{
  inset:auto 0 0 0;
  height:34vh;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0/100% 34px,
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0/34px 100%;
  mask-image:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 24%, rgba(0,0,0,1) 80%);
  opacity:.16;
  transform:perspective(600px) rotateX(68deg);
  transform-origin:bottom;
}
.nebula-stars{
  inset:0;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.92) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 13%, rgba(255,255,255,.84) 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 82% 28%, rgba(255,255,255,.78) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 42%, rgba(255,255,255,.76) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 54%, rgba(255,255,255,.92) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 74% 60%, rgba(255,255,255,.72) 0 1.1px, transparent 2.1px),
    radial-gradient(circle at 38% 68%, rgba(255,255,255,.82) 0 1.2px, transparent 2.2px);
  opacity:.65;
  animation:starDrift 18s linear infinite;
}
@keyframes nebulaFloat{
  from{transform:translate3d(-12px,0,0) scale(.96)}
  to{transform:translate3d(18px,-16px,0) scale(1.08)}
}
@keyframes waveShift{
  0%{transform:translateY(0) rotate(0deg) scale(1)}
  50%{transform:translateY(-18px) rotate(1.2deg) scale(1.06)}
  100%{transform:translateY(10px) rotate(-1.2deg) scale(.98)}
}
@keyframes starDrift{
  from{transform:translateY(0)}
  to{transform:translateY(18px)}
}

.login-shell{
  position:relative;
  z-index:2;
  height:100dvh;
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:calc(var(--safe-top) + 18px) 22px calc(var(--safe-bottom) + 18px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
}
.brand-glass{
  align-self:flex-start;
  padding:10px 14px;
  border-radius:24px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
html[data-theme="day"] .brand-glass{
  background:rgba(255,255,255,.55);
  border-color:rgba(255,255,255,.7);
}
html[data-theme="night"] .brand-name,
html[data-theme="night"] .login-copy p,
html[data-theme="night"] .age-check{
  color:#fff7ef;
}
.nebula-radar{
  width:min(88vw,410px);
  margin-top:0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), transparent 17%),
    radial-gradient(circle at 34% 30%, rgba(0,229,255,.22), transparent 24%),
    radial-gradient(circle at 68% 70%, rgba(255,120,180,.20), transparent 24%),
    radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 28%, rgba(255,255,255,.02) 58%, transparent 75%);
  box-shadow:
    0 36px 70px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.20),
    inset 0 0 80px rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.nebula-radar::before{
  content:"";
  position:absolute; inset:10%;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 0 26px rgba(255,255,255,.06),
    0 0 32px rgba(0,224,255,.15);
}
.nebula-radar::after{
  content:"";
  position:absolute; inset:0;
  border-radius:50%;
  background:
    conic-gradient(from 0deg, rgba(255,255,255,0) 0 28%, rgba(255,255,255,.10) 34%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 100%);
  animation:scannerTurn 7s linear infinite;
  mix-blend-mode:screen;
}
@keyframes scannerTurn{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}
.cloud-core{
  width:40%;
  height:40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), transparent 8%),
    radial-gradient(circle at 72% 35%, rgba(0,225,255,.72), transparent 18%),
    radial-gradient(circle at 45% 68%, rgba(255,123,180,.58), transparent 18%),
    radial-gradient(circle at 52% 50%, rgba(255,190,80,.26), rgba(255,145,0,.04) 65%, transparent 70%);
}
.cloud-particle{
  background:radial-gradient(circle,#fff 0 16%, #7fe3ff 17% 35%, rgba(255,108,167,.40) 36% 56%, rgba(255,214,93,.28) 57% 72%, transparent 73%);
  box-shadow:0 0 22px rgba(255,255,255,.20), 0 0 26px rgba(0,224,255,.25);
}
.cloud-wave{
  border-color:rgba(255,255,255,.30);
  box-shadow:0 0 18px rgba(0,224,255,.10);
}
.me-dot{
  background:linear-gradient(180deg,#ffffff,#ffd36e 45%,#ff8d7a 100%);
  color:#271806;
  box-shadow:
    0 0 0 10px rgba(255,255,255,.10),
    0 0 40px rgba(255,153,102,.35),
    0 0 32px rgba(0,224,255,.20);
}
.nebula-copy{
  margin-top:-6px;
}
.nebula-copy p{
  max-width:320px;
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.88);
  text-shadow:0 2px 16px rgba(0,0,0,.16);
}
html[data-theme="day"] .nebula-copy p{
  color:#4e4a63;
  text-shadow:none;
}
.login-panel{
  width:100%;
  padding:16px;
  border-radius:28px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  box-shadow:0 18px 44px rgba(0,0,0,.16);
}
html[data-theme="day"] .login-panel{
  background:rgba(255,255,255,.62);
  border-color:rgba(255,255,255,.78);
}
.login-panel .age-check{
  margin-top:0;
  margin-bottom:14px;
}
.age-check{
  justify-content:flex-start;
  font-size:16px;
}
.age-check .checkmark{
  width:30px;
  height:30px;
  border-color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.08);
}
html[data-theme="day"] .age-check .checkmark{
  border-color:#7658ff;
  background:#ffffff;
}
.age-check input:checked + .checkmark{
  background:linear-gradient(180deg,#7f58ff,#30d5ff);
  border-color:transparent;
}
.google-button{
  background:linear-gradient(180deg,#ffffff,#eef4ff);
  color:#1d2433;
  box-shadow:0 18px 34px rgba(0,0,0,.15);
}
.google-button .gmark{
  color:#4285f4;
  box-shadow:0 4px 16px rgba(66,133,244,.14);
}
.google-button.disabled{
  opacity:.42;
  pointer-events:none;
  box-shadow:none;
}
@media (max-width:380px){
  .brand-name{font-size:26px}
  .nebula-radar{width:min(86vw,360px)}
  .google-button{height:60px;font-size:17px}
  .login-panel{padding:14px 14px 16px}
}


/* 39GO Login Animated Background V2.3.1 */
.nebula-login-page::before,
.nebula-login-page::after{
  content:"";
  position:absolute;
  inset:-20%;
  pointer-events:none;
  z-index:0;
}
.nebula-login-page::before{
  background:
    radial-gradient(circle at 15% 25%, rgba(111,84,255,.24), transparent 18%),
    radial-gradient(circle at 85% 22%, rgba(0,221,255,.24), transparent 18%),
    radial-gradient(circle at 70% 76%, rgba(255,109,176,.18), transparent 16%),
    radial-gradient(circle at 28% 80%, rgba(255,174,66,.18), transparent 16%);
  filter: blur(28px) saturate(120%);
  animation: pageDrift 18s ease-in-out infinite alternate;
}
.nebula-login-page::after{
  background:
    linear-gradient(120deg,
      rgba(255,255,255,.00) 0%,
      rgba(255,255,255,.05) 20%,
      rgba(255,255,255,.00) 40%,
      rgba(132,104,255,.12) 58%,
      rgba(0,231,255,.10) 72%,
      rgba(255,118,175,.10) 86%,
      rgba(255,255,255,.00) 100%);
  mix-blend-mode: screen;
  filter: blur(42px);
  opacity: .9;
  animation: ribbonSweep 14s linear infinite;
}
.nebula-bg{
  animation: bgPan 22s ease-in-out infinite alternate;
}
.nebula-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(255,255,255,.08), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  mix-blend-mode:screen;
  animation: shimmer 12s ease-in-out infinite;
}
.orb-a,.orb-b,.orb-c,.orb-d{
  animation-duration: 14s;
}
.orb-a{animation-name: nebulaFloatA}
.orb-b{animation-name: nebulaFloatB}
.orb-c{animation-name: nebulaFloatC}
.orb-d{animation-name: nebulaFloatD}
.wave-a,.wave-b,.wave-c{
  opacity:.72;
}
.wave-a{animation-duration: 11s}
.wave-b{animation-duration: 16s}
.wave-c{animation-duration: 19s}
.nebula-stars{
  opacity:.78;
  animation: starDrift 18s linear infinite, twinkle 5s ease-in-out infinite;
}
@keyframes pageDrift{
  0%{transform:translate3d(-2%, 0, 0) scale(1)}
  50%{transform:translate3d(2%, -1%, 0) scale(1.04)}
  100%{transform:translate3d(-1%, 2%, 0) scale(1.02)}
}
@keyframes ribbonSweep{
  0%{transform:translate3d(-8%, -2%, 0) rotate(0deg) scale(1)}
  50%{transform:translate3d(6%, 1%, 0) rotate(6deg) scale(1.06)}
  100%{transform:translate3d(-4%, -1%, 0) rotate(-4deg) scale(1.02)}
}
@keyframes bgPan{
  0%{transform:scale(1) translate3d(0,0,0)}
  50%{transform:scale(1.03) translate3d(0,-1.2%,0)}
  100%{transform:scale(1.06) translate3d(0,1.2%,0)}
}
@keyframes shimmer{
  0%{opacity:.28; transform:translateY(0)}
  50%{opacity:.58; transform:translateY(-1%)}
  100%{opacity:.22; transform:translateY(1%)}
}
@keyframes twinkle{
  0%,100%{filter:brightness(1)}
  50%{filter:brightness(1.35)}
}
@keyframes nebulaFloatA{
  0%{transform:translate3d(-1vw,0,0) scale(.96)}
  50%{transform:translate3d(2vw,-2vh,0) scale(1.05)}
  100%{transform:translate3d(5vw,1vh,0) scale(1.08)}
}
@keyframes nebulaFloatB{
  0%{transform:translate3d(0,1vh,0) scale(1)}
  50%{transform:translate3d(-3vw,-2vh,0) scale(1.04)}
  100%{transform:translate3d(-6vw,1vh,0) scale(1.08)}
}
@keyframes nebulaFloatC{
  0%{transform:translate3d(0,0,0) scale(.98)}
  50%{transform:translate3d(2vw,-3vh,0) scale(1.02)}
  100%{transform:translate3d(-2vw,2vh,0) scale(1.06)}
}
@keyframes nebulaFloatD{
  0%{transform:translate3d(0,0,0) scale(.96)}
  50%{transform:translate3d(1vw,-2vh,0) scale(1.02)}
  100%{transform:translate3d(-2vw,2vh,0) scale(1.08)}
}

/* 39GO Branding-ready homepage V2.3.2 */
.branding-copy{
  width:100%;
  max-width:360px;
  padding:12px 14px;
  border-radius:20px;
  background:rgba(10,14,26,.24);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.branding-copy strong{
  display:block;
  text-align:center;
  font-size:19px;
  line-height:1.2;
  color:#fff;
  margin-bottom:4px;
}
.branding-copy p{
  margin:0;
  font-size:12px;
  line-height:1.45;
}
html[data-theme="day"] .branding-copy{
  background:rgba(255,255,255,.46);
  border-color:rgba(255,255,255,.66);
}
html[data-theme="day"] .branding-copy strong{
  color:#282238;
}
.legal-links{
  margin-top:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
  font-size:12px;
  color:rgba(255,255,255,.72);
}
.legal-links a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}
html[data-theme="day"] .legal-links{
  color:#625a72;
}


/* ===== GOOGLE BRAND VERIFICATION PUBLIC HOME V2.4.0 ===== */
.public-home-page{
  max-width:none;
  overflow-y:auto;
  overflow-x:hidden;
  min-height:100dvh;
  height:100dvh;
  background:
    radial-gradient(circle at 18% 14%,rgba(127,88,255,.22),transparent 22%),
    radial-gradient(circle at 84% 16%,rgba(0,224,255,.18),transparent 22%),
    radial-gradient(circle at 52% 82%,rgba(255,109,176,.16),transparent 28%),
    linear-gradient(180deg,#0a0f1c 0%,#11182b 58%,#0b1020 100%);
  color:#f7f9ff;
}
.public-home-page .nebula-bg{position:fixed;inset:0;z-index:0}
.public-home-shell{
  position:relative;z-index:2;
  width:min(100%,920px);
  margin:0 auto;
  padding:calc(var(--safe-top) + 18px) 18px calc(var(--safe-bottom) + 28px);
}
.public-brand{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-bottom:28px;
}
.public-brand .brand{display:flex;align-items:center;gap:12px}
.public-brand .brand-name{color:#fff;font-size:28px}
.brand-sub{font-size:12px;color:rgba(255,255,255,.62);font-weight:700}
.public-privacy-link{
  padding:9px 13px;border-radius:13px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
}
.public-hero{
  text-align:left;
}
.hero-badge{
  display:inline-flex;padding:8px 12px;border-radius:999px;
  background:rgba(69,213,255,.12);
  border:1px solid rgba(69,213,255,.20);
  color:#8ee8ff;font-size:12px;font-weight:900;
}
.public-hero h1{
  margin:14px 0 12px;
  font-size:clamp(34px,7vw,62px);
  line-height:1.02;
  letter-spacing:-.03em;
  color:#fff;
}
.public-hero>p{
  margin:0;
  max-width:760px;
  font-size:16px;
  line-height:1.7;
  color:rgba(235,241,255,.78);
}
.purpose-card,.compliance-note{
  margin-top:18px;
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.11);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.purpose-card strong,.compliance-note strong{
  display:block;color:#fff;font-size:16px;margin-bottom:5px
}
.purpose-card p,.compliance-note p{
  margin:0;color:rgba(235,241,255,.72);font-size:13px;line-height:1.65
}
.feature-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.feature-grid article{
  min-height:132px;
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.feature-grid article span{
  width:34px;height:34px;border-radius:11px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#6d55ff,#2dd8ff);
  color:#fff;font-weight:900;margin-bottom:13px;
}
.feature-grid strong{display:block;color:#fff;margin-bottom:4px}
.feature-grid small{display:block;color:rgba(235,241,255,.62);line-height:1.5}
.public-login-card{
  margin-top:20px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.13);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.public-login-card .age-check{
  margin:0 0 14px;color:#fff;justify-content:flex-start
}
.public-login-card .google-button{max-width:520px}
.public-login-card .legal-links{justify-content:flex-start}
.public-login-card .legal-links a{color:#d9eaff}
@media(max-width:640px){
  .public-home-shell{padding-left:16px;padding-right:16px}
  .public-brand{margin-bottom:22px}
  .public-hero h1{font-size:40px}
  .feature-grid{grid-template-columns:1fr}
  .feature-grid article{min-height:auto}
  .purpose-card,.compliance-note,.public-login-card{border-radius:20px}
}


/* ===== RADAR VISIBILITY FIX V2.4.3 ===== */
#liveDots{
  position:absolute;
  inset:0;
  z-index:6;
  pointer-events:none;
}
.live-center{z-index:7}
.radar-card{z-index:12}
.live-person{
  position:absolute;
  transform:translate(-50%,-50%);
  width:56px;
  height:56px;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  pointer-events:auto;
  z-index:8;
  overflow:visible;
  appearance:none;
  -webkit-appearance:none;
}
.live-person-avatar{
  position:absolute;
  inset:5px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#735bff,#2fd8ff 55%,#ffb13b);
  border:2px solid rgba(255,255,255,.92);
  box-shadow:0 8px 22px rgba(0,0,0,.28),0 0 18px rgba(61,215,255,.28);
  color:#fff;
  font-weight:900;
  font-size:18px;
}
.live-person-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.live-person-pulse{
  position:absolute;
  inset:-3px;
  border-radius:50%;
  border:2px solid rgba(255,188,70,.64);
  opacity:.72;
  animation:personPulse 2s ease-out infinite;
}
.live-person.online .live-person-pulse{
  border-color:rgba(79,235,181,.82);
  box-shadow:0 0 20px rgba(79,235,181,.22);
}
.live-person-label{
  position:absolute;
  left:50%;
  top:52px;
  transform:translateX(-50%);
  min-width:84px;
  max-width:132px;
  padding:5px 8px;
  border-radius:10px;
  background:rgba(12,15,24,.78);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:#fff;
  text-align:center;
  white-space:nowrap;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  pointer-events:none;
}
.live-person-label strong{
  display:block;
  max-width:116px;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
  line-height:1.2;
}
.live-person-label small{
  display:block;
  margin-top:2px;
  font-size:9px;
  opacity:.72;
}
@keyframes personPulse{
  0%{transform:scale(.82);opacity:.9}
  100%{transform:scale(1.45);opacity:0}
}
@media(max-width:380px){
  .live-person{width:50px;height:50px}
  .live-person-label{top:47px;min-width:72px}
}


/* ===== RADAR SIMPLE V2.4.4 ===== */
.live-person{
  cursor:default !important;
  pointer-events:none !important;
}
.live-person-label{
  pointer-events:none !important;
}
.radar-card{
  display:none !important;
}


/* ===== RADAR CENTER DOT V2.4.5 ===== */
.live-center{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  border-radius:50% !important;
  background:radial-gradient(circle at 35% 35%, #fff4c1 0%, #ffc84f 38%, #ffb21d 68%, #e48800 100%) !important;
  box-shadow:0 0 0 10px rgba(255,178,28,.10),0 0 26px rgba(255,160,0,.30) !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
}

.live-person-label{
  display:none !important;
}


/* ===== PUBLIC PROFILE V2.5.0 ===== */
.profile-edit-page{
  overflow-y:auto;
  padding:0 18px calc(var(--safe-bottom) + 28px);
}
.profile-head{
  position:sticky;
  top:0;
  z-index:12;
  background:linear-gradient(180deg,var(--page1) 76%,rgba(0,0,0,0));
}
.profile-editor{
  width:100%;
  max-width:390px;
  margin:24px auto 0;
  text-align:center;
}
.editable-photo{
  width:116px;
  height:116px;
  margin:0 auto;
  border:3px solid rgba(255,255,255,.92);
  box-shadow:
    0 16px 36px rgba(0,0,0,.20),
    0 0 0 8px rgba(255,178,28,.10);
}
.photo-picker{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  padding:10px 16px;
  border-radius:14px;
  background:#fff0cf;
  color:#dd8700;
  font-weight:900;
  cursor:pointer;
}
.photo-picker input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.profile-field{
  margin-top:24px;
  text-align:left;
}
.profile-field label{
  display:block;
  margin-bottom:8px;
  font-weight:900;
}
.profile-field input{
  width:100%;
  height:58px;
  padding:0 16px;
  border-radius:18px;
  border:1px solid var(--line);
  outline:none;
  background:var(--card);
  color:var(--ink);
  font:inherit;
  font-size:17px;
  font-weight:700;
}
.profile-field input:focus{
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(255,178,28,.12);
}
.profile-field small{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.profile-save-button{
  margin-top:20px;
}
.profile-save-button:disabled{
  opacity:.55;
}
.profile-status{
  min-height:22px;
  margin-top:10px;
}
.identity-note{
  margin-top:18px;
  padding:15px 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--card);
  text-align:left;
}
.identity-note strong{
  display:block;
  margin-bottom:5px;
}
.identity-note p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.profile-editor .logout-button{
  margin-top:18px;
}


/* ===== AVATAR CROP PRESENTATION V2.5.1 ===== */
.editable-photo,
.profile-photo,
.avatar,
.live-person-avatar,
.radar-card-avatar{
  overflow:hidden;
}
.editable-photo img,
.profile-photo img,
.avatar img,
.live-person-avatar img,
.radar-card-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}
.photo-picker::after{
  content:"1:1";
  margin-left:7px;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  font-size:10px;
  font-weight:900;
}


/* ===== NEAREST 50 / NO DISTANCE CAP V2.5.2 ===== */
.live-radar{top:48%}


/* ===== MANUAL AVATAR CROPPER V2.5.3 ===== */
.crop-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:end center;
}
.crop-modal.hidden{
  display:none;
}
.crop-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,7,12,.72);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.crop-sheet{
  position:relative;
  width:min(100%,460px);
  padding:16px 16px calc(env(safe-area-inset-bottom) + 18px);
  border-radius:26px 26px 0 0;
  background:#111722;
  color:#fff;
  box-shadow:0 -24px 60px rgba(0,0,0,.34);
}
.crop-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.crop-head strong{
  display:block;
  font-size:18px;
}
.crop-head small{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.62);
  font-size:12px;
}
.crop-close{
  width:40px;
  height:40px;
  border:0;
  border-radius:13px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:28px;
  line-height:1;
}
.crop-stage-wrap{
  position:relative;
  width:min(88vw,360px);
  aspect-ratio:1;
  margin:0 auto;
  overflow:hidden;
  border-radius:22px;
  background:#05080d;
  touch-action:none;
  box-shadow:0 14px 34px rgba(0,0,0,.30);
}
#cropCanvas{
  display:block;
  width:100%;
  height:100%;
  touch-action:none;
  cursor:grab;
}
#cropCanvas:active{
  cursor:grabbing;
}
.crop-circle-guide{
  position:absolute;
  inset:8%;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.92);
  box-shadow:
    0 0 0 999px rgba(0,0,0,.38),
    inset 0 0 0 1px rgba(255,255,255,.18);
  pointer-events:none;
}
.crop-controls{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:16px;
}
.crop-controls label{
  width:36px;
  font-size:12px;
  font-weight:800;
  color:rgba(255,255,255,.72);
}
.crop-controls input[type="range"]{
  flex:1;
}
.crop-actions{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:10px;
  margin-top:16px;
}
.crop-secondary,
.crop-primary{
  height:52px;
  border:0;
  border-radius:16px;
  font-weight:900;
}
.crop-secondary{
  background:rgba(255,255,255,.08);
  color:#fff;
}
.crop-primary{
  background:linear-gradient(135deg,#6c58ff,#31d7ff);
  color:#fff;
}


/* ===== PROFILE PHOTO PICKER FIX V2.5.4 ===== */
.photo-picker{
  position:relative;
  overflow:hidden;
}
.photo-picker input[type="file"]{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  opacity:0 !important;
  pointer-events:auto !important;
  cursor:pointer !important;
  z-index:5 !important;
}


/* ===== RADAR DISTANCE + FILTER V2.5.5 ===== */
.radius-bar{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(var(--safe-bottom) + 88px);
  display:flex !important;
  gap:7px;
  padding:6px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  z-index:20;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.radius-btn{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:9px 12px;
  border-radius:13px;
  font-size:12px;
  font-weight:900;
}
.radius-btn.active{
  background:#fff0cf;
  color:#ea9000;
}
.live-person-distance{
  position:absolute;
  left:50%;
  top:52px;
  transform:translateX(-50%);
  min-width:46px;
  max-width:72px;
  padding:4px 6px;
  border-radius:999px;
  background:rgba(12,15,24,.82);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  text-align:center;
  white-space:nowrap;
  box-shadow:0 6px 16px rgba(0,0,0,.20);
  font-size:10px;
  font-weight:900;
  line-height:1;
  pointer-events:none;
}
@media(max-width:380px){
  .radius-bar{
    gap:5px;
    padding:5px;
    bottom:calc(var(--safe-bottom) + 84px);
  }
  .radius-btn{
    padding:8px 10px;
    font-size:11px;
  }
  .live-person-distance{
    top:48px;
    min-width:42px;
    font-size:9px;
  }
}


/* ===== BOTTOM NAV PROFILE AVATAR V2.5.8 ===== */
.bottom-nav a.nav-profile-link{
  gap:4px;
}
.nav-mini-avatar{
  width:22px;
  height:22px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#ffc84f,#f39a00);
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
  box-shadow:0 0 0 2px rgba(255,255,255,.78);
}
.bottom-nav a.active .nav-mini-avatar{
  box-shadow:0 0 0 2px rgba(255,255,255,.98), 0 6px 14px rgba(243,154,0,.24);
}
.nav-mini-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* ===== 39GO CHAT V2.6.0 ===== */
.chats-page,
.chat-page{
  background:linear-gradient(180deg,var(--page1),var(--page2));
}
.chats-page{
  padding-bottom:calc(var(--safe-bottom) + 94px);
}
.chat-list{
  height:calc(100% - 96px);
  overflow-y:auto;
  padding:6px 14px 18px;
  overscroll-behavior:contain;
}
.chat-list-row{
  min-height:76px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 8px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
}
.chat-list-avatar,
.chat-head-avatar{
  flex:0 0 auto;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#735bff,#2fd8ff 55%,#ffb13b);
  color:#fff;
  font-weight:900;
}
.chat-list-avatar{
  width:54px;
  height:54px;
  font-size:20px;
}
.chat-list-avatar img,
.chat-head-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.chat-list-copy{
  min-width:0;
  flex:1;
}
.chat-list-title,
.chat-list-preview{
  display:flex;
  align-items:center;
  gap:8px;
}
.chat-list-title strong{
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:16px;
}
.chat-list-title time{
  color:var(--muted);
  font-size:10px;
}
.chat-list-preview{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.chat-list-preview span{
  min-width:0;
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-list-preview b{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--orange);
  color:#fff;
  font-size:10px;
}
.chat-empty{
  min-height:60vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--muted);
  padding:30px;
}
.chat-empty>span{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff0cf;
  color:#e99500;
  font-size:34px;
}
.chat-empty strong{
  color:var(--ink);
  margin-top:14px;
  font-size:20px;
}
.chat-empty small{
  max-width:260px;
  margin-top:5px;
  line-height:1.5;
}
.chat-empty a{
  margin-top:16px;
  padding:11px 18px;
  border-radius:14px;
  background:var(--orange);
  color:#fff;
  font-weight:900;
}

.chat-page{
  display:grid;
  grid-template-rows:auto 1fr auto;
  overflow:hidden;
}
.chat-head{
  min-height:78px;
  padding:calc(var(--safe-top) + 10px) 14px 10px;
  display:flex;
  align-items:flex-end;
  gap:10px;
  background:rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  z-index:5;
}
html[data-theme="night"] .chat-head{
  background:rgba(28,24,21,.82);
}
.chat-head .back-link{
  line-height:42px;
}
.chat-head-avatar{
  width:42px;
  height:42px;
  font-size:16px;
}
.chat-head-copy{
  min-width:0;
  padding-bottom:3px;
}
.chat-head-copy strong,
.chat-head-copy small{
  display:block;
}
.chat-head-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-head-copy small{
  color:var(--muted);
  font-size:11px;
  margin-top:2px;
}
.chat-messages{
  overflow-y:auto;
  padding:14px 12px 18px;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.chat-loading,
.chat-first-note{
  margin:28px auto;
  max-width:280px;
  color:var(--muted);
  text-align:center;
  font-size:12px;
}
.chat-bubble-row{
  display:flex;
  margin:5px 0;
}
.chat-bubble-row.mine{
  justify-content:flex-end;
}
.chat-bubble-row.theirs{
  justify-content:flex-start;
}
.chat-bubble{
  max-width:min(78%,540px);
  padding:9px 11px 6px;
  border-radius:18px;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}
.chat-bubble-row.mine .chat-bubble{
  background:linear-gradient(135deg,#ffc44f,#f3a000);
  border-color:transparent;
  color:#fff;
  border-bottom-right-radius:6px;
}
.chat-bubble-row.theirs .chat-bubble{
  border-bottom-left-radius:6px;
}
.chat-body{
  font-size:15px;
  line-height:1.45;
  word-break:break-word;
}
.chat-meta{
  display:flex;
  justify-content:flex-end;
  gap:5px;
  margin-top:3px;
  font-size:9px;
  opacity:.68;
}
.chat-composer{
  display:grid;
  grid-template-columns:1fr 46px;
  align-items:end;
  gap:8px;
  padding:9px 10px calc(var(--safe-bottom) + 10px);
  background:var(--nav);
  border-top:1px solid var(--line);
}
.chat-composer textarea{
  min-height:44px;
  max-height:110px;
  resize:none;
  border:1px solid var(--line);
  border-radius:18px;
  padding:11px 14px;
  background:var(--card);
  color:var(--ink);
  font:inherit;
  outline:none;
}
.chat-composer textarea:focus{
  border-color:var(--orange);
}
.chat-composer button{
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:linear-gradient(180deg,#ffc54c,#f39a00);
  color:#fff;
  font-size:20px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(243,154,0,.25);
}
.chat-composer button:disabled{
  opacity:.5;
}


/* ===== 39GO SENIOR FRIENDLY UI V2.6.1 ===== */
:root{
  --senior-body:18px;
  --senior-small:14px;
  --senior-label:15px;
  --senior-title:28px;
  --senior-touch:54px;
}

/* ใช้พื้นที่หน้าจอจริง ไม่บีบแอปไว้แคบเกินไป */
.checkin-page,
.radar-page,
.friends-page,
.chats-page,
.chat-page,
.profile-page{
  max-width:none !important;
  width:100% !important;
}

/* ตัวอักษรพื้นฐานในหน้าผู้ใช้ */
.checkin-page,
.radar-page,
.friends-page,
.chats-page,
.chat-page,
.profile-page{
  font-size:var(--senior-body);
}

.topbar{
  height:100px;
  padding-left:22px;
  padding-right:22px;
}
.topbar strong,
.friends-head strong{
  font-size:var(--senior-title) !important;
  line-height:1.15;
}
.topbar small,
.friends-head small,
.simple-head small{
  font-size:var(--senior-small) !important;
  line-height:1.35;
}

/* ปุ่มย้อนกลับ / ปุ่มมุมบน */
.round-link,
.back-link{
  width:var(--senior-touch) !important;
  height:var(--senior-touch) !important;
  min-width:var(--senior-touch);
  min-height:var(--senior-touch);
  border-radius:17px !important;
  font-size:28px !important;
}

/* เมนูด้านล่าง: ใหญ่ อ่านง่าย แตะง่าย */
.bottom-nav{
  left:10px;
  right:10px;
  height:84px !important;
  bottom:calc(var(--safe-bottom) + 8px);
  border-radius:25px;
  padding:6px;
}
.bottom-nav a{
  min-width:0;
  min-height:70px;
  border-radius:19px;
  gap:4px !important;
}
.bottom-nav span{
  font-size:27px !important;
}
.bottom-nav small{
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1.1;
}
.nav-mini-avatar{
  width:28px !important;
  height:28px !important;
  font-size:13px !important;
}

/* Radar */
.live-radar{
  width:min(92vw,500px) !important;
}
.live-person{
  width:66px !important;
  height:66px !important;
}
.live-person-avatar{
  inset:4px !important;
  border-width:3px !important;
}
.live-person-distance{
  top:62px !important;
  min-width:54px !important;
  max-width:84px !important;
  padding:5px 8px !important;
  font-size:12px !important;
  line-height:1.15 !important;
}
.radius-bar{
  bottom:calc(var(--safe-bottom) + 102px) !important;
  gap:6px !important;
  padding:7px !important;
  border-radius:20px !important;
  max-width:calc(100vw - 20px);
}
.radius-btn{
  min-height:46px;
  padding:10px 14px !important;
  font-size:14px !important;
  border-radius:14px !important;
}

/* รายชื่อผู้ใช้ */
.friends-head{
  height:108px !important;
  padding-left:16px;
  padding-right:16px;
}
.friend-list{
  height:calc(100% - 108px) !important;
  padding:10px 12px 0 !important;
  gap:10px !important;
}
.friend-row{
  min-height:94px !important;
  height:94px !important;
  flex:0 0 94px !important;
  padding:12px !important;
  gap:13px !important;
  border-radius:22px !important;
}
.avatar{
  width:64px !important;
  height:64px !important;
  font-size:24px !important;
}
.friend-info strong{
  font-size:20px !important;
  line-height:1.2;
}
.friend-info small{
  margin-top:5px;
  font-size:14px !important;
}
.distance{
  font-size:14px !important;
  font-weight:900 !important;
  white-space:nowrap;
}
.chat-button{
  min-width:64px;
  min-height:52px;
  padding:12px 14px !important;
  border-radius:16px !important;
  font-size:16px !important;
}

/* หน้าแชทรวม */
.chat-list{
  height:calc(100% - 108px) !important;
  padding:8px 12px 18px !important;
}
.chat-list-row{
  min-height:94px !important;
  gap:14px !important;
  padding:12px 8px !important;
}
.chat-list-avatar{
  width:64px !important;
  height:64px !important;
  font-size:23px !important;
}
.chat-list-title strong{
  font-size:20px !important;
}
.chat-list-title time{
  font-size:13px !important;
}
.chat-list-preview{
  margin-top:6px !important;
  font-size:15px !important;
}
.chat-list-preview b{
  min-width:26px !important;
  height:26px !important;
  font-size:12px !important;
}

/* ห้องแชท */
.chat-head{
  min-height:90px !important;
  padding-left:12px !important;
  padding-right:12px !important;
}
.chat-head-avatar{
  width:54px !important;
  height:54px !important;
  font-size:20px !important;
}
.chat-head-copy strong{
  font-size:20px !important;
}
.chat-head-copy small{
  font-size:14px !important;
}
.chat-messages{
  padding:16px 12px 22px !important;
}
.chat-bubble{
  max-width:min(86%,680px) !important;
  padding:12px 14px 8px !important;
  border-radius:20px !important;
}
.chat-body{
  font-size:18px !important;
  line-height:1.55 !important;
}
.chat-meta{
  margin-top:5px !important;
  font-size:11px !important;
}
.chat-composer{
  grid-template-columns:1fr 56px !important;
  gap:9px !important;
  padding:10px 10px calc(var(--safe-bottom) + 10px) !important;
}
.chat-composer textarea{
  min-height:54px !important;
  max-height:130px !important;
  padding:14px 16px !important;
  border-radius:20px !important;
  font-size:18px !important;
  line-height:1.4;
}
.chat-composer button{
  width:56px !important;
  height:56px !important;
  font-size:23px !important;
}

/* หน้าโปรไฟล์ */
.profile-edit-page{
  padding-left:18px !important;
  padding-right:18px !important;
}
.profile-editor{
  max-width:520px !important;
}
.editable-photo{
  width:132px !important;
  height:132px !important;
}
.photo-picker{
  min-height:52px;
  padding:12px 20px !important;
  font-size:16px !important;
}
.profile-field label{
  font-size:18px !important;
}
.profile-field input{
  height:62px !important;
  font-size:19px !important;
}
.profile-field small,
.identity-note p{
  font-size:14px !important;
}
.identity-note strong{
  font-size:17px !important;
}
.main-button{
  min-height:64px;
  font-size:19px !important;
}
.logout-button{
  min-height:54px;
  font-size:16px !important;
}

/* Check-in */
.checkin-card{
  max-width:520px !important;
}
.checkin-card h1{
  font-size:42px !important;
}
.checkin-card p{
  max-width:460px !important;
  font-size:19px !important;
  line-height:1.5;
}
.status{
  font-size:15px !important;
  line-height:1.55 !important;
}

/* ข้อความว่าง/คำอธิบาย */
.empty-state,
.chat-empty small,
.chat-loading,
.chat-first-note{
  font-size:15px !important;
  line-height:1.55;
}

/* มือถือจอแคบยังต้องไม่ล้น */
@media(max-width:390px){
  .bottom-nav small{font-size:13px !important}
  .radius-btn{padding:9px 10px !important;font-size:13px !important}
  .friend-row{padding:10px !important}
  .avatar{width:58px !important;height:58px !important}
  .friend-info strong{font-size:18px !important}
  .chat-button{min-width:58px;padding:10px !important;font-size:15px !important}
  .live-person{width:60px !important;height:60px !important}
  .live-person-distance{top:57px !important}
}


/* ===== 39GO CHAT FIXED HEADER V2.6.2 ===== */
.chat-page{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100dvh !important;
  min-height:100dvh !important;
  max-height:100dvh !important;
  display:grid !important;
  grid-template-rows:auto minmax(0,1fr) auto !important;
  overflow:hidden !important;
}

/* แถบคนที่กำลังคุยด้วยอยู่บนสุดตลอด */
.chat-head{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  z-index:30 !important;
  width:100% !important;
  min-height:92px !important;
  flex:0 0 auto !important;
  align-items:center !important;
  padding-top:calc(var(--safe-top) + 10px) !important;
  padding-bottom:10px !important;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* ไม่มีปุ่มย้อนกลับในหน้าแชท */
.chat-head .back-link{
  display:none !important;
}

/* เลื่อนเฉพาะข้อความ */
.chat-messages{
  min-height:0 !important;
  height:auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;
  padding-top:16px !important;
  padding-bottom:20px !important;
}

/* ช่องพิมพ์คงอยู่ด้านล่างตลอด */
.chat-composer{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  z-index:30 !important;
  width:100% !important;
  flex:0 0 auto !important;
  box-shadow:0 -6px 18px rgba(0,0,0,.05);
}

/* หน้ารวมแชทใช้เมนูล่างนำทางอยู่แล้ว จึงไม่ต้องมีปุ่มย้อนกลับ */
.chat-list-head{
  padding-left:22px !important;
}
.chat-list-head .back-link{
  display:none !important;
}


/* ===== CHAT FIXED HEADER BACK BUTTON V2.6.3 ===== */
.chat-head{
  gap:10px !important;
}
.chat-back-button{
  flex:0 0 46px;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  color:var(--ink);
  font-size:34px;
  line-height:1;
  font-weight:500;
  box-shadow:0 5px 14px rgba(0,0,0,.05);
}
html[data-theme="night"] .chat-back-button{
  background:rgba(255,255,255,.07);
}
.chat-back-button:active{
  transform:scale(.96);
}


/* ===== CHAT BACK TO CHATS V2.6.4 ===== */
.chat-back-button{
  text-decoration:none;
}


/* ===== 39GO CHAT NAV BADGE V2.6.5 ===== */
.nav-chat-link{
  position:relative;
}
.nav-chat-wrap{
  position:relative;
  display:inline-grid;
  place-items:center;
  width:32px;
  height:28px;
}
.nav-chat-icon{
  position:relative;
  width:24px;
  height:18px;
  border-radius:11px;
  border:2px solid currentColor;
  box-sizing:border-box;
  opacity:.92;
}
.nav-chat-icon::after{
  content:"";
  position:absolute;
  left:4px;
  bottom:-6px;
  width:10px;
  height:10px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  border-bottom-left-radius:9px;
  transform:skewX(-18deg) rotate(-6deg);
  background:transparent;
  box-sizing:border-box;
}
.nav-chat-badge{
  position:absolute;
  top:-5px;
  right:-8px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#ff5a4f;
  color:#fff;
  font-size:10px !important;
  line-height:1;
  font-weight:900;
  box-shadow:0 4px 10px rgba(255,90,79,.35);
}
.nav-chat-badge.is-hidden{
  display:none;
}
.bottom-nav a.active .nav-chat-icon{
  opacity:1;
}


/* ===== 39GO CHAT EMOJI V2.6.6 ===== */
.chat-composer-wrap{
  position:relative;
  z-index:31;
  background:var(--nav);
}
.chat-composer{
  grid-template-columns:50px 1fr 56px !important;
}
.emoji-toggle-btn{
  width:50px !important;
  height:54px !important;
  border:0 !important;
  border-radius:18px !important;
  background:rgba(255,178,28,.12) !important;
  color:#e99300 !important;
  font-size:27px !important;
  box-shadow:none !important;
}
.emoji-picker{
  position:absolute;
  left:10px;
  right:10px;
  bottom:calc(100% + 6px);
  max-height:min(330px,46vh);
  overflow:hidden;
  border-radius:22px;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:0 -16px 40px rgba(0,0,0,.16);
  z-index:60;
}
.emoji-picker.hidden{
  display:none;
}
.emoji-picker-head{
  height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px 0 16px;
  border-bottom:1px solid var(--line);
}
.emoji-picker-head strong{
  font-size:17px;
}
.emoji-picker-head button{
  width:38px;
  height:38px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--muted);
  font-size:28px;
}
.emoji-grid{
  max-height:calc(min(330px,46vh) - 50px);
  overflow-y:auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
  padding:10px;
  -webkit-overflow-scrolling:touch;
}
.emoji-grid button{
  min-width:0;
  height:52px;
  border:0;
  border-radius:14px;
  background:transparent;
  font-size:29px;
  line-height:1;
}
.emoji-grid button:active{
  background:rgba(255,178,28,.15);
  transform:scale(.92);
}
html[data-theme="night"] .emoji-toggle-btn{
  background:rgba(255,178,28,.10) !important;
}
@media(min-width:600px){
  .emoji-grid{
    grid-template-columns:repeat(8,1fr);
  }
}


/* ===== 39GO CHAT IMAGE V2.6.7 ===== */
.chat-composer{
  grid-template-columns:50px 50px 1fr 56px !important;
}
.chat-image-btn{
  width:50px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(73,155,255,.11);
  color:#3f8eea;
  font-size:27px;
  font-weight:900;
  cursor:pointer;
}
.chat-image-btn:active{
  transform:scale(.96);
}
.chat-image-open{
  display:block;
  border:0;
  padding:0;
  margin:0 0 7px;
  background:transparent;
  border-radius:16px;
  overflow:hidden;
  max-width:min(68vw,360px);
  cursor:pointer;
}
.chat-image-open img{
  display:block;
  width:100%;
  max-height:360px;
  object-fit:cover;
}
.chat-bubble:has(.chat-image-open){
  padding:6px 6px 7px !important;
}
.chat-bubble:has(.chat-image-open) .chat-meta{
  padding:0 5px 1px;
}
.chat-image-viewer{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.88);
}
.chat-image-viewer.show{
  display:grid;
}
.chat-image-viewer img{
  max-width:100%;
  max-height:88dvh;
  object-fit:contain;
  border-radius:16px;
}
.chat-image-viewer button{
  position:absolute;
  top:calc(env(safe-area-inset-top) + 14px);
  right:14px;
  width:48px;
  height:48px;
  border:0;
  border-radius:16px;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:32px;
}
@media(max-width:390px){
  .chat-composer{
    grid-template-columns:46px 46px 1fr 54px !important;
  }
  .emoji-toggle-btn,
  .chat-image-btn{
    width:46px !important;
  }
}


/* ===== 39GO CHAT REACTIONS V2.7.0 ===== */
.chat-bubble-row{
  position:relative;
  padding-bottom:14px;
}
.chat-bubble{
  position:relative;
  -webkit-user-select:none;
  user-select:none;
}
.chat-body{
  -webkit-user-select:text;
  user-select:text;
}
.chat-image-open,
.chat-image-open img{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}
.message-react-trigger{
  position:absolute;
  bottom:-15px;
  width:30px;
  height:30px;
  border:1px solid var(--line);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--card);
  color:var(--muted);
  font-size:17px;
  line-height:1;
  box-shadow:0 4px 12px rgba(0,0,0,.10);
  opacity:.9;
}
.chat-bubble-row.mine .message-react-trigger{
  left:-36px;
}
.chat-bubble-row.theirs .message-react-trigger{
  right:-36px;
}
.message-reactions{
  position:absolute;
  bottom:-3px;
  display:flex;
  gap:4px;
  z-index:4;
}
.chat-bubble-row.mine .message-reactions{
  right:8px;
}
.chat-bubble-row.theirs .message-reactions{
  left:8px;
}
.message-reactions button{
  height:27px;
  min-width:34px;
  padding:2px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  background:var(--card);
  color:var(--ink);
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}
.message-reactions button.mine{
  border-color:var(--orange);
  background:#fff0cf;
}
.message-reactions span{
  font-size:16px;
}
.message-reactions b{
  font-size:10px;
}
.message-reaction-picker{
  position:fixed;
  z-index:2500;
  left:50%;
  bottom:calc(env(safe-area-inset-bottom) + 90px);
  transform:translateX(-50%);
  width:min(94vw,430px);
  padding:8px;
  border-radius:24px;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:0 18px 50px rgba(0,0,0,.24);
}
.message-reaction-picker.hidden{
  display:none;
}
.reaction-choice-row{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:5px;
}
.reaction-choice-row button{
  min-width:0;
  height:52px;
  border:0;
  border-radius:16px;
  background:transparent;
  font-size:28px;
}
.reaction-choice-row button:active{
  transform:scale(.9);
  background:rgba(255,178,28,.14);
}
@media(max-width:390px){
  .reaction-choice-row button{
    height:48px;
    font-size:25px;
  }
  .message-react-trigger{
    width:28px;
    height:28px;
  }
}


/* ===== 39GO CALL V2.8.0 ===== */
.chat-call-button{
  flex:0 0 50px;
  width:50px;
  height:50px;
  border:0;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:rgba(48,199,112,.13);
  color:#1aab5e;
  font-size:27px;
  font-weight:900;
}
.chat-call-button:active{transform:scale(.95)}
.voice-call-overlay{
  position:fixed;
  inset:0;
  z-index:4000;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 50% 25%,rgba(74,202,255,.23),transparent 35%),
    radial-gradient(circle at 50% 80%,rgba(255,176,46,.18),transparent 42%),
    rgba(10,12,18,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.voice-call-overlay.hidden{display:none}
.voice-call-card{
  width:min(100%,430px);
  min-height:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-align:center;
}
.voice-call-avatar{
  width:138px;
  height:138px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#735bff,#2fd8ff 55%,#ffb13b);
  box-shadow:0 0 0 10px rgba(255,255,255,.06),0 18px 55px rgba(0,0,0,.25);
  font-size:42px;
  font-weight:900;
}
.voice-call-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.voice-call-card>strong{
  margin-top:24px;
  font-size:28px;
  line-height:1.2;
}
.voice-call-status{
  margin-top:8px;
  font-size:17px;
  color:rgba(255,255,255,.72);
}
.voice-call-timer{
  min-height:28px;
  margin-top:7px;
  font-size:17px;
  font-variant-numeric:tabular-nums;
  color:#fff;
}
.voice-call-actions{
  width:100%;
  display:flex;
  justify-content:center;
  gap:34px;
  margin-top:56px;
}
.voice-call-actions.hidden{display:none}
.call-action{
  width:92px;
  border:0;
  background:transparent;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  font-weight:900;
}
.call-action span{
  width:68px;
  height:68px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:28px;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.call-action small{
  font-size:14px;
  color:#fff;
}
.call-action.accept span{background:#31c96f}
.call-action.reject span{background:#f05252}
.call-action.neutral span{background:rgba(255,255,255,.16)}
.call-action.neutral.active span{background:#f3a000}
#voiceCallRemoteAudio{display:none}
@media(max-width:390px){
  .voice-call-avatar{width:122px;height:122px}
  .voice-call-card>strong{font-size:25px}
  .voice-call-actions{gap:22px}
}


/* ===== 39GO CALL MODERN PHONE ICON V2.8.1 ===== */
.chat-call-button{
  background:rgba(46,204,113,.12) !important;
  color:#20b866 !important;
}
.call-phone-icon{
  width:25px;
  height:25px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.chat-call-button .call-phone-icon{
  width:26px;
  height:26px;
}
.call-action-icon{
  width:68px !important;
  height:68px !important;
  border-radius:50%;
  display:grid !important;
  place-items:center;
  background:#31c96f;
  color:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.call-action-icon .call-phone-icon{
  width:28px;
  height:28px;
}
.call-action.accept > span.call-action-icon{
  background:#31c96f !important;
}


/* ===== 39GO REACTION CLEAN UI V2.8.2 ===== */
/* Reaction picker is opened by press-and-hold only.
   Do not show a smiley button beside every message. */
.message-react-trigger{
  display:none !important;
}
.chat-bubble-row{
  padding-bottom:14px;
}


/* ===== 39GO iOS PUSH V2.9.0 ===== */
.push-card{
  margin-top:22px;
  padding:14px;
  display:grid;
  grid-template-columns:54px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--card);
}
.push-card-icon{
  width:54px;
  height:54px;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:#fff0cf;
  font-size:26px;
}
.push-card-copy{
  min-width:0;
}
.push-card-copy strong,
.push-card-copy small{
  display:block;
}
.push-card-copy strong{
  font-size:18px;
}
.push-card-copy small{
  margin-top:4px;
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
}
.push-card button{
  grid-column:1/-1;
  min-height:54px;
  border:0;
  border-radius:16px;
  background:linear-gradient(180deg,#ffc44f,#f39a00);
  color:#fff;
  font-size:17px;
  font-weight:900;
}
.push-card button:disabled{
  opacity:.65;
}


/* ===== 39GO CHAT MESSAGE ACTIONS V2.10.0 ===== */
.message-action-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-top:7px;
  padding-top:7px;
  border-top:1px solid var(--line);
}
.message-action-row button{
  min-width:0;
  min-height:48px;
  border:0;
  border-radius:14px;
  padding:7px 5px;
  background:rgba(127,127,127,.08);
  color:var(--ink);
  font-size:17px;
  font-weight:800;
}
.message-action-row button span{
  display:block;
  margin-top:2px;
  font-size:11px;
}
.message-action-row button.danger{ color:#d84a42; }
.message-action-row button:disabled{ opacity:.35; }

.chat-reply-bar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 11px;
  border-top:1px solid var(--line);
  background:var(--nav);
}
.chat-reply-bar.hidden{ display:none; }
.chat-reply-copy{
  min-width:0;
  flex:1;
  padding-left:9px;
  border-left:4px solid var(--orange);
}
.chat-reply-copy strong{
  display:block;
  font-size:13px;
  color:var(--orange);
}
.chat-reply-copy span{
  display:block;
  margin-top:2px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:14px;
  color:var(--muted);
}
.chat-reply-bar button{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:rgba(127,127,127,.1);
  color:var(--ink);
  font-size:25px;
}

.chat-reply-reference{
  margin:-2px -2px 8px;
  padding:7px 9px;
  border-left:4px solid rgba(255,255,255,.68);
  border-radius:9px;
  background:rgba(0,0,0,.08);
  overflow:hidden;
}
.chat-bubble-row.theirs .chat-reply-reference{
  border-left-color:var(--orange);
  background:rgba(127,127,127,.08);
}
.chat-reply-reference small{
  display:block;
  margin-bottom:2px;
  font-size:10px;
  font-weight:900;
  opacity:.75;
}
.chat-reply-text{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:12px;
  line-height:1.35;
}
.chat-reply-reference.unavailable{ opacity:.6; }

.chat-unsent{
  padding:4px 2px;
  font-size:13px;
  font-style:italic;
  opacity:.72;
}
.chat-bubble-row.mine .chat-unsent{
  color:rgba(255,255,255,.86);
}


/* ===== 39GO CALL HISTORY + MISSED CALL V2.11.0 ===== */
.chat-call-event{
  display:flex;
  justify-content:center;
  margin:9px 0;
  padding:0 10px;
}
.chat-call-card{
  width:min(92%,420px);
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(127,127,127,.08);
}
.chat-call-event.missed .chat-call-card{
  border-color:rgba(220,70,70,.35);
  background:rgba(220,70,70,.07);
}
.chat-call-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(72,217,255,.12);
  color:#42ccef;
  font-size:24px;
  font-weight:900;
}
.chat-call-event.missed .chat-call-icon{
  background:rgba(220,70,70,.12);
  color:#e45e5e;
}
.chat-call-copy{
  min-width:0;
}
.chat-call-copy strong,
.chat-call-copy small{
  display:block;
}
.chat-call-copy strong{
  font-size:15px;
}
.chat-call-copy small{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
}
.chat-call-again{
  min-width:54px;
  min-height:38px;
  border:0;
  border-radius:12px;
  padding:0 12px;
  background:rgba(39,198,103,.14);
  color:#27c667;
  font-size:14px;
  font-weight:900;
}


/* ===== 39GO NOTIFICATION CENTER + MISSED CALL PUSH V2.12.0 ===== */
.chat-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.notification-bell{
  position:relative;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  text-decoration:none;
  background:rgba(127,127,127,.08);
  font-size:22px;
}
.notification-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:22px;
  height:22px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#e34e4e;
  color:white;
  font-size:11px;
  font-weight:900;
  border:2px solid var(--nav);
}
.notification-badge.is-hidden{display:none}

.notifications-page{
  padding-bottom:92px;
}
.notification-list{
  padding:12px 14px 100px;
}
.notification-item{
  display:grid;
  grid-template-columns:50px 1fr;
  gap:11px;
  align-items:start;
  padding:13px 12px;
  margin:8px 0;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--ink);
  text-decoration:none;
}
.notification-item.unread{
  border-color:rgba(72,217,255,.36);
  background:rgba(72,217,255,.07);
}
.notification-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:rgba(127,127,127,.08);
  font-size:23px;
}
.notification-copy{
  min-width:0;
}
.notification-copy strong{
  display:block;
  font-size:16px;
}
.notification-copy p{
  margin:4px 0 3px;
  color:var(--ink);
  font-size:14px;
  line-height:1.4;
}
.notification-copy small{
  color:var(--muted);
  font-size:11px;
}


/* ===== 39GO CHAT LIVE PRESENCE V2.13.0 ===== */
.chat-peer-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.chat-peer-status{
  display:block;
  margin-top:4px;
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.chat-peer-status.online{
  color:#2bc96b;
}
.chat-peer-status.typing{
  color:#40c9e8;
}
.chat-peer-status.offline{
  color:var(--muted);
}


/* ===== 39GO SOCIAL SAFETY & FRIENDS V2.14.0 ===== */
.social-tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  padding:10px 12px 4px;
}
.social-tab{
  min-height:46px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--card);
  color:var(--muted);
  font-size:14px;
  font-weight:900;
}
.social-tab.active{
  color:var(--ink);
  border-color:rgba(72,217,255,.4);
  background:rgba(72,217,255,.08);
}
.social-tab b{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:3px;
  padding:0 5px;
  border-radius:999px;
  background:rgba(127,127,127,.12);
  font-size:11px;
}
.social-pane{display:none}
.social-pane.active{display:block}
.social-section-title{
  padding:14px 15px 4px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.social-user-row{
  align-items:center;
}
.social-row-actions{
  display:flex;
  gap:6px;
  align-items:center;
  margin-left:auto;
}
.social-mini-btn,
.social-more-btn{
  min-height:38px;
  border:0;
  border-radius:12px;
  padding:0 10px;
  font-size:12px;
  font-weight:900;
}
.social-mini-btn{
  background:rgba(72,217,255,.12);
  color:#25bfe2;
}
.social-mini-btn.accept{
  background:rgba(39,198,103,.14);
  color:#27c667;
}
.social-mini-btn.pending,
.social-mini-btn.ghost{
  background:rgba(127,127,127,.1);
  color:var(--muted);
}
.social-mini-btn.friends{
  background:rgba(39,198,103,.1);
  color:#27c667;
}
.social-more-btn{
  width:38px;
  padding:0;
  background:rgba(127,127,127,.08);
  color:var(--muted);
  letter-spacing:1px;
}

.privacy-card{
  margin-top:18px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--card);
}
.privacy-card-head strong,
.privacy-card-head small{
  display:block;
}
.privacy-card-head strong{font-size:18px}
.privacy-card-head small{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}
.privacy-field{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid rgba(127,127,127,.12);
}
.privacy-field span{
  font-size:14px;
  font-weight:800;
}
.privacy-field select{
  min-height:42px;
  max-width:160px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 9px;
  background:var(--nav);
  color:var(--ink);
  font-size:13px;
}
.privacy-save-btn,
.blocked-manage-btn{
  width:100%;
  min-height:48px;
  margin-top:14px;
  border:0;
  border-radius:14px;
  font-size:14px;
  font-weight:900;
}
.privacy-save-btn{
  background:linear-gradient(180deg,#48d9ff,#159bc0);
  color:#041016;
}
.blocked-manage-btn{
  background:rgba(127,127,127,.09);
  color:var(--ink);
}
.privacy-status{
  display:block;
  min-height:18px;
  margin-top:6px;
  text-align:center;
  color:#27c667;
}
.blocked-list{
  margin-top:10px;
}
.blocked-list.hidden{display:none}
.blocked-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-top:1px solid rgba(127,127,127,.12);
}
.blocked-row button{
  min-height:36px;
  border:0;
  border-radius:11px;
  padding:0 10px;
  background:rgba(220,70,70,.1);
  color:#dc4646;
  font-size:12px;
  font-weight:900;
}

@media (max-width:420px){
  .social-user-row{
    grid-template-columns:auto minmax(0,1fr);
  }
  .social-row-actions{
    grid-column:1/-1;
    width:100%;
    justify-content:flex-end;
  }
}


/* ===== 39GO SOCIAL FRIEND ICON UI + ACTION HOTFIX V2.14.1 ===== */
.social-user-row .friend-info{
  min-width:0;
  flex:1 1 auto;
}
.social-user-row .friend-info strong{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.social-row-actions{
  flex:0 0 auto;
  gap:5px;
}
.social-mini-btn.icon-only{
  width:40px;
  min-width:40px;
  height:40px;
  min-height:40px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:13px;
}
.social-mini-btn.icon-only svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.social-mini-btn.icon-only.ghost{
  font-size:24px;
  line-height:1;
}
.social-action-done{
  transform:scale(.94);
  opacity:.72;
}
@media (max-width:420px){
  .social-user-row{
    grid-template-columns:auto minmax(0,1fr) auto !important;
  }
  .social-row-actions{
    grid-column:auto !important;
    width:auto !important;
    justify-content:flex-end;
    flex-wrap:nowrap;
  }
  .social-row-actions .chat-button{
    min-width:48px;
    padding-left:9px;
    padding-right:9px;
  }
  .social-more-btn{
    width:36px;
    min-width:36px;
  }
}


/* ===== 39GO FRIEND TAB LIST FIX V2.14.2 ===== */
.friends-page[data-social-friends="1"]{
  display:flex;
  flex-direction:column;
  min-height:100dvh;
}
.friends-page[data-social-friends="1"] .social-tabs{
  flex:0 0 auto;
}
.friends-page[data-social-friends="1"] .social-pane{
  min-height:0;
  flex:1 1 auto;
  overflow:hidden;
}
.friends-page[data-social-friends="1"] .social-pane.active{
  display:flex;
  flex-direction:column;
}
.friends-page[data-social-friends="1"] .friend-list{
  height:auto !important;
  min-height:0;
  flex:1 1 auto;
  overflow-y:auto;
  padding-bottom:16px;
}
.friends-page[data-social-friends="1"] #socialRequestsPane{
  overflow-y:auto;
}
.friends-page[data-social-friends="1"] #socialRequestsPane .friend-list{
  flex:0 0 auto;
  overflow:visible;
}


/* ===== 39GO ACCEPTED FRIEND RENDER FIX V2.14.4 ===== */
#socialFriendsPane{
  min-height:0;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
}
#socialFriendsPane.active{
  display:block !important;
}
.accepted-friend-list{
  display:block !important;
  height:auto !important;
  min-height:120px;
  padding:8px 14px 110px;
  overflow:visible !important;
}
.accepted-friend-row{
  width:100%;
  min-height:74px;
  margin:0 0 8px;
  padding:10px;
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto auto;
  align-items:center;
  gap:9px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--card);
  box-shadow:0 6px 16px #b8821920;
}
.accepted-friend-copy{
  min-width:0;
}
.accepted-friend-copy strong{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:17px;
}
.accepted-friend-copy small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
}
.accepted-friend-chat{
  min-width:48px;
}
.social-avatar-with-fallback{
  position:relative;
}
.social-avatar-with-fallback .avatar-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}
.social-avatar-with-fallback img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
  background:var(--card);
}
@media (max-width:380px){
  .accepted-friend-row{
    grid-template-columns:46px minmax(0,1fr) auto auto;
    gap:6px;
    padding:8px;
  }
  .accepted-friend-row .avatar{
    width:46px;
    height:46px;
  }
  .accepted-friend-chat{
    min-width:42px;
    padding-left:8px;
    padding-right:8px;
  }
  .accepted-friend-row .social-more-btn{
    width:34px;
    min-width:34px;
  }
}


/* ===== 39GO FRIENDS FAST SERVER RENDER V2.14.5 ===== */
.accepted-friend-list[data-server-count]:not([data-server-count="0"]){
  min-height:74px;
}
.social-mini-btn:disabled{
  pointer-events:none;
  opacity:.55;
}


/* ===== 39GO SOCIAL FRIENDS JS SCOPE FIX V2.14.6 ===== */
.social-action-busy{
  opacity:.72;
}
.social-action-spinner{
  width:18px;
  height:18px;
  display:block;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:socialFriendSpin .55s linear infinite;
}
@keyframes socialFriendSpin{
  to{transform:rotate(360deg)}
}
