
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap");
:root{
  --bg0:#070A12;
  --bg1:#090D19;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.10);

  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);

  --brand1:#ff4fd8;
  --brand2:#7c4dff;
  --brand3:#2bf0ff;

  --ok:#22c55e;
  --bad:#ef4444;
  --warn:#f59e0b;

  --shadow: 0 22px 70px rgba(0,0,0,.55);
  --radius: 18px;

  --max: 1180px;
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(124,77,255,.25), transparent 60%),
    radial-gradient(900px 600px at 88% 20%, rgba(255,79,216,.22), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(43,240,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
}
body[data-page="login"],
body[data-page="signup"]{
  background:
    radial-gradient(1200px 700px at 20% 15%, rgba(255,79,216,.25), transparent 60%),
    radial-gradient(900px 700px at 85% 20%, rgba(138,85,255,.22), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(92,44,255,.18), transparent 55%),
    linear-gradient(160deg, #0a0b14, #140a22);
  overflow:hidden;
  overscroll-behavior: none;
}
body[data-page="login"] .authCard,
body[data-page="signup"] .authCard{
  background: linear-gradient(180deg, rgba(16,16,28,.55), rgba(10,10,18,.35));
}
.authBack{
  position:fixed;
  top:18px;
  left:18px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color:var(--text);
  text-decoration:none;
  font-size:20px;
  z-index:5;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.authBack:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.22);
}

a{color:inherit; text-decoration:none}
img,video{max-width:100%; display:block; height:auto}
button,input,select{font:inherit}
::selection{background:rgba(255,79,216,.30)}

input, textarea, select{
  color: var(--text);
  background-color: rgba(7,10,18,.55);
}
input::placeholder,
textarea::placeholder{
  color: rgba(234,240,255,.55);
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0px 1000px rgba(7,10,18,.75) inset;
  transition: background-color 9999s ease-in-out 0s;
}


body[data-theme="light"]{
  --bg0:#070A12;
  --bg1:#090D19;
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.10);
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(124,77,255,.25), transparent 60%),
    radial-gradient(900px 600px at 88% 20%, rgba(255,79,216,.22), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(43,240,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}


body[data-page="landing"]::before,
body[data-page="landing"]::after{
  content:"";
  position:fixed;
  inset:-40px;
  pointer-events:none;
  z-index:-1;
  opacity:.55;
}

body[data-page="landing"]::before{
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,79,216,.25), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(124,77,255,.22), transparent 48%),
    radial-gradient(circle at 50% 80%, rgba(43,240,255,.12), transparent 55%);
  filter: blur(0px);
}


body[data-page="landing"]::after{
  opacity:.22;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath d='M110 191s-73-43-94-89c-17-37 8-77 48-77 22 0 38 12 46 26 8-14 24-26 46-26 40 0 65 40 48 77-21 46-94 89-94 89z' fill='rgba(255,79,216,0.55)'/%3E%3C/svg%3E") repeat;
  background-size: 210px 210px;
  animation: floatHearts 28s linear infinite;
  transform: translate3d(0,0,0);
}

@keyframes floatHearts{
  0%{background-position: 0 0}
  100%{background-position: 0 -900px}
}

.muted{color:var(--muted)}
.center{display:flex; justify-content:center; align-items:center}
.small{font-size:12px; color:var(--muted)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}


.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.pill:hover{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16)}
.pill:active{transform:translateY(1px)}
.pill.ghost{background:transparent}
.pill.primary{
  border:0;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 18px 40px rgba(255,79,216,.18);
}
.pill.primary:hover{filter:saturate(1.08)}
.pill.chipRed{background: linear-gradient(135deg, rgba(255,79,216,.25), rgba(124,77,255,.22));}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  transition:.15s ease;
}
.btn:hover{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16)}
.btn:active{transform:translateY(1px)}
.btn.primary{
  border:0;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
}
.btn.danger{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.28);
  color: #ffd1d1;
}

.iconbtn{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  transition:.15s ease;
}
.iconbtn:hover{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16)}
.iconbtn:active{transform:translateY(1px)}


.input, .authInput, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(7,10,18,.55);
  color:var(--text);
  outline:none;
  transition:.15s ease;
}
body[data-theme="light"] .input,
body[data-theme="light"] .authInput,
body[data-theme="light"] select{
  background: rgba(255,255,255,.7);
}
.input:focus, .authInput:focus, select:focus{
  border-color: rgba(255,79,216,.45);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10);
}


.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:40;
  backdrop-filter: blur(14px);
  background: rgba(7,10,18,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  transform: translateY(0);
  will-change: transform;
}
body[data-page="people"] .topbar{
  border-bottom: 0;
}
.topbar.hide-header {
  transform: translateY(-100%);
}
.topbar.show-header {
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
body[data-theme="light"] .topbar{background: rgba(255,255,255,.70)}
.topbar__left, .topbar__right{
  display:flex;
  align-items:center;
  gap:12px;
}
.topbar__right .nav__link{
  padding:10px 8px;
  margin-right:2px;
}
.topbar{
  padding:12px 18px;
}

/* Add padding to body to compensate for fixed header */
body[data-page="people"] {
  padding-top: 112px;
  padding-top: calc(112px + env(safe-area-inset-top));
}
body[data-page="notifications"] {
  padding-top: 100px;
}
@media (max-width: 620px){
  body[data-page="people"] {
    padding-top: 84px;
    padding-top: calc(84px + env(safe-area-inset-top));
  }
  body[data-page="notifications"] {
    padding-top: 65px;
  }
}

body[data-page="notifications"] .notifyList{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.notifyItem{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.notifyItem--unread{
  border-color: rgba(255,79,216,.35);
  background: linear-gradient(135deg, rgba(255,79,216,.14), rgba(124,77,255,.10));
}
.notifyItem__icon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-size:16px;
  flex:0 0 auto;
}
.notifyItem__body{flex:1; min-width:0;}
.notifyItem__text{
  font-size:14px;
  font-weight:700;
  color:var(--text);
}
.notifyItem__time{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}
.notifyEmpty{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}
.topbar__inner{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  width:100%;
}
.logo{
  font-weight:900;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:18px;
}
.logoMark{
  width:34px;
  height:34px;
  display:block;
}
.logoType{
  font-weight:900;
  letter-spacing:.4px;
  font-size:21px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, #ffd6e3 30%, #ff4d6d 60%, #ffffff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  text-shadow: 0 6px 18px rgba(255,79,216,.18);
}
.logo span{
  color: transparent;
  background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip:text;
  background-clip:text;
}
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:10px;
}
.nav__link{
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
  font-size:15px;
  transition:.15s ease;
}
.nav__link:hover{background:rgba(255,255,255,.06); color:var(--text)}
.nav__link.active{
  color:var(--text);
  background: linear-gradient(135deg, rgba(255,79,216,.16), rgba(124,77,255,.14));
  border:1px solid rgba(255,255,255,.10);
}
body[data-page="people"] .nav__link.upgrade{
  color:#fff;
  font-weight:800;
  background: linear-gradient(135deg, #ff4d6d, #7c4dff);
  border:0;
  box-shadow: 0 14px 40px rgba(255,79,216,.18);
}
body[data-page="people"] .nav__link.inbox{
  color:#fff;
  font-weight:700;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.12);
}
body[data-page="people"] .searchBar{
  margin-top:8px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 16px 50px rgba(0,0,0,.28);
}
body[data-page="people"] .toggleRow{
  margin-top:8px;
  display:flex;
  justify-content:flex-start;
}
body[data-page="people"] .searchInput{
  flex:0 0 260px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  padding:12px 14px;
  color:var(--text);
  outline:none;
}
body[data-page="people"] .searchBar--mini{
  margin-top:0;
  padding:8px;
  gap:8px;
  box-shadow: none;
  background: rgba(255,255,255,.03);
}
body[data-page="people"] .searchBar--hidden{
  display:none;
}
body[data-page="people"] .searchBar--mini .searchInput{
  flex:0 0 180px;
  padding:10px 12px;
  font-size:13px;
}
body[data-page="people"] .searchBar--mini .searchBtn{
  padding:10px 12px;
  font-size:12px;
}
body[data-page="people"] .topbarSearch{
  display:flex;
  align-items:center;
  margin-right:6px;
  position:relative;
  z-index:4;
}
body[data-page="people"] .searchIconBtn{
  display:inline-flex;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(255,79,216,.18), rgba(124,77,255,.18));
  box-shadow: 0 10px 30px rgba(255,79,216,.18);
}
body[data-page="people"] .topControls{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  margin-bottom:10px;
}
body[data-page="people"] .searchBtn{
  border:0;
  padding:12px 16px;
  border-radius:999px;
  font-weight:800;
  color:#fff;
  background: linear-gradient(135deg, rgba(255,79,216,.65), rgba(124,77,255,.40));
  box-shadow: 0 18px 60px rgba(255,79,216,.26), 0 6px 18px rgba(124,77,255,.18);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  -webkit-appearance:none;
  appearance:none;
}
body[data-page="people"] .searchBtn--premium{
  border:1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(255,114,166,.95), rgba(124,77,255,.75));
  box-shadow: 0 16px 46px rgba(255,79,216,.38), 0 8px 22px rgba(124,77,255,.28);
  letter-spacing:.2px;
}
body[data-page="people"] .searchBtn::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: rotate(20deg);
  animation: sheen 3.6s linear infinite;
}
body[data-page="people"] .searchBtn:hover{transform: translateY(-1px)}
body[data-page="people"] .searchInput{
  -webkit-appearance:none;
  appearance:none;
}

/* Search icon for mobile - removed, using compact search bar instead */

@media (max-width: 620px){
  body[data-page="people"] {
    padding-top: 84px;
    padding-top: calc(84px + env(safe-area-inset-top));
  }

  body[data-page="people"] .topbar{
    padding:8px 10px;
  }

  body[data-page="people"] .topbar__inner{
    gap:8px;
  }

  body[data-page="people"] .topbar__left,
  body[data-page="people"] .topbar__right{
    min-width:0;
  }

  body[data-page="people"] .topbar__right{
    flex:1 1 auto;
    justify-content:flex-end;
    gap:8px;
  }

  body[data-page="people"] .topbar__right > *{
    flex-shrink:0;
  }

  body[data-page="people"] .topbar__right .searchBar,
  body[data-page="people"] .topbar__right .topbarSearch{
    flex:1 1 160px;
    min-width:0;
  }

  body[data-page="people"] .topbar__right .searchInput{
    min-width:0;
    width:100%;
  }

  body[data-page="people"] .logo{gap:6px; font-size:16px;}
  body[data-page="people"] .logoMark{width:28px; height:28px;}
  body[data-page="people"] .logoType{font-size:16px;}

  /* Make search bar compact on mobile */
  body[data-page="people"] .topbarSearch {
    display: flex;
    flex: 1 1 160px;
    max-width: 220px;
  }
  body[data-page="people"] .searchIconBtn{
    display:none;
  }

  body[data-page="people"] .searchBar--mini {
    display: flex !important;
    width: 100%;
    gap: 4px;
    padding:6px;
    border-radius:14px;
  }
  
  body[data-page="people"] .searchInput {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 7px 9px;
    border-radius: 12px;
  }
  
  body[data-page="people"] .searchBtn {
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  body[data-page="people"] .topControls{flex-direction:column; align-items:flex-start}
  body[data-page="people"] .topbar__inner{flex-direction:row; align-items:center; flex-wrap:nowrap}
  body[data-page="people"] .topbar__right{
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    row-gap: 0;
    gap: 8px;
  }
  body[data-page="people"] .topbar__left{
    min-width: 0;
  }
  body[data-page="people"] .topbar .searchBar{
    flex: 1;
    min-width: 0;
  }
  body[data-page="people"] .topbar .searchInput{
    max-width: 160px;
  }
  body[data-page="people"] .menuBtn{order: 2}
  body[data-page="people"] .avatar{order: 3; margin-left: 0}
  body[data-page="people"] .avatar{
    border-radius:999px;
  }
  body[data-page="people"] .avatar__img{
    border-radius:999px;
  }

  body[data-page="people"] .menuBtn,
  body[data-page="people"] .avatar,
  body[data-page="people"] .iconbtn{
    width:34px;
    height:34px;
    border-radius:10px;
  }

  body[data-page="people"] .avatar__icon{font-size:16px;}
}

@media (max-width: 420px){
  body[data-page="people"] .topbar__inner{
    flex-wrap:wrap;
  }
  body[data-page="people"] .topbar__right{
    width:100%;
    justify-content:flex-end;
  }
  body[data-page="people"] .topbar__right .searchBar,
  body[data-page="people"] .topbar__right .topbarSearch{
    flex:1 1 auto;
  }
}
@media (max-width: 740px){
  .topbar{padding:10px 12px;}
  .topbar__inner{flex-wrap:wrap;}
  .topbar__right{flex-wrap:wrap; justify-content:flex-end;}
  .logoType{font-size:19px;}
}
@media (max-width: 740px){
  body[data-page="people"] .topbar__inner{flex-wrap:nowrap;}
  body[data-page="people"] .topbar__right{flex-wrap:nowrap;}
}


.menuBtn{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  position:relative;
  z-index:6;
  pointer-events:auto;
}
.sideMenu{
  position:fixed;
  inset:0;
  display:none;
  z-index:90;
  pointer-events:none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sideMenu.show{
  display:block;
  pointer-events:auto;
}
.sideMenu__panel{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(340px, 90vw);
  padding:20px 16px;
  background: rgba(10,12,22,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left:1px solid rgba(255,255,255,.14);
  box-shadow: -4px 0 60px rgba(0,0,0,.7);
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow-y:auto;
  overflow-x:hidden;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sideMenu.show .sideMenu__panel{
  transform: translateX(0);
}
.sideMenu__panel::-webkit-scrollbar{
  width:6px;
}
.sideMenu__panel::-webkit-scrollbar-track{
  background:rgba(255,255,255,.03);
}
.sideMenu__panel::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
  border-radius:10px;
}
.sideMenu__panel > *{position:relative; z-index:1}
.sideMenuOrbit{
  position:absolute;
  inset:-60px -40px;
  opacity:.7;
  z-index:0;
}
.sideMenuOrbit::before{
  width:min(300px, 75vw);
}
.sideMenu__close{
  align-self:flex-end;
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.sideMenu__item{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
}
.sideMenu__item.logout{
  background: linear-gradient(135deg, rgba(239,68,68,.2), rgba(220,38,38,.18));
  border:1px solid rgba(239,68,68,.3);
  text-align:center;
  box-shadow: 0 6px 20px rgba(239,68,68,.15);
  padding:12px 16px;
  min-height:44px;
  font-weight:700;
  transition:all 0.3s ease;
}
.sideMenu__item.logout:hover{
  background: linear-gradient(135deg, rgba(239,68,68,.28), rgba(220,38,38,.24));
  transform:translateY(-1px);
}

/* Mobile optimization */
@media (max-width: 768px) {
  .sideMenu__panel{
    width:min(300px, 85vw);
    padding:16px 14px;
  }
  .sideMenu__row{
    padding:10px;
  }
  .sideMenu__icon{
    width:32px;
    height:32px;
    font-size:15px;
  }
}
.sideMenu__row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  position:relative;
}
.sideMenu__row:hover{
  background: rgba(255,255,255,.07);
}
.sideMenu__icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-size:16px;
}
.sideMenu__chev{
  margin-left:auto;
  opacity:.6;
  font-size:18px;
}
.sideMenu__badge{
  position:absolute;
  right:40px;
  top:10px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(255,79,216,.9), rgba(124,77,255,.9));
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 24px rgba(255,79,216,.35);
}
.sideMenu__badge.show{display:flex}
.sideMenu__item.upgrade{
  background: linear-gradient(135deg, rgba(255,79,216,.26), rgba(124,77,255,.22));
  border:2px solid rgba(255,79,216,.3);
  box-shadow: 0 8px 32px rgba(255,79,216,.25);
  font-size:14px;
  font-weight:800;
  text-align:center;
  letter-spacing:.3px;
  position:relative;
  overflow:hidden;
  z-index:6;
  pointer-events:auto;
  padding:14px 16px;
  transition:all 0.3s ease;
}
.sideMenu__item.upgrade:hover{
  transform:translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,79,216,.35);
  background: linear-gradient(135deg, rgba(255,79,216,.32), rgba(124,77,255,.28));
}
.sideMenu__footer{
  margin-top:auto;
  display:grid;
  gap:10px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
}
.sideMenu__item.upgrade::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: rotate(20deg);
  animation: sheen 3.6s linear infinite;
}
.sideMenu__search{
  display:flex;
  gap:8px;
}
.sideMenu__search .searchInput{flex:1}
body[data-page="people"] #menToggle{
  border:0;
  color:#fff;
  font-weight:800;
  background: linear-gradient(135deg, #ff4d6d, #7c4dff);
  box-shadow: 0 14px 40px rgba(255,79,216,.18);
}

.userEmail{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--muted);
}
body[data-page="people"] .userEmail{
  display:none !important;
}

.avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  border:1px solid rgba(255,255,255,.22);
  padding:2px;
  background: linear-gradient(135deg, rgba(255,79,216,.55), rgba(124,77,255,.55));
  box-shadow: 0 14px 36px rgba(124,77,255,.28);
  position:relative;
  overflow:hidden;
}
.avatar__icon{
  font-size:18px;
  line-height:1;
}
.avatar__img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:999px;
  display:none;
  background: rgba(12,12,20,.6);
}
.avatar.has-img .avatar__img{display:block}
.avatar.has-img .avatar__icon{display:none}


body[data-page="people"] .hearts,
body[data-page="login"] .hearts,
body[data-page="signup"] .hearts{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}
body[data-page="people"] .heart,
body[data-page="login"] .heart,
body[data-page="signup"] .heart{
  position:absolute;
  bottom:-20px;
  width:16px;
  height:16px;
  background: rgba(255,79,216,.35);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px rgba(255,79,216,.35));
  animation: heartFloat linear infinite;
  opacity:.65;
}
body[data-page="people"] .heart::before,
body[data-page="people"] .heart::after{
  content:"";
  position:absolute;
  width:16px;
  height:16px;
  background: inherit;
  border-radius:50%;
}
body[data-page="people"] .heart::before{
  top:-8px;
  left:0;
}
body[data-page="people"] .heart::after{
  left:-8px;
  top:0;
}
body[data-page="login"] .heart,
body[data-page="signup"] .heart{
  width:12px;
  height:12px;
  opacity:.55;
}
body[data-page="login"] .heart::before,
body[data-page="login"] .heart::after,
body[data-page="signup"] .heart::before,
body[data-page="signup"] .heart::after{
  width:12px;
  height:12px;
}
body[data-page="login"] .heart::before,
body[data-page="signup"] .heart::before{
  top:-6px;
}
body[data-page="login"] .heart::after,
body[data-page="signup"] .heart::after{
  left:-6px;
}
@keyframes heartFloat{
  0%{transform: translateY(0) rotate(45deg); opacity:.65;}
  100%{transform: translateY(-120vh) rotate(45deg); opacity:.1;}
}

/* 🌟 Emoji Orbit Animation - Beautiful Hearts & Stars Circling */
.emoji-orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.orbit-container {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 79, 216, 0.15);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

.orbit-container.alt {
  animation-duration: 25s;
  animation-direction: reverse;
}

.orbit-emoji {
  position: absolute;
  font-size: 24px;
  animation: twinkle 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 79, 216, 0.4));
  user-select: none;
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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


.layout{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 18px 40px;
  display:grid;
  grid-template-columns: 300px 1fr 300px;
  gap:16px;
  position:relative;
  z-index:1;
}
body[data-page="people"] .layout{
  grid-template-columns: 1fr;
}
body[data-page="people"] .content{
  grid-column: 1 / -1;
}
@media (max-width: 1100px){
  .layout{grid-template-columns: 280px 1fr; }
  .rightbar{display:none}
}
@media (max-width: 860px){
  .layout{grid-template-columns: 1fr;}
  .sidebar{order:2}
  .content{order:1}
}
@media (max-width: 600px){
  .layout{padding:14px 12px 32px;}
  .contentTop{flex-direction:column; align-items:flex-start;}
}

.sidebar,.content,.rightbar{min-width:0}

.cardbox{
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.cardbox.small{box-shadow:none; background: rgba(255,255,255,.04)}

.paymentRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.paymentRow__content{flex:1; min-width:0;}
.paymentRow__addr{overflow-wrap:anywhere; word-break:break-all;}
.paymentRow__btn{flex:0 0 auto;}

.sideTitle{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.2px;
  color:var(--text);
}
.lbl{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:10px 0 6px;
}
.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.contentTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin: 12px 0 12px;
}
body[data-page="people"] .contentTop{
  margin: 8px 0 10px;
}
.h1{margin:0; font-size:22px; letter-spacing:.2px}
.meta{display:flex; align-items:center; gap:10px}
.dot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 0 4px rgba(255,79,216,.12);
}


.storiesHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 6px 0 8px;
}
.storiesActions{
  display:flex;
  align-items:center;
  gap:10px;
}
.storiesMenuBtn{
  width:34px;
  height:34px;
  border-radius:10px;
}
.storiesTitle{
  font-weight:800;
  letter-spacing:.2px;
  font-size:14px;
}
.storiesAddBtn{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}
.storiesAddBtn{display:none;}
.storiesAddBtn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.stories{
  display:flex;
  gap:12px;
  overflow:auto;
  padding-bottom:8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.story--add .story__ring{
  background: linear-gradient(135deg, rgba(255,79,216,.24), rgba(124,77,255,.20));
  border:1px dashed rgba(255,255,255,.30);
  box-shadow: 0 10px 28px rgba(255,79,216,.20);
}
.story__plus{
  font-size:22px;
  font-weight:800;
  color:#fff;
}
.emptyState{
  margin: 10px 0 6px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.emptyState__title{
  font-weight:800;
  margin-bottom:4px;
}
.stories::-webkit-scrollbar{display:none}
.story{min-width:74px; text-align:center}
.story__ring{
  width:62px; height:62px;
  padding:3px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
}
.story__ring img{
  width:100%; height:100%;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(7,10,18,.55);
}
.story__name{margin-top:6px; font-size:12px; color:var(--muted)}


.grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
  align-content:start;
}
@media (max-width: 1400px){ .grid{grid-template-columns: repeat(4, minmax(0, 1fr));}}
@media (max-width: 1100px){ .grid{grid-template-columns: repeat(4, minmax(0, 1fr));}}
@media (max-width: 800px){ .grid{grid-template-columns: repeat(3, minmax(0, 1fr));}}
@media (max-width: 520px){ .grid{grid-template-columns: repeat(2, minmax(0, 1fr));}}

.pcard{
  border-radius: 14px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: 0 12px 40px rgba(0,0,0,.40);
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.pcard:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
.pcard img{
  width:100%;
  height: 75px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}
.pcard__body{padding:8px 8px 10px}
.pcard__name{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.pcard__likes{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}
.pcard__sub{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  text-align:center; 
}
.pcard__near{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
.pcard__bio{
  margin:8px 0 0;
  color: rgba(234,240,255,.78);
  font-size:12px;
  line-height:1.3;
  min-height: 32px;
}
.pcard__tags{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size:12px;
}
.tag.online{
  color:#c6ffe0;
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.12);
}


.loadWrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:18px 0 0;
}
.spinner{
  width:18px;height:18px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,79,216,.65);
  animation: spin .8s linear infinite;
  display:none;
}
@keyframes spin{to{transform:rotate(360deg)}}


.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:60;
}
.modal.show{display:block}
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.modal__panel{
  position:relative;
  max-width: 980px;
  margin: 6vh auto;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(124,77,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(255,79,216,.16), transparent 60%),
    rgba(10,12,22,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
body[data-theme="light"] .modal__panel{
  background: rgba(255,255,255,.92);
}
.modal__x{
  position:absolute;
  right:14px; top:14px;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.modal__body{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:0;
}
@media (max-width: 920px){
  .modal__panel{margin: 3vh 12px}
  .modal__body{grid-template-columns:1fr}
}
.modal__img{
  position:relative;
  min-height: 420px;
  background: rgba(255,255,255,.04);
}
.modal__img img{
  width:100%;
  height:100%;
  min-height: 420px;
  object-fit: cover;
}
.badge{
  position:absolute;
  top:14px; left:14px;
  padding:9px 12px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.3px;
  font-size:12px;
  border:1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.14);
  color: #c6ffe0;
  display:none;
}
.badge.show{display:inline-flex}
.modal__info{
  padding:18px 18px 18px;
}
.modal__info h2{
  margin:6px 0 6px;
  font-size:22px;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 0;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size:11px;
}
.modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.note{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size:13px;
}


.storyModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:70;
}
.storyModal.show{display:block}
.storyModal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.storyModal__panel{
  position:relative;
  max-width: 820px;
  margin: 8vh auto;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(124,77,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(255,79,216,.16), transparent 60%),
    rgba(10,12,22,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
body[data-theme="light"] .storyModal__panel{background: rgba(255,255,255,.92)}
.storyModal__x{
  position:absolute;
  right:14px; top:14px;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.storyModal__body{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:0;
}
@media (max-width: 900px){
  .storyModal__panel{margin: 4vh 12px}
  .storyModal__body{grid-template-columns:1fr}
}
.storyModal__media{
  position:relative;
  min-height: 360px;
  background: rgba(255,255,255,.04);
}
.storyModal__media img{
  width:100%;
  height:100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(1.02);
}
.storyModal__media video{
  width:100%;
  height:100%;
  min-height: 360px;
  object-fit: cover;
  background: #000;
}

.storyModal__lock{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  background: linear-gradient(180deg, rgba(7,10,18,.35), rgba(7,10,18,.8));
  text-align:center;
  padding:18px;
}
.storyModal__lockIcon{
  width:52px; height:52px;
  border-radius:16px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  font-size:22px;
}
.storyModal__lockTitle{
  font-weight:900;
  font-size:18px;
}
.storyModal__lockText{
  color:var(--muted);
  font-size:13px;
}
.storyModal__info{
  padding:18px;
}
.storyModal__info h3{
  margin:0 0 8px;
  font-size:18px;
}


.welcomeModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:90;
}
.welcomeModal.show{display:block}
.welcomeModal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.welcomeModal__panel{
  position:relative;
  width:min(420px, 92vw);
  margin:18vh auto 0;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,14,24,.92);
  box-shadow: var(--shadow);
  text-align:center;
}
.welcomeModal__panel h2{margin:8px 0 6px; font-size:24px}
.welcomeBadge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-size:12px;
  font-weight:700;
}


.forgotModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:120;
}
.forgotModal[hidden]{display:none !important}
.forgotModal.show{display:block}
.forgotModal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.forgotModal__panel{
  position:relative;
  width:min(420px, 92vw);
  margin:18vh auto 0;
  padding:22px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,14,24,.94);
  box-shadow: var(--shadow);
}
.forgotModal__panel h2{margin:0 0 6px; font-size:22px}
.forgotModal__x{
  position:absolute;
  right:12px;
  top:12px;
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.forgotField{
  display:grid;
  gap:6px;
  margin-top:12px;
}
.forgotField label{font-size:12px; color:var(--muted)}
.forgotField input{
  width:100%;
  border-radius:14px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color:var(--text);
  outline:none;
}
.forgotActions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.mutedLink{
  background:transparent;
  border:0;
  color:var(--muted);
  cursor:pointer;
  padding:0;
  font-size:13px;
}
.mutedLink:hover{color:var(--text)}
.mutedLink--premium{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(255,79,216,.38), rgba(124,77,255,.26));
  box-shadow: 0 12px 30px rgba(255,79,216,.22), inset 0 0 0 1px rgba(255,255,255,.04);
  letter-spacing:.2px;
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
  overflow:hidden;
}
.mutedLink--premium::after{
  content:"";
  position:absolute;
  inset:-60% -30%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
  transform: rotate(12deg);
  animation: sheen 4.2s linear infinite;
}
.authFooter .mutedLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  font-weight:700;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
}
body[data-page="login"] .authFooter .mutedLink{
  background: linear-gradient(135deg, rgba(255,79,216,.24), rgba(124,77,255,.20));
  color:#fff;
  box-shadow: 0 10px 30px rgba(255,79,216,.18);
}
.is-hidden{display:none}


.aboutOverlay{
  position:fixed;
  inset:0;
  display:none;
  z-index:95;
}
.aboutOverlay.show{display:block}
.aboutOverlay::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.aboutModal{
  position:relative;
  width:min(720px, 92vw);
  margin:10vh auto 0;
  padding:22px 22px 18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(700px 420px at 18% 12%, rgba(124,77,255,.25), transparent 58%),
    radial-gradient(620px 380px at 90% 22%, rgba(255,79,216,.22), transparent 58%),
    radial-gradient(620px 420px at 50% 90%, rgba(77,240,255,.14), transparent 60%),
    rgba(7,8,18,.92);
  box-shadow: var(--shadow);
  max-height: 78vh;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.aboutModal .aboutOrbit{
  inset:-70px -40px;
  --orbit-scale: .8;
}
@media (max-width: 640px){
  .aboutModal .aboutOrbit{
    inset:-56px -28px;
    --orbit-scale: .7;
  }
}
.aboutModal h2{
  margin:6px 36px 12px 0;
  font-size:20px;
}
.aboutClose{
  position:absolute;
  right:14px;
  top:14px;
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.aboutBody p{
  margin:0 0 10px;
  color:var(--muted);
  line-height:1.6;
}
.aboutBody ul{
  margin:0 0 12px 18px;
  color:var(--muted);
  line-height:1.6;
  padding:0;
}
.aboutBody li{margin-bottom:4px}


.profileHero{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:20px;
  align-items:start;
}
@media (max-width: 900px){
  .profileHero{grid-template-columns:1fr}
}
.profileHero__media{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  min-height: 280px;
  order: 2;
}
.profileHero__info{
  order: 1;
}
.profileHero__media img{
  width:100%;
  height:100%;
  min-height: 280px;
  max-height: 380px;
  object-fit: cover;
  filter: saturate(1.02);
}
.profileHero__info h1{
  margin:0 0 4px;
  font-size: 28px;
}
.profileHero__info p{
  margin: 4px 0;
  font-size: 14px;
}
.profileStats{
  display:flex;
  gap:10px;
  align-items:center;
  margin: 8px 0;
}
.profileActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 8px;
}
.profileGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:16px;
}
@media (max-width: 900px){
  .profileGrid{grid-template-columns:1fr}
}
.profileGallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 620px){
  .profileGallery{grid-template-columns: repeat(2, minmax(0,1fr))}
}
.profileThumb{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: all 0.3s ease;
}
.profileThumb:hover{
  transform: scale(1.05);
  border-color: rgba(255,79,216,.5);
  box-shadow: 0 8px 20px rgba(255,79,216,.3);
}
.profileThumb img{
  width:100%;
  height:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.profileThumb:hover img{
  transform: scale(1.1);
}

/* Gallery preview scrollbar */
#galleryPreviewGrid::-webkit-scrollbar {
  width: 6px;
}
#galleryPreviewGrid::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 3px;
}
#galleryPreviewGrid::-webkit-scrollbar-thumb {
  background: rgba(255,79,216,.4);
  border-radius: 3px;
}
#galleryPreviewGrid::-webkit-scrollbar-thumb:hover {
  background: rgba(255,79,216,.6);
}
/* Firefox scrollbar */
#galleryPreviewGrid {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,79,216,.4) rgba(255,255,255,.05);
}

/* Profile view page optimizations */
body[data-page="profile-view"] .content {
  padding-top: 16px;
  padding-bottom: 16px;
}
body[data-page="profile-view"] .cardbox {
  padding: 18px;
  margin-bottom: 12px;
}
body[data-page="profile-view"] .profileHero {
  margin-bottom: 0;
}
body[data-page="profile-view"] .sideTitle {
  font-size: 16px;
  margin-bottom: 12px;
}

.lockedList{
  display:grid;
  gap:10px;
}
.lockedRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.lockedRow span{color:var(--muted)}
.lockOverlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  background: linear-gradient(180deg, rgba(7,10,18,.35), rgba(7,10,18,.85));
  color:var(--text);
  padding:18px;
}
.lockOverlay.small{
  gap:6px;
  padding:8px;
}
.lockOverlay__icon{
  width:44px; height:44px;
  border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  font-size:20px;
}
.lockOverlay.small .lockOverlay__icon{
  width:30px; height:30px; font-size:14px;
}
.lockOverlay__title{
  font-weight:900;
  font-size:18px;
}
.lockOverlay__text{
  color:var(--muted);
  font-size:13px;
}

.likePop{
  position:fixed;
  left:50%;
  bottom:24px;
  transform: translateX(-50%) translateY(10px);
  padding:14px 20px;
  border-radius:999px;
  background: rgba(10,12,22,.96);
  border:1px solid rgba(255,255,255,.20);
  color:var(--text);
  font-size:15px;
  font-weight:800;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
  opacity:0;
  transition: opacity .2s ease, transform .2s ease;
  z-index:80;
}
.likePop.show{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}
.btn.liked{
  background: linear-gradient(135deg, rgba(255,79,216,.24), rgba(124,77,255,.18));
  border-color: rgba(255,255,255,.12);
}


.authWrap{
  min-height: 100svh;
  display:grid;
  place-items:center;
  padding: 24px 18px 40px;
  position:relative;
  z-index:1;
}
.card-shell{
  position:relative;
  width:min(520px, 92vw);
  height:auto;
  isolation:isolate;
}
.orbit{
  position:absolute;
  inset:-90px -60px;
  z-index:0;
  display:grid;
  place-items:center;
  pointer-events:none;
  transform-origin:center;
  --orbit-scale: 1;
  animation: orbitRotate 30s linear infinite;
  -webkit-animation: orbitRotate 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  animation-play-state: running;
  -webkit-animation-play-state: running;
}
.aboutOrbit{
  inset:-70px -40px;
  --orbit-scale: .8;
}
.orbit::before{
  content:"";
  width:min(520px, 92vw);
  aspect-ratio:1/1;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 0 20px rgba(255,79,216,.12);
  opacity:.55;
}
.orbit__heart{
  position:absolute;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  filter: drop-shadow(0 10px 18px rgba(255,79,216,.45));
  transform-origin:center;
  --orbit-radius: clamp(140px, 38vw, 260px);
  animation: orbitSpin var(--orbit-duration, 18s) linear infinite;
  -webkit-animation: orbitSpin var(--orbit-duration, 18s) linear infinite;
  animation-delay: var(--orbit-delay, 0s);
  -webkit-animation-delay: var(--orbit-delay, 0s);
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  animation-play-state: running;
  -webkit-animation-play-state: running;
}
.orbitForce{
  animation-play-state: running !important;
  -webkit-animation-play-state: running !important;
}
.orbit__heart.h1{
  font-size:26px;
  --orbit-radius: clamp(160px, 40vw, 270px);
  --orbit-duration: 12s;
  --orbit-delay: -1s;
}
.orbit__heart.h2{
  font-size:18px;
  opacity:.9;
  --orbit-radius: clamp(130px, 34vw, 230px);
  --orbit-duration: 16s;
  --orbit-delay: -6s;
}
.orbit__heart.h3{
  font-size:22px;
  --orbit-radius: clamp(170px, 44vw, 290px);
  --orbit-duration: 20s;
  --orbit-delay: -10s;
}
.orbit__heart.h4{
  font-size:16px;
  opacity:.75;
  --orbit-radius: clamp(120px, 30vw, 210px);
  --orbit-duration: 24s;
  --orbit-delay: -3s;
}
.orbit__heart.h5{
  font-size:20px;
  opacity:.9;
  --orbit-radius: clamp(150px, 39vw, 250px);
  --orbit-duration: 18s;
  --orbit-delay: -8s;
}
.orbit__heart.h6{
  font-size:24px;
  opacity:.95;
  --orbit-radius: clamp(155px, 41vw, 260px);
  --orbit-duration: 14s;
  --orbit-delay: -5s;
}
.orbit__heart.h7{
  font-size:14px;
  opacity:.7;
  --orbit-radius: clamp(115px, 28vw, 205px);
  --orbit-duration: 22s;
  --orbit-delay: -12s;
}
.orbit__heart.h8{
  font-size:19px;
  opacity:.85;
  --orbit-radius: clamp(165px, 43vw, 275px);
  --orbit-duration: 26s;
  --orbit-delay: -15s;
}
@keyframes orbitSpin{
  0%{transform: rotate(0deg) translate3d(var(--orbit-radius),0,0) rotate(0deg)}
  100%{transform: rotate(360deg) translate3d(var(--orbit-radius),0,0) rotate(-360deg)}
}
@keyframes orbitRotate{
  0%{transform: rotate(0deg) scale(var(--orbit-scale))}
  100%{transform: rotate(360deg) scale(var(--orbit-scale))}
}
@-webkit-keyframes orbitSpin{
  0%{-webkit-transform: rotate(0deg) translate3d(var(--orbit-radius),0,0) rotate(0deg)}
  100%{-webkit-transform: rotate(360deg) translate3d(var(--orbit-radius),0,0) rotate(-360deg)}
}
@-webkit-keyframes orbitRotate{
  0%{-webkit-transform: rotate(0deg) scale(var(--orbit-scale))}
  100%{-webkit-transform: rotate(360deg) scale(var(--orbit-scale))}
}
.card-shell--compact .orbit{
  inset:-54px -34px;
  --orbit-scale: .72;
  transform-origin: center 58%;
}
.card-shell--compact .orbit__heart{
  --orbit-radius: clamp(90px, 26vw, 165px);
}
.card-shell--compact .orbit__heart.h1{ --orbit-radius: clamp(100px, 28vw, 175px); }
.card-shell--compact .orbit__heart.h2{ --orbit-radius: clamp(85px, 24vw, 150px); }
.card-shell--compact .orbit__heart.h3{ --orbit-radius: clamp(105px, 30vw, 180px); }
.card-shell--compact .orbit__heart.h4{ --orbit-radius: clamp(80px, 22vw, 140px); }
.card-shell--compact .orbit__heart.h5{ --orbit-radius: clamp(95px, 27vw, 170px); }
.card-shell--compact .orbit__heart.h6{ --orbit-radius: clamp(98px, 28vw, 172px); }
.card-shell--compact .orbit__heart.h7{ --orbit-radius: clamp(75px, 20vw, 135px); }
.card-shell--compact .orbit__heart.h8{ --orbit-radius: clamp(102px, 29vw, 178px); }
@media (max-width: 640px){
  .card-shell--compact .orbit{
    inset:-42px -26px;
    --orbit-scale: .62;
    transform-origin: center 60%;
  }
  .card-shell--compact .orbit__heart{ --orbit-radius: clamp(74px, 24vw, 140px); }
  .card-shell--compact .orbit__heart.h1{ --orbit-radius: clamp(82px, 26vw, 150px); }
  .card-shell--compact .orbit__heart.h2{ --orbit-radius: clamp(70px, 22vw, 125px); }
  .card-shell--compact .orbit__heart.h3{ --orbit-radius: clamp(86px, 28vw, 155px); }
  .card-shell--compact .orbit__heart.h4{ --orbit-radius: clamp(66px, 20vw, 118px); }
  .card-shell--compact .orbit__heart.h5{ --orbit-radius: clamp(78px, 25vw, 145px); }
  .card-shell--compact .orbit__heart.h6{ --orbit-radius: clamp(80px, 26vw, 148px); }
  .card-shell--compact .orbit__heart.h7{ --orbit-radius: clamp(60px, 18vw, 110px); }
  .card-shell--compact .orbit__heart.h8{ --orbit-radius: clamp(84px, 27vw, 152px); }
}
.pumping-heart{
  position:absolute;
  inset:-70px -40px;
  z-index:0;
  pointer-events:none;
  display:grid;
  place-items:center;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
}
.pumping-heart::before{
  content:"";
  width:min(520px, 92vw);
  aspect-ratio:1/1;
  transform: translateY(20px);
  background:
    radial-gradient(closest-side, rgba(255,79,216,.28), transparent 65%),
    radial-gradient(closest-side, rgba(138,85,255,.22), transparent 70%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 104 C60 104, 18 76, 18 42 C18 22, 34 10, 50 10 C67 10, 79 23, 84 33 C89 23, 101 10, 118 10 C134 10, 150 22, 150 42 C150 76, 60 104, 60 104 Z' fill='white' transform='translate(-24,0)'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 104 C60 104, 18 76, 18 42 C18 22, 34 10, 50 10 C67 10, 79 23, 84 33 C89 23, 101 10, 118 10 C134 10, 150 22, 150 42 C150 76, 60 104, 60 104 Z' fill='white' transform='translate(-24,0)'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity:.9;
  animation: pump 1.6s ease-in-out infinite;
}
.pumping-heart::after{
  content:"";
  position:absolute;
  width:min(520px, 92vw);
  aspect-ratio:1/1;
  transform: translateY(22px) scale(1.02);
  background: radial-gradient(closest-side, rgba(255,255,255,.20), transparent 62%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 104 C60 104, 18 76, 18 42 C18 22, 34 10, 50 10 C67 10, 79 23, 84 33 C89 23, 101 10, 118 10 C134 10, 150 22, 150 42 C150 76, 60 104, 60 104 Z' fill='white' transform='translate(-24,0)'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 104 C60 104, 18 76, 18 42 C18 22, 34 10, 50 10 C67 10, 79 23, 84 33 C89 23, 101 10, 118 10 C134 10, 150 22, 150 42 C150 76, 60 104, 60 104 Z' fill='white' transform='translate(-24,0)'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: blur(10px);
  opacity:.25;
  animation: pumpGlow 1.6s ease-in-out infinite;
}
@keyframes pump{
  0%,100%{ transform: translateY(20px) scale(.98); filter: blur(0px); }
  50%{ transform: translateY(12px) scale(1.04); filter: blur(.2px); }
}
@keyframes pumpGlow{
  0%,100%{ transform: translateY(22px) scale(.99); opacity:.18; }
  50%{ transform: translateY(16px) scale(1.07); opacity:.35; }
}
@media (prefers-reduced-motion: reduce){
  .pumping-heart::before,
  .pumping-heart::after{
    animation:none;
  }
}
.authCard{
  position:relative;
  z-index:2;
  width:100%;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(16,16,28,.55), rgba(10,10,18,.35));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding:22px 22px 18px;
  overflow:auto;
  max-height: calc(100svh - 110px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.authCard::-webkit-scrollbar{display:none}
.loveCounter{
  position:absolute;
  top:14px;
  right:16px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.30);
  font-size:12px;
  font-weight:700;
  color:var(--text);
  z-index:4;
}
.loveCounter__dot{
  font-size:12px;
}
.loveBurst{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:3;
}
.typingLove{
  position:absolute;
  font-size:12px;
  opacity:.9;
  animation: typingLoveFloat 18s linear forwards;
  filter: drop-shadow(0 6px 12px rgba(255,79,216,.35));
}
@keyframes typingLoveFloat{
  0%{transform: translateY(0) scale(.9); opacity:.9;}
  60%{opacity:.7;}
  100%{transform: translateY(-110vh) scale(1.1); opacity:.1;}
}
.authCard::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(500px 280px at 30% 15%, rgba(255,79,216,.20), transparent 60%),
    radial-gradient(420px 260px at 90% 30%, rgba(138,85,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent);
  pointer-events:none;
  opacity:.9;
}
body[data-theme="light"] .authCard{background: rgba(255,255,255,.88)}
.authHeader{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom: 12px;
}
.authBrand{
  font-weight:700;
  letter-spacing:.2px;
  font-size:14px;
  color:var(--text);
}
.authCard h1{margin:6px 0 6px; font-size:30px; line-height:1.1}
.authForm{
  display:grid;
  gap:12px;
}
.authSection{
  margin-top:6px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
}
.authLabel{
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.authGrid{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px){
  .authGrid{grid-template-columns:1fr;}
}
.authFile{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:6px;
  padding:12px 10px;
  background:
    radial-gradient(220px 120px at 20% 10%, rgba(255,79,216,.18), transparent 60%),
    radial-gradient(220px 120px at 90% 0%, rgba(124,77,255,.16), transparent 60%),
    rgba(0,0,0,.26);
  box-shadow: 0 14px 40px rgba(255,79,216,.12), inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.authFile:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
}
.authFile input[type="file"]{
  width:100%;
  color:var(--text);
  font-size:12px;
}
.authPhotoBox{
  width:120px;
  height:120px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(circle at 65% 65%, rgba(77,240,255,.14), transparent 60%),
    linear-gradient(135deg, rgba(255,79,216,.30), rgba(124,77,255,.24));
  display:grid;
  place-items:center;
  overflow:hidden;
  position:relative;
  box-shadow: 0 18px 55px rgba(255,79,216,.18), inset 0 0 0 1px rgba(255,255,255,.08);
  cursor:pointer;
}
.authPhotoBox::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: conic-gradient(from 180deg, rgba(255,79,216,.0), rgba(255,79,216,.22), rgba(124,77,255,.20), rgba(77,240,255,.12), rgba(255,79,216,.0));
  animation: spin 8s linear infinite;
  opacity:.75;
  filter: blur(8px);
}
.authPhotoText{
  position:relative;
  z-index:2;
  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,.9);
  text-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.authPhotoPreview{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:2;
  opacity:0;
  transition: opacity .2s ease;
}
.authPhotoBox.has-photo .authPhotoPreview{
  opacity:1;
}
.authPhotoBox.has-photo .authPhotoText{
  opacity:0;
}
.authPhotoBox input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  z-index:3;
}
.authHint{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}
.authInput{
  border-radius:16px;
  padding:14px 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  font-size:15px;
  transition:border-color .15s ease, transform .15s ease, background .15s ease;
}
.dobSelect{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 520px){
  .dobSelect{grid-template-columns:1fr}
}
.dobInput{
  border-color: rgba(255,79,216,.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.24)),
    radial-gradient(300px 120px at 15% 20%, rgba(255,79,216,.18), transparent 55%);
  box-shadow: 0 10px 30px rgba(255,79,216,.18), inset 0 0 0 1px rgba(255,255,255,.04);
}
.dobInput:focus{
  border-color: rgba(255,79,216,.65);
  box-shadow: 0 0 0 4px rgba(255,79,216,.16);
}
.dobInput::-webkit-calendar-picker-indicator{
  filter: invert(1) opacity(.85);
}
.authInput.important{
  border-color: rgba(255,79,216,.55);
  box-shadow: 0 0 0 4px rgba(255,79,216,.14);
}
.authPass{
  position:relative;
  display:flex;
  align-items:center;
}
.authPass .authInput{
  width:100%;
  padding-right:78px;
}
.passToggle{
  position:absolute;
  right:10px;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,79,216,.20), rgba(124,77,255,.18));
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 10px 28px rgba(255,79,216,.22);
}
.passToggle:hover{transform: translateY(-1px)}
.authPhoneRow{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
}
.authInput.phoneCode{
  font-weight:700;
  letter-spacing:.2px;
  background:
    linear-gradient(135deg, rgba(255,79,216,.18), rgba(124,77,255,.16)),
    rgba(0,0,0,.28);
  border-color: rgba(255,79,216,.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
@media (max-width: 520px){
  .authPhoneRow{grid-template-columns: 1fr;}
}

@media (max-width: 640px){
  body[data-page="signup"]{
    overflow:auto;
    overscroll-behavior: auto;
  }
  body[data-page="signup"] .authWrap{
    place-items:start;
    padding: 16px 12px 28px;
  }
  body[data-page="signup"] .authCard{
    max-height:none;
  }
}
.authInput::placeholder{ color: rgba(255,255,255,.40); }
.authInput:focus{
  border-color: rgba(255,79,216,.45);
  background: rgba(0,0,0,.34);
  transform: translateY(-1px);
  box-shadow:none;
}
.authBtn{
  margin-top:4px;
  border:none;
  border-radius:16px;
  padding:14px 16px;
  font-size:16px;
  font-weight:800;
  color:white;
  cursor:pointer;
  background: linear-gradient(90deg, #ff4fd8, #8a55ff);
  box-shadow: 0 16px 45px rgba(138,85,255,.25);
  transition: transform .15s ease, filter .15s ease;
}
.authBtn:hover{transform: translateY(-1px); filter:saturate(1.08)}
.authBtn:disabled{opacity:.6; cursor:not-allowed}
.authMsg{margin-top:10px; font-size:13px}
.authMsg.ok{color: rgba(34,197,94,.95)}
.authMsg.err{color: rgba(239,68,68,.95)}
.authFooter{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
body[data-page="login"] .authFooter{justify-content:space-between}
.authFooter a{font-size:13px; color:var(--muted)}
.authFooter a:hover{color:var(--text)}
body[data-page="login"] .pill,
body[data-page="signup"] .pill{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  font-size:13px;
}


body[data-page="admin"] .adminLayout{
  grid-template-columns: 1fr;
}
.adminReply{
  display:grid;
  gap:10px;
}
.adminTextarea{
  resize: vertical;
  min-height: 90px;
}
.adminList{
  display:grid;
  gap:12px;
}
.adminMsg{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:12px;
}
.adminMsg__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.adminMsg__body{
  font-size:14px;
  line-height:1.5;
}


.adminShell{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .adminShell{grid-template-columns:1fr}
}
.adminListPanel{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height: calc(100svh - 160px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.adminContact{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.adminContact--compact{
  padding:8px 10px;
}
.adminContact--compact img{
  width:36px;
  height:36px;
  border-radius:10px;
}
.adminContact.active{
  background: linear-gradient(135deg, rgba(255,79,216,.18), rgba(124,77,255,.14));
  border-color: rgba(255,255,255,.16);
}
.adminContact img{
  width:44px;
  height:44px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
}
.adminContact__meta{
  font-size:12px;
  color:var(--muted);
}
.adminBadge{
  margin-left:auto;
  min-width:18px;
  height:18px;
  border-radius:999px;
  padding:0 6px;
  background: linear-gradient(135deg, rgba(255,79,216,.9), rgba(124,77,255,.9));
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:none;
  align-items:center;
  justify-content:center;
}
.adminBadge.show{display:flex}
.adminChat{
  display:grid;
  grid-template-rows: auto 1fr auto;
  gap:10px;
  min-height: 60vh;
}
.adminChat__head{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:flex;
  gap:10px;
  align-items:center;
}
.adminChat__head img{
  width:48px;
  height:48px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
}
.adminChat__body{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.adminBubble{
  max-width:78%;
  padding:10px 12px;
  border-radius:14px;
  margin-bottom:10px;
  font-size:14px;
}
.adminBubble.me{
  margin-left:auto;
  background: linear-gradient(135deg, rgba(255,79,216,.35), rgba(124,77,255,.28));
  border:1px solid rgba(255,255,255,.10);
}
.adminBubble.them{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.adminChat__composer{
  display:flex;
  gap:10px;
}
.adminChat__composer input{
  flex:1;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color:var(--text);
  outline:none;
}

/* Admin modals */
.adminModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:110;
}
.adminModal.show{display:block}
.adminModal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.adminModal__panel{
  position:relative;
  width:min(560px, 92vw);
  margin:12vh auto 0;
  padding:20px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,14,24,.94);
  box-shadow: var(--shadow);
}
.adminModal__x{
  position:absolute;
  right:12px;
  top:12px;
  width:32px;
  height:32px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.adminUsersList{
  display:grid;
  gap:10px;
  margin-top:10px;
  max-height: 60vh;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.adminUserRow{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.adminUserName{
  font-weight:800;
  margin-bottom:4px;
}
.adminUserMeta{
  font-size:12px;
  color:var(--muted);
}
@media (max-width: 700px){
  .card-shell{width:min(520px, 94vw);}
  .authCard{padding:18px 16px 16px; border-radius:22px;}
  .authCard h1{font-size:26px;}
  .authInput{padding:12px;}
  .authBtn{padding:12px 14px; font-size:15px;}
  .authBack{top:12px; left:12px; width:40px; height:40px;}
}
@media (max-width: 420px){
  .authGrid{grid-template-columns:1fr;}
  .authCard h1{font-size:24px;}
}


.chatPanel{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,22,.90);
  box-shadow: var(--shadow);
  overflow:hidden;
  z-index:70;
}
body[data-theme="light"] .chatPanel{background: rgba(255,255,255,.92)}
.chatHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.chatBody{
  height: 280px;
  overflow:auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  -webkit-overflow-scrolling: touch;
}
.bubble{
  max-width: 82%;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size:13px;
  line-height:1.35;
}
.bubble .time{
  display:block;
  margin-top:6px;
  font-size:11px;
  color: var(--muted);
}
/* Message delivery status indicators */
.delivery-status {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.8;
}
.delivery-status.sent {
  color: #888;
}
.delivery-status.delivered {
  color: #4fc3f7;
  font-weight: 600;
}
.bubble.me{
  margin-left:auto;
  background: linear-gradient(135deg, rgba(255,79,216,.18), rgba(124,77,255,.14));
  border-color: rgba(255,255,255,.12);
}
.bubble.them{margin-right:auto}
.chatForm{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.10);
}
.chatInput{
  flex:1;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
}


body[data-page="inbox"]{
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(124,77,255,.25), transparent 60%),
    radial-gradient(900px 600px at 88% 20%, rgba(255,79,216,.22), transparent 55%),
    radial-gradient(1000px 700px at 60% 90%, rgba(43,240,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
body[data-page="inbox"] .muted{
  color:var(--muted);
}
body[data-page="inbox"] .inboxShell{
  height:100vh;
  height:100svh;
  height:100dvh;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  grid-template-columns: 320px 1fr;
  background: transparent;
}
@media (max-width: 980px){
  body[data-page="inbox"] .inboxShell{
    grid-template-columns: 1fr;
    height:auto;
    min-height:100svh;
  }
}
@media (max-width: 900px){
  body[data-page="inbox"] .inboxSidebar{
    display:block;
  }
  body[data-page="inbox"] .inboxChat{
    display:none;
  }
  body[data-page="inbox"].show-chat .inboxSidebar{
    display:none;
  }
  body[data-page="inbox"].show-chat .inboxChat{
    display:flex;
  }
  body[data-page="inbox"] .backBtn{
    display:inline-flex;
  }
  body[data-page="inbox"] .inboxSidebar,
  body[data-page="inbox"] .inboxChat{
    min-height:100vh;
    min-height:100svh;
    height:100vh;
    height:100svh;
    height:100dvh;
  }
  body[data-page="inbox"] .inboxChat__head{
    position:sticky;
    top:0;
    z-index:3;
    background: rgba(7,10,18,.78);
    backdrop-filter: blur(16px);
  }
  body[data-page="inbox"] .inboxChat__composer{
    position:sticky;
    bottom:0;
    z-index:3;
    background: rgba(7,10,18,.78);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

body[data-page="inbox"] .inboxSidebar{
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--line);
  background: rgba(7,10,18,.65);
  backdrop-filter: blur(16px);
}
body[data-page="inbox"] .inboxSidebar__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  flex-direction: column;
  align-items: flex-start;
}
body[data-page="inbox"] .backToHome:hover {
  background: var(--card2);
  transform: translateX(-2px);
  border-color: var(--pink);
}
body[data-page="inbox"] .brandMini{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:800;
}
body[data-page="inbox"] .brandMini__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, #ff4d6d, #ff9fb0);
  box-shadow: 0 0 0 6px rgba(255,77,109,.10);
}
body[data-page="inbox"] .brandMini__text{
  font-weight:800;
  letter-spacing:.3px;
}
body[data-page="inbox"] .inboxSidebar__actions .iconbtn{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
  color:var(--text);
}

body[data-page="inbox"] .inboxSearch{
  padding:10px 16px;
}
body[data-page="inbox"] .inboxSearch__input{
  width:100%;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  padding:10px 14px;
  outline:none;
  color:var(--text);
}

body[data-page="inbox"] .inboxSectionLabel{
  padding:6px 16px 8px;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
}

body[data-page="inbox"] .contacts{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:0 8px 10px;
  gap:4px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
body[data-page="inbox"] .contact{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  transition: background .12s ease;
}
body[data-page="inbox"] .contact:hover{background:rgba(255,255,255,.06)}
body[data-page="inbox"] .contact:hover{background:#f0f2f5}
body[data-page="inbox"] .contact.active{background:#e8f0ff}
body[data-page="inbox"] .contact:hover{background:rgba(255,255,255,.06)}
body[data-page="inbox"] .contact.active{background:rgba(255,255,255,.10)}
body[data-page="inbox"] .contact img{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
}
body[data-page="inbox"] .contact b{
  display:block;
  font-size:14px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="inbox"] .contact span{
  display:block;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="inbox"] .bulb{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  margin-left:auto;
}
body[data-page="inbox"] .bulb.on{background:#22c55e}

body[data-page="inbox"] .inboxEmpty{
  padding:10px 16px 14px;
  color:var(--muted);
  font-size:12px;
}
body[data-page="inbox"] .inboxSidebar__foot{
  margin-top:auto;
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,.08);
}
body[data-page="inbox"] .inboxLogout{
  width:100%;
  border-radius:999px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}

body[data-page="inbox"] .inboxChat{
  display:flex;
  flex-direction:column;
  background: rgba(7,10,18,.55);
  backdrop-filter: blur(16px);
}
body[data-page="inbox"] .inboxChat__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
}
body[data-page="inbox"] .callActions{
  display:flex;
  gap:8px;
}
body[data-page="inbox"] .callBtn{
  width:36px;
  height:36px;
  border-radius:12px;
  border:0;
  background: linear-gradient(135deg, #2a0a6a, #3b0f92);
  color:#f1e8ff;
  box-shadow: 0 12px 36px rgba(71,20,173,.28), inset 0 0 0 1px rgba(255,255,255,.08);
}
body[data-page="inbox"] .callBtn:hover{
  filter:saturate(1.12);
  transform: translateY(-1px);
}
body[data-page="inbox"] .callBtn.video{
  background: linear-gradient(135deg, #3a0f8a, #8d3dff);
  box-shadow: 0 14px 40px rgba(141,61,255,.32), inset 0 0 0 1px rgba(255,255,255,.10);
}
body[data-page="inbox"] .backBtn{
  display:none;
  background: rgba(255,255,255,.08);
  box-shadow: none;
}
body[data-page="inbox"] .callIcon{
  width:18px;
  height:18px;
  display:block;
}
body[data-page="inbox"] .inboxChat__user{
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
}
body[data-page="inbox"] .inboxChat__avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
}
body[data-page="inbox"] .inboxChat__avatarIcon{
  font-size:18px;
}
body[data-page="inbox"] .inboxChat__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}
body[data-page="inbox"] .inboxChat__avatar.has-img img{display:block}
body[data-page="inbox"] .inboxChat__avatar.has-img .inboxChat__avatarIcon{display:none}
body[data-page="inbox"] .inboxChat__title{
  font-weight:700;
  font-size:15px;
  color:var(--text);
}
body[data-page="inbox"] .chatProfileCard{
  position:absolute;
  top:72px;
  left:18px;
  width:min(360px, 92vw);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(12,14,24,.95);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding:14px;
  display:none;
  z-index:5;
}
body[data-page="inbox"] .chatProfileCard.show{
  display:block;
}
body[data-page="inbox"] .chatProfileCard__head{
  display:flex;
  gap:12px;
  align-items:center;
}
body[data-page="inbox"] .chatProfileCard__avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  overflow:hidden;
  background: rgba(255,255,255,.08);
}
body[data-page="inbox"] .chatProfileCard__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
body[data-page="inbox"] .chatProfileCard__name{
  font-weight:800;
  font-size:15px;
}
body[data-page="inbox"] .chatProfileCard__meta{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}
body[data-page="inbox"] .chatProfileCard__bio{
  margin:10px 0 8px;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.5;
}
body[data-page="inbox"] .chatProfileCard__tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
body[data-page="inbox"] .chatProfileCard__tag{
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
}
body[data-page="inbox"] .chatProfileCard__link{
  display:inline-flex;
  margin-top:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,79,109,.22), rgba(124,77,255,.20));
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
body[data-page="inbox"] .inboxClear{
  border-radius:10px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}

body[data-page="inbox"] .inboxChat__body{
  flex:1;
  overflow:auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  background: rgba(255,255,255,.04);
  -webkit-overflow-scrolling: touch;
}
body[data-page="inbox"] .bubble{
  max-width:72%;
  padding:10px 12px;
  border-radius:18px;
  font-size:13px;
  line-height:1.5;
}
body[data-page="inbox"] .bubble.them{
  background:rgba(255,255,255,.12);
  color:var(--text);
  align-self:flex-start;
}
body[data-page="inbox"] .bubble.me{
  background: linear-gradient(135deg, #ff4d6d, #7c4dff);
  color:#ffffff;
  align-self:flex-end;
}
body[data-page="inbox"] .bubble .time{
  display:block;
  margin-top:6px;
  font-size:11px;
  opacity:.75;
}

body[data-page="inbox"] .inboxChat__composer{
  display:flex;
  gap:10px;
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(7,10,18,.55);
}
body[data-page="inbox"] .inboxChat__input{
  flex:1;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  padding:10px 14px;
  outline:none;
  color:var(--text);
}
body[data-page="inbox"] .inboxChat__send{
  border-radius:999px;
  padding:10px 16px;
  border:0;
  background: linear-gradient(135deg, #ff4d6d, #7c4dff);
  color:#ffffff;
  font-weight:700;
  cursor:pointer;
}
body[data-page="inbox"] .inboxChat__emojiBtn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
body[data-page="inbox"] .inboxChat__stickerBtn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
body[data-page="inbox"] .emojiPicker{
  position:fixed;
  bottom:70px;
  right:24px;
  display:grid;
  grid-template-columns: repeat(8, 1fr);
  gap:6px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,22,.92);
  box-shadow: var(--shadow);
  z-index:80;
}
body[data-page="inbox"] .emojiPicker button{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}
body[data-page="inbox"] .stickerPicker{
  position:fixed;
  bottom:70px;
  right:24px;
  width:300px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,22,.92);
  box-shadow: var(--shadow);
  z-index:80;
  overflow:hidden;
}
body[data-page="inbox"] .stickerGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:8px;
}
body[data-page="inbox"] .sticker{
  width:60px;
  height:60px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-size:26px;
}
body[data-page="inbox"] .bubble.sticker{
  font-size:28px;
  line-height:1;
  padding:8px 12px;
  background: transparent;
}

/* Call upgrade notice */
.callNotice{
  position:fixed;
  inset:0;
  display:none;
  z-index:90;
}
.callNotice.show{display:block}
.callNotice__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

/* Reduce heavy animations inside call notice overlay */
.callNotice__backdrop * {
  -webkit-animation-duration: 0.001ms !important;
  animation-duration: 0.001ms !important;
  -webkit-animation-delay: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0.001ms !important;
}

/* Scroll-reveal helper classes: add `reveal` to elements you want to fade/slide in */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Small additional mobile-friendly defaults */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reduce heavy box-shadows on smaller screens */
@media (max-width: 1024px) {
  :root {
    --card-shadow: 0 6px 18px rgba(0,0,0,0.18);
  }
}
.callNotice__panel{
  position:relative;
  width:min(380px, 90vw);
  margin:20vh auto 0;
  padding:20px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,14,24,.92);
  box-shadow: var(--shadow);
  text-align:center;
}
.callNotice__panel h3{margin:0 0 6px; font-size:20px}
.callNotice__panel p{margin:0 0 14px; color:var(--muted); font-size:13px}


.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.glass{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.kbd{
  display:inline-flex;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  padding:6px 10px;
  font-size:12px;
  color: var(--muted);
}
.hr{
  border:0;
  height:1px;
  background: rgba(255,255,255,.10);
  margin:14px 0;
}
.authInput{
  border-radius:16px;
  padding:14px 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  font-size:15px;
  transition:border-color .15s ease, transform .15s ease, background .15s ease;
}
body[data-page="signup"] .authInput,
body[data-page="signup"] select.authInput{
  border-color: rgba(255,79,216,.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.24)),
    radial-gradient(320px 140px at 12% 20%, rgba(255,79,216,.14), transparent 60%);
  box-shadow: 0 10px 28px rgba(255,79,216,.14), inset 0 0 0 1px rgba(255,255,255,.04);
}
body[data-page="signup"] .authInput:focus,
body[data-page="signup"] select.authInput:focus{
  border-color: rgba(255,79,216,.65);
  box-shadow: 0 0 0 4px rgba(255,79,216,.16);
}
body[data-page="signup"] select.authInput option,
body[data-page="signup"] select.authInput optgroup{
  background: var(--bg0);
  color: var(--text);
}

/* ===== MOBILE PERFORMANCE OPTIMIZATION ===== */
@media (max-width: 768px) {
  /* Disable heavy blur effects on mobile */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .topbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7,10,18,.75);
  }
  
  .authBack {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,.50);
  }
  
  .authCard {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10,12,22,.95);
  }
  
  .callNotice__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  /* Reduce background gradients */
  body {
    background: linear-gradient(180deg, var(--bg0), var(--bg1)) !important;
  }
  
  body[data-page="login"],
  body[data-page="signup"] {
    background: linear-gradient(160deg, #0a0b14, #140a22) !important;
  }
  
  body[data-page="landing"] {
    background: linear-gradient(180deg, var(--bg0), var(--bg1)) !important;
  }
  
  body[data-page="inbox"] {
    background: linear-gradient(180deg, var(--bg0), var(--bg1)) !important;
  }
  
  /* Disable complex animations on mobile */
  .heart,
  .landingHeart,
  .orbit__heart,
  .pumping-heart::before,
  .pumping-heart::after {
    animation: none !important;
    -webkit-animation: none !important;
    display: none !important;
  }
  
  .orb {
    animation: none !important;
    -webkit-animation: none !important;
    opacity: 0.3 !important;
  }
  
  body[data-page="landing"]::after {
    animation: none !important;
    display: none !important;
  }
  
  /* Reduce shadows */
  .pcard {
    box-shadow: 0 8px 24px rgba(0,0,0,.30) !important;
  }
  
  .pill.primary,
  .nav__link.upgrade,
  .sideMenu__item.upgrade {
    box-shadow: none !important;
  }
  
  .authCard {
    box-shadow: 0 12px 40px rgba(0,0,0,.35) !important;
  }
  
  .modal__panel,
  .storyModal__panel,
  .welcomeModal__panel,
  .aboutModal {
    box-shadow: 0 10px 30px rgba(0,0,0,.40) !important;
  }
  
  /* Disable filter effects */
  .pcard img {
    filter: none !important;
  }
  
  .storyModal__media img {
    filter: none !important;
  }
  
  .pumping-heart::after {
    filter: none !important;
  }
  
  /* Reduce text shadows */
  .logoType {
    text-shadow: none !important;
  }
  
  /* Simplify the orbit animation container */
  .orbit {
    display: none !important;
  }
  
  /* Disable drop shadows on hearts */
  .orbit__heart {
    filter: none !important;
  }
  
  .typingLove {
    filter: none !important;
  }
  
  /* Optimize modal backgrounds */
  .modal__panel {
    background: rgba(10,12,22,.95) !important;
  }
  
  .storyModal__panel {
    background: rgba(10,12,22,.95) !important;
  }
  
  .aboutModal {
    background: rgba(7,8,18,.95) !important;
  }
  
  /* Reduce animation durations */
  .searchBtn::after {
    animation: none !important;
  }
  
  .sideMenu__item.upgrade::after {
    animation: none !important;
  }
  
  .mutedLink--premium::after {
    animation: none !important;
  }
  
  /* Disable smooth scroll on mobile */
  html {
    scroll-behavior: auto;
  }
  
  /* Will-change optimization */
  .orbit,
  .orbit__heart,
  .pumping-heart {
    will-change: auto !important;
  }
  
  /* Reduce filter blur effects */
  body[data-page="landing"]::before {
    filter: none !important;
  }
}

/* Extra optimization for very small phones */
@media (max-width: 480px) {
  .sideMenuOrbit {
    display: none !important;
  }
  
  .aboutOrbit {
    display: none !important;
  }
  
  .card-shell .orbit {
    inset: -20px -20px !important;
    display: none !important;
  }
  
  /* Reduce gradient complexity further */
  .authCard::before {
    opacity: 0.3 !important;
  }
  
  .modal__panel::before {
    display: none !important;
  }
  
  .inboxSidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(7,10,18,.80) !important;
  }
  
  .inboxChat {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Payment Method Styles */
.payment-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.payment-option-btn:hover {
  background: var(--card2);
  border-color: var(--brand1);
  transform: translateX(4px);
}

.payment-option-btn:active {
  background: rgba(255, 79, 216, 0.1);
  border-color: var(--brand1);
}

.method-indicator {
  font-size: 18px;
  opacity: 0.6;
}

.payment-icon-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.payment-icon-inline {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.payment-section {
  animation: slideIn 0.3s ease;
}

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

/* Graph-style layout for payment methods (left vertical timeline with nodes) */
.payment-graph{
  position:relative;
  padding-left:88px;
}
.payment-graph::before{
  content: "";
  position:absolute;
  left:48px;
  top:16px;
  bottom:16px;
  width:3px;
  background: linear-gradient(180deg, rgba(255,79,216,.12), rgba(124,77,255,.10));
  border-radius:2px;
  pointer-events:none;
}
.payment-option-btn.graph-node{
  position:relative;
  padding:14px 16px 14px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.06));
  border-radius:12px;
}
.payment-option-btn.graph-node::before{
  content: "";
  position:absolute;
  left:48px;
  top:50%;
  transform:translate(-50%,-50%);
  width:18px;
  height:18px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #ff9fb0, #ff4d6d);
  box-shadow: 0 6px 18px rgba(255,77,109,.12);
  border:3px solid rgba(10,12,24,.95);
}

/* Slight offset for the icon so text aligns visually with graph */
.payment-option-btn.graph-node .payment-icon-logo{ transform: translateX(6px); }

@media (max-width: 680px){
  .payment-graph{ padding-left:68px; }
  .payment-graph::before{ left:38px; }
  .payment-option-btn.graph-node::before{ left:38px; }
}

/* ================================================
   COMPREHENSIVE MOBILE & CROSS-BROWSER RESPONSIVE
   ================================================ */

/* Mobile-first improvements for all screen sizes */
@media (max-width: 1024px) {
  .wrap {
    width: 95vw;
    padding: 0 16px;
  }
  
  .topbar__inner {
    padding: 12px 16px;
  }
  
  .grid {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* Typography scaling for mobile */
  h1 {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.2;
  }
  
  h2 {
    font-size: clamp(20px, 5vw, 26px);
  }
  
  h3 {
    font-size: clamp(18px, 4.5vw, 22px);
  }
  
  /* Touch-friendly buttons */
  .btn, .pill {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 15px;
  }
  
  /* Profile cards responsive */
  .pcard {
    margin-bottom: 16px;
  }
  
  .pcard__body {
    padding: 14px;
  }
  
  /* Modal improvements */
  .modal__inner {
    margin: 20px;
    max-width: calc(100vw - 40px);
  }
  
  /* Inbox chat adjustments */
  .chatBox {
    height: calc(100vh - 180px);
    height: calc(100dvh - 180px);
  }
  
  .chatInput {
    padding: 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Side menu mobile optimizations */
  .sideMenu__panel {
    width: min(85vw, 320px);
  }
  
  /* Form inputs */
  .field input,
  .field textarea,
  .field select {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 14px 16px;
  }
  
  /* Card spacing */
  .cardbox {
    padding: 18px;
    margin-bottom: 16px;
  }
  
  /* Stories grid */
  #stories {
    gap: 14px;
    padding: 0 8px;
  }
  
  /* Filter panel */
  .filterPanel {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  .wrap {
    width: 100%;
    padding: 0 12px;
  }
  
  .topbar {
    padding: 10px 12px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .logoMark {
    width: 32px;
    height: 32px;
  }
  
  /* Compact grid for small screens */
  .grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  }
  
  /* Compact buttons */
  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  /* Profile card adjustments */
  .pcard__name {
    font-size: 15px;
  }
  
  .pcard__sub {
    font-size: 13px;
  }
  
  .pcard__tags .tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  /* Modal full screen on very small devices */
  .modal__inner {
    margin: 10px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  
  /* Inbox adjustments */
  .chatBox {
    height: calc(100vh - 160px);
    height: calc(100dvh - 160px);
  }
  
  .chatMsg {
    max-width: 85%;
    font-size: 14px;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar {
    min-height: 50px;
    padding: 8px 16px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .logoMark {
    width: 28px;
    height: 28px;
  }
  
  .chatBox {
    height: calc(100vh - 120px);
  }
  
  .modal__inner {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Tablet-specific improvements */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .layout {
    grid-template-columns: 240px 1fr;
  }
  
  .wrap {
    width: 92vw;
  }
}

/* Large tablet and small desktop */
@media (min-width: 1024px) and (max-width: 1440px) {
  .wrap {
    width: min(1200px, 94vw);
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* 4K and Ultra-wide displays */
@media (min-width: 2560px) {
  .wrap {
    max-width: 1600px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
  }
}

/* High contrast mode support (Windows) */
@media (prefers-contrast: high) {
  .btn,
  .pcard,
  .cardbox {
    border-width: 2px;
  }
  
  .text,
  h1, h2, h3 {
    font-weight: 600;
  }
}

/* Dark mode media query support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg0: #070A12;
    --bg1: #090D19;
  }
}

/* Light mode media query support - keep dark everywhere */
@media (prefers-color-scheme: light) {
  body:not([data-theme="dark"]) {
    --bg0: #070A12;
    --bg1: #090D19;
    --text: #EAF0FF;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .orb,
  .emoji-orbit,
  .landingHeart {
    animation: none !important;
  }
}

/* Print styles */
@media print {
  .topbar,
  .sideMenu,
  .filterPanel,
  .bg-float,
  .emoji-orbit,
  .orb,
  .btn,
  button {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .pcard,
  .cardbox {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn,
  a,
  button {
    min-height: 48px;
    min-width: 48px;
  }

  body[data-page="people"] .searchIconBtn{
    display: none !important;
  }
  
  /* Remove hover effects on touch devices */
  .btn:hover,
  .pcard:hover,
  .pill:hover {
    transform: none;
  }
  
  /* Add active state instead */
  .btn:active,
  .pcard:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* Pointer device optimizations */
@media (hover: hover) and (pointer: fine) {
  /* Enhance hover effects on desktop */
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
  }
}

/* Browser-specific fixes */

/* Safari on iOS - fix 100vh issue */
@supports (-webkit-touch-callout: none) {
  .chatBox,
  .full-height {
    height: -webkit-fill-available;
  }
}

/* Firefox scrollbar width */
@-moz-document url-prefix() {
  * {
    scrollbar-width: thin;
  }
}

/* Edge browser fixes */
@supports (-ms-ime-align: auto) {
  .grid {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

/* Chrome-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  select {
    padding-right: 30px;
  }
}

/* Ensure responsive images */
img {
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
}

/* Responsive video embeds */
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Safe area adjustments for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .chatInput {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  
  .sideMenu__panel {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Prevent text overflow */
.pcard__name,
.pcard__sub,
h1, h2, h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Ensure clickable areas don't overlap */
.pcard__actions button {
  z-index: 1;
  position: relative;
}
/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Image loading optimization */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  content-visibility: auto;
  will-change: transform;
}

/* Force image reload when src changes */
.avatar__img,
.avatarBox img,
.profileHero__media img {
  image-rendering: auto;
}

/* Prevent layout shift during image load */
.pcard img,
.profileHero__media img {
  aspect-ratio: 3/4;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  min-height: 300px;
}

/* Loading spinner for images */
.pcard img:not([src]),
.profileHero__media img:not([src]) {
  position: relative;
}

.pcard img:not([src])::before,
.profileHero__media img:not([src])::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Faster transitions */
.pcard,
.btn,
.pill {
  transition-duration: 0.2s !important;
}

/* GPU acceleration for smooth scrolling */
.grid,
.layout,
main {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize rendering performance */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reduce motion for performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===== PROFILE CARD ACTION BUTTONS ===== */
.smallbtn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.smallbtn:hover {
  background: rgba(255,79,216,.2);
  border-color: rgba(255,79,216,.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,79,216,.3);
}

.smallbtn.chat {
  background: linear-gradient(135deg, rgba(255,79,216,.15), rgba(124,77,255,.15));
  border-color: rgba(255,79,216,.3);
}

.smallbtn.view {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}

.pcard__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: space-between;
}
/* ===== STRIPE PAYMENT STYLES ===== */
.payment-link {
  color: var(--brand1);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.payment-link:hover {
  color: var(--brand2);
}

.payment-btn-gradient {
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: white;
  border: none;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 79, 216, 0.35);
  position: relative;
  overflow: hidden;
}

.payment-btn-gradient:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 79, 216, 0.45);
}

.payment-btn-gradient:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.payment-btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.payment-btn-gradient:hover::before {
  left: 100%;
}

/* Stripe Card Element focus styles */
#stripe-card-element {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#stripe-card-element.StripeElement--focus {
  border-color: var(--brand1) !important;
  box-shadow: 0 0 0 3px rgba(255, 79, 216, 0.15);
}

#stripe-card-element.StripeElement--invalid {
  border-color: var(--bad) !important;
}

/* Payment input fields */
.payment-input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.payment-input:focus {
  outline: none;
  border-color: var(--brand1);
  box-shadow: 0 0 0 3px rgba(255, 79, 216, 0.15);
}

.payment-input::placeholder {
  color: var(--muted);
}

/* Payment tabs */
.payment-tab {
  padding: 14px 28px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.payment-tab:hover {
  background: var(--card2);
  border-color: rgba(255, 79, 216, 0.3);
}

.payment-tab.active {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.15), rgba(124, 77, 255, 0.15));
  border-color: var(--brand1);
  color: var(--brand1);
}

.payment-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-radius: 3px 3px 0 0;
}