/* =========================================================================
   SnapVik - stylesheet
   ========================================================================= */

:root {
  --bg:         #f5f4fb;
  --surface:    #ffffff;
  --border:     #e7e4f1;
  --text:       #211d3b;
  --text-soft:  #8b88a6;
  --brand:      #6d2fe6;
  --brand-dark: #5a23c8;
  --like:       #ff2e74;
  --radius:     16px;
  --grad: linear-gradient(135deg,#1fd6c9 0%,#3b8bff 38%,#7b3ff2 70%,#e0379b 100%);
  --shadow: 0 8px 28px rgba(45,20,95,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 8px 18px; border-radius: 980px; font-size: 14px;
  transition: opacity .15s, transform .05s, box-shadow .15s;
}
.btn:hover { opacity: .92; box-shadow: 0 4px 14px rgba(109,47,230,.32); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-block { display: flex; width: 100%; padding: 9px; }
.btn-secondary { background: #efecf9; color: var(--text); }
.btn-secondary:hover { box-shadow: none; background: #e5e0f5; }
.btn-danger { background: var(--like); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-link { color: var(--brand); font-weight: 600; background: none; padding: 0; }
.text-link { color: var(--brand-dark); font-weight: 600; }

/* --- Forms --------------------------------------------------------------- */
.field {
  width: 100%; background: #faf9fd; border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 12px; margin-bottom: 8px; color: var(--text);
}
.field:focus { outline: none; border-color: var(--brand); background: #fff; }
textarea.field { resize: vertical; min-height: 80px; }
label.lbl { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 13px; }

/* Captcha + OTP */
.captcha-box { margin-bottom: 8px; }
.captcha-img {
  display: block; margin: 0 auto 8px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; width: 170px; height: 56px;
}
.otp-input {
  width: 100%; text-align: center; font-size: 30px; font-weight: 800;
  letter-spacing: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: 12px; background: #faf9fd; color: var(--text);
}
.otp-input:focus { outline: none; border-color: var(--brand); background: #fff; }
.otp-note {
  background: #f3effe; color: var(--brand-dark); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; margin-bottom: 10px;
}

/* --- Flash messages ------------------------------------------------------ */
.flash {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 10px 18px; border-radius: 8px; color: #fff;
  box-shadow: var(--shadow); font-weight: 500; max-width: 90vw;
}
.flash-info  { background: #262626; }
.flash-error { background: var(--like); }
.flash-success { background: #2ecc71; }

/* =========================================================================
   Top navigation
   ========================================================================= */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--border);
  height: 60px;
}
.nav-inner {
  max-width: 975px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.nav-logo img { height: 30px; }
.nav-search {
  flex: 0 1 268px; position: relative;
}
.nav-search input {
  width: 100%; background: #f1eff8; border: 1px solid transparent; border-radius: 980px;
  padding: 9px 16px; color: var(--text);
}
.nav-search input:focus { border-color: var(--brand); background: #fff; }
.nav-search input:focus { outline: none; }
.nav-icons { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-icons a, .nav-icons button { position: relative; color: var(--text); display: flex; }
.nav-icons svg { width: 24px; height: 24px; }
.nav-avatar img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.nav-badge {
  position: absolute; top: -5px; right: -7px; background: var(--like);
  color: #fff; font-size: 11px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Profile dropdown */
.nav-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: 38px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  width: 220px; padding: 6px 0; display: none;
}
.dropdown.open { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px;
}
.dropdown a:hover { background: #fafafa; }
.dropdown hr { border: none; border-top: 1px solid var(--border); }

/* =========================================================================
   Layout shells
   ========================================================================= */
.page { max-width: 975px; margin: 24px auto; padding: 0 20px; }
.feed-layout {
  max-width: 975px; margin: 24px auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
}
.feed-main { max-width: 470px; width: 100%; margin: 0 auto; }

/* =========================================================================
   Stories bar
   ========================================================================= */
.stories {
  display: flex; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 12px; margin-bottom: 22px; overflow-x: auto;
}
.story-item { text-align: center; flex: 0 0 auto; width: 66px; cursor: pointer; }
.story-ring {
  width: 60px; height: 60px; border-radius: 50%; padding: 2.5px;
  background: var(--grad); margin: 0 auto;
}
.story-ring.seen { background: var(--border); }
.story-ring.add { background: var(--border); }
.story-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--surface);
}
.story-add-btn {
  width: 100%; height: 100%; border-radius: 50%; background: #efefef;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--surface); font-size: 26px; color: var(--text-soft);
}
.story-name {
  font-size: 12px; margin-top: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* =========================================================================
   Post card
   ========================================================================= */
.post {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 22px;
}
.post-head { display: flex; align-items: center; gap: 11px; padding: 12px 14px; }
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-32 { width: 32px; height: 32px; }
.avatar-40 { width: 40px; height: 40px; }
.avatar-56 { width: 56px; height: 56px; }
.avatar-150 { width: 150px; height: 150px; }
.post-head .who { line-height: 1.2; }
.post-head .who b { font-weight: 600; }
.post-head .loc { font-size: 12px; color: var(--text-soft); }
.post-head .dot { color: var(--text-soft); }
.post-menu-btn { margin-left: auto; font-size: 20px; }

/* Media + carousel */
.post-media { position: relative; background: #000; }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .3s ease; }
.carousel-track img {
  width: 100%; flex: 0 0 100%; object-fit: cover; max-height: 600px;
}
.carousel-track .slide { flex: 0 0 100%; }
.carousel-track .slide img { width: 100%; max-height: 600px; object-fit: cover; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  color: #262626;
}
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; gap: 4px; justify-content: center;
}
.carousel-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5);
}
.carousel-dots span.active { background: var(--brand); }

/* Action bar */
.post-actions { display: flex; align-items: center; padding: 8px 14px 4px; gap: 14px; }
.icon-btn { display: flex; }
.icon-btn svg { width: 24px; height: 24px; stroke: var(--text); fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.filled svg { fill: var(--text); stroke: var(--text); }
.icon-btn.liked svg { fill: var(--like); stroke: var(--like); }
.icon-btn.saved svg { fill: var(--text); stroke: var(--text); }
.post-actions .spacer { margin-left: auto; }

.post-likes { padding: 2px 14px; font-weight: 600; }
.post-caption { padding: 2px 14px; }
.post-caption b { font-weight: 600; margin-right: 5px; }
.post-comments-link { padding: 4px 14px; color: var(--text-soft); }
.post-time { padding: 4px 14px 12px; color: var(--text-soft); font-size: 11px; text-transform: uppercase; }

.post-comments { padding: 0 14px; }
.comment { margin: 4px 0; }
.comment b { font-weight: 600; margin-right: 5px; }
.comment .c-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.comment .c-meta button { color: var(--text-soft); font-weight: 600; font-size: 12px; }
.comment-reply { margin-left: 26px; }

.add-comment {
  display: flex; align-items: center; border-top: 1px solid var(--border);
  margin-top: 10px; padding: 6px 4px;
}
.add-comment input { flex: 1; border: none; background: none; padding: 8px; }
.add-comment input:focus { outline: none; }

.tag-link { color: var(--brand-dark); }

/* =========================================================================
   Suggestions sidebar
   ========================================================================= */
.sidebar .me {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.sidebar .me .who b { font-weight: 600; }
.sidebar .me .who span { color: var(--text-soft); }
.sidebar h4 {
  color: var(--text-soft); font-size: 14px; margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.suggestion {
  display: flex; align-items: center; gap: 12px; padding: 6px 0;
}
.suggestion .who { flex: 1; line-height: 1.2; }
.suggestion .who b { font-weight: 600; font-size: 14px; }
.suggestion .who span { color: var(--text-soft); font-size: 12px; }
.copyright { color: #c7c7c7; font-size: 12px; margin-top: 20px; }

/* =========================================================================
   Auth pages
   ========================================================================= */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 30px 16px;
  background:
    radial-gradient(820px 460px at 12% -5%, rgba(31,214,201,.20), transparent 62%),
    radial-gradient(820px 460px at 88% 105%, rgba(224,55,155,.20), transparent 62%),
    var(--bg);
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px 40px 24px; width: 350px;
  text-align: center;
}
.auth-card .logo { width: 210px; height: auto; margin: 0 auto 22px; }
.auth-card h1 { font-size: 16px; color: var(--text-soft); margin-bottom: 18px; font-weight: 600; }
.auth-alt {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; width: 350px;
  text-align: center; margin-top: 12px;
}
.auth-sep {
  display: flex; align-items: center; gap: 16px; color: var(--text-soft);
  margin: 16px 0; font-size: 13px; font-weight: 600;
}
.auth-sep::before, .auth-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.form-error {
  background: #fff0f0; color: var(--like); border: 1px solid #f5c2c7;
  border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px;
}

/* =========================================================================
   Profile page
   ========================================================================= */
.profile-head {
  display: flex; gap: 60px; padding: 20px 0 40px;
  border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.profile-head .avatar-wrap { flex: 0 0 auto; padding-left: 30px; }
.profile-info { flex: 1; }
.profile-info .top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-info .top h2 { font-size: 20px; font-weight: 400; }
.verified { width: 16px; height: 16px; vertical-align: -2px; }
.profile-stats { display: flex; gap: 36px; margin: 20px 0; }
.profile-stats b { font-weight: 600; }
.profile-bio b { font-weight: 600; }
.profile-tabs {
  display: flex; justify-content: center; gap: 60px;
  border-top: 1px solid var(--border); margin-top: -21px;
}
.profile-tabs a {
  display: flex; align-items: center; gap: 6px; padding: 16px 0;
  color: var(--text-soft); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; border-top: 1px solid transparent;
  margin-top: -1px;
}
.profile-tabs a.active { color: var(--text); border-top-color: var(--text); }

/* =========================================================================
   Post grid (profile / explore / saved)
   ========================================================================= */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.grid-item {
  position: relative; aspect-ratio: 1 / 1; background: #efefef; overflow: hidden;
}
.grid-item img { width: 100%; height: 100%; object-fit: cover; }
.grid-item .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  color: #fff; font-weight: 700; opacity: 0; transition: opacity .15s;
}
.grid-item:hover .overlay { opacity: 1; }
.grid-item .overlay span { display: flex; align-items: center; gap: 6px; }
.grid-item .overlay svg { width: 19px; height: 19px; fill: #fff; stroke: #fff; stroke-width: 2; }
.grid-item .multi {
  position: absolute; top: 8px; right: 8px; color: #fff;
}
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-soft);
}
.empty-state .ring {
  width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--text);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 26px;
}
.empty-state h3 { font-size: 22px; font-weight: 300; color: var(--text); margin-bottom: 6px; }

/* =========================================================================
   Cards / generic panels
   ========================================================================= */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h2 { font-size: 18px; margin-bottom: 14px; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }

/* =========================================================================
   Notifications
   ========================================================================= */
.notif {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px;
}
.notif.unread { background: #f3effe; border-radius: 10px; }
.notif .text { flex: 1; }
.notif .text b { font-weight: 600; }
.notif .when { color: var(--text-soft); font-size: 12px; }
.notif .thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }

/* =========================================================================
   Search results
   ========================================================================= */
.result-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 6px;
  border-radius: 8px;
}
.result-row:hover { background: #fafafa; }
.result-row .who b { font-weight: 600; }
.result-row .who span { color: var(--text-soft); }

/* =========================================================================
   Messages
   ========================================================================= */
.dm {
  display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 110px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.dm-list { border-right: 1px solid var(--border); overflow-y: auto; }
.dm-list .head { padding: 18px; font-weight: 700; border-bottom: 1px solid var(--border); }
.dm-conv {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px;
}
.dm-conv:hover, .dm-conv.active { background: #fafafa; }
.dm-conv .who { flex: 1; line-height: 1.3; }
.dm-conv .who b { font-weight: 600; }
.dm-conv .who span { color: var(--text-soft); font-size: 13px; }
.dm-conv .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

.dm-thread { display: flex; flex-direction: column; }
.dm-thread .head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); font-weight: 600;
}
.dm-messages {
  flex: 1; overflow-y: auto; padding: 18px; display: flex;
  flex-direction: column; gap: 6px;
}
.bubble {
  max-width: 65%; padding: 9px 13px; border-radius: 20px; word-wrap: break-word;
}
.bubble.in  { background: #efefef; align-self: flex-start; }
.bubble.out { background: var(--brand); color: #fff; align-self: flex-end; }
.dm-compose {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border);
}
.dm-compose input {
  flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px;
}
.dm-compose input:focus { outline: none; }
.dm-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); height: 100%;
}

/* =========================================================================
   Modal
   ========================================================================= */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: none; align-items: center; justify-content: center; z-index: 300;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 12px; max-width: 400px;
  width: 90%; overflow: hidden;
}
.modal-list button, .modal-list a {
  display: block; width: 100%; text-align: center; padding: 14px;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.modal-list .danger { color: var(--like); font-weight: 700; }
.modal-list button:last-child, .modal-list a:last-child { border-bottom: none; }

/* Story viewer */
.story-viewer {
  position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 400;
  display: none; align-items: center; justify-content: center;
}
.story-viewer.open { display: flex; }
.story-stage { width: 380px; max-width: 94vw; }
.story-bars { display: flex; gap: 4px; margin-bottom: 10px; }
.story-bars .bar { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; }
.story-bars .bar .fill { height: 100%; background: #fff; border-radius: 2px; width: 0; }
.story-card-head {
  display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 10px;
}
.story-card-head .when { color: rgba(255,255,255,.7); font-size: 12px; }
.story-media img { width: 100%; border-radius: 8px; max-height: 78vh; object-fit: contain; }
.story-close {
  position: absolute; top: 18px; right: 24px; color: #fff; font-size: 30px;
}

/* =========================================================================
   Mobile bottom nav
   ========================================================================= */
.bottom-nav { display: none; }

@media (max-width: 935px) {
  .feed-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 735px) {
  .nav-search { display: none; }
  .profile-head { gap: 24px; padding: 16px 0 28px; }
  .profile-head .avatar-wrap { padding-left: 6px; }
  .avatar-150 { width: 88px; height: 88px; }
  .profile-tabs { gap: 30px; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    height: 50px; align-items: center; justify-content: space-around; z-index: 100;
  }
  .bottom-nav a svg { width: 25px; height: 25px; }
  .bottom-nav a img { width: 25px; height: 25px; border-radius: 50%; }
  body { padding-bottom: 52px; }
  .dm { grid-template-columns: 1fr; }
  .dm.thread-open .dm-list { display: none; }
  .dm:not(.thread-open) .dm-thread { display: none; }
}

/* =========================================================================
   Admin panel
   ========================================================================= */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side {
  background: #1a1730; color: #cfcde0; padding: 18px 14px;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand {
  display: flex; align-items: center; gap: 8px; font-weight: 800;
  font-size: 18px; color: #fff; margin-bottom: 18px;
}
.admin-brand img { width: 26px; height: 26px; }
.admin-side nav a {
  display: block; padding: 10px 12px; border-radius: 9px; color: #cfcde0;
  margin-bottom: 2px; font-weight: 600; font-size: 14px;
}
.admin-side nav a:hover { background: rgba(255,255,255,.08); }
.admin-side nav a.active { background: var(--brand); color: #fff; }
.admin-side nav hr { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 12px 0; }
.admin-main { padding: 26px 30px; max-width: 1100px; }
.admin-title { font-size: 24px; margin-bottom: 18px; }
.admin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; margin-bottom: 20px;
}
.admin-card h2 { font-size: 17px; margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.stat .n { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat .l { color: var(--text-soft); font-size: 13px; }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; }
.atable th, .atable td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.atable th { color: var(--text-soft); font-size: 12px; text-transform: uppercase; }
.atable img.avatar { display: inline-block; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 980px;
  font-size: 11px; font-weight: 700;
}
.badge-green { background: #e6f8ee; color: #1a7f4b; }
.badge-red   { background: #fdeaef; color: #c32850; }
.badge-grey  { background: #efecf9; color: #6b6884; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-main { padding: 18px; }
}

/* =========================================================================
   Offline / PWA
   ========================================================================= */
.vg-offline-screen {
  position: fixed; inset: 0; z-index: 5000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(245,244,251,.97);
}
.vg-offline-screen.show { display: flex; }
.vg-offline-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 28px; max-width: 340px; text-align: center; box-shadow: var(--shadow);
}
.vg-offline-card .mk {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px;
  background: var(--grad); display: flex; align-items: center;
  justify-content: center; gap: 4px;
}
.vg-offline-card .mk i { width: 6px; background: #fff; border-radius: 3px; display: block;
  animation: vgpulse 1s ease-in-out infinite; }
.vg-offline-card .mk i:nth-child(2) { animation-delay: .12s; }
.vg-offline-card .mk i:nth-child(3) { animation-delay: .24s; }
.vg-offline-card .mk i:nth-child(4) { animation-delay: .36s; }
.vg-offline-card .mk i:nth-child(5) { animation-delay: .48s; }
@keyframes vgpulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.vg-offline-card h3 { font-size: 19px; margin-bottom: 6px; }
.vg-offline-card p { color: var(--text-soft); }
.vg-offline-card .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--like); margin-right: 6px; vertical-align: middle;
}
.vg-sync-pill {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 70px;
  background: #211d3b; color: #fff; padding: 9px 17px; border-radius: 980px;
  font-size: 13px; font-weight: 500; z-index: 4000; box-shadow: var(--shadow);
}
.install-btn { display: none; }

/* =========================================================================
   Static / legal pages, site footer, cookie banner
   ========================================================================= */
.static-top {
  background: var(--surface); border-bottom: 1px solid var(--border);
  height: 60px; display: flex; align-items: center;
}
.static-top .inner {
  max-width: 900px; width: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.static-top img { height: 30px; }
.static-top .sp { margin-left: auto; display: flex; gap: 8px; }

.legal { max-width: 780px; margin: 30px auto 60px; padding: 0 20px; }
.legal .doc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 34px;
}
.legal h1 { font-size: 28px; margin-bottom: 4px; }
.legal .updated { color: var(--text-soft); margin-bottom: 22px; font-size: 13px; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal h3 { font-size: 15px; margin: 16px 0 6px; }
.legal p, .legal li { color: #3a3650; line-height: 1.7; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 10px; }
.legal a { color: var(--brand-dark); font-weight: 600; }
.legal .toc {
  background: #f3effe; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px;
}
.legal .toc a { display: inline-block; margin: 3px 10px 3px 0; }
.legal .note {
  background: #fff7e6; border: 1px solid #f0d28a; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: #6b5a1f; margin: 14px 0;
}

.site-footer {
  border-top: 1px solid var(--border); margin-top: 30px;
  padding: 22px 20px; text-align: center; color: var(--text-soft); font-size: 13px;
}
.site-footer a { color: var(--text-soft); margin: 0 8px; white-space: nowrap; }
.site-footer a:hover { color: var(--brand); }
.site-footer .links { margin-bottom: 8px; }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 6000;
  max-width: 720px; margin: 0 auto; background: #211d3b; color: #fff;
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow);
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1; min-width: 220px; font-size: 13px; line-height: 1.5; }
.cookie-banner a { color: #b9a8ff; font-weight: 600; }
.cookie-banner .cta { display: flex; gap: 8px; }
@media (max-width: 735px) {
  .cookie-banner { bottom: 60px; }
}

/* =========================================================================
   Landing page
   ========================================================================= */
.lp-nav {
  position: sticky; top: 0; z-index: 100; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.lp-nav .inner {
  max-width: 1080px; margin: 0 auto; padding: 11px 22px;
  display: flex; align-items: center; gap: 14px;
}
.lp-nav img { height: 32px; }
.lp-nav .sp { margin-left: auto; display: flex; gap: 10px; }

.lp-hero {
  position: relative; text-align: center; color: #fff;
  padding: 84px 22px 96px; overflow: hidden;
  background: linear-gradient(135deg,#1fd6c9 0%,#3b8bff 38%,#7b3ff2 70%,#e0379b 100%);
}
.lp-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.lp-hero .badge-pill {
  display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  padding: 7px 16px; border-radius: 980px; font-weight: 600; font-size: 13px;
  margin-bottom: 18px;
}
.lp-hero h1 {
  font-size: 46px; line-height: 1.12; font-weight: 800; max-width: 720px;
  margin: 0 auto 16px; letter-spacing: -1px;
}
.lp-hero p.sub {
  font-size: 18px; max-width: 560px; margin: 0 auto 28px; opacity: .95;
}
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.lp-emojis { margin-top: 26px; font-size: 26px; letter-spacing: 8px; position: relative; z-index: 1; }

.lp-section { max-width: 1080px; margin: 0 auto; padding: 30px 22px 10px; }
.lp-section h2 {
  text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 6px;
}
.lp-section .lead {
  text-align: center; color: var(--text-soft); max-width: 560px;
  margin: 0 auto 30px; font-size: 16px;
}
.lp-grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
}

.lp-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1080px; margin: 0 auto; padding: 0 22px;
}
.lp-feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px 22px; transition: transform .15s, box-shadow .15s;
}
.lp-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-feature .ico {
  width: 54px; height: 54px; border-radius: 14px; font-size: 26px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: #f1eff8;
}
.lp-feature h3 { font-size: 17px; margin-bottom: 6px; }
.lp-feature p { color: var(--text-soft); font-size: 14px; line-height: 1.6; }

.lp-band {
  margin: 56px auto 0; max-width: 1000px; padding: 0 22px;
}
.lp-band .box {
  background: var(--grad); color: #fff; border-radius: 24px;
  padding: 48px 30px; text-align: center;
}
.lp-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.lp-band p { opacity: .95; margin-bottom: 22px; font-size: 16px; }

.lp-steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
  max-width: 900px; margin: 0 auto; padding: 0 22px;
}
.lp-step { text-align: center; padding: 10px; }
.lp-step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad);
  color: #fff; font-weight: 800; font-size: 20px; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 12px;
}
.lp-step h3 { font-size: 16px; margin-bottom: 4px; }
.lp-step p { color: var(--text-soft); font-size: 14px; }

@media (max-width: 860px) {
  .lp-features, .lp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lp-hero { padding: 56px 18px 70px; }
  .lp-hero h1 { font-size: 32px; }
  .lp-hero p.sub { font-size: 16px; }
  .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-section h2, .lp-band h2 { font-size: 24px; }
}

/* =========================================================================
   App shell - left sidebar layout (v2 redesign)
   ========================================================================= */
.app-shell { display: flex; min-height: 100vh; align-items: flex-start; }

.side-nav {
  flex: 0 0 240px; width: 240px; position: sticky; top: 0; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 14px 12px; display: flex; flex-direction: column;
}
.side-logo img { height: 30px; margin: 8px 10px 18px; }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-links a {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px;
  border-radius: 12px; font-weight: 600; color: var(--text);
}
.side-links a:hover { background: #f3effe; }
.side-links a.on { background: #f3effe; color: var(--brand-dark); }
.side-links a.on .ni svg { stroke: var(--brand); }
.ni { position: relative; display: flex; }
.ni svg { width: 24px; height: 24px; }
.ni-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ni-badge {
  position: absolute; top: -6px; right: -8px; background: var(--like);
  color: #fff; font-size: 10px; font-weight: 700; min-width: 15px; height: 15px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; font-style: normal;
}
.side-create-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 12px; background: var(--grad); color: #fff;
  padding: 12px 14px; border-radius: 980px; font-weight: 700;
}
.side-create-btn svg { width: 20px; height: 20px; stroke: #fff; }
.side-more {
  margin-top: auto; display: flex; flex-direction: column; gap: 2px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.side-more a, .side-more button {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: 10px; color: var(--text-soft); font-weight: 600;
  font-size: 13px; width: 100%; text-align: left;
}
.side-more a:hover, .side-more button:hover { background: #f3effe; color: var(--text); }
.side-more svg { width: 18px; height: 18px; }

.app-main { flex: 1; min-width: 0; }
.top-strip {
  position: sticky; top: 0; z-index: 90; height: 58px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
}
.strip-logo { display: none; }
.strip-logo img { height: 26px; }
.strip-search { position: relative; flex: 0 1 360px; display: flex; align-items: center; }
.strip-search > svg { position: absolute; left: 13px; width: 18px; height: 18px;
  stroke: var(--text-soft); fill: none; pointer-events: none; }
.strip-search input {
  width: 100%; background: #f1eff8; border: 1px solid transparent;
  border-radius: 980px; padding: 9px 14px 9px 38px; color: var(--text);
}
.strip-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.strip-search .dropdown { width: 100%; left: 0; top: 46px; }
.strip-icon { margin-left: auto; position: relative; color: var(--text); display: none; }
.strip-icon svg { width: 25px; height: 25px; }

/* Feed card refresh */
.post { box-shadow: 0 1px 2px rgba(40,20,90,.04); }
.post:hover { box-shadow: var(--shadow); }
.post-head .who b { font-size: 14px; }

/* Masonry explore grid */
.grid-masonry { columns: 3; column-gap: 6px; }
.grid-masonry .m-item {
  display: block; width: 100%; margin-bottom: 6px; border-radius: 12px;
  overflow: hidden; break-inside: avoid; background: #efefef; position: relative;
}
.grid-masonry .m-item img { width: 100%; display: block; }
.grid-masonry .m-item .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.32); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; transition: opacity .15s; font-weight: 700;
}
.grid-masonry .m-item:hover .overlay { opacity: 1; }
.grid-masonry .m-item .overlay svg { width: 18px; height: 18px; fill: #fff; stroke: #fff; }

@media (max-width: 980px) { .grid-masonry { columns: 2; } }

/* Responsive: collapse sidebar on tablet, hide on mobile */
@media (max-width: 1100px) {
  .side-nav { flex-basis: 76px; width: 76px; }
  .side-nav .nl, .side-logo img { display: none; }
  .side-nav .side-logo { text-align: center; }
  .side-create-btn span:last-child { display: none; }
  .side-more span:last-child { display: none; }
  .side-more a, .side-more button { justify-content: center; }
  .side-links a { justify-content: center; }
}
@media (max-width: 735px) {
  .app-shell { display: block; }
  .side-nav { display: none; }
  .strip-logo { display: block; }
  .strip-search { flex: 1; }
  .strip-icon { display: flex; }
  .grid-masonry { columns: 2; }
}

/* =========================================================================
   Profile cover banner + business profile bits
   ========================================================================= */
.profile-cover {
  max-width: 975px; margin: 0 auto; height: 210px;
  background: var(--grad); background-size: cover; background-position: center;
  border-radius: 0 0 20px 20px;
}
.profile-head { margin-top: -64px; position: relative; align-items: flex-start; }
.profile-head .avatar-150 { border: 4px solid var(--surface); background: var(--surface); }
.profile-info { padding-top: 72px; }
.acct-badge {
  background: #f1eff8; color: var(--brand-dark); font-size: 11px; font-weight: 700;
  padding: 3px 11px; border-radius: 980px; text-transform: uppercase; letter-spacing: .5px;
}
.otw-badge {
  display: inline-block; background: #e6f8ee; color: #1a7f4b; font-weight: 600;
  font-size: 12px; padding: 3px 11px; border-radius: 980px;
}
.contact-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.profile-bio > div { margin-top: 3px; }

@media (max-width: 735px) {
  .profile-cover { height: 130px; border-radius: 0 0 14px 14px; }
  .profile-head { margin-top: -44px; }
  .profile-info { padding-top: 0; }
}

/* =========================================================================
   Ads
   ========================================================================= */
.ad-card .ad-mark {
  width: 40px; height: 40px; border-radius: 11px; background: #f1eff8;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sidebar-ad {
  display: block; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-bottom: 12px; background: var(--surface);
}
.sidebar-ad img { width: 100%; display: block; max-height: 170px; object-fit: cover; }
.sidebar-ad .sa-body { padding: 11px 13px; }
.ad-tag { font-size: 10px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .6px; }
.sidebar-ad b { display: block; font-size: 14px; margin: 3px 0; }
.sidebar-ad p { color: var(--text-soft); font-size: 12px; line-height: 1.5; }

/* =========================================================================
   Jobs board
   ========================================================================= */
.job-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px; margin-bottom: 14px;
}
.job-card .jc-top { display: flex; align-items: flex-start; gap: 12px; }
.job-card h3 { font-size: 17px; }
.job-card .jc-co { color: var(--text-soft); font-size: 14px; }
.job-card .jc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.job-chip {
  background: #f1eff8; color: var(--brand-dark); font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 980px;
}
.job-card .jc-desc { color: #3a3650; line-height: 1.6; font-size: 14px; }
.job-card .jc-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================================
   Auth pages v2 - split-screen layout
   ========================================================================= */
.auth-shell { display: flex; min-height: 100vh; }

.auth-brand {
  flex: 0 0 42%; max-width: 520px; color: #fff; padding: 40px 44px;
  display: flex; flex-direction: column;
  background: linear-gradient(150deg,#1fd6c9 0%,#3b8bff 36%,#7b3ff2 68%,#e0379b 100%);
}
.ab-logo { display: flex; align-items: center; gap: 11px; font-size: 26px; font-weight: 800; color: #fff; }
.ab-mark { display: flex; align-items: flex-end; gap: 3.5px; height: 30px; }
.ab-mark i { width: 5px; background: #fff; border-radius: 3px; display: block; }
.ab-mark i:nth-child(1) { height: 12px; }
.ab-mark i:nth-child(2) { height: 22px; }
.ab-mark i:nth-child(3) { height: 30px; }
.ab-mark i:nth-child(4) { height: 17px; }
.ab-mark i:nth-child(5) { height: 9px; }
.ab-mid { margin: auto 0; }
.ab-mid h1 { font-size: 34px; line-height: 1.18; margin-bottom: 10px; letter-spacing: -.5px; }
.ab-mid p { font-size: 16px; opacity: .92; margin-bottom: 22px; }
.ab-list { list-style: none; }
.ab-list li {
  padding: 9px 0; font-size: 15px; font-weight: 500;
  border-top: 1px solid rgba(255,255,255,.22);
}
.ab-foot { opacity: .8; font-size: 13px; }

.auth-main { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.auth-bar {
  display: flex; align-items: center; padding: 16px 26px; gap: 14px;
}
.ghost-link {
  font-weight: 600; color: var(--text); padding: 8px 14px; border-radius: 980px;
}
.ghost-link:hover { background: #ece9f6; }
.auth-bar-links { margin-left: auto; display: flex; gap: 6px; }
.auth-bar-links a {
  font-weight: 600; color: var(--text-soft); padding: 8px 16px; border-radius: 980px;
}
.auth-bar-links a.on { background: var(--brand); color: #fff; }
.auth-bar-links a:not(.on):hover { background: #ece9f6; }

.auth-scroll { flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 20px 20px 36px; }
.auth-box {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 34px 28px; box-shadow: var(--shadow); text-align: center;
}
.auth-logo { width: 188px; height: auto; margin: 0 auto 16px; }
.auth-h { font-size: 21px; margin-bottom: 4px; }
.auth-sub { color: var(--text-soft); margin-bottom: 18px; font-size: 14px; }
.auth-box form { text-align: left; }
.auth-box .field { text-align: left; }
.auth-foot-links { display: flex; gap: 14px; margin-top: 18px; }
.auth-foot-links a { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.auth-foot-links a:hover { color: var(--brand); }

@media (max-width: 860px) {
  .auth-brand { display: none; }
}

/* =========================================================================
   Analytics charts
   ========================================================================= */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; }
.chart-bar { width: 100%; max-width: 36px; background: var(--grad);
  border-radius: 6px 6px 0 0; transition: height .3s; }
.chart-x { font-size: 10px; color: var(--text-soft); margin-top: 5px; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; }
.insight {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.insight .n { font-size: 28px; font-weight: 800; color: var(--brand); }
.insight .l { color: var(--text-soft); font-size: 13px; margin-top: 2px; }

/* Story poll */
.sv-poll { margin-top: 12px; }
.sv-poll .q { color: #fff; font-weight: 700; text-align: center; margin-bottom: 10px; }
.sv-poll .opt {
  display: block; width: 100%; margin-bottom: 8px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255,255,255,.16); color: #fff;
  font-weight: 600; border: 1px solid rgba(255,255,255,.4); position: relative;
  overflow: hidden; text-align: left;
}
.sv-poll .opt .fill {
  position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.35);
  width: 0; transition: width .4s;
}
.sv-poll .opt .lbl { position: relative; }

/* =========================================================================
   Responsive polish
   ========================================================================= */
@media (max-width: 600px) {
  .admin-main { padding: 16px; }
  .legal .doc { padding: 22px 18px; }
  .legal h1 { font-size: 23px; }
  .lp-hero h1 { font-size: 29px; }
  .auth-box { padding: 26px 22px; }
  .stat-grid, .insight-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 15px; }
  .profile-stats { gap: 22px; }
  .job-card { padding: 16px; }
  .chart { height: 130px; }
  .ab-mid h1 { font-size: 28px; }
}
@media (max-width: 380px) {
  .stat-grid, .insight-grid { grid-template-columns: 1fr; }
  .feed-main, .post { border-radius: 12px; }
}

/* =========================================================================
   Post composer, feeling picker, check-in
   ========================================================================= */
.composer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.composer-head b { font-weight: 600; }
.composer-meta { font-size: 12px; color: var(--text-soft); }
.composer-text {
  width: 100%; border: none; resize: vertical; min-height: 90px; font-size: 17px;
  color: var(--text); padding: 4px 2px;
}
.composer-text:focus { outline: none; }
.composer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 4px; background: #f1eff8;
  color: var(--brand-dark); border-radius: 980px; padding: 5px 8px 5px 12px;
  font-size: 13px; font-weight: 600;
}
.cmp-chip button { color: var(--brand-dark); font-size: 16px; line-height: 1; padding: 0 2px; }
.composer-previews { margin: 8px 0; }
.composer-previews:empty { margin: 0; }
.composer-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 14px; padding: 8px; margin-top: 8px;
}
.composer-act {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text);
}
.composer-act:hover { background: #f3effe; }
.composer-act span { color: var(--text-soft); }
.composer-post { margin-left: auto; padding: 9px 26px; }

.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-h b { font-size: 16px; }
.modal-h button { font-size: 24px; color: var(--text-soft); line-height: 1; }

.feeling-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-height: 320px; overflow-y: auto;
}
.feeling-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 12px; font-weight: 600; color: var(--text); text-transform: capitalize;
}
.feeling-opt:hover { background: #f3effe; border-color: var(--brand); }
.feeling-opt .fe { font-size: 24px; }

.checkin-search { display: flex; gap: 8px; margin-bottom: 8px; }
.checkin-search input {
  flex: 1; background: #f1eff8; border: 1px solid transparent; border-radius: 980px;
  padding: 10px 16px;
}
.checkin-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.checkin-status {
  font-size: 11px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .6px; padding: 4px 2px;
}
.checkin-list { max-height: 320px; overflow-y: auto; }
.checkin-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.checkin-item:hover { background: #f3effe; }
.ci-pin {
  width: 34px; height: 34px; border-radius: 50%; background: #ffe3ee;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.ci-text { line-height: 1.3; min-width: 0; }
.ci-text b { font-weight: 600; }
.ci-sub {
  display: block; font-size: 12px; color: var(--text-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Text-only / feeling posts */
.post-text {
  padding: 18px 16px; font-size: 19px; line-height: 1.5; color: var(--text);
}
.post-feeling { color: var(--text-soft); font-weight: 400; }
.post-feeling .fe { font-style: normal; }
.grid-item.text-tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--grad); color: #fff; padding: 14px; font-weight: 600;
}
.grid-item.text-tile span { font-size: 13px; }

/* Share menu */
.share-menu .modal-list a, .share-menu .modal-list button { font-weight: 600; }
.comment-like {
  color: var(--text-soft); font-size: 12px; font-weight: 600; margin-left: 6px;
}
.comment-like.on { color: var(--like); }

/* =========================================================================
   Landing page animations + live emojis
   ========================================================================= */
@keyframes lp-grad   { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes lp-float  { 0%,100% { transform: translateY(0) rotate(-8deg); }
                       50%     { transform: translateY(-28px) rotate(10deg); } }
@keyframes lp-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes lp-fade   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lp-pop    { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.lp-hero { background-size: 220% 220%; animation: lp-grad 16s ease infinite; }
.lp-hero .badge-pill { animation: lp-fade .6s both .05s; }
.lp-hero h1          { animation: lp-fade .7s both .15s; }
.lp-hero p.sub       { animation: lp-fade .7s both .30s; }
.lp-hero .lp-cta     { animation: lp-fade .7s both .45s; }
.lp-hero .lp-emojis  { animation: lp-fade .7s both .60s; }

.lp-floaties { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lp-floaty {
  position: absolute; font-size: 34px; opacity: .5;
  animation: lp-float 7s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}
.lp-floaty:nth-child(1) { left: 5%;  top: 22%; font-size: 40px; animation-duration: 8s;  }
.lp-floaty:nth-child(2) { left: 14%; top: 64%; animation-duration: 9s;  animation-delay: 1s; }
.lp-floaty:nth-child(3) { left: 26%; top: 12%; animation-duration: 7.5s; animation-delay: .6s; }
.lp-floaty:nth-child(4) { right: 8%; top: 20%; font-size: 42px; animation-duration: 8.5s; }
.lp-floaty:nth-child(5) { right: 16%; top: 62%; animation-duration: 9.5s; animation-delay: 1.4s; }
.lp-floaty:nth-child(6) { right: 28%; top: 14%; animation-duration: 7s;  animation-delay: .9s; }
.lp-floaty:nth-child(7) { left: 44%; top: 76%; animation-duration: 10s; animation-delay: .3s; }
.lp-floaty:nth-child(8) { right: 40%; top: 78%; animation-duration: 8s;  animation-delay: 1.7s; }

.lp-emojis span { display: inline-block; animation: lp-bounce 2.2s ease-in-out infinite; }
.lp-emojis span:nth-child(2) { animation-delay: .2s; }
.lp-emojis span:nth-child(3) { animation-delay: .4s; }
.lp-emojis span:nth-child(4) { animation-delay: .6s; }
.lp-emojis span:nth-child(5) { animation-delay: .8s; }
.lp-emojis span:nth-child(6) { animation-delay: 1s; }

.lp-feature .ico { transition: transform .2s; }
.lp-feature:hover .ico { transform: scale(1.15) rotate(-6deg); }
.lp-step .num { animation: lp-bounce 3s ease-in-out infinite; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-hero, .lp-floaty, .lp-emojis span, .lp-step .num { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Crisp HTML brand lockup (replaces the SVG logo image)
   ========================================================================= */
.brand { display: inline-flex; align-items: center; gap: .32em; line-height: 1; }
.brand-mark { display: flex; align-items: flex-end; gap: .085em; height: .92em; }
.brand-mark i { width: .17em; border-radius: .06em; background: var(--grad); display: block; }
.brand-mark i:nth-child(1) { height: .38em; }
.brand-mark i:nth-child(2) { height: .68em; }
.brand-mark i:nth-child(3) { height: .92em; }
.brand-mark i:nth-child(4) { height: .54em; }
.brand-mark i:nth-child(5) { height: .30em; }
.brand-name {
  font-weight: 800; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
}
.side-logo  { display: block; padding: 8px 12px 18px; }
.side-logo .brand  { font-size: 25px; }
.strip-logo .brand { font-size: 21px; }
.lp-nav .brand     { font-size: 25px; }
.static-top .brand { font-size: 24px; }
@media (max-width: 1100px) { .side-nav .brand-name { display: none; } }

/* Brand lockup in the auth form card */
.auth-logo-link { display: inline-block; margin-bottom: 16px; }
.auth-box .brand { font-size: 30px; }

/* Check-in map on posts */
.post-map { background: #e8eef3; }
.post-map iframe { width: 100%; height: 300px; border: 0; display: block; }
