/* ═══════════════════════════════════════════════════════════════
   ThruWifi — Stylesheet
   Matches the Figma mockup: white/gray monochrome, Inter font
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --fg:          #030213;
  --primary:     #030213;
  --muted:       #ececf0;
  --muted-fg:    #717182;
  --accent:      #e9ebef;
  --border:      rgba(0,0,0,.10);
  --radius:      0.625rem;
  --radius-sm:   0.375rem;
  --sidebar-bg:  #f9f9fb;
  --online:      #22c55e;
  --offline:     #9ca3af;
  --unread-bg:   #ef4444;
  --blue:        #3b82f6;
  --sent-col:    #9ca3af;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --transition:  .15s ease;
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.noscroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }
img { max-width: 100%; }

/* ── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ════════════════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════════════════ */

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  position: sticky; top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand-icon svg { display: block; }

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.brand-text .tagline {
  font-size: .75rem;
  color: var(--muted-fg);
  line-height: 1.3;
}

.header-nav { display: flex; gap: 1.5rem; font-size: .875rem; color: var(--muted-fg); }
.header-nav a:hover { color: var(--fg); }

/* ── Hero / App Section ─────────────────────────────────────── */
.hero-section {
  padding: 2.5rem 1.5rem;
}

@media (max-width: 480px) {
  .hero-section {
    padding: 0;
  }
  .hero-text { display: none; }
  #the-app {
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero-text h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.hero-text p {
  font-size: 1rem;
  color: var(--muted-fg);
  max-width: 38rem;
  margin: 0 auto;
}

#app-slot {
  width: 100%;
}

/* ── Content sections ──────────────────────────────────────── */
.content-section {
  padding: 4rem 1.5rem;
}

.content-section.alt { background: var(--sidebar-bg); }

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Step cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step-card { text-align: center; }

.step-number {
  width: 3rem; height: 3rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.step-card p  { font-size: .875rem; color: var(--muted-fg); }

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-card svg { margin-bottom: .75rem; display: block; }
.feature-card h3  { font-size: .9375rem; font-weight: 600; margin-bottom: .375rem; }
.feature-card p   { font-size: .8125rem; color: var(--muted-fg); }

/* FAQ */
.faq-list { max-width: 44rem; margin: 0 auto; }
.faq-item  { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: .9375rem; margin-bottom: .5rem; }
.faq-a { font-size: .875rem; color: var(--muted-fg); line-height: 1.6; }

/* Legal sections */
.legal-section h2 { font-size: 1.125rem; font-weight: 700; text-align: left; margin-bottom: 1rem; }
.legal-section h3 { font-size: .9375rem; font-weight: 600; margin: 1rem 0 .375rem; }
.legal-section p, .legal-section li { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; }
.legal-section ul { padding-left: 1.25rem; }
.legal-section li { margin-bottom: .25rem; }

.legal-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--sidebar-bg);
  padding: 2rem 1.5rem;
}

.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: center;
  font-size: .8125rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}

.footer-links a:hover { color: var(--fg); }

.footer-sponsor {
  text-align: center;
  margin-bottom: .75rem;
}

.footer-sponsor a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--muted-fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .375rem .75rem;
  transition: background var(--transition), color var(--transition);
}

.footer-sponsor a:hover {
  background: var(--muted);
  color: var(--fg);
  text-decoration: none;
}

.footer-copy {
  text-align: center;
  font-size: .75rem;
  color: var(--muted-fg);
}

/* ════════════════════════════════════════════════════════════
   THE APP WIDGET
   ════════════════════════════════════════════════════════════ */

#the-app {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

#the-app.fullscreen-app {
  height: 100vh; /* fallback */
  height: 100dvh;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* ── Fullscreen overlay ─────────────────────────────────────── */
#fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
}

/* ── Connection status bar ─────────────────────────────────── */
.conn-status-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  font-size: .75rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-connecting   { background: #fef9c3; } /* yellow-50 */
.status-connecting   .status-dot { background: #eab308; animation: pulse 1s infinite; }
.status-disconnected { background: #fef2f2; }
.status-disconnected .status-dot { background: #ef4444; }
.status-reconnecting { background: #fef9c3; }
.status-reconnecting .status-dot { background: #f59e0b; animation: pulse 1s infinite; }
.status-connected    { background: #f0fdf4; }
.status-connected    .status-dot { background: #22c55e; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* ── App header ─────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
  gap: .75rem;
  flex-shrink: 0;
}

.app-header-left  { display: flex; align-items: center; gap: .625rem; }
.app-header-right { display: flex; align-items: center; gap: .375rem; }

.app-logo-icon { display: flex; align-items: center; color: var(--fg); }
.app-logo-name {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Username area */
#username-display { display: flex; align-items: center; gap: .25rem; }
.username-text    { font-size: .8125rem; font-weight: 500; }
.username-input {
  font-size: .8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .25rem .5rem;
  outline: none;
  width: 9rem;
  background: #fff;
}
.username-input:focus { border-color: var(--fg); }

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: var(--muted); color: var(--fg); }

/* ── App body ───────────────────────────────────────────────── */
.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.app-sidebar {
  width: 15rem;
  border-right: 1px solid var(--border);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-top {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: .625rem;
}

#btn-broadcast {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem .75rem;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--fg);
  transition: background var(--transition);
}
#btn-broadcast:hover  { background: var(--muted); }
#btn-broadcast.active { background: var(--primary); color: #fff; }

.broadcast-count {
  margin-left: auto;
  background: rgba(255,255,255,.25);
  color: inherit;
  font-size: .6875rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .35rem;
  line-height: 1;
}
#btn-broadcast:not(.active) .broadcast-count {
  background: var(--muted);
  color: var(--muted-fg);
}

.sidebar-users-section { flex: 1; overflow-y: auto; padding: .875rem 1rem; }
.sidebar-users-label   { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: .625rem; }

#users-list { display: flex; flex-direction: column; gap: .125rem; }

.user-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .625rem;
  border-radius: var(--radius);
  text-align: left;
  font-size: .8125rem;
  color: var(--fg);
  transition: background var(--transition);
}
.user-btn:hover  { background: var(--muted); }
.user-btn.active { background: var(--accent); }

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 2rem; height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.sm {
  width: 1.75rem; height: 1.75rem;
  font-size: .6875rem;
}

.presence-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: .625rem; height: .625rem;
  border-radius: 50%;
  border: 1.5px solid var(--sidebar-bg);
}
.presence-dot.online  { background: var(--online); }
.presence-dot.offline { background: var(--offline); }

.unread-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--unread-bg);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 1.125rem; height: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0 .25rem;
  line-height: 1;
}

.user-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-name.offline-name { color: var(--muted-fg); }

.no-users { font-size: .8125rem; color: var(--muted-fg); padding: .25rem 0; }

/* ── Main chat area ─────────────────────────────────────────── */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

/* Messages panel */
#messages-panel {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  scroll-behavior: smooth;
}

#messages-panel.drag-over {
  background: #eff6ff;
  outline: 2px dashed var(--blue);
  outline-offset: -4px;
}

.drag-over-hint {
  position: absolute;
  inset: 0;
  display: none;           /* hidden until drag starts */
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

#messages-panel.drag-over .drag-over-hint { display: flex; }

.drag-over-hint-box {
  background: #fff;
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  padding: 2rem 3rem;
  text-align: center;
}
.drag-over-hint-box p { font-weight: 600; font-size: .875rem; margin-top: .5rem; color: var(--blue); }

#messages-list { display: flex; flex-direction: column; gap: .625rem; position: relative; z-index: 2; }

/* Message rows */
.msg-row {
  display: flex;
  gap: .5rem;
  max-width: 88%;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msg-row.mine   { flex-direction: row-reverse; align-self: flex-end; }
.msg-row.theirs { align-self: flex-start; }

.msg-body { display: flex; flex-direction: column; min-width: 0; }

.msg-row.mine   .msg-body { align-items: flex-end; }
.msg-row.theirs .msg-body { align-items: flex-start; }

.msg-meta {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-bottom: .25rem;
}

.msg-sender { font-size: .75rem; font-weight: 600; }
.msg-time   { font-size: .6875rem; color: var(--muted-fg); }

/* Bubbles */
.bubble {
  display: inline-block;
  padding: .5rem .875rem;
  border-radius: 1rem;
  max-width: 100%;
  position: relative;
  word-break: break-word;
}

.bubble-mine   {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: .25rem;
}

.bubble-theirs {
  background: var(--muted);
  color: var(--fg);
  border-bottom-left-radius: .25rem;
}

.msg-text { font-size: .875rem; line-height: 1.5; }

.msg-tick {
  display: inline-flex;
  align-items: center;
  margin-left: .375rem;
  vertical-align: middle;
}

/* File bubble */
.file-bubble {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-width: 0;
  max-width: 100%;
  width: clamp(10rem, 60vw, 22rem);
}

.file-icon {
  flex-shrink: 0;
  opacity: .75;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble-mine .file-name   { color: #fff; }
.bubble-theirs .file-name { color: var(--fg); }

.file-size {
  display: block;
  font-size: .6875rem;
  opacity: .65;
  margin-top: .1rem;
}

.progress-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  margin-top: .375rem;
  overflow: hidden;
}
.bubble-theirs .progress-bar-wrap { background: rgba(0,0,0,.12); }

.progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transition: width .2s ease;
}
.bubble-theirs .progress-bar { background: var(--primary); }

.progress-label {
  display: block;
  font-size: .625rem;
  opacity: .6;
  margin-top: .125rem;
}

.file-waiting {
  font-size: .6875rem;
  opacity: .6;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  opacity: .8;
  transition: opacity var(--transition), background var(--transition);
}
.bubble-mine .dl-btn:hover   { opacity: 1; background: rgba(255,255,255,.15); }
.bubble-theirs .dl-btn:hover { opacity: 1; background: rgba(0,0,0,.08); }

/* ── Input bar ──────────────────────────────────────────────── */
.input-bar {
  border-top: 1px solid var(--border);
  padding: .75rem 1rem;
  background: #fff;
  flex-shrink: 0;
}

.input-bar-inner {
  display: flex;
  align-items: center;
  gap: .625rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  transition: border-color var(--transition);
}

.input-bar-inner:focus-within {
  border-color: rgba(0,0,0,.25);
}

.divider { width: 1px; height: 1.5rem; background: var(--border); flex-shrink: 0; }

#btn-attach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .125rem;
  color: var(--muted-fg);
  flex-shrink: 0;
  padding: .25rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
#btn-attach:hover { color: var(--fg); background: var(--accent); }
#btn-attach .attach-limit { font-size: .5625rem; white-space: nowrap; }

#text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: .875rem;
  padding: .25rem 0;
  min-width: 0;
  resize: none;
  height: 1.5rem;
  line-height: 1.5;
}

#btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: background var(--transition), opacity var(--transition);
}
#btn-send:hover     { background: #1a1a2e; }
#btn-send:disabled  { background: var(--muted); color: var(--muted-fg); cursor: not-allowed; opacity: .6; }

.send-to-label {
  font-size: .6875rem;
  color: var(--muted-fg);
  padding: .3rem .75rem 0;
}

/* ── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--primary);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════════════════════════════════
   SCROLLBAR STYLE
   ════════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-fg); }

/* ── Mobile recipient dropdown bar ──────────────────────────── */
.mobile-recipient-bar {
  display: none;    /* hidden on desktop — shown via media query */
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
  flex-shrink: 0;
}

.mobile-recipient-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-fg);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-recipient-select {
  flex: 1;
  min-width: 0;
  font-size: .8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .375rem .5rem;
  outline: none;
  cursor: pointer;
  appearance: auto;
}
.mobile-recipient-select:focus { border-color: var(--fg); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .header-nav { display: none; }
  .hero-text h2 { font-size: 1.5rem; }
  #the-app { height: calc(100dvh - 6rem); }
  .app-sidebar { width: 10.5rem; }
  .username-input { width: 7rem; }

  .msg-row    { max-width: 92%; }
  .bubble     { padding: .45rem .75rem; }
  .msg-text   { font-size: .8125rem; }
  .file-name  { font-size: .75rem; }
}

@media (max-width: 480px) {
  .app-sidebar { display: none; }
  #the-app { height: calc(100dvh - 5rem); }

  /* Show mobile dropdown instead */
  .mobile-recipient-bar { display: flex; }

  /* Ensure flex chain is tight so input bar is never pushed off screen */
  .app-body, .app-main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  /* Tighter messages on small screens */
  .msg-row    { max-width: 96%; gap: .375rem; }
  #messages-panel { padding: .75rem .625rem; }
  .bubble     { padding: .4rem .65rem; }
  .msg-text   { font-size: .8125rem; }
  .file-name  { font-size: .75rem; }
  .file-size  { font-size: .625rem; }
  .avatar.sm  { width: 1.5rem; height: 1.5rem; font-size: .625rem; flex-shrink: 0; }

  /* Input bar compact */
  .input-bar          { padding: .5rem .625rem; }
  .input-bar-inner    { padding: .375rem .5rem; gap: .375rem; }
  #btn-attach .attach-limit { display: none; }
  #btn-send   { width: 2rem; height: 2rem; }
}


/* ════════════════════════════════════════════════════════════
   MOBILE UNREAD BADGE
   ════════════════════════════════════════════════════════════ */
.mobile-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--unread-bg);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  animation: badge-pop .2s ease;
}

@keyframes badge-pop {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
