/* Client Matching + Auto Offer — simulated enterprise demo (frontend only) */

.cmd-standalone .hero-studies {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* Bridge — matches property demo dark band */
.cmd-bridge {
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 1.5rem);
  background: linear-gradient(168deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.cmd-bridge__inner {
  max-width: min(52rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.cmd-bridge__eyebrow {
  margin: 0 0 0.5rem;
  font-family: Lexend, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.9);
}

.cmd-bridge__title {
  margin: 0 0 0.65rem;
  font-family: Syne, Lexend, sans-serif;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f8fafc;
}

.cmd-bridge__accent {
  background: linear-gradient(105deg, #93c5fd, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cmd-bridge__subtitle {
  margin: 0 auto 0.5rem;
  max-width: 38rem;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.94);
}

.cmd-bridge__lead {
  margin: 0 auto 0.85rem;
  max-width: 40rem;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
}

.cmd-bridge__tagline {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.95);
}

.cmd-bridge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.cmd-bridge__actions--grid {
  flex-direction: column;
  align-items: stretch;
  max-width: min(52rem, 100%);
  margin-left: auto;
  margin-right: auto;
  gap: 0.85rem;
}

.cmd-bridge__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 520px) {
  .cmd-bridge__btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: min(100%, 168px);
    font-size: 0.65rem;
    padding: 0 0.85rem;
  }

  .cmd-bridge__row .cmd-bridge__btn--link {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 0.15rem;
  }
}

.cmd-bridge__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-family: Lexend, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cmd-bridge__btn--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff !important;
  border: 2px solid transparent;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

.cmd-bridge__btn--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 219, 254, 0.7);
}

.cmd-bridge__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0 !important;
  border: 2px solid rgba(148, 163, 184, 0.35);
}

.cmd-bridge__btn--link {
  background: transparent;
  color: rgba(147, 197, 253, 0.95) !important;
  border: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

/* Main dashboard surface */
#cmd-demo.cmd-page {
  scroll-margin-top: 96px;
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1rem, 4vw, 1.5rem);
  background:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse 90% 55% at 10% 0%, rgba(37, 99, 235, 0.09), transparent 58%),
    radial-gradient(ellipse 70% 45% at 95% 20%, rgba(14, 165, 233, 0.07), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #e2e8f0 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%;
  color: #0f172a;
}

.cmd__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.cmd__intro {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 42rem;
}

.cmd__intro-eyebrow {
  margin: 0 0 0.35rem;
  font-family: Lexend, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2563eb;
}

.cmd__intro-title {
  margin: 0 0 0.5rem;
  font-family: Syne, Lexend, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.15;
  color: #0f172a;
}

.cmd__intro-title span {
  background: linear-gradient(105deg, #1d4ed8, #0369a1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cmd__intro-lead {
  margin: 0;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.95rem;
  line-height: 1.62;
  color: rgba(51, 65, 85, 0.92);
}

/* Two-column top */
.cmd__grid-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 1023px) {
  .cmd__grid-top {
    grid-template-columns: 1fr;
  }
}

.cmd__panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 18px 48px rgba(15, 23, 42, 0.07);
}

.cmd__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cmd__panel-title {
  margin: 0;
  font-family: Syne, Lexend, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.cmd__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cmd__badge {
  font-family: Lexend, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}

.cmd__badge--intent {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

.cmd__badge--active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.28);
  color: #1d4ed8;
}

.cmd__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}

@media (max-width: 560px) {
  .cmd__form-grid {
    grid-template-columns: 1fr;
  }
}

.cmd__form-grid--full {
  grid-column: 1 / -1;
}

.cmd__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: Lexend, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.cmd__input,
.cmd__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.72rem;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: #0f172a;
}

.cmd__textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}

.cmd__input:focus,
.cmd__textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Preference pills */
.cmd__prefs-title {
  margin: 1.25rem 0 0.65rem;
  font-family: Lexend, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #334155;
}

.cmd__pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cmd__pill {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.cmd__pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cmd__pill span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-family: Lexend, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #475569;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.cmd__pill input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.cmd__pill input:checked + span {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.1));
  border-color: rgba(37, 99, 235, 0.45);
  color: #1e40af;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.cmd__ai-summary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #334155;
}

.cmd__ai-summary strong {
  color: #0f172a;
  font-weight: 600;
}

/* Right column stack */
.cmd__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.5rem);
}

.cmd__ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.cmd__ai-actions .cmd__btn {
  flex: 1 1 auto;
  min-width: min(100%, 220px);
}

@media (max-width: 480px) {
  .cmd__ai-actions .cmd__btn {
    width: 100%;
    min-width: 0;
  }
}

.cmd__prop-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cmd__prop-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 520px) {
  .cmd__prop-card {
    grid-template-columns: 1fr;
  }
}

.cmd__prop-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.cmd__prop-card.is-dimmed {
  opacity: 0.55;
}

.cmd__prop-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.cmd__prop-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cmd__prop-title {
  margin: 0;
  font-family: Syne, Lexend, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cmd__prop-meta {
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.8rem;
  color: #64748b;
}

.cmd__prop-price {
  font-family: Lexend, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d4ed8;
}

.cmd__prop-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #475569;
}

.cmd__prop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cmd__tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
}

.cmd__match {
  font-family: Lexend, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

.cmd__match--strong {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.cmd__match--good {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.cmd__match--budget {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.cmd__prop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.cmd__check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-family: Lexend, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.cmd__check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* Automation */
.cmd__auto-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: Lexend, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.cmd__auto-status.is-on {
  color: #047857;
}

.cmd__switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cmd__switch-row:last-of-type {
  border-bottom: none;
}

.cmd__switch-label {
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

.cmd__switch-hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  max-width: 28rem;
}

.cmd__switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.cmd__switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cmd__switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e2e8f0;
  cursor: pointer;
  transition: background 0.22s ease;
}

.cmd__switch-slider::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  transition: transform 0.22s ease;
}

.cmd__switch input:checked + .cmd__switch-slider {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.cmd__switch input:checked + .cmd__switch-slider::after {
  transform: translateX(20px);
}

.cmd__switch input:focus-visible + .cmd__switch-slider {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.cmd__schedule {
  margin-top: 0.75rem;
}

.cmd__schedule-label {
  margin: 0 0 0.5rem;
  font-family: Lexend, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.cmd__segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cmd__segment {
  position: relative;
}

.cmd__segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cmd__segment span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 10px;
  font-family: Lexend, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 2px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.cmd__segment input:checked + span {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.cmd__segment input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.cmd__auto-panel[hidden] {
  display: none !important;
}

.cmd__explain {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #64748b;
}

/* Bottom grid */
.cmd__grid-bottom {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.cmd__grid-bottom .cmd__panel {
  min-width: 0;
}

@media (max-width: 900px) {
  .cmd__grid-bottom {
    grid-template-columns: 1fr;
  }
}

/* History table / timeline */
.cmd__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.cmd__table {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.84rem;
}

.cmd__table th {
  text-align: left;
  padding: 0.55rem 0.65rem;
  font-family: Lexend, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cmd__table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #334155;
  vertical-align: middle;
}

.cmd__table tr:last-child td {
  border-bottom: none;
}

/* Phone: history table as stacked cards (no horizontal scroll) */
@media (max-width: 639px) {
  .cmd__grid-bottom {
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .cmd__grid-bottom .cmd__panel {
    padding: 1.1rem 1rem;
    border-radius: 14px;
  }

  .cmd__grid-bottom .cmd__panel-title {
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
  }

  .cmd__table-wrap {
    margin: 0;
    padding: 0;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
  }

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

  .cmd__table tbody {
    display: block;
  }

  .cmd__table tr {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.95);
  }

  .cmd__table tr:last-child {
    margin-bottom: 0;
  }

  .cmd__table td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: middle;
  }

  .cmd__table td:last-of-type {
    border-bottom: none;
    padding-top: 0.65rem;
    margin-top: 0.15rem;
  }

  .cmd__table td::before {
    content: attr(data-label);
    flex: 0 0 34%;
    max-width: 8.5rem;
    font-family: Lexend, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.3;
  }

  .cmd__table td.cmd__table-cell--action {
    display: block;
  }

  .cmd__table td.cmd__table-cell--action::before {
    display: block;
    max-width: none;
    margin-bottom: 0.5rem;
  }

  .cmd__table td.cmd__table-cell--action .cmd__btn-mini {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .cmd__actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .cmd__actions-bar .cmd__btn {
    width: 100%;
    justify-content: center;
  }

  .cmd__grid-bottom .cmd__textarea {
    width: 100%;
    max-width: 100%;
    min-height: 4.5rem;
    box-sizing: border-box;
  }

  .cmd__grid-bottom .cmd__label {
    font-size: 0.72rem;
  }
}

.cmd__status-pill {
  display: inline-block;
  font-family: Lexend, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
}

.cmd__status-pill--sent {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.cmd__status-pill--opened {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.cmd__status-pill--clicked {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.cmd__btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 8px;
  font-family: Lexend, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid rgba(37, 99, 235, 0.25);
  background: #fff;
  color: #2563eb;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cmd__btn-mini:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: #2563eb;
  transform: translateY(-1px);
}

/* Actions bar */
.cmd__actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cmd__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.35rem;
  border-radius: 10px;
  font-family: Lexend, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.cmd__btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.35);
}

.cmd__btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(191, 219, 254, 0.85);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.42);
}

.cmd__btn--ghost {
  background: #fff;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.12);
}

.cmd__btn--ghost:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

/* Footer note */
.cmd__footnote {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.03), rgba(37, 99, 235, 0.04));
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.cmd__footnote p {
  margin: 0 0 0.85rem;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cmd__footnote-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Toast */
.cmd__toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 12000;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: Lexend, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.cmd__toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Modal */
.cmd-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cmd-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-modal[hidden] {
  display: none !important;
}

.cmd-modal.is-open:not([hidden]) {
  display: flex !important;
}

.cmd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.cmd-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  padding: clamp(1.15rem, 3vw, 1.5rem);
}

.cmd-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cmd-modal__close:hover {
  background: rgba(15, 23, 42, 0.1);
}

.cmd-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-family: Lexend, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.cmd-modal__title {
  margin: 0 0 0.5rem;
  font-family: Syne, Lexend, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  padding-right: 2.5rem;
}

.cmd-modal__meta {
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.cmd-modal__props {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cmd-modal__prop {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}

.cmd-modal__prop img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.cmd-modal__prop h4 {
  margin: 0 0 0.2rem;
  font-family: Lexend, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.cmd-modal__prop p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

/* AI / enterprise loading overlay */
.cmd-gen-overlay {
  position: fixed;
  inset: 0;
  z-index: 100081;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 1.5rem);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cmd-gen-overlay[hidden] {
  display: none !important;
}

.cmd-gen-overlay__card {
  width: min(440px, 100%);
  padding: clamp(1.5rem, 4vw, 2.1rem);
  border-radius: 18px;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.cmd-gen-overlay__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(14, 165, 233, 0.22));
  border: 1px solid rgba(147, 197, 253, 0.4);
  position: relative;
  animation: cmd-gen-pulse 1.25s ease-in-out infinite;
}

.cmd-gen-overlay__mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 8px;
  border: 2px solid transparent;
  border-top-color: rgba(147, 197, 253, 0.95);
  animation: cmd-gen-spin 0.88s linear infinite;
}

@keyframes cmd-gen-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cmd-gen-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.03);
  }
}

.cmd-gen-overlay__eyebrow {
  margin: 0 0 0.35rem;
  font-family: Lexend, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.88);
}

.cmd-gen-overlay__title {
  margin: 0 0 0.5rem;
  font-family: Syne, Lexend, sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.cmd-gen-overlay__sub {
  margin: 0 0 1.1rem;
  font-family: "DM Sans", Lato, sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.9);
}

.cmd-gen-overlay__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cmd-gen-overlay__bar-fill {
  display: block;
  height: 100%;
  width: 36%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  animation: cmd-gen-bar 1.05s ease-in-out infinite;
}

@keyframes cmd-gen-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(280%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmd-gen-overlay__mark,
  .cmd-gen-overlay__bar-fill {
    animation: none;
  }

  .cmd-gen-overlay__mark::after {
    animation: none;
  }

  .cmd__btn,
  .cmd__btn-mini,
  .cmd-bridge__btn,
  .cmd__prop-card {
    transition: none;
  }

  .cmd__btn:hover,
  .cmd__btn--primary:hover,
  .cmd-bridge__btn--primary:hover,
  .cmd__btn-mini:hover {
    transform: none;
  }
}
