:root {
  --bg: #060816;
  --bg2: #0b1022;
  --panel: rgba(14, 20, 40, 0.90);
  --line: rgba(255, 255, 255, 0.07);   /* neutral white hairline — no blue tint */
  --text: #f4f7ff;
  --muted: #aab7d6;
  --cyan: #55d6ff;
  --violet: #8f6bff;
  --pink: #db7bff;
  --radius: 24px;
  --radius-sm: 18px;
  /* No ambient glow — keeps panels crisp and avoids the heavy halo effect */
  --glow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(85, 214, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(143, 107, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #05070f 0%, #08101f 52%, #060816 100%);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.12));
  opacity: 0.35;
}

/* ── Shared surface base ──────────────────────────────────────────────────────
   site-shell and auth-card keep backdrop-filter for their floating-card effect
   on marketing / login pages. Dashboard surfaces use a solid dark background
   instead — no blur, no glow — for a crisp modern look. */
.site-shell,
.auth-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12,20,48,0.80), rgba(6,11,28,0.85));
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.panel-card,
.dashboard-sidebar,
.dashboard-main {
  position: relative;
  border: 1px solid var(--line);
  /* Solid dark surface — no blur or glow so cards read as flat and clean */
  background: rgba(11,17,36,0.95);
  box-shadow: none;
}

.site-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto 0;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  border-top: none;
}

/* Decorative tinted overlay — only on the marketing shell and auth card.
   Removed from panel-cards and the sidebar so dashboard surfaces stay clean. */
.site-shell::after,
.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(85,214,255,0.05), transparent 40%, rgba(219,123,255,0.05));
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(85,214,255,0.18), rgba(143,107,255,0.18));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
/* Keep the graph mark crisp and centered inside the shared brand chip. */
.brand-mark-icon {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}
/* Inline variant for the mobile dashboard title where the icon sits inside text. */
.brand-mark-inline {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 8px;
  object-fit: contain;
}
.brand-title { font-size: 15px; letter-spacing: 0.02em; }
.brand-subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #dce8ff;
  background: rgba(85, 214, 255, 0.08);
  border: 1px solid rgba(85, 214, 255, 0.18);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 16px rgba(85, 214, 255, 0.55);
}
.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #99e5ff 38%, #c69cff 72%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy { max-width: 620px; line-height: 1.7; }

.btn-gradient {
  color: #08101f;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));
  border: none;
  box-shadow: 0 12px 30px rgba(120, 120, 255, 0.25);
  font-weight: 700;
}
.btn-gradient:hover,
.btn-gradient:focus {
  color: #08101f;
  transform: translateY(-1px);
}

.feature-card,
.panel-card {
  padding: 1.1rem;
  border-radius: 12px;   /* down from 20px — sharper, more modern */
  background: rgba(255,255,255,0.04);
}
.feature-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}
.feature-card span,
.panel-card p,
.panel-card li {
  color: var(--muted);
  line-height: 1.55;
}

.visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.glow-orb {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 35%, rgba(85, 214, 255, 0.28), transparent 26%),
    radial-gradient(circle at 72% 30%, rgba(219, 123, 255, 0.22), transparent 28%),
    radial-gradient(circle at 55% 72%, rgba(143, 107, 255, 0.18), transparent 34%);
  filter: blur(24px);
}
.image-card {
  position: relative;
  width: min(100%, 500px);
  border-radius: 30px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(16,22,44,0.75), rgba(8,12,28,0.78));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 26px 60px rgba(0,0,0,0.4);
}
.image-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a1020;
}
.floating-note {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(10, 16, 34, 0.84);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dbe7ff;
}
.floating-note small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── Marketing feature tiles ─────────────────────────────────────────────────
   Used on the home page feature showcase. Each tile has a frosted glass
   background, a subtle gradient border on hover, and a colored icon circle. */
.ncl-feature-tile {
  padding: 1.6rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.ncl-feature-tile:hover {
  border-color: rgba(85,214,255,0.22);
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
}
.ncl-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
/* Bullet list inside feature tiles — clean, no disc, subtle check marks */
.ncl-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ncl-feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.ncl-feature-list li::before {
  content: "\2713"; /* ✓ check mark */
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
}
/* Small card inside a feature tile — used for sub-features (calendar, campaigns) */
.ncl-mini-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  height: 100%;
}
.ncl-mini-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--text);
}
.ncl-mini-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
/* Small tags for integrations / platforms */
.ncl-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
}
/* Industry tags — slightly larger, pill shape */
.ncl-industry-tag {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(85,214,255,0.06);
  border: 1px solid rgba(85,214,255,0.15);
  color: #c0e8ff;
  transition: background 0.2s, border-color 0.2s;
}
.ncl-industry-tag:hover {
  background: rgba(85,214,255,0.12);
  border-color: rgba(85,214,255,0.3);
}
/* CTA banner — full width gradient border glow */
.ncl-cta-banner {
  padding: 3rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(85,214,255,0.06), rgba(143,107,255,0.06), rgba(219,123,255,0.06));
  border: 1px solid rgba(85,214,255,0.18);
  position: relative;
  overflow: hidden;
}
.ncl-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 0%, rgba(85,214,255,0.12), transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(219,123,255,0.10), transparent 60%);
}

.auth-page,
.dashboard-page { position: relative; z-index: 1; }
.auth-card {
  max-width: 520px;
  padding: 2rem;
  border-radius: 18px;   /* down from 28px */
}
.auth-card.wide { max-width: 760px; }

.dashboard-sidebar {
  min-height: 100vh;
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.07);
  background: rgba(8,13,28,0.98);  /* slightly darker than panels for contrast */
}
.dashboard-main {
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.dashboard-nav .list-group-item {
  background: transparent;
  color: rgba(170,183,214,0.75);
  /* Subtle left accent line — transparent on inactive, coloured on hover/active */
  border: none;
  border-left: 2px solid transparent;
  border-radius: 8px !important;
  margin-bottom: 3px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.dashboard-nav .list-group-item:hover {
  background: rgba(255,255,255,0.05);
  color: #f4f7ff;
  border-left-color: rgba(85,214,255,0.35);
}
.dashboard-nav .list-group-item.active {
  background: rgba(85,214,255,0.1);
  color: #55d6ff;
  border-left-color: #55d6ff;
  font-weight: 600;
}

.form-control-dark,
.form-select-dark {
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;   /* sharper than 14px */
}
.form-control-dark:focus,
.form-select-dark:focus {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(85,214,255,0.45);
  box-shadow: 0 0 0 0.2rem rgba(85,214,255,0.12);
}
.form-control-dark::placeholder { color: #8fa1c8; }
.form-select-dark option { color: black; }

.lead-list .list-group-item:hover {
  background: rgba(255,255,255,0.06) !important;
}
.conversation-list {
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.message-bubble {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.message-bubble.outbound { background: rgba(85,214,255,0.09); }
.message-bubble.system { background: rgba(143,107,255,0.10); }
.letter-spaced { letter-spacing: 0.14em; }

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255,255,255,0.08);
}

@media (max-width: 991.98px) {
  .site-shell { width: min(1180px, calc(100% - 16px)); margin: 0 auto; border-radius: 0 0 28px 28px; }
  .visual-wrap { min-height: auto; }
  .dashboard-sidebar { min-height: auto; }
}

/* ─── Mobile dashboard nav ────────────────────────────────────────────────────
   On screens < 992px the sidebar column is hidden and replaced by:
     • A sticky top bar with the org name + hamburger button
     • An off-canvas drawer that slides in from the left when the burger is tapped
     • A semi-transparent backdrop that closes the drawer when tapped
   The main content stretches to full width.
   On desktop (≥992px) everything is hidden/reset so the normal sidebar layout takes over.
*/

/* Top bar — only visible on mobile */
.dash-mobile-topbar {
  display: none;                /* hidden on desktop */
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(8,16,31,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dash-mobile-topbar .dash-mobile-title {
  font-size: 14px;
  font-weight: 700;
  color: #55d6ff;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Hamburger button */
.dash-burger {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #d4daf0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.dash-burger:hover  { background: rgba(85,214,255,0.12); color: #55d6ff; }
.dash-burger svg    { width: 20px; height: 20px; display: block; }

/* Off-canvas sidebar drawer */
.dash-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(280px, 82vw);
  height: 100%;
  z-index: 1050;
  background: rgba(8,16,31,0.98);
  border-right: 1px solid rgba(255,255,255,0.1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  overflow-y: auto;
  padding: 20px 16px 32px;
  transform: translateX(-105%);
  transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.dash-drawer.open { transform: translateX(0); }

/* Close button inside drawer */
.dash-drawer-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #d4daf0;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 18px;
  line-height: 1;
  float: right;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.dash-drawer-close:hover { background: rgba(239,68,68,0.15); color: #ff8080; }

/* Backdrop — solid dim overlay, no blur (blur on a fixed element can bleed
   into sibling fixed elements on some mobile browsers and cause rendering glitches) */
.dash-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1045;
  background: rgba(0,0,0,0.6);
}
.dash-backdrop.open { display: block; }

/* Mobile layout adjustments */
@media (max-width: 991.98px) {
  /* Show the mobile top bar */
  .dash-mobile-topbar { display: flex; }

  /* Hide the normal sidebar column — the drawer replaces it */
  .dashboard-sidebar,
  .ncl-sidebar {
    display: none !important;
  }

  /* Main content takes the full width */
  .dashboard-main { padding: 12px !important; }

  /* Reduce panel padding on small screens */
  .panel-card { padding: 0.85rem; }

  /* Tables scroll horizontally instead of overflowing */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Leads split layout — stack vertically on mobile */
  .col-xl-5, .col-xl-7 { width: 100% !important; max-width: 100% !important; }
}

/* Locked nav items — feature is not in the org's plan or add-ons.
   Muted text with a small lock icon floated right. Still clickable so
   the user lands on the page and sees the upgrade banner. */
.dashboard-nav .list-group-item.nav-locked {
  color: rgba(170,183,214,0.35) !important;
}
.dashboard-nav .list-group-item.nav-locked:hover {
  color: rgba(170,183,214,0.5) !important;
  background: rgba(255,255,255,0.02);
}
.nav-lock-icon {
  float: right;
  font-size: 0.7em;
  opacity: 0.5;
}

/* Nav section labels */
.nav-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding: 6px 4px 4px;
  margin-top: 6px;
}

/* Owner Portal nav items — violet accent instead of cyan to visually separate
   the owner section from the regular dashboard nav above it */
.dashboard-nav-owner .list-group-item {
  background: transparent;
  border-left-color: transparent !important;
  color: rgba(170,183,214,0.65);
}
.dashboard-nav-owner .list-group-item:hover {
  background: rgba(143,107,255,0.07);
  color: #f4f7ff;
  border-left-color: rgba(143,107,255,0.4) !important;
}
.dashboard-nav-owner .list-group-item.active {
  background: rgba(143,107,255,0.12);
  border-left-color: #8f6bff !important;
  color: #b59eff;
  font-weight: 600;
}

/* NCL Owner Portal sidebar — same dark base as regular dashboard sidebar */
.ncl-sidebar {
  min-height: 100vh;
  border-radius: 0;
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8,16,31,0.97), rgba(6,12,24,0.97));
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
/* No decorative overlay — matches the neutral dashboard look */
.ncl-sidebar::after {
  content: none;
}

/* Stat cards for billing overview */
.stat-card {
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 6px;
}

/* Feature toggle cards */
.feature-toggle-card {
  padding: 1.1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s;
}
.feature-toggle-card.active {
  border-color: rgba(85,214,255,0.3);
  background: rgba(85,214,255,0.06);
}

/* Category badges */
.cat-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.cat-core    { background: rgba(85,214,255,0.15); color: #55d6ff; }
.cat-ai      { background: rgba(143,107,255,0.15); color: #a07cff; }
.cat-sms     { background: rgba(219,123,255,0.15); color: #db7bff; }
.cat-analytics { background: rgba(255,180,50,0.15); color: #ffb432; }
.cat-support { background: rgba(80,220,130,0.15); color: #50dc82; }

/* Status badges for statements */
.status-draft    { background: rgba(255,255,255,0.1); color: #aab7d6; }
.status-sent     { background: rgba(85,214,255,0.15); color: #55d6ff; }
.status-paid     { background: rgba(80,220,130,0.15); color: #50dc82; }
.status-overdue  { background: rgba(255,80,80,0.15); color: #ff5050; }
.status-void     { background: rgba(255,255,255,0.06); color: #666; }

/* Billing table */
.billing-statement-row {
  cursor: pointer;
  transition: background 0.15s;
}
.billing-statement-row:hover td {
  background: rgba(255,255,255,0.03) !important;
}
