/* Mobile - site styles. Bootstrap 5 is loaded first; this file only customizes it. */
/* ===== 1. Design tokens: change colors here ===== */
:root {
  --m-primary: #2563eb;
  --m-dark: #0f172a;
  --m-muted: #64748b;
  --m-bg: #f6f8fc;
  --m-border: #e2e8f0;
  --m-radius: 16px;
  --m-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  --bs-body-color: #0f172a;
}
/* ===== 2. Base ===== */
body {
  background: #fff;
  color: var(--m-dark);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
/* ===== 3. Buttons and form controls ===== */
.btn-primary {
  --bs-btn-bg: var(--m-primary);
  --bs-btn-border-color: var(--m-primary);
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
}
.btn-outline-primary {
  --bs-btn-color: var(--m-primary);
  --bs-btn-border-color: var(--m-primary);
  --bs-btn-hover-bg: var(--m-primary);
}
.btn,
.form-control,
.form-select {
  border-radius: 10px;
}
/* ===== 4. Cards and shared blocks ===== */
.card {
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
}
.bg-light-blue,
.hero {
  background: var(--m-bg);
}
.finder {
  padding: 1.5rem;
}
.cta {
  background: var(--m-dark);
  color: #fff;
}
.icon-tile,
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e8efff;
  color: var(--m-primary);
  font-size: 1.4rem;
  font-weight: 800;
}
.brand-logo-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  flex: none;
}
.brand-card:hover,
.phone-card:hover {
  border-color: var(--m-primary);
}
.phone-card img {
  background: #eef2f8;
  border-radius: var(--m-radius) var(--m-radius) 0 0;
}
/* ===== 5. Phone gallery ===== */
.thumb {
  width: 64px;
  height: 64px;
  padding: 2px;
  border: 2px solid var(--m-border);
  border-radius: 10px;
  background: #fff;
}
.thumb.active {
  border-color: var(--m-primary);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.w-40 {
  width: 40%;
}
/* ===== 6. Header and footer ===== */
.site-header .nav-link {
  font-weight: 600;
}
.site-footer {
  background: var(--m-dark);
  color: #cbd5e1;
}
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
/* ===== 7. Compare table ===== */
.compare-table th,
.compare-table td {
  min-width: 150px;
  vertical-align: middle;
}
.compare-table th:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}
/* ===== 8. Part 2: profiles, badges, notifications, chat, dashboard ===== */
.profile-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #dbe6fb;
  display: block;
}
.profile-head {
  margin-top: -40px;
  position: relative;
}
.badge-verified {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}
.badge-auth {
  background: #0f172a;
  color: #fde68a;
  font-weight: 600;
}
.auth-panel {
  border: 2px solid #0f172a;
  background: #fffbeb;
  border-radius: var(--m-radius);
}
.map-ph {
  height: 220px;
  background: #e8efff;
  border-radius: var(--m-radius);
  color: var(--m-primary);
}
.flex-none {
  flex: none;
}
.min-w-0 {
  min-width: 0;
}
.notif.unread {
  background: #eff6ff;
  border-left: 4px solid var(--m-primary);
}
.chat-thread {
  height: 340px;
  overflow-y: auto;
  background: var(--m-bg);
}
.bubble {
  max-width: 80%;
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--m-border);
  margin-bottom: 0.5rem;
}
.bubble.me {
  margin-left: auto;
  background: var(--m-primary);
  color: #fff;
  border-color: var(--m-primary);
}
.dash-nav .nav-link {
  white-space: nowrap;
  color: var(--m-dark);
  border-radius: 10px;
}
.dash-nav .nav-link.active {
  background: #e8efff;
  color: var(--m-primary);
  font-weight: 600;
}
.fav.active {
  color: #dc3545;
}
/* ===== 9. Responsive images and layout ===== */
html {
  -webkit-text-size-adjust: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
td,
th {
  overflow-wrap: anywhere;
}
.row > * {
  min-width: 0;
}
.card img.img-fluid,
.card-img-top,
.phone-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #eef2f8;
}
#mainImg {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.thumb {
  width: clamp(48px, 14vw, 72px);
  height: clamp(48px, 14vw, 72px);
}
.profile-cover {
  height: clamp(120px, 22vw, 240px);
}
.brand-logo {
  overflow: hidden;
}
.brand-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  aspect-ratio: auto;
}
.brand-logo[data-avatar] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pagination {
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-header .navbar-brand {
  min-width: 0;
}
@media (min-width: 1200px) {
  .site-header form[role="search"] {
    width: 190px;
  }
}
@media (max-width: 575.98px) {
  .phone-card .card-body,
  .card.p-3 {
    padding: 0.75rem !important;
  }
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  .finder {
    padding: 1rem;
  }
  .chat-thread {
    height: 50vh;
  }
  .profile-head {
    margin-top: -24px;
  }
  .brand-logo-lg {
    width: 64px;
    height: 64px;
  }
}
@media (pointer: coarse) {
  .btn,
  .form-control,
  .form-select,
  .nav-link,
  .page-link {
    min-height: 44px;
  }
  .btn-sm {
    min-height: 38px;
  }
}
