html,body{height:100%;overflow:hidden;}


.icon-spacer{width:40px;height:40px;display:inline-block;}
/* Neavo MVP v0.3 - WhatsApp-like Settings + Snap-like map feel (no labels) */

:root{
  /* unified modal header */
  --modalHeaderH: 72px;
  --modalHeaderPadY: 10px;
  --modalHeaderTitleSize: 26px;

  --bg:#0b0f16;
  --panel:#0f1623;
  --card:#121c2d;
  --muted:rgba(255,255,255,.62);
  --text:rgba(255,255,255,.92);
  --line:rgba(255,255,255,.10);
  --accent:#7c5cff;
  --danger:#ff4d4d;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{height:100%;overflow:hidden;margin:0;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(900px 700px at 90% 20%, rgba(52,211,153,.14), transparent 55%),
              var(--bg);
  color:var(--text);
}

.hidden{ display:none !important; }
.invis{ visibility:hidden !important; }

.topbar{
  position:fixed;
  top:0; left:0; right:0;
  height:58px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:0 12px;
  background:rgba(10,14,22,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:50;
  direction:ltr;
}
.topbar-side{ display:flex; align-items:center; gap:10px; }
.topbar-left{ justify-self:start; }
.topbar-right{ justify-self:end; }
.topbar-center{ justify-self:center; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.brand-logo{
  height:26px;
  width:auto;
  display:block;
  filter:none;
  opacity:1;
}


.top-btn{
  height:40px; width:40px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.top-btn:active{ transform: translateY(1px); }
.top-btn:hover{ background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.top-ic-svg{width:20px;height:20px;display:block;fill:currentColor;}
.top-ic{ font-size:18px; line-height:1; }

html[dir="rtl"] .topbar{ direction:ltr; } /* keep center stable in RTL */

.top-actions{ display:flex; align-items:center; gap:10px; }

.top-right{ display:flex; align-items:center; gap:10px; }

.top-icon{
  height:40px; min-width:40px;
  border:0;
  background:transparent;
  color:var(--text);
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.top-icon:active{ transform: translateY(1px); }
.top-icon .gear, .top-icon .user{ font-size:20px; }

.inv-ic{ font-size:18px; }

.icon-btn{
  height:40px; min-width:40px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.icon-btn:active{ transform: translateY(1px); }

.icon-btn.is-on{
  border-color: rgba(124,92,255,.35);
  background: rgba(124,92,255,.12);
  color: var(--accent);
}
.inv-ic svg{
  width:22px; height:22px;
  display:block;
}


.pill-btn{
  height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1;
  pointer-events:none;
}
.logo{
  font-weight:800;
  letter-spacing:.4px;
  font-size:16px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(124,92,255,.16);
  border:1px solid rgba(124,92,255,.30);
}

.main{position:fixed;top:58px;left:0;right:0;bottom:0;padding-top:0;height:auto;overflow:hidden;}

.view{ height:calc(100vh - 58px);
}
.map{ width:100%; height:100%; }

.leaflet-container{
  background: #f4f6fb;
}

/* Indigo night map (matches Neavo palette)
   IMPORTANT: avoid heavy CSS filters on raster tiles, because they can
   wipe out street details (roads/labels) and make tiles look “flat”.
   We tint using overlay layers below (see ::before/::after).
*/
#map.map-indigo .leaflet-container{
  background: #0b1030;
}
.leaflet-control-attribution{
  background: rgba(0,0,0,.35) !important;
  color: rgba(255,255,255,.7) !important;
}

.hud{
  position:fixed;
  top:68px;
  right:12px;
  left:auto;
  width:auto;
  pointer-events:none;

  z-index: 4000;
  color: #0a0e16;
}


.hud .badge{ color: #fff; pointer-events:auto; }
.hud-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.badge{
  pointer-events:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:6px 10px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.25);
  border-radius:999px;
}

.list-header{
  padding:14px 14px 8px;
  border-bottom:1px solid var(--line);
  background: rgba(10,14,22,.65);
  backdrop-filter: blur(10px);
  position:sticky;
  top:0;
  z-index:5;
}

#listView .list-header{ position:sticky; }
#listView .list-actions{
  position:absolute;
  right:14px;
  top:14px;
  padding:0;
}
.list-title{ font-size:18px; font-weight:800; }

.nearby{ padding:10px; display:flex; flex-direction:column; gap:10px; }
.person{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  cursor:pointer;
}
.person:active{ transform: translateY(1px); }
.person .avatar{
  width:44px; height:44px;
  /* Nearby avatars should be perfectly circular */
  border-radius:999px;
  background: rgba(124,92,255,.22);
  border:1px solid rgba(124,92,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

/* Ensure photos in the Nearby list are clipped to a circle */
.person .avatar .avatar-img{ border-radius:999px; }

.avatar{ position:relative; overflow:hidden; }
.avatar .avatar-img{ width:100%; height:100%; object-fit:cover; display:block; }
/* Compensate legacy crop guide padding so user photos fill circles */
.avatar .avatar-img.is-userpic,
.nmkr__img.is-userpic,
#ovAvatarImg.is-userpic,
#meAvatarImg.is-userpic{
  transform: scale(1.19);
  transform-origin: center;
}

.avatar .avatar-initials{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:700; }
.avatar .avatar-img.hidden{ display:none; }
.person .meta{ flex:1; }
.person .name{ font-weight:800; }
.person .sub{ color:var(--muted); font-size:12px; margin-top:2px; }
.person .dist{ color:rgba(255,255,255,.85); font-weight:700; font-size:12px; }

.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:5000;
}

.sheet{
  width:min(520px, 100%);
  border-radius: var(--radius);
  background: rgba(15,22,35,.95);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  padding:16px;
}
.sheet h2{ margin:0 0 8px; }
.muted{ color:var(--muted); line-height:1.45; }
.tiny{ font-size:12px; }

.check{
  display:flex;
  align-items:center;
  gap:10px;
  margin:12px 0 14px;
}
.check input{ width:18px; height:18px; }

.row{ display:flex; gap:10px; flex-wrap:wrap; }

.btn{
  height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn.primary{
  background: rgba(124,92,255,.25);
  border-color: rgba(124,92,255,.45);
}
.btn.danger{
  background: rgba(255,77,77,.18);
  border-color: rgba(255,77,77,.35);
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }

.btn.full{ width:100%; }

.danger-zone{
  border: 1px solid rgba(255, 80, 80, .22);
}
.danger-zone .card-head{
  margin-bottom:8px;

  color: rgba(255, 160, 160, .95);
}

details.dev{ 
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 10px;
}
details.dev summary{
  list-style: none;
  cursor: pointer;
}
details.dev summary::-webkit-details-marker{ display:none; }



.toast{
  position:fixed;
  bottom:18px;
  left:50%;
  transform: translateX(-50%);
  padding:10px 12px;
  border-radius:12px;
  background: rgba(0,0,0,.65);
  border:1px solid var(--line);
  backdrop-filter: blur(10px);
  /* Keep toasts above all sheets/modals (auth, settings, cropper, etc.) */
  z-index:99999;
  max-width:min(520px, 92vw);
  text-align:center;
}

.overlay{
  width:min(560px, 100%);
  border-radius: var(--radius);
  background: rgba(15,22,35,.96);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.overlay-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.15);
}
.avatar{
  width:44px;
  height:44px;
  border-radius:14px;
  background: rgba(124,92,255,.22);
  border:1px solid rgba(124,92,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
.avatar.circle{ border-radius:999px; }
.avatar.big{
  width:56px; height:56px;
  border-radius:999px;
}
.ov-title{ flex:1; }
.ov-name{ font-size:16px; font-weight:900; }
.ov-meta{ color:var(--muted); font-size:12px; margin-top:2px; }

.overlay-body{ padding:14px; display:flex; flex-direction:column; gap:12px; }
.kv{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px;
  margin-top:10px;
}
.k{ color:var(--muted); font-size:12px; margin-bottom:6px; }
.v{ font-weight:700; }
.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }

.socials{ display:flex; gap:10px; flex-wrap:wrap; }
.socials .sbtn{
  height:38px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}

.locked{
  padding:14px;
  border-bottom:1px solid var(--line);
  background: rgba(255,77,77,.10);
}
.locked-title{ font-weight:900; }
.locked-sub{ color:var(--muted); margin:6px 0 10px; font-size:12px; }
.locked-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.locked-actions .btn{ flex:1 1 180px; }

/* Locked banner buttons: keep multi-line labels centered inside the button (mobile-safe) */
#ovLockedBanner .locked-actions .btn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.15;
  white-space:normal;
  height:auto;
  min-height:44px;
  padding:12px 14px;
}

.settings{
  width:min(560px, 100%);
  height:75vh;
  max-height:min(92vh, 760px);
  border-radius: var(--radius);
  background: rgba(15,22,35,.98);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.settings-top{
  position: sticky;
  top: 0;
  z-index: 5;

  /* Use a 3-column grid so the title is truly centered in both RTL and LTR,
     regardless of the presence/width of left/right buttons. */
  display: grid;
  grid-template-columns: 44px 1fr 44px; /* left btn - title - right btn */
  align-items: center;

  gap: 10px;

  /* unified height + breathing room */
  height: auto;
  min-height: var(--modalHeaderH);
  padding: var(--modalHeaderPadY) 14px;

  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}

.settings-top .settings-title{
  grid-column: 2;
  justify-self: center;
  text-align: center;
  width: 100%;
  margin: 0;
}

.settings-top > .icon-btn:first-child{
  grid-column: 1;
  justify-self: start;
}

.settings-top > .icon-btn:last-child{
  grid-column: 3;
  justify-self: end;
}
.settings-title{ font-size: var(--modalHeaderTitleSize);
font-weight: 800;
text-align: center;
flex: 1;
user-select: none;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Auth modal header: titles can be long (esp. Arabic). Never ellipsis; allow wrapping. */
.settings.auth .settings-title{
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
  display: block;
  line-height: 1.2;
}

/* Mobile: allow long titles (e.g., "Create account via email") to wrap nicely */
@media (max-width: 600px){
  .settings-title{
    white-space: normal;
    text-overflow: unset;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.15;
  }
}
.settings-body{
  overflow:auto;
  padding:12px;
}

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding:12px;
  margin-bottom:12px;
}

.me-row{ display:flex; align-items:center; gap:12px; }
.me-meta{ flex:1; }
.me-name{ font-weight:900; }
.me-sub{ color:var(--muted); font-size:12px; margin-top:2px; }

.list{
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:visible;
}


/* Subscription actions layout */
.page[data-page="subscription"] .sub-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.page[data-page="subscription"] .sub-actions .btn.full{
  grid-column: 1 / -1;
}
@media (max-width: 420px){
  .page[data-page="subscription"] .sub-actions{
    grid-template-columns: 1fr;
  }
  .page[data-page="subscription"] .sub-actions .btn.full{
    grid-column: auto;
  }
}

/* Subscription feature list (UL) */
.page[data-page="subscription"] ul.list{
  border:none;
  background:transparent;
  padding:0;
  margin:10px 0 0;
  display:block;
  gap:0;
}
.page[data-page="subscription"] ul.list li{
  list-style:none;
  position:relative;
  padding-inline-start:18px;
  margin:8px 0;
}
.page[data-page="subscription"] ul.list li::before{
  content:"•";
  position:absolute;
  inset-inline-start:0;
  top:0;
}
.item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  text-align:right;
}
.item-title{ font-weight:900; }
.item-sub{ display:none; }
.item-arrow{ opacity:.8; font-weight:900; }

.section-title{
  margin:14px 2px 8px;
  color: rgba(255,255,255,.85);
  font-weight:900;
  font-size:13px;
  letter-spacing:.3px;
}

.field{ margin-top:10px; }
.field label{ display:block; color:var(--muted); font-size:12px; margin-bottom:6px; }

/* Social username labels: add platform official logos next to names */
.field.social-field label{
  display:flex;
  align-items:center;
  gap:8px;
}
.app-logo{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  flex: 0 0 18px;
}
.app-logo svg{
  width:14px;
  height:14px;
  display:block;
}
.field input, .field select, .field textarea{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
.field textarea{ resize:vertical; }

.switch{
  display:flex;
  align-items:center;
  gap:10px;
}
.switch input{ display:none; }
.switch .slider{
  width:48px; height:28px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.08);
  position:relative;
}
.switch .slider::after{
  content:"";
  position:absolute;
  top:3px; right:3px;
  width:22px; height:22px;
  border-radius:50%;
  background: rgba(255,255,255,.75);
  transition: transform .18s ease;
}
.switch input:checked + .slider{
  background: rgba(124,92,255,.28);
  border-color: rgba(124,92,255,.55);
}
.switch input:checked + .slider::after{ transform: translateX(-20px); }
.switch-text{ font-weight:800; }

.bullets{ margin:0; padding-right:18px; color:rgba(255,255,255,.86); }
.bullets li{ margin:8px 0; color:rgba(255,255,255,.86); }

/* Chevron glyph direction is controlled by JS per language (AR/EN).
   Do NOT mirror via CSS; it breaks RTL/LTR expectations. */
.chev{ font-size:18px; display:inline-block; }
.x{ font-size:22px; line-height:1; }

/* Marker styling for Leaflet divIcon */
.neavo-marker{ background:transparent; border:0; }
.neavo-marker .pin{
  width:38px; height:48px;
  position:relative;
  transform: translateZ(0);
}
.neavo-marker .pin::before{
  content:"";
  position:absolute; left:50%; top:0;
  width:38px; height:38px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,92,255,.16), 0 10px 24px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.82);
}
.neavo-marker .pin::after{
  content:"";
  position:absolute; left:50%; top:26px;
  width:0; height:0;
  transform: translateX(-50%);
  border: 11px solid transparent;
  border-top-color: var(--accent);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}
.neavo-marker .pin-inner{
  position:absolute; left:50%; top:6px;
  width:26px; height:26px;
  transform: translateX(-50%);
  border-radius:50%;
  overflow:hidden;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
}
.neavo-marker .pin-img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.neavo-marker .pin-initials{
  font-weight:900;
  font-size:12px;
  letter-spacing:.5px;
  color: rgba(255,255,255,.95);
}

/* Profile avatar circle */
.hidden-file{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.avatar-circle{
  width:88px; height:88px;
  border-radius:999px;
  background: rgba(124,92,255,.22);
  border:1px solid rgba(124,92,255,.38);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:22px;
  margin:0 auto;
  cursor:pointer;
  background-size:cover;
  background-position:center;
}

.avatar-circle{ position:relative; overflow:hidden; }
.avatar-circle .avatar-img{ width:100%; height:100%; object-fit:cover; border-radius:999px; display:block; }
.avatar-circle .avatar-img.hidden{ display:none; }
.avatar-circle .avatar-initials{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:800; }
.avatar-circle.has-img{ border-color: rgba(255,255,255,.18); }

/* If a user photo exists, remove colored ring/background so the photo fills edge-to-edge */
.avatar-circle[data-has-photo="1"]{
  background: transparent;
  border: 0;
}

.profile-avatar-wrap{ text-align:center; position:relative; }

.divider{ display:flex; align-items:center; justify-content:center; gap:0; margin:14px 0; color:rgba(255,255,255,.65); font-size:12px; font-weight:800; letter-spacing:.2px; }
.divider:before,.divider:after{ content:""; flex:1; height:1px; background:var(--line); border-radius:2px; }
.divider span{ padding:0 12px; }


.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width:420px){ .grid2{ grid-template-columns:1fr; } }

.card-head{
  margin-bottom:8px;
 font-weight:900; margin-bottom:10px; color:rgba(255,255,255,.92); }

.auth-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.auth-grid .btn{ width:100%; }

#listView{ background: var(--bg); }

.nearby{ background: var(--bg); }


/* --- Settings v0.6 additions --- */
.me-btn{
  width:100%;
  background:transparent;
  border:0;
  padding:0;
  color:inherit;
  cursor:pointer;
  text-align:right;
}
.btn.danger{
  background: rgba(255,77,77,.14);
  border-color: rgba(255,77,77,.35);
}
.btn.ghost{
  background: rgba(255,255,255,.02);
}

/* Center icon + label in the email chooser button (iOS Safari baseline quirk fix) */
#btnChooserEmail{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  line-height:1;
}
#btnChooserEmail .social-ico{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
#btnChooserEmail .social-label{
  display:block;
  line-height:1;
}
.article-body{
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.7;
}
.article-body h3{
  margin: 10px 0 6px;
  font-size: 14px;
}
.article-body p{ margin: 8px 0; }
.article-body ul{ margin: 8px 0; padding-right: 18px; }


/* --- Auth (Login/Signup) minimal styles --- */
.link-btn{
  width:100%;
  background:transparent;
  border:0;
  padding:10px 8px;
  color: var(--accent);
  font-weight:700;
  cursor:pointer;
}
.link-btn:hover{ opacity:.9; }
.linkish{
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.linkish:hover{ text-decoration: underline; }

.legal-inline{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:6px;
  line-height:1.6;
}
.legal-inline .legal-text{
  color: rgba(255,255,255,.75);
  font-weight:700;
}


.check-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 10px 0 14px;
  color: var(--text);
  font-size: 13px;
}
.check-row input{ width:18px; height:18px; }

/* --- Minimal UI fixes (Login + header icons) --- */
.settings-top .icon-btn{
  height:32px;
  min-width:32px;
  border-radius:10px;
}
.settings-top .chev{ font-size:16px; }
.settings-top .x{ font-size:20px; }

.auth-view .btn{
  width:100%;
  display:block;
  height:40px;
}
.auth-view .btn.primary{ margin-top:12px; }
.auth-view .link-btn{ text-align:center; padding:8px 8px; }

/* --- Social buttons (Auth / Signup) --- */
.social-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.btn.social-btn{
  height:44px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.2px;
  position:relative;
  text-align:center;
  padding:0 16px;
}

/* Ensure social button label is perfectly centered on mobile (no baseline drop) */
.btn.social-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.btn.social-btn .social-ico{
  position:static;
  left:auto;
  top:auto;
  transform:none;
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.btn.social-btn .social-label{ display:inline-block; }
.btn.social-btn .social-soon{
  display:inline-block;
  margin-inline-start:8px;
  font-size:12px;
  opacity:.78;
  font-weight:800;
}

/* brand-ish tweaks (subtle, still within Neavo theme) */
.btn.social-btn.apple{ background: rgba(255,255,255,.10); }
.btn.social-btn.facebook{ background: rgba(255,255,255,.07); }
.btn.social-btn.google{ background: rgba(255,255,255,.07); }

/* Fix: Center text vertically on mobile (some browsers render inline text lower)
   and keep icon + label perfectly centered like Picsart. */
.btn.social-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.btn.social-btn .social-ico{
  position:static;
  left:auto;
  top:auto;
  transform:none;
  width:22px;
  height:22px;
}

.btn.social-btn .social-label,
.btn.social-btn .social-soon{
  line-height:1;
}

/* =========================
   Neavo Pin Marker (SVG)
========================= */
.neavo-marker{ background:transparent !important; border:0 !important; }
.neavo-marker .pin-svg{
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)) drop-shadow(0 0 0 rgba(0,0,0,0));
}
.neavo-marker:not(.premium-marker) .pin-body{ fill: rgba(255,255,255,.98); stroke: rgba(10,14,30,.55); stroke-width: 1.2; }
.premium-marker .pin-body{ /* fill comes from SVG gradient */ }
.neavo-marker .pin-ring{ fill: rgba(255,255,255,.92); stroke: rgba(10,14,30,.25); stroke-width: 1.2; }
.neavo-marker .pin-fallback{
  fill: rgba(0,0,0,.55);
  font-size: 12px;
  font-weight: 900;
}




/* ===== Map indigo tint overlay ===== */
#map{ position: relative; 
height:100%; width:100%;}
#mapTint{
  position:absolute;
  inset:0;
  pointer-events:none;
  display:none;
  z-index:250; /* above tiles, below markers */
  background:
    radial-gradient(1200px 800px at 20% 15%, rgba(120,120,255,.28), rgba(0,0,0,0)),
    radial-gradient(900px 700px at 80% 70%, rgba(80,90,255,.20), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(38,44,120,.22), rgba(8,10,26,.40));
  mix-blend-mode: screen;
  opacity: .95;
}
#map.map-indigo #mapTint{ display:block; }
/* ===== Premium highlighting (demo) ===== */
.premium-badge{
  display:inline-flex;
  align-items:center;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  background: rgba(212,175,55,.18);
  border: 1px solid rgba(212,175,55,.38);
  color: rgba(255,232,170,.95);
  vertical-align: middle;
}

/* Premium marker glow (gold shimmer handled by SVG gradient) */
.premium-marker .pin-svg{
  animation: goldGlow 2.4s linear infinite;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)) drop-shadow(0 0 12px rgba(212,175,55,.25));
}
@keyframes goldGlow{
  0%   { filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(212,175,55,.18)); }
  50%  { filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)) drop-shadow(0 0 16px rgba(255,214,102,.35)); }
  100% { filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(212,175,55,.18)); }
}

/* Premium cards in Nearby */
.person.premium{
  border-color: rgba(212,175,55,.70) !important;
  background: linear-gradient(90deg,
    rgba(212,175,55,.46),
    rgba(255,215,106,.28),
    rgba(255,242,181,.42),
    rgba(212,175,55,.32)
  );
  background-size: 280% 280%;
  animation: goldCard 2.2s linear infinite, goldPulse 1.7s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 18px rgba(212,175,55,.22);
}
@keyframes goldPulse{
  0%{ box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 14px rgba(212,175,55,.22); }
  50%{ box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 34px rgba(255,215,106,.55); }
  100%{ box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 14px rgba(212,175,55,.22); }
}

@keyframes goldCard{
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}


/* =========================
   Avatar Viewer (Instagram-like)
========================= */
#avatarViewer{
  backdrop-filter: blur(6px);
}
.avatar-viewer{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.avatar-viewer .close{
  position:absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  font-size: 26px;
  line-height: 40px;
}
.avatar-viewer .big-circle{
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  border-radius: 999px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 32px rgba(0,0,0,.35);
}
.avatar-viewer .big-circle img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}


/* Ensure overlays are always above Leaflet panes */
#profileOverlay.backdrop{ z-index:5000; }
#avatarViewer.backdrop{ z-index:6000; }
/* Ensure cropper modal always appears above Settings/Profile layers */
#cropperModal.backdrop{ z-index:9999; }
.overlay{ position:relative; z-index:5100; }


/* Indigo Map Tint Overlay
   - ::before darkens slightly to match top bar
   - ::after adds indigo tint
   We avoid blend modes (browser/device differences) and keep roads visible.
*/
#map.map-indigo{ position:relative; }
#map.map-indigo::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.18);
  pointer-events:none;
  z-index: 399;
}
#map.map-indigo::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(34, 48, 120, 0.28); /* indigo tint */
  pointer-events:none;
  z-index: 401;
}



/* =========================
   NEAVO - INDIGO MAP MATCH TOPBAR (FINAL)
   ========================= */

.map-wrap{ position:relative; height:100%; }
#map{ position:absolute; inset:0; 
height:100%; width:100%;}
#mapTint{
  position:absolute;
  inset:0;
  pointer-events:none;
  display:none;
  z-index:250; /* above tiles, below markers */
  /* Use the same base tone as the top bar, but keep roads visible */
  background:
    radial-gradient(900px 700px at 25% 20%, rgba(70,110,255,.18), rgba(0,0,0,0) 60%),
    radial-gradient(800px 700px at 80% 75%, rgba(40,80,210,.14), rgba(0,0,0,0) 65%),
    linear-gradient(180deg, rgba(10,14,22,.20), rgba(10,14,22,.62));
  mix-blend-mode: multiply;
  opacity: 1;
}

#map.map-indigo + #mapTint{ display:block; }

/* Hard-stop any old tile filters that wash out or crush detail */
#map .leaflet-tile,
#map .leaflet-tile-pane{
  filter:none !important;
  -webkit-filter:none !important;
}

/* Keep markers/controls above tint */
.leaflet-marker-pane,
.leaflet-popup-pane,
.leaflet-control-container{
  z-index:600 !important;
}

/* Match attribution to dark UI */
.leaflet-control-attribution{
  background: rgba(10,14,22,.55) !important;
  color: rgba(255,255,255,.7) !important;
}

/* =========================
   FINAL FIX (NO MARKER TINT)
   Put #mapTint inside Leaflet tilePane and keep it BELOW markerPane.
   ========================= */
#map .leaflet-tile-pane{ position:absolute; }

/* Override any older #mapTint rules above */
#map #mapTint{
  position:absolute !important;
  inset:0 !important;
  pointer-events:none !important;
  display:none !important;
  z-index: 5 !important; /* within tilePane only */

  /* Same tone as top bar (rgba(10,14,22,.78)) but keep roads visible */
  background:
    radial-gradient(900px 700px at 25% 20%, rgba(70,110,255,.18), rgba(0,0,0,0) 60%),
    radial-gradient(800px 700px at 80% 75%, rgba(40,80,210,.14), rgba(0,0,0,0) 65%),
    linear-gradient(180deg, rgba(10,14,22,.20), rgba(10,14,22,.62));

  mix-blend-mode: multiply !important;
  opacity: 1 !important;
}

#map.map-indigo #mapTint{ display:block !important; }

/* Ensure Leaflet marker pane stays above everything */
#map .leaflet-marker-pane,
#map .leaflet-popup-pane,
#map .leaflet-control-container{
  z-index: 600 !important;
}
.nmkr__avatar img {
    width: 100%!important;
    height: 100%!important;
}

/* =========================
   OPTION A: WHITE MAP FIX
   - Always show a normal light basemap
   - Never apply tints/overlays
   ========================= */
#mapTint{ display:none !important; }
#map.map-indigo::before,
#map.map-indigo::after{ display:none !important; }

/* =========================
   MAP: Calm + Cartoon (tiles only)
   - No labels handled by tiles (voyager_nolabels)
   - Cartoon-like feel via mild tile filtering (does NOT affect markers)
   ========================= */
#map{ background: #f4f6fb !important; 
height:100%; width:100%;}
#map.map-cartoon .leaflet-tile{
  /* calm, slightly illustrated look */
  filter: saturate(0.65) contrast(1.12) brightness(1.06) sepia(0.12);
}
#map.map-cartoon .leaflet-tile-container{ opacity: 0.98; }

/* =========================
   MARKERS: Global / Premium style
   ========================= */
.leaflet-marker-icon.neavo-marker-wrap{
  background: transparent !important;
  border: 0 !important;
}

.nmkr{
  width: 48px;
  height: 62px;
  position: relative;
  display: grid;
  place-items: center;
}

.nmkr__avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  display: grid;
  place-items: center;
  position: relative;
  border: 2px solid rgba(0,0,0,0.16);
  overflow: hidden; /* clip avatar image to the circle */
}

/* If the marker is showing a real user photo, remove the inner white ring */
.nmkr__avatar.has-pic{
  /* Keep a solid fill so the map/markers behind never show through */
  background: #ffffff;
  border: 0;
}

/* ring color per type */
.nmkr--free .nmkr__avatar{ outline: 3px solid rgba(73, 106, 255, 0.95); }
.nmkr--premium .nmkr__avatar{ outline: 3px solid #d4af37; }

.nmkr__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border-radius:inherit;
  object-fit:cover;
  display:block;
}

/* initials fallback (shows when image is SVG/avatar anyway, still fine) */
.nmkr__inits{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.0);
  pointer-events: none;
}

/* small locator dot */
.nmkr__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px; /* sits UNDER the marker */
  box-shadow: 0 10px 20px rgba(0,0,0,0.30);
  border: 2px solid rgba(255,255,255,0.92);
}

/* dot color per type (high contrast on light maps) */
.nmkr--free .nmkr__dot{ background: rgba(73, 106, 255, 0.98); }
.nmkr--premium .nmkr__dot{ background: #d4af37; }


/* premium badge */
.nmkr__badge{
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  background: radial-gradient(circle at 30% 30%, #fff2b5, #d4af37 55%, #7a5a12);
  color: #1a1205;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}


/* --- Marker visibility on light (calm) maps --- */
.nmkr--free .nmkr__avatar{
  box-shadow: 0 10px 22px rgba(0,0,0,0.28), 0 0 0 4px rgba(73, 106, 255, 0.92);
}
.nmkr--premium .nmkr__avatar{
  box-shadow: 0 10px 22px rgba(0,0,0,0.28), 0 0 0 4px rgba(212, 175, 55, 0.95);
}

/* dot slightly larger and clearer */
.nmkr__dot{
  width: 12px;
  height: 12px;
  bottom: -6px; /* sits UNDER the marker */
}


/* --- Option A: Calm, label-free, subtle "Snap-like" map (light) --- */
/* Style ONLY the tile images (base + overlay) so markers stay crisp. */
#map.map-calm .base-pane img.leaflet-tile{
  /* Gentle pastel, a touch of illustration. Not 'هوسة'. */
  filter: brightness(1.04) contrast(0.98) saturate(0.95) sepia(0.06) hue-rotate(-8deg);
  -webkit-filter: brightness(1.04) contrast(0.98) saturate(0.95) sepia(0.06) hue-rotate(-8deg);
}

/* Roads overlay: faint ink lines to make streets clear (no labels). */
#map.map-calm .roads-pane img.leaflet-tile{
  filter: grayscale(1) contrast(1.15) brightness(0.55);
  -webkit-filter: grayscale(1) contrast(1.15) brightness(0.55);
  mix-blend-mode: multiply;
  opacity: 0.22;
}

/* Ensure the map never flashes dark while tiles load */
#map.map-calm.leaflet-container{
  background: #f5f7fb !important;
}


/* =========================
   MAP ATTRIBUTION (Option B)
   Hidden until info tap
========================= */
.leaflet-control-attribution{
  display:none !important; /* we render our own panel */
}
.leaflet-control-zoom{
  z-index: 550;
}

.map-attrib-wrap{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index: 560;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  pointer-events:auto;
}
.map-attrib-btn{
  width:34px; height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  color: #1b255a;
  font-weight:800;
  line-height:34px;
  text-align:center;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.map-attrib-btn:hover{ filter: brightness(0.98); }

.map-attrib-panel{
  max-width: min(320px, calc(100vw - 28px));
  background: rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  color: rgba(0,0,0,.65);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.map-attrib-panel a{
  color: rgba(0,0,0,.72);
  text-decoration: underline;
}


/* ---- Settings: Language radios (non-destructive) ---- */
.radio-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-top:10px;
}
.radio-row input[type="radio"]{
  width:18px;
  height:18px;
}
.radio-meta{ display:flex; flex-direction:column; gap:2px; }
.radio-title{ font-weight:600; }
.radio-sub{ font-size:12px; opacity:0.75; }


/* === Neavo Settings UI fixes (v0_9_4_4 -> v0_9_4_6) === */
#settingsModal .item{ text-align:start; }
#settingsModal .item-title{ flex:1; text-align:start; }
#settingsModal .item-arrow{ margin-inline-start:12px; }
#settingsModal .item-sub{ display:none; } /* remove secondary descriptions */
#settingsModal .page:not([data-page="home"]) > .section-title{ display:none !important; } /* avoid duplicate titles under header */


/* Settings clean spacing */
.field .muted{ margin-top:8px; }
.card .muted{ margin-top:10px; }
.avatar-circle + .muted{ margin-top:10px; text-align:center; }


/* ===== Avatar Cropper ===== */
.cropper-sheet{ max-width: 420px; width: min(92vw, 420px); }
.cropper-sheet .sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.cropper-sheet .sheet-head h2{ margin:0; }
.cropper-sheet .sheet-head .icon-btn{
  /* Match the app's standard header X buttons */
  height:40px;
  min-width:40px;
}
.cropper-body{ display:flex; flex-direction:column; gap:12px; align-items:center; }
#cropCanvas{ width: 320px; height: 320px; border-radius: 16px; background: rgba(255,255,255,0.03); touch-action:none; }
.crop-controls{ width: 320px; display:flex; align-items:center; gap:10px; }
.crop-controls input[type="range"]{ flex:1; }
.row.end{ justify-content:flex-end; }
.gap{ gap:10px; }
.small{ font-size: 12px; }


/* Trial badge (Free taps) */
.tap-badge{
  pointer-events:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.08);
  color:inherit;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.tap-badge:hover{ background:rgba(255,255,255,0.12); }
.tap-badge:active{ transform:translateY(1px); }
.tap-badge.hidden{ display:none !important; }
.invis{ visibility:hidden !important; }

/* Profile name input row without inner save button */
.page[data-page="profile"] .field .row > input#realNameInput{
  flex:1 1 auto;
}


/* Make settings main avatar perfectly circular */
#meAvatar{ border-radius:999px !important; }
#meAvatar .avatar-img{ border-radius:999px !important; }

/* When the Settings main avatar has a real photo, remove the inner ring */
#meAvatar[data-has-photo="1"]{
  background: transparent !important;
  border: 0 !important;
}


/* HUD trial badge visibility on light map */
.hud .tap-badge{
  pointer-events:auto;
  background: rgba(10,14,22,.78);
  border-color: rgba(10,14,22,.22);
  color: #fff;
}
.hud .tap-badge:hover{ background: rgba(10,14,22,.86); }

.list-actions{ padding:8px 0 6px; display:flex; gap:8px; align-items:center; }

#mapView{height:100%;}


/* Nearby list scrolling (page stays fixed) */
#listView{ display:flex; flex-direction:column; overflow:hidden; }
#listView .nearby{ flex:1; overflow-y:auto; -webkit-overflow-scrolling: touch; }


/* Nearby scroll: allow internal scroll while keeping app frame fixed */
#listView{display:flex;flex-direction:column;height:100%;overflow:hidden;}
#listView .list-header{flex:0 0 auto;}
#nearbyList{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;}


/* --- FIX: avatars should fill circle with no inner white ring --- */
.nmkr__avatar{
  background: transparent !important;
  border: 0 !important;
}
#meAvatar{
  background: transparent !important;
  border: 0 !important;
}
/* Ensure the image always covers the avatar box */
#meAvatarImg, .nmkr__img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* --- FIX: Nearby list must be scrollable even when app frame is fixed --- */
#listView{ height: 100% !important; }
#nearbyList{
  min-height: 0; /* allow flex child to shrink and scroll */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}


/* Auth modal should shrink to content (avoid large empty area) */
.settings.auth{
  height:auto;
  max-height:92vh;
}


/* Inline field validation */
.field-error{
  margin-top:6px;
  font-size:12px;
  line-height:1.35;
  color: var(--danger);
  display:none;
}
.field-error.show{ display:block; }
.is-invalid{
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(255,77,77,.20);
}

/* ===== Report Modal ===== */
.report-modal.hidden{display:none}
.report-modal{position:fixed;inset:0;z-index:9999}
.report-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
}

/* Keep the report UI consistent with Neavo sheets (same glass look) */
.report-sheet{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15,22,35,.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.report-header{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: var(--modalHeaderH);
  padding: var(--modalHeaderPadY) 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.report-header h2{
  margin:0;
  font-size: var(--modalHeaderTitleSize);
  text-align:center;
  line-height:1.35;
  padding-top: 2px;
  padding-bottom: 2px;
  /* Reserve space for the close button so the title can stay centered */
  padding: 0 54px;
  width: 100%;
}
.report-close{
  position:absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.report-body{
  padding: 14px;
}

.report-options{display:grid;gap:10px;margin:8px 0 10px}
.report-options label{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}
.report-options input[type="radio"]{ width:18px; height:18px; }

.report-note.hidden{display:none}
#reportNote{
  width:100%;
  min-height:90px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  resize: vertical;
}

.report-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}
.report-thanks{text-align:center;padding:18px 8px}

/* Report buttons */
.report-btn{
  background: transparent;
  border: none;
  color: #ff6b6b;
  font-size: 14px;
  cursor: pointer;
}
.report-btn.more{font-size:18px}


/* Report header title: single line, mobile-safe */
.report-sheet .report-header h2{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(16px, 4.8vw, var(--modalHeaderTitleSize));
}


.card-sub{ margin:-6px 0 10px; opacity:.75; font-size:13px; line-height:1.35; }

/* Report a problem */
.field{ padding: 12px 14px; }
.label{ display:block; font-size: 12px; opacity:.85; margin-bottom: 8px; }
.textarea{ width:100%; resize:vertical; min-height:120px; padding:12px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); color: inherit; }
.input{ width:100%; padding:12px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); color: inherit; }
.actions{ padding: 12px 14px 14px; display:flex; gap:10px; }
.btn{ border:none; border-radius: 12px; padding: 12px 14px; font-weight:600; cursor:pointer; }
.btn.primary{ background: var(--accent, #4f6ef7); color:#fff; flex:1; }
.btn.secondary{ background: rgba(255,255,255,.10); color: inherit; }
.diag{ padding: 10px 14px 14px; }
.diag-pre{ white-space: pre-wrap; word-break: break-word; margin: 0 0 10px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.18); font-size: 12px; }

.build-tag{opacity:.55;font-size:12px;padding:10px 16px}

.settings-row.active {
  background: rgba(79,110,247,.25);
}
#simpleReportMessage {
  min-height: 120px;
  width: 100%;
}
.primary-btn {
  margin: 16px;
}

/* Report – Neavo style */
.settings-textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  resize: vertical;
}
.settings-input {
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
}
.full-width {
  width: calc(100% - 32px);
  margin: 16px;
}
.settings-row.active {
  background: rgba(79,110,247,.18);
}

/* Report (global style) */
.report-type.selected{
  background: rgba(124,92,255,.16) !important;
  border-color: rgba(124,92,255,.35) !important;
}

/* Report attachments */
.report-preview{
  width:100%;
  max-height:220px;
  object-fit:contain;
  margin-top:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.item.selected{
  background: rgba(124,92,255,.16) !important;
  border-color: rgba(124,92,255,.35) !important;
}
.btn[disabled]{
  opacity:.55;
  pointer-events:none;
}

/* Report inline suggestions */
.report-cat-block{display:block}
.sug-box{
  margin: 10px 12px 14px 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.sug-title{
  font-size:12px;
  opacity:.82;
  margin-bottom:8px;
}
.sug-item{
  width:100%;
  text-align:right;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  margin-bottom:8px;
}
.sug-item:last-child{margin-bottom:0}
.sug-item.selected{
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.35);
}

.report-sug-text{
  margin-top: 10px;
}

/* Arabic header clipping fix */
.settings-title{
  line-height: 1.35 !important;
  padding-bottom: 4px;
}
.card-head{
  line-height: 1.35;
  padding-bottom: 2px;
}

/* Ensure Arabic headers align like the rest of the UI */
/* Default (English/LTR) card header alignment */
.card-head, .card-sub{ text-align:left; direction:ltr; }

html[dir="rtl"] .card-head, html[dir="rtl"] .card-sub{ text-align:right; direction:rtl; }


.page[data-page="report"] .card .card-sub{ margin-bottom: 10px; }

/* Report problem inline details */
.report-sug-image{
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: inherit;
}
.report-img-hint{
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-top: 8px;
}
.sug-item.active{
  outline: 2px solid rgba(255,255,255,0.16);
}



.report-file-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.report-file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight:700;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.report-file-btn:active{
  transform: translateY(1px);
}

.report-file-name{
  flex:1;
  min-width:0;
  color: rgba(255,255,255,0.65);
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.report-file-input-hidden{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

/* Report a problem - polished Other details controls */
.report-textarea{
  width: 100%;
  min-height: 120px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  outline: none;
  resize: vertical;
  line-height: 1.4;
}
.report-textarea::placeholder{
  color: rgba(255,255,255,0.55);
}
.report-textarea:focus{
  border-color: rgba(122, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.18);
}

.report-file{
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  outline: none;
}
.report-file::file-selector-button{
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-inline-end: 12px;
  cursor: pointer;
}
.report-file::file-selector-button:hover{
  background: rgba(255,255,255,0.18);
}
.report-img-hint{
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-top: 8px;
}

.legal-page{padding:16px;overflow-y:auto}
.legal-content{white-space:pre-line;line-height:1.6}
.hidden{display:none}

/* In-app Legal WebView Overlay */
.legalwv{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:stretch;
  justify-content:center;
  z-index: 10000;
}
.legalwv-shell{
  width:min(100%, 980px);
  height:100%;
  background: var(--bg, #0b1220);
  display:flex;
  flex-direction:column;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.legalwv-top{
  height: 56px;
  display:flex;
  align-items:center;
  gap:12px;
  padding: 0 14px;
  background: var(--topbar, #0f172a);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.legalwv-back{ }
.legalwv-title{
  font-weight:800;
  font-size:14px;
  color:#fff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.legalwv-spacer{flex:1}
.legalwv-body{flex:1; position:relative; background: var(--bg, #0b1220);}
.legalwv-frame{width:100%; height:100%; border:0; background: var(--bg, #0b1220);}
.legalwv-loading{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color: rgba(255,255,255,.9);
  background: rgba(11,18,32,.55);
  z-index:1;
}

/* Back button – match app style */
.top-btn{
  width:40px;height:40px;
  border-radius:12px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  display:flex;align-items:center;justify-content:center;
}
.back-icon{width:22px;height:22px}

/* RTL: flip icon direction ONLY, not the button */
html[dir="rtl"] .back-icon{
  transform: rotate(180deg);
}

/* Legal WebView back button uses .top-btn; keep it consistent */
.legalwv-top .top-btn{height:40px;width:40px;border-radius:14px;}


/* About page: add spacing between link items (without affecting Settings lists) */
.about-links .item{ margin-top: 10px; }
.about-links .item:first-child{ margin-top: 0; }

/* Dead nav items (disabled / coming soon) */
button.is-dead{opacity:.55;}
button.is-dead{pointer-events:none;}


/* --- Seed login note (auth gate) --- */
.seed-note{
  margin: 12px 12px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 14px;
  line-height: 1.4;
}
html[dir="ltr"] .seed-note{ text-align:left; }
html[dir="rtl"] .seed-note{ text-align:right; }

/* --- Premium nudge list --- */
.nudge-list{
  margin: 10px 0 14px 0;
  padding-left: 18px;
}
html[dir="rtl"] .nudge-list{
  padding-left: 0;
  padding-right: 18px;
}
.nudge-list li{ margin: 6px 0; }


/* Guest signup banner (under header) */
.guest-signup-banner{
  position: sticky;
  top: 68px; /* below topbar */
  z-index: 40;
  margin: 8px 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(20, 24, 34, 0.35);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
}
.guest-signup-banner.show{
  opacity: 1;
  transform: translateY(0);
}
.guest-signup-banner__msg{
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255,255,255,0.90);
  flex: 1 1 auto;
}
.guest-signup-banner__cta{
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  background: rgba(142, 119, 255, 0.85);
  color: #fff;
}
html[dir="rtl"] .guest-signup-banner{
  direction: rtl;
}


/* Back chevrons: LTR left, RTL right */


/* Fix: Auth back chevron direction in RTL only (Create account / Forgot password) */
html[dir="rtl"] #authModal .settings-top .chev{display:inline-block;transform:scaleX(-1);} 


/* --- Neavo: Social bridge nudges (red dot + micro hint) --- */
.nv-dot-wrap{ position:relative; display:inline-flex; align-items:center; justify-content:center; }
.nv-dot{
  position:absolute;
  width:8px; height:8px;
  border-radius:50%;
  background:#ff3b30;
  top:2px; right:2px;
  box-shadow:0 0 0 2px rgba(17,24,39,0.25);
}
html[dir="rtl"] .nv-dot{ right:auto; left:2px; }

#meRow{ position:relative; }
#meRow .nv-dot{ top:10px; right:12px; }
html[dir="rtl"] #meRow .nv-dot{ right:auto; left:12px; }

.field.social-field{ position:relative; }
.field.social-field.nv-dot-social::after{
  content:"";
  position:absolute;
  width:8px; height:8px;
  border-radius:50%;
  background:#ff3b30;
  top:12px; right:12px;
  box-shadow:0 0 0 2px rgba(17,24,39,0.25);
}
html[dir="rtl"] .field.social-field.nv-dot-social::after{ right:auto; left:12px; }

.micro-hint{
  margin: 10px 2px 8px;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  line-height: 1.35;
}

html[dir="rtl"] .micro-hint{ text-align: right; }
html[dir="ltr"] .micro-hint{ text-align: left; }
body.light .micro-hint{
  background: transparent;
  border: 0;
  color: rgba(17,24,39,0.78);
}
