/* ConnectLocal + BusinessViewerApp Design System v1.0 */

/* ============================================================
   === TOKENS ===
   ============================================================ */

:root {
  /* Bootstrap overrides */
  --bs-primary: #222266;
  --bs-primary-rgb: 34, 34, 102;
  --bs-warning: #ff9933;
  --bs-warning-rgb: 255, 153, 51;
  --bs-link-color: #0000aa;
  --bs-heading-color: #111133;
  --bs-custom-font: 'Optimistic';
  --bs-body-font-family: var(--bs-custom-font), Montserrat, system-ui, -apple-system, sans-serif;
  --bs-body-color: #1f1f33;
  --bs-body-bg: #ffffff;

  /* Brand */
  --cl-primary: #222266;
  --cl-primary-dark: #111133;
  --cl-primary-light: #2d2a72;
  --cl-primary-link: #0000aa;
  --cl-accent: #ff9933;
  --cl-accent-dark: #f6a23b;
  --cl-success: #198754;
  --cl-danger: #dc3545;
  --cl-warning: #ff9933;

  /* Semantic */
  --cl-bg: #f0f1f5;
  --cl-bg-card: #ffffff;
  --cl-border: #e2e5ea;
  --cl-muted: #6c757d;
  --cl-sidebar-bg: #222266;
  --cl-sidebar-text: rgba(255, 255, 255, 0.80);
  --cl-sidebar-active-bg: rgba(255, 255, 255, 0.12);
  --cl-topbar-bg: #ffffff;
  --cl-topbar-border: #e2e5ea;

  /* Status */
  --cl-active: #198754;
  --cl-pending: #fd7e14;
  --cl-inactive: #6c757d;
  --cl-locked: rgba(0, 0, 0, 0.45);

  /* Layout */
  --mob-top-height: 3.5rem;
  --mob-bottom-nav-height: 56px;
  --cl-sidebar-width: 240px;
  --cl-topbar-height: 60px;
  --content-padding: 1.5rem;

  /* Radius */
  --cl-radius-input: 8px;
  --cl-radius-card: 14px;
  --cl-radius-pill: 50rem;
  --cl-radius-badge: 6px;

  /* Spacing */
  --cl-space-xs: 0.25rem;
  --cl-space-sm: 0.5rem;
  --cl-space-md: 1rem;
  --cl-space-lg: 1.5rem;
  --cl-space-xl: 2rem;
  --cl-space-2xl: 3rem;

  /* Shadows */
  --cl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --cl-shadow-card: 0 2px 8px rgba(34, 34, 102, 0.08);
  --cl-shadow-nav: 0 -2px 8px rgba(0, 0, 0, 0.06);
  --cl-shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.18);
  --cl-shadow-sidebar: 2px 0 12px rgba(34, 34, 102, 0.12);

  /* Animation */
  --cl-dur-fast: 150ms;
  --cl-dur-base: 250ms;
  --cl-dur-slow: 400ms;
  --cl-ease-default: ease-in-out;
  --cl-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --cl-z-sticky: 10;
  --cl-z-locked-gate: 10;
  --cl-z-sticky-nav: 1020;
  --cl-z-topbar: 1030;
  --cl-z-sidebar: 1040;
  --cl-z-offcanvas: 1045;
  --cl-z-modal: 1055;
  --cl-z-toast: 1090;
}

/* ============================================================
   === TYPOGRAPHY ===
   ============================================================ */

body {
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--bs-heading-color);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

.display-hero {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.fs-18 { font-size: 1.125rem; font-weight: 700; }
.fs-14 { font-size: 0.875rem; font-weight: 300; }
.fs-13 { font-size: 0.8125rem; }
.fs-12 { font-size: 0.75rem; }
.fs-11 { font-size: 0.6875rem; }

a {
  color: var(--bs-link-color);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Hover underline animation */
.hover-underline-animation {
  display: inline-block;
  position: relative;
  text-decoration: none;
}
.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--bs-primary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.hover-underline-animation.left::after { transform-origin: bottom left; }
.hover-underline-animation.left:hover::after { transform-origin: bottom right; }
.hover-underline-animation:hover { text-decoration: none; }

/* ============================================================
   === COMPONENTS — BUTTONS ===
   ============================================================ */

.btn {
  border-radius: var(--cl-radius-input);
  font-weight: 600;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
}
.btn-primary {
  background: var(--cl-primary);
  border-color: var(--cl-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--cl-primary-light);
  border-color: var(--cl-primary-light);
}
.btn-warning {
  background: var(--cl-accent);
  border-color: var(--cl-accent);
  color: #fff;
}
.btn-warning:hover {
  background: var(--cl-accent-dark);
  border-color: var(--cl-accent-dark);
  color: #fff;
}
.btn-outline-primary {
  border-color: var(--cl-primary);
  color: var(--cl-primary);
}
.btn-outline-primary:hover {
  background: var(--cl-primary);
  border-color: var(--cl-primary);
}

/* Filter button */
.filter-btn {
  background: var(--cl-primary-light);
  color: #fff;
  border: none;
  border-radius: 50rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.filter-btn:hover { opacity: 0.88; }
.filter-btn:active { transform: scale(0.97); }
.filter-btn.is-accent {
  background: var(--cl-accent);
}
.filter-btn.is-ghost {
  background: rgba(34, 34, 102, 0.06);
  color: var(--cl-primary);
}
.filter-btn.is-ghost:hover {
  background: rgba(34, 34, 102, 0.12);
  opacity: 1;
}

/* ============================================================
   === COMPONENTS — FORMS ===
   ============================================================ */

.form-control,
.form-select {
  border-radius: var(--cl-radius-input);
  border-color: var(--cl-border);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--cl-primary);
  box-shadow: 0 0 0 0.2rem rgba(34, 34, 102, 0.12);
}
.form-floating > .form-control,
.form-floating > .form-select {
  border-radius: var(--cl-radius-input);
}
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bs-heading-color);
  margin-bottom: 0.375rem;
}
.input-group .form-control { z-index: 1; }
#togglePassword {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--cl-muted);
  z-index: 10;
  user-select: none;
}
.font-monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.5rem;
}
.alt-select {
  border-radius: var(--cl-radius-input);
  border-color: var(--cl-border);
  background-image: none;
}
.dropdown-select { pointer-events: none; }

/* ============================================================
   === COMPONENTS — MOBILE NAV ===
   ============================================================ */

.nav-foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mob-bottom-nav-height);
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.nav-foot .nav-link {
  color: var(--bs-body-color);
  font-size: 0.7rem;
  text-align: center;
  padding: 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
  flex: 1;
  min-height: 44px;
  justify-content: center;
}
.nav-foot .nav-link.active,
.nav-foot .nav-link:hover { color: var(--cl-accent); }
.nav-foot .nav-link i { font-size: 1.25rem; }
.nav-foot .nav-link .dot {
  position: absolute;
  top: 4px;
  right: 50%;
  margin-right: -14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cl-accent);
}

.header-mob {
  position: sticky;
  top: 0;
  height: var(--mob-top-height);
  background: var(--bs-primary);
  z-index: 1020;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  gap: 0.75rem;
}
.header-mob .brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.header-mob .location-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  border: none;
}
.header-mob .icon-btn {
  background: rgba(255, 255, 255, 0.10);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.header-mob .icon-btn .dot-indicator {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cl-accent);
  border: 2px solid var(--bs-primary);
}

/* ============================================================
   === COMPONENTS — HERO SLIDER ===
   ============================================================ */

.hero-slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem;
}
.hero-slider::-webkit-scrollbar { display: none; }
.hero-slider .item {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: var(--cl-radius-card);
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.hero-slider .item img,
.hero-slider .item .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}
.hero-slider .caption h4 {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.hero-slider .caption p {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.9;
}

/* ============================================================
   === COMPONENTS — CATEGORY CAROUSEL ===
   ============================================================ */

.category-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.5rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.category-carousel::-webkit-scrollbar { display: none; }
.category-item {
  text-align: center;
  padding: 0.5rem 0.25rem;
  flex-shrink: 0;
  cursor: pointer;
  min-width: 72px;
}
.category-item .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 34, 102, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  transition: background 0.2s, transform 0.2s;
  color: var(--cl-primary);
  font-size: 1.4rem;
}
.category-item:hover .icon-wrap {
  background: rgba(255, 153, 51, 0.18);
  color: var(--cl-accent);
  transform: translateY(-2px);
}
.category-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-heading-color);
  line-height: 1.2;
  cursor: pointer;
}

/* ============================================================
   === COMPONENTS — CARDS ===
   ============================================================ */

.card {
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  background: var(--cl-bg-card);
}

.card.business-card,
.card.offer-card {
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  align-items: stretch;
  gap: 0;
  cursor: pointer;
}
.card.business-card:hover,
.card.offer-card:hover {
  box-shadow: 0 4px 16px rgba(34, 34, 102, 0.12);
  transform: translateY(-1px);
}
.card.business-card .thumb,
.card.offer-card .thumb {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  object-fit: cover;
}
.card.business-card .body,
.card.offer-card .body {
  padding: 0.75rem 0.875rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
}
.card.business-card .biz-name,
.card.offer-card .offer-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bs-heading-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.business-card .meta,
.card.offer-card .meta {
  font-size: 0.78rem;
  color: var(--cl-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card.business-card .meta .dot,
.card.offer-card .meta .dot {
  width: 3px;
  height: 3px;
  background: var(--cl-muted);
  border-radius: 50%;
}
.card.business-card .savings,
.card.offer-card .savings {
  color: var(--cl-success);
  font-weight: 700;
  font-size: 0.85rem;
}

.card.notification {
  border-radius: var(--cl-radius-card);
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  position: relative;
}
.card.notification.unread {
  border-left: 3px solid var(--cl-accent);
}
.card.notification .thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.card.notification .body { flex: 1; min-width: 0; }
.card.notification .body h6 {
  margin: 0 0 0.125rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.card.notification .body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cl-muted);
  line-height: 1.35;
}
.card.notification .body .ts {
  font-size: 0.7rem;
  color: var(--cl-muted);
  margin-top: 0.25rem;
  display: block;
}

/* ============================================================
   === COMPONENTS — LOCKED / GATE ===
   ============================================================ */

.card.blur,
.card.grayscale { position: relative; overflow: hidden; }
.card.blur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cl-locked);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.card.grayscale img,
.card.grayscale .img-placeholder { filter: grayscale(100%); }

.locked-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.locked-gate-overlay .lock-icon {
  font-size: 1.75rem;
  color: var(--cl-accent);
}
.locked-gate-overlay p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}
.locked-gate-overlay .btn { margin-top: 0.5rem; }

/* ============================================================
   === COMPONENTS — PROFILE BANNER ===
   ============================================================ */

.profile-banner {
  height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #111133;
  border-radius: var(--cl-radius-card) var(--cl-radius-card) 0 0;
  overflow: visible;
}
.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: inherit;
}
.profile-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: #fff;
}
.offer-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cl-accent-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50rem;
  z-index: 1;
}

/* ============================================================
   === COMPONENTS — OFFERS WRAP GRID ===
   ============================================================ */

.offersWrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.offersWrap .offer-tile {
  border-radius: 12px;
  border: 1px solid var(--cl-border);
  overflow: hidden;
  background: var(--cl-bg-card);
  position: relative;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.offersWrap .offer-tile:hover {
  box-shadow: 0 4px 12px rgba(34, 34, 102, 0.1);
}
.offersWrap .offer-tile .img-placeholder {
  aspect-ratio: 1;
  width: 100%;
}
.offersWrap .offer-tile .label {
  padding: 0.5rem 0.625rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bs-heading-color);
  line-height: 1.25;
}
.offersWrap .offer-tile .save {
  font-size: 0.7rem;
  color: var(--cl-success);
  font-weight: 700;
}

/* ============================================================
   === COMPONENTS — MAP ===
   ============================================================ */

.map-wrapper {
  height: calc(100vh - var(--mob-top-height));
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf2ee 0%, #d6e6df 100%);
}
.maps-over {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.maps-business {
  position: absolute;
  pointer-events: all;
  z-index: 3;
  background: #fff;
  border-radius: 50rem;
  padding: 0.25rem 0.625rem 0.25rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cl-primary);
  border: 1px solid var(--cl-border);
}
.maps-business .pin-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cl-primary);
}

/* ============================================================
   === COMPONENTS — EVENT CALENDAR ===
   ============================================================ */

.event-calendar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.5rem 0;
}
.event-calendar::-webkit-scrollbar { display: none; }
.event-calendar .item.tabs {
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  background: rgba(34, 34, 102, 0.06);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  color: var(--bs-heading-color);
  border: none;
}
.event-calendar .item.tabs:hover {
  background: rgba(34, 34, 102, 0.12);
}
.event-calendar .item.tabs.active {
  background: var(--bs-primary);
  color: #fff;
}
.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cl-accent);
  flex-shrink: 0;
}
.card-group.events-timeline {
  border-left: 3px solid var(--cl-accent);
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.event-row {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  padding: 0.625rem;
  border-radius: 12px;
  background: var(--cl-bg-card);
  border: 1px solid var(--cl-border);
}
.event-row .date-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bs-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}
.event-row .date-badge .day {
  font-size: 1.4rem;
  font-weight: 700;
}
.event-row .date-badge .mo {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}
.event-row .body { flex: 1; min-width: 0; }
.event-row .body h6 {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 700;
}
.event-row .body .meta {
  font-size: 0.78rem;
  color: var(--cl-muted);
}
.event-row .price-pill {
  background: rgba(25, 135, 84, 0.12);
  color: var(--cl-success);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
}

/* ============================================================
   === COMPONENTS — LOGIN / WIZARD ===
   ============================================================ */

.login-signup-card .login-card {
  max-width: 480px;
  width: 100%;
  border-radius: var(--cl-radius-card);
  box-shadow: var(--cl-shadow-card);
}
.login-signup-card .login-card .card-body {
  padding: 2rem 1.5rem;
}
h3.login {
  font-weight: 700;
  color: var(--bs-heading-color);
  margin-bottom: 1.5rem;
}
.step {
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: rgba(34, 34, 102, 0.2);
  transition: all 0.25s ease;
}
.step.active {
  background: var(--bs-primary);
  width: 24px;
  border-radius: 50rem;
}
.step.completed {
  background: var(--cl-success);
}
.tab { display: none; }
.tab.active { display: block; }

/* ============================================================
   === COMPONENTS — SUBSCRIPTION ===
   ============================================================ */

.subcribe_plan {
  padding: 0.625rem 0;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-bottom: 1px solid var(--cl-border);
}
.subcribe_plan:last-child { border-bottom: none; }
.subcribe_plan:hover { background: rgba(34, 34, 102, 0.03); }
.subcribe_plan input[type="radio"] {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--bs-primary);
  margin-left: auto;
}
.subcribe_plan .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(34, 34, 102, 0.08);
  color: var(--cl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.subcribe_plan .info { flex: 1; min-width: 0; }
.subcribe_plan .info .name { font-size: 1.125rem; font-weight: 700; margin: 0; }
.subcribe_plan .info .sub { font-size: 0.875rem; font-weight: 300; color: var(--cl-muted); }
.subcribe_plan.best-value {
  position: relative;
}
.subcribe_plan.best-value::after {
  content: 'BEST VALUE';
  position: absolute;
  top: 0.625rem;
  right: 2.25rem;
  background: var(--cl-accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 50rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   === COMPONENTS — SAVINGS / ECOM ===
   ============================================================ */

.my-saving {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  background: var(--cl-bg-card);
}
.my-saving .col {
  text-align: center;
  padding: 0.5rem;
}
.my-saving .col + .col { border-left: 1px solid var(--cl-border); }
.my-saving .metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cl-success);
  line-height: 1;
}
.my-saving .metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cl-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}
.ecom_amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--cl-success);
  line-height: 1;
  text-align: center;
}

/* ============================================================
   === COMPONENTS — OFFCANVAS ===
   ============================================================ */

.offcanvas {
  border-radius: var(--cl-radius-card) var(--cl-radius-card) 0 0;
  border: none;
}
.offcanvas-top {
  border-radius: 0 0 var(--cl-radius-card) var(--cl-radius-card);
}

.month-year-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 240px;
  overflow: hidden;
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  position: relative;
}
.month-year-picker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 48px;
  margin-top: -24px;
  background: rgba(34, 34, 102, 0.05);
  border-top: 1px solid var(--cl-border);
  border-bottom: 1px solid var(--cl-border);
  pointer-events: none;
}
.month-year-picker .col {
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 96px 0;
}
.month-year-picker .col::-webkit-scrollbar { display: none; }
.month-year-picker .col .item {
  scroll-snap-align: center;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--cl-muted);
}
.month-year-picker .col .item.selected {
  font-weight: 700;
  color: var(--bs-primary);
  font-size: 1.125rem;
}

/* ============================================================
   === COMPONENTS — BUSINESS LIST / ACCORDION ===
   ============================================================ */

.business-item {
  border-bottom: 1px solid var(--cl-border);
  padding: 0.875rem 0;
  cursor: pointer;
}
.business-item .row-main {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}
.business-item .toggle-arrow {
  transition: transform 0.25s ease-in-out;
  color: var(--cl-muted);
  margin-left: auto;
}
.business-item.open .toggle-arrow {
  transform: rotate(180deg);
}
.business-item .logo {
  width: 52px;
  height: 52px;
  border-radius: var(--cl-radius-card);
  object-fit: cover;
  flex-shrink: 0;
}
.business-item .info { flex: 1; min-width: 0; }
.business-item .info h6 {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.95rem;
}
.business-item .info .meta {
  font-size: 0.78rem;
  color: var(--cl-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.business-item .info .meta .badge {
  background: rgba(255, 153, 51, 0.16);
  color: var(--cl-accent);
  font-weight: 700;
}
.business-item .expanded {
  display: none;
  padding: 0.75rem 0 0;
}
.business-item.open .expanded { display: block; }

/* ============================================================
   === COMPONENTS — EVENT DETAIL PILLS ===
   ============================================================ */

.event-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.event-detail .detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 34, 102, 0.06);
  border-radius: 50rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-heading-color);
}
.event-detail .detail-item i {
  color: var(--bs-primary);
  font-size: 0.9rem;
}

/* ============================================================
   === DASHBOARD APP SHELL ===
   ============================================================ */

.dashboard-shell {
  display: flex;
  min-height: 100vh;
  background: var(--cl-bg);
}

.dashboard-sidebar {
  width: var(--cl-sidebar-width);
  flex-shrink: 0;
  background: var(--cl-sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1040;
  box-shadow: 2px 0 12px rgba(34, 34, 102, 0.12);
  transition: transform 0.3s ease;
}
.dashboard-sidebar .sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.dashboard-sidebar .sidebar-logo .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--cl-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-primary-dark);
  font-weight: 700;
}
.dashboard-sidebar .sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
}
.dashboard-sidebar .nav-section-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1.5rem 0.5rem;
}
.dashboard-sidebar .nav-item {
  position: relative;
  list-style: none;
}
.dashboard-sidebar .nav-item .nav-link {
  color: var(--cl-sidebar-text);
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  margin: 0.125rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}
.dashboard-sidebar .nav-item .nav-link:hover {
  background: var(--cl-sidebar-active-bg);
  color: #fff;
}
.dashboard-sidebar .nav-item .nav-link.active {
  background: var(--cl-sidebar-active-bg);
  color: #fff;
  font-weight: 700;
}
.dashboard-sidebar .nav-item .nav-link .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.dashboard-sidebar .nav-item .nav-link.active::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--cl-accent);
  border-radius: 0 3px 3px 0;
}
.dashboard-sidebar .nav-item .nav-link .badge {
  margin-left: auto;
  background: var(--cl-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}
.dashboard-sidebar .sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}
.dashboard-sidebar .sidebar-footer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.dashboard-topbar {
  height: var(--cl-topbar-height);
  background: var(--cl-topbar-bg);
  border-bottom: 1px solid var(--cl-topbar-border);
  position: fixed;
  top: 0;
  left: var(--cl-sidebar-width);
  right: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}
.dashboard-topbar .topbar-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bs-heading-color);
  margin: 0;
}
.dashboard-topbar .topbar-search {
  background: var(--cl-bg);
  border: 1px solid var(--cl-border);
  border-radius: 50rem;
  padding: 0.45rem 0.875rem 0.45rem 2.25rem;
  font-size: 0.85rem;
  width: 280px;
  max-width: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/></svg>");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  background-size: 14px;
}
.dashboard-topbar .topbar-search:focus {
  outline: none;
  border-color: var(--cl-primary);
  box-shadow: 0 0 0 3px rgba(34, 34, 102, 0.10);
}
.dashboard-topbar .topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-topbar .topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--cl-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.dashboard-topbar .topbar-icon-btn:hover {
  background: rgba(34, 34, 102, 0.06);
  color: var(--cl-primary);
}
.dashboard-topbar .topbar-icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  background: var(--cl-accent);
  border-radius: 50%;
  border: 2px solid #fff;
}
.dashboard-topbar .topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 50rem;
  cursor: pointer;
  transition: background 0.2s;
}
.dashboard-topbar .topbar-user:hover {
  background: rgba(34, 34, 102, 0.06);
}

.dashboard-content {
  margin-left: var(--cl-sidebar-width);
  margin-top: var(--cl-topbar-height);
  padding: var(--content-padding);
  min-height: calc(100vh - var(--cl-topbar-height));
  background: var(--cl-bg);
  flex: 1;
  width: calc(100% - var(--cl-sidebar-width));
}

/* Stat card */
.stat-card {
  background: var(--cl-bg-card);
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s;
}
.stat-card:hover {
  box-shadow: 0 4px 16px rgba(34, 34, 102, 0.10);
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 34, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bs-primary);
  flex-shrink: 0;
}
.stat-card .stat-icon.accent {
  background: rgba(255, 153, 51, 0.14);
  color: var(--cl-accent);
}
.stat-card .stat-icon.success {
  background: rgba(25, 135, 84, 0.12);
  color: var(--cl-success);
}
.stat-card .stat-icon.danger {
  background: rgba(220, 53, 69, 0.12);
  color: var(--cl-danger);
}
.stat-card .stat-body { flex: 1; min-width: 0; }
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--cl-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.stat-card .stat-change.up { color: var(--cl-active); }
.stat-card .stat-change.down { color: var(--bs-danger); }

/* Discovery card */
.discovery-card {
  background: var(--cl-bg-card);
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}
.discovery-card:hover {
  box-shadow: 0 6px 20px rgba(34, 34, 102, 0.12);
  transform: translateY(-2px);
}
.discovery-card .card-img-top {
  height: 140px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.discovery-card .save-btn {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: rgba(255, 255, 255, 0.94);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cl-muted);
  transition: all 0.2s;
  z-index: 2;
}
.discovery-card .save-btn:hover {
  color: var(--cl-accent);
  transform: scale(1.08);
}
.discovery-card .save-btn.saved { color: var(--cl-accent); }
.discovery-card .card-body { padding: 0.875rem 1rem; }
.discovery-card .business-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bs-heading-color);
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discovery-card .business-category {
  font-size: 0.78rem;
  color: var(--cl-muted);
}
.discovery-card .card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--cl-border);
}
.discovery-card .offer-count-badge {
  background: rgba(255, 153, 51, 0.14);
  color: var(--cl-accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 50rem;
}
.discovery-card .distance {
  font-size: 0.72rem;
  color: var(--cl-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Status badges */
.badge-active {
  background: rgba(25, 135, 84, 0.12);
  color: var(--cl-success);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.badge-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cl-success);
}
.badge-pending {
  background: rgba(253, 126, 20, 0.12);
  color: var(--cl-pending);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
}
.badge-inactive {
  background: rgba(108, 117, 125, 0.12);
  color: var(--cl-inactive);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
}

/* Dashboard tabs */
.dashboard-tabs {
  border-bottom: 2px solid var(--cl-border);
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }
.dashboard-tabs .tab-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cl-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.dashboard-tabs .tab-item:hover { color: var(--bs-primary); }
.dashboard-tabs .tab-item.active {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
}
.dashboard-tabs .tab-item .badge {
  margin-left: 0.375rem;
  background: rgba(34, 34, 102, 0.10);
  color: var(--cl-primary);
}
.dashboard-tabs .tab-item.active .badge {
  background: var(--cl-primary);
  color: #fff;
}

/* Wizard steps */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.wizard-steps .step-item {
  display: flex;
  align-items: center;
  flex: 1;
}
.wizard-steps .step-item:last-child { flex: 0; }
.wizard-steps .step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--cl-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cl-muted);
  flex-shrink: 0;
  transition: all 0.25s;
}
.wizard-steps .step-content {
  margin-left: 0.625rem;
  margin-right: 0.625rem;
}
.wizard-steps .step-content .step-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  line-height: 1.1;
}
.wizard-steps .step-content .step-sub {
  font-size: 0.7rem;
  color: var(--cl-muted);
}
.wizard-steps .step-item.active .step-circle {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34, 34, 102, 0.10);
}
.wizard-steps .step-item.completed .step-circle {
  border-color: var(--cl-active);
  background: var(--cl-active);
  color: #fff;
}
.wizard-steps .step-line {
  flex: 1;
  height: 2px;
  background: var(--cl-border);
  transition: background 0.2s;
  align-self: center;
}
.wizard-steps .step-line.completed { background: var(--cl-active); }

/* SignalR banner */
.signalr-banner {
  position: fixed;
  top: var(--cl-topbar-height);
  left: var(--cl-sidebar-width);
  right: 0;
  z-index: 1025;
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  color: #664d03;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.signalr-banner i { color: #ffc107; }
.signalr-banner.is-connected {
  background: #d1e7dd;
  border-color: #198754;
  color: #0a3622;
}
.signalr-banner.is-connected i { color: #198754; }

/* Dashboard table */
.dashboard-table {
  background: #fff;
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  overflow: hidden;
}
.dashboard-table .table { margin-bottom: 0; }
.dashboard-table .table thead th {
  background: rgba(34, 34, 102, 0.04);
  border-bottom: 2px solid var(--cl-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cl-muted);
  padding: 0.875rem 1rem;
}
.dashboard-table .table tbody td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--cl-border);
  vertical-align: middle;
}
.dashboard-table .table tbody tr:last-child td { border-bottom: none; }
.dashboard-table .table tbody tr:hover { background: rgba(34, 34, 102, 0.025); }

/* Avatars */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-placeholder {
  background: rgba(34, 34, 102, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-xl.avatar-placeholder { font-size: 1.75rem; }
.avatar-lg.avatar-placeholder { font-size: 1.25rem; }

/* Chip / Tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(34, 34, 102, 0.06);
  color: var(--cl-primary);
  border-radius: 50rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
  white-space: nowrap;
}
.chip:hover { background: rgba(34, 34, 102, 0.12); }
.chip.active {
  background: var(--bs-primary);
  color: #fff;
}
.chip i { font-size: 0.7rem; }

/* Section card (generic dashboard panel) */
.section-card {
  background: var(--cl-bg-card);
  border-radius: var(--cl-radius-card);
  border: 1px solid var(--cl-border);
  padding: 1.25rem;
}
.section-card .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-card .section-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.section-card .section-header .section-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cl-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Star rating */
.star-rating { display: inline-flex; gap: 2px; color: var(--cl-accent); font-size: 0.9rem; }
.star-rating .bi-star { color: var(--cl-border); }

/* SVG placeholder pattern */
.img-placeholder {
  background-color: #e9ebf0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(34, 34, 102, 0.04) 0,
    rgba(34, 34, 102, 0.04) 1px,
    transparent 1px,
    transparent 8px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.img-placeholder.cover {
  width: 100%;
  height: 100%;
}

/* Toggle switch */
.form-switch .form-check-input {
  background-color: var(--cl-border);
  border-color: var(--cl-border);
  cursor: pointer;
  width: 2.25rem;
  height: 1.25rem;
}
.form-switch .form-check-input:checked {
  background-color: var(--cl-primary);
  border-color: var(--cl-primary);
}

/* Progress bar */
.progress {
  height: 8px;
  border-radius: 50rem;
  background: rgba(34, 34, 102, 0.08);
}
.progress-bar { background: var(--cl-primary); }
.progress-bar.bg-accent { background: var(--cl-accent); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--cl-muted);
}
.empty-state .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 34, 102, 0.08);
  color: var(--cl-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.empty-state h6 {
  color: var(--bs-heading-color);
  margin-bottom: 0.375rem;
}
.empty-state p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

/* Status bar safe area */
.status-bar-safe-area {
  height: env(safe-area-inset-top);
  background: var(--bs-primary);
}

/* ============================================================
   === DARK THEME ===
   ============================================================ */

[data-bs-theme="dark"],
.theme-dark {
  --bs-body-bg: #0f0f1e;
  --bs-body-color: #e8e8f0;
  --bs-border-color: rgba(255, 255, 255, 0.10);
  --cl-bg: #13132a;
  --cl-bg-card: #1a1a35;
  --cl-border: rgba(255, 255, 255, 0.08);
  --cl-muted: rgba(255, 255, 255, 0.5);
  --cl-topbar-bg: #1a1a35;
  --cl-topbar-border: rgba(255, 255, 255, 0.08);
  --bs-heading-color: #e8e8f0;
  --bs-link-color: #7a9fff;
}

[data-bs-theme="dark"] body,
.theme-dark body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .discovery-card,
[data-bs-theme="dark"] .dashboard-table,
[data-bs-theme="dark"] .section-card,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .my-saving,
[data-bs-theme="dark"] .event-row,
.theme-dark .stat-card,
.theme-dark .discovery-card,
.theme-dark .dashboard-table,
.theme-dark .section-card,
.theme-dark .card,
.theme-dark .my-saving,
.theme-dark .event-row {
  background: var(--cl-bg-card);
  border-color: var(--cl-border);
}

[data-bs-theme="dark"] .dashboard-topbar,
.theme-dark .dashboard-topbar {
  background: var(--cl-topbar-bg);
  border-color: var(--cl-topbar-border);
}

[data-bs-theme="dark"] .dashboard-table .table thead th,
.theme-dark .dashboard-table .table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  border-color: var(--cl-border);
}

[data-bs-theme="dark"] .dashboard-table .table tbody td,
.theme-dark .dashboard-table .table tbody td {
  border-color: var(--cl-border);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .dashboard-table .table tbody tr:hover,
.theme-dark .dashboard-table .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

[data-bs-theme="dark"] .topbar-search,
.theme-dark .topbar-search {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--cl-border);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
.theme-dark .form-control,
.theme-dark .form-select {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--cl-border);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .img-placeholder,
.theme-dark .img-placeholder {
  background-color: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="dark"] .chip,
.theme-dark .chip {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

[data-bs-theme="dark"] .chip.active,
.theme-dark .chip.active {
  background: var(--bs-primary);
  color: #fff;
}

[data-bs-theme="dark"] .nav-foot,
.theme-dark .nav-foot {
  background: var(--cl-bg-card);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .nav-foot .nav-link,
.theme-dark .nav-foot .nav-link {
  color: var(--cl-muted);
}

[data-bs-theme="dark"] .dashboard-tabs,
.theme-dark .dashboard-tabs {
  border-bottom-color: var(--cl-border);
}

/* ============================================================
   === MOBILE / RESPONSIVE ===
   ============================================================ */

@media (max-width: 991.98px) {
  .dashboard-sidebar { transform: translateX(-100%); }
  .dashboard-sidebar.show { transform: translateX(0); }
  .dashboard-topbar,
  .dashboard-content {
    margin-left: 0;
    left: 0;
    width: 100%;
  }
  .signalr-banner {
    left: 0;
    top: var(--mob-top-height);
  }
  .dashboard-topbar .topbar-search { width: auto; flex: 1; max-width: 220px; }
}

@media (max-width: 575.98px) {
  .dashboard-topbar .topbar-search { display: none; }
  .dashboard-topbar { padding: 0 1rem; }
  .dashboard-content { padding: 1rem; }
}

/* Touch target minimum */
@media (pointer: coarse) {
  .nav-foot .nav-link,
  .chip,
  .filter-btn { min-height: 44px; }
}
