/* ============================================
   Compliance & disclosure UI
   ============================================ */

/* —— Homepage section —— */
.cx-home {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(75, 227, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #060c16 0%, var(--background) 100%);
  border-top: 1px solid rgba(75, 227, 235, 0.12);
  border-bottom: 1px solid rgba(75, 227, 235, 0.08);
}

.cx-home-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.cx-home-glow--a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(75, 227, 235, 0.12);
}

.cx-home-glow--b {
  width: 360px;
  height: 360px;
  bottom: -100px;
  right: -60px;
  background: rgba(253, 133, 55, 0.08);
}

.cx-home-shell {
  position: relative;
  z-index: 1;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(8, 15, 25, 0.95), rgba(4, 7, 16, 0.88));
  border: 1px solid rgba(75, 227, 235, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(75, 227, 235, 0.06);
}

.cx-home-header {
  max-width: 820px;
  margin-bottom: 32px;
}

.cx-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(75, 227, 235, 0.1);
  border: 1px solid rgba(75, 227, 235, 0.28);
  color: var(--primary);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-home-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: cx-pulse 2s ease-in-out infinite;
}

@keyframes cx-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.cx-home-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.cx-home-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 760px;
}

.cx-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.cx-point-card {
  padding: 20px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cx-point-card:hover {
  border-color: rgba(75, 227, 235, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cx-point-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(75, 227, 235, 0.1);
  border: 1px solid rgba(75, 227, 235, 0.22);
  color: var(--primary);
}

.cx-point-icon svg {
  width: 22px;
  height: 22px;
}

.cx-point-icon--alert {
  background: rgba(253, 133, 55, 0.12);
  border-color: rgba(253, 133, 55, 0.28);
  color: var(--launch, #fd8537);
}

.cx-point-icon--wallet {
  background: rgba(181, 139, 249, 0.12);
  border-color: rgba(181, 139, 249, 0.28);
  color: var(--ai, #b58bf9);
}

.cx-point-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.cx-point-card p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.cx-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cx-home-link {
  margin-left: auto;
}

/* —— Dashboard compact card —— */
.cx-dash-card {
  position: relative;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(75, 227, 235, 0.25);
  background: linear-gradient(120deg, rgba(75, 227, 235, 0.08), rgba(8, 15, 25, 0.95) 45%);
}

.cx-dash-card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(75, 227, 235, 0.06), transparent 40%, rgba(253, 133, 55, 0.04));
  pointer-events: none;
}

.cx-dash-card-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  flex-wrap: wrap;
}

.cx-dash-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(75, 227, 235, 0.14);
  border: 1px solid rgba(75, 227, 235, 0.3);
  color: var(--primary);
}

.cx-dash-card-icon svg {
  width: 22px;
  height: 22px;
}

.cx-dash-card-copy {
  flex: 1;
  min-width: 200px;
}

.cx-dash-card-kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.cx-dash-card-copy p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cx-dash-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cx-dash-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.cx-dash-dismiss:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* —— Dashboard / standalone full page —— */
.cx-page {
  max-width: 960px;
}

.cx-page-hero {
  position: relative;
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(8, 15, 25, 0.98), rgba(4, 7, 16, 0.92));
  border: 1px solid rgba(75, 227, 235, 0.2);
  overflow: hidden;
}

.cx-page-hero-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(75, 227, 235, 0.1);
  filter: blur(60px);
  pointer-events: none;
}

.cx-page-kicker {
  position: relative;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.cx-page-hero h2 {
  position: relative;
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.cx-page-lead {
  position: relative;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.cx-points--page {
  margin-bottom: 24px;
}

.cx-page-details {
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.cx-page-details h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.cx-page-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.cx-page-list li + li {
  margin-top: 8px;
}

.cx-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cx-standalone {
  padding-top: 32px;
  padding-bottom: 48px;
}

.cx-standalone-card {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 8px 8px 24px;
}

.cx-standalone-back {
  margin: 8px 20px 0;
  text-align: center;
}

.compliance-footer-note {
  margin: 0 0 8px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* —— Trust strips (dashboard / markets) —— */
.spcx-trust-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(75, 227, 235, 0.06);
  border: 1px solid rgba(75, 227, 235, 0.18);
  color: var(--text-secondary, rgba(255, 255, 255, 0.72));
  font-size: 0.75rem;
  line-height: 1.5;
}

.spcx-trust-strip-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--primary, #4be3eb);
}

.spcx-trust-strip-icon svg {
  width: 18px;
  height: 18px;
}

.spcx-trust-strip--dashboard {
  margin: 0 16px 12px;
}

.spcx-trust-strip--markets {
  margin: 0 0 12px;
}

.spcx-app-trust-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(75, 227, 235, 0.08);
  border: 1px solid rgba(75, 227, 235, 0.2);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .spcx-trust-strip--dashboard {
    margin: 0 12px 10px;
    font-size: 0.6875rem;
  }
}

@media (max-width: 1024px) {
  .cx-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cx-home {
    padding: 48px 0 56px;
  }

  .cx-home-shell {
    padding: 22px 18px;
  }

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

  .cx-home-link {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .cx-dash-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cx-dash-card-actions {
    width: 100%;
    justify-content: space-between;
  }
}
