:root {
  --cp-orange: #b85d27;
  --cp-orange-dark: #a44f1f;
  --cp-orange-soft: #fdf1e9;
  --cp-navy: #131a26;
  --cp-blue-dark: #171b23;
  --cp-dark: #111827;
  --cp-muted: #667085;
  --cp-soft: #f8fafc;
  --cp-surface: #ffffff;
  --cp-border: #e5e7eb;
  --cp-border-strong: #d0d5dd;
  --cp-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
  --cp-shadow-md: 0 10px 24px rgba(16, 24, 40, 0.08);
  --cp-cream: #fffaf3;
  --cp-cream-muted: rgba(255, 250, 243, 0.82);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(232, 93, 36, 0.12), transparent 25rem),
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.12), transparent 24rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--cp-dark);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cp-orange);
  text-decoration: none;
}

a:hover {
  color: var(--cp-orange-dark);
}

.cp-app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(232, 93, 36, 0.13), transparent 26rem),
    radial-gradient(circle at 18% 90%, rgba(124, 58, 237, 0.09), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.cp-app-shell::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(232, 93, 36, 0.10), transparent 16rem),
    radial-gradient(circle at 86% 72%, rgba(30, 58, 95, 0.12), transparent 18rem);
  filter: blur(16px);
  animation: cpGradientDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.cp-page-content {
  flex: 1;
  min-width: 0;
  padding: 34px 42px 48px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.05), transparent 18rem);
}

.cp-page-content-public {
  padding: 0;
}

.cp-sidebar {
  position: sticky;
  top: 0;
  width: 280px;
  min-width: 280px;
  height: 100vh;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(16, 35, 58, 0.97) 0%, rgba(22, 45, 74, 0.95) 100%),
    radial-gradient(circle at top left, rgba(232, 93, 36, 0.18), transparent 14rem);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 8px 0 28px rgba(16, 24, 40, 0.12);
  overflow-y: auto;
  z-index: 2;
}

.cp-logo {
  border-radius: 16px;
  background: linear-gradient(135deg, #bd4c33, #8b3bb8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(150, 61, 104, 0.28);
  flex: 0 0 auto;
  overflow: hidden;
}

.cp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cp-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 8px 20px;
}

.cp-brand-name {
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.cp-brand-subtitle,
.cp-sidebar-caption {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-user-card {
  margin: 2px 6px 20px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cp-user-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}

.cp-user-email {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-user-role-badge {
  display: inline-flex;
  margin: 8px 0 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(232, 93, 36, 0.18);
  color: #ffd8c2;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-link-button-sidebar {
  color: #ffb995;
  font-size: 12px;
  font-weight: 800;
}

.cp-nav-section-title {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 10px;
  margin: 14px 0 8px;
}

.cp-nav-group {
  margin-bottom: 4px;
}

.cp-sidebar-footer {
  margin: 24px 6px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.cp-base-url {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
  word-break: break-all;
}

.nav-pills .nav-link {
  color: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  font-weight: 750;
  margin: 2px 4px;
  padding: 10px 12px;
  transition: all 0.16s ease;
}

.nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--cp-orange), #f97316);
  color: #fff;
  box-shadow: 0 10px 22px rgba(232, 93, 36, 0.28);
}

.cp-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(208, 213, 221, 0.65);
}

.cp-eyebrow {
  color: var(--cp-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.cp-page-title {
  color: var(--cp-blue-dark);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0;
}

.cp-page-subtitle {
  color: var(--cp-muted);
  max-width: 760px;
  margin: 8px 0 0;
}

.cp-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 93, 36, 0.22), transparent 22rem),
    radial-gradient(circle at 85% 78%, rgba(124, 58, 237, 0.16), transparent 28rem),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.82), transparent 18rem),
    linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #111827 100%);
}

.cp-login-shell-inner {
  width: min(100%, 460px);
  position: relative;
  z-index: 1;
}

.cp-login-card {
  width: 100%;
  padding: 34px;
}

.cp-login-eyebrow,
.cp-login-title,
.cp-login-subtitle {
  text-align: center;
}

.cp-login-title {
  color: var(--cp-blue-dark);
  margin-top: 10px;
}

.cp-login-subtitle {
  margin-bottom: 20px;
}

.cp-role-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.cp-role-pill {
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-color: rgba(30, 58, 95, 0.14) !important;
  color: var(--cp-navy) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.cp-role-pill:hover {
  border-color: rgba(232, 93, 36, 0.35) !important;
  color: var(--cp-orange-dark) !important;
  background: rgba(255, 247, 237, 0.95) !important;
}

.cp-field-label {
  display: block;
  color: var(--cp-navy);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cp-login-submit {
  min-height: 46px;
}

.cp-login-footer,
.cp-login-link {
  text-align: center;
  color: var(--cp-muted);
  font-size: 13px;
  font-weight: 700;
}

.cp-login-notice {
  margin-bottom: 14px;
}

.cp-auth-shell::before,
.cp-auth-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.75;
  animation: cpFloatGlow 14s ease-in-out infinite alternate;
}

.cp-auth-shell::before {
  width: 360px;
  height: 360px;
  left: -90px;
  top: -80px;
  background: radial-gradient(circle, rgba(232, 93, 36, 0.18), transparent 68%);
}

.cp-auth-shell::after {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 68%);
  animation-delay: -5s;
}

.cp-landing-shell {
  align-items: center;
  padding: 28px clamp(16px, 2.5vw, 36px);
}

.cp-landing-grid {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cp-landing-intro {
  padding: 10px 0;
  position: relative;
}

.cp-landing-shell .cp-eyebrow {
  color: #ffd4bc;
}

.cp-landing-shell .cp-landing-title {
  color: var(--cp-cream);
  max-width: 820px;
}

.cp-landing-shell .cp-landing-copy {
  color: var(--cp-cream-muted);
  max-width: 760px;
}

.cp-landing-shell .cp-rail-marquee {
  max-width: 860px;
}

.cp-landing-shell .cp-network-map {
  max-width: 100%;
  width: 100%;
}

.cp-landing-title {
  color: var(--cp-blue-dark);
  max-width: 620px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.052em;
  margin: 14px 0 12px;
}

.cp-rail-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 650px;
  margin: 14px 0 12px;
  perspective: 900px;
}

.cp-rail-marquee span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--cp-navy);
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.10), transparent 4rem);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(10px);
  animation: cpRailPop 6s ease-in-out infinite;
}

.cp-rail-marquee span:nth-child(2n) {
  animation-delay: -1.2s;
}

.cp-rail-marquee span:nth-child(3n) {
  animation-delay: -2.4s;
}

.cp-rail-marquee span:nth-child(4n) {
  animation-delay: -3.6s;
}

.cp-landing-copy {
  color: var(--cp-muted);
  max-width: 590px;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.cp-landing-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
}

.cp-network-map {
  margin-top: 18px;
  max-width: 560px;
}

.cp-network-map-inner {
  position: relative;
  min-height: 255px;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
}

.cp-network-map-inner::before,
.cp-network-map-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cp-network-map-inner::before {
  background:
    radial-gradient(circle at 13% 12%, rgba(255, 226, 163, 0.20), transparent 7rem),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.17), transparent 10rem),
    radial-gradient(circle at 50% 78%, rgba(232, 93, 36, 0.12), transparent 12rem);
  opacity: 0.9;
  z-index: 0;
}

.cp-network-map-inner::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 74%);
  opacity: 0.5;
  animation: cpNetworkGridDrift 16s linear infinite;
  z-index: 0;
}

.cp-network-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cp-network-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 0 5px rgba(255, 179, 71, 0.10), 0 0 26px rgba(255, 179, 71, 0.62);
  animation: cpNetworkSparkFloat 7s ease-in-out infinite;
}

.cp-network-spark-a {
  left: 19%;
  top: 24%;
}

.cp-network-spark-b {
  left: 52%;
  top: 52%;
  animation-delay: -2.2s;
}

.cp-network-spark-c {
  right: 18%;
  top: 30%;
  animation-delay: -4.4s;
}

.cp-network-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cp-network-edge {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 214, 153, 0.72) 24%,
    rgba(232, 93, 36, 0.82) 50%,
    rgba(124, 58, 237, 0.68) 76%,
    transparent 100%
  );
  background-size: 240% 100%;
  box-shadow: 0 0 16px rgba(232, 93, 36, 0.24);
  animation: cpNetworkEdgePulse 2.8s ease-in-out infinite;
}

.cp-network-edge-collect-settle {
  width: 36%;
  left: 16%;
  top: 96px;
  transform: rotate(54deg);
  transform-origin: left center;
}

.cp-network-edge-control-settle {
  width: 36%;
  right: 16%;
  top: 96px;
  transform: rotate(-54deg);
  transform-origin: right center;
  animation-delay: -0.9s;
}

.cp-network-edge-collect-control {
  width: 70%;
  left: 15%;
  top: 58px;
  opacity: 0.82;
  animation-delay: -1.6s;
}

.cp-network-flow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe08a 0%, #ffb347 48%, #e85d24 100%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 4px rgba(255, 238, 183, 0.18),
    0 0 18px rgba(255, 179, 71, 0.58),
    0 6px 18px rgba(232, 93, 36, 0.42);
  color: #7a2e0f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cp-network-flow-cycle {
  animation: cpNetworkFlowCycle 5.4s cubic-bezier(0.45, 0, 0.18, 1) infinite;
}

.cp-network-flow-cycle-b {
  animation-delay: -2.7s;
}

.cp-network-node {
  position: absolute;
  display: grid;
  gap: 3px;
  width: min(100%, 190px);
  padding: 14px 15px;
  border: 1px solid rgba(208, 213, 221, 0.75);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.08), transparent 8rem);
  box-shadow: 0 18px 42px rgba(3, 7, 18, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.80);
  z-index: 2;
  animation: cpNetworkNodePulse 4.5s ease-in-out infinite;
}

.cp-network-node::before,
.cp-network-node::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.cp-network-node::before {
  inset: -8px;
  border: 1px solid rgba(255, 179, 71, 0.0);
  animation: cpNetworkNodeHalo 4.5s ease-in-out infinite;
}

.cp-network-node::after {
  top: 15px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 0 5px rgba(255, 179, 71, 0.10), 0 0 18px rgba(255, 179, 71, 0.75);
  animation: cpNetworkStatusBlink 2.6s ease-in-out infinite;
}

.cp-network-node-collect {
  left: 0;
  top: 0;
}

.cp-network-node-control {
  right: 0;
  top: 0;
  animation-delay: -1.5s;
}

.cp-network-node-settle {
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  animation-delay: -3s;
}

.cp-network-node strong {
  color: var(--cp-navy);
  font-size: 15px;
}

.cp-network-node span {
  color: var(--cp-muted);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes cpNetworkEdgePulse {
  0%, 100% { background-position: 0% 50%; opacity: 0.55; filter: saturate(0.85); }
  50% { background-position: 100% 50%; opacity: 1; filter: saturate(1.25); }
}

@keyframes cpNetworkFlowCycle {
  0% {
    left: 86%;
    top: 18%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(-16deg);
  }
  5% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  14% {
    left: 86%;
    top: 18%;
  }
  36% {
    left: 14%;
    top: 18%;
    transform: translate(-50%, -50%) scale(1.05) rotate(-160deg);
  }
  46% {
    left: 14%;
    top: 18%;
    transform: translate(-50%, -50%) scale(1.05) rotate(-160deg);
  }
  74% {
    left: 50%;
    top: 76%;
    transform: translate(-50%, -50%) scale(1) rotate(-320deg);
  }
  84% {
    left: 50%;
    top: 76%;
    opacity: 1;
  }
  100% {
    left: 50%;
    top: 76%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(-360deg);
  }
}

@keyframes cpNetworkNodePulse {
  0%, 100% { box-shadow: 0 18px 42px rgba(3, 7, 18, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.80); border-color: rgba(208, 213, 221, 0.75); }
  50% { box-shadow: 0 22px 48px rgba(3, 7, 18, 0.28), 0 0 30px rgba(232, 93, 36, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92); border-color: rgba(255, 179, 71, 0.42); }
}

@keyframes cpNetworkNodeHalo {
  0%, 100% { opacity: 0; transform: scale(0.98); border-color: rgba(255, 179, 71, 0); }
  50% { opacity: 1; transform: scale(1.02); border-color: rgba(255, 179, 71, 0.22); }
}

@keyframes cpNetworkStatusBlink {
  0%, 100% { opacity: 0.55; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes cpNetworkGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 42px 42px, 42px 42px; }
}

@keyframes cpNetworkSparkFloat {
  0%, 100% { opacity: 0.25; transform: translate3d(0, 0, 0) scale(0.8); }
  50% { opacity: 0.95; transform: translate3d(10px, -12px, 0) scale(1.12); }
}

.cp-landing-point {
  display: grid;
  gap: 3px;
  padding: 14px 15px;
  border: 1px solid rgba(208, 213, 221, 0.75);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.08), transparent 8rem);
  box-shadow: var(--cp-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cp-landing-point:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 93, 36, 0.34);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.11);
}

.cp-landing-point strong {
  color: var(--cp-navy);
}

.cp-landing-point span {
  color: var(--cp-muted);
  font-size: 13px;
  line-height: 1.35;
}

.cp-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cp-border-strong);
  color: var(--cp-navy);
  font-weight: 800;
  border-radius: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.cp-secondary-button:hover {
  color: var(--cp-navy);
  background: var(--cp-cream);
  text-decoration: none;
}

.cp-link-button {
  color: var(--cp-orange);
  font-weight: 800;
  text-decoration: none;
}

.cp-hero-orbit {
  position: relative;
  min-height: 138px;
  margin-top: 24px;
}

.cp-hero-orbit::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 72px;
  top: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 36, 0.55), rgba(124, 58, 237, 0.45), transparent);
  animation: cpPulseLine 3.5s ease-in-out infinite;
}

.cp-float-chip {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 166px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(14px);
  animation: cpChipFloat 7s ease-in-out infinite;
}

.cp-float-chip span {
  color: var(--cp-orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cp-float-chip strong {
  color: var(--cp-blue-dark);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.cp-float-chip-a {
  left: 0;
  top: 4px;
}

.cp-float-chip-b {
  left: 186px;
  top: 48px;
  animation-delay: -2s;
}

.cp-float-chip-c {
  left: 404px;
  top: 8px;
  animation-delay: -4s;
}

.cp-auth-card {
  width: min(100%, 430px);
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.12), transparent 12rem),
    radial-gradient(circle at bottom left, rgba(30, 58, 95, 0.08), transparent 14rem);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.16);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cp-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232, 93, 36, 0.56), rgba(255, 255, 255, 0.36), rgba(30, 58, 95, 0.22));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
  animation: cpBorderGlow 6s ease-in-out infinite alternate;
}

.cp-landing-form {
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.cp-landing-form .cp-auth-card {
  width: 100%;
  max-width: none;
}

.cp-auth-title {
  color: var(--cp-blue-dark);
  font-weight: 850;
  letter-spacing: -0.035em;
  margin-top: 14px;
  margin-bottom: 8px;
}

.cp-auth-subtitle {
  color: var(--cp-muted);
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.cp-delivery-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 93, 36, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.14), transparent 7rem);
}

.cp-status-label {
  color: var(--cp-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-delivery-status strong {
  color: var(--cp-blue-dark);
  font-size: 12px;
  text-align: right;
}

.form-control,
.Select-control,
.Select-menu-outer,
.Select-placeholder,
.Select-value {
  border-radius: 11px !important;
}

.form-control {
  border-color: var(--cp-border-strong);
  padding: 10px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.form-control:focus {
  border-color: var(--cp-orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 36, 0.14);
  transform: translateY(-1px);
}

.card,
.mantine-Paper-root {
  border-radius: 18px !important;
}

.cp-panel {
  border: 1px solid rgba(208, 213, 221, 0.86) !important;
  box-shadow: var(--cp-shadow-md) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 20px !important;
}

.cp-panel:hover {
  box-shadow: var(--cp-shadow-md) !important;
}

.cp-card-title {
  color: var(--cp-blue-dark);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.cp-kpi-card {
  border: 1px solid rgba(208, 213, 221, 0.85);
  border-radius: 20px;
  box-shadow: var(--cp-shadow-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.06), transparent 8rem);
}

.cp-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--cp-shadow-md);
}

.cp-kpi-label {
  color: var(--cp-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.cp-kpi-value {
  color: var(--cp-blue-dark);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.cp-kpi-subtitle {
  color: var(--cp-muted);
  font-size: 12px;
  margin-top: 4px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
  background: #f8fafc !important;
  color: var(--cp-navy) !important;
  font-weight: 800 !important;
  border-bottom: 1px solid var(--cp-border) !important;
}

.dash-table-container .dash-spreadsheet-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--cp-border);
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
  color: #344054 !important;
  border-color: #eef2f6 !important;
}

.ag-theme-quartz.cp-ag-grid {
  --ag-font-family: Inter, "Segoe UI", Arial, sans-serif;
  --ag-font-size: 13px;
  --ag-border-color: var(--cp-border);
  --ag-header-background-color: #f8fafc;
  --ag-header-foreground-color: var(--cp-navy);
  --ag-odd-row-background-color: #fcfcfd;
  --ag-row-hover-color: var(--cp-orange-soft);
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cp-shadow-sm);
}

/* Colorized grid: branded header, zebra rows, clear cell borders */
.ag-theme-quartz.cp-ag-colorized {
  --ag-header-background-color: var(--cp-navy);
  --ag-header-foreground-color: #ffffff;
  --ag-odd-row-background-color: #fff7f1;
  --ag-row-hover-color: #ffe9dd;
  --ag-border-color: #eef0f3;
  --ag-cell-horizontal-border: solid #eef0f3;
  --ag-row-border-color: #eef0f3;
}

.ag-theme-quartz.cp-ag-colorized .ag-header-cell-text {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ag-theme-quartz.cp-ag-colorized .ag-header-icon {
  color: #ffffff;
}

.ag-theme-quartz.cp-ag-colorized .ag-row {
  border-bottom: 1px solid #eef0f3;
}

/* Editable cells: make the input affordance visible */
.ag-theme-quartz.cp-ag-editable .ag-cell {
  border-right: 1px dashed #e6d9cf;
  cursor: text;
}

.ag-theme-quartz.cp-ag-editable .ag-cell:hover {
  background: #fffdfb;
  box-shadow: inset 0 0 0 1px var(--cp-orange);
  border-radius: 4px;
}

.ag-theme-quartz.cp-ag-editable .ag-cell-inline-editing {
  box-shadow: inset 0 0 0 2px var(--cp-orange);
  background: #fff;
}

.ag-theme-quartz.cp-ag-editable .ag-cell-inline-editing input {
  border: 1px solid var(--cp-orange) !important;
  border-radius: 6px;
  padding: 2px 6px;
}

/* Super-admin merchant performance cards */
.cp-perf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.cp-perf-card {
  border: 1px solid var(--cp-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--cp-shadow-sm);
  border-top: 3px solid var(--cp-orange);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cp-perf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.10);
}

.cp-perf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cp-perf-name {
  font-weight: 800;
  color: var(--cp-navy);
  font-size: 15px;
}

.cp-perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.cp-perf-metric {
  display: flex;
  flex-direction: column;
  background: var(--cp-cream);
  border-radius: 10px;
  padding: 8px 10px;
}

.cp-perf-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.cp-perf-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--cp-navy);
}

.cp-perf-clickable {
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  font: inherit;
}

.cp-perf-clickable:hover {
  border-color: var(--cp-orange);
  transform: translateY(-1px);
}

.cp-perf-paid { color: #178a4c; }
.cp-perf-pending { color: #b7791f; }

.cp-perf-link {
  font-weight: 700;
  color: var(--cp-orange) !important;
  text-decoration: none;
}

.cp-perf-link:hover {
  color: var(--cp-orange-dark) !important;
}

/* API Docs page: shrink the inline logo and pin it to the top right */
.api-docs-markdown {
  position: relative;
}

.api-docs-markdown img {
  float: right;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 12px 18px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.18);
  border: 1px solid var(--cp-border);
}

.btn-primary {
  background: var(--cp-orange);
  border-color: var(--cp-orange);
}

.btn-primary:hover,
.cp-primary-button:hover {
  background: var(--cp-orange-dark) !important;
  border-color: var(--cp-orange-dark) !important;
  transform: translateY(-1px);
}

.cp-primary-button {
  border: none !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, var(--cp-orange), #f97316) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  height: auto !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  box-shadow: 0 10px 18px rgba(232, 93, 36, 0.22);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

.cp-primary-button:active:not(:disabled),
.cp-action-btn:active:not(:disabled),
.cp-icon-btn:active:not(:disabled),
.btn-primary:active:not(:disabled) {
  transform: scale(0.97) translateY(0) !important;
  box-shadow: 0 4px 10px rgba(232, 93, 36, 0.18) !important;
}

.cp-primary-button.cp-btn-loading,
.cp-icon-btn.cp-btn-loading,
.cp-action-btn.cp-btn-loading {
  opacity: 0.88;
  pointer-events: none;
  position: relative;
}

.cp-icon-btn.cp-btn-loading::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: cp-btn-spin 0.65s linear infinite;
  right: 10px;
  top: 50%;
  margin-top: -7px;
}

@keyframes cp-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.cp-btn-spinner-wrap .cp-btn-spinner {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.cp-output-loading-wrap {
  min-height: 2.5rem;
  position: relative;
}

.cp-output-loading-wrap .cp-output-loading {
  min-height: 2rem;
}

.cp-action-btn-col {
  display: flex;
  align-items: stretch;
}

.cp-action-btn-col .cp-primary-button {
  width: 100%;
}

.cp-panel,
.cp-kpi-card,
.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cp-panel:hover,
.cp-kpi-card:hover,
.card:hover {
  transform: translateY(-2px);
}

.alert {
  border-radius: 14px;
  border-width: 1px;
}

.js-plotly-plot,
.dash-graph {
  border-radius: 18px;
}

@media (max-width: 992px) {
  .cp-app-shell {
    display: block;
  }

  .cp-landing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cp-landing-form {
    justify-self: center;
  }

  .cp-landing-points {
    grid-template-columns: 1fr;
  }

  .cp-network-map {
    max-width: 100%;
  }

  .cp-network-map-inner {
    display: grid;
    gap: 34px;
    min-height: auto;
    padding-left: 0;
  }

  .cp-network-edges,
  .cp-network-hub,
  .cp-network-flow {
    display: none;
  }

  .cp-network-node {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 340px;
  }

  .cp-network-node:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: -34px;
    width: 2px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(232, 93, 36, 0.15), rgba(232, 93, 36, 0.75), rgba(124, 58, 237, 0.35));
    background-size: 100% 220%;
    animation: cpNetworkEdgePulse 2.8s ease-in-out infinite;
  }

  .cp-hero-orbit {
    display: none;
  }

  .cp-sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--cp-border);
  }

  .cp-page-content {
    padding: 22px 18px 34px;
  }
}

@media (max-width: 640px) {
  .cp-auth-shell {
    padding: 18px;
  }

  .cp-auth-card {
    padding: 24px;
  }

  .cp-landing-point {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@keyframes cpGradientDrift {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
}

@keyframes cpFloatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(26px, 18px, 0) scale(1.08);
  }
}

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

@keyframes cpPulseLine {
  0%, 100% {
    opacity: 0.35;
    transform: scaleX(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scaleX(1);
  }
}

@keyframes cpRailPop {
  0%, 100% {
    transform: translateY(0) rotateX(0deg);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-4px) rotateX(5deg);
    opacity: 1;
  }
}

@keyframes cpBorderGlow {
  0% {
    opacity: 0.45;
    filter: saturate(0.9);
  }
  100% {
    opacity: 0.9;
    filter: saturate(1.35);
  }
}

/* Merchant portal redesign helpers */
.cp-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475467;
  margin: 6px 0 4px;
}

.cp-section-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cp-flow-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-flow-node {
  background: #f3f6fb;
  border: 1px solid #e4e9f2;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1e3a5f;
}

.cp-flow-arrow {
  color: #e85d24;
  font-weight: 800;
}

.cp-code-block {
  background: #0f172a;
  border-radius: 10px;
  padding: 4px 12px;
  overflow-x: auto;
}

.cp-code-block code,
.cp-code-block pre {
  color: #e2e8f0;
  font-size: 12px;
}

/* Admin signed-settlement review */
.cp-review-item {
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}

.cp-review-item .cp-review-meta {
  font-size: 13px;
  color: #475467;
}

/* ============================================================
   Merchant portal — best-in-class redesign
   ============================================================ */
.cp-merchant-page,
.cp-demo-page {
  position: relative;
  z-index: 1;
}

/* Quick-action toolbar */
.cp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 24px;
}

.cp-toolbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--cp-orange), #f97316);
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(232, 93, 36, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.cp-toolbar-link:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(232, 93, 36, 0.30);
}

.cp-toolbar-link-ghost {
  color: var(--cp-navy);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--cp-border-strong);
  box-shadow: var(--cp-shadow-sm);
}

.cp-toolbar-link-ghost:hover {
  color: var(--cp-orange-dark);
  background: var(--cp-cream);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.10);
}

.cp-download-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-navy);
  align-self: center;
  margin-right: 4px;
}

.cp-dl-ic {
  font-weight: 900;
}

.cp-radio-stack label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.35;
}

.cp-radio-stack input[type="radio"] {
  margin-top: 3px;
  flex: 0 0 auto;
}

.cp-toolbar-ic {
  font-size: 14px;
  line-height: 1;
}

/* KPI accent */
.cp-kpi-card {
  position: relative;
  overflow: hidden;
}

.cp-kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cp-orange), #f97316);
  opacity: 0.85;
}

.cp-kpi-card .card-body {
  padding-left: 20px;
}

/* Data panels (wrap tables and grids) */
.cp-data-panel {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(208, 213, 221, 0.86);
  border-radius: 20px;
  box-shadow: var(--cp-shadow-md);
  margin-bottom: 22px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cp-data-panel:hover {
  transform: translateY(-1px);
}

.cp-data-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(208, 213, 221, 0.55);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(255, 255, 255, 0));
}

.cp-data-panel-title {
  color: var(--cp-blue-dark);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.cp-data-panel-subtitle {
  color: var(--cp-muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 4px;
  max-width: 760px;
}

.cp-data-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.cp-data-panel-body {
  padding: 18px 22px 22px;
}

.cp-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--cp-orange-soft);
  color: var(--cp-orange-dark);
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(232, 93, 36, 0.22);
}

.cp-panel-link {
  color: var(--cp-orange);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.cp-panel-link:hover {
  color: var(--cp-orange-dark);
}

/* Service ID cards */
.cp-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}

.cp-service-card {
  border: 1px solid rgba(208, 213, 221, 0.8);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at top right, rgba(232, 93, 36, 0.06), transparent 7rem);
  box-shadow: var(--cp-shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cp-service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 93, 36, 0.35);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.10);
}

.cp-service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cp-service-code {
  color: var(--cp-blue-dark);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.cp-chip-currency {
  background: rgba(30, 58, 95, 0.08);
  color: var(--cp-navy);
  border: 1px solid rgba(30, 58, 95, 0.14);
}

.cp-service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px dashed rgba(208, 213, 221, 0.6);
}

.cp-service-meta-label {
  color: var(--cp-muted);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.cp-service-rails {
  color: #344054;
  font-size: 12.5px;
  font-weight: 650;
  text-align: right;
}

.cp-service-status {
  font-size: 12px;
  font-weight: 850;
}

.cp-service-status-active {
  color: #067647;
}

.cp-service-status-suspended,
.cp-service-status-paused {
  color: #b54708;
}

/* Empty states */
.cp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 34px 18px;
  border: 1px dashed var(--cp-border-strong);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.7);
}

.cp-empty-icon {
  font-size: 26px;
  color: var(--cp-border-strong);
}

.cp-empty-text {
  color: var(--cp-muted);
  font-size: 13px;
  font-weight: 650;
  max-width: 460px;
}

.cp-grid-empty {
  color: var(--cp-muted);
  font-weight: 650;
}

/* AG grid inside panels: drop the duplicate border, panel already provides it */
.cp-data-panel .ag-theme-quartz.cp-ag-grid {
  border: 1px solid var(--cp-border);
  box-shadow: none;
}

/* Checkout demo steps */
.cp-step-list {
  display: grid;
  gap: 14px;
}

.cp-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cp-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cp-orange), #f97316);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(232, 93, 36, 0.26);
}

.cp-step-body {
  display: grid;
  gap: 1px;
}

.cp-step-body strong {
  color: var(--cp-blue-dark);
  font-size: 14px;
}

.cp-step-body span {
  color: var(--cp-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .cp-data-panel-head {
    flex-direction: column;
    gap: 10px;
  }

  .cp-data-panel-body {
    padding: 14px 14px 18px;
  }

  .cp-service-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Global responsive safety + mobile/tablet overhaul
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

/* Tablets and below */
@media (max-width: 992px) {
  /* Let shells scroll instead of clipping centered, overflowing content */
  .cp-app-shell {
    overflow: visible;
    min-height: 100vh;
  }

  .cp-auth-shell {
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cp-landing-shell {
    padding: 22px 16px 44px;
  }

  .cp-page-header {
    flex-direction: column;
    gap: 10px;
  }

  /* Network map: remove the empty decorative canvas + floating sparks on small screens */
  .cp-network-map {
    margin-top: 14px;
    max-width: 100%;
  }

  .cp-network-map-inner {
    min-height: auto;
    gap: 14px;
    border-radius: 0;
    overflow: visible;
  }

  .cp-network-map-inner::before,
  .cp-network-map-inner::after,
  .cp-network-atmosphere,
  .cp-network-spark {
    display: none !important;
  }

  .cp-network-node {
    width: 100%;
    max-width: 100%;
  }
}

/* Phones */
@media (max-width: 576px) {
  .cp-page-content {
    padding: 18px 14px 28px;
  }

  .cp-page-title {
    font-size: 23px;
  }

  .cp-page-subtitle {
    font-size: 13px;
  }

  .cp-landing-title {
    font-size: clamp(25px, 8vw, 34px);
  }

  .cp-landing-copy {
    font-size: 14px;
  }

  .cp-rail-marquee {
    gap: 6px;
  }

  .cp-rail-marquee span {
    font-size: 11px;
    padding: 6px 9px;
  }

  .cp-toolbar-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .cp-kpi-value {
    font-size: 22px;
  }

  .cp-data-panel-head {
    padding: 14px 16px;
  }

  .cp-panel .card-body,
  .card .card-body {
    padding: 16px !important;
  }

  .cp-service-code {
    font-size: 15px;
  }

  .cp-auth-card,
  .cp-login-card {
    padding: 22px;
  }

  .cp-role-presets {
    grid-template-columns: 1fr;
  }

  /* Keep wide data grids usable: horizontal scroll instead of overflow */
  .cp-ag-grid,
  .dash-table-container {
    overflow-x: auto;
  }
}

/* ============================================================
   Admin Control Center — redesigned components
   ============================================================ */

/* Status badges */
.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.6;
}
.cp-badge-ok { background: #e7f6ec; color: #1a7f43; }
.cp-badge-warn { background: #fff3e0; color: #b66a13; }
.cp-badge-bad { background: #fdecec; color: #c0392b; }
.cp-badge-muted { background: #eef1f5; color: #5b6677; }
.cp-badge-navy { background: #e7ecf6; color: #1f3a68; }

/* Labeled icon buttons */
.cp-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: #fff;
}
.cp-icon-btn i { font-size: 15px; line-height: 1; }
.cp-icon-btn:hover { box-shadow: var(--cp-shadow-sm); }
.cp-icon-btn:active { transform: translateY(1px); }
.cp-icon-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.cp-icon-ok { background: var(--cp-orange); border-color: var(--cp-orange); color: #fff; }
.cp-icon-ok:hover { background: var(--cp-orange-dark); }
.cp-icon-warn { background: #f0a830; border-color: #f0a830; color: #fff; }
.cp-icon-bad { background: #fff; border-color: #e0b4b4; color: #c0392b; }
.cp-icon-bad:hover { background: #fdecec; }
.cp-icon-primary { background: var(--cp-navy); border-color: var(--cp-navy); color: #fff; }
.cp-icon-primary:hover { background: var(--cp-blue-dark); }
.cp-icon-muted { background: #fff; border-color: var(--cp-border-strong); color: var(--cp-muted); }
.cp-icon-muted:hover { background: var(--cp-soft); }

/* Platform Rail Catalog */
.cp-rc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Settlement review columns */
.cp-sr-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cp-sr-col {
  background: var(--cp-soft);
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  padding: 14px;
}
.cp-sr-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cp-sr-col-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--cp-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-sr-grid { display: flex; flex-direction: column; gap: 12px; }
.cp-sr-card {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-left: 4px solid var(--cp-border-strong);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--cp-shadow-sm);
}
.cp-sr-signed { border-left-color: var(--cp-orange); }
.cp-sr-pending { border-left-color: #f0a830; }
.cp-sr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cp-sr-merchant { font-weight: 700; color: var(--cp-dark); font-size: 14px; }
.cp-sr-body { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.cp-sr-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.cp-sr-k { color: var(--cp-muted); }
.cp-sr-v { color: var(--cp-dark); font-weight: 600; text-align: right; }
.cp-sr-cta { width: 100%; justify-content: center; }
.cp-sr-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

/* Master Merchant control sheet */
.cp-mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.cp-mc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--cp-shadow-sm);
}
.cp-mc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-mc-name { font-weight: 700; color: var(--cp-dark); font-size: 15px; }
.cp-mc-sub { color: var(--cp-muted); font-size: 13px; word-break: break-all; }
.cp-mc-metas { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.cp-mc-meta { font-size: 11.5px; color: var(--cp-muted); }
.cp-mc-control { display: flex; flex-direction: column; gap: 8px; }
.cp-mc-reason { font-size: 13px; }
.cp-mc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-mc-actions .cp-icon-btn { flex: 1; justify-content: center; padding: 6px 8px; }

/* Money segregation cards */
.cp-money-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cp-money-card {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--cp-shadow-sm);
  border-top: 4px solid var(--cp-navy);
}
.cp-money-name { font-weight: 700; color: var(--cp-dark); margin-bottom: 12px; }
.cp-money-stats { display: flex; flex-direction: column; gap: 8px; }
.cp-money-stat { display: flex; justify-content: space-between; align-items: baseline; }
.cp-money-k { color: var(--cp-muted); font-size: 12.5px; }
.cp-money-v { font-weight: 700; font-size: 15px; color: var(--cp-dark); }
.cp-money-payable { color: #b66a13; }
.cp-money-settled { color: #1e5a96; }
.cp-money-rev { color: #1a7f43; }
.cp-money-breakdown {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--cp-border, #e4e7ec);
  font-size: 11.5px;
  color: var(--cp-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .cp-sr-columns { grid-template-columns: 1fr; }
  .cp-sr-modal-grid { grid-template-columns: 1fr; }
  .cp-mc-grid { grid-template-columns: 1fr; }
  .cp-money-grid { grid-template-columns: 1fr; }
}
