:root{
  --bg1:#b9dcff; --bg2:#e9f4ff; --ink:#0b2342; --muted:#385175;
  --card:#fff; --accent:#0ea5e9; --ok:#22c55e; --warn:#f59e0b; --err:#ef4444; --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink);
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}
.app-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(180%) blur(8px);
  background:rgba(245,249,255,.7);
  border-bottom:1px solid rgba(0,0,0,.06);
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px;
}
.brand{font-weight:800; letter-spacing:.2px}
.nav .btn{margin-left:8px}

.container{padding:16px}
.container.narrow{max-width:480px; margin:0 auto}
.title{margin:.2rem 0 .4rem}
.subtitle{margin:1rem 0 .6rem}
.muted{color:var(--muted); font-size:.95rem}
.small{font-size:.85rem}

.btn{
  appearance:none; border:0; border-radius:12px;
  background:#e6f2ff; padding:10px 14px; font-weight:600; cursor:pointer;
}
.btn.primary{background:var(--accent); color:white}
.btn.success{background:var(--ok); color:white}
.btn:disabled{opacity:.6; cursor:not-allowed}
.btn.icon{ padding:6px 10px; background:#f0f6ff; }
.btn.danger{ background:var(--err); color:white }

.card{background:var(--card); border-radius:var(--radius); padding:14px; box-shadow:0 6px 20px rgba(10,40,90,.08);}

.profile-card{
  display:flex; gap:12px; align-items:center;
  background:rgba(255,255,255,.85); padding:10px; border-radius:16px;
  box-shadow:0 6px 20px rgba(10,40,90,.08);
}
.avatar{width:120px; height:120px; border-radius:20%; object-fit:cover}
.profile-meta .name{font-weight:700; font-size:1.15rem}
.profile-meta .handle{font-weight:600}
.socials a{margin-right:8px; text-decoration:none; color:var(--accent)}

.actions{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap}

.bubble-stack{display:flex; flex-direction:column; gap:14px}
.bubble{
  position:relative; background:white; padding:16px 16px 18px 16px;
  border-radius:24px; box-shadow:0 12px 28px rgba(10,40,90,.14);
  line-height:1.35;
}
.bubble .bubble-toolbar{ position:absolute; top:8px; right:8px; display:flex; gap:6px; }
.bubble::after, .bubble::before{
  content:""; position:absolute; bottom:-8px; left:18px;
  width:14px; height:14px; background:white; border-radius:50%;
  box-shadow:0 12px 28px rgba(10,40,90,.14);
}
.bubble::before{ bottom:-18px; left:8px; width:10px; height:10px; opacity:.85; }
.bubble textarea, .bubble input{
  width:100%; border:0; outline:0; resize:vertical; min-height:44px;
  background:transparent; font-size:1rem; color:var(--ink);
}

.inbox .item{padding:12px; border-radius:14px; background:rgba(255,255,255,.85); box-shadow:0 6px 18px rgba(10,40,90,.08); cursor:pointer}
.inbox .row{display:flex; align-items:center; gap:10px}
.inbox .avatar-sm{width:52px; height:52px; border-radius:12px; object-fit:cover}

.tabbar{display:flex; gap:8px; margin:8px 0 12px}
.tab{border:0; background:#eef6ff; padding:8px 12px; border-radius:10px; font-weight:600; cursor:pointer}
.tab.active{background:var(--accent); color:white}

.card-list .item{padding:12px; border-radius:12px; background:white; box-shadow:0 6px 18px rgba(10,40,90,.08); margin-bottom:10px; cursor:pointer}
.thread.hidden{display:none}
.chat{background:white; border-radius:12px; padding:10px; height:320px; overflow:auto; box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
.msg{max-width:76%; padding:10px 12px; border-radius:16px; margin:8px 0}
.msg.me{background:#e8f3ff; margin-left:auto}
.msg.them{background:#f6f7fb}
.chat-form{display:flex; gap:8px; margin-top:8px}
.chat-form input{flex:1; padding:10px 12px; border-radius:10px; border:1px solid rgba(0,0,0,.1)}

@media (prefers-reduced-motion: no-preference){
  body{ background-size:cover; animation: skyfloat 35s linear infinite alternate}
}
@keyframes skyfloat{ 0%{ background-position: 0 0} 100%{ background-position: 0 18%} }

.share{margin-top:14px}
.share-row{display:flex; gap:8px}
.share-row input{flex:1; padding:10px 12px; border-radius:10px; border:1px solid rgba(0,0,0,.1); background:white}
