/* ============ JobDozo — mobile home (mockup) ≤768px ============ */
@media (max-width: 768px) {
  .desktop-shell { display: none !important; }
  #mobileApp { display: flex !important; }
  body {
    background: #f4f7fc;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (min-width: 769px) {
  #mobileApp { display: none !important; }
}

.mobile-app {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  overflow-x: hidden;
  font-size: 14px;
  color: #334155;
  background: #f4f7fc;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

/* ---- header ---- */
.m-header {
  background: #fff;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e8eef6;
}
.m-header-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
}
.m-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e8eef6;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  cursor: pointer;
}
.m-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}
.m-brand em { font-style: normal; color: #1a6cf5; }
.m-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  background: #eff6ff;
  display: grid;
  place-items: center;
}
.m-brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.m-bell { position: relative; }
.m-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.m-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 24px;
}

/* ---- greeting ---- */
.m-greet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.m-greet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.22);
}
.m-greet-text h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.m-greet-text p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}
.m-greet-loc {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  flex-wrap: wrap;
}
.m-greet-loc i { color: #ef4444; }
.m-link-inline {
  border: none;
  background: none;
  color: #1a6cf5;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
}

/* ---- search row ---- */
.m-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 14px;
}
.m-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 14px;
  padding: 0 12px;
  min-height: 46px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.m-search > i { color: #94a3b8; flex-shrink: 0; }
.m-search input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 0.86rem;
  color: #0f172a;
  min-height: 44px;
}
.m-search-btn {
  border: none;
  background: #1a6cf5;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0 14px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.m-filter-btn {
  width: 46px;
  border-radius: 14px;
  border: 1px solid #e8eef6;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- stats ---- */
.m-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.m-stat {
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  text-align: left;
  cursor: pointer;
}
.m-stat:last-child { grid-column: 1 / -1; }
.m-stat-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.m-stat strong {
  display: block;
  font-size: 1.15rem;
  color: #0f172a;
  line-height: 1.1;
}
.m-stat small {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}
.m-stat em {
  display: block;
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 700;
  color: #16a34a;
  margin-top: 2px;
}

/* ---- premium ---- */
.m-premium {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #312e81 100%);
  color: #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}
.m-premium-copy { flex: 1; min-width: 0; }
.m-premium-copy strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 6px;
}
.m-premium-copy strong i { color: #fbbf24; margin-right: 6px; }
.m-premium-copy ul {
  margin: 0;
  padding: 0 0 0 14px;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.9);
}
.m-premium-cta {
  border: none;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- blocks ---- */
.m-block { margin-bottom: 18px; }
.m-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.m-block-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.m-link {
  border: none;
  background: none;
  color: #1a6cf5;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}

/* ---- categories (marquee) ---- */
.m-cats-wrap {
  overflow: hidden;
  width: 100%;
  margin: 0 -2px;
}
.m-cats-wrap:hover .m-cats-scroll.marquee-track,
.m-cats-wrap:active .m-cats-scroll.marquee-track {
  animation-play-state: paused;
}
.m-cats-scroll.marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  gap: 0 !important;
  padding: 0 !important;
  will-change: transform;
  animation: mCatsMarquee 200s linear infinite;
}
.m-cats-scroll .marquee-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  align-items: flex-start;
  gap: 10px;
  padding-right: 10px;
}
.m-cat {
  flex: 0 0 auto;
  width: 72px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  line-height: 1.15;
}
.m-cat.selected .m-cat-ico {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.m-cat-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  width: 100%;
  word-break: break-word;
}
.m-cat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
@keyframes mCatsMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .m-cats-scroll.marquee-track {
    animation: none !important;
    overflow-x: auto !important;
    width: 100% !important;
  }
}

/* ---- recommended cards (marquee) ---- */
.m-rec-wrap {
  overflow: hidden;
  width: 100%;
}
.m-rec-wrap:hover .m-rec-track.marquee-track,
.m-rec-wrap:active .m-rec-track.marquee-track {
  animation-play-state: paused;
}
.m-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.m-hscroll::-webkit-scrollbar { display: none; }
.m-rec-track.marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  gap: 0 !important;
  padding: 0 !important;
  scroll-snap-type: none !important;
  will-change: transform;
  animation: mRecMarquee 55s linear infinite;
}
.m-rec-track .marquee-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  align-items: stretch;
  gap: 12px;
  padding-right: 12px;
}
.m-rec-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  position: relative;
}
@keyframes mRecMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .m-rec-track.marquee-track {
    animation: none !important;
    overflow-x: auto !important;
    width: 100% !important;
  }
}
.m-rec-match {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.m-rec-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.m-rec-top h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 800;
}
.m-rec-top .co {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}
.m-rec-meta {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 6px;
}
.m-rec-meta i { color: #1a6cf5; margin-right: 4px; }
.m-rec-sal {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.m-rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.m-rec-tag {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
}
.m-rec-tag.alt { background: #eff6ff; color: #1d4ed8; }
.m-rec-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.m-rec-apply {
  flex: 1;
  border: none;
  background: #1a6cf5;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.m-rec-apply.applied { background: #16a34a; }
.m-rec-save {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e8eef6;
  background: #fff;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.85rem;
}
.m-rec-save.saved { color: #ec4899; border-color: #fbcfe8; }

/* ---- quick actions ---- */
.m-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.m-quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #334155;
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  line-height: 1.2;
}
.m-quick-tile span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

/* ---- recent apps ---- */
.m-apps-list { display: flex; flex-direction: column; gap: 0; }
.m-app-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e8eef6;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.m-app-row:last-child { border-bottom: none; }
.m-app-mid { flex: 1; min-width: 0; }
.m-app-mid strong { display: block; font-size: 0.88rem; color: #0f172a; }
.m-app-mid small { font-size: 0.7rem; color: #64748b; }
.m-app-status {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  white-space: nowrap;
}
.m-app-status.interview { background: #fff7ed; color: #ea580c; }
.m-app-status.applied { background: #eef5ff; color: #1a6cf5; }
.m-app-status.rejected { background: #fef2f2; color: #dc2626; }
.m-app-status.selected { background: #ecfdf5; color: #16a34a; }
.m-app-date { font-size: 0.66rem; color: #94a3b8; white-space: nowrap; }

/* ---- top jobs list (dynamic ranked cards) ---- */
.m-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: mLivePulse 1.8s ease-out infinite;
  vertical-align: middle;
}
@keyframes mLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.m-feat-list { display: flex; flex-direction: column; gap: 12px; }
.m-feat-card {
  --feat-accent: #1a6cf5;
  --feat-wash: rgba(26, 108, 245, 0.08);
  position: relative;
  display: flex;
  gap: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, var(--feat-wash) 0%, transparent 42%),
    #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  animation: mFeatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--feat-delay, 0ms);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.m-feat-card.tone-gold { --feat-accent: #d97706; --feat-wash: rgba(245, 158, 11, 0.14); }
.m-feat-card.tone-sky { --feat-accent: #0284c7; --feat-wash: rgba(14, 165, 233, 0.12); }
.m-feat-card.tone-mint { --feat-accent: #059669; --feat-wash: rgba(16, 185, 129, 0.12); }
.m-feat-card.tone-slate { --feat-accent: #1a6cf5; --feat-wash: rgba(26, 108, 245, 0.08); }
.m-feat-card:active { transform: scale(0.985); }
.m-feat-card.is-hot { border-color: color-mix(in srgb, var(--feat-accent) 35%, #e8eef6); }
.m-feat-shine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--feat-accent), color-mix(in srgb, var(--feat-accent) 40%, #fff));
}
.m-feat-card.is-hot .m-feat-shine {
  animation: mFeatBar 2.4s ease-in-out infinite;
}
@keyframes mFeatBar {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.65; filter: brightness(1.15); }
}
.m-feat-rank {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  align-self: stretch;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--feat-accent);
  background: color-mix(in srgb, var(--feat-wash) 70%, #fff);
  letter-spacing: -0.02em;
}
.m-feat-body { flex: 1; min-width: 0; padding: 12px 12px 12px 10px; }
.m-feat-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.m-feat-copy { flex: 1; min-width: 0; }
.m-feat-top h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-feat-top .co { font-size: 0.7rem; color: #64748b; margin-top: 2px; }
.m-feat-ring {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.m-feat-ring svg {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.m-feat-ring-bg {
  fill: none;
  stroke: #e8eef6;
  stroke-width: 3.5;
}
.m-feat-ring-fg {
  fill: none;
  stroke: var(--feat-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 94.2;
  stroke-dashoffset: calc(94.2 - (94.2 * var(--match, 0) / 100));
  animation: mFeatRing 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--feat-delay, 0ms) + 120ms);
}
.m-feat-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #0f172a;
}
.m-feat-card.is-hot .m-feat-ring strong {
  animation: mFeatMatchPop 2.2s ease-in-out infinite;
  animation-delay: calc(var(--feat-delay, 0ms) + 1s);
}
@keyframes mFeatRing {
  from { stroke-dashoffset: 94.2; }
}
@keyframes mFeatMatchPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes mFeatIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.m-feat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  color: #64748b;
}
.m-feat-meta i { color: var(--feat-accent); margin-right: 4px; }
.m-feat-meta .sal {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.82rem;
  margin: 0;
}
.m-feat-meta .sal small {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  margin-left: 2px;
}
.m-feat-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.m-feat-tag {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}
.m-feat-tag.hot {
  background: #fff7ed;
  color: #c2410c;
}
.m-feat-tag.hot i { margin-right: 3px; font-size: 0.58rem; }
.m-feat-tag.fresh {
  background: #ecfdf5;
  color: #059669;
}
.m-feat-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.m-feat-apply {
  flex: 1;
  border: none;
  background: linear-gradient(135deg, var(--feat-accent), color-mix(in srgb, var(--feat-accent) 75%, #0f172a));
  color: #fff;
  font-weight: 800;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.m-feat-apply:active { transform: scale(0.98); filter: brightness(0.96); }
.m-feat-apply.applied { background: #16a34a; }
.m-feat-save {
  width: 42px;
  height: 42px;
  border: 1px solid #e8eef6;
  background: #fff;
  border-radius: 12px;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.m-feat-save.saved { color: #1a6cf5; border-color: #bfdbfe; background: #eff6ff; }
@media (prefers-reduced-motion: reduce) {
  .m-live-dot,
  .m-feat-card,
  .m-feat-card.is-hot .m-feat-shine,
  .m-feat-ring-fg,
  .m-feat-card.is-hot .m-feat-ring strong {
    animation: none !important;
  }
}

/* ---- nearby ---- */
.m-nearby-list { display: flex; flex-direction: column; gap: 0; }
.m-nearby-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e8eef6;
}
.m-nearby-mid { flex: 1; min-width: 0; }
.m-nearby-mid strong { display: block; font-size: 0.86rem; color: #0f172a; }
.m-nearby-mid small, .m-nearby-mid em { font-size: 0.7rem; color: #64748b; display: block; font-style: normal; }
.m-nearby-match {
  font-size: 0.68rem;
  font-weight: 800;
  color: #1a6cf5;
  background: #eef5ff;
  padding: 4px 8px;
  border-radius: 999px;
}
.m-nearby-heart {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
}
.m-nearby-heart.saved { color: #ec4899; }

/* job logos reused */
.m-sug-logo, .m-feat-logo, .m-nearby-avatar, .m-rec-logo, .m-app-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.62rem;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}
.m-sug-logo i, .m-feat-logo i, .m-nearby-avatar i, .m-rec-logo i, .m-app-logo i {
  font-size: 0.78rem;
}

/* ---- auth ---- */
.m-auth-block {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.m-auth-login, .m-auth-signup {
  flex: 1;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}
.m-auth-login {
  border: none;
  background: #1a6cf5;
  color: #fff;
}
.m-auth-signup {
  border: 1.5px solid #e8eef6;
  background: #fff;
  color: #0f172a;
}

/* ---- bottom nav ---- */
.m-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  background: #fff;
  border-top: 1px solid #e8eef6;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}
.m-nav-item {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 6px 2px;
  cursor: pointer;
  position: relative;
}
.m-nav-item i { font-size: 0.95rem; }
.m-nav-item.active { color: #1a6cf5; }
.m-nav-item.active::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1a6cf5;
  margin-top: 1px;
}
.m-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* companies page */
.m-co-hero { margin-bottom: 12px; }
.m-co-hero h2 { margin: 0 0 4px; color: #0f172a; }
.m-co-search {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
}
.m-co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.m-empty {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (max-width: 360px) {
  .m-quick { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .m-premium { flex-direction: column; align-items: stretch; }
}
