/* Dashboard Layout */
body.dashboard {
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.dashboard .app-main {
  overflow-x: hidden;
  width: 100%;
}

/* Header & Navigation */
.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border-default);
}

.header-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.5rem 1rem;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    gap: 0.5rem;
  }
}

.header-logo {
  width: 120px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .header-logo {
    width: 120px;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: color 0.2s;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--brand-teal-700);
}

.nav-link-messages {
  position: relative;
}

.nav-badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--brand-orange-500);
  border-radius: 999px;
}

.nav-badge:not(:empty) {
  display: inline-block;
}

.mobile-menu-nav .nav-link-messages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-menu-nav .nav-badge {
  position: static;
  margin-left: auto;
}

.nav-badge-hamburger {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.65rem;
  line-height: 16px;
}

.admin-header-nav a.is-active {
  color: var(--brand-orange-500);
  border-bottom: 2px solid var(--brand-orange-500);
  padding-bottom: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guest-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.guest-login-link,
.guest-register-link {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.guest-login-link {
  color: var(--text-main);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
}

.guest-register-link {
  color: #fff;
  border: 1px solid var(--brand-orange-500);
  background: var(--brand-orange-500);
}

@media (min-width: 769px) {
  .guest-actions {
    display: flex;
  }
}

.btn-icon {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  padding: 0.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-icon:hover {
  border-color: var(--brand-teal-700);
  background: color-mix(in srgb, var(--brand-teal-700) 8%, transparent);
}

.user-menu-wrap {
  position: relative;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--bg-input);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: inherit;
}

button.user-menu:hover {
  border-color: var(--brand-teal-700);
  background: color-mix(in srgb, var(--brand-teal-700) 8%, var(--bg-input));
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
  z-index: 55;
  display: none;
}

.user-menu-wrap.is-open .user-menu-dropdown {
  display: block;
}

.user-menu-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.15s;
}

.user-menu-dropdown a:hover {
  background: var(--bg-input);
}

.user-menu-switch-form {
  margin: 0;
  padding: 0;
}

.user-menu-dropdown .user-menu-switch-form button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.user-menu-dropdown .user-menu-switch-form button:hover {
  background: var(--bg-input);
}

.mobile-menu-switch-form {
  margin: 0;
  padding: 0;
}

.mobile-menu-nav .mobile-menu-switch-form button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-default);
  cursor: pointer;
  font-family: inherit;
}

.mobile-menu-nav .mobile-menu-switch-form button:hover {
  background: var(--bg-input);
}

@media (max-width: 768px) {
  .user-menu .user-menu-name,
  .user-menu span {
    display: none;
  }
  .user-menu {
    padding: 0.35rem;
  }
  .btn-icon {
    width: 36px;
    height: 36px;
  }
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-orange-500));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  overflow: hidden;
}

.user-avatar .user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main Content */
.app-main {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  box-sizing: border-box;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
    url('/images/oc-gonzalez-xg8z_KhSorQ-unsplash.png') center/cover;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: white;
  margin-bottom: var(--space-8);
  min-height: 280px;
  display: grid;
  place-items: center;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-4) var(--space-3);
    min-height: 180px;
    margin-bottom: var(--space-5);
  }
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-6);
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
  }
  .hero-content p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-4);
  }
}

.search-bar {
  max-width: min(600px, 100%);
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: var(--space-2);
  background: white;
  border-radius: 999px;
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.5rem var(--space-4);
  color: var(--neutral-900);
}

.search-bar input:focus {
  outline: none;
}

.search-bar .btn-primary {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  white-space: nowrap;
}

.search-bar-wrap {
  position: relative;
  max-width: min(600px, 100%);
  width: 100%;
  margin: 0 auto;
}

.business-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
}

.business-search-dropdown[hidden] {
  display: none !important;
}

.business-search-dropdown:not([hidden]) {
  display: block;
}

.business-search-dropdown .dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle, #eee);
  transition: background 0.15s;
}

.business-search-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.business-search-dropdown .dropdown-item:hover,
.business-search-dropdown .dropdown-item:focus {
  background: var(--neutral-100, #f5f5f5);
  outline: none;
}

.business-search-dropdown .dropdown-item-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.business-search-dropdown .dropdown-item-category {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.business-search-dropdown .dropdown-empty {
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Categories – horizontal scroll carousel at all viewports */
.categories-section {
  margin-bottom: var(--space-8);
}

.categories-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: var(--space-2) var(--space-4);
}

.categories-carousel::-webkit-scrollbar {
  display: none;
}

.categories-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.categories-carousel-set {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-3);
  flex-shrink: 0;
  scroll-snap-align: start;
  padding-right: var(--space-4);
}

.categories-carousel .category-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.section-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: grid;
  gap: var(--space-2);
}

.category-card:hover {
  border-color: var(--brand-teal-700);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.category-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-800));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: white;
  margin-bottom: var(--space-8);
  display: grid;
  gap: var(--space-4);
}

.info-card h2 {
  font-size: var(--font-size-xl);
}

.info-card p {
  opacity: 0.95;
  line-height: 1.6;
}

.info-card .btn {
  justify-self: start;
  background: white;
  color: var(--brand-teal-700);
  font-weight: 700;
}

/* Business Grid */
.businesses-section,
.promotions-section {
  margin-bottom: var(--space-8);
}

.businesses-section .section-header {
  max-width: calc(9 * (310px + var(--space-4)) - var(--space-4));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Promosies / Specials (Checkers/Spar-style flyer look) – theme-aware */
.promosies-section {
  margin-bottom: 0;
}

.promosies-section.specials-section {
  background: var(--bg-page);
}

.promosies-banner {
  background: var(--brand-teal-700);
  color: var(--white);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.specials-banner {
  padding: var(--space-3) var(--space-4);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

.specials-banner h2 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.15rem 0;
  text-transform: uppercase;
  color: var(--text-main);
}

.specials-banner p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.promosies-banner h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: var(--white);
}

.promosies-banner p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
  color: var(--white);
}

.promosies-wrap {
  background: var(--bg-page);
  padding: var(--space-6) var(--space-4);
}

.specials-wrap {
  padding: 0.875rem var(--space-4) 1.25rem;
  background: var(--bg-page);
}

.promosies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 1280px;
  margin: 0 auto var(--space-6);
}

.specials-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  max-width: 960px;
  margin: 0 auto var(--space-4);
}

.specials-cards-grid {
  gap: 20px;
}

@media (max-width: 900px) {
  .promosies-grid { grid-template-columns: repeat(2, 1fr); }
  .specials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .specials-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .promosies-grid { grid-template-columns: 1fr; }
  .specials-cards-grid { grid-template-columns: 1fr; }
}

/* Special card: compact flyer-style – theme-aware */
.promo-card.special-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
}

.special-store {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem 0.2rem;
  line-height: 1.2;
}

.promo-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 0.35rem;
}

.promo-card-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-main);
  border-radius: 2px;
  flex-shrink: 0;
}

.promo-business {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.promo-desc-above {
  margin: 0 0.75rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-card-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 0.5rem;
}

.special-image-wrap {
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  min-height: 0;
}

.special-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-input);
}

.promo-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, var(--brand-orange-500) 0%, var(--brand-orange-600) 100%);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transform: rotate(8deg);
  box-shadow: var(--shadow-soft);
}

.special-badge {
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  top: 0.25rem;
  right: 0.25rem;
  border-radius: 0.2rem;
  transform: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.promo-card-body {
  padding: 0.6rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.special-body {
  padding: 0.4rem 0.5rem 0.5rem;
  gap: 0.1rem;
}

.special-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-was {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.special-was {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.promo-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-orange-500);
  letter-spacing: -0.02em;
}

.special-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--error-500);
  letter-spacing: -0.02em;
}

.promo-validity {
  margin: 0.2rem 0 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.special-validity {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Specials card – unified style (dashboard main view + specials page) when using .card-image, .card-content, .price-row */
.promosies-section .promo-card.special-card .card-image,
.specials-page-grid .promo-card.special-card .card-image,
.promosies-section .promo-card.special-card .special-image-wrap.card-image,
.specials-page-grid .promo-card.special-card .special-image-wrap.card-image {
  position: relative;
  height: 180px;
  margin: 0;
  aspect-ratio: auto;
}

.promosies-section .promo-card.special-card .card-image img,
.specials-page-grid .promo-card.special-card .card-image img,
.promosies-section .promo-card.special-card .special-image-wrap.card-image img,
.specials-page-grid .promo-card.special-card .special-image-wrap.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promosies-section .promo-card.special-card,
.specials-page-grid .promo-card.special-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
  border: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
}

.promosies-section .promo-card.special-card:active,
.specials-page-grid .promo-card.special-card:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .promosies-section .promo-card.special-card:hover,
  .specials-page-grid .promo-card.special-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
}

.promosies-section .promo-card.special-card .special-badge,
.specials-page-grid .promo-card.special-card .special-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-orange-500);
  color: var(--neutral-900);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.75rem;
  transform: none;
  box-shadow: var(--shadow-soft);
}

.promosies-section .promo-card.special-card .card-content,
.specials-page-grid .promo-card.special-card .card-content,
.promosies-section .promo-card.special-card .special-body.card-content,
.specials-page-grid .promo-card.special-card .special-body.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.promosies-section .promo-card.special-card .vendor-name,
.specials-page-grid .promo-card.special-card .vendor-name,
.promosies-section .promo-card.special-card .special-store.vendor-name,
.specials-page-grid .promo-card.special-card .special-store.vendor-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin: 0;
  padding: 0;
}

.promosies-section .promo-card.special-card .deal-title,
.specials-page-grid .promo-card.special-card .deal-title,
.promosies-section .promo-card.special-card .special-title.deal-title,
.specials-page-grid .promo-card.special-card .special-title.deal-title {
  font-size: 1.25rem;
  margin: 6px 0 12px 0;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.promosies-section .promo-card.special-card .price-row,
.specials-page-grid .promo-card.special-card .price-row,
.promosies-section .promo-card.special-card .special-price-row.price-row,
.specials-page-grid .promo-card.special-card .special-price-row.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.promosies-section .promo-card.special-card .current-price,
.specials-page-grid .promo-card.special-card .current-price,
.promosies-section .promo-card.special-card .special-price.current-price,
.specials-page-grid .promo-card.special-card .special-price.current-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--error-500);
}

.promosies-section .promo-card.special-card .old-price,
.specials-page-grid .promo-card.special-card .old-price,
.promosies-section .promo-card.special-card .special-was.old-price,
.specials-page-grid .promo-card.special-card .special-was.old-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.promosies-section .promo-card.special-card .expiry,
.specials-page-grid .promo-card.special-card .expiry,
.promosies-section .promo-card.special-card .special-validity.expiry,
.specials-page-grid .promo-card.special-card .special-validity.expiry {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.promosies-actions {
  text-align: center;
  margin-top: var(--space-4);
}

.specials-wrap .promosies-actions {
  margin-top: 0.75rem;
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand-orange-500);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-size-base);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s, box-shadow 0.2s;
}

.specials-wrap .btn-promo {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Specials page (all specials + filters) */
.specials-page-intro {
  margin-bottom: var(--space-4);
  color: var(--text-main);
}

.specials-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.specials-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.specials-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.specials-filters select {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  min-width: 160px;
  background: var(--bg-input);
  color: var(--text-main);
}

.specials-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specials-filters .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.specials-page-section {
  margin-top: 1.5rem;
}

.specials-page-grid {
  max-width: 100%;
}

.specials-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-base);
  padding: var(--space-8) var(--space-4);
  margin: 0;
}

/* Werkbord (jobs) page – base layout */
.jobs-tabs-wrap {
  margin-top: var(--space-6);
}

.jobs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border-default);
  margin-bottom: var(--space-4);
}

.jobs-tab {
  padding: var(--space-3) var(--space-4);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.jobs-tab:hover {
  color: var(--text-main);
}

.jobs-tab.active {
  color: var(--brand-teal-800);
  border-bottom-color: var(--brand-teal-800);
}

.jobs-panel {
  min-height: 120px;
}

.jobs-section-seekers {
  margin-top: 0;
}

.jobs-section-vacancies h2,
.jobs-section-seekers h2 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem 0;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.job-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.job-card:hover {
  transform: translateY(-2px);
}

.job-card-title {
  font-size: 1rem;
  margin: 0 0 0.35rem 0;
}

.job-card-business,
.job-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

/* My werkbord-lysings: pending/rejected with reason */
.jobs-section-my-listings {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.jobs-tabs-wrap .jobs-section-my-listings .jobs-subsection-title:first-of-type {
  margin-top: 0;
}

.jobs-subsection-title {
  font-size: var(--font-size-lg);
  margin: var(--space-6) 0 var(--space-3) 0;
  color: var(--text-main);
}

.jobs-my-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6) 0;
}

.jobs-my-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: var(--space-2);
}

.jobs-my-item-main {
  flex: 1;
  min-width: 0;
}

.jobs-my-item-main strong {
  display: block;
  margin-bottom: 0.25rem;
}

.jobs-my-meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.jobs-rejection-reason {
  margin: var(--space-2) 0 0 0;
  padding: var(--space-2);
  background: color-mix(in srgb, var(--error-500) 12%, transparent);
  border-left: 3px solid var(--error-500);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text-main);
}

.jobs-status-pill {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.jobs-status-approved {
  background: color-mix(in srgb, var(--success-500) 18%, transparent);
  color: var(--success-500);
}

.jobs-status-pending {
  background: color-mix(in srgb, var(--brand-orange-500) 18%, transparent);
  color: var(--brand-orange-600);
}

.jobs-status-rejected {
  background: color-mix(in srgb, var(--error-500) 18%, transparent);
  color: var(--error-500);
}

.modal-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-promo-arrow {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 0.15rem;
}

.btn-promo:hover {
  background: var(--brand-orange-600);
  color: var(--white);
  transform: translateY(-1px);
}

/* Registreer jou besigheid */
.register-section {
  margin-bottom: 0;
}

.register-banner {
  background: var(--brand-teal-700);
  color: #fff;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-banner h2 {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.register-wrap {
  background: var(--bg-page);
  padding: var(--space-8) var(--space-4);
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
}

.register-intro-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
  text-align: center;
}

.register-intro-text {
  text-align: center;
  margin: 0 0 var(--space-8);
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.register-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 800px) {
  .register-steps {
    grid-template-columns: 1fr;
  }
}

.register-step {
  text-align: center;
}

.register-step-num {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--brand-teal-700);
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.register-step h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
}

.register-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Het jy hulp nodig + Kontak Ons */
.help-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  background: var(--bg-page);
  border-style: dashed;
  border-color: var(--border-default);
  border-width: 1px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .help-section {
    grid-template-columns: 1fr;
  }
}

.help-cards-wrap {
  position: relative;
  min-height: 240px;
}

@media (max-width: 600px) {
  .help-cards-wrap {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .help-card {
    position: static !important;
    width: 100% !important;
  }
}

.help-card {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: absolute;
  box-shadow: var(--shadow-soft);
}

.help-card-orange {
  background: linear-gradient(135deg, #f9b04d 0%, var(--brand-orange-600) 100%);
  color: var(--white);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  left: -15px;
  top: -6px;
  width: 42%;
}

.help-card-orange h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.35;
}

.help-card-orange .help-line {
  display: block;
}

.help-card-teal {
  background: linear-gradient(180deg, var(--brand-teal-900) 0%, var(--brand-teal-700) 50%, #1aa8b8 100%);
  color: var(--white);
  left: 12%;
  top: 28%;
  width: 72%;
  min-height: 190px;
  z-index: 2;
}

.help-card-teal h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-left: 150px;
}

.help-card-teal ul {
  margin-left: 160px;
  padding: 0 1.25rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  list-style-position: inside;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.contact-form h3 {
  margin: 0 0 var(--space-4) 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (max-width: 520px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-row-full {
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}

.contact-form-field {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  background: var(--bg-input);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-teal-700);
  box-shadow: 0 0 0 2px rgba(25, 142, 159, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-contact-submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--brand-teal-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-contact-submit:hover {
  background: var(--brand-teal-800);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  font-size: var(--font-size-xl);
}

.businesses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.business-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: grid;
}

.business-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.business-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--neutral-200);
}

.business-content {
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.business-category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  color: var(--brand-orange-500);
  font-weight: 600;
}

.business-category img {
  width: 16px;
  height: 16px;
}

.business-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.business-description {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.business-meta {
  display: flex;
  gap: var(--space-4);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-default);
}

.business-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-orange-500);
}

/* Promotions Grid */
.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.promotion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.promotion-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.promotion-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--neutral-200);
}

.promotion-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--brand-orange-500);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-soft);
}

.promotion-content {
  padding: var(--space-4);
}

.promotion-title {
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.promotion-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.promotion-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-orange-500);
}

.promotion-price-old {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.promotion-store {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-900));
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: white;
  text-align: center;
  margin-bottom: var(--space-8);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  margin-bottom: var(--space-6);
}

.cta-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.cta-step {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
}

.cta-step-number {
  width: 48px;
  height: 48px;
  background: var(--brand-orange-500);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-3);
}

.cta-step h3 {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.cta-step p {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.cta-section .btn {
  background: white;
  color: var(--brand-teal-700);
  font-weight: 700;
  padding: 0.85rem 2rem;
  font-size: var(--font-size-lg);
}

/* Footer */
.app-footer {
  background: var(--slate-900);
  color: white;
  padding: var(--space-8) var(--space-4);
  margin-top: var(--space-8);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: var(--font-size-base, 1rem);
}

.footer-email {
  color: inherit;
  text-decoration: none;
  opacity: 0.95;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-nav-links,
.footer-legal {
  margin: 0.35rem 0;
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.footer-nav-links a,
.footer-legal a {
  color: inherit;
  text-decoration: none;
}

.footer-nav-links a:hover,
.footer-legal a:hover {
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.4rem;
  opacity: 0.7;
}

.footer-copyright {
  margin: 0.75rem 0 0;
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.footer-logo {
  width: 180px;
  margin: 0 auto var(--space-4);
}

.footer-text {
  opacity: 0.8;
  font-size: var(--font-size-sm);
}

/* Mobile menu: pull-tab + 75% panel + backdrop */
.mobile-menu-pull-tab {
  display: none;
  position: fixed;
  left: 0;
  top: 56px;
  width: 32px;
  height: 44px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-left: none;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 101;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: background 0.2s, box-shadow 0.2s;
}

.mobile-menu-pull-tab:hover {
  background: var(--bg-input);
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.12);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 75%;
  max-width: 75vw;
  background: var(--bg-card);
  z-index: 200;
  padding: var(--space-5);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.mobile-menu-nav {
  display: grid;
  gap: var(--space-1);
}

.mobile-menu-nav a {
  padding: var(--space-3);
  text-decoration: none;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.mobile-menu-nav a:hover {
  background: var(--bg-input);
}

/* Noodnommers – bottom of mobile nav sidebar */
.mobile-menu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu-nav {
  flex: 0 0 auto;
}

.mobile-menu-noodnommers {
  margin-top: auto;
  padding: var(--space-4);
  background: var(--bg-card);
  border-top: 3px solid var(--error-500);
  border-radius: var(--radius-sm);
  margin-left: var(--space-4);
  margin-right: var(--space-4);
  margin-bottom: var(--space-4);
  overflow-y: auto;
  flex-shrink: 0;
}

.mobile-menu-noodnommers-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mobile-menu-noodnommers-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
}

.mobile-menu-noodnommers-label {
  flex: 0 0 100%;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-menu-noodnommers-num {
  color: var(--brand-teal-700);
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-noodnommers-num:hover {
  text-decoration: underline;
}

.mobile-menu-noodnommers-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.mobile-menu-noodnommers-terms {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: var(--space-2) 0 0;
}

.mobile-menu-noodnommers-terms:first-of-type {
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .mobile-menu-pull-tab {
    display: flex;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }

  .mobile-menu-pull-tab {
    display: none !important;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1024px) {
  .businesses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Role dashboard shared sections */
.dashboard-intro {
  margin-bottom: var(--space-8);
}

.dashboard-intro h1 {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.dashboard-intro p {
  color: var(--text-muted);
  padding: var(--space-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.admin-migrations-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.admin-migrations-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.admin-migrations-label {
  color: var(--text-main);
  font-size: var(--font-size-base);
}

.admin-migrations-form {
  margin: 0;
}

.admin-migrations-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ----- Admin: All users page ----- */
.admin-users-section {
  margin-top: var(--space-4);
}

.admin-users-count {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

.admin-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.admin-user-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.15s ease;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-user-card:hover {
  box-shadow: var(--shadow-card);
}

.admin-user-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
}

.admin-user-card-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-teal-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}

.admin-user-card-head {
  flex: 1;
  min-width: 0;
}

.admin-user-card-name {
  margin: 0 0 0.15rem 0;
  font-size: var(--font-size-base);
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card-email {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--font-size-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card-email a {
  color: var(--brand-teal-700);
  text-decoration: none;
}

.admin-user-card-email a:hover {
  text-decoration: underline;
}

.admin-user-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.admin-user-pill {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.admin-users-pill-super {
  background: color-mix(in srgb, var(--brand-orange-500) 22%, transparent);
  color: var(--brand-orange-600);
}

.admin-users-pill-business {
  background: color-mix(in srgb, var(--brand-teal-700) 18%, transparent);
  color: var(--brand-teal-800);
}

.admin-users-pill-user {
  background: color-mix(in srgb, var(--text-muted) 25%, transparent);
  color: var(--text-muted);
}

.admin-user-date {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.admin-user-access-note {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.admin-user-access-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  min-width: 0;
}

.admin-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-width: 0;
}

.admin-access-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-main);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: color-mix(in srgb, var(--text-muted) 35%, var(--bg-input));
  border-radius: 20px;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--brand-teal-700);
}

.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid var(--brand-teal-700);
  outline-offset: 2px;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.super-admin-app .toggle-switch input:checked + .toggle-slider {
  background: var(--brand-orange-500);
}

.admin-user-business-field {
  width: 100%;
  min-width: 0;
}

.admin-user-business-field.is-hidden {
  display: none;
}

.admin-user-business-field select {
  width: 100%;
  max-width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: var(--font-size-sm);
}

.admin-user-form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.admin-user-save-status {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: var(--font-size-sm);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-teal-700);
}

.stat-change {
  font-size: var(--font-size-sm);
  color: var(--success-500);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.action-card {
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-800));
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: grid;
  gap: var(--space-3);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.action-card.orange {
  background: linear-gradient(135deg, var(--brand-orange-500), var(--brand-orange-600));
}

.action-card.slate {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.action-icon {
  font-size: 2rem;
}

.action-title {
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.action-copy {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.data-table {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.data-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.data-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  align-items: center;
}

.data-row:last-child {
  border-bottom: 0;
}

.contact-submission-row {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.contact-submission-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-submission-message {
  font-size: var(--font-size-sm);
  color: var(--text-main);
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
  max-width: 40ch;
}

.contact-submission-row.contact-replied {
  opacity: 0.85;
}

.contact-submission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.row-meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.status-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill.success {
  background: rgba(23, 163, 107, 0.14);
  color: var(--success-500);
}

.status-pill.warning {
  background: rgba(247, 148, 29, 0.18);
  color: var(--brand-orange-600);
}

.status-pill.neutral {
  background: rgba(82, 97, 114, 0.18);
  color: var(--text-muted);
}

.logout-link {
  text-decoration: none;
}

/* User dashboard design sections */
.design-top-grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.about-card {
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-800));
  border-radius: var(--radius-lg);
  color: white;
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

/* Desktop: half-half top (about) and bottom (noodnommers) */
@media (min-width: 769px) {
  .about-card {
    grid-template-rows: 1fr 1fr;
    min-height: 340px;
    gap: 0;
    padding: var(--space-6);
  }

  .about-card-top {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    justify-content: flex-start;
    min-height: 0;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .about-card-bottom {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: var(--space-4);
  }

  .about-card-noodnommers {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }

  /* Dramatic emergency styling on desktop */
  .about-card-bottom {
    border-left: 4px solid var(--error-500);
    margin-left: 0;
    padding-left: var(--space-4);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .about-card-noodnommers-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: var(--space-2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  }

  .about-card-noodnommers-row {
    margin-bottom: var(--space-3);
    font-size: 0.85rem;
  }

  .about-card-noodnommers-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
  }

  .about-card-noodnommers-num {
    display: inline-block;
    color: var(--brand-orange-500);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    margin: 0.15rem 0.5rem 0.15rem 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  .about-card-noodnommers-num:hover {
    color: #fff;
    background: var(--brand-orange-500);
    border-color: var(--brand-orange-500);
  }
}

.about-card-top {
  display: grid;
  gap: var(--space-2);
}

.about-card-logo {
  width: 250px;
}

.about-card p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Noodnommers block inside about-card (desktop half) – same structure as mobile sidebar, styled for teal card */
.about-card-noodnommers-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-card-noodnommers-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
}

.about-card-noodnommers-label {
  flex: 0 0 100%;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.about-card-noodnommers-num {
  color: var(--brand-orange-500);
  font-weight: 800;
  text-decoration: none;
}

.about-card-noodnommers-num:hover {
  color: #fff;
  text-decoration: underline;
}

.about-card-noodnommers-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

.about-card-noodnommers-terms {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
  margin: var(--space-2) 0 0;
}

.about-card-noodnommers-terms:first-of-type {
  margin-top: var(--space-3);
}

.calendar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.calendar-main {
  display: block;
}

.calendar-content {
  padding: var(--space-4);
  width: 100%;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.calendar-toolbar-prev,
.calendar-toolbar-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.calendar-toolbar-prev:hover,
.calendar-toolbar-next:hover {
  background: var(--brand-orange-500);
  color: #fff;
  border-color: var(--brand-orange-500);
}

.calendar-toolbar-month {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
  text-align: center;
}

.calendar-toolbar button:not(.calendar-toolbar-prev):not(.calendar-toolbar-next) {
  border: none;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.calendar-toolbar-form {
  margin: 0;
  padding: 0;
}

.calendar-toolbar .active {
  background: var(--brand-orange-500);
  color: #fff;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.calendar-cell {
  appearance: none;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  min-height: 40px;
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 600;
  display: grid;
  place-items: center;
  background: var(--bg-input);
  cursor: pointer;
  padding: 0;
}

.calendar-cell.day-label {
  min-height: 34px;
  color: var(--brand-orange-500);
  font-weight: 700;
  cursor: default;
}

.calendar-cell.day-label .day-full {
  display: inline;
}

.calendar-cell.day-label .day-short {
  display: none;
}

.calendar-cell-today {
  background: var(--brand-orange-500);
  color: #fff;
  border-color: var(--brand-orange-500);
}

.calendar-cell-other {
  cursor: default;
  opacity: 0.5;
  border-style: dashed;
}

.event-strip {
  padding: var(--space-4);
  border-top: 1px solid var(--border-default);
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: var(--space-3);
}

.event-mini-card {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.event-mini-card img {
  width: 100%;
  height: 74px;
  object-fit: cover;
}

.event-mini-copy {
  padding: 0.5rem;
  display: grid;
  gap: 0.2rem;
}

.event-mini-copy strong {
  font-size: 0.82rem;
}

.event-mini-copy span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.directory-carousel-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: min(100%, calc(9 * (310px + var(--space-4)) - var(--space-4)));
  margin-left: auto;
  margin-right: auto;
}

.carousel-actions {
  display: flex;
  gap: 0.5rem;
}

.directory-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(285px, 310px);
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0;
  scroll-behavior: smooth;
  cursor: grab;
}

.directory-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.directory-carousel::-webkit-scrollbar {
  display: none;
}

.directory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  display: grid;
}

.directory-card-locked {
  cursor: default;
}

.directory-card-locked .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

.directory-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 140px;
  height: auto;
  overflow: hidden;
}

.directory-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  font-size: 0.83rem;
}

.directory-pill img {
  width: 18px;
  height: 18px;
}

.directory-logo-badge {
  position: absolute;
  bottom: -32px;
  left: 16px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  display: grid;
  place-items: center;
}

.directory-logo-badge img {
  width: 47px;
  height: 47px;
}

.directory-body {
  padding: 2.3rem 1rem 1rem;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.directory-body h3 {
  font-size: 1.9rem;
  line-height: 1.1;
}

.directory-body p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.directory-line {
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.directory-footer {
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-top: 0.7rem;
  margin-top: 0.2rem;
  min-width: 0;
}

.directory-footer > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.directory-footer-icons {
  display: inline-flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.directory-footer-icons img {
  width: 20px;
  height: 20px;
}

.product-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
}

.product-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.product-tile img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.product-tile-copy {
  padding: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.product-tile-copy strong {
  font-size: 0.9rem;
}

.product-price {
  font-weight: 800;
  color: var(--brand-orange-500);
}

.market-shell {
  display: grid;
  gap: var(--space-4);
}

.market-filter {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.market-filter h3 {
  font-size: 1rem;
}

.market-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.market-option:hover {
  background: var(--bg-muted);
}

.market-option.is-selected {
  background: var(--brand-orange-100, rgba(255, 140, 0, 0.15));
  font-weight: 600;
}

.market-option img {
  width: 18px;
  height: 18px;
}

.feed-badge-sold {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--text-muted);
  color: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.2rem;
}

.market-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.market-shell-mockup .market-feed {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.market-shell-mockup .feed-card {
  border-radius: 0.35rem;
}

.market-shell-mockup .feed-card img {
  height: 124px;
}

.market-shell-mockup .feed-copy {
  gap: 0.15rem;
  padding: 0.45rem;
}

.market-shell-mockup .feed-price {
  color: var(--text-main);
  font-size: 0.95rem;
}

.market-shell-mockup .feed-copy strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.market-shell-mockup .row-meta {
  font-size: 0.72rem;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.feed-card-button {
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.feed-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.feed-copy {
  padding: 0.7rem;
  display: grid;
  gap: 0.25rem;
}

.feed-price {
  color: var(--brand-orange-500);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  gap: var(--space-6);
}

.admin-scroll {
  max-height: 620px;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
}

.admin-inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-quick-links .action-card {
  min-height: 165px;
}

button.action-card {
  border: none;
  font: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-800));
}

.admin-logo-preview {
  margin-top: 0.5rem;
}

.admin-logo-preview img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
}

.admin-row-stack {
  align-items: start;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: var(--bg-card);
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--border-default);
  text-align: left;
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-table th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-input) 88%, #ffffff);
}

.admin-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand-teal-700) 6%, transparent);
}

.admin-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.admin-listing-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--bg-input);
}

.admin-listing-card-body {
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

/* Admin Specials grid – flyer-style preview cards */
.detail-panel-promos .data-table-header-promos {
  margin-bottom: 0.75rem;
}

.detail-panel-promos .data-table-header-promos h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}

.admin-promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.admin-promo-card.is-inactive {
  opacity: 0.7;
}

.admin-promo-card.is-inactive .admin-promo-card-preview {
  filter: grayscale(0.4);
}

.admin-promo-card-preview {
  padding: 0;
}

.admin-promo-store {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 0.3rem 0.45rem 0.15rem;
  line-height: 1.2;
}

.admin-promo-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-input);
}

.admin-promo-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-promo-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, var(--brand-orange-500) 0%, var(--brand-orange-600) 100%);
  color: var(--text-main);
}

.admin-promo-meta {
  padding: 0.35rem 0.45rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.admin-promo-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.admin-promo-was {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.admin-promo-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--error-500);
}

.admin-promo-end {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.admin-promo-card-actions {
  padding: 0.4rem 0.5rem;
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: var(--bg-input);
}

.admin-promo-card-actions .status-pill {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
}

.admin-promo-card-actions .admin-inline-form {
  display: flex;
  gap: var(--space-2);
  margin: 0;
}

.admin-promo-card-actions .btn-link {
  font-size: var(--font-size-sm);
  padding: 0.2rem 0.35rem;
}

.admin-promos-empty {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: var(--space-4) 0 0;
  padding: var(--space-4);
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

/* Promotion modal – create/edit promosie */
.app-modal-promo .promo-form {
  max-width: 420px;
}

.app-modal-promo .promo-form label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-main);
}

.app-modal-promo .promo-form input[type="text"],
.app-modal-promo .promo-form input[type="number"],
.app-modal-promo .promo-form input[type="date"],
.app-modal-promo .promo-form select {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  font-size: var(--font-size-sm);
  width: 100%;
  background: var(--bg-input);
  color: var(--text-main);
}

.app-modal-promo .promo-form-preview-wrap {
  margin: var(--space-2) 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-input);
  max-width: 160px;
  aspect-ratio: 1;
}

.app-modal-promo .promo-form-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-modal-promo .promo-form-active-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  color: var(--text-main);
}

.app-modal-promo .promo-form-actions {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
}

.admin-listing-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.admin-featured-toggle {
  margin: 0;
}

.admin-toggle-featured-btn {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
}

.btn-danger {
  color: var(--error-500);
}

.btn-danger:hover {
  color: var(--error-500);
  text-decoration: underline;
}

.admin-split-screen {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  align-items: start;
}

.admin-business-rail {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.admin-business-rail-scroll {
  max-height: 74vh;
  overflow: auto;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.admin-business-rail-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-default);
  border-radius: 0.6rem;
  padding: 0.45rem;
}

.admin-business-rail-item.is-active {
  border-color: var(--brand-orange-500);
  background: color-mix(in srgb, var(--brand-orange-500) 12%, transparent);
}

.admin-business-rail-item img {
  width: 58px;
  height: 58px;
  border-radius: 0.45rem;
  object-fit: cover;
}

.admin-mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.admin-mini-thumb {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--border-default);
  cursor: pointer;
}

.upload-dropzone {
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
}

.upload-dropzone.is-dragging {
  border-color: var(--brand-orange-500);
  background: color-mix(in srgb, var(--brand-orange-500) 10%, var(--bg-input));
}

.upload-dropzone [data-dropzone-input] {
  display: none;
}

/* Image preview strip (multi-image + main selection) */
.image-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.image-preview-thumb-wrap {
  position: relative;
  width: 80px;
  flex-shrink: 0;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-input);
}

.image-preview-thumb-wrap.is-main {
  border-color: var(--brand-orange-500);
  box-shadow: 0 0 0 1px var(--brand-orange-500);
}

.image-preview-thumb-wrap .image-preview-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.image-preview-thumb-wrap .image-preview-set-main {
  display: block;
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  text-align: center;
}

.image-preview-thumb-wrap .image-preview-remove {
  display: block;
  width: 100%;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.image-preview-thumb-wrap .image-preview-remove:hover {
  color: var(--error, #c00);
}

body.super-admin-app .app-main.admin-main {
  max-width: 2000px;
}

/* ----- Business dashboard: same look and feel as super admin ----- */
body.business-dashboard-app .app-main.business-main {
  max-width: 1400px;
}

.business-switcher-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.business-switcher-form {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.business-switcher-form label {
  margin: 0;
  font-weight: 500;
  color: var(--text-muted);
}

.business-switcher-form select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: var(--font-size-base);
  min-width: 200px;
}

.business-quick-actions .action-card {
  min-height: 165px;
}

.stat-value-pill {
  font-size: 1rem !important;
  font-weight: 600;
}

.stat-value-pill.success {
  color: var(--success-500);
}

.stat-value-pill.warning {
  color: var(--warning-500);
}

/* Hide burger and mobile menu on business dashboard */
body.business-dashboard-app .mobile-menu-toggle,
body.business-dashboard-app .mobile-menu {
  display: none !important;
}

/* Business dashboard forms: clear, easy to use */
body.business-dashboard-app .business-form {
  display: grid;
  gap: var(--space-4);
  max-width: 560px;
}

body.business-dashboard-app .business-form .form-label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-main);
  margin-bottom: var(--space-1);
}

body.business-dashboard-app .business-form .form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: var(--font-size-base);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.business-dashboard-app .business-form .form-input:focus {
  outline: none;
  border-color: var(--brand-teal-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-teal-500) 20%, transparent);
}

body.business-dashboard-app .business-form .form-input::placeholder {
  color: var(--text-muted);
}

body.business-dashboard-app .business-form textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

body.business-dashboard-app .business-form .form-file {
  padding: 0.5rem 0;
  font-size: var(--font-size-sm);
  cursor: pointer;
}

body.business-dashboard-app .business-form .form-actions {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
}

body.business-dashboard-app .business-form .btn-primary {
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

/* Business profile: current logo preview */
body.business-dashboard-app .business-current-logo {
  margin-bottom: var(--space-2);
}

body.business-dashboard-app .business-logo-preview {
  display: block;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-input);
}

body.business-dashboard-app .business-current-logo .row-meta {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Business profile: current images strip */
body.business-dashboard-app .business-images-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

body.business-dashboard-app .business-image-thumb-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-input);
}

body.business-dashboard-app .business-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.business-dashboard-app .business-form .row-meta {
  margin-bottom: var(--space-2);
}

/* Business dashboard: section screens (less form-like, card-based) */
.business-dashboard-nav a.is-active {
  font-weight: 700;
  color: var(--brand-teal-700);
}

.business-screen {
  max-width: 720px;
  margin: 0 auto;
}

.business-screen-header {
  margin-bottom: var(--space-6);
}

.business-screen-header h1 {
  font-size: 1.75rem;
  margin: 0 0 var(--space-2) 0;
  color: var(--text-main);
}

.business-screen-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

.business-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.business-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  min-width: 100px;
  text-align: center;
}

.business-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-teal-700);
}

.business-stat-pill.success { color: var(--success-500); }
.business-stat-pill.warning { color: var(--warning-500); }

.business-stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.business-home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.business-home-cards-one-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  min-width: 0;
}

@media (max-width: 520px) {
  .business-home-cards-one-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: var(--space-2);
  }
}

.business-home-cards-one-row .business-home-card {
  min-height: 0;
  aspect-ratio: 1;
  padding: var(--space-4);
}

.business-home-cards-one-row .business-home-card-icon {
  font-size: 1.5rem;
}

.business-home-cards-one-row .business-home-card-title {
  font-size: var(--font-size-base);
}

.business-home-cards-one-row .business-home-card-desc {
  font-size: 0.75rem;
}

.business-home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-800));
  color: white;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 0;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
}

.business-home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.business-home-card-orange {
  background: linear-gradient(135deg, var(--brand-orange-500), var(--brand-orange-600));
}

.business-home-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.business-home-card-title {
  font-weight: 700;
  font-size: var(--font-size-lg);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

.business-home-card-desc {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin-top: 0.25rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .business-home-cards-one-row {
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }

  .business-home-cards-one-row .business-home-card {
    padding: var(--space-2);
  }

  .business-home-cards-one-row .business-home-card-icon {
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
  }

  .business-home-cards-one-row .business-home-card-title {
    font-size: 0.8125rem;
  }

  .business-home-cards-one-row .business-home-card-desc {
    font-size: 0.6875rem;
  }

  .business-home-card-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
  }

  .business-home-card-title {
    font-size: var(--font-size-base);
  }

  .business-home-card-desc {
    font-size: 0.75rem;
  }
}

@media (max-width: 520px) {
  .business-home-cards-one-row {
    margin-bottom: var(--space-4);
  }

  .business-home-cards-one-row .business-home-card {
    padding: var(--space-1) 2px;
  }

  .business-home-cards-one-row .business-home-card-icon {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .business-home-cards-one-row .business-home-card-title {
    font-size: 0.6875rem;
  }

  .business-home-cards-one-row .business-home-card-desc {
    font-size: 0.5625rem;
  }

  .business-home-card {
    padding: var(--space-3);
  }

  .business-home-card-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }

  .business-home-card-title {
    font-size: 0.8125rem;
  }

  .business-home-card-desc {
    font-size: 0.6875rem;
  }
}

.business-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.business-card-title {
  font-size: 1.1rem;
  margin: 0 0 var(--space-4) 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-default);
}

.business-field {
  margin-bottom: var(--space-4);
}

.business-field label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.business-field label em { color: var(--brand-orange-500); }

.business-field input,
.business-field select,
.business-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: var(--font-size-base);
}

.business-field input[type="file"] {
  padding: 0.4rem 0;
}

.business-field textarea {
  min-height: 80px;
  resize: vertical;
}

.business-form-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

.business-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.business-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-default);
}

.business-list-item:last-child { border-bottom: 0; }

.business-list-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.business-list-item-main .row-meta { font-size: 0.85rem; }

.business-list-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.business-screen-standalone .business-screen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.business-screen-standalone h1 { margin-top: 0; }

.business-dashboard-details {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.business-dashboard-details-main {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: flex-start;
}

.business-dashboard-logo {
  flex-shrink: 0;
}

.business-dashboard-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
}

.business-dashboard-info {
  flex: 1;
  min-width: 0;
}

.business-dashboard-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.35rem;
  color: var(--text-main);
}

.business-dashboard-category {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.business-dashboard-desc {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-main);
}

.business-dashboard-contact {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--font-size-sm);
}

.business-dashboard-contact p {
  margin: 0 0 0.35rem 0;
}

.business-dashboard-contact a {
  color: var(--brand-teal-700);
}

.business-dashboard-edit {
  margin: var(--space-3) 0 0 0;
}

.business-dashboard-images {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

.business-dashboard-images-title {
  margin: 0 0 var(--space-3) 0;
  font-size: 1rem;
}

.business-dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.business-dashboard-stat {
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .admin-listing-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

.detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.events-admin-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 1024px) {
  .events-admin-layout {
    grid-template-columns: 1fr;
  }
}

.events-admin-main {
  min-width: 0;
}

.events-admin-sidebar {
  position: sticky;
  top: calc(var(--space-2) + 60px);
}

.holidays-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.holidays-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-default);
  flex-wrap: wrap;
}

.holidays-list-item:last-child {
  border-bottom: 0;
}

.holidays-list-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.holidays-list-item-content .row-meta {
  font-size: 0.85rem;
}

.holidays-list-item-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.holiday-delete-form {
  display: inline;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

#event-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 560px;
  width: min(92vw, 560px);
}

#event-modal::backdrop {
  background: rgba(13, 18, 26, 0.58);
}

.app-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  border-radius: 1rem;
  width: min(92vw, 560px);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0;
}

.app-modal::backdrop {
  background: rgba(13, 18, 26, 0.58);
}

.app-modal form,
.app-modal .market-filter {
  background: var(--bg-card);
  color: var(--text-main);
  padding: var(--space-6);
}

.app-modal h2,
.app-modal h3,
.app-modal label,
.app-modal p,
.app-modal .row-meta,
.app-modal strong {
  color: var(--text-main);
}

.app-modal textarea,
.app-modal input,
.app-modal select {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-default);
}

.app-modal input::placeholder,
.app-modal textarea::placeholder {
  color: var(--text-muted);
}

/* Force visible text in light mode (super admin and all modals) */
html[data-theme='light'] .app-modal,
html[data-theme='light'] .app-modal form,
html[data-theme='light'] .app-modal .market-filter {
  background: var(--bg-card);
  color: var(--text-main);
}

html[data-theme='light'] .app-modal h2,
html[data-theme='light'] .app-modal h3,
html[data-theme='light'] .app-modal label,
html[data-theme='light'] .app-modal p,
html[data-theme='light'] .app-modal .row-meta,
html[data-theme='light'] .app-modal strong,
html[data-theme='light'] .app-modal span,
html[data-theme='light'] .app-modal div {
  color: #17212b;
}

html[data-theme='light'] .app-modal input,
html[data-theme='light'] .app-modal textarea,
html[data-theme='light'] .app-modal select {
  background: var(--bg-input);
  color: var(--text-main);
  border-color: var(--border-default);
}

html[data-theme='light'] .app-modal input::placeholder,
html[data-theme='light'] .app-modal textarea::placeholder {
  color: #526172;
}

/* Icon library picker (category modal) */
.icon-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 6px;
  max-width: 320px;
  max-height: 160px;
  overflow-y: auto;
  padding: 6px 0;
}

.icon-library-item {
  width: 36px;
  height: 36px;
  padding: 4px;
  border: 2px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.icon-library-item:hover {
  border-color: var(--brand-teal-500, #0d9488);
  background: color-mix(in srgb, var(--brand-teal-500, #0d9488) 10%, transparent);
}

.icon-library-item.is-selected {
  border-color: var(--brand-teal-600, #0f766e);
  background: color-mix(in srgb, var(--brand-teal-500, #0d9488) 18%, transparent);
}

.icon-library-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-theme='light'] .detail-panel {
  background: var(--bg-card);
  color: var(--text-main);
}

html[data-theme='light'] .detail-panel h2,
html[data-theme='light'] .detail-panel h3,
html[data-theme='light'] .detail-panel label,
html[data-theme='light'] .detail-panel p,
html[data-theme='light'] .detail-panel .row-meta,
html[data-theme='light'] .detail-panel strong {
  color: #17212b;
}

.detail-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 360px;
  object-fit: cover;
}

@media (min-width: 900px) {
  .design-top-grid {
    grid-template-columns: 1.2fr 1.6fr;
  }

  .market-shell {
    grid-template-columns: 280px 1fr;
  }

  .market-shell-mockup .market-feed {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* ----- Chat (Messenger/WhatsApp-style) ----- */
.messages-page .app-main {
  padding: 0;
  max-width: none;
}

@media (max-width: 768px) {
  body.messages-page.has-chat-thread .app-header,
  body.messages-page.has-chat-thread .mobile-menu-pull-tab {
    display: none !important;
  }

  body.messages-page.has-chat-thread {
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
  }
  body.messages-page.has-chat-thread .messages-main {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.messages-page.has-chat-thread .messages-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.messages-page.has-chat-thread .messages-thread {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.messages-page.has-chat-thread .chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

.messages-top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem var(--space-3);
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  min-height: 44px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
}

.messages-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--brand-orange-500);
  font-size: 1.5rem;
  font-weight: 300;
  text-decoration: none;
  line-height: 1;
  border-radius: 50%;
}

.messages-back:hover {
  background: var(--neutral-100);
}

html[data-theme='dark'] .messages-back:hover {
  background: rgba(255, 255, 255, 0.08);
}

.messages-top-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  background: var(--bg-page);
  overflow: hidden;
}

@media (max-width: 768px) {
  .messages-layout {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 48px);
    min-height: calc(100vh - 48px);
  }
  .messages-layout.has-thread .messages-sidebar {
    display: none;
  }
  .messages-layout .messages-thread:empty + .messages-sidebar,
  .messages-layout .messages-thread .messages-thread-empty {
    display: block;
  }
}

.messages-intro {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-card);
}

.messages-intro-compact {
  padding: var(--space-2) var(--space-3);
}

.messages-intro-compact .messages-intro-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.messages-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-sidebar .conv-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem var(--space-3);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-default);
  transition: background 0.15s ease;
  min-width: 0;
}

.conv-item .conv-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.conv-item .conv-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.conv-item .conv-listing-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item.is-active .conv-listing-meta {
  color: rgba(255, 255, 255, 0.9);
}

.conv-item.has-unread .conv-name {
  font-weight: 700;
}

.conv-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  vertical-align: middle;
  background: var(--brand-orange-500);
  border-radius: 50%;
}

.conv-unread-badge {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  color: #fff;
  background: var(--brand-orange-500);
  border-radius: 999px;
}

.conv-avatar,
.conv-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conv-avatar {
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-orange-500));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
}

.conv-avatar-img {
  object-fit: cover;
  display: block;
}


.conv-listing-thumb,
.conv-listing-thumb-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-input);
}

.conv-listing-thumb {
  object-fit: cover;
  display: block;
}

.conv-listing-thumb-placeholder {
  display: block;
}

@media (max-width: 768px) {
  .conv-item {
    padding: 0.45rem var(--space-3);
  }
  .conv-avatar,
  .conv-avatar-img {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .conv-listing-thumb,
  .conv-listing-thumb-placeholder {
    width: 32px;
    height: 32px;
  }
}

.conv-item:hover {
  background: var(--neutral-100, rgba(0, 0, 0, 0.04));
}

html[data-theme='dark'] .conv-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.conv-item.is-active {
  background: var(--brand-orange-500);
  color: #fff;
  border-bottom-color: var(--brand-orange-600);
}


.conv-item.is-active .conv-avatar {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.conv-sub-link {
  color: inherit;
  text-decoration: none;
}

.conv-sub-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .conv-item .conv-name { font-size: 0.8125rem; }
  .conv-item .conv-listing-meta { font-size: 0.7rem; }
}

.messages-thread {
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  overflow: hidden;
}

@media (max-width: 768px) {
  .messages-thread {
    min-height: calc(100dvh - 48px);
    min-height: calc(100vh - 48px);
  }
}

.messages-thread-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: var(--space-6);
  text-align: center;
  font-size: 0.9rem;
}

.messages-thread-empty a {
  color: var(--brand-orange-500);
  font-weight: 600;
}

@media (max-width: 768px) {
  .messages-thread-empty {
    padding: var(--space-4);
    font-size: 0.8125rem;
  }
}

.chat-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem var(--space-3);
  padding-top: calc(0.4rem + env(safe-area-inset-top, 0px));
  min-height: 44px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .chat-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.35rem var(--space-3);
    padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
    min-height: 48px;
    z-index: 50;
    flex-shrink: 0;
  }
  .messages-thread .chat-product-card {
    flex-shrink: 0;
  }
}

.chat-back {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange-500);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.chat-back:hover {
  background: var(--neutral-200);
}

html[data-theme='dark'] .chat-back:hover {
  background: var(--border-default);
}

.chat-header-avatar,
.chat-header-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-header-avatar {
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-orange-500));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
}

.chat-header-avatar-img {
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .chat-header-avatar,
  .chat-header-avatar-img {
    width: 34px;
    height: 34px;
  }
  .chat-header-avatar { font-size: 0.8rem; }
}

.chat-header-info {
  flex: 1;
  min-width: 0;
}

.chat-header-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.chat-header-sub {
  margin: 0.05rem 0 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .chat-header-name { font-size: 0.875rem; }
  .chat-header-sub { font-size: 0.65rem; }
}

.chat-header-avatar-link {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.chat-header-name a {
  color: inherit;
  text-decoration: none;
}

.chat-header-name a:hover {
  text-decoration: underline;
}

.chat-product-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem var(--space-3);
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-default);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.chat-product-card:hover {
  background: var(--neutral-100, rgba(0, 0, 0, 0.04));
}

.chat-product-card-img {
  width: 48px;
  height: 48px;
  border-radius: 0.4rem;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-product-card-body {
  flex: 1;
  min-width: 0;
}

.chat-product-card-title {
  display: block;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-product-card-price {
  font-size: 0.75rem;
  color: var(--brand-orange-500);
  font-weight: 700;
}

.chat-product-card-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .chat-messages {
    padding: 0.5rem var(--space-2);
    padding-top: 0.5rem;
    padding-bottom: 58px;
    gap: 0.2rem;
  }
}

.chat-msg-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.chat-msg-row.mine {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  line-height: 1.35;
  border-radius: 0.85rem;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .chat-bubble {
    padding: 0.35rem 0.6rem;
    font-size: 0.8125rem;
    border-radius: 0.75rem;
    max-width: 85%;
  }
}

.chat-msg-row .chat-bubble {
  border-bottom-right-radius: 0.25rem;
}

.chat-msg-row.mine .chat-bubble {
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  background: var(--brand-orange-500);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.chat-msg-row:not(.mine) .chat-bubble {
  background: var(--neutral-200);
  color: var(--text-main);
}

html[data-theme='dark'] .chat-msg-row:not(.mine) .chat-bubble {
  background: var(--border-default);
  color: var(--text-main);
}

.chat-bubble-text {
  margin: 0;
}

.chat-bubble-time {
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 0.15rem;
  text-align: right;
}

@media (max-width: 768px) {
  .chat-bubble-time { font-size: 0.6rem; margin-top: 0.1rem; }
}

.chat-msg-row.mine .chat-bubble-time {
  color: rgba(255, 255, 255, 0.9);
}

.chat-read-receipt {
  font-size: 0.6rem;
  opacity: 0.9;
  margin-left: 0.2rem;
}

/* Offer bubble: centered in chat */
.chat-offer-bubble {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0.5rem 0;
}

.chat-offer-inner {
  max-width: 90%;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--brand-teal-700), var(--brand-teal-800));
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.chat-offer-label {
  margin: 0 0 0.25rem 0;
  font-size: 0.75rem;
  opacity: 0.95;
}

.chat-offer-amount {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.chat-offer-message {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  opacity: 0.95;
  text-align: left;
}

.chat-offer-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.chat-offer-counter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 260px;
}

.chat-offer-counter input,
.chat-offer-counter textarea {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.875rem;
}

.chat-offer-counter input::placeholder,
.chat-offer-counter textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.chat-offer-status {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.95;
}

/* Rate seller dropdown at top of chat */
.chat-rate-seller-wrap {
  padding: 0.5rem var(--space-3);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
}

.chat-rate-seller-link {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, var(--brand-orange-500), var(--brand-orange-600));
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.chat-rate-seller-link:hover {
  color: #fff;
  opacity: 0.95;
}

.chat-rate-seller-toggle {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, var(--brand-orange-500), var(--brand-orange-600));
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}

.chat-rate-seller-dropdown {
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--bg-input);
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
}

.chat-rate-seller-dropdown .rate-stars {
  display: flex;
  gap: 0.25rem;
  margin: 0.25rem 0 0.5rem 0;
}

.chat-rate-seller-dropdown .rate-star {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--border-default);
  cursor: pointer;
  padding: 0;
}

.chat-rate-seller-dropdown .rate-star.active,
.chat-rate-seller-dropdown .rate-star:hover {
  color: var(--brand-orange-500);
}

.chat-rate-stars-label {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}

.chat-rate-seller-dropdown label {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.chat-rate-seller-dropdown textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-main);
  box-sizing: border-box;
}

.chat-rate-seller-dropdown button[type="submit"] {
  margin-top: 0.75rem;
}

/* Profile page: rate seller form (when linked from chat) */
.profile-rate-seller-section {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.profile-rate-seller-section h3 {
  margin: 0 0 var(--space-3);
  font-size: 1rem;
}

.profile-rate-form .rate-stars {
  display: flex;
  gap: 0.25rem;
  margin: 0.25rem 0 0.5rem 0;
}

.profile-rate-form .rate-star {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--border-default);
  cursor: pointer;
  padding: 0;
}

.profile-rate-form .rate-star.active,
.profile-rate-form .rate-star:hover {
  color: var(--brand-orange-500);
}

.profile-rate-stars-label {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}

.profile-rate-form label[for="profile-rate-comment"] {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.profile-rate-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-main);
  box-sizing: border-box;
}

.profile-rate-form button[type="submit"] {
  margin-top: 0.75rem;
}

.chat-input-bar {
  flex-shrink: 0;
  padding: 0.4rem var(--space-3);
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-card);
  border-top: 1px solid var(--border-default);
}

@media (max-width: 768px) {
  .chat-input-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.35rem var(--space-2);
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    transition: bottom 0.15s ease;
  }
}

.chat-input-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-input-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-default);
  border-radius: 1.25rem;
  font-size: 16px;
  font-size: max(16px, 0.875rem);
  background: var(--bg-input);
  color: var(--text-main);
}

@media (max-width: 768px) {
  .chat-input-form input {
    padding: 0.45rem 0.75rem;
  }
}

.chat-input-form input::placeholder {
  color: var(--text-muted);
}

.chat-input-form input:focus {
  outline: none;
  border-color: var(--brand-orange-500);
  box-shadow: 0 0 0 2px rgba(247, 148, 29, 0.2);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--brand-orange-500);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background 0.15s ease;
}

@media (max-width: 768px) {
  .chat-send-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

.chat-send-btn:hover {
  background: var(--brand-orange-600);
}

.chat-sidebar-empty,
.chat-sidebar-error {
  padding: var(--space-3);
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .chat-sidebar-empty,
  .chat-sidebar-error {
    padding: var(--space-2);
    font-size: 0.8125rem;
  }
}

.chat-sidebar-error.feedback-error {
  margin: 0;
}

.chat-sidebar-error a {
  color: var(--brand-orange-500);
}

/* SpiderByte floating badge (also has inline styles in partial for pages without this CSS) */
.spiderbyte-badge {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(20, 25, 35, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.spiderbyte-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.spiderbyte-badge-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.spiderbyte-badge-text {
  white-space: nowrap;
}

/* Light mode: black text on light background */
html[data-theme='light'] .spiderbyte-badge {
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a1a;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .spiderbyte-badge:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

/* Desktop: bigger badge */
@media (min-width: 768px) {
  .spiderbyte-badge {
    padding: 12px 20px;
    font-size: 15px;
    gap: 10px;
    bottom: 18px;
    left: 18px;
  }

  .spiderbyte-badge-icon {
    width: 24px;
    height: 24px;
  }
}
