/* Badgetrac app design system — Django-native, no Metronic */

:root,
[data-bs-theme="light"] {
  --bt-brand-50: #eef2ff;
  --bt-brand-100: #e0e7ff;
  --bt-brand-200: #c7d2fe;
  --bt-brand-300: #a5b4fc;
  --bt-brand-400: #818cf8;
  --bt-brand-500: #6366f1;
  --bt-brand-600: #4f46e5;
  --bt-brand-700: #4338ca;
  --bt-brand-800: #3730a3;
  --bt-brand-900: #312e81;
  --bt-plum-100: #ede9fe;
  --bt-plum-200: #ddd6fe;
  --bt-plum-400: #a78bfa;
  --bt-plum-500: #8b5cf6;
  --bt-plum-600: #7c3aed;
  --bt-plum-700: #6d28d9;
  --bt-sky2-100: #cffafe;
  --bt-sky2-400: #22d3ee;
  --bt-sky2-500: #06b6d4;
  --bt-sky2-600: #0891b2;
  --bt-ink-900: #0b1020;
  --bt-ink-800: #111733;
  --bt-ink-700: #1b2247;
  --bt-sidebar-width: 240px;
  --bt-header-height: 64px;
  --bs-primary: var(--bt-brand-600);
  --bs-primary-rgb: 79, 70, 229;
  --bs-success: var(--bt-sky2-500);
  --bs-success-rgb: 6, 182, 212;
  --bs-warning: var(--bt-plum-500);
  --bs-warning-rgb: 139, 92, 246;
  --bs-dark: var(--bt-ink-900);
}

[data-bs-theme="dark"] {
  --bs-primary: var(--bt-brand-500);
  --bs-primary-rgb: 99, 102, 241;
  --bs-success: var(--bt-sky2-400);
  --bs-success-rgb: 34, 211, 238;
  --bs-warning: var(--bt-plum-400);
  --bs-warning-rgb: 167, 139, 250;
}

html, body {
  min-height: 100%;
}

body.bt-app {
  color: var(--bt-ink-900);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(99, 102, 241, 0.10), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(139, 92, 246, 0.08), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.06), transparent 32%),
    linear-gradient(180deg, var(--bt-brand-50) 0%, #ffffff 28%, var(--bt-brand-50) 100%);
}

[data-bs-theme="dark"] body.bt-app {
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 0%, rgba(99, 102, 241, 0.20), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(139, 92, 246, 0.15), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.10), transparent 32%),
    linear-gradient(180deg, var(--bt-ink-800) 0%, var(--bt-ink-900) 100%);
}

/* Header */
.bt-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--bt-header-height);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(199, 210, 254, 0.55);
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.08);
  backdrop-filter: blur(16px);
}

[data-bs-theme="dark"] .bt-header {
  background: rgba(17, 23, 51, 0.82);
  border-bottom-color: rgba(129, 140, 248, 0.20);
}

.bt-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bt-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.bt-sidebar-toggle svg {
  width: 16px;
  height: 16px;
}

.bt-logo img {
  height: 28px;
}

.bt-sidebar-toggle {
  color: var(--bt-ink-700);
  border-radius: 0.75rem !important;
  line-height: 0;
}

.bt-sidebar-toggle:hover,
.bt-sidebar-toggle:focus-visible {
  color: var(--bt-brand-700);
  background: rgba(99, 102, 241, 0.08) !important;
}

.bt-sidebar-toggle-icon {
  width: 1.35rem;
  height: 1.35rem;
}

[data-bs-theme="dark"] .bt-sidebar-toggle {
  color: #e2e8f0;
}

.bt-top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bt-top-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--bt-ink-700);
}

.bt-top-nav a:hover,
.bt-top-nav a.active {
  background: var(--bt-brand-50);
  color: var(--bt-brand-700);
}

[data-bs-theme="dark"] .bt-top-nav a {
  color: var(--bt-brand-100);
}

.bt-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  object-fit: cover;
  border: 1px solid rgba(199, 210, 254, 0.70);
}

/* Connection status pill (sponsor dashboard, etc.) */
.bt-connection-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.bt-connection-status--online {
  background: #dcfce7;
  color: #166534;
}

.bt-connection-status--offline {
  background: #fee2e2;
  color: #991b1b;
}

.bt-connection-status--syncing {
  background: #e0e7ff;
  color: #3730a3;
}

[data-bs-theme="dark"] .bt-connection-status--online {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

[data-bs-theme="dark"] .bt-connection-status--offline {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

/* Main layout */
.bt-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.bt-workspace {
  display: grid;
  grid-template-columns: var(--bt-sidebar-width) 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  /* Remove workspace wrapper from layout so the fixed drawer cannot reserve space */
  .bt-workspace {
    display: contents;
  }

  .bt-sidebar.bt-sidebar--drawer {
    position: fixed;
    top: var(--bt-header-height);
    left: 0;
    bottom: 0;
    z-index: 1040;
    width: min(18.75rem, 88vw);
    margin: 0;
    padding: 0.75rem;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    pointer-events: none;
  }

  .bt-sidebar--drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .bt-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(11, 16, 32, 0.42);
    backdrop-filter: blur(2px);
  }

  .bt-sidebar-backdrop[hidden] {
    display: none !important;
  }

  .bt-sidebar-card,
  .bt-sidebar-card--app,
  .bt-sidebar-card--compact {
    min-height: auto !important;
  }
}

@media (min-width: 992px) {
  .bt-sidebar.bt-sidebar--drawer {
    position: sticky;
    transform: none;
    pointer-events: auto;
  }
}

/* Sidebar */
.bt-sidebar {
  position: sticky;
  top: calc(var(--bt-header-height) + 1rem);
}

.bt-sidebar-card {
  padding: 1rem;
}

.bt-sidebar-card--app {
  min-height: calc(100vh - var(--bt-header-height) - 3rem);
}

.bt-sidebar-card--compact {
  min-height: auto;
}

.bt-sidebar-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.bt-sidebar-user-org {
  font-size: 0.8rem;
  color: var(--bt-brand-700);
  font-weight: 600;
  margin-top: 0.15rem;
}

.bt-sidebar-user-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.2rem;
}

[data-bs-theme="dark"] .bt-sidebar-user-org {
  color: var(--bt-brand-300);
}

.bt-nav-sub .bt-nav-recent {
  padding: 0.45rem 0.65rem 0.45rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  gap: 0.5rem;
}

.bt-nav-sub .bt-nav-recent:hover {
  color: var(--bt-brand-700);
  background: rgba(99, 102, 241, 0.06);
}

.bt-nav-recent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bt-brand-400);
  flex-shrink: 0;
  margin-top: 0.35rem;
  align-self: flex-start;
}

.bt-nav-recent-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bt-nav-recent-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-nav-recent-meta {
  font-size: 0.7rem;
  color: #94a3b8;
}

.bt-nav-list li a {
  position: relative;
}

.bt-nav-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.bt-nav-badge--ok {
  background: rgba(6, 182, 212, 0.15);
  color: var(--bt-sky2-600);
}

.bt-nav-badge--warn {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.bt-nav-badge--muted {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.bt-nav-list--compact li a {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.bt-sidebar-footer {
  border-top: 1px solid rgba(199, 210, 254, 0.45);
}

[data-bs-theme="dark"] .bt-sidebar-footer {
  border-top-color: rgba(129, 140, 248, 0.16);
}

.bt-profile-section {
  scroll-margin-top: 6rem;
}

.bt-sidebar-event {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(199, 210, 254, 0.45);
}

.bt-sidebar-event-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.bt-sidebar-event-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.bt-sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

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

.bt-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.15rem;
}

.bt-nav-list li a:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--bt-brand-700);
}

.bt-nav-list li a.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.10));
  color: var(--bt-brand-700);
}

[data-bs-theme="dark"] .bt-nav-list li a {
  color: #cbd5e1;
}

.bt-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

/* Surfaces — avoid isolation here so Bootstrap modals stack above body backdrops */
.bt-surface {
  position: relative;
}

.glass-card {
  overflow: visible;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 242, 255, 0.74) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(199, 210, 254, 0.58);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px -42px rgba(79, 70, 229, 0.34), 0 10px 24px rgba(11, 16, 32, 0.04);
}

[data-bs-theme="dark"] .glass-card {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(17, 23, 51, 0.88) 0%, rgba(11, 16, 32, 0.92) 100%);
  border-color: rgba(129, 140, 248, 0.16);
}

.gradient-hero {
  border: none;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--bt-brand-600) 0%, var(--bt-plum-600) 55%, var(--bt-sky2-600) 100%);
  box-shadow: 0 24px 60px -30px rgba(79, 70, 229, 0.55);
}

/* Page header */
.bt-page-header {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.bt-page-header--compact {
  padding: 1.1rem 1.2rem;
}

.bt-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.bt-page-header-actions .btn-primary {
  min-width: 160px;
}

.bt-page-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.bt-page-header-stat {
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(199, 210, 254, 0.56);
}

.bt-page-header-stat-value {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.bt-page-header-stat-label {
  font-size: 0.72rem;
  color: #64748b;
}

.bt-sponsor-scan-banner {
  padding: 1rem 1.1rem;
}

.bt-sponsor-scan-banner-copy {
  min-width: 0;
}

.bt-sponsor-scan-banner .btn-primary {
  min-width: 180px;
}

.bt-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

/* Metric cards */
.metric-card .fs-2hx,
.metric-card .metric-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.overview-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overview-icon svg {
  width: 28px;
  height: 28px;
}

.overview-icon--rose { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
.overview-icon--plum { background: rgba(139, 92, 246, 0.12); color: var(--bt-plum-600); }
.overview-icon--amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.overview-icon--coral { background: rgba(251, 113, 133, 0.12); color: #f43f5e; }
.overview-icon--ink { background: rgba(15, 23, 42, 0.10); color: var(--bt-ink-800); }
.overview-icon--sky { background: rgba(6, 182, 212, 0.12); color: var(--bt-sky2-600); }

/* Event cards grid */
.bt-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.bt-event-card {
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px -38px rgba(79, 70, 229, 0.42);
}

.bt-event-avatar {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
}

.bt-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.bt-status-badge--paid {
  background: rgba(6, 182, 212, 0.15);
  color: var(--bt-sky2-600);
}

.bt-status-badge--free {
  background: rgba(139, 92, 246, 0.12);
  color: var(--bt-plum-700);
}

/* Buttons */
.btn {
  border-radius: 999px;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bt-brand-500) 0%, var(--bt-brand-600) 48%, var(--bt-plum-500) 100%);
  box-shadow: 0 10px 24px -16px rgba(79, 70, 229, 0.72);
}

.btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bt-brand-600) 0%, var(--bt-brand-700) 48%, var(--bt-plum-600) 100%);
}

.btn-success {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bt-sky2-500) 0%, var(--bt-brand-500) 100%);
}

.btn-light {
  border-color: rgba(199, 210, 254, 0.72);
  background: rgba(255, 255, 255, 0.82);
  color: var(--bt-ink-700);
}

/* Tables */
.bt-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(199, 210, 254, 0.42);
}

.bt-table-wrap {
  padding: 0 1.25rem 1.25rem;
}

/* Charts */
.bt-chart-card {
  padding: 1.25rem;
}

.bt-chart-wrap {
  position: relative;
  height: 260px;
}

.bt-chart-wrap--sm {
  height: 200px;
}

/* Footer */
.bt-footer {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 1rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Lead status tags */
.bt-lead-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.bt-lead-tag--hot { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.bt-lead-tag--qualified { background: rgba(6, 182, 212, 0.15); color: var(--bt-sky2-600); }
.bt-lead-tag--cold { background: rgba(100, 116, 139, 0.14); color: #475569; }
.bt-lead-tag--followup { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.bt-lead-tag--none { background: rgba(100, 116, 139, 0.12); color: #64748b; }

.bt-lead-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.bt-lead-tag-picker .bt-lead-tag {
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.bt-lead-tag-picker .bt-lead-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px -14px rgba(11, 16, 32, 0.45);
}

.bt-lead-tag-picker .bt-lead-tag.is-active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.bt-lead-note-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.2;
}

.bt-lead-note-btn--no-note {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.28);
  color: var(--bt-brand-700);
}

.bt-lead-note-btn--has-note {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--bt-sky2-600);
}

.bt-lead-note-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.bt-lead-note-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.bt-lead-note-dot--empty {
  background: #cbd5e1;
}

/* Attendee table — keep layout stable when rows load */
#attendees_table {
  table-layout: fixed;
  width: 100%;
}

#attendees_table [data-col="select"] {
  width: 2rem;
}

#attendees_table [data-col="actions"] {
  width: 9.5rem;
}

#attendees_table tbody td > .bt-cell-label {
  display: none;
}

#attendees_table tbody td {
  font-weight: 400;
}

#attendees_table tbody td > .bt-cell-value {
  font-size: inherit;
  font-weight: 400;
  margin-bottom: 0 !important;
  overflow-wrap: anywhere;
}

#attendees_table [data-col="actions"] .btn {
  white-space: nowrap;
}

#attendees_table [data-col="actions"] .btn span {
  display: inline;
}

/* Sponsor leads — mobile-friendly layout */
@media (max-width: 767.98px) {
  .bt-sponsor-page .bt-page-header {
    padding: 1rem 1.1rem;
  }

  .bt-sponsor-page .bt-page-header h1 {
    font-size: 1.35rem;
  }

  .bt-sponsor-page .bt-page-header .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bt-sponsor-leads-table thead {
    display: none;
  }

  .bt-sponsor-leads-table,
  .bt-sponsor-leads-table tbody,
  .bt-sponsor-leads-table tr,
  .bt-sponsor-leads-table td {
    display: block;
    width: 100%;
  }

  .bt-sponsor-leads-table tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(199, 210, 254, 0.42);
  }

  .bt-sponsor-leads-table tr:last-child {
    border-bottom: 0;
  }

  .bt-sponsor-leads-table td {
    padding: 0.35rem 0;
    border: 0;
    text-align: left !important;
  }

  .bt-sponsor-leads-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.2rem;
  }

  .bt-sponsor-leads-table td[data-label=""]::before {
    display: none;
  }

  #editNoteModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    align-items: flex-start;
  }

  #editNoteModal .modal-content {
    min-height: 100dvh;
    border-radius: 0;
  }

  #scan_modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100%;
  }

  #scan_modal .modal-content {
    min-height: 100dvh;
    border-radius: 0;
  }
}

.bt-lead-note-dot--filled {
  background: var(--bt-sky2-500);
}

.bt-roi-list {
  display: grid;
  gap: 0.9rem;
}

.bt-roi-item {
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(199, 210, 254, 0.5);
  background: rgba(255, 255, 255, 0.58);
}

[data-bs-theme="dark"] .bt-roi-item {
  border-color: rgba(129, 140, 248, 0.18);
  background: rgba(17, 23, 51, 0.72);
}

.bt-roi-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.bt-roi-item-name {
  font-weight: 700;
}

.bt-roi-item-meta {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #64748b;
}

.bt-roi-item-note {
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.9rem;
}

.ls-1 { letter-spacing: 0.06em; }
.text-white-75 { color: rgba(255, 255, 255, 0.78) !important; }
.hover-elevate-up { transition: transform 0.15s ease; }
.hover-elevate-up:hover { transform: translateY(-3px); }

.border-bottom-dashed {
  border-bottom: 1px dashed rgba(199, 210, 254, 0.55) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bt-brand-300);
  box-shadow: 0 0 0 .25rem rgba(99, 102, 241, 0.16);
}

.modal {
  z-index: 1055;
}

.modal-backdrop {
  z-index: 1050;
}

.modal-content {
  border-radius: 1.25rem;
  border: 1px solid rgba(199, 210, 254, 0.52);
  pointer-events: auto;
}

.modal-dialog {
  pointer-events: none;
}

.modal-dialog .modal-content {
  pointer-events: auto;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

/* App polish */
body.bt-app,
body.bt-auth {
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

body.bt-app::selection,
body.bt-auth::selection {
  background: rgba(99, 102, 241, 0.22);
}

body.bt-app a,
body.bt-auth a {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.bt-app h1,
body.bt-app h2,
body.bt-app h3,
body.bt-app h4,
body.bt-auth h1,
body.bt-auth h2,
body.bt-auth h3,
body.bt-auth h4 {
  letter-spacing: -0.035em;
}

body.bt-app .text-muted,
body.bt-app .text-gray-500,
body.bt-app .text-gray-600,
body.bt-app .text-gray-400 {
  color: #64748b !important;
}

body.bt-app .text-gray-700,
body.bt-app .text-gray-800 {
  color: var(--bt-ink-700) !important;
}

body.bt-app .text-hover-primary:hover {
  color: var(--bt-brand-700) !important;
}

[data-bs-theme="dark"] body.bt-app .text-muted,
[data-bs-theme="dark"] body.bt-app .text-gray-500,
[data-bs-theme="dark"] body.bt-app .text-gray-600,
[data-bs-theme="dark"] body.bt-app .text-gray-400 {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] body.bt-app .text-gray-700,
[data-bs-theme="dark"] body.bt-app .text-gray-800 {
  color: #e2e8f0 !important;
}

body.bt-app .card {
  border: 1px solid rgba(199, 210, 254, 0.52);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px -42px rgba(79, 70, 229, 0.22), 0 10px 24px rgba(11, 16, 32, 0.03);
}

[data-bs-theme="dark"] body.bt-app .card {
  border-color: rgba(129, 140, 248, 0.18);
  background: rgba(17, 23, 51, 0.8);
}

.bt-user-menu-toggle {
  padding: 0.25rem !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 255, 0.72)) !important;
  box-shadow: 0 14px 34px -28px rgba(79, 70, 229, 0.65);
}

[data-bs-theme="dark"] .bt-user-menu-toggle {
  background: linear-gradient(180deg, rgba(27, 34, 71, 0.86), rgba(17, 23, 51, 0.82)) !important;
}

.bt-user-avatar {
  border-radius: 0.95rem;
  box-shadow: 0 10px 24px -18px rgba(79, 70, 229, 0.66);
}

.bt-sidebar-card {
  padding: 1.1rem;
}

.bt-sidebar-section-label,
.bt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(199, 210, 254, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-bs-theme="dark"] .bt-sidebar-section-label,
[data-bs-theme="dark"] .bt-eyebrow {
  background: rgba(17, 23, 51, 0.8);
  border-color: rgba(129, 140, 248, 0.22);
}

.bt-page-header {
  position: relative;
  overflow: hidden;
}

.bt-page-header::after,
.gradient-hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.gradient-hero {
  position: relative;
  overflow: hidden;
}

.gradient-hero .card-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
}

.gradient-hero .text-uppercase {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.bt-events-grid {
  gap: 1.35rem;
}

.bt-event-card {
  border-radius: 1.5rem;
}

.bt-event-card .btn {
  box-shadow: none;
}

body.bt-app .btn,
body.bt-auth .btn {
  --bs-btn-padding-x: 1.05rem;
  --bs-btn-padding-y: 0.68rem;
  --bs-btn-font-weight: 700;
  border-radius: 999px;
  border-width: 1px;
  box-shadow: 0 14px 32px -24px rgba(79, 70, 229, 0.8);
}

body.bt-app .btn-sm,
body.bt-auth .btn-sm {
  --bs-btn-padding-x: 0.82rem;
  --bs-btn-padding-y: 0.48rem;
  font-size: 0.82rem;
}

body.bt-app .btn:hover,
body.bt-auth .btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-success,
.btn-warning,
.btn-dark,
.btn-danger {
  border-color: transparent;
}

.btn-success {
  background: linear-gradient(135deg, var(--bt-sky2-500) 0%, var(--bt-brand-500) 100%);
}

.btn-warning {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #fb7185 100%);
  box-shadow: 0 14px 28px -22px rgba(245, 158, 11, 0.9);
}

.btn-warning:hover,
.btn-warning:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #d97706 0%, #f43f5e 100%);
}

.btn-dark {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  box-shadow: 0 14px 28px -22px rgba(17, 24, 39, 0.88);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 14px 28px -22px rgba(225, 29, 72, 0.85);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
}

.btn-light,
.btn-light-danger {
  color: var(--bt-ink-700);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(199, 210, 254, 0.82);
  box-shadow: none;
}

.btn-light:hover,
.btn-light:focus-visible,
.btn-light-danger:hover,
.btn-light-danger:focus-visible {
  color: var(--bt-brand-700);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(165, 180, 252, 0.9);
}

.btn-light-danger {
  color: #be123c;
  background: rgba(255, 241, 242, 0.86);
  border-color: rgba(251, 113, 133, 0.24);
}

.btn-disabled,
.btn:disabled,
.btn.disabled {
  opacity: 0.56;
  pointer-events: none;
  box-shadow: none;
}

body.bt-app .dropdown-menu,
body.bt-auth .dropdown-menu {
  padding: 0.55rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(199, 210, 254, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px -36px rgba(11, 16, 32, 0.32);
  backdrop-filter: blur(18px);
}

body.bt-app .dropdown-item,
body.bt-auth .dropdown-item {
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: var(--bt-ink-700);
}

body.bt-app .dropdown-item:hover,
body.bt-app .dropdown-item:focus,
body.bt-auth .dropdown-item:hover,
body.bt-auth .dropdown-item:focus {
  color: var(--bt-brand-700);
  background: rgba(99, 102, 241, 0.08);
}

[data-bs-theme="dark"] body.bt-app .dropdown-menu,
[data-bs-theme="dark"] body.bt-auth .dropdown-menu {
  background: rgba(17, 23, 51, 0.92);
  border-color: rgba(129, 140, 248, 0.22);
}

[data-bs-theme="dark"] body.bt-app .dropdown-item,
[data-bs-theme="dark"] body.bt-auth .dropdown-item {
  color: #e2e8f0;
}

body.bt-app .form-control,
body.bt-app .form-select,
body.bt-auth .form-control,
body.bt-auth .form-select {
  min-height: 3rem;
  border-radius: 1rem;
  border-color: rgba(199, 210, 254, 0.78);
  background: rgba(255, 255, 255, 0.86);
  color: var(--bt-ink-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.bt-app .form-control::placeholder,
body.bt-auth .form-control::placeholder {
  color: #94a3b8;
}

body.bt-app .form-control-solid,
body.bt-auth .form-control-solid {
  background: rgba(248, 250, 255, 0.92);
}

body.bt-app textarea.form-control,
body.bt-auth textarea.form-control {
  min-height: 7rem;
}

[data-bs-theme="dark"] body.bt-app .form-control,
[data-bs-theme="dark"] body.bt-app .form-select,
[data-bs-theme="dark"] body.bt-auth .form-control,
[data-bs-theme="dark"] body.bt-auth .form-select {
  background: rgba(11, 16, 32, 0.78);
  border-color: rgba(71, 85, 105, 0.78);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] body.bt-app .form-control::placeholder,
[data-bs-theme="dark"] body.bt-auth .form-control::placeholder {
  color: #64748b;
}

body.bt-app .form-label,
body.bt-auth .form-label {
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #475569;
}

[data-bs-theme="dark"] body.bt-app .form-label,
[data-bs-theme="dark"] body.bt-auth .form-label {
  color: #cbd5e1;
}

body.bt-app .form-check-input,
body.bt-auth .form-check-input {
  border-color: rgba(165, 180, 252, 0.88);
}

body.bt-app .form-check-input:checked,
body.bt-auth .form-check-input:checked {
  background-color: var(--bt-brand-600);
  border-color: var(--bt-brand-600);
}

body.bt-app .input-group > .btn,
body.bt-auth .input-group > .btn {
  box-shadow: none;
}

body.bt-app .alert,
body.bt-auth .alert {
  border-radius: 1.3rem;
  border: 1px solid transparent;
}

body.bt-app .alert-warning,
body.bt-auth .alert-warning {
  color: #9a3412;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95), rgba(255, 237, 213, 0.96));
  border-color: rgba(251, 146, 60, 0.22);
}

[data-bs-theme="dark"] body.bt-app .alert-warning,
[data-bs-theme="dark"] body.bt-auth .alert-warning {
  color: #fed7aa;
  background: rgba(124, 45, 18, 0.55);
  border-color: rgba(251, 146, 60, 0.25);
}

body.bt-app .progress,
body.bt-auth .progress {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

body.bt-app .progress-bar,
body.bt-auth .progress-bar {
  border-radius: 999px;
}

body.bt-app .badge,
body.bt-app .bt-status-badge,
body.bt-auth .badge {
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-weight: 700;
}

.badge-light-success {
  color: var(--bt-sky2-600);
  background: rgba(6, 182, 212, 0.14);
}

.badge-light-danger {
  color: #be123c;
  background: rgba(251, 113, 133, 0.16);
}

body.bt-app .table,
body.bt-auth .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(248, 250, 255, 0.68);
  --bs-table-hover-bg: rgba(99, 102, 241, 0.05);
  margin-bottom: 0;
}

body.bt-app .table-responsive,
body.bt-auth .table-responsive {
  border: 1px solid rgba(199, 210, 254, 0.42);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.54);
}

body.bt-app .table > :not(caption) > * > *,
body.bt-auth .table > :not(caption) > * > * {
  padding: 0.95rem 1rem;
  border-bottom-color: rgba(199, 210, 254, 0.35);
  vertical-align: middle;
}

body.bt-app .table > thead,
body.bt-auth .table > thead {
  background: rgba(99, 102, 241, 0.05);
}

body.bt-app .table > thead th,
body.bt-auth .table > thead th {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.table-row-dashed > :not(caption) > * > * {
  border-bottom-style: dashed;
}

.attendee-sort {
  color: inherit;
}

body.bt-app .modal-content,
body.bt-auth .modal-content {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.95) 100%);
  box-shadow: 0 34px 80px -42px rgba(11, 16, 32, 0.42);
}

#scan_modal .modal-dialog {
  max-width: min(960px, calc(100vw - 2rem));
}

#scan_modal .modal-content {
  overflow: hidden;
}

#scan_modal .modal-body {
  padding: 1rem;
}

#reader {
  min-height: 360px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.06);
}

#reader video,
#reader img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

#reader > div,
#reader__scan_region,
#reader__dashboard_section {
  max-width: 100% !important;
}

[data-bs-theme="dark"] body.bt-app .modal-content,
[data-bs-theme="dark"] body.bt-auth .modal-content {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(17, 23, 51, 0.96) 0%, rgba(11, 16, 32, 0.95) 100%);
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 210, 254, 0), rgba(199, 210, 254, 0.95), rgba(199, 210, 254, 0));
}

.symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.symbol-100px {
  width: 100px;
  height: 100px;
}

.symbol-lg-120px {
  width: 120px;
  height: 120px;
}

.symbol-label {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(199, 210, 254, 0.7);
  box-shadow: 0 24px 42px -32px rgba(79, 70, 229, 0.48);
}

.password-toggle-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  font-style: normal;
  font-size: 0.72rem !important;
  font-weight: 800;
  line-height: 1;
}

.password-toggle-btn i::before {
  content: "Show";
}

.password-toggle-btn i.ki-eye::before,
.password-toggle-btn i.ki-duotone.ki-eye::before {
  content: "Hide";
}

[data-kt-indicator="on"] .indicator-label {
  display: none !important;
}

.indicator-progress {
  display: none;
}

[data-kt-indicator="on"] .indicator-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.fv-plugins-message-container {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #dc2626;
}

/* Auth surfaces */
body.bt-auth {
  color: var(--bt-ink-900);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(99, 102, 241, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(139, 92, 246, 0.14), transparent 28%),
    radial-gradient(circle at 48% 100%, rgba(6, 182, 212, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f8ff 0%, #ffffff 28%, #f4f7ff 100%);
}

[data-bs-theme="dark"] body.bt-auth {
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 0%, rgba(99, 102, 241, 0.24), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(139, 92, 246, 0.2), transparent 28%),
    radial-gradient(circle at 48% 100%, rgba(6, 182, 212, 0.12), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #0b1020 100%);
}

.bt-auth-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
}

.bt-auth-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.bt-auth-brand img {
  height: 30px;
  width: auto;
}

.bt-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 1.5rem;
  align-items: stretch;
}

.bt-auth-hero,
.bt-auth-panel {
  padding: clamp(1.5rem, 2vw, 2rem);
}

.bt-auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
}

.bt-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(199, 210, 254, 0.64);
  background: rgba(255, 255, 255, 0.72);
  color: var(--bt-brand-700);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

[data-bs-theme="dark"] .bt-auth-kicker {
  background: rgba(17, 23, 51, 0.82);
  border-color: rgba(129, 140, 248, 0.24);
  color: var(--bt-brand-100);
}

.bt-auth-title {
  max-width: 12ch;
  margin: 1.1rem 0 0.8rem;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
}

.bt-auth-title .accent {
  background-image: linear-gradient(135deg, var(--bt-brand-600) 0%, var(--bt-plum-600) 55%, var(--bt-sky2-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bt-auth-copy {
  max-width: 38rem;
  margin: 0;
  font-size: 1.02rem;
  color: #475569;
}

[data-bs-theme="dark"] .bt-auth-copy {
  color: #cbd5e1;
}

.bt-auth-points {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.bt-auth-point {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #475569;
}

[data-bs-theme="dark"] .bt-auth-point {
  color: #cbd5e1;
}

.bt-auth-point-icon {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--bt-brand-700);
}

.bt-auth-point-icon svg {
  width: 0.8rem;
  height: 0.8rem;
}

.bt-auth-visual {
  position: relative;
  margin-top: 2rem;
  border-radius: 2rem;
}

.bt-auth-visual img {
  display: block;
  width: 100%;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 34px 72px -44px rgba(79, 70, 229, 0.66);
}

.bt-auth-floating-card {
  position: absolute;
  z-index: 1;
  width: min(240px, 42%);
  padding: 0.95rem 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(199, 210, 254, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 54px -34px rgba(11, 16, 32, 0.3);
  backdrop-filter: blur(16px);
}

.bt-auth-floating-card--top {
  top: -1rem;
  left: -0.8rem;
}

.bt-auth-floating-card--bottom {
  right: -0.5rem;
  bottom: 1.25rem;
}

[data-bs-theme="dark"] .bt-auth-floating-card {
  background: rgba(17, 23, 51, 0.92);
  border-color: rgba(129, 140, 248, 0.22);
}

.bt-auth-floating-label {
  display: inline-flex;
  margin-bottom: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #b45309;
  font-size: 0.7rem;
  font-weight: 800;
}

.bt-auth-floating-card strong {
  display: block;
  font-size: 1.3rem;
}

.bt-auth-floating-card span,
.bt-auth-floating-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.bt-auth-panel {
  display: flex;
  align-items: flex-start;
}

.bt-auth-form-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.bt-auth-form-header {
  margin-bottom: 1.5rem;
}

.bt-auth-form-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
}

.bt-auth-form-copy {
  margin: 0;
  color: #64748b;
}

[data-bs-theme="dark"] .bt-auth-form-copy {
  color: #94a3b8;
}

.bt-auth-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bt-auth-helper {
  color: #64748b;
  font-size: 0.9rem;
}

[data-bs-theme="dark"] .bt-auth-helper {
  color: #94a3b8;
}

.bt-auth-meter [data-kt-password-meter-control="highlight"] {
  display: flex;
  gap: 0.55rem;
  margin: 0.85rem 0 0.65rem;
}

.bt-auth-meter [data-kt-password-meter-control="highlight"] > div {
  flex: 1;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
}

.bt-auth-meter [data-kt-password-meter-control="highlight"] > div.active {
  background: linear-gradient(135deg, var(--bt-brand-500), var(--bt-plum-500));
}

.bt-auth-legal {
  margin-top: 1.2rem;
  text-align: center;
  color: #64748b;
}

.bt-auth-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.92rem;
  color: #64748b;
}

[data-bs-theme="dark"] .bt-auth-footer {
  color: #94a3b8;
}

.bt-auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.bt-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  z-index: 2;
}

.bt-auth-note {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(199, 210, 254, 0.58);
  background: rgba(248, 250, 255, 0.82);
}

[data-bs-theme="dark"] .bt-auth-note {
  background: rgba(17, 23, 51, 0.84);
  border-color: rgba(129, 140, 248, 0.2);
}

body.bt-auth .link-primary,
body.bt-app .link-primary {
  color: var(--bt-brand-700) !important;
  text-decoration: none;
}

body.bt-auth .link-primary:hover,
body.bt-app .link-primary:hover {
  color: var(--bt-plum-600) !important;
}

@media (max-width: 991.98px) {
  .bt-auth-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .bt-auth-panel {
    order: -1;
  }

  .bt-auth-hero {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .bt-main {
    padding: 1rem;
  }

  .bt-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 0.9rem;
    gap: 0.6rem;
  }

  .bt-sidebar-toggle {
    display: inline-flex;
    justify-self: start;
    min-width: 2.5rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .bt-sidebar-toggle span {
    display: none;
  }

  .bt-logo {
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .bt-header .dropdown {
    justify-self: end;
    margin-left: 0 !important;
  }

  .bt-logo img {
    height: 24px;
  }

  .bt-page-header {
    padding: 1rem;
  }

  .bt-page-header .h2 {
    font-size: 1.35rem;
  }

  .bt-page-header-actions,
  .bt-page-header-actions .btn,
  .bt-sponsor-scan-banner .btn {
    width: 100%;
  }

  .bt-page-header-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-page-header-stat {
    width: 100%;
  }

  .bt-chart-wrap {
    height: 220px;
  }

  .bt-table-toolbar,
  .bt-table-wrap {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .bt-sidebar--drawer {
    display: block !important;
  }

  #scan_modal .modal-dialog {
    max-width: 100vw;
    margin: 0;
    height: 100dvh;
  }

  #scan_modal .modal-content {
    min-height: 100dvh;
    border-radius: 0;
  }

  #scan_modal .modal-header,
  #scan_modal .modal-footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  #scan_modal .modal-body {
    padding: 0.75rem;
  }

  #reader {
    min-height: calc(100dvh - 9rem);
    border-radius: 1.1rem;
  }

  .bt-auth-shell {
    padding: 1rem 1rem 1.5rem;
  }

  .bt-auth-hero,
  .bt-auth-panel {
    padding: 1.15rem;
  }

  .bt-auth-inline {
    grid-template-columns: 1fr;
  }

  .bt-auth-floating-card {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
  }

  .bt-auth-footer {
    flex-direction: column;
  }
}
