body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#f7efe9;
}

/* TOPBAR */
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px;
    background:#fff7f1;
}

.topbar h1{
    margin:0;
    font-size:28px;
}

.icons{
    display:flex;
    gap:10px;
}

.icon{
    width:40px;
    height:40px;
    background:#ffe3d9;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
}

.icon.dot::after{
    content:"";
    width:8px;
    height:8px;
    background:#6c4eff;
    border-radius:50%;
    position:absolute;
}
.feedwrap{ padding-bottom:110px; }

.likebtn{
  border:0;
  cursor:pointer;
  font:inherit;
}

.skeleton{ opacity:.7; }

/* Modal */
.modalx{ position:fixed; inset:0; display:none; z-index:9999; }
.modalx.show{ display:block; }
.modalx-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.35); }
.modalx-card{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(520px, 92vw);
  background:#fff;
  border-radius:18px;
  padding:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.modalx-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:4px 4px 10px;
}
.modalx-title{ font-weight:900; font-size:18px; }
.modalx-close{
  border:0; background:#f3f4f6;
  width:36px; height:36px; border-radius:12px;
  cursor:pointer; font-weight:900;
}
.modalx-textarea{
  width:100%;
  min-height:110px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  padding:12px;
  resize:none;
  outline:none;
}
.modalx-actions{ display:flex; justify-content:flex-end; margin-top:10px; }
.btnx{
  border:0;
  background:#ff7a59;
  color:#fff;
  font-weight:900;
  padding:10px 16px;
  border-radius:14px;
  cursor:pointer;
}
.modalx-hint{ margin-top:8px; font-size:13px; color:#6b7280; }
.avatar-ph{
  width:45px; height:45px; border-radius:15px;
  background:rgba(0,0,0,.08);
}
/* STORIES */
.stories{
    display:flex;
    gap:15px;
    padding:15px;
    overflow:auto;
}

.story{
    text-align:center;
}

.story img{
    width:70px;
    height:70px;
    border-radius:18px;
    object-fit:cover;
}

.story.me{
    position:relative;
}

.story.me .plus{
    position:absolute;
    bottom:25px;
    right:5px;
    background:#6c4eff;
    color:#fff;
    border-radius:8px;
    padding:2px 6px;
    font-weight:bold;
}

.story.live{
    position:relative;
}

.story.live .badge{
    position:absolute;
    bottom:25px;
    left:15px;
    background:#ff9d3c;
    color:#fff;
    padding:2px 6px;
    border-radius:8px;
    font-size:12px;
}

/* POST */
.post{
    background:#fff7f1;
    margin:15px;
    padding:15px;
    border-radius:20px;
}

.post-head{
    display:flex;
    align-items:center;
    gap:10px;
}

.post-head img{
    width:45px;
    height:45px;
    border-radius:15px;
}

.post-head h3{
    margin:0;
}

.post-head small{
    color:gray;
}

.share{
    margin-left:auto;
    font-size:20px;
    color:#ff7a59;
}

.post-text{
    margin:15px 0;
}

.post-img{
    width:100%;
    border-radius:20px;
}

.post-actions{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.like{
    background:#ffe3d9;
    padding:8px 15px;
    border-radius:15px;
}

.comment{
    background:#e5dcff;
    padding:8px 15px;
    border-radius:15px;
}

/* TABBAR */
.tabbar{
    position:fixed;
    bottom:0;
    width:100%;
    height:70px;
    background:#fff;
    display:flex;
    justify-content:space-around;
    align-items:center;
}

.tab{
    font-size:22px;
    color:#aaa;
}

.tab.active{
    color:#ff7a59;
}

.tab.plus{
    background:#ff7a59;
    color:#fff;
    padding:10px 15px;
    border-radius:15px;
    transform:translateY(-20px);
}