@import url(
  'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap'
);

:root {
  --zaya-void: #030411;
  --zaya-deep: #070812;
  --zaya-panel: #0D0F20;
  --zaya-steel: #9AA0C4;
  --zaya-white: #EDEFF8;

  --zaya-violet: #A24DFF;
  --zaya-purple: #7C4DF5;
  --zaya-blue: #2F7BF5;
  --zaya-cyan: #16C7F2;

  --zaya-gradient:
    linear-gradient(
      118deg,
      #A24DFF 0%,
      #7C4DF5 34%,
      #2F7BF5 68%,
      #16C7F2 100%
    );

  --bg: #EDF0F8;
  --surface: #FFFFFF;
  --surface-sunken: #F5F6FC;
  --ink: #070812;
  --ink-soft: #464D69;
  --ink-faint: #737B9C;
  --line: #D8DCEB;

  --teal: #16C7F2;
  --teal-dark: #2F7BF5;
  --teal-wash: rgba(22, 199, 242, .12);

  --blue: #2F7BF5;
  --blue-wash: rgba(47, 123, 245, .12);

  --amber: #D59528;
  --amber-wash: rgba(213, 149, 40, .13);

  --green: #159A75;
  --green-wash: rgba(21, 154, 117, .12);

  --red: #DA4F70;
  --red-wash: rgba(218, 79, 112, .11);
  --red-wash-strong: rgba(218, 79, 112, .19);

  --slate-wash: #EEF0F8;
  --radius: 14px;

  --shadow:
    0 3px 8px rgba(7, 8, 18, .05),
    0 18px 42px rgba(7, 8, 18, .08);
}

body.dark-mode {
  --bg: #070812;
  --surface: #0D0F20;
  --surface-sunken: #080A18;
  --ink: #EDEFF8;
  --ink-soft: #C7CBE0;
  --ink-faint: #9AA0C4;
  --line: #252943;

  --teal-wash: rgba(22, 199, 242, .13);
  --blue-wash: rgba(47, 123, 245, .14);

  --amber: #E2A63C;
  --amber-wash: rgba(226, 166, 60, .13);

  --green: #4ED4A8;
  --green-wash: rgba(78, 212, 168, .12);

  --red: #FF718C;
  --red-wash: rgba(255, 113, 140, .11);
  --red-wash-strong: rgba(255, 113, 140, .19);

  --slate-wash: #16192D;

  --shadow:
    0 4px 12px rgba(0, 0, 0, .24),
    0 22px 58px rgba(0, 0, 0, .36);
}

html,
body,
button,
input,
select,
textarea {
  font-family:
    'Space Grotesk',
    system-ui,
    sans-serif !important;
}

body {
  min-height: 100vh;
  background-color: var(--bg) !important;
  background-image:
    linear-gradient(
      rgba(124, 77, 245, .035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(22, 199, 242, .03) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 8% 4%,
      rgba(162, 77, 255, .09),
      transparent 25rem
    ),
    radial-gradient(
      circle at 96% 12%,
      rgba(22, 199, 242, .07),
      transparent 25rem
    ) !important;
  background-size:
    56px 56px,
    56px 56px,
    auto,
    auto !important;
  background-attachment: fixed !important;
}

.app {
  max-width: 1480px !important;
  padding-top: 22px !important;
}

/* Header — dark brand surface in both modes */

.topbar {
  position: relative;
  padding: 13px 16px !important;
  border: 1px solid rgba(124, 77, 245, .30) !important;
  border-radius: 18px !important;
  background: rgba(7, 8, 18, .97) !important;
  box-shadow:
    0 18px 44px rgba(3, 4, 17, .20),
    inset 0 1px 0 rgba(237, 239, 248, .04) !important;
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--zaya-gradient);
}

/* Exact icon-only asset; small, square and never stretched */

.brand-mark {
  display: flex !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark img {
  display: block !important;
  width: 46px !important;
  height: 44px !important;
  max-width: 46px !important;
  max-height: 44px !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.brand h1 {
  margin: 0 !important;
  color: #EDEFF8 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
}

.brand p {
  margin-top: 3px !important;
  color: #9AA0C4 !important;
  font-size: 13px !important;
}

.topbar .btn-secondary,
.topbar .btn-ghost,
.topbar .theme-toggle,
.topbar #currentUserBadge {
  border: 1px solid rgba(154, 160, 196, .24) !important;
  background: rgba(13, 15, 32, .96) !important;
  color: #EDEFF8 !important;
}

.topbar .btn-secondary:hover,
.topbar .btn-ghost:hover,
.topbar .theme-toggle:hover {
  border-color: #16C7F2 !important;
  background: rgba(22, 199, 242, .09) !important;
}

/* Buttons */

.btn-primary,
button[type='submit'] {
  border: 0 !important;
  background: var(--zaya-gradient) !important;
  color: #030411 !important;
  font-weight: 700 !important;
  box-shadow:
    0 10px 25px rgba(47, 123, 245, .22),
    0 0 22px rgba(22, 199, 242, .08) !important;
}

.btn-primary:hover,
button[type='submit']:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-ghost,
.theme-toggle {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--ink-soft) !important;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  min-height: 42px;
  padding-inline: 16px !important;
  border-radius: 11px !important;
}

.theme-toggle {
  min-height: 42px;
  padding: 7px 12px !important;
  border-radius: 999px !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #16C7F2 !important;
  outline-offset: 2px !important;
}

/* Panels */

.dashboard-wrap,
.table-wrap,
.modal,
.login-card {
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow) !important;
}

.dashboard-wrap {
  position: relative;
  overflow: hidden;
  padding: 20px !important;
  background: var(--surface) !important;
}

.dashboard-wrap::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--zaya-gradient);
}

.dashboard-head h3,
.modal h3 {
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}

.stats {
  gap: 14px !important;
}

.stat-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  padding: 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 15px !important;
  background:
    linear-gradient(
      145deg,
      var(--surface-sunken),
      var(--surface)
    ) !important;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--zaya-gradient);
  opacity: .72;
}

.stat-card .num {
  margin-top: 4px;
  font-size: 29px !important;
  font-weight: 700 !important;
  letter-spacing: -.035em;
}

.stat-card .label,
thead th,
.detail-col h4,
.activity-item .meta,
.date-filter label,
.inline-date {
  font-family:
    'IBM Plex Mono',
    monospace !important;
}

.stat-card .label {
  margin-top: 7px !important;
  color: var(--ink-faint) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: .07em !important;
}

/* Inputs */

.controls {
  gap: 11px !important;
}

.controls input[type='text'],
.controls select,
.checkbox-filter summary,
.form-row input,
.form-row select,
.form-row textarea,
.add-activity-form input,
.add-activity-form select,
.add-activity-form textarea,
.date-filter input[type='date'],
.inline-date {
  min-height: 44px;
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

.controls input[type='text']:focus,
.controls select:focus,
.checkbox-filter[open] summary,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.add-activity-form input:focus,
.add-activity-form select:focus,
.add-activity-form textarea:focus {
  border-color: #16C7F2 !important;
  box-shadow:
    0 0 0 3px rgba(22, 199, 242, .11) !important;
}

.checkbox-panel {
  border: 1px solid var(--line) !important;
  border-radius: 13px !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
}

/* Table */

.table-wrap {
  overflow: hidden;
  background: var(--surface) !important;
}

thead th {
  height: 52px;
  padding-inline: 15px !important;
  color: #C5C9DD !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: .08em !important;
  background: #0D0F20 !important;
}

tbody tr.lead-row:hover {
  background: var(--teal-wash) !important;
  box-shadow: inset 3px 0 0 #16C7F2;
}

tbody td {
  padding-block: 14px !important;
}

.company,
.contact-cell .name {
  font-weight: 600 !important;
}

.contact-cell .sub,
.activity-item .meta {
  font-family:
    'IBM Plex Mono',
    monospace !important;
}

.detail-inner {
  background:
    linear-gradient(
      135deg,
      var(--surface-sunken),
      var(--surface)
    ) !important;
}

.activity-item,
.add-activity-form {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
}

/* Statuses */

.badge,
.reminder-chip,
.admin-state {
  font-family:
    'IBM Plex Mono',
    monospace !important;
  font-weight: 500 !important;
}

.cat-new {
  background: rgba(47, 123, 245, .13) !important;
  color: #2F7BF5 !important;
}

.cat-pending {
  background: rgba(162, 77, 255, .13) !important;
  color: #A24DFF !important;
}

.cat-positive {
  background: rgba(22, 199, 242, .13) !important;
  color: #0CAACD !important;
}

body.dark-mode .cat-positive {
  color: #16C7F2 !important;
}

.cat-negative {
  background: var(--red-wash) !important;
  color: var(--red) !important;
}

/* Login */

.modal-overlay {
  background: rgba(3, 4, 17, .82) !important;
  backdrop-filter: blur(11px);
}

.modal,
.login-card {
  border-color: rgba(124, 77, 245, .36) !important;
  background: var(--surface) !important;
}

.login-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.login-logo img {
  display: block !important;
  width: 142px !important;
  height: 142px !important;
  max-width: 142px !important;
  max-height: 142px !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 1px solid rgba(124, 77, 245, .46) !important;
  border-radius: 20px !important;
  background: #030411 !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .34),
    0 0 38px rgba(124, 77, 245, .12) !important;
}

/* Responsive */

@media (max-width: 900px) {
  .brand-mark {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
  }

  .brand-mark img {
    width: 44px !important;
    height: 42px !important;
  }

  .brand h1 {
    font-size: 21px !important;
  }
}

@media (max-width: 640px) {
  .app {
    padding-inline: 12px !important;
  }

  .topbar {
    padding: 12px !important;
    border-radius: 15px !important;
  }

  .brand-mark {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  .brand-mark img {
    width: 40px !important;
    height: 38px !important;
  }

  .brand h1 {
    font-size: 19px !important;
  }

  .brand p {
    font-size: 11.5px !important;
  }

  .dashboard-wrap {
    padding: 15px !important;
  }

  .stat-card {
    min-height: 106px;
    padding: 15px !important;
  }
}

/* ZAYA TOPBAR LAYOUT OVERRIDE START */

/*
 * Cleaner topbar layout:
 * - brand fixed on the left
 * - controls aligned to the right
 * - better spacing and button sizing
 */

.topbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
  row-gap: 16px !important;
  padding: 18px 22px !important;
}

.topbar > * {
  margin: 0 !important;
}

.topbar .brand {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 1 1 320px !important;
  min-width: 280px !important;
  margin-right: auto !important;
}

.brand-mark {
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
}

.brand-mark img {
  width: 50px !important;
  max-width: 50px !important;
  height: 48px !important;
  max-height: 48px !important;
}

.brand h1 {
  font-size: 23px !important;
  line-height: 1.05 !important;
}

.brand p {
  margin-top: 4px !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
}

/* Push all actions to the right after the brand */
#currentUserBadge {
  margin-left: auto !important;
}

/* Explicit visual order */
#currentUserBadge   { order: 10 !important; }
#notificationWrap   { order: 20 !important; }
#adminSettingsBtn   { order: 30 !important; }
#themeToggle        { order: 40 !important; }
#importBtn          { order: 50 !important; }
#exportBtn          { order: 60 !important; }
#addLeadBtn         { order: 70 !important; }
#logoutBtn          { order: 80 !important; }

#currentUserBadge,
#notificationWrap,
#adminSettingsBtn,
#themeToggle,
#importBtn,
#exportBtn,
#addLeadBtn,
#logoutBtn {
  flex: 0 0 auto !important;
}

#currentUserBadge,
#adminSettingsBtn,
#themeToggle,
#importBtn,
#exportBtn,
#logoutBtn {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border-radius: 14px !important;
  padding: 0 18px !important;
}

#currentUserBadge {
  font-weight: 600 !important;
  padding: 0 20px !important;
}

#notificationWrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#notificationBtn {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
}

#themeToggle {
  min-width: 138px !important;
}

#importBtn,
#exportBtn {
  min-width: 158px !important;
}

#addLeadBtn {
  min-height: 46px !important;
  min-width: 150px !important;
  padding: 0 22px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
}

#logoutBtn {
  min-width: 120px !important;
}

/* Slightly improve dashboard distance from the topbar */
.dashboard-wrap {
  margin-top: 2px !important;
}

/* Tablet */
@media (max-width: 1300px) {
  .topbar {
    gap: 12px !important;
    padding: 16px 18px !important;
  }

  .topbar .brand {
    flex-basis: 100% !important;
    min-width: 100% !important;
    margin-right: 0 !important;
  }

  #currentUserBadge {
    margin-left: 0 !important;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .topbar {
    padding: 14px !important;
    gap: 10px !important;
  }

  .topbar .brand {
    min-width: 100% !important;
    flex-basis: 100% !important;
  }

  #currentUserBadge,
  #adminSettingsBtn,
  #themeToggle,
  #importBtn,
  #exportBtn,
  #addLeadBtn,
  #logoutBtn {
    min-width: calc(50% - 6px) !important;
    flex: 1 1 calc(50% - 6px) !important;
  }

  #notificationWrap {
    flex: 0 0 auto !important;
  }

  #notificationBtn {
    width: 44px !important;
    min-width: 44px !important;
  }
}

@media (max-width: 560px) {
  .brand h1 {
    font-size: 20px !important;
  }

  .brand p {
    font-size: 11px !important;
  }

  #currentUserBadge,
  #adminSettingsBtn,
  #themeToggle,
  #importBtn,
  #exportBtn,
  #addLeadBtn,
  #logoutBtn {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* ZAYA TOPBAR LAYOUT OVERRIDE END */

/* ZAYA NOTIFICATION LAYER FIX START */

/*
 * Keep the notification menu above the dashboard and table.
 */

.topbar {
  position: relative !important;
  z-index: 5000 !important;
  overflow: visible !important;
  isolation: isolate !important;
}

#notificationWrap {
  position: relative !important;
  z-index: 5100 !important;
  overflow: visible !important;
}

/*
 * Support the current notification menu and common class/id names.
 */
#notificationWrap > div:not(.notification-badge),
#notificationDropdown,
#notificationPanel,
.notification-dropdown,
.notification-panel,
.notifications-dropdown,
.notifications-panel {
  position: absolute !important;

  top: calc(100% + 12px) !important;
  right: 0 !important;
  left: auto !important;

  width: min(380px, calc(100vw - 28px)) !important;
  min-width: 310px !important;
  max-height: min(520px, calc(100vh - 150px)) !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  z-index: 5200 !important;

  border:
    1px solid
    rgba(124, 77, 245, .38) !important;

  border-radius: 16px !important;

  background: var(--surface) !important;
  color: var(--ink) !important;

  box-shadow:
    0 22px 60px rgba(3, 4, 17, .30),
    0 0 0 1px rgba(22, 199, 242, .05) !important;
}

/*
 * Keep all CRM sections below the topbar notification menu.
 */
.dashboard-wrap,
.controls,
.table-wrap,
.modal-overlay {
  position: relative;
}

.dashboard-wrap,
.controls,
.table-wrap {
  z-index: 1 !important;
}

/*
 * The modal must still appear above everything when opened.
 */
.modal-overlay {
  z-index: 10000 !important;
}

/*
 * Improve notification placement on narrow screens.
 */
@media (max-width: 640px) {
  #notificationWrap > div:not(.notification-badge),
  #notificationDropdown,
  #notificationPanel,
  .notification-dropdown,
  .notification-panel,
  .notifications-dropdown,
  .notifications-panel {
    right: -72px !important;

    width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* ZAYA NOTIFICATION LAYER FIX END */

/* ZAYA NOTIFICATION VIEWPORT FIX START */

/*
 * Prevent the notification panel from being clipped by
 * the topbar, application wrapper, or dashboard panels.
 */

html,
body,
.app,
.topbar,
.topbar-actions,
.header-actions,
#notificationWrap {
  overflow: visible !important;
}

.app,
.topbar {
  contain: none !important;
}

.topbar {
  position: relative !important;
  z-index: 9000 !important;
}

#notificationWrap {
  position: relative !important;
  z-index: 9100 !important;
  isolation: auto !important;
}

/*
 * Notification dropdown.
 * Center it below the bell instead of aligning its right edge,
 * which previously pushed it against the left side of the screen.
 */

#notificationWrap > div:not(.notification-badge),
#notificationDropdown,
#notificationPanel,
.notification-dropdown,
.notification-panel,
.notifications-dropdown,
.notifications-panel {
  position: absolute !important;

  top: calc(100% + 14px) !important;
  left: 50% !important;
  right: auto !important;

  transform: translateX(-50%) !important;

  width: 380px !important;
  max-width: calc(100vw - 32px) !important;

  min-width: 320px !important;
  max-height: min(520px, calc(100vh - 180px)) !important;

  box-sizing: border-box !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  z-index: 9200 !important;

  border:
    1px solid
    rgba(124, 77, 245, .42) !important;

  border-radius: 16px !important;

  background: var(--surface) !important;
  color: var(--ink) !important;

  box-shadow:
    0 24px 70px rgba(3, 4, 17, .38),
    0 0 0 1px rgba(22, 199, 242, .06) !important;
}

/*
 * Ensure the dashboard and CRM content stay behind it.
 */

.dashboard-wrap,
.controls,
.table-wrap {
  position: relative !important;
  z-index: 1 !important;
}

.modal-overlay {
  z-index: 20000 !important;
}

/*
 * Keep dropdown contents inside the panel.
 */

#notificationWrap > div:not(.notification-badge) *,
#notificationDropdown *,
#notificationPanel *,
.notification-dropdown *,
.notification-panel *,
.notifications-dropdown *,
.notifications-panel * {
  box-sizing: border-box !important;
  max-width: 100%;
}

/*
 * Smaller displays: use almost the full viewport width.
 */

@media (max-width: 700px) {
  #notificationWrap > div:not(.notification-badge),
  #notificationDropdown,
  #notificationPanel,
  .notification-dropdown,
  .notification-panel,
  .notifications-dropdown,
  .notifications-panel {
    position: fixed !important;

    top: 150px !important;
    left: 12px !important;
    right: 12px !important;

    transform: none !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    max-height: calc(100vh - 170px) !important;
  }
}

/* ZAYA NOTIFICATION VIEWPORT FIX END */

/* ZAYA LOGIN REPAIR START */

.login-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 30000 !important;

  display: flex;
  align-items: center !important;
  justify-content: center !important;

  padding: 28px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;

  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(162, 77, 255, .24),
      transparent 34rem
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(22, 199, 242, .17),
      transparent 38rem
    ),
    linear-gradient(
      135deg,
      #030411 0%,
      #070812 52%,
      #061522 100%
    ) !important;
}

.login-shell {
  width: min(900px, 100%) !important;
  margin: auto !important;
}

.login-card {
  display: grid !important;
  grid-template-columns:
    minmax(300px, .9fr)
    minmax(360px, 1.1fr) !important;

  width: 100% !important;
  max-width: none !important;
  min-height: 560px !important;

  padding: 0 !important;
  overflow: hidden !important;

  border:
    1px solid
    rgba(124, 77, 245, .42) !important;

  border-radius: 24px !important;

  background: #0D0F20 !important;
  color: #EDEFF8 !important;

  box-shadow:
    0 36px 110px rgba(0, 0, 0, .56),
    0 0 0 1px rgba(22, 199, 242, .04),
    inset 0 1px 0 rgba(237, 239, 248, .04) !important;
}

.login-brand-panel {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 46px 40px;

  overflow: hidden;

  border-right:
    1px solid
    rgba(154, 160, 196, .16);

  background:
    linear-gradient(
      145deg,
      rgba(162, 77, 255, .13),
      transparent 48%
    ),
    linear-gradient(
      325deg,
      rgba(22, 199, 242, .10),
      transparent 44%
    ),
    #070812;
}

.login-brand-panel::before {
  content: '';

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(124, 77, 245, .055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(22, 199, 242, .045) 1px,
      transparent 1px
    );

  background-size: 42px 42px;
}

.login-brand-panel::after {
  content: '';

  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;

  height: 3px;

  border-radius: 999px;

  background:
    linear-gradient(
      118deg,
      #A24DFF 0%,
      #7C4DF5 34%,
      #2F7BF5 68%,
      #16C7F2 100%
    );
}

.login-logo {
  position: relative;
  z-index: 1;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 214px !important;
  height: 214px !important;

  margin: 0 auto 30px !important;
}

.login-logo img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;
  max-width: 214px !important;
  max-height: 214px !important;

  padding: 0 !important;

  object-fit: contain !important;
  object-position: center !important;

  border:
    1px solid
    rgba(124, 77, 245, .38) !important;

  border-radius: 24px !important;

  background: #030411 !important;

  box-shadow:
    0 22px 56px rgba(0, 0, 0, .42),
    0 0 42px rgba(124, 77, 245, .13) !important;
}

.login-brand-copy {
  position: relative;
  z-index: 1;

  max-width: 310px;

  text-align: center;
}

.login-eyebrow,
.login-form-kicker {
  font-family:
    'IBM Plex Mono',
    monospace !important;

  font-size: 10px;
  font-weight: 500;

  letter-spacing: .18em;

  color: #16C7F2;
}

.login-brand-copy h1 {
  margin: 13px 0 12px;

  font-family:
    'Space Grotesk',
    sans-serif;

  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;

  letter-spacing: -.035em;

  color: #EDEFF8;
}

.login-brand-copy p {
  margin: 0;

  color: #9AA0C4;

  font-size: 13px;
  line-height: 1.65;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 54px 52px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(47, 123, 245, .08),
      transparent 22rem
    ),
    #0D0F20;
}

.login-form-heading {
  margin-bottom: 30px;
}

.login-form-heading h2 {
  margin: 10px 0 7px;

  font-family:
    'Space Grotesk',
    sans-serif;

  font-size: 32px;
  font-weight: 700;

  letter-spacing: -.035em;

  color: #EDEFF8;
}

.login-form-heading p {
  margin: 0;

  color: #9AA0C4;

  font-size: 13px;
}

.login-field {
  margin-bottom: 18px;
}

.login-card .login-field label {
  display: block !important;

  margin: 0 0 7px !important;

  font-family:
    'IBM Plex Mono',
    monospace !important;

  color: #C7CBE0 !important;

  font-size: 10px !important;
  font-weight: 500 !important;

  letter-spacing: .07em !important;
  text-transform: uppercase;
}

.login-card .login-field input {
  display: block !important;

  width: 100% !important;
  height: 50px !important;

  box-sizing: border-box !important;

  margin: 0 !important;
  padding: 0 15px !important;

  border:
    1px solid
    #252943 !important;

  border-radius: 12px !important;

  background: #070812 !important;
  color: #EDEFF8 !important;

  font-family:
    'Space Grotesk',
    sans-serif !important;

  font-size: 14px !important;

  outline: none !important;

  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.login-card .login-field input::placeholder {
  color: #686F8E !important;
}

.login-card .login-field input:focus {
  border-color: #16C7F2 !important;

  background: #090B1A !important;

  box-shadow:
    0 0 0 3px rgba(22, 199, 242, .11),
    0 0 24px rgba(22, 199, 242, .05) !important;
}

.login-card .login-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  height: 50px !important;

  margin: 6px 0 0 !important;
  padding: 0 20px !important;

  border: 0 !important;
  border-radius: 12px !important;

  background:
    linear-gradient(
      118deg,
      #A24DFF 0%,
      #7C4DF5 34%,
      #2F7BF5 68%,
      #16C7F2 100%
    ) !important;

  color: #030411 !important;

  font-family:
    'Space Grotesk',
    sans-serif !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  cursor: pointer;

  box-shadow:
    0 12px 28px rgba(47, 123, 245, .25),
    0 0 24px rgba(22, 199, 242, .08) !important;
}

.login-card .login-submit:hover {
  filter: brightness(1.08);

  transform: translateY(-1px);
}

.login-error {
  min-height: 20px !important;

  margin-top: 12px !important;

  color: #FF718C !important;

  font-size: 12px !important;
  text-align: center;
}

.login-note {
  margin-top: 16px !important;

  color: #747B99 !important;

  font-family:
    'IBM Plex Mono',
    monospace !important;

  font-size: 9px !important;
  line-height: 1.5;

  letter-spacing: .05em;

  text-align: center !important;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .login-screen {
    align-items: flex-start !important;

    padding: 18px !important;
  }

  .login-card {
    grid-template-columns: 1fr !important;

    min-height: auto !important;
  }

  .login-brand-panel {
    padding: 30px 24px !important;

    border-right: 0 !important;
    border-bottom:
      1px solid
      rgba(154, 160, 196, .16);
  }

  .login-logo {
    width: 150px !important;
    height: 150px !important;

    margin-bottom: 20px !important;
  }

  .login-logo img {
    max-width: 150px !important;
    max-height: 150px !important;
  }

  .login-brand-copy h1 {
    font-size: 24px;
  }

  .login-form-panel {
    padding: 34px 26px !important;
  }

  .login-form-heading h2 {
    font-size: 27px;
  }
}

@media (max-width: 420px) {
  .login-screen {
    padding: 10px !important;
  }

  .login-card {
    border-radius: 18px !important;
  }

  .login-brand-panel {
    padding: 24px 18px !important;
  }

  .login-form-panel {
    padding: 28px 20px !important;
  }
}

/* ZAYA LOGIN REPAIR END */

/* ZAYA LOGIN SCROLLBAR FIX START */

/*
 * Remove the document scrollbar while the login overlay is open.
 */

html:has(body.login-active),
body.login-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/*
 * The login overlay can still scroll with the mouse wheel,
 * keyboard or touch on small screens, but no scrollbar is shown.
 */

.login-screen {
  overflow-x: hidden !important;
  overflow-y: auto !important;

  scrollbar-width: none !important;
  -ms-overflow-style: none !important;

  overscroll-behavior: contain !important;
}

.login-screen::-webkit-scrollbar {
  display: none !important;

  width: 0 !important;
  height: 0 !important;
}

.login-shell {
  max-height: calc(100dvh - 32px) !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.login-shell::-webkit-scrollbar {
  display: none !important;

  width: 0 !important;
  height: 0 !important;
}

/*
 * Fit the card better on shorter laptop screens.
 */

@media (min-width: 761px) and (max-height: 760px) {
  .login-screen {
    padding: 16px !important;
  }

  .login-card {
    min-height: calc(100dvh - 32px) !important;
  }

  .login-brand-panel {
    padding: 28px 32px !important;
  }

  .login-logo {
    width: 160px !important;
    height: 160px !important;

    margin-bottom: 18px !important;
  }

  .login-logo img {
    max-width: 160px !important;
    max-height: 160px !important;
  }

  .login-brand-copy h1 {
    font-size: 26px !important;
  }

  .login-form-panel {
    padding: 34px 44px !important;
  }

  .login-form-heading {
    margin-bottom: 22px !important;
  }
}

/* ZAYA LOGIN SCROLLBAR FIX END */

/* ZAYA TOPBAR ZOOM ALIGNMENT START */

/*
 * Browser zoom changes the effective CSS viewport width.
 * Keep the action row right-aligned whether the header uses
 * one row or wraps the brand onto a separate first row.
 */

.topbar {
  justify-content: flex-start !important;
}

/* Normal desktop: brand left, actions right. */
@media (min-width: 1301px) {
  .topbar .brand {
    flex: 1 1 320px !important;
    min-width: 280px !important;
    margin-right: 0 !important;
  }

  #currentUserBadge {
    margin-left: auto !important;
  }
}

/*
 * Medium desktop and browser zoom:
 * brand occupies the first row;
 * the user badge creates the flexible space that pushes
 * every following action to the right.
 */
@media (min-width: 821px) and (max-width: 1300px) {
  .topbar .brand {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    margin-right: 0 !important;
  }

  #currentUserBadge {
    margin-left: auto !important;
  }

  #currentUserBadge,
  #notificationWrap,
  #adminSettingsBtn,
  #themeToggle,
  #importBtn,
  #exportBtn,
  #addLeadBtn,
  #logoutBtn {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }
}

/*
 * If controls need to wrap at a narrower desktop width,
 * keep the important final actions visually grouped.
 */
@media (min-width: 821px) and (max-width: 1050px) {
  #currentUserBadge {
    margin-left: auto !important;
  }

  #importBtn,
  #exportBtn {
    min-width: 140px !important;
    padding-inline: 14px !important;
  }

  #addLeadBtn {
    min-width: 138px !important;
  }

  #logoutBtn {
    min-width: 106px !important;
  }
}

/* Mobile keeps the existing full-width responsive controls. */
@media (max-width: 820px) {
  #currentUserBadge {
    margin-left: 0 !important;
  }
}

/* ZAYA TOPBAR ZOOM ALIGNMENT END */

/* ZAYA SIMPLE LOGOUT ALIGNMENT START */

/*
 * Preserve the existing header layout.
 * Only consume the unused space after Log out by
 * positioning Log out at the far-right edge.
 */

@media (min-width: 821px) {
  #logoutBtn {
    margin-left: auto !important;
  }
}

/* ZAYA SIMPLE LOGOUT ALIGNMENT END */
