*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --forest: #0e0f23;
  --forest-mid: #1a1e3a;
  --forest-light: #3a4570;
  --sage: #7a86ad;
  --cream: #f5f2eb;
  --parchment: #ede9e0;
  --ink: #0e0f1a;
  --ink-2: #2a2e3a;
  --ink-3: #5a5e6a;
  --gold: #c4922a;
  --gold-light: #e8c97a;
  --white: #ffffff;
  --border: rgba(14, 15, 35, 0.12);
  --border-strong: rgba(14, 15, 35, 0.20);
  --danger: #8b1a1a;
  --danger-bg: #fdf0f0;
  --warn: #7a4a00;
  --warn-bg: #fdf5e8;
  --success: #1a3a4a;
  --success-bg: #e8eef5;
  --info: #0c2f5a;
  --info-bg: #e8f1fc;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

body.sidebar-open {
  overflow: hidden;
}

/* SHARED UTILITIES */
.hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-2);
  transition: all 0.15s;
  text-decoration: none;
}

.btn:hover {
  background: var(--parchment);
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-mid);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* Sortable table column header button */
.sort-th {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.sort-th:hover {
  color: var(--ink);
}

.sort-th.active {
  color: var(--ink);
}

/* Sort pill buttons (action bar) */
.sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.sort-pill:hover {
  background: var(--cream);
  color: var(--ink-2);
}

.sort-pill-active {
  background: var(--forest);
  color: #fff;
}

.sort-pill-active:hover {
  background: var(--forest-mid);
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-neutral {
  background: var(--parchment);
  color: var(--ink-2);
  border: 1px solid var(--border);
}

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 12px;
}

.alert-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(122, 74, 0, 0.15);
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(139, 26, 26, 0.15);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(12, 47, 90, 0.15);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(26, 74, 42, 0.15);
}

.alert i {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: hidden;
}

.modal-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.modal-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 20px;
  padding: 2px;
  line-height: 1;
}

.modal-body {
  padding: 20px 22px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.detail-notes {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: pre-wrap;
}

/* FORMS */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--parchment);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--forest);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.consent-box {
  background: var(--success-bg);
  border: 1px solid rgba(46, 107, 74, 0.20);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.consent-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.consent-option input {
  margin-top: 2px;
  accent-color: var(--forest-mid);
}

.consent-option span {
  font-size: 12px;
  color: var(--ink-2);
}

.star-rating-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.star-rating-row:last-child {
  border-bottom: none;
}

.star-cat {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.star-input {
  display: flex;
  gap: 3px;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--border-strong);
  padding: 0;
  transition: color 0.1s;
}

.star-btn.active {
  color: var(--gold);
}

/* LANDING PAGE */
#landing-view {}

#landing-view #hiw,
#landing-view #lp-features,
#landing-view #lp-compliance,
#landing-view #lp-pricing {
  scroll-margin-top: 85px;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  background-color: #0e0f23;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-shield {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
}

.nav-wordmark {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-sub-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-anchors {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}

.nav-link:hover {
  color: #fff;
}

.btn-login {
  padding: 9px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* HERO */
.hero {
  min-height: 700px;
  background: var(--forest);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 130px 48px 100px;
  text-align: center;
  color: #0000009f;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 62px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  max-width: 740px;
  margin-bottom: 12px;
}

.hero-h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 60px;
}

.btn-primary-hero {
  padding: 13px 30px;
  border-radius: 10px;
  background: var(--gold);
  border: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-hero:hover {
  background: #d4a030;
}

.btn-ghost-hero {
  padding: 13px 24px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost-hero:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stats {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.hero-stat {
  padding: 16px 32px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-stat:last-child {
  border-right: none;
}

.hs-val {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hs-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}

/* TRUST BAR */
.trust-bar {
  background: var(--parchment);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.trust-item i {
  font-size: 15px;
  color: var(--forest-light);
}

.trust-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.trust-bar-img {
  display: inline-flex;
  width: 100vw;
  justify-content: center;
}

/* SECTIONS */
.lp-section {
  padding: 80px 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--forest-light);
}

.section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  max-width: 480px;
  margin-bottom: 16px;
}

.section-body {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 440px;
  line-height: 1.75;
}

/* HOW IT WORKS */
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.step:hover .step-title {
  color: var(--forest);
}

.step:hover .step-num {
  background: var(--forest-light);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
}

.step.active .step-num {
  background: var(--gold);
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}

.hiw-visual {
  background: var(--forest);
  border-radius: var(--radius-xl);
  padding: 28px;
  /* min-width: 550px; */
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  animation: hiw-fade 0.25s ease;
}

@keyframes hiw-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visual-tag {
  font-size: 10px;
  color: var(--sage);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.visual-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.consent-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.cc-head {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-head i {
  font-size: 14px;
  color: var(--sage);
}

.cc-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.cc-opt i {
  font-size: 13px;
  color: var(--sage);
}

.visual-hash {
  background: rgba(196, 146, 42, 0.12);
  border: 1px solid rgba(196, 146, 42, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hash-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

/* FEATURES */
.features-section {
  background: var(--forest);
  padding: 80px 48px;
}

.features-section .section-label {
  color: var(--sage);
}

.features-section .section-label::before {
  background: var(--sage);
}

.features-section .section-h2 {
  color: #fff;
}

.features-section .section-body {
  color: rgba(255, 255, 255, 0.55);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}

.feat-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.feat-icon-green {
  background: rgba(122, 173, 138, 0.15);
  color: var(--sage);
}

.feat-icon-gold {
  background: rgba(196, 146, 42, 0.15);
  color: var(--gold-light);
}

.feat-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

/* RATINGS DEMO */
.ratings-section {
  padding: 80px 48px;
}

.ratings-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rating-demo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.rd-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.rd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
}

.rd-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.rd-ref {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
}

.rd-score {
  margin-left: auto;
  text-align: center;
}

.rd-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.rd-stars {
  font-size: 14px;
  color: var(--gold);
  margin-top: 3px;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cat-label {
  font-size: 12px;
  color: var(--ink-3);
  min-width: 130px;
}

.cat-bar-bg {
  flex: 1;
  height: 5px;
  background: var(--parchment);
  border-radius: 3px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}

.cat-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  min-width: 24px;
  text-align: right;
}

.rd-badges {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.rd-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.rb-long {
  background: #e8f1fc;
  color: #0c447c;
}

.rb-ok {
  background: #e8eef5;
  color: #1a3a4a;
}

.rb-warn {
  background: #faeeda;
  color: #633806;
}

/* DISPUTES SECTION */
.disputes-section {
  background: var(--parchment);
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.disputes-inner {
  max-width: 960px;
  margin: 0 auto;
}

.dispute-flow {
  display: flex;
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.dispute-flow::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.dflow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.dflow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.dflow-circle.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.dflow-circle.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.dflow-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.dflow-sub {
  font-size: 11px;
  color: var(--ink-3);
  max-width: 90px;
  line-height: 1.4;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 40px;
}

.outcome-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.oc-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.oc-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

/* COMPLIANCE */
.compliance-section {
  padding: 80px 48px;
}

.compliance-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.comp-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.comp-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.comp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.comp-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.popia-card {
  background: var(--forest);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: #fff;
}

.pc-logo {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.pc-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pc-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.pc-item i {
  font-size: 15px;
  color: var(--sage);
  flex-shrink: 0;
}

.pc-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

/* PRICING ON LANDING */
.lp-pricing-section {
  background: var(--forest);
  padding: 80px 48px;
}

.lp-pricing-section .section-label {
  color: var(--sage);
}

.lp-pricing-section .section-label::before {
  background: var(--sage);
}

.lp-pricing-section .section-h2 {
  color: #fff;
}

.lp-pricing-section .section-body {
  color: rgba(255, 255, 255, 0.5);
}

.lp-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 48px auto 0;
}

.lp-plan-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lp-plan-card.featured {
  background: var(--white);
  border-color: var(--white);
}

.lp-popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.lp-plan-tier {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.lp-plan-card.featured .lp-plan-tier {
  color: var(--forest-light);
}

.lp-plan-amount {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.lp-plan-card.featured .lp-plan-amount {
  color: var(--ink);
}

.lp-plan-currency {
  font-size: 16px;
  font-weight: 500;
  vertical-align: super;
  margin-right: 1px;
}

.lp-plan-period {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.lp-plan-card.featured .lp-plan-period {
  color: var(--ink-3);
}

.lp-plan-extra {
  margin: auto;
  font-size: 11px;
  color: rgb(0 0 0 / 65%);
  margin-bottom: 0px;
}

.lp-plan-feats {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-plan-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.lp-plan-feat i {
  font-size: 14px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 1px;
}

.lp-plan-card.featured .lp-plan-feat {
  color: var(--ink-2);
}

.lp-plan-card.featured .lp-plan-feat i {
  color: var(--forest-light);
}

.lp-plan-feat.muted {
  opacity: 0.45;
}

.lp-plan-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.lp-plan-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lp-plan-btn-primary {
  background: var(--forest);
  color: #fff;
  border: none;
}

.lp-plan-btn-primary:hover {
  background: var(--forest-mid);
}

/* CTA */
.cta-section {
  padding: 80px 48px;
  text-align: center;
}

.cta-inner {
  max-width: 540px;
  margin: 0 auto;
}

.cta-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta-btn-primary {
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-btn-primary:hover {
  background: var(--forest-mid);
}

.cta-btn-ghost {
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-btn-ghost:hover {
  background: var(--parchment);
}

/* FOOTER */
.footer {
  background: var(--ink);
  padding: 40px 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.footer-sub-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  cursor: pointer;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-popia {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

/* DASHBOARD */
#dashboard-view {
  display: none;
}

#dashboard-view.active {
  display: block;
}

.db-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.sidebar-toggle {
  display: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-toggle i {
  font-size: 18px;
}

.sidebar-toggle-close-icon {
  display: none;
}

.sidebar.menu-open .sidebar-toggle-open-icon {
  display: none;
}

.sidebar.menu-open .sidebar-toggle-close-icon {
  display: inline-block;
}

.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-shield {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: #fff;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.sidebar-agency {
  padding: 12px 14px;
  margin: 12px 12px 0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.agency-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.agency-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.agency-plan {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.agency-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 8px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 18px;
}

.nav-section-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-item i {
  font-size: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

.nav-item.active i {
  opacity: 1;
}

.nav-item-locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
}

.sidebar-user {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.user-role {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 7px;
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  margin: 0 8px 8px;
}

.sidebar-back-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
}

/* MAIN */
.db-main {
  margin-left: 224px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  padding: 0 28px;
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 28px;
  flex: 1;
}

.popia-bar {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.04em;
}

.popia-bar strong {
  color: #fff;
}

/* DASHBOARD CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.stat-label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-label i {
  font-size: 14px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-delta {
  font-size: 11px;
  color: var(--ink-3);
}

.stat-delta.up {
  color: var(--success);
}

.stat-delta.warn {
  color: var(--warn);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  margin-bottom: 24px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px;
}

.panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title i {
  font-size: 16px;
  color: var(--ink-3);
}

.panel-body {
  padding: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--parchment);
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-2);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--parchment);
}

/* PROFILE */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.profile-meta {
  font-size: 12px;
  color: var(--ink-3);
}

.profile-rating-big {
  margin-left: auto;
  text-align: center;
}

.rating-score {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.rating-label {
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.db-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.db-cat-label {
  font-size: 12px;
  color: var(--ink-2);
  min-width: 140px;
}

.db-cat-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--parchment);
  border-radius: 3px;
  overflow: hidden;
}

.db-cat-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}

.db-cat-score {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  min-width: 24px;
  text-align: right;
}

/* TABS */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

/* LOOKUP BAR */
.lookup-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
}

.lookup-bar .form-group {
  margin-bottom: 0;
  flex: 1;
}

.lookup-bar .btn {
  margin: 23px 0px 0px 0px
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 16px;
  pointer-events: none;
}

.search-input-wrap input {
  padding-left: 32px;
}

.profile-result {
  display: none;
}

.profile-result.visible {
  display: block;
}

/* DISPUTE */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 14px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot.done {
  border-color: var(--forest-mid);
  background: var(--success-bg);
}

.timeline-dot.active {
  border-color: var(--gold);
  background: var(--warn-bg);
}

.timeline-dot i {
  font-size: 7px;
}

.timeline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.timeline-meta {
  font-size: 11px;
  color: var(--ink-3);
}

/* PILL TABS */
.pill-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pill-tab {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--parchment);
  color: var(--ink-3);
  transition: all 0.15s;
}

.pill-tab.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* USER LIST */
.user-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.user-list-item:last-child {
  border-bottom: none;
}

.u-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.u-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.u-detail {
  font-size: 11px;
  color: var(--ink-3);
}

/* LOG */
.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.log-row:last-child {
  border-bottom: none;
}

.log-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* VIEWS */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* BILLING PAGE */
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.bp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bp-card.bp-featured {
  background: var(--forest);
  border-color: var(--forest);
}

.bp-popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.bp-tier {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.bp-card.bp-featured .bp-tier {
  color: var(--sage);
}

.bp-amount {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.bp-card.bp-featured .bp-amount {
  color: #fff;
}

.bp-currency {
  font-size: 15px;
  font-weight: 500;
  vertical-align: super;
  margin-right: 1px;
}

.bp-period {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.bp-card.bp-featured .bp-period {
  color: rgba(255, 255, 255, 0.4);
}

.bp-limits {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.bp-card.bp-featured .bp-limits {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.bp-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.bp-limit-row:last-child {
  margin-bottom: 0;
}

.bp-limit-label {
  font-size: 11px;
  color: var(--ink-3);
}

.bp-limit-val {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
}

.bp-card.bp-featured .bp-limit-label {
  color: rgba(255, 255, 255, 0.4);
}

.bp-card.bp-featured .bp-limit-val {
  color: rgba(255, 255, 255, 0.85);
}

.bp-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.bp-card.bp-featured .bp-divider {
  background: rgba(255, 255, 255, 0.12);
}

.bp-feats {
  list-style: none;
  flex: 1;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bp-feat {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

.bp-feat i {
  font-size: 13px;
  color: var(--forest-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.bp-card.bp-featured .bp-feat {
  color: rgba(255, 255, 255, 0.7);
}

.bp-card.bp-featured .bp-feat i {
  color: var(--sage);
}

.bp-feat.muted {
  opacity: 0.5;
}

.bp-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-2);
  transition: all 0.15s;
}

.bp-btn:hover {
  background: var(--parchment);
}

.bp-btn-primary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--white);
}

.bp-btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.bp-btn-current {
  background: var(--parchment);
  color: var(--ink-3);
  cursor: default;
}

.bp-btn-current:hover {
  background: var(--parchment);
}

.bp-extra-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

/* CALCULATOR */
.calc-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.calc-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-box-title i {
  font-size: 16px;
  color: var(--forest-light);
}

.calc-box-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.calc-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.calc-slider-label {
  font-size: 12px;
  color: var(--ink-2);
  min-width: 80px;
  font-weight: 500;
}

.calc-slider-val {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  min-width: 60px;
  text-align: right;
}

.calc-result-bar {
  background: var(--forest);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-plan-name {
  font-size: 10px;
  color: var(--sage);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calc-total {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.calc-period-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.calc-breakdown {
  text-align: right;
}

.calc-bline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}

.calc-bline strong {
  color: rgba(255, 255, 255, 0.8);
}

/* COMPARE TABLE */
.compare-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.compare-tbl th {
  padding: 8px 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
}

.compare-tbl th:first-child {
  text-align: left;
}

.compare-tbl th.th-pro {
  color: var(--forest);
}

.compare-tbl td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(14, 15, 35, 0.06);
  color: var(--ink-2);
}

.compare-tbl td:first-child {
  font-size: 12px;
  color: var(--ink-3);
}

.compare-tbl td:not(:first-child) {
  text-align: center;
}

.compare-tbl tr:last-child td {
  border-bottom: none;
}

.compare-tbl tr:hover td {
  background: rgba(14, 15, 35, 0.02);
}

.col-pro {
  background: rgba(14, 15, 35, 0.03);
}

.ct-check {
  color: var(--forest-light);
  font-size: 15px;
}

.ct-x {
  color: rgba(14, 15, 35, 0.22);
  font-size: 15px;
}

.mono-val {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-3);
}

.empty-state i {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.4;
  display: block;
}

.empty-state p {
  font-size: 13px;
}

/* HTMX-specific tweaks */
.htmx-indicator {
  opacity: 0;
  transition: opacity 0.2s;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Toast container */
#toast-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.2s ease-out;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo image overrides */
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 6px;
}

.sidebar-logo-img {
  height: 50px;
  width: auto;
  display: block;
  margin: 6px auto;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* === Demo mode === */
.demo-bar {
  background: linear-gradient(90deg, #FFD580, #FFC061);
  color: #4A2A00;
  padding: 10px 10px 10px 236px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.demo-bar strong {
  letter-spacing: 0.5px;
}

.demo-bar i {
  font-size: 14px;
  margin-right: 4px;
}

.demo-bar-cta {
  margin-left: auto;
  color: #4A2A00;
  text-decoration: underline;
  font-weight: 600;
}

.demo-bar-cta:hover {
  color: #000;
}

.demo-mode form input,
.demo-mode form select,
.demo-mode form textarea {
  background-color: #f7f5f0 !important;
  cursor: not-allowed;
}

.demo-mode form button[type="submit"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-mode form {
  position: relative;
}

.demo-mode form::after {
  content: '';
  position: absolute;
  inset: 0;
  cursor: not-allowed;
  z-index: 5;
}

/* === Dashboard metrics / graphs === */
.metrics-block {
  margin-bottom: 18px;
}

.metrics-block .pill-tabs {
  margin-bottom: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.metrics-chart {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 12px;
  min-width: 0;
}

.metrics-chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.metrics-chart-canvas {
  position: relative;
  width: 100%;
  height: 180px;
}

.metrics-chart-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 980px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .db-layout {
    flex-direction: column;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    max-height: none;
    z-index: 180;
  }

  .sidebar-logo {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border-bottom: none;
  }

  .sidebar-logo-img {
    height: 34px;
    margin: 0;
  }

  .logo-sub {
    text-align: left;
    font-size: 8px;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-body {
    display: none;
  }

  .sidebar.menu-open {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 260;
  }

  .sidebar.menu-open .sidebar-logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .sidebar.menu-open .sidebar-body {
    display: flex;
    overflow-y: auto;
  }

  .db-main {
    margin-left: 0;
    min-width: 0;
  }

  .topbar {
    height: auto;
    min-height: 56px;
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .content {
    padding: 16px;
  }

  .popia-bar {
    font-size: 9px;
    padding: 6px 10px;
  }

  .demo-bar {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .demo-bar-cta {
    margin-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .billing-plans-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lookup-bar {
    flex-wrap: wrap;
    padding: 14px;
    gap: 10px;
  }

  .lookup-bar .form-group {
    flex: 1 1 100%;
    min-width: 0;
  }

  .lookup-bar [style*="width:170px"] {
    width: 100% !important;
  }

  .lookup-bar .btn {
    margin-top: 0;
    width: 100%;
    justify-content: center;
  }

  #dashboard-view .panel[style*="overflow:hidden"] {
    overflow-x: auto !important;
  }

  #dashboard-view table {
    min-width: 640px;
  }
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "anchors anchors";
    align-items: start;
    row-gap: 10px;
    padding: 14px 16px;
  }

  .nav-logo {
    grid-area: logo;
  }

  .nav-links {
    display: contents;
  }

  .nav-actions {
    grid-area: actions;
    justify-self: end;
  }

  .nav-demo-link {
    display: none;
  }

  .nav-anchors {
    grid-area: anchors;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 16px 8px 16px;
    background-color: #1f2033;
    margin: 8px 16px -80px 16px;
    border-radius: 16px;
  }

  .nav-link {
    font-size: 12px;
  }

  .btn-login {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 460px;
    margin-bottom: 32px;
  }

  .hero-ctas .btn-primary-hero,
  .hero-ctas .btn-ghost-hero {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
  }

  .hero-stats {
    width: 100%;
    max-width: 460px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat {
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .hero-stat:nth-child(2n) {
    border-right: none;
  }

  .hero-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hiw-visual {
    min-height: 0;
  }

  .features-head-grid,
  .features-grid,
  .compliance-inner,
  .lp-plans-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .features-grid {
    margin-top: 24px;
  }

  .trust-bar-img {
    width: 100%;
    height: auto;
    max-height: 120px;
    overflow: hidden;
  }

  .trust-bar-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}