/* ============================================================
   styles.css — design tokens + mobile-first base styles
   Visual identity: Maagoo logo palette (blue -> teal -> green).
   Clean white/light backgrounds like the logo.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — matched to the official Maagoo logo */
  --brand-blue:  #2b9bf4;
  --brand-teal:  #14c8c8;
  --brand-green: #58d13d;
  --brand-grad:  linear-gradient(135deg, #2b9bf4, #14c8c8 55%, #58d13d);

  /* Functional brand slots (blue family) */
  --brand:        #2b9bf4;
  --brand-deep:   #1a7fd6;
  --brand-soft:   #e8f4fe;

  /* Secondary accent (teal family) */
  --accent:       #14c8c8;
  --accent-deep:  #0da8a8;
  --accent-soft:  #e0f7f7;

  /* Neutrals — clean light like the logo background */
  --bg:      #f5f8fb;
  --surface: #ffffff;
  --ink:     #1c2733;
  --muted:   #6b7a8d;
  --line:    #e2e8f0;

  /* Reactions (Punjabi set) */
  --rxn-funny:  #f5b301;
  --rxn-ghussa: #d64545;
  --rxn-laanat: #7c3aed;
  --rxn-chhittar:#8a5a2b;

  /* Status */
  --danger:  #d64545;
  --ok:      #22a355;
  --warn:    #f59e0b;

  /* Shape + space */
  --radius:    14px;
  --radius-sm: 9px;
  --space:     16px;
  --space-sm:  10px;
  --space-lg:  24px;

  /* Elevation */
  --shadow: 0 2px 10px rgba(20, 30, 25, 0.08);
  --shadow-lg: 0 6px 24px rgba(20, 30, 25, 0.12);

  /* Type */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
}

/* ---------- DARK MODE (owner's order) — toggle via body.dark ---------- */
body.dark {
  --brand-soft:   #16283a;
  --accent-soft:  #123033;
  --bg:      #0d131b;
  --surface: #16202c;
  --ink:     #e9eef5;
  --muted:   #93a1b5;
  --line:    #26313f;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.45);
}
body.dark img.post-photo { filter: brightness(.92); }
body.dark .rxn-fan { box-shadow: 0 12px 40px rgba(0,0,0,.6); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  padding-bottom: 76px; /* room for bottom nav on mobile */
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; touch-action: manipulation; }

/* ---------- Layout ---------- */
.container {
  max-width: 640px;      /* mobile-first single column */
  margin: 0 auto;
  padding: var(--space) var(--space-sm);
}
.view.hidden { display: none; }

/* ---------- Boot overlay ---------- */
.boot {
  position: fixed; inset: 0; z-index: 2000;
  background: #ffffff;
  color: #141a2b;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  transition: opacity .45s ease;
}
.boot.fade { opacity: 0; pointer-events: none; }
.boot.hidden { display: none; }
.boot-logo-img {
  width: 92px; height: 92px; border-radius: 24px;
  box-shadow: 0 10px 30px rgba(20,26,43,0.18);
  animation: floaty 2.2s ease-in-out infinite;
}
.boot-name { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.boot-name span { display: inline-block; animation: letterBounce 1.15s ease-in-out infinite; }
.boot-tag { opacity: .65; font-size: 13px; }
.boot-bar {
  width: 130px; height: 6px; border-radius: 99px;
  background: #edf0f6; overflow: hidden; margin-top: 6px;
}
.boot-bar i {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: var(--brand-grad);
  animation: barSlide 1.1s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.045); } }
@keyframes letterBounce { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-11px); } }
@keyframes barSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 10px var(--space-sm);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 18px; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
/* Owner's order: wordmark sat too high — nudge down for optical centering with the logo. */
.brand-name { display: inline-block; line-height: 1; transform: translateY(2px); }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.topnav a.active, .topnav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
#authArea { margin-left: auto; }
@media (min-width: 720px) {
  .topnav { display: flex; }
  #authArea { margin-left: 8px; }
  .bottomnav { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Mobile bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px;
  color: var(--muted); font-size: 20px;
}
.bottomnav a span { font-size: 11px; font-weight: 600; }
.bottomnav a.active { color: var(--brand); }

/* ---------- Cards, buttons, utilities ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space);
  margin-bottom: var(--space-sm);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 15px; font-weight: 700;
  cursor: pointer; min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand-grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; background: var(--brand-soft);
  border: 2px solid var(--brand);
}
.chip {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-deep);
}
.row { display: flex; align-items: center; gap: var(--space-sm); }
.stack { display: flex; flex-direction: column; gap: var(--space-sm); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Reaction buttons (Punjabi set) — filled in Phase 1 */
.rxn-bar { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.rxn {
  flex: 1; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 4px; font-size: 18px; cursor: pointer;
}
.rxn small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.rxn.picked-funny   { border-color: var(--rxn-funny);   background: #fef6dd; }
.rxn.picked-ghussa  { border-color: var(--rxn-ghussa);  background: #fdecec; }
.rxn.picked-laanat  { border-color: var(--rxn-laanat);  background: #f1eafd; }
.rxn.picked-chhittar{ border-color: var(--rxn-chhittar); background: #f7efe2; }

/* Reaction PILL — 👋 gradient trigger (owner's order). Quick-tap = Funny,
   long-press (500ms) = animated fan. Comfortable space below the row. */
.rxn-pill-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.rxn-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; /* vertical scroll still works; long-press (no move) still fires */
  color: #fff; font-weight: 800; font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal), var(--brand-green));
  background-size: 200% 200%;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  transition: transform .12s ease;
  animation: pillSheen 3.2s ease-in-out infinite; /* signature shimmer — unique, not Like-like */
  position: relative; overflow: hidden;
}
@keyframes pillSheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.rxn-pill:active { transform: scale(.94); }
.rxn-pill-hand { font-size: 17px; display: inline-block; animation: pillWave 1.6s ease-in-out infinite; }
@keyframes pillWave { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }
.rxn-pill.has { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-teal), 0 3px 10px rgba(0,0,0,.18); }
.rxn-pill-my { font-size: 17px; }
.rxn-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rxn-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 10px; font-size: 15px;
}
.rxn-chip small { font-size: 12px; font-weight: 800; color: var(--ink); }

/* Fan popup — 4 big bouncy reactions with labels */
.rxn-fan-back {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s ease;
}
.rxn-fan-back.show { opacity: 1; }
.rxn-fan {
  display: flex; gap: 14px; padding: 22px 24px;
  background: var(--surface); border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  flex-wrap: wrap; justify-content: center; max-width: 92vw;
}
.rxn-fan-btn {
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 18px;
  animation: fanPop .38s cubic-bezier(.2,1.6,.4,1) both;
  transition: transform .1s ease;
}
.rxn-fan-btn:hover { transform: scale(1.12) rotate(-4deg); }
.rxn-fan-btn:active { transform: scale(.92); }
@keyframes fanPop { from { transform: scale(0) translateY(24px); } to { transform: scale(1) translateY(0); } }
.rxn-fan-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.2)); }
.rxn-fan-btn small { font-size: 13px; font-weight: 800; color: var(--ink); }

/* Comment reactions */
.cmt-rxn { margin-top: 6px; }
.cmt-rxn .rxn-pill-wrap { margin: 4px 0 8px; }
.cmt-rxn .rxn-pill { padding: 7px 13px; font-size: 12px; }
.cmt-rxn .rxn-pill-hand { font-size: 14px; }
.cmt-rxn .rxn-chip { padding: 3px 8px; font-size: 13px; }

/* Notices */
.page-head { margin: 4px 0 12px; }
.page-head h2 { margin: 0; font-size: 20px; }
.notice { display: flex; gap: 12px; align-items: flex-start; }
.notice.unread { border-left: 4px solid var(--brand-teal); }
.notice-kind { font-size: 26px; line-height: 1; }

/* Empty placeholder shells */
.empty {
  text-align: center; padding: 48px 16px;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--muted);
}
.empty-emoji { font-size: 44px; margin-bottom: 8px; }

/* Footer */
.footer {
  text-align: center; font-size: 13px; color: var(--muted);
  padding: var(--space-lg) var(--space-sm) calc(var(--space-lg) + 60px);
}
@media (min-width: 720px) {
  .footer { padding-bottom: var(--space-lg); }
}

/* ============================================================
   Phase 1 styles — Maagoo: composer, posts, comments,
   profiles, modals, shimmer. (appended 2026-10-21)
   ============================================================ */

/* ---------- Forms ---------- */
.input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand); }
textarea.input { resize: vertical; }
.fld { display: block; font-weight: 700; font-size: 14px; margin-top: 10px; }
.fld .input { margin-top: 4px; font-weight: 400; }

/* ---------- Auth chip ---------- */
.me-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  padding: 4px 8px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.login-prompt { margin-bottom: var(--space-sm); }

/* ---------- Composer ---------- */
.composer-hint { color: var(--muted); font-weight: 600; }
.composer textarea { margin-top: 10px; }
.composer-actions { margin-top: 10px; }
.photo-preview {
  margin-top: 10px; border-radius: var(--radius-sm);
  max-height: 220px; width: 100%; object-fit: cover;
}

/* ---------- Post cards ---------- */
.post { padding-bottom: 12px; }
.post-head { align-items: flex-start; }
.post-meta { display: flex; flex-direction: column; line-height: 1.3; }
.post-author { font-weight: 800; color: var(--ink); }
.post-time { font-size: 12px; }
.post-text { margin: 10px 0; white-space: pre-wrap; word-wrap: break-word; }
.post-photo {
  border-radius: var(--radius-sm); margin: 4px 0 10px;
  max-height: 420px; width: 100%; object-fit: cover;
  border: 1px solid var(--line);
}
.avatar-initial {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; flex: none;
}

/* ---------- Comments ---------- */
/* Post action bar: [React pill] [Comment] [Share] — three professional actions. */
.post-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.post-actions .rxn-pill-wrap { margin: 6px 0 12px; }
.act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: 13.5px; font-family: inherit;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.act-btn:hover { background: var(--brand-soft); }
.act-btn:active { transform: scale(.94); }
/* Share sheet */
.share-sheet .menu-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: none; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); border-radius: 12px; cursor: pointer; text-align: left; }
.share-sheet .menu-row:hover { background: var(--brand-soft); }
.share-sheet .menu-ico { font-size: 20px; }
.cmt-toggle {
  background: none; border: none; color: var(--brand);
  font-weight: 700; font-size: 14px; cursor: pointer;
  padding: 8px 0 0; font-family: inherit;
}
.cmt-thread { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.cmt { align-items: flex-start; margin-bottom: 10px; }
.cmt-body {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 14px; flex: 1;
}
.cmt-form { margin-top: 6px; }
.cmt-form .input { flex: 1; }

/* ---------- Profile ---------- */
.profile-head { padding-bottom: 12px; }
.profile-bio { margin: 10px 0 4px; }
.profile-stats { gap: var(--space-lg); margin-top: 10px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b { font-size: 18px; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(20, 25, 20, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal { max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; }

/* ---------- Loading shimmer ---------- */
.shimmer-card { pointer-events: none; }
.shimmer {
  border-radius: 8px;
  background: linear-gradient(90deg, #e8edf3 25%, #f4f7fa 50%, #e8edf3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}
.shimmer-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.shimmer-line { height: 14px; margin-top: 10px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Phase 2 styles — Maagoo logo theme: Google button, FB-style
   profile (cover + overlapping avatar), setup form. (2026-10-21)
   ============================================================ */

/* ---------- Continue with Google button ---------- */
.gbtn {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 3px rgba(60,64,67,0.18);
  font-weight: 600;
}
.gbtn:hover { background: #f8f9fa; box-shadow: 0 2px 6px rgba(60,64,67,0.22); }
.gbtn svg { flex: none; }

/* ---------- Footer logo ---------- */
.footer-logo { width: 22px; height: 22px; border-radius: 6px; vertical-align: -5px; }

/* ---------- Facebook-style profile ---------- */
.profile-card { padding: 0; overflow: hidden; }
.cover-banner {
  position: relative;
  height: 180px;
  background: var(--brand-grad);
  background-size: cover;
  background-position: center;
}
.cover-banner.has-cover { background-color: #dfe7ef; }
.cover-edit {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(255,255,255,0.95);
  border: none; border-radius: 999px;
  padding: 8px 12px; font-size: 13px; font-weight: 700;
  color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-family: inherit;
}
/* Profile identity row sits FULLY BELOW the cover — no overlap, no face-covering
   (owner's order 2026-10-21). Cover is full-bleed at top; avatar (~88px)
   left-aligned in its own row, then name / bio / info. */
.profile-idrow {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 0;
}
.profile-pic-big {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  background: var(--brand-soft);
}
.profile-names { min-width: 0; padding-bottom: 4px; }
.profile-names h2 { margin: 0; font-size: 21px; }
.profile-body { padding: 10px 16px 16px; }
.profile-bio { margin: 6px 0 8px; }
.info-rows { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.info-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.info-row b { color: var(--ink); font-weight: 600; }
.profile-stats { gap: var(--space-lg); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Setup form extras ---------- */
.fld-hint { font-weight: 400; font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.detect-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Maagoo Phase 3 + i18n + DM — welcome, reels, menu, counters, chat
   ============================================================ */

/* ---------- Login gate: hide navs when logged out ---------- */
body.logged-out .topnav,
body.logged-out .bottomnav,
body.logged-out #menuBtn { display: none; }

/* ---------- Welcome view (login gate) ---------- */
#view-welcome .welcome {
  min-height: calc(100vh - 140px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px 20px;
}
.welcome-logo { width: 110px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }
.welcome-name {
  font-size: 44px; margin: 14px 0 2px;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: 0.5px;
}
.welcome-google { margin-top: 22px; padding: 14px 30px; font-size: 17px; border-radius: 999px; }
.linklike {
  background: none; border: none; color: var(--brand-blue);
  font-size: 14px; margin-top: 14px; cursor: pointer; text-decoration: underline;
}
.welcome-note { margin-top: 18px; font-size: 13px; max-width: 320px; }

/* ---------- Reels viewer (vertical snap-scroll) ---------- */
#view-reels { position: relative; }
.reels-note {
  position: sticky; top: 0; z-index: 5;
  text-align: center; font-size: 13px; color: var(--muted);
  padding: 8px; background: rgba(255,255,255,0.9);
}
.reels-wrap {
  height: calc(100vh - 190px); min-height: 420px;
  overflow-y: auto; scroll-snap-type: y mandatory;
  border-radius: var(--radius); background: #0d1420;
}
.reel {
  position: relative; height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.reel video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.reel-paused {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 54px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  pointer-events: none;
}
.reel-side {
  position: absolute; right: 10px; bottom: 90px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  max-width: 46%;
}
.reel-side .rxn-pill-wrap { margin: 0; justify-content: flex-end; }
.reel-side .rxn-pill { padding: 8px 14px; font-size: 13px; }
.reel-side .rxn-chip { background: rgba(255,255,255,.92); }
.rxn-mini {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.92); border: none; border-radius: 14px;
  padding: 7px 9px; font-size: 20px; cursor: pointer; min-width: 48px;
}
.rxn-mini small { font-size: 11px; color: var(--muted); }
.rxn-mini.on { outline: 2px solid var(--brand-teal); background: #fff; }
.reel-meta { position: absolute; left: 12px; bottom: 14px; right: 80px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.reel-author { color: #fff; font-weight: 700; text-decoration: none; }
.reel-caption { font-size: 14px; margin-top: 2px; }
.reel-mute {
  position: absolute; top: 44px; right: 12px; z-index: 6;
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 18px; cursor: pointer;
}

/* ---------- ⋮ menu button + bottom sheet ---------- */
.menu-btn {
  position: fixed; right: 16px; bottom: 84px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand-gradient); color: #fff; font-size: 24px; line-height: 1;
  box-shadow: var(--shadow);
}
@media (min-width: 760px) { .menu-btn { bottom: 24px; } }
.sheet-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,18,32,0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0; padding: 10px 20px 26px;
  animation: sheetUp 0.25s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.menu-sec { font-size: 13px; color: var(--muted); margin: 12px 0 4px; font-weight: 600; }
.lang-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
  cursor: pointer; font-size: 15px;
}
.lang-row input { accent-color: var(--brand-teal); width: 18px; height: 18px; }

/* ---------- Character counter (x/2000) ---------- */
.ccwrap { position: relative; }
.ccwrap .input { width: 100%; }
.cc {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 11px; color: var(--muted); pointer-events: none;
  background: rgba(255,255,255,0.85); border-radius: 8px; padding: 0 4px;
}
.cc.near { color: #d33; font-weight: 700; }

/* ---------- DM (1-to-1 chat, mock) ---------- */
.badge {
  position: absolute; top: 2px; right: 8px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #e5484d; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
}
.topnav a, .bottomnav a { position: relative; }
.dm-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: #fff; border-radius: var(--radius);
  text-decoration: none; color: inherit; position: relative;
  box-shadow: var(--shadow);
}
.dm-row-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-row-mid span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .badge { position: static; margin-left: 8px; }
#view-dm { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; }
.dm-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow); position: sticky; top: 0; z-index: 2;
}
.dm-head a { text-decoration: none; color: inherit; }
.dm-thread {
  flex: 1; overflow-y: auto; padding: 14px 10px;
  display: flex; flex-direction: column; gap: 8px;
  background: #eef3f7;
}
.bubble {
  max-width: 78%; padding: 9px 12px; border-radius: 16px;
  font-size: 15px; line-height: 1.4; word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.bubble.mine {
  align-self: flex-end; background: var(--brand-gradient); color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.theirs {
  align-self: flex-start; background: #fff; color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble .bt { display: block; font-size: 10px; opacity: 0.7; margin-top: 3px; text-align: right; }
.dm-inputbar {
  display: flex; gap: 8px; align-items: center;
  padding: 10px; background: #fff;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
}
.dm-inputbar .cc { bottom: 16px; }

/* ============================================================
   GROUPS + VOICE MESSAGES
   ============================================================ */
.bubble { position: relative; }
.bubble.mine { background: var(--brand-grad); } /* fix: was var(--brand-gradient) (undefined) */
.msgmenu-btn {
  position: absolute; top: 1px; right: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 15px; line-height: 1; opacity: 0.45; padding: 4px 6px; color: inherit;
}
.msgmenu-btn:hover { opacity: 1; }
.bsender { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.bbody { padding-right: 18px; }
.ticks { font-size: 11px; margin-left: 3px; color: rgba(255,255,255,0.75); }
.bubble.theirs .ticks { color: #9aa3b2; }
.ticks.read { color: #4fc3f7; }
.bubble.mine .ticks.read { color: #bfe9ff; }
.tomb { font-style: italic; opacity: 0.75; font-size: 13px; }
.edited { font-size: 10px; opacity: 0.8; }

/* voice bubbles */
.vbub { display: flex; align-items: center; gap: 8px; min-width: 170px; padding: 2px 0; }
.vplay {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.25); color: #fff; font-size: 14px; flex-shrink: 0;
}
.bubble.theirs .vplay { background: var(--brand-grad); }
.vprog { flex: 1; height: 5px; border-radius: 3px; background: rgba(0,0,0,0.15); overflow: hidden; }
.bubble.mine .vprog { background: rgba(255,255,255,0.3); }
.vprog i { display: block; height: 100%; width: 0%; background: #fff; border-radius: 3px; transition: width 0.2s linear; }
.bubble.theirs .vprog i { background: var(--brand-grad); }
.vdur { font-size: 12px; opacity: 0.85; white-space: nowrap; }

/* mic + recording bar */
.micbtn { font-size: 21px; background: none; border: none; cursor: pointer; padding: 6px 4px; }
.recbar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: #e33; animation: blink 1s infinite; flex-shrink: 0; }
@keyframes blink { 50% { opacity: 0.2; } }
.rectime { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; }

/* group header / rules / info */
.ghead { flex: 1; text-decoration: none; color: inherit; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ghead small { font-size: 11px; }
.grp-rules {
  background: #fff8e1; border-bottom: 1px solid #f0dfa0; color: #6b5d1f;
  font-size: 13px; padding: 8px 12px;
}
.grp-locked {
  text-align: center; padding: 14px; color: var(--muted, #777);
  background: #fff; font-size: 14px;
}
.mem-pick { max-height: 220px; overflow-y: auto; border: 1px solid var(--line, #e5e9f0); border-radius: 10px; padding: 4px 8px; }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #f1f4f8; }
.mem-row:last-child { border-bottom: none; }
.abadge { font-size: 11px; background: #fff3d6; color: #8a6d1a; border-radius: 20px; padding: 1px 8px; font-weight: 700; }
.invlink { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.codepill { background: #f1f4f8; border-radius: 8px; padding: 6px 10px; font-family: monospace; font-size: 13px; }

/* ============================================================
   UPLOAD + REPORTS + UI FIXES
   ============================================================ */
/* chips (report reasons, admin tabs/filters) */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.chip {
  border: 1px solid var(--line, #e5e9f0); background: #f7f9fc; color: var(--ink);
  border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.chip.on { background: var(--brand-grad); color: #fff; border-color: transparent; font-weight: 700; }

/* reels: upload row, report + pending badges */
.reels-top { display: flex; align-items: center; justify-content: space-between; margin: 12px 4px; }
.reels-top .reels-note { margin: 0; }
.reel { position: relative; }
.reel-report {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: rgba(0,0,0,0.45); color: #fff; border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 15px; cursor: pointer;
}
.reel-pending {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: rgba(0,0,0,0.6); color: #ffd54f;
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
}

/* UI FIX (E1): header logo optically centered with the wordmark */
.brand-name { line-height: 1; display: inline-flex; align-items: center; }
.brand-logo { align-self: center; }

/* UI FIX (E2): splash layout — logo on top, name centered below, tagline under */
.boot-name, .boot-tag { text-align: center; }

/* ============================================================
   PROFESSIONAL OVERHAUL styles (2026-10-21)
   ============================================================ */

/* --- nav icons (clean SVG, not emoji) --- */
.nic { display: inline-flex; line-height: 0; }
.nic svg { width: 22px; height: 22px; display: block; }
.topnav a { display: inline-flex; align-items: center; gap: 6px; }
.topnav a .nic svg { width: 19px; height: 19px; }

/* --- welcome: English-first signup --- */
.welcome-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; width: 100%; max-width: 320px; }
.welcome-or::before, .welcome-or::after { content: ""; flex: 1; height: 1px; background: var(--line, #e5e9f0); }

/* --- post-login wizard --- */
.wiz-dots { display: flex; gap: 8px; justify-content: center; margin: 2px 0 10px; }
.wdot { width: 26px; height: 6px; border-radius: 99px; background: #e3e8f0; transition: background .25s; }
.wdot.on { background: var(--brand-grad); }
.wdot.done { background: var(--brand-teal, #14c8c8); }
.wiz-cover-ph { height: 110px; border-radius: 10px; background: linear-gradient(135deg, #e8f4fe, #e6fbfb); border: 1px dashed #b9c6d8; }

/* --- chat date dividers --- */
.daydiv { display: flex; justify-content: center; margin: 12px 0 6px; }
.daydiv span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: #eef1f6; padding: 4px 12px; border-radius: 99px; }

/* --- DM thread header polish --- */
.dm-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line, #e5e9f0); border-radius: 12px 12px 0 0; }
.dm-head b { font-size: 15px; }

/* --- admin overview stats --- */
.admin-stats { display: flex; gap: 10px; margin: 0 4px 12px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 120px; background: #fff; border: 1px solid var(--line, #e5e9f0); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow, 0 2px 10px rgba(20,30,60,.06)); }
.stat-card b { font-size: 20px; }
.stat-card.live b { font-size: 16px; }
.stat-card span { font-size: 12px; color: var(--muted); }

/* --- video tab --- */
.reels-title { display: flex; align-items: center; gap: 8px; margin: 12px 4px; font-size: 18px; }
.video-empty { padding: 48px 20px; text-align: center; }
.video-empty-icon { margin-bottom: 10px; opacity: .95; }

/* --- settings + danger zone --- */
.set-card { max-width: 560px; margin: 0 auto; }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
}
.set-link { cursor: pointer; color: var(--ink); text-decoration: none; }
.set-select { max-width: 170px; padding: 8px 10px; font-size: 14px; }
.switch {
  width: 52px; height: 30px; border-radius: 999px; border: none; cursor: pointer;
  background: #cbd5e1; position: relative; transition: background .2s ease; flex: none;
}
body.dark .switch { background: #3a4a5e; }
.switch i {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: left .2s ease;
}
.switch.on { background: var(--brand-green); }
.switch.on i { left: 25px; }
.danger-zone { border: 1.5px solid #f3c1c1; background: #fff5f5; border-radius: 12px; padding: 14px; margin-top: 8px; }
body.dark .danger-zone { background: #2c1a1a; border-color: #5c2b2b; }

/* --- toast --- */
.mtoast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: #1c2333; color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 4000; max-width: 90vw; text-align: center; }
.mtoast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
