/* ============================================================================
   AUREXARA AI // CLARE v4.0 — "PURE DIAMOND LIGHT" DESIGN SYSTEM
   Apple + Stripe-grade minimalism, crisp alabaster/white surfaces,
   effortless 1-Page Home View with rich Clickable Drill-Down Panels.
   ============================================================================ */

:root {
  --bg-alabaster: #F8FAFC;
  --surface-white: #FFFFFF;
  --surface-subtle: #F1F5F9;
  --border-light: #E2E8F0;
  --border-hover: #CBD5E1;
  --text-slate-900: #0F172A;
  --text-slate-700: #334155;
  --text-slate-500: #64748B;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-50: #ECFDF5;
  --emerald-border: #A7F3D0;
  --amber-50: #FFFBEB;
  --amber-600: #D97706;
  --rose-50: #FFF1F2;
  --rose-600: #E11D48;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-alabaster);
  color: var(--text-slate-900);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ============================================================================
   TOP COMMAND BAR
   ============================================================================ */

.top-command-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.diamond-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--text-slate-900);
  color: var(--surface-white);
  font-size: 16px;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-slate-900);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-slate-500);
}

.grow-command-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 580px;
}

.diamond-input {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-slate-900);
  background: var(--bg-alabaster);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.diamond-input:focus {
  background: var(--surface-white);
  border-color: var(--text-slate-900);
}

.control-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.diamond-select {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-slate-900);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.diamond-select:hover,
.diamond-select:focus {
  border-color: var(--text-slate-900);
}

.btn-primary-slate {
  background: var(--text-slate-900);
  color: var(--surface-white);
  border: 1px solid var(--text-slate-900);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn-primary-slate:hover {
  opacity: 0.92;
}

.btn-emerald-solid {
  background: var(--emerald-500);
  color: var(--surface-white);
  border: 1px solid var(--emerald-600);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-emerald-solid:hover {
  background: var(--emerald-600);
}

.btn-secondary-outline {
  background: var(--surface-white);
  color: var(--text-slate-700);
  border: 1px solid var(--border-light);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary-outline:hover {
  border-color: var(--border-hover);
  background: var(--surface-subtle);
}

.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--emerald-border);
  background: var(--emerald-50);
  color: var(--emerald-600);
  transition: all 0.15s ease;
}

.pill-toggle.autopilot-off {
  background: var(--surface-subtle);
  border-color: var(--border-light);
  color: var(--text-slate-500);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.pill-toggle.autopilot-off .status-dot {
  background: var(--text-slate-500);
}

/* ============================================================================
   TOAST NOTIFICATION
   ============================================================================ */

.toast-banner {
  max-width: 1220px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-border);
  color: var(--text-slate-900);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================================
   MAIN WORKSPACE & 3-CARD BENTO GRID (HOME VIEW)
   ============================================================================ */

.diamond-workspace {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero-caption {
  margin-bottom: 26px;
}

.hero-caption h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-slate-900);
  margin-bottom: 6px;
}

.hero-caption p {
  font-size: 15px;
  color: var(--text-slate-500);
}

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .bento-grid-3 {
    grid-template-columns: 1fr;
  }
}

.diamond-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-slate-500);
}

.badge-emerald {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid var(--emerald-border);
}

.badge-slate {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-subtle);
  color: var(--text-slate-700);
  border: 1px solid var(--border-light);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-slate-900);
  margin-bottom: 14px;
}

.money-hero-value {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-slate-900);
  line-height: 1.1;
  margin-bottom: 12px;
}

.money-spent-row {
  font-size: 14px;
  color: var(--text-slate-500);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.dot-sep {
  color: var(--border-hover);
}

.checklist-clean {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-slate-900);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-light);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: var(--surface-white);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.approval-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-slate-900);
  margin-bottom: 6px;
}

.approval-meta {
  font-size: 13.5px;
  color: var(--text-slate-700);
  margin-bottom: 6px;
}

.approval-impact {
  font-size: 13px;
  color: var(--emerald-600);
  font-weight: 600;
  margin-bottom: 16px;
}

.approval-button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.card-footer-hint {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-slate-500);
}

/* ============================================================================
   DRILL-DOWN VIEWS
   ============================================================================ */

.drilldown-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-back-simple {
  background: var(--surface-white);
  color: var(--text-slate-900);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-back-simple:hover {
  background: var(--surface-subtle);
}

.drilldown-nav-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dd-tab-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--text-slate-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dd-tab-btn.active {
  background: var(--text-slate-900);
  color: var(--surface-white);
  border-color: var(--text-slate-900);
}

.drilldown-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-header-block {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.panel-header-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 10px;
}

.plain-banner {
  font-size: 14.5px;
  color: var(--text-slate-700);
  background: var(--bg-alabaster);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 10px;
}

.metrics-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.metric-tile {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
}

.metric-tile .metric-label {
  font-size: 12px;
  color: var(--text-slate-500);
  font-weight: 600;
  text-transform: uppercase;
}

.metric-tile .metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-slate-900);
  margin: 6px 0 4px;
}

.metric-tile .metric-sub {
  font-size: 12.5px;
  color: var(--text-slate-500);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 920px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

.sub-panel {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
}

.sub-panel h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sub-caption {
  font-size: 13.5px;
  color: var(--text-slate-500);
  margin-bottom: 16px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item-card {
  background: var(--bg-alabaster);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
}

.item-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: var(--emerald-500);
  border-radius: 999px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

/* ============================================================================
   PODS 6-GRID & DEEP POD INSPECTOR
   ============================================================================ */

.pods-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .pods-grid-6 {
    grid-template-columns: 1fr;
  }
}

.pod-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pod-card:hover,
.pod-card.active-pod {
  border-color: var(--text-slate-900);
  box-shadow: var(--shadow-hover);
}

.pod-inspector-shell {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
}

.pod-selector-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.pod-tab-pill {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-alabaster);
  color: var(--text-slate-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pod-tab-pill.active {
  background: var(--text-slate-900);
  color: var(--surface-white);
  border-color: var(--text-slate-900);
}

.pod-deep-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.code-diff-block {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #0F172A;
  color: #E2E8F0;
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
  margin: 10px 0;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-list li {
  padding: 12px 14px;
  background: var(--bg-alabaster);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 14px;
}

.firewall-cert-box {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-border);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: var(--text-slate-900);
}

.approval-dd-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

/* ============================================================================
   MODAL FOR 1:1 CHAMELEON LANDING PAGE PREVIEW
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-window {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  width: 100%;
  max-width: 1020px;
  height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  flex: 1;
  background: var(--bg-alabaster);
}

.chameleon-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
