/**
 * decto-ui.css — Complete Django UI skin (Decto tokens only: --bn-*).
 * Ivory cream · Botanical #17382F · Mist · Champagne gold #C5A46D · Peyda · radius 20 · header 60 · dock 68
 * Persian RTL. Do NOT style like Next.js chrome (flex/grid on wrong parents).
 */

/* ==========================================================================
   0. BASE / RTL SHELL
   ========================================================================== */
html[dir="rtl"] body,
body {
  direction: rtl;
  text-align: start;
}

body.app-shell {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 100dvh;
  background: transparent;
  color: var(--bn-text);
  font-family: var(--bn-font-body);
}

/* Legacy site navbar dumps profile/settings/logout into the top — hide on app pages */
body.app-shell #navbar,
body.app-shell nav.navbar,
body.app-shell .navbar--premium,
body.app-shell > .footer,
body.app-shell #bnBrowserChromeBleed {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.app-shell .main-content {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: 0 0 calc(var(--bn-dock-h) + 20px);
  background: transparent;
}

.bn-bottom-nav-spacer,
#bnBottomNavSpacer {
  height: calc(var(--bn-dock-h) + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  pointer-events: none;
}

.container {
  width: min(100% - 32px, 1100px);
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* CRITICAL: without old motion CSS, .pm-reveal stays invisible → white pages */
.pm-reveal,
.pm-reveal:not(.pm-visible),
.pm-page-enter,
.bn-lazy-enter,
.bn-lazy-enter:not(.bn-entered),
.bn-app-page.pm-page-enter {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

/* ==========================================================================
   1. SHELL — HEADER (display:block on .app-header; flex on inner)
   ========================================================================== */
body.app-shell .app-header,
body.app-shell .app-header--luxury,
.app-header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: var(--bn-z-header);
  height: var(--bn-header-h);
  min-height: var(--bn-header-h);
  padding: env(safe-area-inset-top, 0px) 14px 0;
  background: var(--bn-glass-1, rgba(255, 255, 255, 0.5));
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid var(--bn-glass-border-ink, rgba(23, 56, 47, 0.08));
  box-shadow: var(--bn-glass-shadow-1, 0 8px 24px rgba(15, 36, 29, 0.05));
}

body.app-shell .app-header-inner,
body.app-shell .app-header-inner--app,
.app-header-inner {
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: var(--bn-header-h);
  grid-template-columns: none !important;
}

body.app-shell .app-header-icon,
.app-header-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: var(--bn-radius-pill);
  display: grid;
  place-items: center;
  color: var(--bn-green);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s var(--bn-wave), color 0.18s ease;
}

body.app-shell .app-header-icon:hover,
.app-header-icon:hover {
  background: var(--bn-green-soft);
  color: var(--bn-green);
}

body.app-shell .app-header-icon:focus-visible,
.app-header-icon:focus-visible {
  outline: none;
  box-shadow: var(--bn-focus-ring);
}

body.app-shell .app-header-icon:active {
  transform: scale(0.96);
}

body.app-shell .app-header-icon .notif-badge,
.app-header-icon .notif-badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bn-danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

body.app-shell .app-header-icon .notif-badge[hidden] {
  display: none !important;
}

body.app-shell .app-header-icon svg,
.app-header-icon .bn-ui-icon {
  width: 22px;
  height: 22px;
}

/* Wordmark */
body .bn-wordmark {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

body .bn-wordmark__marks,
body .bn-wordmark__line,
body .bn-wordmark__dot,
body .bn-menu-hero__orb {
  display: none !important;
}

body .bn-wordmark__text {
  font-family: var(--bn-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bn-green);
  line-height: 1.05;
}

body .bn-wordmark--header .bn-wordmark__text::after,
body .bn-wordmark--nav .bn-wordmark__text::after,
body .bn-wordmark--auth .bn-wordmark__text::after,
body .bn-wordmark--menu .bn-wordmark__text::after {
  content: "";
  display: block;
  width: 42px;
  height: 10px;
  margin-top: 2px;
  background: url("../images/decto-wave.svg") center / contain no-repeat;
}

body.app-shell .app-header-inner .bn-wordmark--header {
  margin-inline-end: auto;
}

/* ==========================================================================
   2. BOTTOM NAV — fixed glass; grid ONLY on .bottom-nav-inner (5 cols)
   ========================================================================== */
body.app-shell .bottom-nav,
body.app-shell .bottom-nav--luxury,
body.app-shell .bottom-nav--primary,
.global-auth-bottom-nav,
.bottom-nav {
  display: block !important;
  position: fixed;
  left: 0;
  right: 0;
  inset-inline: 0;
  bottom: 0;
  top: auto;
  z-index: 300;
  width: 100%;
  height: calc(var(--bn-dock-h) + env(safe-area-inset-bottom, 0px));
  min-height: calc(var(--bn-dock-h) + env(safe-area-inset-bottom, 0px));
  max-height: calc(var(--bn-dock-h) + env(safe-area-inset-bottom, 0px));
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  margin: 0;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1.5px solid rgba(23, 56, 47, 0.14);
  box-shadow: 0 -6px 20px rgba(23, 56, 47, 0.07);
  grid-template-columns: none !important;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transition: none;
}

body.app-shell .bottom-nav-inner,
.global-auth-bottom-nav .bottom-nav-inner,
.bottom-nav-inner {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  height: var(--bn-dock-h);
  max-width: 720px;
  margin: 0 auto;
  align-items: stretch;
}

body.app-shell .bottom-nav-item,
.global-auth-bottom-nav .bottom-nav-item,
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--bn-green-mid);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  padding: 4px 2px;
  transition: color 0.18s ease;
}

body.app-shell .bottom-nav-item::before,
.bottom-nav-item::before {
  display: none !important;
  content: none !important;
}

body.app-shell .bottom-nav-item.active,
body.app-shell .bottom-nav-item.is-active,
body.app-shell .bottom-nav-item[aria-current="page"],
.global-auth-bottom-nav .bottom-nav-item.active,
.bottom-nav-item.active,
.bottom-nav-item.is-active,
.bottom-nav-item[aria-current="page"] {
  color: var(--bn-green);
  font-weight: 900;
  background: none;
}

body.app-shell .bottom-nav-item:focus-visible,
.bottom-nav-item:focus-visible {
  outline: none;
  box-shadow: var(--bn-focus-ring);
  border-radius: var(--bn-radius-sm);
}

body.app-shell .bottom-nav-item svg,
.bottom-nav-item svg,
.bottom-nav-item .bn-ui-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Center primary pill — floats up 44px with brand gradient */
body.app-shell .bottom-nav-item--primary > span:first-child,
body.app-shell .bottom-nav-item--search > span:first-child,
body.app-shell .bottom-nav-item--create > span:first-child,
.bottom-nav-item--primary > span:first-child,
.bottom-nav-item--search > span:first-child,
.bottom-nav-item--create > span:first-child {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -16px;
  border-radius: 999px;
  background: var(--bn-gradient-brand);
  color: var(--bn-cream);
  box-shadow: var(--bn-shadow-md);
}

body.app-shell .bottom-nav-item--primary > span:first-child svg,
body.app-shell .bottom-nav-item--search > span:first-child svg,
body.app-shell .bottom-nav-item--create > span:first-child svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  color: var(--bn-cream);
}

body.app-shell .bottom-nav-item--primary.active,
body.app-shell .bottom-nav-item--search.active {
  color: var(--bn-green);
}

/* ==========================================================================
   3. LUX MENU — backdrop + panel slide; items flex row + icon tiles
   ========================================================================== */
.lux-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(18, 44, 38, 0.4);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  transition: opacity 0.22s var(--bn-wave);
}

.lux-menu-backdrop[hidden] {
  display: none !important;
}

aside#luxMenuPanel,
.lux-menu-panel {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 410;
  width: min(100vw - 40px, 340px);
  max-width: 100%;
  background: var(--bn-cream);
  color: var(--bn-text);
  box-shadow: var(--bn-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(0);
  transition: transform 0.28s var(--bn-wave);
}

html[dir="rtl"] aside#luxMenuPanel,
html[dir="rtl"] .lux-menu-panel {
  /* panel opens from start (right in RTL) */
  inset-inline-start: 0;
  inset-inline-end: auto;
}

aside#luxMenuPanel[hidden],
.lux-menu-panel[hidden] {
  display: none !important;
}

.lux-menu-sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.lux-menu-topline {
  display: none !important;
}

.lux-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--bn-border-soft);
}

.lux-menu-kicker {
  display: block;
  margin-bottom: 4px;
}

.lux-menu-head__label {
  display: block;
  font-family: var(--bn-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--bn-green);
}

.lux-menu-head__hint {
  display: block;
  margin-top: 4px;
  color: var(--bn-text-3);
  font-size: 0.76rem;
}

.lux-menu-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--bn-mist);
  color: var(--bn-green);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lux-menu-scroll {
  flex: 1;
  overflow: auto;
  padding: 10px 12px 20px;
  -webkit-overflow-scrolling: touch;
}

.lux-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lux-menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--bn-text);
  text-align: start;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  transition: background 0.15s ease;
}

.lux-menu-item:hover {
  background: var(--bn-mist);
}

.lux-menu-item:focus-visible,
.lux-menu-close:focus-visible {
  outline: none;
  box-shadow: var(--bn-focus-ring);
}

.lux-menu-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--bn-text);
}

.lux-menu-item small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--bn-text-3);
  font-weight: 500;
}

.lux-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bn-mist);
  color: var(--bn-green);
  flex-shrink: 0;
}

.lux-menu-icon svg,
.lux-menu-icon .bn-ui-icon {
  width: 20px;
  height: 20px;
}

.lux-menu-logout {
  margin: 12px;
  width: calc(100% - 24px);
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--bn-border);
  background: var(--bn-surface);
  color: var(--bn-danger);
  font-weight: 700;
  cursor: pointer;
}

.lux-menu-footer {
  padding: 8px 12px 16px;
  border-top: 1px solid var(--bn-border-soft);
}

/* ==========================================================================
   4. FORMS (buttons owned by decto-primitives.css)
   ========================================================================== */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--bn-text);
}

.form-control,
input.form-control,
textarea.form-control,
select.form-control,
body.app-shell input[type="text"],
body.app-shell input[type="tel"],
body.app-shell input[type="password"],
body.app-shell input[type="email"],
body.app-shell input[type="search"],
body.app-shell input[type="number"],
body.app-shell textarea,
body.app-shell select,
body.auth-page input,
body.auth-page textarea,
body.auth-page select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--bn-border);
  background: var(--bn-surface);
  color: var(--bn-text);
  outline: none;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.form-control,
body.app-shell textarea {
  min-height: 110px;
  resize: vertical;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--bn-green-mid);
  box-shadow: 0 0 0 3px var(--bn-green-soft);
}

.form-hint,
.form-text {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--bn-text-3);
}

.form-error,
.invalid-feedback {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--bn-danger);
}

/* ==========================================================================
   PAGE TITLES (kill lux eyebrows)
   ========================================================================== */
.bn-app-page {
  padding: 10px 12px 24px;
}

.bn-lux-head__eyebrow,
.bn-lux-head__line,
.bn-page-hero {
  display: none !important;
}

.bn-lux-head__title,
.decto-page-title .bn-lux-head__title {
  margin: 0 0 12px;
  font-family: var(--bn-font-display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--bn-green-deep);
}

/* ==========================================================================
   5. FEED
   ========================================================================== */
.bn-feed-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bn-feed-hero-card {
  padding: 14px 16px;
  border-radius: var(--bn-radius);
  text-align: center;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  box-shadow: var(--bn-shadow-xs);
}

.bn-feed-hero-title {
  margin: 0;
  font-size: clamp(0.98rem, 3.4vw, 1.12rem);
  font-weight: 700;
  color: var(--bn-green-deep);
}

.bn-feed-hero-title__accent {
  color: var(--bn-gold);
}

/* Stories — circular rings (real classes from stories.js) */
.bn-home-stories-section:not([hidden]) {
  display: block;
  padding: 4px 0 10px;
}

.stories-row,
.feed-hero-stories,
.bn-rail,
#feedStories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
}

.stories-row::-webkit-scrollbar,
.feed-hero-stories::-webkit-scrollbar,
.bn-rail::-webkit-scrollbar,
#feedStories::-webkit-scrollbar {
  display: none;
}

.story-item,
.story-chip {
  flex: 0 0 auto;
  width: 76px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: var(--bn-text);
  font: inherit;
}

.story-avatar-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 0 auto 6px;
  overflow: visible;
  flex-shrink: 0;
}

.story-avatar {
  width: 66px !important;
  height: 66px !important;
  max-width: 66px !important;
  max-height: 66px !important;
  border-radius: 50% !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  display: block !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, var(--bn-gold), #ef4444, var(--bn-green-mid));
}

.story-avatar.story-unviewed {
  background: linear-gradient(135deg, #c7a56f, #ef4444, #2d9b78);
  box-shadow: 0 6px 14px rgba(185, 155, 114, 0.2);
}

.story-avatar.story-viewed {
  background: rgba(23, 56, 47, 0.18);
  opacity: 0.9;
  box-shadow: none;
}

.story-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 2px solid var(--bn-cream) !important;
  background: var(--bn-mist);
  box-sizing: border-box !important;
}

.story-username {
  display: block;
  max-width: 76px;
  margin: 0 auto;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--bn-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.story-add-ring {
  background: linear-gradient(135deg, var(--bn-green-mid), var(--bn-green)) !important;
  color: var(--bn-cream);
  font-size: 1.2rem;
  display: grid !important;
  place-items: center !important;
}

.story-add-ring img {
  display: none !important;
}

/* VIP offer ring — Botanical/Champagne (no purple) */
.story-avatar.story-offer-unviewed {
  background: conic-gradient(
    from 210deg,
    var(--bn-green),
    var(--bn-green-mid),
    var(--bn-gold),
    var(--bn-gold-light),
    var(--bn-green-mid),
    var(--bn-green)
  ) !important;
  padding: 3px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 18px rgba(197, 164, 109, 0.28),
    0 12px 28px rgba(23, 56, 47, 0.18);
}

.story-avatar.story-offer-viewed {
  background: linear-gradient(135deg, rgba(41, 72, 61, 0.45), rgba(197, 164, 109, 0.35)) !important;
  padding: 2px;
  opacity: 0.88;
}

.bn-feed-list,
.iconic-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Surface card */
.bn-feed-card,
.feed-post,
.bn-card.bn-feed-card {
  background: var(--bn-color-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-radius-lg);
  box-shadow: var(--bn-shadow-sm);
  overflow: hidden;
}

/* Media frame 4/5 — author overlays on top; image always fills (no letterbox gap) */
.bn-feed-card__media,
.feed-post-media-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bn-cream-2);
  overflow: hidden;
}

.feed-post-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bn-cream-2);
}

.feed-post-media img,
.feed-post-media video,
.feed-post-media .bn-feed-media-img,
.bn-feed-card__media > img,
.bn-feed-card__media > video {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
}
.bn-feed-card__author,
.bn-feed-card__media > .bn-feed-card__author,
.feed-post-media-wrap > .bn-feed-card__author {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 18, 0.72) 0%,
    rgba(10, 20, 18, 0.28) 70%,
    transparent 100%
  );
  pointer-events: none;
}

a.feed-post-author,
.bn-feed-card__author .feed-post-author {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  text-decoration: none;
  color: #fff !important;
  inset: auto;
  pointer-events: auto;
  max-width: 85%;
}

.bn-feed-card__author .feed-post-author > img,
a.feed-post-author > img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: var(--bn-mist);
}

.bn-feed-card__author .feed-post-author-name,
.bn-feed-card__author strong,
.feed-post-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bn-feed-card__author small,
.bn-feed-card__author .feed-post-meta {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.72rem;
}

.bn-feed-avatar-ring,
.feed-post-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bn-mist);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bn-feed-avatar-ring img,
.feed-post-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Media absolute fill — cover */
.feed-post-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bn-cream-2);
}

.feed-post-media img,
.feed-post-media video,
.bn-feed-card__media > img,
.bn-feed-card__media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bn-feed-card__body,
.feed-post-body {
  padding: 2px 14px 12px;
  position: relative;
  z-index: 1;
  background: var(--bn-surface);
}

/* Body actions row flex */
.feed-post-compact-actions,
.bn-feed-card__actions,
.feed-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.feed-post-icon-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.feed-stat-pill,
.feed-save-pill,
.like-btn,
.comment-btn,
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--bn-text-2);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.feed-stat-pill i,
.feed-save-pill i,
.like-btn i,
.comment-btn i,
.share-btn i {
  font-size: 1.35rem;
  line-height: 1;
}

.like-btn.is-liked,
.like-btn.active {
  color: var(--bn-danger);
}

.feed-post-service-type {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bn-gold);
  background: var(--bn-gold-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.bn-feed-card__caption,
.feed-post-caption {
  margin: 0;
  color: var(--bn-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   6. BA SLIDER — pro minimal (handle + arrows only capture touch)
   ========================================================================== */
.ba-slider,
.ba-slider-premium,
.ba-slider.ba-slider--pro {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: var(--bn-cream-2);
  overflow: hidden;
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  border-radius: 0;
}

.ba-slider img,
.ba-slider .ba-before,
.ba-slider .ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 252, 248, 0.95);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(23, 56, 47, 0.12);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: auto;
  touch-action: none;
  cursor: ew-resize;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 56, 47, 0.14);
  box-shadow: 0 4px 14px rgba(16, 37, 29, 0.16);
  transform: translate(-50%, -50%);
  font-size: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  color: #17382f;
  filter: none;
}
.ba-handle-grip .ba-chevron {
  display: block;
  width: 14px;
  height: 18px;
  color: #17382f;
}
.ba-handle-grip .ba-chevron path {
  stroke: currentColor;
  fill: none;
}

.ba-handle-grip::before,
.ba-handle-grip::after {
  display: none;
  content: none;
}

.ba-slider-handle.is-active .ba-handle-grip {
  border-color: transparent;
  box-shadow: none;
}

.ba-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 249, 245, 0.92);
  color: #17382f;
  box-shadow: 0 2px 10px rgba(23, 56, 47, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  pointer-events: auto;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
}

.ba-nav i {
  font-size: 0.78rem;
  line-height: 1;
}

.ba-nav--prev {
  inset-inline-start: 10px;
  left: 10px;
}

.ba-nav--next {
  inset-inline-end: 10px;
  right: 10px;
}

.ba-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.ba-slider.ba-slider-premium::after,
.ba-slider::before,
.ba-slider-premium::before {
  display: none !important;
  content: none !important;
}

.ba-slider-bar {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.ba-label {
  position: static;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 40, 36, 0.72);
  color: var(--bn-cream);
  font-size: 0.66rem;
  font-weight: 700;
  pointer-events: none;
}

.ba-label--before,
.ba-label--after {
  inset: auto;
}

/* ==========================================================================
   7. EXPLORE — 3-col grid, provider rail, cards 4/5
   ========================================================================== */
.bn-explore-page::before {
  display: none !important;
}

.bn-explore-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px 28px;
  isolation: auto;
}

.explore-provider-rail {
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow);
  padding: 12px;
  margin-bottom: 14px;
}

.explore-provider-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.explore-provider-rail__tabs {
  display: flex;
  gap: 6px;
}

.explore-provider-rail__tab {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--bn-mist);
  color: var(--bn-text-2);
  font: inherit;
  font-weight: 650;
  font-size: 0.8rem;
  cursor: pointer;
}

.explore-provider-rail__tab.is-active {
  background: var(--bn-green);
  color: var(--bn-cream);
}

.explore-provider-rail__all {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bn-green-mid);
  text-decoration: none;
}

.explore-provider-rail__scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.explore-provider-rail__scroller::-webkit-scrollbar {
  display: none;
}

.explore-provider-card {
  flex: 0 0 auto;
  width: 92px;
  max-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
  color: var(--bn-text);
  position: relative;
  z-index: 0;
}

.explore-provider-card__avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  margin: 0;
  border-radius: 999px;
  object-fit: cover;
  background: var(--bn-mist);
  border: 2px solid var(--bn-surface);
  box-shadow: 0 0 0 1px var(--bn-border-soft);
  display: block;
  flex-shrink: 0;
}

.explore-provider-card__name {
  display: block;
  width: 100%;
  max-width: 92px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bn-green);
}

.explore-provider-card__sub {
  display: block;
  width: 100%;
  max-width: 92px;
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--bn-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-app-grid,
#exploreMasonry,
.explore-masonry,
.iconic-bento {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
}
@media (max-width: 520px) {
  .explore-app-grid,
  #exploreMasonry,
  .explore-masonry,
  .iconic-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }
}
@media (min-width: 1100px) {
  .explore-app-grid,
  #exploreMasonry,
  .explore-masonry,
  .iconic-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}

.bn-explore-card,
.explore-app-card,
.explore-card,
.decto-explore-card {
  position: relative;
  border-radius: 14px !important;
  overflow: hidden;
  background: var(--bn-cream-2);
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0;
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  cursor: pointer;
}

.explore-card-media,
.card-carousel-mini {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5 !important;
  background: var(--bn-cream-2);
  position: relative;
}

.explore-card-media img,
.explore-card-media video,
.card-carousel-mini img,
.explore-ba-mount,
.explore-ba-mount .ba-slider {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.explore-ba-mount {
  position: absolute;
  inset: 0;
}

.explore-card-engagement,
.explore-card-overlay-actions,
.explore-card-meta,
.decto-explore-missing {
  display: none !important;
}

.bn-search-page,
.search-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
}

.search-bar,
.doctors-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  box-shadow: var(--bn-shadow-xs);
  margin-bottom: 12px;
}

.search-bar input,
.doctors-search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 40px;
  outline: none;
  box-shadow: none;
  color: var(--bn-text);
  font: inherit;
}

/* Explore modal — ONLY when .open (never show on bare aria-hidden) */
.explore-modal,
#explorePostModal {
  display: none !important;
}
.explore-modal[hidden],
#explorePostModal[hidden],
.explore-modal[aria-hidden="true"]:not(.open) {
  display: none !important;
  pointer-events: none !important;
}
.explore-modal.open,
#explorePostModal.open,
.explore-modal[aria-hidden="false"].open {
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--bn-z-modal) !important;
  background: rgba(10, 18, 16, 0.92) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
}

.explore-reels-shell,
.explore-modal-dialog {
  width: min(100%, 420px);
  max-height: 100dvh;
  overflow: auto;
}

/* Deep-link SEO article — never cover the explore grid */
.explore-post-seo:not(.explore-post-seo--sr),
#explorePostSeo {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   POST DETAIL MODAL (isolated from .composer-modal / .modal bottom-sheet)
   ========================================================================== */
#postDetailModal.bn-post-detail-modal,
.bn-post-detail-modal {
  position: fixed;
  inset: 0;
  z-index: var(--bn-z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: rgba(10, 18, 16, 0.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#postDetailModal.bn-post-detail-modal.is-open,
#postDetailModal.bn-post-detail-modal.open,
#postDetailModal.bn-post-detail-modal.active,
.bn-post-detail-modal.is-open,
.bn-post-detail-modal.open,
.bn-post-detail-modal.active {
  display: flex !important;
  pointer-events: auto !important;
}
#postDetailModal[hidden]:not(.is-open):not(.open):not(.active) {
  display: none !important;
  pointer-events: none !important;
}
#postDetailModal .bn-post-detail,
.bn-post-detail-modal .bn-post-detail {
  position: relative;
  width: min(100%, 920px);
  max-height: min(92dvh, 900px);
  margin: auto;
  background: var(--bn-color-surface);
  border-radius: var(--bn-radius-lg);
  overflow: hidden;
  box-shadow: var(--bn-shadow-lg);
  display: flex;
  flex-direction: column;
}
.bn-post-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(92dvh, 900px);
}
.bn-post-detail-media {
  background: #0f1a16;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bn-post-detail-media img,
.bn-post-detail-media video {
  max-width: 100%;
  max-height: min(70dvh, 720px);
  object-fit: contain;
}
.bn-post-detail-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bn-ivory);
  border-inline-start: 1px solid var(--bn-border-soft);
}
.bn-post-detail-head {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bn-border-soft);
}
.bn-post-detail-body,
.bn-post-detail-comments {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
}
.bn-post-detail-footer,
.post-detail-comment-form {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-top: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
}
.bn-post-detail-back,
.bn-post-detail-close {
  position: absolute;
  top: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 26, 23, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.bn-post-detail-back {
  inset-inline-start: 10px;
  width: auto;
  padding: 0 12px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}
.bn-post-detail-close {
  inset-inline-end: 10px;
}
.bn-post-detail-back:focus-visible,
.bn-post-detail-close:focus-visible {
  outline: none;
  box-shadow: var(--bn-focus-ring);
}
@media (max-width: 767px) {
  #postDetailModal.bn-post-detail-modal.is-open,
  .bn-post-detail-modal.is-open {
    align-items: stretch;
    padding: 0;
  }
  #postDetailModal .bn-post-detail,
  .bn-post-detail-modal .bn-post-detail {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .bn-post-detail-grid {
    grid-template-columns: 1fr;
    max-height: 100dvh;
  }
}

/* ==========================================================================
   8. PROFILES
   ========================================================================== */
.bn-profile-gold-frame,
.bn-profile-cover-mesh,
.doctor-editorial-profile,
#doctorEditorialProfile,
.bn-settings-lux-glow,
.patient-ai-lux-banner__aurora,
.dp-owner-hero__glow,
.dp-owner-hero-btn__glow,
#doctorPublisherDock,
.dp-publisher-dock,
.dp-owner-photo-toggle {
  display: none !important;
}

.bn-profile-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Visitor/social shell — always readable without page-profile bundle */
.bn-profile-social-shell:not([hidden]),
.bn-profile-page .bn-profile-social-shell:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bn-profile-hero {
  position: relative;
  border-radius: var(--bn-radius-lg);
  overflow: hidden;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
}
.bn-profile-cover {
  height: 120px;
  background: var(--bn-gradient-brand);
}
.bn-profile-card,
.bn-profile-hero .bn-profile-card {
  margin-top: -40px;
  padding: 16px;
  position: relative;
  z-index: 1;
  background: var(--bn-surface);
}
.bn-profile-tabs,
.profile-tabs,
.dp-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.bn-profile-content:not([hidden]) {
  display: block;
  min-height: 120px;
}
.bn-profile-grid,
.bn-profile-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
@media (max-width: 480px) {
  .bn-profile-grid,
  .bn-profile-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bn-profile-page[hidden],
.bn-profile-social-shell[hidden] {
  display: none !important;
}

/* Owner hero — visible when :not([hidden]) */
#doctorOwnerHero:not([hidden]),
#clinicOwnerHero:not([hidden]),
.dp-owner-hero:not([hidden]),
.dp-owner-home:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow);
}

.dp-owner-home__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dp-owner-home__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--bn-green);
  text-decoration: none;
}

.dp-owner-home__brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bn-gold);
}

.dp-owner-home__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bn-profile-avatar-wrap,
.dp-owner-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.bn-profile-avatar-ring,
.dp-avatar-ring {
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: var(--bn-mist);
  overflow: hidden !important;
  flex-shrink: 0;
}

.bn-profile-avatar,
.dp-avatar,
.dp-owner-hero__avatar,
.bn-profile-avatar-ring img,
.dp-avatar-ring img {
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Prevent any profile media from exploding full-bleed */
.bn-profile-page img:not(.bn-profile-grid img):not(.dp-posts-grid img),
.bn-profile-hero img,
.dp-owner-hero img {
  max-width: 100%;
}

.bn-profile-grid img,
.dp-posts-grid img,
.patient-tagged-grid img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  object-fit: cover !important;
  max-height: none;
}

.dp-owner-hero__avatar-btn,
.dp-owner-hero__avatar-edit {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dp-owner-hero__avatar-edit,
.bn-profile-avatar-edit:not([hidden]) {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--bn-green);
  color: var(--bn-cream);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  border: 0;
  cursor: pointer;
}

.bn-profile-name,
.dp-owner-name {
  margin: 0;
  font-family: var(--bn-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bn-green);
}

.bn-profile-username,
.dp-owner-username {
  margin: 2px 0 0;
  color: var(--bn-text-3);
  font-size: 0.86rem;
}

.bn-profile-bio,
.dp-owner-bio {
  margin: 8px 0 0;
  color: var(--bn-text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Stats 3-col */
.bn-profile-stats,
.iconic-stats,
.dp-owner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bn-profile-stat,
.dp-owner-stat {
  text-align: center;
  padding: 10px 8px;
  border-radius: 16px;
  background: var(--bn-surface-2);
  border: 1px solid var(--bn-border-soft);
}

.bn-profile-stat strong,
.dp-owner-stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--bn-green);
}

.bn-profile-stat span,
.dp-owner-stat span {
  font-size: 0.72rem;
  color: var(--bn-text-3);
}

.dp-owner-action-deck,
.dp-owner-action-deck__primary,
.cp-owner-action-deck__primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  width: 100%;
}

/* Owner full-width command stack (redesign 21o) */
.dp-owner-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 4px 0 8px;
  margin: 0;
}
.dp-owner-nav-stack[hidden] {
  display: none !important;
}
.dp-owner-nav-stack__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(197, 164, 109, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 244, 0.94));
  color: var(--bn-green, #17382F);
  font: inherit;
  font-weight: 750;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(23, 56, 47, 0.05);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
}
.dp-owner-nav-stack__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(197, 164, 109, 0.18), rgba(23, 56, 47, 0.06));
  border: 1px solid rgba(197, 164, 109, 0.35);
  color: #17382f;
  font-size: 0.95rem;
}
.dp-owner-nav-stack__label {
  flex: 1 1 auto;
  text-align: start;
  line-height: 1.35;
}
.dp-owner-nav-stack__btn:hover,
.dp-owner-nav-stack__btn:focus-visible {
  background: linear-gradient(145deg, #fff, #f7f4ee);
  border-color: rgba(197, 164, 109, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 28px rgba(23, 56, 47, 0.08);
  outline: none;
}
.dp-owner-nav-stack__btn:active {
  transform: scale(0.992);
}

/* Owner home — soft lux polish */
.dp-own-profile .dp-owner-home,
.cp-own-profile .dp-owner-home,
.dp-own-profile .cp-owner-home,
.cp-own-profile .cp-owner-home {
  position: relative;
  border-radius: 24px;
  padding: 16px 14px 12px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(197, 164, 109, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 247, 0.94));
  border: 1px solid rgba(197, 164, 109, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(23, 56, 47, 0.06);
}
.dp-own-profile .dp-owner-home__brand-label,
.cp-own-profile .dp-owner-home__brand-label {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dp-own-profile .dp-owner-nav-stack,
.cp-own-profile .dp-owner-nav-stack {
  margin-top: 6px;
  gap: 11px;
}
.bn-profile-page.dp-own-profile #profileStoriesSection,
.bn-profile-page.cp-own-profile #profileStoriesSection {
  margin: 4px 0 8px;
  padding: 8px 0 4px;
}
.bn-profile-page.dp-own-profile #providerInsightsPanel:not([hidden]),
.bn-profile-page.cp-own-profile #providerInsightsPanel:not([hidden]) {
  display: block;
  margin: 8px 0 12px;
}

/* Media studio loading badge */
.bn-ms-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(5, 8, 7, 0.55);
  color: #f5f0e6;
  font-size: 0.86rem;
  font-weight: 650;
  pointer-events: none;
}
.bn-ms-loading[hidden] { display: none !important; }
.bn-ms-loading__spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(245, 240, 230, 0.25);
  border-top-color: #c5a46d;
  animation: bn-ms-spin 0.7s linear infinite;
}
@keyframes bn-ms-spin { to { transform: rotate(360deg); } }
.bn-ms-viewport.is-loading .bn-ms-stage-wrap { opacity: 0.35; }

/* Visitor: keep stories after visitor shell even if markup sits earlier */
.bn-profile-page.bn-profile--visitor,
body.bn-profile--visitor .bn-profile-page {
  display: flex;
  flex-direction: column;
}
body.bn-profile--visitor #doctorOwnerHero,
body.bn-profile--visitor #clinicOwnerHero,
body.bn-profile--visitor #doctorOwnerNavStack,
body.bn-profile--visitor #clinicOwnerNavStack,
body.bn-profile--visitor #providerInsightsPanel {
  order: 0;
}
body.bn-profile--visitor .bn-profile-social-shell {
  order: 2;
}
body.bn-profile--visitor #profileStoriesSection {
  order: 3;
}
body.bn-profile--visitor .bn-profile-tabs,
body.bn-profile--visitor .dp-tabs {
  order: 4;
}
body.bn-profile--visitor .bn-profile-content,
body.bn-profile--visitor .tab-content {
  order: 5;
}

.dp-owner-hero-btn--gear {
  min-width: 52px;
  padding-inline: 10px;
}

/* Owner specs fold + info chips */
.dp-owner-specs-fold {
  margin-top: 4px;
}
.dp-owner-specs-fold__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface-2);
  color: var(--bn-text);
  font: inherit;
  font-weight: 650;
  font-size: 0.84rem;
  cursor: pointer;
}
.dp-owner-specs-fold__panel:not([hidden]) {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--bn-surface-2);
  border: 1px solid var(--bn-border-soft);
}
.bn-visitor-info-grid,
.dp-owner-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bn-visitor-info-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
}
.bn-visitor-info-chip__label {
  font-size: 0.7rem;
  color: var(--bn-text-3);
  font-weight: 650;
}
.bn-visitor-info-chip__value {
  font-size: 0.86rem;
  color: var(--bn-text);
  font-weight: 700;
}
.bn-visitor-map-wrap,
.dp-owner-map-wrap {
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bn-border-soft);
  min-height: 140px;
  background: var(--bn-mist);
}
.bn-visitor-map,
.dp-owner-map {
  min-height: 140px;
  width: 100%;
}
.dp-owner-home__identity-copy {
  flex: 1;
  min-width: 0;
}
.dp-owner-classic-link {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--bn-green-mid);
  font-weight: 650;
}

.dp-owner-hero-btn,
.patient-appts-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 10px 6px;
  border-radius: var(--bn-radius-md);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface-2);
  color: var(--bn-text);
  font: inherit;
  font-weight: 650;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
}

.dp-owner-hero-btn:focus-visible,
.patient-appts-cta:focus-visible {
  outline: none;
  box-shadow: var(--bn-focus-ring);
}

.dp-owner-hero-btn--post,
.dp-owner-hero-btn.primary {
  background: var(--bn-color-primary);
  color: var(--bn-color-text-on-primary);
  border-color: var(--bn-color-primary);
}

.dp-owner-hero-btn__icon {
  color: var(--bn-green-mid);
  font-size: 1rem;
}

.dp-owner-hero-btn--post .dp-owner-hero-btn__icon {
  color: var(--bn-cream);
}

.dp-owner-strip,
.dp-owner-command,
.dp-owner-quick-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Visitor hero */
.bn-profile-social-shell,
.bn-profile-hero,
.bn-profile-card,
.iconic-profile-hero {
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow);
  overflow: hidden;
  position: relative;
}

.bn-profile-cover {
  height: 96px;
  background: linear-gradient(135deg, var(--bn-mist), var(--bn-green-soft));
}

.bn-profile-hero .bn-profile-avatar-ring {
  margin: -38px 16px 0;
  border: 3px solid var(--bn-surface);
  box-shadow: var(--bn-shadow-xs);
}

.bn-profile-hero .bn-profile-card,
.bn-profile-info {
  padding: 8px 16px 16px;
}

.bn-visitor-actions,
.bn-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bn-visitor-info-chip,
.bn-visitor-info-tile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--bn-surface-2);
  border: 1px solid var(--bn-border-soft);
  font-size: 0.8rem;
  color: var(--bn-text-2);
}

.bn-profile-nav {
  position: absolute;
  top: 12px;
  inset-inline: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.bn-profile-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: var(--bn-glass-strong);
  color: var(--bn-green);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--bn-shadow-xs);
}
.bn-profile-nav-btn:focus-visible {
  outline: none;
  box-shadow: var(--bn-focus-ring);
}

/* Tabs pills */
.bn-profile-tabs,
.profile-tabs,
.iconic-chips,
.dp-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.bn-profile-tabs::-webkit-scrollbar,
.profile-tabs::-webkit-scrollbar,
.dp-tabs::-webkit-scrollbar {
  display: none;
}

.bn-profile-tab,
.profile-tab,
.dp-tab,
.tab-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--bn-mist);
  color: var(--bn-text-2);
  font: inherit;
  font-weight: 650;
  font-size: 0.82rem;
  cursor: pointer;
}

.bn-profile-tab.is-active,
.bn-profile-tab.active,
.bn-profile-tab[aria-selected="true"],
.dp-tab.is-active,
.tab-btn.active,
.profile-tab.is-active {
  background: var(--bn-green);
  color: var(--bn-cream);
}

/* 3-col post grid */
.bn-profile-grid,
.dp-posts-grid,
.patient-tagged-grid,
.profile-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.bn-profile-grid img,
.bn-profile-grid video,
.dp-posts-grid img,
.profile-posts-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bn-cream-2);
  border-radius: 8px;
}

.bn-profile-panel,
.tab-content {
  display: none;
}

.bn-profile-panel.active,
.tab-content.active,
.bn-profile-panel.is-active {
  display: block;
}

/* Own profile: hide visitor hero; show owner hero */
.bn-profile-page.dp-own-profile .bn-profile-social-shell > .bn-profile-hero.dp-hero,
.bn-profile-page.cp-own-profile .bn-profile-social-shell > .bn-profile-hero {
  display: none !important;
}

.bn-profile-page.dp-own-profile #doctorOwnerHero,
.bn-profile-page.cp-own-profile #clinicOwnerHero {
  display: flex !important;
  flex-direction: column;
}

/* ==========================================================================
   9. SETTINGS — hero title, scroll nav pills, panels, cards, grid-2, toggles
   ========================================================================== */
.bn-settings-page,
.settings-page,
.bn-tools-page,
.bn-settings-app-page,
.bn-settings-lux {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 32px;
}

.bn-settings-lux__hero-glow { display: none !important; }
.bn-settings-lux__eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bn-text-3);
  letter-spacing: 0.02em;
}
.bn-settings-lux__title {
  margin: 0;
  font-family: var(--bn-font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--bn-green);
}
.bn-settings-lux__lead {
  margin: 8px 0 0;
  color: var(--bn-text-2);
  font-size: 0.9rem;
}
.settings-layout,
.settings-layout--lux {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-nav--top {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.settings-nav--top::-webkit-scrollbar { display: none; }
.settings-nav--top .settings-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--bn-radius-pill);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
  color: var(--bn-text-2);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.settings-nav--top .settings-nav-btn:focus-visible {
  outline: none;
  box-shadow: var(--bn-focus-ring);
}
.settings-nav--top .settings-nav-btn.active,
.settings-nav--top .settings-nav-btn[aria-selected="true"] {
  background: var(--bn-green-soft);
  color: var(--bn-green);
  border-color: var(--bn-green-light);
  font-weight: 700;
}
.settings-nav-btn.hidden { display: none !important; }

.settings-hero,
.bn-settings-hero,
.settings-page-head,
.bn-settings-lux__hero {
  margin-bottom: 14px;
  padding: 4px 2px 8px;
}

.settings-hero__title,
.bn-settings-hero__title,
.settings-page-head h1,
.bn-settings-page .bn-lux-head__title {
  margin: 0;
  font-family: var(--bn-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bn-green);
}

.settings-hero__sub,
.bn-settings-hero__sub {
  margin: 6px 0 0;
  color: var(--bn-text-2);
  font-size: 0.9rem;
}

.settings-nav,
.settings-nav-scroll,
.bn-settings-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.settings-nav::-webkit-scrollbar,
.settings-nav-scroll::-webkit-scrollbar {
  display: none;
}

.settings-nav-btn,
.bn-settings-nav__btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--bn-mist);
  color: var(--bn-text-2);
  font: inherit;
  font-weight: 650;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.settings-nav-btn.active,
.settings-nav-btn.is-active,
.settings-nav-btn[aria-selected="true"] {
  background: var(--bn-green);
  color: var(--bn-cream);
}

.settings-panel {
  display: none;
}

.settings-panel.active,
.settings-panel.is-active {
  display: block;
}

.settings-panel--role-hidden {
  display: none !important;
}

.settings-card,
.bn-settings-card {
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow-xs);
  padding: 16px;
  margin-bottom: 12px;
}

.settings-card__title,
.bn-settings-card h3,
.settings-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bn-green);
}

.settings-grid-2,
.settings-card .grid-2,
.bn-settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 520px) {
  .settings-grid-2,
  .settings-card .grid-2,
  .bn-settings-grid-2 {
    grid-template-columns: 1fr;
  }
}

.settings-row,
.bn-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bn-border-soft);
}

.settings-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.settings-row__label {
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--bn-text);
}

.settings-row__hint {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--bn-text-3);
  font-weight: 500;
}

/* Toggle switch */
.settings-toggle,
.toggle-switch,
.bn-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.settings-toggle input,
.toggle-switch input,
.bn-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-toggle .slider,
.toggle-switch .slider,
.bn-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--bn-mist);
  border: 1px solid var(--bn-border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.settings-toggle .slider::before,
.toggle-switch .slider::before,
.bn-toggle__thumb {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 2px;
  inset-inline-start: 2px;
  border-radius: 50%;
  background: var(--bn-surface);
  box-shadow: var(--bn-shadow-xs);
  transition: transform 0.2s var(--bn-wave);
}

.settings-toggle input:checked + .slider,
.toggle-switch input:checked + .slider,
.bn-toggle input:checked + .bn-toggle__track {
  background: var(--bn-green);
  border-color: var(--bn-green);
}

.settings-toggle input:checked + .slider::before,
.toggle-switch input:checked + .slider::before {
  transform: translateX(-18px);
}

html[dir="ltr"] .settings-toggle input:checked + .slider::before,
html[dir="ltr"] .toggle-switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* ==========================================================================
   10. LANDING (body.index-page)
   ========================================================================== */
body.index-page {
  background: transparent !important;
  color: var(--bn-text);
  font-family: var(--bn-font-body);
}

body.index-page .navbar,
body.index-page .navbar--premium,
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 16px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: var(--bn-glass-strong);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--bn-border-soft);
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bn-text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

body.index-page .bl-hero {
  text-align: center;
  padding: clamp(52px, 11vw, 92px) 20px 36px;
  max-width: 680px;
  margin: 0 auto;
}

body.index-page .bl-hero__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bn-mist);
  color: var(--bn-green);
  font-size: 0.78rem;
  font-weight: 700;
}

body.index-page .bl-hero h1 {
  margin: 0;
  font-family: var(--bn-font-display);
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--bn-green);
}

body.index-page .bl-hero h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 28px;
  margin: 16px auto 0;
  background: url("../images/decto-wave.svg") center / contain no-repeat;
}

body.index-page .bl-hero__lead {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--bn-text-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

body.index-page .bl-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 8px;
}

body.index-page .bl-hero__trust-card,
body.index-page .lux-feature-card,
body.index-page .bl-experience__pill,
body.index-page .bl-app-dl,
body.index-page .bl-journey__step {
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow-xs);
}

body.index-page .bl-hero__trust-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 650;
}

body.index-page .bl-hero__trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--bn-mist);
  color: var(--bn-green);
}

body.index-page .lux-landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

body.index-page .bl-btn-hero-cta,
body.index-page .bl-btn-champagne,
body.index-page .btn-primary {
  background: var(--bn-green) !important;
  color: var(--bn-cream) !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.index-page .bl-btn-hero-secondary,
body.index-page .bl-btn-register {
  background: var(--bn-surface) !important;
  color: var(--bn-green) !important;
  border: 1px solid var(--bn-border) !important;
}

body.index-page .bl-app-download {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

body.index-page .bl-app-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 12px 14px;
  text-align: start;
  text-decoration: none;
  color: inherit;
}

body.index-page .bl-app-dl__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bn-mist);
  color: var(--bn-green);
}

body.index-page .bl-app-dl__text strong {
  display: block;
  font-size: 0.88rem;
}

body.index-page .bl-app-dl__text small {
  color: var(--bn-text-3);
  font-size: 0.74rem;
}

body.index-page .bl-app-dl--ios {
  opacity: 0.7;
  pointer-events: none;
}

body.index-page .bl-hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  color: var(--bn-text-3);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
}

body.index-page .bl-experience {
  padding: 8px 0 20px;
}

body.index-page .bl-experience__label {
  text-align: center;
  color: var(--bn-text-3);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 12px;
}

body.index-page .bl-experience__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

body.index-page .bl-experience__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
}

body.index-page .bl-features {
  padding: 28px 0 16px;
}

body.index-page .bl-features__head {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 20px;
  padding: 0 16px;
}

body.index-page .section-title {
  margin: 0 0 8px;
  font-family: var(--bn-font-display);
  font-size: 1.55rem;
  color: var(--bn-green);
}

body.index-page .bl-features__head p {
  margin: 0;
  color: var(--bn-text-2);
}

body.index-page .lux-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 16px 24px;
  max-width: 980px;
  margin: 0 auto;
}

body.index-page .lux-feature-card {
  padding: 18px 16px;
}

body.index-page .lux-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bn-mist);
  color: var(--bn-green);
  margin-bottom: 10px;
}

body.index-page .lux-feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--bn-green);
}

body.index-page .lux-feature-card p {
  margin: 0;
  color: var(--bn-text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

body.index-page .bl-journey__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 16px auto 0;
  padding: 0 16px;
}

body.index-page .bl-journey__step {
  padding: 16px;
}

body.index-page .bl-cta {
  background: var(--bn-green);
  color: var(--bn-cream);
  border-radius: 24px;
  margin: 24px auto 96px;
  padding: 28px 20px;
  text-align: center;
  max-width: 720px;
}

body.index-page .bl-cta h2 {
  margin: 0 0 8px;
  font-family: var(--bn-font-display);
}

body.index-page .bl-cta p {
  margin: 0 0 16px;
  opacity: 0.9;
}

body.index-page .bl-cta .btn {
  background: var(--bn-cream);
  color: var(--bn-green);
}

.footer {
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--bn-text-3);
  font-size: 0.82rem;
  border-top: 1px solid var(--bn-border-soft);
}

@media (max-width: 640px) {
  body.index-page .lux-landing-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   11. AUTH (body.auth-page)
   ========================================================================== */
body.auth-page {
  background: transparent;
  color: var(--bn-text);
  font-family: var(--bn-font-body);
  min-height: 100dvh;
}

body.auth-page .auth-container {
  width: min(100% - 28px, 440px);
  margin: 28px auto 64px;
}

body.auth-page .auth-card,
body.auth-page .auth-notebook-sheet {
  background: var(--bn-glass-3, rgba(255, 255, 255, 0.78));
  border: 1px solid var(--bn-glass-border-ink, rgba(23, 56, 47, 0.08));
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-glass-shadow-3, var(--bn-shadow));
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  padding: 28px 22px 24px;
}

body.auth-page .auth-header {
  text-align: center;
  margin-bottom: 18px;
}

body.auth-page .auth-header h1 {
  margin: 12px 0 6px;
  font-family: var(--bn-font-display);
  font-size: 1.4rem;
  color: var(--bn-green);
}

body.auth-page .auth-header .bn-body,
body.auth-page #loginSubtitle {
  margin: 0;
  color: var(--bn-text-2);
  font-size: 0.92rem;
}

/* Auth OTP extras (moved from login.html inline) */
body.auth-page .auth-otp-hint,
body.auth-page .auth-password-hint {
  font-size: 0.9rem;
  color: var(--bn-text-2);
  margin-bottom: 1rem;
  line-height: 1.55;
}
body.auth-page .auth-footer-hint {
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 600;
  color: var(--bn-green);
  margin-bottom: 0.85rem;
}
body.auth-page .auth-mode-toggle {
  margin: 0.75rem 0 1rem;
  text-align: center;
}
body.auth-page .auth-mode-toggle .btn-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bn-green);
}
body.auth-page .auth-back-link {
  margin-top: 0.25rem;
}

body.auth-page .auth-form .btn-primary,
body.auth-page button[type="submit"].btn {
  width: 100%;
  margin-top: 8px;
}

body.auth-page .auth-otp-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

body.auth-page .auth-otp-step {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  padding: 8px 6px;
  border-radius: 12px;
  background: var(--bn-mist);
  color: var(--bn-text-2);
}

body.auth-page .auth-otp-step.is-active,
body.auth-page .auth-otp-step.active {
  background: var(--bn-green);
  color: var(--bn-cream);
  font-weight: 700;
}

body.auth-page .auth-otp-step.is-done {
  background: var(--bn-green-soft);
  color: var(--bn-green);
}

body.auth-page .auth-otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  direction: ltr;
  margin: 12px 0;
}

body.auth-page .auth-otp-inputs input {
  width: 48px;
  min-height: 52px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid var(--bn-border);
  background: var(--bn-surface);
  color: var(--bn-text);
}

body.auth-page .auth-footer,
body.auth-page .auth-mode-toggle {
  text-align: center;
  margin-top: 14px;
  color: var(--bn-text-2);
  font-size: 0.88rem;
}

body.auth-page .auth-footer a {
  color: var(--bn-green);
  font-weight: 700;
}

/* ==========================================================================
   12. COMPOSER
   ========================================================================== */
.modal,
.composer-modal,
.dp-story-studio {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(18, 44, 38, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px;
}

.composer-modal[aria-hidden="true"] {
  display: none !important;
}

body.composer-modal-open .composer-modal,
.composer-modal[aria-hidden="false"],
.modal.active,
.modal.open,
.composer-modal.active,
.dp-story-studio.active {
  display: flex !important;
}

.composer-sheet,
.composer-pro-sheet,
.modal-dialog,
.dp-story-studio .modal-content {
  width: min(100%, 480px);
  max-height: min(92dvh, 720px);
  overflow: auto;
  background: var(--bn-cream);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--bn-shadow-lg);
  margin: auto;
  -webkit-overflow-scrolling: touch;
}

.composer-sheet__head,
.composer-pro__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.composer-sheet__title {
  margin: 0;
  font-family: var(--bn-font-display);
  font-size: 1.15rem;
  color: var(--bn-green);
}

.composer-type-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.composer-type-tabs::-webkit-scrollbar {
  display: none;
}

.composer-type-tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--bn-mist);
  color: var(--bn-text-2);
  font: inherit;
  font-weight: 650;
  font-size: 0.8rem;
  cursor: pointer;
}

.composer-type-tab.active,
.composer-type-tab.is-active {
  background: var(--bn-green);
  color: var(--bn-cream);
}

.composer-ba-dropzones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.composer-ba-zone,
.composer-preview-grid {
  min-height: 140px;
  border-radius: 16px;
  border: 1px dashed var(--bn-border);
  background: var(--bn-surface);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--bn-text-3);
  font-size: 0.82rem;
  text-align: center;
  padding: 12px;
}

.composer-ba-zone img,
.composer-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composer-pro__submit,
#composerSubmitBtn {
  width: auto;
  margin-top: 0;
  background: var(--bn-green);
  color: var(--bn-cream);
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.composer-pro__footer-actions .composer-pro__submit,
.composer-pro__footer-actions #composerSubmitBtn {
  width: 100%;
}

.composer-pro__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ==========================================================================
   13. PUBLISHER HUB — bottom sheet
   ========================================================================== */
.dp-pub-hub[hidden],
#doctorPublisherHub[hidden] {
  display: none !important;
}

.dp-pub-hub:not([hidden]),
#doctorPublisherHub:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(18, 44, 38, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.dp-pub-hub__sheet {
  width: min(100%, 420px);
  background: var(--bn-cream);
  border-radius: 24px 24px 20px 20px;
  padding: 18px 16px 20px;
  box-shadow: var(--bn-shadow-lg);
}

.dp-pub-hub__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--bn-border);
  margin: 0 auto 14px;
}

.dp-pub-hub__title {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--bn-font-display);
  font-size: 1.1rem;
  color: var(--bn-green);
}

.dp-pub-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.dp-pub-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--bn-border-soft);
  border-radius: 16px;
  background: var(--bn-surface);
  color: var(--bn-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dp-pub-card:hover {
  background: var(--bn-mist);
}

.dp-pub-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bn-mist);
  color: var(--bn-green);
  flex-shrink: 0;
}

.dp-pub-card strong {
  display: block;
  font-size: 0.94rem;
}

.dp-pub-card small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--bn-text-3);
}

/* ==========================================================================
   14. STORY VIEWER — fullscreen black, progress segs
   ========================================================================== */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: var(--bn-z-story);
  background: #0a1210;
  display: none;
  flex-direction: column;
}

.story-viewer.active,
.story-viewer.is-open,
.story-viewer[aria-hidden="false"] {
  display: flex;
}

.story-viewer-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.story-viewer-media img,
.story-viewer-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.story-viewer-header {
  position: absolute;
  top: 16px;
  inset-inline: 60px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  z-index: 2;
}

.story-viewer-header img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.story-viewer-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.story-viewer-progress {
  position: absolute;
  top: 8px;
  inset-inline: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.story-seg {
  position: relative;
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.story-seg.done::after,
.story-seg.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
}

.story-seg.active::after {
  animation: story-seg-fill linear forwards;
  transform-origin: left center;
}

html[dir="rtl"] .story-seg.active::after {
  transform-origin: right center;
}

@keyframes story-seg-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ==========================================================================
   15. CHAT / NOTIF — minimal cards
   ========================================================================== */
.bn-chat-page,
.chat-page,
.notif-list,
.notifications-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
}

body.bn-chat-active .bn-chat-page,
body.app-shell.bn-chat-active .bn-chat-page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bn-premium-glass-soft) !important;
}

.notif-item,
.chat-thread-item,
.bn-chat-thread,
.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow-xs);
  padding: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.notif-item:hover,
.chat-thread-item:hover {
  background: var(--bn-surface-2);
}

.notif-item__avatar,
.chat-thread-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--bn-mist);
  flex-shrink: 0;
}

.notif-item__body,
.chat-thread-item__body {
  flex: 1;
  min-width: 0;
}

.notif-item__title,
.chat-thread-item__name {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bn-text);
}

.notif-item__text,
.chat-thread-item__preview {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--bn-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item__time,
.chat-thread-item__time {
  font-size: 0.7rem;
  color: var(--bn-text-3);
  flex-shrink: 0;
}

.chat-composer,
.bn-chat-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bn-glass-strong);
  border-top: 1px solid var(--bn-border-soft);
  position: sticky;
  bottom: 0;
}

.chat-composer input,
.bn-chat-composer input {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--bn-border);
  background: var(--bn-surface);
  padding: 10px 16px;
  font: inherit;
  outline: none;
}

.chat-composer button,
.bn-chat-composer button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--bn-green);
  color: var(--bn-cream);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ==========================================================================
   16. TOAST + LOADING OVERLAY
   ========================================================================== */
.toast,
#toast {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  right: auto;
  inset-inline: auto;
  z-index: var(--bn-z-toast);
  width: max-content;
  max-width: min(78vw, 280px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bn-green-deep);
  color: var(--bn-cream);
  box-shadow: 0 8px 24px rgba(23, 56, 47, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s var(--bn-wave), visibility 0.22s;
  pointer-events: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.toast.show,
.toast.bn-toast--top.show,
#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-success {
  background: var(--bn-green);
}

.toast-error {
  background: var(--bn-danger);
}

.toast-info {
  background: var(--bn-green-mid);
}

.loading-overlay,
#loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: var(--bn-z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 44, 38, 0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.loading-overlay.active,
.loading-overlay.show,
#loadingOverlay.active,
#loadingOverlay.show,
body.loading .loading-overlay {
  display: flex;
}

.loading-overlay__spinner,
.loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--bn-mist);
  border-top-color: var(--bn-green);
  animation: bn-spin 0.7s linear infinite;
}

@keyframes bn-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   17. DARK THEME (via tokens)
   ========================================================================== */
html[data-theme="dark"] body,
html[data-theme="dark"] body.app-shell,
html[data-theme="dark"] body.index-page,
html[data-theme="dark"] body.auth-page {
  background: transparent;
  color: var(--bn-text);
}

html[data-theme="dark"] .bn-feed-card,
html[data-theme="dark"] .feed-post,
html[data-theme="dark"] .bn-profile-hero,
html[data-theme="dark"] .dp-owner-hero,
html[data-theme="dark"] .explore-provider-rail,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .lux-feature-card,
html[data-theme="dark"] .notif-item,
html[data-theme="dark"] .chat-thread-item,
html[data-theme="dark"] .composer-sheet,
html[data-theme="dark"] .dp-pub-hub__sheet {
  background: var(--bn-surface);
  border-color: var(--bn-border-soft);
  color: var(--bn-text);
}

html[data-theme="dark"] body.app-shell .app-header,
html[data-theme="dark"] body.app-shell .bottom-nav,
html[data-theme="dark"] .navbar {
  background: var(--bn-glass-strong);
  border-color: var(--bn-border-soft);
}

html[data-theme="dark"] .btn-primary {
  background: var(--bn-green);
  color: var(--bn-cream);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] body.app-shell input,
html[data-theme="dark"] body.app-shell textarea,
html[data-theme="dark"] body.app-shell select {
  background: var(--bn-surface);
  border-color: var(--bn-border);
  color: var(--bn-text);
}

/* ==========================================================================
   18. KILL leftover luxury / cinema / gold-frame chrome
   ========================================================================== */
.bn-profile-gold-frame,
.bn-gold-glow,
.bn-lux-glow,
.bl-lux__glow,
.lux-landing-cinema,
.bn-landing-atelier,
.bn-auth-atelier,
.pm-orb,
.cinema-ribbon,
.bn-page-hero,
.bn-lux-head__eyebrow,
.lux-eyebrow,
.bn-cinema-ribbon,
.bn-lux-ribbon {
  display: none !important;
}

/* Guide (light parity) */
.provider-guide-page .pg-app {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.provider-guide-page .pg-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-guide-page .pg-header__title {
  margin: 0;
  font-family: var(--bn-font-display);
  color: var(--bn-green);
  font-size: 1.2rem;
}

.provider-guide-page .pg-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bn-mist);
  overflow: hidden;
}

.provider-guide-page .pg-progress__bar {
  height: 100%;
  background: var(--bn-green);
  border-radius: 999px;
}

.provider-guide-page .pg-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

/* Explore SEO list — keep for crawlers, hide from UI */
.explore-post-seo--sr,
.explore-post-seo--index {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Patient profile polish */
body.patient-profile .bn-profile-hero,
body.patient-profile-page .bn-profile-hero {
  overflow: visible;
}
body.patient-profile .bn-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 16px 18px;
  margin-top: -36px;
  position: relative;
  z-index: 1;
}
body.patient-profile .bn-profile-identity {
  width: auto;
  min-width: 0;
  max-width: 100%;
}
body.patient-profile-owner .pp-owner-home__copy.bn-profile-identity {
  width: auto !important;
  flex: 1 1 auto;
  text-align: start;
}
body.patient-profile .bn-profile-handle {
  margin: 2px 0 0;
  color: var(--bn-text-3);
  font-size: 0.86rem;
}
body.patient-profile .bn-profile-actions {
  justify-content: center;
  width: 100%;
}
body.patient-profile .bn-profile-actions .bn-btn,
body.patient-profile .patient-appts-cta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bn-green);
  color: var(--bn-cream);
  border: 0;
  font-weight: 700;
  text-decoration: none;
}
body.patient-profile .bn-profile-stat--btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}
body.patient-profile .patient-ai-lux-banner:not([hidden]) {
  display: block;
  padding: 16px;
  border-radius: var(--bn-radius);
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  box-shadow: var(--bn-shadow-xs);
}
body.patient-profile .patient-ai-lux-banner__title {
  margin: 0 0 6px;
  font-family: var(--bn-font-display);
  font-size: 1.05rem;
  color: var(--bn-green);
}
body.patient-profile .patient-ai-lux-banner__lead {
  margin: 0;
  color: var(--bn-text-2);
  font-size: 0.88rem;
}

/* Owner profile: never blank if reveal JS lags */
.bn-profile-page.dp-own-profile,
.bn-profile-page.cp-own-profile,
body.doctor-profile-owner .bn-profile-page,
body.clinic-profile-owner .bn-profile-page {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  flex-direction: column !important;
}
.bn-profile-page.dp-own-profile #doctorOwnerHero,
.bn-profile-page.cp-own-profile #clinicOwnerHero,
body.doctor-profile-owner #doctorOwnerHero,
body.clinic-profile-owner #clinicOwnerHero {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Owner: hide visitor hero only — keep tabs/posts outside the shell */
.bn-profile-page.dp-own-profile .bn-profile-social-shell,
.bn-profile-page.cp-own-profile .bn-profile-social-shell {
  display: none !important;
}
.bn-profile-page.dp-own-profile .bn-profile-tabs,
.bn-profile-page.cp-own-profile .bn-profile-tabs,
.bn-profile-page.dp-own-profile .dp-owner-nav-stack,
.bn-profile-page.cp-own-profile .dp-owner-nav-stack {
  opacity: 1 !important;
  visibility: visible !important;
}
.bn-profile-page.dp-own-profile .dp-owner-action-deck,
.bn-profile-page.cp-own-profile .cp-owner-action-deck,
.bn-profile-page.dp-own-profile .dp-owner-strip,
.bn-profile-page.cp-own-profile .cp-owner-vip-strip,
.bn-profile-page.dp-own-profile .dp-owner-command {
  display: none !important;
}
.bn-profile-page.dp-own-profile .bn-profile-content,
.bn-profile-page.cp-own-profile .bn-profile-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.bn-ai-search-studio__glow { display: none !important; }
.bn-search-filters .bn-search-filter > span i {
  opacity: 0.7;
  margin-inline-end: 4px;
}
.bn-search-filters,
.bn-search-lux-filters {
  display: grid;
  gap: var(--bn-space-3);
  padding: var(--bn-space-3);
  border-radius: var(--bn-radius-lg);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-color-surface);
  box-shadow: var(--bn-shadow-xs);
}
.bn-search-filter,
.bn-search-lux-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bn-search-filter > span,
.bn-search-lux-filter > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bn-text-2);
}
.bn-search-bar,
.bn-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--bn-radius-pill);
  border: 1px solid var(--bn-border);
  background: var(--bn-surface);
}
.lux-doctor-list,
.lux-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.providers-lux-filters {
  border-radius: var(--bn-radius-lg);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
}


/* === SECOND-PASS PROFILE CTA === */
.dp-book-lux-cta.bn-btn--primary,
.patient-ai-lux-banner__cta.bn-btn--primary {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: var(--bn-space-2);
  min-height: 44px;
  border-radius: var(--bn-radius-pill);
}
.patient-ai-lux-banner {
  border-radius: var(--bn-radius-lg);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
  padding: var(--bn-space-4);
  box-shadow: var(--bn-shadow-sm);
}
.patient-ai-lux-banner__eyebrow { color: var(--bn-text-3); font-size: 0.75rem; margin: 0 0 6px; }
.patient-ai-lux-banner__title { margin: 0 0 8px; color: var(--bn-green); font-size: 1.15rem; }
.patient-ai-lux-banner__lead { margin: 0 0 12px; color: var(--bn-text-2); font-size: 0.9rem; }
.bn-result-page { max-width: 480px; margin: 40px auto; padding: 0 16px; }
.bn-result-card { padding: 28px 22px; text-align: center; }
.bn-result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
/* Second-pass: prevent accidental horizontal scroll on app shell */
body.app-shell,
body.app-shell .main-content,
.bn-app-page {
  max-width: 100%;
  overflow-x: clip;
}
.bn-spinner,
.iconic-loader .spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--bn-mist);
  border-top-color: var(--bn-green);
  border-radius: 50%;
  animation: bn-spin 0.8s linear infinite;
}

/* Home: specialty horizontal chips */
.bn-feed-specialty-rail {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 6px;
  margin: 4px 0 14px;
}
.bn-feed-specialty-rail__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.bn-feed-specialty-rail__scroll::-webkit-scrollbar { display: none; }
.bn-feed-specialty-rail .bn-pill,
.bn-feed-specialty-rail .filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
  color: var(--bn-green);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
}
.bn-feed-specialty-rail .bn-pill.active,
.bn-feed-specialty-rail .filter-chip.active {
  background: var(--bn-green);
  color: var(--bn-cream);
  border-color: transparent;
}
.bn-feed-specialty-rail__arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
  color: var(--bn-green);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.bn-feed-specialty-rail.has-overflow .bn-feed-specialty-rail__arrow {
  opacity: 1;
}
.bn-feed-specialty-rail__arrow:hover {
  background: var(--bn-mist);
}
.bn-feed-specialty-rail__arrow.is-disabled,
.bn-feed-specialty-rail__arrow:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}
.bn-feed-specialty-rail__arrow i {
  font-size: 0.75rem;
}
.feed-provider-rail {
  margin: 8px 0 12px;
}
.feed-provider-rail .explore-provider-rail__scroller {
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 4px;
}

/* Post detail modal — compact author / comments (fix oversized avatars) */
#postDetailModal .post-detail-author-line,
.bn-post-detail-modal .post-detail-author-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
}
#postDetailModal .post-detail-author-line > img,
.bn-post-detail-modal .post-detail-author-line > img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
#postDetailModal .post-detail-author-line > div,
.bn-post-detail-modal .post-detail-author-line > div {
  min-width: 0;
  flex: 1;
}
#postDetailModal .post-detail-author-line strong,
.bn-post-detail-modal .post-detail-author-line strong {
  display: block;
  font-size: 0.92rem;
  color: var(--bn-green);
  line-height: 1.3;
}
#postDetailModal .post-detail-author-line small,
.bn-post-detail-modal .post-detail-author-line small {
  display: block;
  font-size: 0.75rem;
  color: var(--bn-text-3);
}
#postDetailModal .post-detail-icon-actions,
.bn-post-detail-modal .post-detail-icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
#postDetailModal .post-detail-icon-btn,
.bn-post-detail-modal .post-detail-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bn-green);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
}
#postDetailModal .post-detail-comments,
.bn-post-detail-modal .post-detail-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
#postDetailModal .post-detail-comment,
.bn-post-detail-modal .post-detail-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
#postDetailModal .post-detail-comment > img,
.bn-post-detail-modal .post-detail-comment > img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  max-width: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
#postDetailModal .post-detail-comment > div,
.bn-post-detail-modal .post-detail-comment > div {
  min-width: 0;
  flex: 1;
}
#postDetailModal .post-detail-comment strong,
.bn-post-detail-modal .post-detail-comment strong {
  display: block;
  font-size: 0.82rem;
  color: var(--bn-green);
  margin-bottom: 2px;
}
#postDetailModal .post-detail-comment-text,
.bn-post-detail-modal .post-detail-comment-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--bn-text);
  word-break: break-word;
}
#postDetailModal .post-detail-comment-time,
.bn-post-detail-modal .post-detail-comment-time {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--bn-text-3);
}
#postDetailModal .modal-caption-title,
.bn-post-detail-modal .modal-caption-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bn-green);
  line-height: 1.5;
}
#postDetailModal .modal-caption-desc,
.bn-post-detail-modal .modal-caption-desc {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--bn-text-2);
  line-height: 1.6;
}
#postDetailModal .bn-post-detail-head,
.bn-post-detail-modal .bn-post-detail-head {
  padding: 12px 14px 10px;
}
#postDetailModal .bn-post-detail-body,
.bn-post-detail-modal .bn-post-detail-body {
  padding: 12px 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
#postDetailModal .post-detail-comment-form,
.bn-post-detail-modal .post-detail-comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
#postDetailModal .post-detail-comment-form input,
.bn-post-detail-modal .post-detail-comment-form input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--bn-border);
  padding: 8px 14px;
  font: inherit;
  background: var(--bn-surface);
}
@media (max-width: 720px) {
  #postDetailModal .bn-post-detail,
  .bn-post-detail-modal .bn-post-detail {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
  .bn-post-detail-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(42vw, 46dvh) minmax(0, 1fr);
    max-height: 100dvh;
  }
  .bn-post-detail-media {
    min-height: 0;
    max-height: 46dvh;
  }
  .bn-post-detail-media img,
  .bn-post-detail-media video {
    max-height: 46dvh;
  }
}

/* Explore immersive-only — never show masonry grid until grid mode */
.bn-explore-page--immersive:not(.bn-explore-page--grid) .explore-app-grid--hidden,
#exploreMasonry.explore-app-grid--hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.bn-explore-page--grid #exploreMasonry,
.bn-explore-page--grid .explore-app-grid {
  display: grid !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}
.bn-explore-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50vh;
  color: var(--bn-text-2);
  font-size: 0.9rem;
}
.bn-explore-boot[hidden] { display: none !important; }
.explore-post-seo--sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- A) Button / type rhythm --- */
.bn-page-header__title,
.decto-page-title .bn-page-header__title {
  font-family: var(--bn-font-display);
  letter-spacing: -0.02em;
  color: var(--bn-green);
}
.bn-page-header__sub {
  color: var(--bn-text-2);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 36em;
}
.bn-empty__title {
  font-family: var(--bn-font-display);
  font-size: 1.1rem;
  color: var(--bn-green);
  margin: 0 0 6px;
}
.bn-empty__text {
  color: var(--bn-text-2);
  font-size: 0.9rem;
  margin: 0 0 16px;
  max-width: 28em;
}

/* --- B) Visitor doctor/clinic CTA hierarchy --- */
body.bn-profile--visitor .dp-visitor-action-grid:not([hidden]),
body.bn-profile--visitor #doctorVisitorActions:not([hidden]),
body.bn-profile--visitor #clinicVisitorActions:not([hidden]) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
  width: 100%;
}
body.bn-profile--visitor .dp-visitor-action-tile,
body.bn-profile--visitor .bn-visitor-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 10px 8px;
  border-radius: var(--bn-radius-md);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
  color: var(--bn-green);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--bn-duration) ease, transform var(--bn-duration-fast) ease;
}
body.bn-profile--visitor .dp-visitor-action-tile i,
body.bn-profile--visitor .bn-visitor-action i {
  font-size: 1rem;
  color: var(--bn-green-mid);
  filter: none;
  text-shadow: none;
}
body.bn-profile--visitor .dp-visitor-action-tile--primary,
body.bn-profile--visitor .bn-visitor-action--primary,
body.bn-profile--visitor #bookAppointmentBtn,
body.bn-profile--visitor #clinicBookBtn {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--bn-radius-pill);
  background: var(--bn-green) !important;
  color: var(--bn-cream) !important;
  border-color: transparent !important;
  font-size: 0.95rem;
  font-weight: 750;
  box-shadow: none !important;
}
body.bn-profile--visitor .dp-visitor-action-tile--primary i,
body.bn-profile--visitor .bn-visitor-action--primary i,
body.bn-profile--visitor #bookAppointmentBtn i,
body.bn-profile--visitor #clinicBookBtn i {
  color: var(--bn-champagne, #c5a46d) !important;
  filter: none !important;
}
body.bn-profile--visitor .dp-visitor-action-tile:active,
body.bn-profile--visitor .bn-visitor-action:active {
  transform: scale(0.98);
}
body.bn-profile--visitor .dp-visitor-services-lux__icon,
body.bn-profile--visitor .dp-visitor-services-lux__eyebrow {
  display: none !important;
}
body.bn-profile--visitor .dp-visitor-services-lux__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--bn-green);
}
body.bn-profile--visitor .dp-visitor-services-lux {
  margin-top: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--bn-border-soft);
}
body.bn-profile--visitor .dp-visitor-accent-card {
  display: none !important;
}

/* Sticky primary book on small screens — disabled in 21g (covered content) */
@media (max-width: 720px) {
  body.bn-profile--visitor .dp-visitor-action-tile--primary,
  body.bn-profile--visitor #bookAppointmentBtn,
  body.bn-profile--visitor #clinicBookBtn:not([hidden]) {
    position: static;
    bottom: auto;
    z-index: auto;
    box-shadow: none !important;
  }
}

/* Owner action deck — quieter, one primary */
.dp-owner-hero-btn__glow,
.bn-vip-offer__glow {
  display: none !important;
}
.dp-owner-hero-btn,
.cp-owner-hero-btn {
  min-height: 64px;
  box-shadow: none;
}
.dp-owner-command__item,
.dp-owner-strip__btn {
  min-height: 40px;
  border-radius: var(--bn-radius-pill);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
  color: var(--bn-green);
  font-weight: 650;
  padding: 8px 14px;
}
.dp-owner-strip__btn--primary,
.dp-owner-command__item--alert {
  background: var(--bn-green);
  color: var(--bn-cream);
  border-color: transparent;
}
.dp-owner-strip__btn--gold {
  background: var(--bn-mist);
  border-color: rgba(197, 164, 109, 0.35);
}

/* Patient: primary appointments, secondary AI */
body.patient-profile .patient-ai-lux-banner:not([hidden]) {
  box-shadow: none;
  padding: 14px 16px;
}
body.patient-profile .patient-ai-lux-banner__title {
  font-size: 0.98rem;
}
body.patient-profile .patient-ai-lux-banner__lead {
  font-size: 0.84rem;
  margin-bottom: 10px;
}
body.patient-profile .patient-ai-lux-banner__cta.bn-btn--outline,
body.patient-profile .patient-ai-lux-banner__cta {
  background: transparent !important;
  color: var(--bn-green) !important;
  border: 1px solid var(--bn-border) !important;
  min-height: 40px;
  box-shadow: none !important;
}
body.patient-profile .patient-ai-lux-banner__features,
body.patient-profile .patient-ai-scan-cta__shine,
body.patient-profile .patient-ai-scan-cta__icon {
  display: none !important;
}
body.patient-profile .bn-profile-bio {
  color: var(--bn-text-2);
  font-size: 0.9rem;
  max-width: 32em;
  margin-inline: auto;
}

/* --- C) Landing --- */
body.index-page .bl-hero__brand,
body.index-page .bn-wordmark--landing {
  display: inline-flex;
  margin: 0 auto 18px;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-family: var(--bn-font-display);
  font-weight: 750;
  color: var(--bn-green);
  text-decoration: none;
  letter-spacing: -0.03em;
}
body.index-page .bl-hero {
  padding: clamp(40px, 9vw, 72px) 20px 28px;
}
body.index-page .bl-hero h1 {
  font-size: clamp(1.9rem, 6.2vw, 2.85rem);
}
body.index-page .bl-hero__lead {
  margin-top: 14px;
  font-size: 0.98rem;
  max-width: 32em;
}
body.index-page .bl-hero__badge,
body.index-page .bl-hero__trust,
body.index-page .bl-hero__scroll,
body.index-page .bl-experience {
  display: none !important;
}
body.index-page .lux-landing-actions {
  margin-top: 20px;
}
body.index-page .bl-btn-hero-secondary {
  font-weight: 650;
}
body.index-page .bl-features-grid--compact,
body.index-page .lux-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 800px) {
  body.index-page .bl-features-grid--compact,
  body.index-page .lux-features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
body.index-page .lux-feature-card {
  padding: 18px 16px;
  text-align: start;
  box-shadow: none;
}
body.index-page .lux-feature-card h3 {
  margin: 10px 0 6px;
  font-size: 0.98rem;
  color: var(--bn-green);
}
body.index-page .lux-feature-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--bn-text-2);
  line-height: 1.55;
}
body.index-page .bl-app-download--section {
  display: flex;
  justify-content: center;
  padding: 8px 16px 28px;
}
body.index-page .bl-app-download--section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
body.index-page .bl-cta {
  text-align: center;
  padding: 36px 20px 48px;
}
body.index-page .bl-cta h2 {
  margin: 0 0 8px;
  font-family: var(--bn-font-display);
  color: var(--bn-green);
}
body.index-page .bl-cta p {
  margin: 0 0 18px;
  color: var(--bn-text-2);
}

/* --- Auth --- */
body.auth-page .auth-header h1 {
  font-family: var(--bn-font-display);
  font-size: 1.55rem;
  margin: 12px 0 6px;
  color: var(--bn-green);
}
body.auth-page .auth-header .bn-body {
  color: var(--bn-text-2);
  font-size: 0.9rem;
  margin: 0;
}
body.auth-page .auth-password-hint,
body.auth-page .auth-otp-hint {
  font-size: 0.84rem;
  color: var(--bn-text-2);
  line-height: 1.5;
}
body.auth-page .auth-otp-steps {
  gap: 6px;
  margin-bottom: 16px;
}
body.auth-page .btn-block.btn-primary {
  margin-top: 8px;
}

/* --- Feed / explore cards --- */
.bn-feed-hero-title {
  font-family: var(--bn-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bn-green);
  margin: 0;
  letter-spacing: -0.02em;
}
.bn-feed-card,
.explore-card,
.bn-explore-card {
  border-radius: var(--bn-radius-lg);
  border: 1px solid var(--bn-border-soft);
  box-shadow: none;
  background: var(--bn-surface);
}
.bn-feed-card .post-meta,
.bn-feed-card .bn-post-meta {
  color: var(--bn-text-3);
  font-size: 0.78rem;
}

/* Post detail polish */
#postDetailModal.bn-post-detail-modal .bn-post-detail__panel,
.bn-post-detail__panel {
  gap: 12px;
}
#postDetailModal.bn-post-detail-modal .bn-post-detail__caption,
.bn-post-detail__caption {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--bn-text);
}

/* Offer / VIP — Offer → Value → Validity → CTA */
.bn-vip-offer--visitor-inline,
.bn-vip-offer--profile {
  border-radius: var(--bn-radius-lg);
  border: 1px solid rgba(197, 164, 109, 0.35);
  background: var(--bn-surface);
  padding: 14px 16px;
  box-shadow: none;
}
.bn-vip-offer__title {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--bn-green);
}
.bn-vip-offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: var(--bn-radius-pill);
  background: var(--bn-green);
  color: var(--bn-cream);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  width: 100%;
}

/* Booking steps chrome */
.bn-booking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: bn-book;
}
.bn-booking-steps li {
  counter-increment: bn-book;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bn-mist);
  color: var(--bn-text-2);
  font-size: 0.78rem;
  font-weight: 700;
}
.bn-booking-steps li::before {
  content: counter(bn-book);
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bn-green);
  color: var(--bn-cream);
  font-size: 0.68rem;
}

/* Notifications */
.notif-list .notif-item,
.bn-notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--bn-radius-md);
  border: 1px solid transparent;
}
.notif-list .notif-item.is-unread,
.bn-notif-item.is-unread,
.notif-item.unread {
  background: var(--bn-mist);
  border-color: var(--bn-border-soft);
}

/* Settings grouping */
.bn-settings-lux__hero,
.bn-settings-section {
  margin-bottom: var(--bn-space-4);
}
.bn-settings-group,
.settings-group {
  border-radius: var(--bn-radius-lg);
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
  overflow: hidden;
  margin-bottom: 14px;
}

/* Chat composer clarity */
.bn-chat-composer,
.bn-chat-input-bar {
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--bn-border-soft);
  background: var(--bn-surface);
}
.bn-chat-list-item {
  min-height: 64px;
}

/* Explore provider rail */
.explore-provider-rail__tab {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.explore-provider-rail__tab.is-active {
  background: var(--bn-green);
  color: var(--bn-cream);
}

/* Modal micro transition */
.bn-modal,
.bn-post-detail-modal {
  transition: opacity var(--bn-duration) ease;
}
.bn-tabs__tab,
.bn-profile-tab,
[role="tab"] {
  transition: color var(--bn-duration) ease, background var(--bn-duration) ease;
}

/* --- E) A11y / touch / RTL safety --- */
.bn-profile-nav-btn,
.dp-hero-nav-btn,
.bn-icon-btn,
.explore-modal-close {
  min-width: 44px;
  min-height: 44px;
}
body.app-shell .bn-app-page {
  padding-inline: max(var(--bn-gutter, 16px), env(safe-area-inset-left));
}
@media (max-width: 480px) {
  body.bn-profile--visitor .dp-visitor-info-grid,
  body.bn-profile--visitor #doctorVisitorInfoGrid {
    grid-template-columns: 1fr !important;
  }
  body.index-page .lux-landing-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body.index-page .lux-landing-actions .btn {
    width: 100%;
  }
}


/* --- Visitor profile polish (21g) --- */
body.bn-profile--visitor .bn-profile-cover,
body.bn-profile--visitor .dp-cover {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
body.bn-profile--visitor .bn-profile-hero,
body.bn-profile--visitor .bn-profile-social-shell,
body.bn-profile--visitor .iconic-profile-hero {
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}
body.bn-profile--visitor .bn-profile-card,
body.bn-profile--visitor .dp-hero-inner {
  padding-top: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.bn-profile--visitor .bn-profile-nav {
  position: relative;
  top: 0;
  inset-inline: 0;
  margin: 0 0 8px;
  padding: 0;
}
body.bn-profile--visitor .dp-visitor-social-cell--rating.is-empty-rating,
body.bn-profile--visitor .dp-visitor-stat--rating.is-empty-rating,
body.bn-profile--visitor .doctor-editorial-rating.is-empty-rating,
body.bn-profile--visitor #doctorLuxRating.is-empty-rating {
  display: none !important;
}
body.bn-profile--visitor .dp-visitor-social-row:has(.dp-visitor-social-cell--rating[hidden]),
body.bn-profile--visitor .dp-visitor-social-row:has(.dp-visitor-social-cell--rating.is-empty-rating) {
  grid-template-columns: 1fr 1fr;
}

.dp-visitor-services-lux__chips,
.bn-visitor-services-lines--chips {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dp-visitor-service-chip {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--bn-border-soft);
  background: var(--bn-mist, #f3f1ea);
  color: var(--bn-green);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.3;
  max-width: 100%;
}
.dp-visitor-service-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}
.dp-visitor-service-chip--more {
  padding: 0;
  border: 0;
  background: transparent;
}
.dp-visitor-services-more-btn {
  appearance: none;
  border: 1px dashed var(--bn-border);
  background: var(--bn-surface);
  color: var(--bn-green-mid);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.bk-modal {
  position: fixed;
  inset: 0;
  z-index: var(--bn-z-modal, 500);
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(16, 37, 29, 0.5);
  backdrop-filter: blur(6px);
}
.bk-modal.open,
.bk-modal.is-open {
  display: flex !important;
}
.bk-modal-content {
  width: min(100%, 480px);
  max-height: min(94dvh, 720px);
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--bn-surface, #fff);
  box-shadow: var(--bn-shadow-lg);
}
.bk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bn-border-soft);
  position: sticky;
  top: 0;
  background: var(--bn-surface, #fff);
  z-index: 2;
}
.bk-modal-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--bn-green);
  font-weight: 800;
}
.bk-modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bn-border-soft);
  border-radius: 14px;
  background: var(--bn-surface);
  cursor: pointer;
}

#consultationRequestModal.modal.open,
#followModal.modal.open {
  z-index: calc(var(--bn-z-modal, 500) + 2);
}
#consultationRequestModal .modal-content,
#consultationRequestModal .dp-consult-modal__sheet {
  background: var(--bn-surface, #fff);
  color: var(--bn-text);
}

@media (max-width: 720px) {
  body.bn-profile--visitor .dp-visitor-action-tile--primary,
  body.bn-profile--visitor #bookAppointmentBtn,
  body.bn-profile--visitor #clinicBookBtn:not([hidden]) {
    position: static;
    bottom: auto;
    z-index: auto;
    box-shadow: none !important;
  }
}

/* --- 21h: landing cleanup + white app + feed media fill --- */
body.index-page .nav-menu {
  display: none !important;
}
body.app-shell,
body.app-shell .main-content,
body.app-shell .bn-app-page {
  background: transparent !important;
}
html {
  background-color: transparent !important;
}
body.app-shell .bottom-nav-item.active,
body.app-shell .bottom-nav-item.is-active,
body.app-shell .bottom-nav-item[aria-current="page"] {
  color: var(--bn-green) !important;
  font-weight: 800;
}
body.app-shell .bottom-nav-item svg,
body.app-shell .bottom-nav-item .bn-ui-icon {
  color: inherit;
  stroke: currentColor;
  opacity: 1;
}
.bn-feed-card__media .feed-post-media,
.feed-post-media-wrap .feed-post-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}
.bn-feed-card__media .feed-post-media img,
.bn-feed-card__media .feed-post-media video,
.bn-feed-card__media .bn-feed-media-img,
.feed-post-media .bn-feed-media-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-height: none !important;
}
.bn-feed-card__body,
.feed-post-body {
  margin-top: 0 !important;
  padding-top: 10px !important;
  border-top: 0 !important;
}

/* --- 21i: public landing/auth chrome --- */
.bn-public-app-mark {
  display: none;
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  inset-inline-start: 14px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(23, 56, 47, 0.14);
  border: 1px solid rgba(23, 56, 47, 0.08);
  background: #fff;
  text-decoration: none;
}
.bn-public-app-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Landing uses real transparent header — hide floating tile */
body.index-page .bn-public-app-mark {
  display: none !important;
}
body.auth-page .bn-public-app-mark {
  display: block;
}
/* Auth keeps chrome-light; landing navbar is styled in bn-landing-soft */
body.auth-page .navbar,
body.auth-page #navbar,
body.auth-page .navbar--premium,
body.auth-page .lux-menu-backdrop,
body.auth-page .lux-menu-panel,
body.index-page .bottom-nav,
body.index-page .global-auth-bottom-nav,
body.auth-page .bottom-nav,
body.auth-page .global-auth-bottom-nav,
body.index-page .bn-bottom-nav-spacer,
body.auth-page .bn-bottom-nav-spacer {
  display: none !important;
}
body.index-page .main-content,
body.auth-page .main-content {
  padding-bottom: 24px !important;
}
body.auth-page .auth-illustration,
body.auth-page .auth-sheet-stitch,
body.auth-page .auth-footer-hint,
body.auth-page #loginFooterHint {
  display: none !important;
}
body.auth-page .auth-container--clean {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100dvh - 40px);
  padding: 72px 16px 32px;
}
body.auth-page .auth-container--clean .auth-card {
  width: min(100%, 440px);
  margin: 0 auto;
}
#bnBrowserChromeBleed {
  background-color: #ffffff !important;
}
html[data-theme="dark"] #bnBrowserChromeBleed {
  background-color: #ffffff !important;
}
body.explore-page #bnBrowserChromeBleed,
body.bn-explore-page #bnBrowserChromeBleed {
  background-color: #000000 !important;
}


/* --- 21j: search hub + landing sticky dock --- */
.bn-search-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--bn-header-h) - var(--bn-dock-h) - 40px);
  padding: 24px 16px 32px;
}
.bn-search-hub__panel {
  width: min(100%, 440px);
  text-align: center;
  padding: 28px 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(23, 56, 47, 0.1);
  box-shadow: 0 12px 40px rgba(23, 56, 47, 0.08);
}
.bn-search-hub__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bn-champagne, #c5a46d);
}
.bn-search-hub__title {
  margin: 0 0 10px;
  font-family: var(--bn-font-display);
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--bn-green);
  line-height: 1.35;
}
.bn-search-hub__lead {
  margin: 0 0 22px;
  color: var(--bn-text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}
.bn-search-hub__actions {
  display: grid;
  gap: 12px;
}
.bn-search-hub__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bn-premium-glass) !important;
  color: #17382F !important;
  border: 1px solid rgba(23, 56, 47, 0.12);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  text-align: right;
  box-shadow: 0 8px 22px rgba(23, 56, 47, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.bn-search-hub__btn:hover {
  border-color: rgba(23, 56, 47, 0.22);
  box-shadow: 0 12px 28px rgba(23, 56, 47, 0.1);
  transform: translateY(-1px);
}
.bn-search-hub__btn:active {
  transform: none;
}
.bn-search-hub__btn--ai {
  background: var(--bn-premium-glass) !important;
}
.bn-search-hub__btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #17382F;
  color: #c5a46d;
  font-size: 1.05rem;
}
.bn-search-hub__btn--classic .bn-search-hub__btn-icon {
  background: rgba(23, 56, 47, 0.08);
  color: #17382F;
}
.bn-search-hub__btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.bn-search-hub__btn-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bn-search-hub__btn-label {
  font-size: 0.95rem;
  font-weight: 900;
  color: #17382F;
}
.bn-search-hub__btn-copy small {
  font-size: 0.74rem;
  font-weight: 700;
  color: #5a6b64;
}
.bn-search-mode-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--bn-green);
  background: var(--bn-green);
  color: var(--bn-champagne, #c5a46d) !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(23, 56, 47, 0.14);
}
.bn-search-mode-switch i,
.bn-search-mode-switch svg {
  color: inherit;
  fill: currentColor;
}
.bn-search-mode-switch svg {
  width: 18px;
  height: 18px;
}
.bn-search-page--ai .bn-ai-search-studio--page {
  margin-top: 4px;
}
.bn-search-panel-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body.index-page {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body.index-page .bl-journey,
body.index-page .bl-app-download--section,
body.index-page .bl-landing-app-bar {
  display: none !important;
}
body.index-page .bl-cta__gold-line {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--bn-text-2);
  line-height: 1.7;
}
body.index-page .bl-cta__gold {
  color: var(--bn-champagne, #c5a46d);
  font-weight: 800;
}
.bl-landing-app-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 350;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1.5px solid rgba(23, 56, 47, 0.12);
  box-shadow: 0 -8px 24px rgba(23, 56, 47, 0.08);
}
.bl-landing-app-dock[hidden] {
  display: none !important;
}
.bl-landing-app-dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.bl-landing-app-dock__btn--android {
  background: var(--bn-green);
  color: var(--bn-champagne, #c5a46d);
}
.bl-landing-app-dock__btn--ios {
  background: #f3f1eb;
  color: var(--bn-green);
  border-color: rgba(23, 56, 47, 0.12);
}


/* --- 21k: visitor identity layout + extras off --- */
body.bn-profile--visitor #doctorVisitorSocialLux,
body.bn-profile--visitor #clinicVisitorSocialLux,
body.bn-profile--visitor #doctorVisitorAccentCard,
body.bn-profile--visitor #followDoctorBtnTop,
body.bn-profile--visitor .dp-visitor-social-row,
body.bn-profile--visitor .bn-visitor-social-lux {
  display: none !important;
}

body.bn-profile--visitor .dp-visitor-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  direction: rtl;
}
body.bn-profile--visitor .dp-visitor-identity__copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}
body.bn-profile--visitor .dp-visitor-identity__photo {
  flex: 0 0 auto;
  order: 2;
}
body.bn-profile--visitor .dp-visitor-name,
body.bn-profile--visitor #doctorName,
body.bn-profile--visitor #clinicName {
  margin: 0 0 8px;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--bn-green);
  text-align: start;
}
body.bn-profile--visitor .dp-visitor-identity__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
body.bn-profile--visitor .dp-visitor-identity__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
body.bn-profile--visitor .dp-visitor-identity__facts {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.bn-profile--visitor .dp-visitor-identity__license {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}
body.bn-profile--visitor .dp-visitor-identity__loc {
  flex: 0 1 48%;
  text-align: end;
  max-width: 50%;
}
body.bn-profile--visitor .dp-visitor-identity__label {
  display: block;
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--bn-text-3);
}
body.bn-profile--visitor .dp-visitor-identity__value,
body.bn-profile--visitor .dp-visitor-specialty-gold {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bn-green);
  line-height: 1.45;
  word-break: break-word;
}
body.bn-profile--visitor .dp-visitor-location-value {
  color: var(--bn-green) !important;
}
body.bn-profile--visitor .dp-visitor-specialty-gold {
  color: var(--bn-champagne, #c5a46d);
  font-weight: 750;
}
body.bn-profile--visitor .dp-avatar-ring--square,
body.bn-profile--visitor .dp-avatar-ring--square .bn-profile-avatar,
body.bn-profile--visitor .dp-avatar-ring--square img,
body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar-ring,
body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar {
  width: 88px !important;
  height: 88px !important;
  border-radius: 14px !important;
  overflow: hidden;
}
body.bn-profile--visitor .dp-avatar-ring--square {
  padding: 0;
  border: 1.5px solid rgba(197, 164, 109, 0.55);
  box-shadow: 0 6px 18px rgba(23, 56, 47, 0.1);
  background: #fff;
}
body.bn-profile--visitor .dp-visitor-action-grid {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 10px;
}
body.bn-profile--visitor .dp-visitor-action-tile--primary,
body.bn-profile--visitor #bookAppointmentBtn,
body.bn-profile--visitor #clinicBookBtn {
  width: 100%;
  min-height: 50px;
}
body.bn-profile--visitor .dp-visitor-action-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.bn-profile--visitor .dp-visitor-action-secondary .dp-visitor-action-tile[hidden],
body.bn-profile--visitor .dp-visitor-action-secondary .bn-visitor-action[hidden] {
  display: none !important;
}
body.bn-profile--visitor .dp-visitor-action-secondary:has(> :not([hidden]):nth-child(1):last-child),
body.bn-profile--visitor .dp-visitor-action-secondary:has(> :not([hidden]):only-child) {
  grid-template-columns: 1fr;
}
body.bn-profile--visitor .dp-visitor-clinic-row {
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(23, 56, 47, 0.1);
  background: #fff;
}
body.bn-profile--visitor .dp-visitor-clinic-row[hidden] {
  display: none !important;
}
body.bn-profile--visitor .bn-profile-affiliation:empty {
  display: none;
}
body.bn-profile--visitor .dp-visitor-services-lux {
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(197, 164, 109, 0.22);
}
body.bn-profile--visitor .bn-vip-offer--visitor-inline {
  margin-top: 12px;
}


/* --- 21l: home feed stories + rings + scroll top --- */
.bn-feed-hero,
#feedWelcomeHero {
  display: none !important;
}
.bn-feed-page {
  padding-top: 4px;
}
.bn-feed-page.bn-feed--no-stories .feed-provider-rail,
.bn-feed-page:has(.bn-home-stories-section[hidden]) .feed-provider-rail {
  margin-top: 2px;
}
.bn-home-stories-section[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.bn-home-stories-section:not([hidden]) {
  margin: 0 0 6px;
  padding: 2px 0 18px;
  overflow: visible;
}
.bn-feed-page .stories-row,
.bn-feed-page #feedStories {
  padding: 6px 2px 22px;
  overflow-x: auto;
  overflow-y: visible;
  align-items: flex-start;
}
.bn-feed-page .story-item,
.bn-feed-page .story-chip {
  width: 78px;
  overflow: visible;
  position: relative;
}
.bn-feed-page .story-avatar-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 8px;
  overflow: visible;
}
.bn-feed-page .story-avatar {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
}
.bn-feed-page .story-avatar-wrap--offer {
  margin-bottom: 18px;
}
body:has(.bn-feed-page) .bn-scroll-top {
  bottom: calc(var(--bn-bottom-dock-h, 72px) + 20px + env(safe-area-inset-bottom));
}


/* --- 21n: visitor profile full white + bigger photo + big CTAs --- */
body.bn-profile--visitor,
body.bn-profile--visitor.app-shell,
body.app-shell.bn-profile--visitor {
  background: var(--bn-premium-glass-soft) !important;
}
body.bn-profile--visitor .main-content,
body.bn-profile--visitor .bn-app-page,
body.bn-profile--visitor .bn-profile-page,
body.bn-profile--visitor .bn-profile-social-shell,
body.bn-profile--visitor .bn-profile-hero,
body.bn-profile--visitor .dp-hero,
body.bn-profile--visitor .iconic-profile-hero {
  background: var(--bn-premium-glass-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
body.bn-profile--visitor .bn-profile-card,
body.bn-profile--visitor .dp-hero-inner,
body.bn-profile--visitor .dp-visitor-stack,
body.bn-profile--visitor .bn-glass--heavy,
body.bn-profile--visitor .iconic-surface {
  background: var(--bn-premium-glass-soft) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 8px 12px 6px !important;
  margin: 0 !important;
  max-width: none !important;
}
body.bn-profile--visitor .bn-profile-nav,
body.bn-profile--visitor .dp-hero-nav {
  position: relative !important;
  top: 0 !important;
  margin: 0 0 6px !important;
  padding: 4px 4px 0 !important;
  background: transparent !important;
}
body.bn-profile--visitor #followDoctorBtnTop,
body.bn-profile--visitor #doctorVisitorSocialLux,
body.bn-profile--visitor #clinicVisitorSocialLux,
body.bn-profile--visitor #doctorProfileStats,
body.bn-profile--visitor #clinicProfileStats,
body.bn-profile--visitor .dp-stats--social,
body.bn-profile--visitor .bn-profile-stats,
body.bn-profile--visitor .dp-visitor-social-row,
body.bn-profile--visitor .bn-visitor-social-lux,
body.bn-profile--visitor #doctorOfferBanner,
body.bn-profile--visitor #clinicOfferBanner,
body.bn-profile--visitor .bn-vip-offer--visitor-inline,
body.bn-profile--visitor #clinicAboutSection {
  display: none !important;
}
body.bn-profile--visitor .dp-visitor-identity {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 8px !important;
  direction: rtl !important;
}
body.bn-profile--visitor .dp-visitor-identity__photo {
  flex: 0 0 auto !important;
  order: 2 !important;
  margin: 0 !important;
}
body.bn-profile--visitor .dp-visitor-identity__copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: start !important;
}
body.bn-profile--visitor .dp-avatar-ring--square,
body.bn-profile--visitor .dp-avatar-ring--square .bn-profile-avatar,
body.bn-profile--visitor .dp-avatar-ring--square img,
body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar-ring,
body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar,
body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar-ring img {
  width: 132px !important;
  height: 132px !important;
  max-width: 132px !important;
  max-height: 132px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}
body.bn-profile--visitor .dp-avatar-ring--square,
body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar-ring {
  padding: 0 !important;
  border: 1.5px solid rgba(197, 164, 109, 0.55) !important;
  box-shadow: 0 8px 22px rgba(23, 56, 47, 0.1) !important;
  background: var(--bn-premium-glass-soft) !important;
  overflow: hidden !important;
}
body.bn-profile--visitor .dp-visitor-name,
body.bn-profile--visitor #doctorName,
body.bn-profile--visitor #clinicName {
  margin: 2px 0 8px !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: var(--bn-green, #17382f) !important;
}
body.bn-profile--visitor .dp-visitor-identity__meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}
body.bn-profile--visitor .dp-visitor-identity__row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}
body.bn-profile--visitor .dp-visitor-services-lux {
  margin: 2px 0 0 !important;
  padding: 6px 0 0 !important;
  border-top: 0 !important;
}
body.bn-profile--visitor .dp-visitor-services-lux__head {
  margin: 0 0 4px !important;
  padding: 0 !important;
}
body.bn-profile--visitor .dp-visitor-services-lux__title {
  margin: 0 !important;
  font-size: 0.92rem !important;
}
body.bn-profile--visitor .dp-visitor-services-lux__chips,
body.bn-profile--visitor .bn-visitor-services-lines--chips {
  margin: 4px 0 0 !important;
  gap: 6px !important;
}
body.bn-profile--visitor .dp-visitor-action-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 8px 0 6px !important;
}
body.bn-profile--visitor .dp-visitor-action-tile--primary,
body.bn-profile--visitor #bookAppointmentBtn,
body.bn-profile--visitor #clinicBookBtn {
  width: 100% !important;
  min-height: 52px !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
}
body.bn-profile--visitor .dp-visitor-action-secondary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
body.bn-profile--visitor .dp-visitor-action-tile--lg,
body.bn-profile--visitor .dp-visitor-action-secondary .dp-visitor-action-tile,
body.bn-profile--visitor .dp-visitor-action-secondary .bn-visitor-action {
  min-height: 64px !important;
  padding: 14px 10px !important;
  border-radius: 16px !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  gap: 8px !important;
  flex-direction: column !important;
}
body.bn-profile--visitor .dp-visitor-action-tile--lg i,
body.bn-profile--visitor .dp-visitor-action-secondary .dp-visitor-action-tile i,
body.bn-profile--visitor .dp-visitor-action-secondary .bn-visitor-action i {
  font-size: 1.35rem !important;
}
body.bn-profile--visitor .dp-visitor-clinic-row,
body.bn-profile--visitor .bn-profile-affiliation {
  margin: 6px 0 4px !important;
}
body.bn-profile--visitor .bn-profile-tabs,
body.bn-profile--visitor .dp-tabs,
body.bn-profile--visitor .iconic-chips {
  margin-top: 8px !important;
  padding-top: 4px !important;
  background: var(--bn-premium-glass-soft) !important;
  border-top: 1px solid rgba(197, 164, 109, 0.22);
}
body.bn-profile--visitor .bn-profile-stories,
body.bn-profile--visitor #profileStoriesSection {
  background: var(--bn-premium-glass-soft) !important;
  margin-top: 4px !important;
}
body.bn-profile--visitor .tab-panel,
body.bn-profile--visitor .bn-profile-panel,
body.bn-profile--visitor .dp-tab-panel {
  background: var(--bn-premium-glass-soft) !important;
}
@media (max-width: 420px) {
  body.bn-profile--visitor .dp-avatar-ring--square,
  body.bn-profile--visitor .dp-avatar-ring--square .bn-profile-avatar,
  body.bn-profile--visitor .dp-avatar-ring--square img,
  body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar-ring,
  body.bn-profile--visitor .clinic-visitor-avatar-wrap .bn-profile-avatar {
    width: 112px !important;
    height: 112px !important;
    max-width: 112px !important;
    max-height: 112px !important;
  }
  body.bn-profile--visitor .dp-visitor-action-tile--lg,
  body.bn-profile--visitor .dp-visitor-action-secondary .dp-visitor-action-tile {
    min-height: 58px !important;
    font-size: 0.88rem !important;
  }
}
