/* App-specific layouts; Bootstrap and ConnectLocal own the shared controls. */
footer > .footer {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}

footer > .footer a {
  color: var(--bs-link-color);
}

footer > .footer a:hover {
  color: var(--bs-link-hover-color);
}

.main {
flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.desktop-only {
display: flex !important;
}

.table-responsive {
overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
min-width: 640px;
}

.section-header {
display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
font-size: 22px;
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  line-height: 1.2;
  margin: 0;
}

.section-sub {
font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.stat-card {
background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  transition: box-shadow var(--transition-base);
}

.stat-card:hover {
box-shadow: var(--shadow-md) !important;
}

.stat-icon {
width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
font-size: 20px; line-height: 1;
}

.stat-icon svg {
width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.stat-icon.orange {
background: var(--color-primary-soft);  color: var(--color-primary);
}

.stat-icon.blue {
background: rgba(26,111,196,0.10);       color: #1a6fc4;
}

.stat-icon.green {
background: rgba(27,138,90,0.10);        color: #1b8a5a;
}

.stat-body {
display: flex; flex-direction: column; gap: 2px; flex: 1;
}

.stat-label {
margin-top: 3px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  text-transform: none;
  letter-spacing: 0;
}

.stat-value {
font-size: 26px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-text-heading);
}

.stat-sub {
margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.h5 {
color: var(--color-text-heading);
  font-size: 15px;
  font-weight: var(--fw-bold);
}

.badge-active {
background: rgba(45,164,78,0.10)  !important; color: #2da44e !important;
}

.badge-inactive {
background: rgba(34,34,102,0.08)  !important; color: #222266 !important;
}

.badge-pending,
.badge-live {
background: rgba(255,153,51,0.12) !important; color: #e08800 !important;
}

.badge.bg-secondary {
background: var(--color-accent-soft) !important;
  color: var(--color-accent) !important;
}

.table {
font-family: var(--font-family);
  font-size: 13px;
  color: var(--color-text-primary);
  margin-bottom: 0;
  width: 100%;
}

.table thead th {
font-size: 11px;
  font-weight: var(--fw-bold);
  color: #555577;
  background: #f0f0f3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border) !important;
  white-space: nowrap;
}

.table thead th:first-child {
border-top-left-radius: var(--radius);
}

.table thead th:last-child {
border-top-right-radius: var(--radius);
}

.table tbody td {
font-size: 12.5px;
  color: var(--color-text-primary);
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.table-hover tbody tr {
transition: background var(--transition-fast);
}

.table-hover tbody tr:hover td {
background: var(--color-bg);
}

.table tbody tr:last-child td {
border-bottom: none;
}

.interest-option-grid {
display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-2);
}

.interest-option {
display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 38px;
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.interest-option:hover,
.interest-option.selected {
border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.interest-option input {
width: 15px; height: 15px; margin: 0; accent-color: var(--color-primary);
}

.entity-name {
color: var(--color-text-heading);
  font-size: 13px;
  font-weight: var(--fw-bold);
}

.entity-sub {
font-size: 11.5px;
  color: var(--color-text-muted) !important;
  margin-top: 1px;
}

.account-setup-modal {
position: fixed;
  inset: 0;
  z-index: 1060;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.account-setup-modal .modal-dialog {
width: min(100%, 720px);
  margin: auto;
}

.account-setup-modal .modal-content,
.account-setup-modal .modal-header,
.account-setup-modal .modal-body,
.account-setup-modal .modal-footer {
background: #fff;
}

.account-setup-modal .modal-content {
position: relative;
  border: 1px solid #e4e4ee;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(17, 17, 51, 0.22);
}

.account-setup-modal .modal-header {
padding-right: 64px;
}

.account-setup-modal .modal-close-button {
position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e4ee;
  border-radius: 8px;
  background: #fff;
  color: var(--cl-primary, #222266);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.modal-backdrop.show {
background-color: rgba(17, 17, 51, 0.48);
}

@media (max-width: 575.98px) {
.account-setup-modal {
padding: 0.5rem;
}

.account-setup-modal .modal-dialog {
width: 100%;
}

.account-setup-modal .modal-content {
max-height: calc(100dvh - 1rem); overflow-y: auto;
}

.account-setup-modal .modal-footer {
flex-wrap: wrap;
}
}

@media (prefers-reduced-motion: reduce) {
.account-setup-modal,
.account-setup-modal *,
.modal-backdrop {
animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}
}

@media (forced-colors: active) {
.account-setup-modal .modal-content,
.account-setup-modal .modal-close-button {
border: 2px solid CanvasText;
}
}

.profile-logo,
.profile-logo-placeholder {
width: 72px; height: 72px;
  border-radius: 14%;
}

.profile-logo {
object-fit: cover; border: 1px solid var(--color-border);
}

.profile-logo-placeholder {
background: var(--color-accent);
  color: #000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-21); font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.profile-name {
font-size: 24px; font-weight: var(--fw-bold); color: var(--color-text-heading); margin: 0;
}

.info-grid {
display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-item {
min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f8f9fb;
}

.info-label {
font-size: 11px; font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px;
}

.info-value {
font-size: 13px; font-weight: var(--fw-medium);
  color: var(--color-text-heading);
  overflow-wrap: anywhere;
}

.gallery-grid {
display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  background: var(--color-surface);
}

.gallery-action {
width: 100%;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gallery-action:hover,
.gallery-action:focus {
border-color: var(--color-accent);
  box-shadow: var(--cl-shadow-card);
  outline: none;
  transform: translateY(-1px);
}

.gallery-item img {
width: 100%; height: 160px;
  object-fit: cover; display: block;
}

.gallery-caption {
display: block;
  min-height: 34px;
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-primary-badge {
position: absolute; top: var(--space-2); right: var(--space-2);
  background: var(--color-accent); color: #000;
  font-size: 11px; font-weight: var(--fw-semibold);
  padding: 2px 6px; border-radius: var(--radius-full);
}

.gallery-primary-badge.static {
position: static;
  display: inline-flex;
  align-items: center;
}

.gallery-image-fallback {
width: 100%;
  height: 160px;
  display: grid;
  place-items: center;
  background: rgba(34, 34, 102, 0.06);
  color: rgba(34, 34, 102, 0.42);
  font-size: 1.75rem;
}

.gallery-preview-backdrop {
position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 17, 51, 0.74);
}

.gallery-preview {
width: min(920px, 100%);
  max-height: min(86vh, 760px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.gallery-preview-close {
position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-full);
  background: rgba(17, 17, 51, 0.72);
  color: #fff;
  display: inline-grid;
  place-items: center;
}

.gallery-preview-nav {
position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-full);
  background: rgba(17, 17, 51, 0.72);
  color: #fff;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
}

.gallery-preview-nav:hover,
.gallery-preview-nav:focus,
.gallery-preview-close:hover,
.gallery-preview-close:focus {
background: rgba(255, 153, 51, 0.92);
  border-color: rgba(255, 255, 255, 0.72);
  color: #111133;
  outline: none;
}

.gallery-preview-prev {
left: 0.75rem;
}

.gallery-preview-next {
right: 0.75rem;
}

.gallery-preview-media {
min-height: 260px;
  max-height: calc(86vh - 86px);
  display: grid;
  place-items: center;
  background: #111133;
}

.gallery-preview-media img {
max-width: 100%;
  max-height: calc(86vh - 86px);
  object-fit: contain;
  display: block;
}

.gallery-image-fallback-lg {
height: 360px;
  color: rgba(255, 255, 255, 0.46);
  background: transparent;
  font-size: 3rem;
}

.gallery-preview-meta {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--color-text-heading);
}

@media (max-width: 575.98px) {
.gallery-preview-backdrop {
padding: 0.75rem;
}

.gallery-preview-nav {
width: 36px;
    height: 36px;
}
}

.login-container {
display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 108px);
}

.login-card {
width: 100%;
  max-width: 420px;
  background: var(--color-surface) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 28px;
}

.login-card h2 {
text-align: center;
  font-size: var(--text-21);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-1);
}

.login-card h4 {
text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-6);
}

#blazor-error-ui {
background: var(--color-warning-soft);
  border-top: 2px solid var(--color-warning);
  bottom: 0; left: 0;
  box-shadow: 0 -1px 2px rgba(0,0,0,0.10);
  display: none;
  padding: var(--space-3) var(--space-5);
  position: fixed;
  width: 100%; z-index: 9999;
  font-size: 13px;
  font-family: var(--font-family);
  color: var(--color-warning-text);
}

#blazor-error-ui .dismiss {
cursor: pointer;
  position: absolute;
  right: var(--space-4); top: var(--space-3);
}

.form-text {
color: var(--color-text-muted) !important;
}

.small {
font-size: 11px;
}

[data-bs-theme="dark"] .table thead th {
background: #3a3a4d; color: #cdd2dc;
}

[data-bs-theme="dark"] .info-item {
background: #2d2d3d; border-color: #495057;
}

@media (max-width: 1199.98px) {
.main {
width: 100%;
}

.desktop-only {
display: none  !important;
}

.section-header {
flex-direction: column;
}

.section-header h1,
.section-title {
font-size: 18px;
}

.table thead th,
.table tbody td {
white-space: normal;
}

.table-responsive > .table {
min-width: 560px;
}

.login-card {
max-width: 100%;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
}
}

@media (max-width: 600px) {
.info-grid {
grid-template-columns: 1fr;
}
}

@media (max-width: 575.98px) {
.offer-feed-filters-row .form-check {
justify-content: flex-start;
}

.table-responsive > .table {
min-width: 520px;
}
}

.auth-screen {
min-height: 100vh;
  background: linear-gradient(180deg, #f7f8fb 0%, #f0f1f5 100%);
}

.auth-screen .login-container {
min-height: 100vh;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-screen .login-signup-card {
width: 100%;
  max-width: 480px;
}

.auth-screen .login-signup-card .login-card {
width: 100%;
  max-width: 480px;
  border-radius: var(--cl-radius-card) !important;
  border: 1px solid var(--cl-border) !important;
  box-shadow: var(--cl-shadow-card) !important;
  padding: 0 !important;
  background: var(--cl-bg-card) !important;
}

.auth-screen .login-signup-card .login-card .card-body {
padding: 2rem 1.5rem;
}

.auth-screen h3.login {
font-weight: 700;
  color: var(--bs-heading-color);
  margin-bottom: 0.5rem;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-screen .form-floating > .form-control,
.auth-screen .form-floating > .form-select {
min-height: 58px;
  border-radius: var(--cl-radius-input);
}

.auth-screen .form-floating > label {
color: var(--cl-muted);
}

.auth-screen .form-floating > .form-control[type="password"],
.auth-screen .form-floating > .form-control[type="text"] {
padding-right: 2.75rem;
}

.auth-screen .form-check-input:checked {
background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

@media (max-width: 575.98px) {
.auth-screen .login-container {
padding: 0.75rem;
}

.auth-screen .login-signup-card .login-card .card-body {
padding: 1.5rem 1rem;
}

.auth-screen h3.login {
font-size: 1.75rem;
}
}

.badge-active {
background: rgba(25, 135, 84, 0.12) !important;
  color: var(--color-success) !important;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.badge-active::before {
content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

.badge-inactive {
background: rgba(108, 117, 125, 0.12) !important;
  color: var(--cl-inactive) !important;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.badge-pending,
.badge-live {
background: rgba(253, 126, 20, 0.12) !important;
  color: var(--cl-pending) !important;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.chip {
display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(34, 34, 102, 0.06);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  white-space: nowrap;
}

.chip:hover {
background: rgba(34, 34, 102, 0.12);
}

.chip.active {
background: var(--color-primary);
  color: #fff;
}

.chip i {
font-size: 0.7rem;
}

.payment-methods {
display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.payment-chip {
cursor: default;
}

.payment-chip i {
display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 153, 51, 0.16);
  color: var(--color-accent);
  font-size: 0.76rem;
}

.category-icon-preview {
display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 153, 51, 0.12);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.category-icon-preview img,
.category-icon-preview lord-icon {
width: 100%;
  height: 100%;
}

.category-icon-preview img {
object-fit: cover;
}

.avatar {
width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-sm {
width: 32px; height: 32px;
}

.avatar-placeholder {
background: rgba(34, 34, 102, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.empty-state {
text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.empty-state .icon-wrap {
width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 34, 102, 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.empty-state h6 {
color: var(--color-text-heading);
  margin-bottom: 0.375rem;
}

.empty-state p {
margin: 0 0 1rem;
  font-size: 0.875rem;
}

.profile-banner {
height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--cl-primary-dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: visible;
}

.profile-banner::after {
content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: inherit;
}

.profile-banner .offer-badge {
position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  z-index: 1;
}

.event-row {
display: flex;
  gap: 0.875rem;
  align-items: center;
  padding: 0.625rem;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.event-row .date-badge {
width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.event-row .date-badge .day {
font-size: 1.4rem; font-weight: 700;
}

.event-row .date-badge .mo {
font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}

.event-row .body {
flex: 1; min-width: 0;
}

.event-row .body h6 {
margin: 0 0 2px; font-size: 0.92rem; font-weight: 700;
}

.event-row .body .meta {
font-size: 0.78rem; color: var(--color-text-muted);
}

.business-detail-page {
display: flex;
  flex-direction: column;
}

.business-detail-copy {
color: var(--color-text-primary);
  max-width: 72ch;
}

.business-detail-info-grid {
grid-template-columns: 1fr;
}

.business-detail-map-shell {
display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0.75rem;
}

.business-detail-map {
min-height: 238px;
  border-radius: 12px;
}

.business-detail-map-meta {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.business-detail-map-meta span {
display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-detail-map-meta span i {
flex: 0 0 auto;
  color: var(--cl-primary, #222266);
}

.business-detail-map-meta a {
flex: 0 0 auto;
  color: var(--cl-primary, #222266);
  font-weight: 700;
  text-decoration: none;
}

.business-detail-map-meta a:hover {
text-decoration: underline;
}

.business-detail-map-fallback {
display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  text-align: center;
}

.business-detail-map-fallback h6,
.business-detail-map-fallback p {
margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.business-detail-map-fallback .icon-wrap {
width: 38px;
  height: 38px;
}

.business-detail-link {
color: var(--color-text-link);
  word-break: break-all;
}

.offer-feed-filters-row {
align-items: center;
}

.offer-feed-filters-row .form-control,
.offer-feed-filters-row .form-select {
width: 100%;
}

.offer-feed-filters-row .form-check {
min-height: 38px;
  display: flex;
  align-items: center;
}

.business-hours-table-wrap {
max-width: 100%;
  max-height: min(360px, calc(100vh - 260px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.business-hours-table-wrap .business-hours-table {
width: 100%;
  min-width: 360px;
  table-layout: fixed;
}

.business-hours-table td {
padding: 0.48rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.business-hours-table tr:last-child td {
border-bottom: 0;
}

.business-hours-day {
width: 36%;
  color: var(--color-text-heading);
  font-weight: 600;
  white-space: nowrap;
}

.business-hours-time {
width: 64%;
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 420px) {
.business-hours-table-wrap .business-hours-table {
min-width: 340px;
}

.business-hours-day {
width: 32%;
}

.business-hours-time {
width: 68%;
}
}

.hover-underline-animation {
display: inline-block;
  position: relative;
  text-decoration: none;
}

.hover-underline-animation::after {
content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-primary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
transform: scaleX(1);
  transform-origin: bottom left;
}

.hover-underline-animation:hover {
text-decoration: none;
}

[data-bs-theme="dark"] .chip {
background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

[data-bs-theme="dark"] .chip.active {
background: var(--color-primary);
  color: #fff;
}

[data-bs-theme="dark"] .event-row {
background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}

[data-bs-theme="dark"] .badge-active {
background: rgba(25,135,84,0.18) !important;
}

[data-bs-theme="dark"] .badge-pending,
[data-bs-theme="dark"] .badge-live {
background: rgba(253,126,20,0.18) !important;
}

[data-bs-theme="dark"] .badge-inactive {
background: rgba(108,117,125,0.18) !important;
}

.business-detail-page {
--biz-theme-primary: var(--color-primary);
  --biz-theme-accent: var(--color-accent);
  --biz-theme-hero-start: #2d2a72;
  --biz-theme-hero-end: #111133;
}

.business-detail-page.biz-theme-navy {
--biz-theme-primary: #222266;
  --biz-theme-accent: #ff9933;
  --biz-theme-hero-start: #2d2a72;
  --biz-theme-hero-end: #111133;
}

.business-detail-page.biz-theme-teal {
--biz-theme-primary: #0f766e;
  --biz-theme-accent: #14b8a6;
  --biz-theme-hero-start: #115e59;
  --biz-theme-hero-end: #0f172a;
}

.business-detail-page.biz-theme-green {
--biz-theme-primary: #166534;
  --biz-theme-accent: #77dd55;
  --biz-theme-hero-start: #14532d;
  --biz-theme-hero-end: #111827;
}

.business-detail-page.biz-theme-blue {
--biz-theme-primary: #155eef;
  --biz-theme-accent: #60a5fa;
  --biz-theme-hero-start: #1d4ed8;
  --biz-theme-hero-end: #111827;
}

.business-detail-page.biz-theme-purple {
--biz-theme-primary: #6b21a8;
  --biz-theme-accent: #c084fc;
  --biz-theme-hero-start: #581c87;
  --biz-theme-hero-end: #111827;
}

.business-detail-page.biz-theme-orange {
--biz-theme-primary: #f97316;
  --biz-theme-accent: #ff9933;
  --biz-theme-hero-start: #c2410c;
  --biz-theme-hero-end: #111827;
}

.business-detail-page .btn-primary:not(:disabled),
.business-detail-page .btn-primary:not(.disabled) {
background: var(--biz-theme-primary) !important;
  color: #fff !important;
}

.business-detail-page .btn-primary:hover:not(:disabled),
.business-detail-page .btn-primary:focus:not(:disabled) {
background: var(--biz-theme-accent) !important;
  color: #111133 !important;
}

.business-detail-page .btn-outline-primary {
color: var(--biz-theme-primary) !important;
  border-color: color-mix(in srgb, var(--biz-theme-primary) 38%, var(--color-border)) !important;
}

.business-detail-page .btn-outline-primary:hover,
.business-detail-page .btn-outline-primary:focus {
background: color-mix(in srgb, var(--biz-theme-primary) 10%, #fff) !important;
  color: var(--biz-theme-primary) !important;
  border-color: var(--biz-theme-primary) !important;
}

.business-detail-page .chip {
background: color-mix(in srgb, var(--biz-theme-primary) 7%, transparent);
  color: var(--biz-theme-primary);
}

.business-detail-page .chip:hover {
background: color-mix(in srgb, var(--biz-theme-primary) 13%, transparent);
}

.business-detail-page .payment-chip i {
background: color-mix(in srgb, var(--biz-theme-accent) 18%, transparent);
  color: var(--biz-theme-primary);
}

.business-profile-banner-fallback {
width: 100%;
  height: clamp(180px, 28vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 5rem;
  font-weight: 700;
}

.business-profile-overview-main {
display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.business-profile-overview-main-single {
grid-template-columns: minmax(0, 1fr);
}

.business-profile-overview-wide {
grid-column: 1 / -1;
}

.business-detail-page .business-detail-map {
width: 100%;
  min-height: 238px;
  height: clamp(238px, 32vh, 320px);
  border-radius: 20px !important;
}

.business-detail-page .contact-detail {
background: #f0f0f3;
  padding: 12px;
  border-radius: 15px;
}

.business-detail-page .contact-detail {
flex: 1 0 calc(50% - 1rem);
}

.business-detail-page .contact-detail > div {
margin: 0;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
}

.business-detail-page .contact-detail > div:last-child {
border: none;
}

.business-detail-page .contact-detail h3 {
color: var(--color-text-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (max-width: 991.98px) {
.business-profile-overview-main {
display: block;
}
}

.message-list {
display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.messages-toolbar {
display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.messages-filterbar {
display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.messages-unread-total {
display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.viewer-messages-shell {
display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.viewer-conversation-list {
display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.viewer-conversation-item {
display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface, #fff);
  color: var(--color-text);
  text-align: left;
}

.viewer-conversation-item:hover,
.viewer-conversation-item.active {
border-color: rgba(34, 34, 102, 0.25);
  background: rgba(34, 34, 102, 0.06);
}

.viewer-conversation-main {
min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.viewer-conversation-main strong,
.viewer-conversation-main small {
overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-conversation-main small {
color: var(--color-text-muted);
  font-size: 0.76rem;
}

.viewer-conversation-unread {
min-width: 24px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.viewer-thread-header {
display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.viewer-thread-header h2 {
margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.message-type-chip {
display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 50rem;
  background: rgba(255, 153, 51, 0.14);
  color: var(--color-heading);
  font-size: 0.78rem;
  font-weight: 700;
}

.message-presence {
color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.message-day-separator {
display: flex;
  justify-content: center;
  margin: 0.25rem 0;
}

.message-day-separator span {
padding: 0.2rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 50rem;
  background: var(--color-surface, #fff);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.message-row {
display: flex;
}

.message-row.outgoing {
justify-content: flex-end;
}

.message-row.incoming {
justify-content: flex-start;
}

.message-bubble {
max-width: min(680px, 100%);
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(34, 34, 102, 0.06);
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.message-row.outgoing .message-bubble {
border-color: rgba(34, 34, 102, 0.18);
  background: #222266;
  color: #fff;
}

.message-sender-label {
margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.message-bubble small {
display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.375rem;
  color: var(--color-text-muted);
}

.message-row.outgoing .message-bubble small {
color: rgba(255, 255, 255, 0.78);
}

.message-tick {
font-weight: 700;
}

.message-typing {
color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 1.25rem;
}

.message-composer {
display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

@media (max-width: 575.98px) {
.message-composer {
grid-template-columns: 1fr;
}
}

@media (max-width: 767.98px) {
.messages-filterbar,
.viewer-messages-shell {
grid-template-columns: 1fr;
}

.viewer-conversation-list {
max-height: none;
}
}

.business-viewer-map-wrapper {
height: 360px;
  min-height: 320px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eaf2ee;
}

.business-viewer-map-wrapper .map-info-window {
min-width: 190px;
  max-width: 260px;
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.business-viewer-map-wrapper .map-info-window strong {
color: #111133;
  font-size: 0.92rem;
}

.business-viewer-map-wrapper .map-info-window > span,
.business-viewer-map-wrapper .map-offer-summary {
color: #5b5b76;
}

.business-viewer-map-wrapper .map-offer-summary {
font-weight: 700;
}

.business-viewer-map-wrapper .map-offer-list {
margin: 0;
  padding-left: 1rem;
  color: #111133;
}

.business-viewer-map-wrapper .map-offer-list li {
margin: 0.12rem 0;
}

.business-viewer-map-wrapper .map-info-actions {
display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.2rem;
}

.business-viewer-map-wrapper .map-info-link {
display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(34, 34, 102, 0.18);
  border-radius: 8px;
  color: #222266;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.business-viewer-map-wrapper .map-info-link.primary {
border-color: #222266;
  background: #222266;
  color: #fff;
}

.business-viewer-map-pin {
max-width: min(220px, 42%);
  border: 1px solid rgba(34, 34, 102, 0.14);
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.business-viewer-map-pin span:last-child {
min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-viewer-map-pin .pin-thumb {
flex: 0 0 28px;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.business-viewer-map-pin .pin-thumb::after {
content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.business-viewer-map-pin .pin-thumb.has-logo {
background: #fff;
  border: 1px solid rgba(34, 34, 102, 0.12);
}

.business-viewer-map-pin .pin-thumb.has-logo::after {
display: none;
}

.business-viewer-map-pin .pin-thumb.has-logo img {
width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.business-viewer-map-pin .pin-thumb.offer-thumb {
display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #111133;
  font-size: 0.72rem;
  font-weight: 800;
}

.business-viewer-map-pin .pin-thumb.offer-thumb::after {
display: none;
}

.business-viewer-map-pin-offers {
border-color: rgba(255, 153, 51, 0.72);
  box-shadow: 0 8px 22px rgba(34, 34, 102, 0.16);
}

.business-viewer-map-pin:hover,
.business-viewer-map-pin:focus {
color: #000;
  border-color: var(--color-accent);
  box-shadow: 0 8px 22px rgba(34, 34, 102, 0.22);
  outline: none;
}

[data-bs-theme="dark"] .business-viewer-map-wrapper {
border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .business-viewer-map-pin {
background: var(--color-surface);
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991.98px) {
.business-viewer-map-wrapper {
height: 320px;
}
}

@media (max-width: 575.98px) {
.business-viewer-map-pin {
max-width: 54%;
    font-size: 0.72rem;
    padding-right: 0.5rem;
}
}
