/* AasraMarry Matrimony — Bootstrap 5.3 theme
   Palette and typography mirror the original design system. */

:root {
  --km-primary: #c2185b;
  --km-primary-dark: #9c134a;
  --km-accent: #8e24aa;
  --km-primary-soft: #fdf2f6;
  --km-secondary: #fdf2f6;
  --km-secondary-fg: #7b1240;
  --km-foreground: #26303f;
  --km-muted: #6b7280;
  --km-success: #2e7d32;
  --km-gold: #e0a922;
  --km-border: #f0dee6;
  --km-card: #ffffff;
  --km-bg: #ffffff;
  --km-radius: 1rem;
  --km-shadow-card: 0 1px 2px rgba(38, 48, 63, 0.04), 0 8px 24px -12px rgba(38, 48, 63, 0.14);
  --km-shadow-lift: 0 2px 6px rgba(194, 24, 91, 0.08), 0 18px 40px -18px rgba(194, 24, 91, 0.34);

  --bs-primary: #c2185b;
  --bs-primary-rgb: 194, 24, 91;
  --bs-body-color: #26303f;
  --bs-body-font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  --bs-border-color: var(--km-border);
  --bs-link-color: #c2185b;
  --bs-link-hover-color: #9c134a;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--km-foreground);
  background: var(--km-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ---------- utilities ---------- */
.text-muted-2 { color: var(--km-muted) !important; }
.bg-soft { background: var(--km-primary-soft); }
.gradient-primary { background-image: linear-gradient(120deg, #c2185b, #8e24aa); }
.gradient-soft { background-image: linear-gradient(180deg, #fdf6f9, #ffffff); }
.text-gradient {
  background-image: linear-gradient(120deg, #c2185b, #8e24aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rounded-2xl { border-radius: 1.25rem !important; }
.rounded-3xl { border-radius: 1.75rem !important; }
.shadow-card { box-shadow: var(--km-shadow-card); }
.shadow-lift { box-shadow: var(--km-shadow-lift); }
.card-lift { transition: transform .25s ease, box-shadow .25s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--km-shadow-lift); }
.text-primary { color: var(--km-primary) !important; }
.text-success-2 { color: var(--km-success) !important; }
.border-soft { border: 1px solid var(--km-border) !important; }
.fs-7 { font-size: .8125rem; }
.fs-8 { font-size: .6875rem; }

@keyframes float-up { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform:none;} }
.animate-float-up { animation: float-up .6s cubic-bezier(.22,1,.36,1) both; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; }
.btn-primary {
  --bs-btn-bg: #c2185b; --bs-btn-border-color: #c2185b;
  --bs-btn-hover-bg: #a91450; --bs-btn-hover-border-color: #a91450;
  --bs-btn-active-bg: #9c134a; --bs-btn-active-border-color: #9c134a;
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: #c2185b; --bs-btn-disabled-border-color: #c2185b;
}
.btn-outline-primary {
  --bs-btn-color: #c2185b; --bs-btn-border-color: #eccada;
  --bs-btn-hover-bg: #fdf2f6; --bs-btn-hover-color: #9c134a; --bs-btn-hover-border-color: #c2185b;
}
.btn-soft { background: var(--km-secondary); color: var(--km-secondary-fg); }
.btn-soft:hover { background: #fbe6ee; color: var(--km-secondary-fg); }

/* ---------- badges / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: 999px; padding: .15rem .55rem; font-size: .6875rem; font-weight: 500;
  background: var(--km-secondary); color: var(--km-secondary-fg);
}
.chip-success { background: rgba(46,125,50,.1); color: var(--km-success); }
.chip-gold { background: rgba(224,169,34,.18); color: #6a4c07; }
.chip-outline { background: #fff; border: 1px solid var(--km-border); color: var(--km-muted); }

/* ---------- header ---------- */
.km-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--km-border);
  padding-top: .75rem; padding-bottom: .75rem;
}
.km-logo-mark {
  width: 2.25rem; height: 2.25rem; border-radius: .75rem;
  display: grid; place-items: center; color: #fff;
}

/* Brand lockup */
.km-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  line-height: 1.15;
}
.km-brand-mark {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}
.km-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.km-brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.km-brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.km-brand-caption {
  font-size: .72rem;
  font-weight: 500;
  color: var(--km-muted);
  letter-spacing: .01em;
}
.km-brand--footer .km-brand-mark { width: 2.75rem; height: 2.75rem; }
.km-brand--footer .km-brand-name { font-size: 1.3rem; }
.km-brand--auth .km-brand-mark { width: 2.75rem; height: 2.75rem; }
.km-brand--admin .km-brand-mark { width: 2.35rem; height: 2.35rem; }
.km-brand--admin .km-brand-name { font-size: 1.05rem; }
.km-brand--admin .km-brand-caption { font-size: .65rem; }
.km-brand--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
}
.km-brand--stacked .km-brand-mark { width: 3.5rem; height: 3.5rem; }
.km-brand--stacked .km-brand-name { font-size: 1.6rem; }
.km-brand--stacked .km-brand-caption {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}
.km-nav-link {
  border-radius: 999px; padding: .5rem .85rem; font-size: .875rem; font-weight: 500;
  color: var(--km-muted); text-decoration: none; display: block;
}
.km-nav-link:hover { background: var(--km-secondary); color: var(--km-secondary-fg); }
.km-nav-link.active { background: var(--km-secondary); color: var(--km-secondary-fg); }

/* ---------- breadcrumb bar ---------- */
.km-crumbs { background: rgba(253,242,246,.6); border-bottom: 1px solid var(--km-border); }
.km-crumbs a { color: var(--km-muted); text-decoration: none; }
.km-crumbs a:hover { color: var(--km-primary); }

/* ---------- cards ---------- */
.km-card {
  background: var(--km-card);
  border: 1px solid var(--km-border);
  border-radius: 1.25rem;
  box-shadow: var(--km-shadow-card);
}
.km-avatar {
  display: grid; place-items: center;
  background-image: linear-gradient(120deg, #c2185b, #8e24aa);
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 600;
}

/* ---------- forms ---------- */
.form-control, .form-select {
  border-radius: .75rem; border-color: var(--km-border); padding: .625rem .875rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--km-primary); box-shadow: 0 0 0 .2rem rgba(194,24,91,.15);
}
.form-range::-webkit-slider-thumb { background: var(--km-primary); }
.form-check-input:checked { background-color: var(--km-primary); border-color: var(--km-primary); }

/* ---------- footer ---------- */
.km-footer { margin-top: 6rem; background: rgba(253,242,246,.6); border-top: 1px solid var(--km-border); }
.km-footer a { color: var(--km-muted); text-decoration: none; font-size: .875rem; }
.km-footer a:hover { color: var(--km-primary); }
.km-social {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--km-border); background: #fff; color: var(--km-muted);
}
.km-social:hover { border-color: var(--km-primary); color: var(--km-primary); }

/* ---------- accordion ---------- */
.accordion-button:not(.collapsed) { background: var(--km-primary-soft); color: var(--km-secondary-fg); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--km-border); }
.accordion-button { font-family: "Poppins", sans-serif; font-weight: 600; }

/* ---------- nav pills / tabs ---------- */
.nav-pills .nav-link { border-radius: 999px; color: var(--km-muted); font-size: .875rem; font-weight: 500; }
.nav-pills .nav-link.active { background: var(--km-primary); color: #fff; }
.nav-tabs .nav-link { border: 0; color: var(--km-muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--km-primary); border-bottom: 2px solid var(--km-primary); background: transparent; }

/* ---------- misc ---------- */
.progress { background: var(--km-secondary); border-radius: 999px; }
.progress-bar { background-image: linear-gradient(120deg, #c2185b, #8e24aa); }
.km-sidebar-link {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: .75rem;
  color: var(--km-muted); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.km-sidebar-link:hover { background: var(--km-secondary); color: var(--km-secondary-fg); }
.km-sidebar-link.active { background: var(--km-primary); color: #fff; }
.km-sidebar-link .km-notice-pill {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: #fff3cd;
  color: #856404;
}
.km-sidebar-link .km-notice-pill.is-info { background: #e7f1ff; color: #0b5ed7; }
.km-sidebar-link .km-notice-pill.is-success { background: #e8f5e9; color: #2e7d32; }
.km-sidebar-link.active .km-notice-pill { background: rgba(255,255,255,.2); color: #fff; }
.km-notice-dot {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-left: .35rem;
  border-radius: 999px;
  background: var(--km-gold);
  vertical-align: middle;
}
.km-notice-dot.is-info { background: #0b5ed7; }
.km-notice-dot.is-success { background: var(--km-success); }
.hero-img { border-radius: 1.75rem; object-fit: cover; width: 100%; }
.km-bubble { max-width: 78%; border-radius: 1.1rem; padding: .6rem .85rem; font-size: .9rem; }
.km-bubble-me { background-image: linear-gradient(120deg, #c2185b, #8e24aa); color: #fff; border-bottom-right-radius: .3rem; }
.km-bubble-them { background: var(--km-secondary); color: var(--km-foreground); border-bottom-left-radius: .3rem; }
.km-footer .km-brand,
.km-footer .km-brand:hover { color: inherit; }
.km-footer .km-brand-caption {
  color: var(--km-primary) !important;
  font-size: .7rem !important;
}
.step-dot { width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; font-weight: 600; background: var(--km-secondary); color: var(--km-secondary-fg); }
.step-dot.active { background: var(--km-primary); color: #fff; }

/* ---------- profile left card ---------- */
.km-profile-card { width: 100%; }
.km-profile-hero {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.km-profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.km-profile-initials {
  color: #fff;
  font-size: clamp(3.5rem, 12vw, 5rem);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}
.km-profile-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
  padding: .85rem 1rem 0;
}
.km-profile-thumb {
  aspect-ratio: 1;
  border: 0;
  border-radius: .7rem;
  overflow: hidden;
  background: #f3f4f6;
  padding: 0;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: .78rem;
  font-weight: 500;
  width: 100%;
  cursor: default;
}
button.km-profile-thumb { cursor: pointer; }
button.km-profile-thumb:hover { opacity: .92; }
.km-profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.km-profile-thumb-more {
  color: var(--km-muted);
  font-weight: 600;
  font-size: .95rem;
}
.km-profile-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1rem 1.15rem;
}
.km-profile-btn-interest {
  padding-top: .85rem !important;
  padding-bottom: .85rem !important;
  font-weight: 600;
}
.km-profile-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.km-profile-btn-secondary {
  border-color: #e5e7eb !important;
  color: var(--km-foreground) !important;
  background: #fff !important;
  font-weight: 500;
  padding-top: .65rem !important;
  padding-bottom: .65rem !important;
}
.km-profile-btn-secondary:hover,
.km-profile-btn-secondary:focus {
  border-color: var(--km-primary) !important;
  color: var(--km-primary) !important;
  background: var(--km-primary-soft) !important;
}
.km-profile-utils {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  padding-top: .15rem;
}
.km-profile-util {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  background: transparent;
  color: var(--km-foreground);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}
.km-profile-util:hover { color: var(--km-primary); }
.km-profile-util-report,
.km-profile-util-report:hover { color: #dc2626; }
.km-profile-chat-hint {
  font-size: .78rem;
  line-height: 1.35;
  color: var(--km-muted);
  text-align: center;
  padding: 0 .25rem;
}

/* ---------- homepage hero (full-bleed slider) ---------- */
.km-home-hero {
  position: relative;
  width: 100%;
  /* ~16:9-friendly height so landscape slides keep faces in frame */
  min-height: clamp(22rem, 52vw, 34rem);
  overflow: hidden;
  background: #1a1016;
  color: #fff;
}
.km-home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.km-home-hero-carousel,
.km-home-hero-carousel .carousel-inner,
.km-home-hero-carousel .carousel-item,
.km-home-hero-slide-link {
  height: 100%;
}
.km-home-hero-img,
.km-home-hero .km-hero-fallback {
  width: 100%;
  height: 100%;
  min-height: clamp(22rem, 52vw, 34rem);
  object-fit: cover;
  /* Bias toward faces (upper/right) — text sits on the left shade */
  object-position: 72% 22%;
  display: block;
  border-radius: 0;
}
.km-home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 10, 16, .82) 0%, rgba(18, 10, 16, .55) 42%, rgba(18, 10, 16, .18) 68%, rgba(18, 10, 16, .08) 100%),
    linear-gradient(180deg, rgba(18, 10, 16, .28) 0%, transparent 35%, rgba(18, 10, 16, .45) 100%);
}
.km-home-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(22rem, 52vw, 34rem);
  padding-top: 3rem;
  padding-bottom: 3.25rem;
}
.km-home-hero-copy-inner {
  max-width: 36rem;
}
@media (min-width: 992px) {
  .km-home-hero-copy {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}
.km-home-hero-kicker {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
}
.km-home-hero-title {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  max-width: 18ch;
}
.km-home-hero-brand {
  font-size: .58em;
  letter-spacing: .02em;
  margin-bottom: .35rem;
  color: #fff;
}
.km-hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .84);
  max-width: 36rem;
}
.km-btn-ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--km-foreground);
}
.km-btn-ghost i { color: var(--km-primary); }
.km-btn-ghost:hover,
.km-btn-ghost:focus {
  background: #fff;
  border-color: #eccada;
  color: var(--km-foreground);
}
.km-btn-ghost-on-dark {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(6px);
}
.km-btn-ghost-on-dark i { color: #fff; }
.km-btn-ghost-on-dark:hover,
.km-btn-ghost-on-dark:focus {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}
.km-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.35rem;
}
.km-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  font-weight: 500;
}
.km-hero-trust i {
  color: #7ddea0;
  font-size: .95rem;
}
.km-hero-fallback { font-size: 4rem; }
.km-hero-search-wrap {
  position: relative;
  z-index: 3;
  margin-top: -1.75rem;
  padding-top: 0;
  padding-bottom: .5rem;
}
.km-search-card {
  background: #fff;
  border: 1px solid #f0dee6;
  border-radius: 1.35rem;
  box-shadow: 0 1px 2px rgba(38, 48, 63, 0.04), 0 12px 32px -16px rgba(38, 48, 63, 0.16);
  padding: 1.35rem 1.5rem 1.2rem;
}
@media (min-width: 768px) {
  .km-search-card { padding: 1.5rem 1.75rem 1.35rem; }
}
.km-search-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--km-foreground);
  margin: 0 0 1rem;
}
.km-search-select {
  height: 2.85rem;
  border-radius: .85rem;
  border-color: #ead5de;
  color: #6b7280;
}
.km-search-submit {
  height: 2.85rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  white-space: nowrap;
  width: 100%;
}
.km-hero-popular {
  margin-top: .9rem;
  font-size: .8rem;
  color: #9ca3af;
}
.km-hero-popular a {
  color: #9ca3af;
  text-decoration: none;
}
.km-hero-popular a:hover { color: var(--km-primary); }
.km-hero-popular span { margin: 0 .15rem; }

/* Home hero slider controls */
#kmHomeHeroCarousel .carousel-control-prev,
#kmHomeHeroCarousel .carousel-control-next {
  width: 3.5rem;
  opacity: .9;
  z-index: 3;
}
#kmHomeHeroCarousel .carousel-control-prev-icon,
#kmHomeHeroCarousel .carousel-control-next-icon {
  width: 1.65rem;
  height: 1.65rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.km-hero-indicators {
  margin-bottom: 1.15rem;
  z-index: 3;
}
.km-hero-indicators [data-bs-target] {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,.55);
}
.km-hero-indicators .active {
  background-color: #fff;
}
.km-hero-caption {
  background: linear-gradient(transparent, rgba(0,0,0,.45));
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1rem .9rem;
}

@media (max-width: 767.98px) {
  .km-home-hero {
    min-height: 26rem;
  }
  .km-home-hero-img,
  .km-home-hero .km-hero-fallback,
  .km-home-hero-copy {
    min-height: 26rem;
  }
  .km-home-hero-img {
    object-position: 68% 18%;
  }
  .km-home-hero-shade {
    background:
      linear-gradient(180deg, rgba(18, 10, 16, .55) 0%, rgba(18, 10, 16, .72) 45%, rgba(18, 10, 16, .88) 100%);
  }
  .km-hero-search-wrap {
    margin-top: -1.25rem;
  }
}

/* Contact form AJAX toast — stays in the visible viewport */
.km-contact-toast {
  position: fixed;
  top: 5.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  max-width: min(32rem, calc(100% - 2rem));
  padding: .85rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--km-shadow-lift);
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.km-contact-toast.is-success {
  background: #fff;
  color: var(--km-success);
  border: 1px solid rgba(46, 125, 50, .28);
}
.km-contact-toast.is-error {
  background: #fff;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, .28);
}

.km-flash-banner {
  border-radius: .85rem;
}
.km-flash-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  max-width: min(26rem, calc(100% - 2rem));
  padding: .85rem 1rem;
  border-radius: 1rem;
  box-shadow: var(--km-shadow-lift);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
}
.km-flash-toast.is-success {
  color: var(--km-success);
  border: 1px solid rgba(46, 125, 50, .28);
}
.km-flash-toast.is-error {
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, .28);
}
.km-flash-toast.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(.5rem);
  transition: opacity .25s ease, transform .25s ease;
}
.km-flash-toast .btn-close {
  width: .55rem;
  height: .55rem;
  padding: .5rem;
  opacity: .55;
}

/* ---------- success stories slider ---------- */
.km-stories-slider {
  position: relative;
  padding: 0 2.6rem .25rem;
}
.km-stories-viewport {
  overflow: hidden;
}
.km-stories-track {
  display: flex;
  gap: 1.25rem;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.km-stories-slide {
  flex: 0 0 100%;
  min-width: 0;
}
@media (min-width: 768px) {
  .km-stories-slide { flex: 0 0 calc((100% - 1.25rem) / 2); }
}
@media (min-width: 992px) {
  .km-stories-slide { flex: 0 0 calc((100% - 2.5rem) / 3); }
}
.km-stories-card {
  min-height: 13.5rem;
}
.km-stories-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background-image: linear-gradient(120deg, #c2185b, #8e24aa);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: .85rem;
  font-weight: 600;
}
.km-stories-quote {
  line-height: 1.65;
}
.km-stories-nav {
  position: absolute;
  top: calc(50% - 1.6rem);
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--km-border);
  border-radius: 999px;
  background: #fff;
  color: var(--km-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--km-shadow-card);
  padding: 0;
}
.km-stories-nav:hover:not(:disabled) {
  background: var(--km-primary);
  border-color: var(--km-primary);
  color: #fff;
}
.km-stories-nav:disabled {
  opacity: .35;
  cursor: default;
}
.km-stories-nav-prev { left: 0; }
.km-stories-nav-next { right: 0; }
.km-stories-dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 1.15rem;
}
.km-stories-dots button {
  width: .5rem;
  height: .5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ead5de;
}
.km-stories-dots button.is-active {
  width: 1.35rem;
  background: var(--km-primary);
}
.km-why-card {
  border-radius: 1.25rem;
}
.km-why-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--km-primary-soft);
  color: var(--km-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ---------- featured profile cards ---------- */
.km-feat-card {
  border-radius: 1.5rem;
  box-shadow: var(--km-shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.km-feat-hero {
  position: relative;
  flex: 0 0 210px;
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-image: linear-gradient(120deg, #e2187a 0%, #7b1fa2 100%);
}
.km-feat-initials {
  font-family: "Poppins", sans-serif;
  font-size: 3.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1;
}
.km-feat-badges {
  position: absolute;
  inset: .7rem .7rem auto .7rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .4rem;
}
.km-feat-premium {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .6875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(28, 18, 36, .55);
  backdrop-filter: blur(6px);
}
.km-feat-premium i { color: #e0a922; font-size: .7rem; }
.km-feat-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #fff;
  border-radius: 999px;
  padding: .18rem .55rem;
  font-size: .68rem;
  font-weight: 500;
  color: #4b5563;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(38, 48, 63, .12);
}
.km-feat-status strong { color: var(--km-foreground); }
.km-feat-status-split {
  width: 1px;
  height: .7rem;
  background: #e5e7eb;
  margin: 0 .1rem;
}
.km-feat-online-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
}
.km-feat-meta i {
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.km-feat-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
  min-height: 200px;
}
.km-feat-name,
.km-feat-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.km-feat-meta {
  height: 5.00rem;
  overflow: hidden;
  margin-bottom: .75rem;
}
.km-feat-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: auto;
  padding-top: .25rem;
  min-height: 2.5rem;
}
.km-feat-view {
  flex: 1 1 auto;
  border-radius: 999px;
  padding-top: .5rem;
  padding-bottom: .5rem;
  font-weight: 600;
}
.km-feat-heart {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #ececec;
  background: #fff;
  color: #374151;
  display: grid;
  place-items: center;
  text-decoration: none;
  padding: 0;
  flex: 0 0 2.5rem;
  box-shadow: 0 2px 8px rgba(38, 48, 63, .08);
}
.km-feat-heart:hover,
.km-feat-heart.is-active {
  color: var(--km-primary);
  border-color: #eccada;
}

.km-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background-image: linear-gradient(120deg, #c2185b, #8e24aa);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
.km-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.km-thumb-fallback {
  line-height: 1;
}
.km-thumb-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 2.5rem;
}
.km-thumb-circle { border-radius: 999px; }
.km-thumb-square { border-radius: .85rem; }
.km-feat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 575.98px) {
  .km-stories-slider { padding-left: 0; padding-right: 0; }
  .km-stories-nav-prev { left: .15rem; }
  .km-stories-nav-next { right: .15rem; }
}

/* ---------- PWA install prompt ---------- */
.km-pwa-install {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: none;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--km-border);
  box-shadow: 0 12px 36px rgba(38, 48, 63, .18);
  max-width: 26rem;
  margin: 0 auto;
}
.km-pwa-install.is-visible { display: flex; }
.km-pwa-install-copy { flex: 1 1 auto; min-width: 0; }
.km-pwa-install-copy strong { display: block; font-size: .9rem; }
.km-pwa-install-copy span { display: block; font-size: .75rem; color: var(--km-muted, #6b7280); }
.km-pwa-install-actions { display: flex; gap: .4rem; flex-shrink: 0; }
@media (min-width: 576px) {
  .km-pwa-install { left: auto; right: 1.25rem; bottom: 1.25rem; margin: 0; }
}
