/* LocalHub — components sheet.
 * Feature-level styles: home hero, search, provider cards, provider profile,
 * contact bar, dashboard layout. Relies on tokens in main.css.
 */

/* ---- home hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 32px;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-primary-dark) 48%, var(--color-primary) 100%);
  color: var(--color-surface);
}
.hero__title { font-size: 1.7rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hero__sub { margin-top: 8px; font-size: 1rem; opacity: 0.92; }

/* Location line inside the hero — location is the first thing users set. */
.hero__loc { margin-top: 16px; }
.hero__loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-surface);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}
.hero__loc-pill:hover { background: rgba(255, 255, 255, 0.22); }
.hero__loc-pill .icon { flex-shrink: 0; }
.hero__loc-change {
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-search { position: relative; margin-top: 20px; }
.home-search input {
  min-height: 56px;
  padding: 0 52px 0 18px;
  font-size: 16px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.home-search .home-search__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.section-title { font-size: 1.1rem; font-weight: 800; margin: 28px 0 6px; }
.section-sub { color: var(--color-text-secondary); font-size: 0.92rem; }

/* Trust strip under the home search — why use LocalHub */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  list-style: none;
  padding: 0;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.95;
}
.hero__trust .icon { flex-shrink: 0; }

.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 6px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-chips::-webkit-scrollbar { display: none; }
.category-chips .chip { flex-shrink: 0; }
.category-chips .category-card { flex-shrink: 0; scroll-snap-align: start; }

/* Emoji category cards (homepage) */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 104px;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.category-card__icon .icon { width: 26px; height: 26px; }
.category-card__label { font-weight: 700; }

/* ---- search page ---- */
.search-box { display: flex; gap: 8px; }
.search-box__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.search-box__field input { padding-left: 46px; }
.search-box__field .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.search-box__filter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 56px;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.62rem;
  font-weight: 700;
  position: relative;
}
.search-box__filter .icon { width: 22px; height: 22px; }
.search-box__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-count { color: var(--color-text-secondary); font-size: 0.9rem; font-weight: 600; margin: 14px 0 10px; }
.page-top { padding-top: 20px; }

.recent-searches { margin-top: 12px; }
.recent-searches__title { font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.recent-searches__list { display: flex; flex-wrap: wrap; gap: 8px; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 0;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---- provider card ---- */
.provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.provider-card:hover { box-shadow: var(--shadow-md); }

.provider-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg);
}
.provider-card__image { width: 100%; height: 100%; object-fit: cover; }

.provider-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}
.provider-card__fav.is-active { color: var(--color-danger); }

.provider-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1 1 auto; }
.provider-card__name { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.provider-card__name a { color: var(--color-text); text-decoration: none; }
.provider-card__name a:hover { color: var(--color-primary); }
.provider-card__category { color: var(--color-text-secondary); font-size: 0.85rem; }
.provider-card__rating { font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.provider-card__location { color: var(--color-text-secondary); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.provider-card__rating .icon { color: var(--color-star); flex-shrink: 0; }
.provider-card__location .icon { color: var(--color-primary); flex-shrink: 0; }
.provider-card__actions { display: flex; gap: 8px; margin-top: 10px; }
.provider-card__actions .btn { flex: 1 1 0; min-width: 0; }
.provider-card__actions .btn--whatsapp .icon { width: 18px; height: 18px; }
.provider-card__actions .btn--whatsapp span { display: none; }
@media (min-width: 768px) {
  .provider-card__actions .btn--whatsapp span { display: inline; }
}
.provider-card__body .btn--call { margin-top: 8px; }

/* ---- badges & status ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge--verified { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.badge--category { background: rgba(16, 24, 40, 0.06); color: var(--color-text-secondary); }

.open-now { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.open-now__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.open-now--open { color: var(--color-primary); }

/* card badge overlays the image */
.provider-card .badge--verified {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(232, 238, 252, 0.96);
}

/* ---- provider profile ---- */
.provider-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.provider-layout__aside { display: none; }

.provider-hero { position: relative; }
.provider-hero__cover {
  height: 180px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}
.provider-hero__cover-img { width: 100%; height: 100%; object-fit: cover; }
.provider-hero__avatar {
  position: absolute;
  left: 16px;
  bottom: -40px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--color-surface);
  background: var(--color-surface);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.provider-head { padding: 48px 0 8px; }
.provider-head__name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.provider-head__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.provider-head__meta { color: var(--color-text-secondary); font-size: 0.92rem; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.provider-head__meta .icon { flex-shrink: 0; color: var(--color-primary); }
.provider-head__meta:first-of-type .icon { color: var(--color-star); }
.provider-head .open-now { display: inline-flex; margin-top: 8px; }
.provider-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.provider-head__actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.provider-head__fav { margin-top: 0; }
.provider-contact-mobile { margin-top: 14px; }
.provider-contact-mobile .btn { min-height: 52px; font-size: 1rem; }

.provider-section { margin-top: 20px; }
.provider-section__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.provider-section > p { color: var(--color-text-secondary); line-height: 1.6; }

.provider-services li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.provider-services li:last-child { border-bottom: 0; }
.provider-services li .icon { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery__item { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--color-bg); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.reviews { display: grid; gap: 12px; }
.review {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
}
.review__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.review__date { color: var(--color-text-muted); font-size: 0.8rem; }
.review__stars { color: var(--color-star); font-size: 0.9rem; margin: 4px 0; }
.review p:last-child { color: var(--color-text-secondary); line-height: 1.55; }

/* desktop contact card (>=1024px) */
.contact-card {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.contact-card__name { font-size: 1.1rem; font-weight: 800; }
.contact-card__category { color: var(--color-text-secondary); font-size: 0.88rem; margin-top: 2px; }
.contact-card__hours { font-size: 0.88rem; margin-top: 8px; }
.contact-card__buttons { display: flex; gap: 10px; margin-top: 14px; }
.contact-card__buttons .btn { flex: 1 1 0; min-width: 0; }
.contact-card__note { color: var(--color-text-muted); font-size: 0.82rem; margin-top: 12px; }

/* mobile sticky contact bar (<1024px) */
.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.06);
}
.contact-bar .btn { flex: 1 1 0; min-width: 0; }

@media (min-width: 1024px) {
  .provider-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .provider-layout__aside { display: block; }
  .provider-hero__cover { height: 280px; }
  .provider-contact-mobile { display: none; }
  .contact-bar { display: none; }
}

/* ---- dashboard layout ---- */
.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dash-aside { display: none; }
.dash-content { min-width: 0; }
@media (min-width: 1024px) {
  .dash-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .dash-aside { display: block; }
  .dash-aside__panel {
    position: sticky;
    top: calc(var(--topbar-height) + 20px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px;
  }
}

/* ---- wizard (registration) ---- */
.wizard { max-width: 640px; margin: 20px auto; }
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.preview-list { margin-top: 4px; }
.preview-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.preview-list__row:last-child { border-bottom: 0; }
.preview-list__row dt { color: var(--color-text-muted); flex-shrink: 0; }
.preview-list__row dd { text-align: right; font-weight: 600; word-break: break-word; }
/* ---- page chrome (static page wiring) ---- */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo__mark { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.section-title h2 { margin: 0; }
.section-title a,
.page-head a {
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.section-title a:hover,
.page-head a:hover { text-decoration: underline; }

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 26px 0 4px; padding-top: 4px; }
.page-head h1 { font-size: 1.3rem; font-weight: 800; margin: 0; }

.modal__intro { color: var(--color-text-secondary); font-size: 0.92rem; margin: 2px 0 14px; }
.steps__head .dots { margin-left: auto; }

/* ---- registration page headers ---- */
.reg-header { text-align: center; margin: 26px auto 10px; max-width: 640px; padding: 0 16px; }
.reg-header__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.reg-header__sub { color: var(--color-text-secondary); margin-top: 6px; }

/* ---- provider profile main column ---- */
.provider-main { min-width: 0; }

/* ---- profile page ---- */
.container--profile { max-width: 720px; }
.profile-head { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 800;
}
.profile-name { font-size: 1.25rem; font-weight: 800; margin: 0; }
.profile-location { color: var(--color-text-secondary); font-size: 0.9rem; margin-top: 2px; }

.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 4px; }
.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
}
.stat__value { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.stat__label { font-size: 0.8rem; color: var(--color-text-secondary); }

.account-list { display: flex; flex-direction: column; padding: 0; margin: 0; }
.account-list li { list-style: none; }
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.account-list li:last-child .account-row { border-bottom: 0; }
.account-row:hover { background: var(--color-bg); }
button.account-row { cursor: pointer; }
.account-row--muted { color: var(--color-text-secondary); }
.account-row__chevron { color: var(--color-text-muted); flex-shrink: 0; }
.account-row__value { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---- topbar auth slot ---- */
.pill--cta { background: var(--color-navy); border-color: var(--color-navy); color: #fff; font-weight: 700; }
.pill--cta:hover { background: var(--color-primary); }
.auth-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-surface);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  flex-shrink: 0;
  border: 2px solid var(--color-primary-soft);
}
.auth-avatar:hover { background: var(--color-primary); }

/* ---- auth pages (login / signup / choose account) ---- */
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 28px 16px 56px; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.auth-card__sub { color: var(--color-text-secondary); margin-top: 6px; font-size: 0.95rem; }
.auth-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-danger);
  color: var(--color-surface);
  font-size: 0.9rem;
}
/* loading state for buttons (e.g. "Use my current location" while detecting) */
.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: var(--color-surface);
  border-radius: 50%;
  animation: localhub-spin 0.7s linear infinite;
}
@keyframes localhub-spin { to { transform: rotate(360deg); } }

/* password show/hide + auth layout helpers */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.password-toggle:hover { color: var(--color-primary); }
.password-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.field__optional { color: var(--color-text-muted); font-weight: 500; font-size: 0.82rem; }
.auth-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.auth-row .auth-error { margin: 12px 0 0; flex: 1 1 auto; }
.auth-forgot {
  align-self: center;
  margin-left: auto;
  padding: 8px 0;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.auth-forgot:hover { text-decoration: underline; }
.auth-success {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--color-primary-soft);
  border-radius: var(--radius);
  background: var(--color-primary-soft);
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.5;
}
.auth-switch { text-align: center; margin-top: 18px; color: var(--color-text-secondary); font-size: 0.92rem; }
.auth-switch a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.auth-legal { text-align: center; color: var(--color-text-muted); font-size: 0.8rem; margin-top: 16px; }

/* account-type selection cards */
.role-cards { display: grid; gap: 14px; margin-top: 20px; }

/* ---- utility pages (announcements / privacy / terms) ---- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.icon-btn:hover { background: var(--color-primary-soft); color: var(--color-primary); }

.page { padding: 28px 16px 8px; }
.page__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }

.announcement-list { display: grid; gap: 14px; margin-top: 22px; }
.announcement-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.announcement-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.announcement-card__tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.announcement-card__title { font-size: 1.05rem; font-weight: 800; margin-top: 6px; }
.announcement-card__date { color: var(--color-text-muted); font-size: 0.78rem; margin-top: 2px; }
.announcement-card__body { color: var(--color-text-secondary); font-size: 0.92rem; line-height: 1.6; margin-top: 8px; }


/* ---- live submissions viewer (applications.html) ---- */
.app-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0 16px; }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}
.live-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: live-pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 92, 204, 0.4); }
  70% { box-shadow: 0 0 0 9px rgba(39, 92, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 92, 204, 0); }
}
.chip-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-filter__btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.chip-filter__btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-surface); }
.app-list { display: flex; flex-direction: column; gap: 12px; }
.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.app-card__head { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.app-card__name { font-weight: 800; font-size: 1.02rem; }
.app-card__meta { color: var(--color-text-secondary); font-size: 0.86rem; margin-top: 3px; }
.app-card__services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.app-card__service {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
}
.app-card__actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.app-card__time { margin-left: auto; color: var(--color-text-faint); font-size: 0.78rem; }
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  flex-shrink: 0;
}
.badge--pending { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.badge--approved { background: var(--color-whatsapp); color: var(--color-surface); }
.badge--rejected { background: var(--color-danger); color: var(--color-surface); }
.btn--sm { padding: 5px 12px; font-size: 0.8rem; }
.success__ref { margin-top: 12px; color: var(--color-text-secondary); font-size: 0.88rem; }
.success__ref a { color: var(--color-primary); font-weight: 700; }

/* admin console: approve / reject actions */
.btn--success { background: var(--color-whatsapp); color: var(--color-surface); border: 1px solid var(--color-whatsapp); }
.btn--success:hover { background: var(--color-whatsapp-dark); border-color: var(--color-whatsapp-dark); }
.btn--success:disabled { background: var(--color-whatsapp); border-color: var(--color-whatsapp); opacity: 0.45; cursor: default; }
.btn--danger { background: var(--color-danger); color: var(--color-surface); border: 1px solid var(--color-danger); }
.btn--danger:hover { background: #b42318; border-color: #b42318; }
.btn--danger:disabled { background: var(--color-danger); border-color: var(--color-danger); opacity: 0.45; cursor: default; }
.app-card__admin { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }

.legal { margin-top: 22px; display: grid; gap: 22px; max-width: 720px; }
.legal__section h2 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; }
.legal__section p { color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.65; }
.legal__section a { color: var(--color-primary); font-weight: 600; }

.role-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: left;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.role-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.role-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.role-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.role-card__text { display: flex; flex-direction: column; gap: 2px; }
.role-card__title { font-weight: 800; font-size: 1.02rem; }
.role-card__sub { color: var(--color-text-secondary); font-size: 0.88rem; margin-top: 2px; }

/* profile page: account rows + email */
.profile-email { color: var(--color-text-secondary); font-size: 0.88rem; margin-top: 2px; }
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
}
.profile-avatar { background: var(--color-navy); color: #fff; }