/* FlowBoard — light-only, soft stone / teal */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

:root {
  --cpt-sidebar-w: 17rem;
  --cpt-sidebar-collapsed: 4.25rem;
  --cpt-radius: 0.75rem;
  --cpt-shadow: 0 1px 2px rgba(41, 37, 36, 0.05), 0 4px 16px rgba(41, 37, 36, 0.06);
  --cpt-shadow-lg: 0 8px 30px rgba(41, 37, 36, 0.08);
  --cpt-accent: #0d9488;
  --cpt-accent-soft: rgba(13, 148, 136, 0.1);
}

html {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Full-height app: only main scrolls */
.cpt-app-body {
  height: 100dvh;
  overflow: hidden;
}

.cpt-app-shell {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.cpt-main-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cpt-main-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  min-width: 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Let wide content (e.g. tables) scroll inside its own wrapper, not the whole page */
.cpt-main-scroll .cpt-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* Main column: no visible scrollbar (wheel/touch scroll still works) — e.g. profile */
.cpt-main-hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cpt-main-hide-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Sidebar: no page scroll; optional tiny internal nav scroll if many items */
#sidebar {
  width: min(17rem, 88vw);
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f4;
  border-right: 1px solid #e7e5e4;
}

#sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.cpt-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e7e5e4;
  flex-shrink: 0;
  background: #fafaf9;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

/* Desktop collapsed: stack logo + toggle — no overlap */
@media (min-width: 1024px) {
  #sidebar {
    width: var(--cpt-sidebar-w);
  }

  .sidebar-collapsed #sidebar {
    width: var(--cpt-sidebar-collapsed) !important;
  }

  .sidebar-collapsed #sidebar .cpt-sidebar-header {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .sidebar-collapsed #sidebar .sidebar-brand {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .sidebar-collapsed #sidebar .sidebar-text,
  .sidebar-collapsed #sidebar .sidebar-brand-sub,
  .sidebar-collapsed #sidebar .sidebar-footer-text {
    display: none !important;
  }

  .sidebar-collapsed #sidebar .sidebar-toggle-desktop {
    order: 2;
    margin-top: 0.125rem;
  }

  .sidebar-collapsed #sidebar .nav-item {
    justify-content: center;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .sidebar-collapsed #sidebar .nav-item svg {
    margin: 0;
  }
}

/* Mobile drawer */
@media (max-width: 1023px) {
  #sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--cpt-shadow-lg);
  }

  html.cpt-sidebar-open #sidebar {
    transform: translateX(0);
  }

  #cpt-sidebar-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  html.cpt-sidebar-open #cpt-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  #sidebar {
    position: relative;
    transform: none !important;
    box-shadow: none;
  }

  #cpt-sidebar-backdrop {
    display: none !important;
  }
}

/* Cards */
.cpt-card {
  box-shadow: var(--cpt-shadow);
  border-radius: var(--cpt-radius);
}

.cpt-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d6d3d1;
  background: #fafaf9;
  color: #292524;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cpt-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
  background: #fff;
}

/* Table icon buttons */
.cpt-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  color: #57534e;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.cpt-icon-btn:hover {
  background: #e7e5e4;
  color: #292524;
}
.cpt-icon-btn.danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}
a.cpt-icon-btn:hover {
  background: #e7e5e4;
}

.cpt-modal-panel {
  animation: cptModalIn 0.22s ease-out;
}

@keyframes cptModalIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.toast-enter {
  animation: toastIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(110%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

#cpt-palette.cpt-open {
  display: flex;
}

.cpt-spark span {
  flex: 1;
  min-width: 4px;
  max-width: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  opacity: 0.88;
}

.cpt-table tbody tr {
  transition: background-color 0.12s ease;
}

.cpt-table-striped tbody tr:nth-child(even) {
  background-color: rgba(120, 113, 108, 0.035);
}

.cpt-table-hover tbody tr:hover {
  background-color: rgba(13, 148, 136, 0.06);
}

/* Table pagination bar */
.cpt-pagination-host {
  background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
  padding: 0.875rem 1rem 1rem;
}

.cpt-pagination-host--attached {
  border-top: 1px solid #e7e5e4;
}

.cpt-pagination-inner {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .cpt-pagination-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 639px) {
  .cpt-pagination-inner {
    text-align: center;
  }

  .cpt-pagination-meta {
    width: 100%;
  }

  .cpt-pagination-rpp {
    justify-content: center;
    width: 100%;
  }

  .cpt-pagination-nav {
    justify-content: space-between;
    gap: 0.35rem;
  }

  .cpt-pagination-nums {
    flex: 1 1 auto;
    max-width: min(100%, 12rem);
    justify-content: center;
  }
}

.cpt-pagination-meta {
  font-size: 0.8125rem;
  color: #78716c;
}

.cpt-pagination-meta strong {
  color: #44403c;
  font-weight: 600;
}

.cpt-pagination-rpp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #57534e;
}

.cpt-pagination-select {
  border-radius: 0.625rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #292524;
  padding: 0.375rem 2rem 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(41, 37, 36, 0.04);
}

.cpt-pagination-select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* One row: Prev | page nums (scrolls if needed) | Next — never orphan Next on its own line */
.cpt-pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  justify-content: center;
}

@media (min-width: 640px) {
  .cpt-pagination-nav {
    width: auto;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 12rem;
  }

  .cpt-pagination-inner > .cpt-pagination-nav {
    flex: 1 1 100%;
    justify-content: center;
    order: 3;
  }

  .cpt-pagination-inner > .cpt-pagination-meta {
    order: 1;
  }

  .cpt-pagination-inner > .cpt-pagination-rpp {
    order: 2;
  }
}

@media (min-width: 900px) {
  .cpt-pagination-inner > .cpt-pagination-nav {
    flex: 0 1 auto;
    order: 0;
    justify-content: flex-end;
  }

  .cpt-pagination-inner > .cpt-pagination-meta,
  .cpt-pagination-inner > .cpt-pagination-rpp {
    order: 0;
  }
}

.cpt-pagination-arrow__compact {
  display: inline;
}

.cpt-pagination-arrow__full {
  display: none;
}

@media (min-width: 640px) {
  .cpt-pagination-arrow__compact {
    display: none;
  }

  .cpt-pagination-arrow__full {
    display: inline;
  }
}

.cpt-pagination-arrow {
  flex-shrink: 0;
  border-radius: 0.625rem;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #44403c;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  min-height: 2.5rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.cpt-pagination-arrow:hover:not(:disabled) {
  background: #f5f5f4;
  border-color: #a8a29e;
}

.cpt-pagination-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cpt-pagination-nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding: 0.125rem 0;
}

.cpt-pagination-nums::-webkit-scrollbar {
  height: 4px;
}

.cpt-pagination-nums::-webkit-scrollbar-thumb {
  background: rgba(120, 113, 108, 0.35);
  border-radius: 4px;
}

.cpt-pagination-num {
  flex-shrink: 0;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.35rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  background: transparent;
  color: #57534e;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cpt-pagination-num:hover:not(.is-active) {
  background: #e7e5e4;
  color: #292524;
}

.cpt-pagination-num.is-active {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  border-color: #0f766e;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.cpt-pagination-ellipsis {
  flex-shrink: 0;
  padding: 0 0.25rem;
  color: #a8a29e;
  font-size: 0.875rem;
  user-select: none;
}

/* Dashboard premium panels */
.cpt-dash-section {
  margin-bottom: 2rem;
}

.cpt-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(231, 229, 228, 0.95);
  background: #fff;
  box-shadow: 0 1px 2px rgba(41, 37, 36, 0.04), 0 8px 24px rgba(41, 37, 36, 0.06);
  padding: 1.25rem 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpt-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41, 37, 36, 0.08), 0 16px 40px rgba(41, 37, 36, 0.08);
}

.cpt-stat-card--mesh {
  background: linear-gradient(145deg, #fafaf9 0%, #fff 48%, #f0fdfa 100%);
}

.cpt-stat-card--amber {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 45%, #fde68a55 100%);
  border-color: rgba(251, 191, 36, 0.35);
}

.cpt-stat-card--teal {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 40%, #a7f3d033 100%);
  border-color: rgba(45, 212, 191, 0.35);
}

.cpt-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  flex-shrink: 0;
}

.cpt-dash-panel {
  border-radius: 1rem;
  border: 1px solid rgba(231, 229, 228, 0.95);
  background: #fff;
  box-shadow: 0 1px 2px rgba(41, 37, 36, 0.04), 0 12px 32px rgba(41, 37, 36, 0.07);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.cpt-dash-panel:hover {
  box-shadow: 0 2px 4px rgba(41, 37, 36, 0.05), 0 16px 40px rgba(41, 37, 36, 0.09);
}

.cpt-dash-panel__head {
  background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
  border-bottom: 1px solid #e7e5e4;
}

.cpt-dash-chart-wrap {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13, 148, 136, 0.06) 0%, transparent 55%), #fafaf9;
}

tr.cpt-row-highlight {
  animation: cptRowFlash 1.4s ease;
}

@keyframes cptRowFlash {
  0%,
  100% {
    background-color: transparent;
  }
  20%,
  55% {
    background-color: rgba(13, 148, 136, 0.16);
  }
}

div.cpt-row-highlight {
  animation: cptRowFlash 1.4s ease;
}

.cpt-mesh {
  background-color: #fafaf9;
  background-image:
    radial-gradient(at 40% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
    radial-gradient(at 80% 0%, rgba(120, 113, 108, 0.06) 0%, transparent 45%);
}

.cpt-scroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.cpt-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 113, 108, 0.35);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Executive / reference dashboard — body.cpt-dash-executive */
body.cpt-dash-executive #sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
}

body.cpt-dash-executive .cpt-sidebar-header {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

body.cpt-dash-executive .cpt-exec-nav {
  border-radius: 0.5rem;
  border-right: 3px solid transparent;
  color: #4b5563;
}

body.cpt-dash-executive .cpt-exec-nav:hover {
  background: #f9fafb;
  color: #111827;
}

body.cpt-dash-executive .cpt-exec-nav.is-active {
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  border-right-color: #111827;
}

body.cpt-dash-executive .cpt-exec-panel {
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

body.cpt-dash-executive .cpt-exec-panel__head {
  border-bottom: 1px solid #f3f4f6;
}

body.cpt-dash-executive .cpt-exec-metric {
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

body.cpt-dash-executive .cpt-exec-metric--tint {
  background: #f0f5ff;
  border-color: #e8efff;
}

body.cpt-dash-executive .cpt-exec-metric--dark {
  background: #111827;
  border-color: #111827;
  color: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.25);
}

body.cpt-dash-executive .cpt-exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: #ffedd5;
  color: #111827;
}

body.cpt-dash-executive .cpt-spark span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.9) 100%);
  opacity: 1;
}

body.cpt-dash-executive .cpt-table thead {
  background: #f9fafb !important;
  color: #6b7280 !important;
  border-color: #e5e7eb !important;
}

body.cpt-dash-executive .cpt-pagination-num.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.2);
}

body.cpt-dash-executive .cpt-dash-chart-wrap {
  background: #fafbfc;
}

body.cpt-dash-executive .cpt-dash-panel {
  border-color: #f3f4f6;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.06);
}

body.cpt-dash-executive .cpt-dash-panel__head {
  background: #ffffff;
  border-bottom-color: #f3f4f6;
}

body.cpt-dash-executive .cpt-table-striped tbody tr:nth-child(even) {
  background-color: rgba(17, 24, 39, 0.02);
}

body.cpt-dash-executive .cpt-table-hover tbody tr:hover {
  background-color: rgba(17, 24, 39, 0.04);
}

body.cpt-dash-executive .cpt-pagination-host {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-color: #f3f4f6;
}

body.cpt-dash-executive .cpt-pagination-host--attached {
  border-top-color: #f3f4f6;
}

/* Map legacy teal primary controls to executive navy on app pages */
body.cpt-dash-executive .bg-teal-700 {
  background-color: #111827 !important;
}
body.cpt-dash-executive .hover\:bg-teal-800:hover {
  background-color: #374151 !important;
}
body.cpt-dash-executive .ring-teal-200\/80,
body.cpt-dash-executive .ring-teal-200 {
  --tw-ring-color: #e5e7eb !important;
}
body.cpt-dash-executive .border-teal-200 {
  border-color: #e5e7eb !important;
}
body.cpt-dash-executive .bg-teal-50,
body.cpt-dash-executive .bg-teal-50\/80 {
  background-color: #f0f5ff !important;
}
body.cpt-dash-executive .text-teal-900,
body.cpt-dash-executive .text-teal-800 {
  color: #111827 !important;
}

body.cpt-dash-executive .cpt-input:focus {
  border-color: #d1d5db;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  background: #fff;
}

/* --- Landing page (index.html, body.cpt-landing) --- */
body.cpt-landing {
  background: #fafafa;
}

.cpt-landing-hero {
  position: relative;
  overflow: hidden;
  background-color: #f8f7fc;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -30%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 15%, rgba(99, 102, 241, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 40% at 5% 90%, rgba(217, 70, 239, 0.07), transparent 50%),
    linear-gradient(180deg, #fafafa 0%, #f4f4f6 45%, #fafafa 100%);
}

.cpt-landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 92%);
  pointer-events: none;
}

.cpt-landing-hero-glow {
  position: absolute;
  width: min(42rem, 90vw);
  height: min(42rem, 90vw);
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

@keyframes cpt-landing-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cpt-landing-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cpt-landing-float {
    animation: cpt-landing-float 7s ease-in-out infinite;
  }

  .cpt-landing-reveal {
    animation: cpt-landing-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .cpt-landing-reveal--1 {
    animation-delay: 0.05s;
  }
  .cpt-landing-reveal--2 {
    animation-delay: 0.12s;
  }
  .cpt-landing-reveal--3 {
    animation-delay: 0.19s;
  }
  .cpt-landing-reveal--4 {
    animation-delay: 0.26s;
  }
}

.cpt-landing-product-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.cpt-landing-product-card:hover {
  transform: translateY(-4px);
}

.cpt-landing-cta-mesh {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 35%, #3730a3 70%, #312e81 100%);
}

.cpt-landing-cta-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 100%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(196, 181, 253, 0.25), transparent);
  pointer-events: none;
}

/* Upgrade modal (upgrade-modal.js) — fade + scale + blurred overlay */
.cpt-upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 175;
  font-family: Inter, system-ui, sans-serif;
}

.cpt-upgrade-modal--hidden {
  visibility: hidden;
  pointer-events: none;
}

.cpt-upgrade-modal--hidden .cpt-upgrade-modal__backdrop,
.cpt-upgrade-modal--hidden .cpt-upgrade-modal__panel {
  opacity: 0;
}

.cpt-upgrade-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cpt-upgrade-modal--open .cpt-upgrade-modal__backdrop {
  opacity: 1;
}

.cpt-upgrade-modal__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.cpt-upgrade-modal__panel {
  pointer-events: auto;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cpt-upgrade-modal--open .cpt-upgrade-modal__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cpt-upgrade-modal__backdrop,
  .cpt-upgrade-modal__panel {
    transition-duration: 0.01ms !important;
  }

  .cpt-upgrade-modal--open .cpt-upgrade-modal__panel {
    transform: none;
  }
}
