:root{--bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#f0f4fa;
  --text:#172033;
  --muted:#6f7b90;
  --line:#e5eaf2;
  --primary:#3867ff;
  --primary-2:#6b4cff;
  --primary-soft:#edf2ff;
  --pink:#ff4f93;
  --green:#20b486;
  --danger:#ef476f;
  --shadow:0 12px 35px rgba(28,39,68,.09);
  --shadow-sm:0 5px 18px rgba(28,39,68,.07);
  --radius:18px;
  --radius-sm:12px;
  --max:1180px;}
*{box-sizing:border-box}
html{scroll-behavior:smooth;
  background:var(--bg);}
body{
  margin:0;
  min-width:320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(56,103,255,.07), transparent 28rem),
    radial-gradient(circle at 95% 10%, rgba(255,79,147,.055), transparent 24rem),
    var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5;}
button,input,textarea,select{font:inherit}
button{
  border:0;
  cursor:pointer;}
a{color:inherit;
  text-decoration:none;}
/* ---------- APP SHELL ---------- */
header,
.topbar,
.navbar,
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(229,234,242,.9);}
header > *,
.topbar > *,
.navbar > *,
.site-header > *{
  max-width:var(--max);
  margin-left:auto;
  margin-right:auto;
}nav:not(.mobile-nav){
  display:flex;
  align-items:center;
  gap:8px;}
nav:not(.mobile-nav) a,
nav:not(.mobile-nav) button,
.nav-link{display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 13px;
  border-radius:11px;
  background:transparent;
  color:var(--muted);
  font-weight:650;
  transition:.18s ease;
}
nav:not(.mobile-nav) a:hover,
nav:not(.mobile-nav) button:hover,
.nav-link:hover{
  color:var(--primary);
  background:var(--primary-soft);
}
/* ---------- LOGO ---------- */
.logo{display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:20px;
  font-weight:850;
  letter-spacing:-.5px;
  color:#1d2a52;
}.logo span{color:var(--primary);}
/* ---------- MAIN ---------- */
main{
  width:min(100% - 32px,var(--max));
  margin:28px auto 100px;}
section{
  margin-bottom:24px;}
/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4{
  margin:0 0 10px;
  color:var(--text);
  letter-spacing:-.025em;}
h1{font-size:clamp(32px,5vw,58px);line-height:1.02}
h2{font-size:clamp(24px,3vw,34px)}
h3{font-size:20px}
p{color:var(--muted);}
small{color:var(--muted);}
/* ---------- BUTTONS ---------- */
.primary,
button.primary,
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  font-weight:800;
  box-shadow:0 8px 20px rgba(56,103,255,.22);
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;}.primary:hover,
button.primary:hover,
.btn-primary:hover{
  transform:translateY(-1px);
  filter:saturate(1.08);
  box-shadow:0 11px 25px rgba(56,103,255,.28);}.outline,
button.outline,
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:9px 17px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text);
  font-weight:750;
  box-shadow:var(--shadow-sm);}.outline:hover,
button.outline:hover,
.btn-outline:hover{border-color:#cbd5e5;
  background:var(--surface-2);}
/* ---------- CARDS ---------- */
.card,
.panel,
.profile-card,
.post,
.feed-card,
.chat-card,
.story-card,
.person-card{background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);}.card,.panel{ padding:22px;}
/* ---------- HERO / HOME ---------- */
.hero{position:relative;
  overflow:hidden;
  min-height:470px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:30px;
  padding:48px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 20%,rgba(108,76,255,.20),transparent 18rem),
    radial-gradient(circle at 75% 80%,rgba(56,103,255,.16),transparent 20rem),
    #fff;
  box-shadow:var(--shadow);}.hero:after{ content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-100px;
  bottom:-150px;
  border-radius:50%;
  background:rgba(56,103,255,.07);
  pointer-events:none;}
.hero h1{  max-width:650px;}
.hero p{max-width:620px;
  font-size:17px;}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;}
.hero-media,
.hero-visual{min-height:330px;
  display:flex;
  align-items:center;
  justify-content:center;}
/* ---------- DISCOVER ---------- */
.grid,
.people-grid,
.profile-grid,
.discover-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}.person-card{
  overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease;
}.person-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}.person-card img,
.profile-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}.person-card .content{
  padding:16px;
}.person-card h3{
  margin-bottom:3px;}
/* ---------- AVATARS ---------- */
.avatar,
.avatar img{
  width:48px;
  height:48px;
  border-radius:50%;
}.avatar{
  flex:0 0 auto;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#dfe7ff,#f9d9e9);
  color:#39456a;
  font-weight:850;
}.avatar-lg,
.avatar-lg img{
  width:82px;
  height:82px;
}.avatar img{
  object-fit:cover;}
/* ---------- STORIES ---------- */
.stories{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:4px 2px 12px;
  scrollbar-width:none;}.
stories::-webkit-scrollbar{display:none}
.story{
  flex:0 0 78px;
  text-align:center;
}.story .avatar{
  width:66px;
  height:66px;
  margin:0 auto 6px;
  padding:3px;
  border:2px solid var(--primary);
  background:var(--surface);
}.story span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  color:var(--muted);}
/* ---------- FEED ---------- */
.feed{
  width:min(100%,720px);
  margin:0 auto;
}.post{
  overflow:hidden;
  margin-bottom:18px;
}.post-header,
.feed-header{
  display:flex;
  align-items:center;
  gap:11px;
  padding:15px 17px;
}.post-header .meta,
.feed-header .meta{
  min-width:0;
  flex:1;
}.post-header strong,
.feed-header strong{
  display:block;
  font-size:14px;
}.post-header small,
.feed-header small{
  font-size:12px;
}.post-media,
.feed-media{
  width:100%;
  max-height:720px;
  object-fit:cover;
  display:block;
  background:#eef2f7;
}.post-body,
.feed-body{
  padding:15px 17px;
}.post-caption{
  margin:0 0 12px;
  color:var(--text);
}.post-actions,
.feed-actions{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 11px 13px;
}.post-actions button,
.feed-actions button,
.action-btn{
  min-height:38px;
  padding:7px 11px;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font-weight:750;
}.post-actions button:hover,
.feed-actions button:hover,
.action-btn:hover{
  background:var(--surface-2);
  color:var(--primary);
}.like,
.liked{
  color:var(--danger)!important;
}.comment-count{
  color:var(--muted);}
/* ---------- CREATE POST ---------- */
.composer,
.create-post{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  margin-bottom:18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}.composer input,
.composer textarea,
.create-post input,
.create-post textarea{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:var(--surface-2);
  border-radius:12px;
  padding:12px 14px;
  color:var(--text);
}.composer textarea,
.create-post textarea{
  min-height:90px;
  resize:vertical;}
/* ---------- COMMENTS ---------- */
.comments{
  border-top:1px solid var(--line);
  padding:12px 17px 16px;
}.comment{
  display:flex;
  gap:9px;
  padding:8px 0;
.comment .avatar{
  width:34px;
  height:34px;
}.comment-body{
  flex:1;
  padding:9px 11px;
  border-radius:12px;
  background:var(--surface-2);
}.comment-body strong{
  display:block;
  font-size:13px;}
/* ---------- PROFILE ---------- */
.profile-cover{
  height:190px;
  border-radius:var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(135deg,rgba(56,103,255,.88),rgba(107,76,255,.78)),
    radial-gradient(circle at 70% 30%,#fff,transparent);
}.profile-main{
  position:relative;
  padding:0 24px 24px;
}.profile-main .avatar-lg{
  margin-top:-42px;
  border:5px solid var(--surface);
  box-shadow:var(--shadow-sm);
}.profile-info{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-top:10px;
}.profile-stats{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-top:18px;}
.profile-stat strong{
  display:block;
  font-size:18px;}
.profile-stat span{
  color:var(--muted);
  font-size:12px;}
/* ---------- CHAT ---------- */
.chat-layout{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  min-height:650px;
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);}
.chat-list{
  border-right:1px solid var(--line);
  background:#fbfcfe;}
.chat-user{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 15px;
  border-bottom:1px solid var(--line);}
.chat-user:hover,
.chat-user.active{
  background:var(--primary-soft);}
.chat-window{
  display:flex;
  flex-direction:column;
  min-width:0;}
.chat-messages{
  flex:1;
  overflow:auto;
  padding:22px;}
.message{
  max-width:min(72%,500px);
  padding:10px 13px;
  margin-bottom:9px;
  border-radius:15px;
  background:var(--surface-2);
  color:var(--text);}
.message.me{
  margin-left:auto;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));}
.chat-input{
  display:flex;
  gap:8px;
  padding:13px;
  border-top:1px solid var(--line);}
.chat-input input{
  flex:1;
  min-width:0;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px 13px;
  outline:0;}
.chat-input input:focus{
  border-color:#9eb2ff;
  box-shadow:0 0 0 3px var(--primary-soft);}
/* ---------- MODALS / TOAST ---------- */
.modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(14,21,39,.58);
  backdrop-filter:blur(7px);}
.modal > div,
.modal-content{
  width:min(100%,560px);
  max-height:90vh;
  overflow:auto;
  background:var(--surface);
  border-radius:22px;
  padding:24px;
  box-shadow:0 30px 80px rgba(0,0,0,.22);}
.toast{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:1200;
  max-width:min(90vw,380px);
  padding:13px 16px;
  border-radius:13px;
  background:#172033;
  color:#fff;
  box-shadow:var(--shadow);}
/* ---------- AGE GATE ---------- */
.age-gate{
  position:fixed;
  inset:0;
  z-index:5000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:
    radial-gradient(circle at 20% 15%,rgba(56,103,255,.35),transparent 25rem),
    radial-gradient(circle at 85% 80%,rgba(255,79,147,.25),transparent 25rem),
    #11182a;}
.age-gate.hidden{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;}
.age-card{
  width:min(100%,560px);
  padding:38px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:28px;
  background:rgba(255,255,255,.96);
  box-shadow:0 35px 90px rgba(0,0,0,.35);
  text-align:center;}
.age-card .logo{
  justify-content:center;
  margin-bottom:24px;}
.age-symbol{
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  margin:0 auto 20px;
  border-radius:24px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  font-size:30px;
  box-shadow:0 15px 30px rgba(56,103,255,.28);}
.age-card h1{
  font-size:clamp(28px,5vw,42px);}
.age-card p{
  margin:10px auto;
  max-width:460px;}
.age-card .primary{
  width:100%;
  margin-top:16px;}
/* ---------- MOBILE NAV ---------- */
.mobile-nav{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:900;
  display:none;
  grid-template-columns:repeat(5,1fr);
  padding:7px;
  border:1px solid var(--line);
  border-radius:17px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(18px);
  box-shadow:0 15px 40px rgba(24,34,58,.16);
}.mobile-nav button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-height:52px;
  border-radius:12px;
  background:transparent;
  color:var(--muted);
  font-weight:750;
  font-size:11px;
}.mobile-nav button:hover,
.mobile-nav button.active{
  background:var(--primary-soft);
  color:var(--primary);
}.mobile-nav span:first-child{
  font-size:19px;
  line-height:1;}
/* ---------- SEARCH / FILTERS ---------- */
.search,
.search-box{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  max-width:520px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}.search input,
.search-box input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:10px 12px;
  background:transparent;
}.chips,
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}.chip{
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--muted);
  font-weight:700;
}.chip:hover,
.chip.selected,
.chip.active{
  border-color:#b9c7ff;
  background:var(--primary-soft);
  color:var(--primary);
}/* ---------- MEDIA UPLOAD ---------- */
.media-preview{
  width:100%;
  overflow:hidden;
  border-radius:14px;
  background:#eef2f7;
}.media-preview img,
.media-preview video{
  display:block;
  width:100%;
  max-height:600px;
  object-fit:contain;}
/* ---------- ACCESSIBILITY ---------- */
:focus-visible{
  outline:3px solid rgba(56,103,255,.3);
  outline-offset:2px;
}[hidden]{
  display:none!important;}
/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .hero{
    grid-template-columns:1fr;
    padding:34px;
  }.hero-media,
  .hero-visual{
    min-height:230px;
  }.grid,
  .people-grid,
  .profile-grid,
  .discover-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }.chat-layout{
    grid-template-columns:250px minmax(0,1fr);
  }}@media (max-width:680px){
  body{
    padding-bottom:76px;
  } main{width:min(100% - 20px,var(--max));
    margin-top:16px;
  }header,
  .topbar,
  .navbar,
  .site-header{
    position:sticky;
  }nav:not(.mobile-nav){
    gap:2px;
  }nav:not(.mobile-nav) a,
  nav:not(.mobile-nav) button,
  .nav-link{
    padding:7px 8px;
    font-size:13px;
  }.hero{
    min-height:auto;
    padding:28px 22px;
    border-radius:22px;
  } .hero h1{
    font-size:39px;
  }.hero p{
    font-size:15px;
  } .hero-actions{
    display:grid;
    grid-template-columns:1fr;
  } .grid,
  .people-grid,
  .profile-grid,
  .discover-grid{
    grid-template-columns:1fr;
  }.chat-layout{
    display:block;
    min-height:0;
  }.chat-list{
    display:none;
  }.chat-window{
    min-height:620px;
  }.profile-info{
    display:block;
  }.profile-cover{
    height:145px;
  }.profile-main{
    padding:0 17px 20px;
  }.age-card{
    padding:28px 20px;
    border-radius:22px;
  }.mobile-nav{
    display:grid;
  }}@media (max-width:430px){
  .age-card h1{
    font-size:29px;
  }.card,
  .panel{
    padding:16px;
  } .post-header,
  .feed-header{
    padding:13px;
  }.post-body,
  .feed-body{
    padding:13px;}
 .post-actions,
  .feed-actions{
    padding-left:7px;
    padding-right:7px;}}
