@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --text: #102132;
  --muted: #5d6c80;
  --brand: #0a6ed1;
  --brand-strong: #0856a6;
  --brand-soft: #d9e9fb;
  --border: #dbe5f0;
  --danger: #b42318;
  --success: #157347;
  --shadow: 0 14px 32px rgba(8, 29, 53, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at -15% -15%, #d8e9fb 0%, transparent 58%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 45%);
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #123250;
  width: 100%;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.auth-brand:hover {
  opacity: 0.78;
}

.auth-brand-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: linear-gradient(165deg, #082033 0%, #0a2f4a 48%, #0f3c5d 100%);
  color: #dce8f4;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(193, 213, 232, 0.2);
}

.sidebar h1 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.sidebar .muted {
  color: #b7cee4;
  font-size: 0.86rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand > div {
  min-width: 0;
}

.sidebar-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 12px;
  border-color: rgba(217, 231, 245, 0.4);
  background: rgba(221, 234, 247, 0.08);
  box-shadow: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: #ecf5ff;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list::-webkit-scrollbar {
  height: 6px;
}

.nav-list button {
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.nav-list button.active,
.nav-list button:hover {
  background: rgba(214, 230, 246, 0.16);
  border-color: rgba(206, 224, 243, 0.4);
}

.nav-list button:active {
  transform: translateY(1px);
}

.content {
  padding: 26px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

.topbar h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.user-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(10, 46, 78, 0.05);
}

.panel {
  display: none;
  animation: panel-in 0.24s ease;
}

.panel.active {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 14px;
}

.stat-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 7px 18px rgba(7, 29, 50, 0.04);
}

.card {
  margin-bottom: 14px;
}

.stat-card h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: #2e455e;
}

.stat-card p {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #07253f;
}

.video-placeholder {
  position: relative;
  overflow: hidden;
  border: 1px solid #bfd3e8;
  border-radius: 16px;
  min-height: 300px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(100deg, rgba(7, 28, 50, 0.9) 0%, rgba(10, 55, 95, 0.78) 45%, rgba(8, 42, 75, 0.3) 100%),
    url("/assets/dashboard-tour-background.png"),
    linear-gradient(135deg, #0f3f66 0%, #0b6ab7 48%, #4d92d3 100%);
  background-size: cover;
  background-position: center;
  color: #eef6ff;
  padding: 24px;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 210, 90, 0.35) 0%, rgba(255, 210, 90, 0) 70%);
  pointer-events: none;
}

.video-placeholder__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.video-placeholder__eyebrow {
  margin: 0 0 10px;
  color: #ffd35c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-placeholder h4 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.08;
  color: #ffffff;
}

.video-placeholder p {
  margin: 0 0 18px;
  max-width: 52ch;
  color: rgba(238, 246, 255, 0.9);
}

.video-placeholder__cta {
  width: auto;
  min-width: 160px;
  border-color: #ffd35c;
  background: linear-gradient(180deg, #ffda69 0%, #f2c942 100%);
  color: #123250;
  box-shadow: 0 14px 28px rgba(7, 28, 50, 0.18);
}

.video-placeholder__cta:hover {
  filter: brightness(0.98);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid > button,
.form-grid > .form-message {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.93rem;
  color: #2b4257;
  font-weight: 600;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #9ec4ec;
  box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.15);
}

button {
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: linear-gradient(180deg, #137ce5 0%, var(--brand) 100%);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

button:hover {
  filter: brightness(0.97);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  margin-top: auto;
  background: rgba(221, 234, 247, 0.08);
  border-color: rgba(217, 231, 245, 0.55);
  color: #ecf5ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: linear-gradient(180deg, #137ce5 0%, var(--brand) 100%);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  filter: brightness(0.97);
}

.btn:active {
  transform: translateY(1px);
}

.btn-soft {
  background: var(--surface-soft);
  color: #1f3f62;
  border-color: var(--border);
  font-weight: 600;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

.plans-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-card {
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fcfeff 0%, #f2f8ff 100%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: #b8d3ef;
  box-shadow: 0 10px 20px rgba(9, 45, 78, 0.08);
}

.plan-card h4 {
  margin: 0 0 6px;
}

.plan-card s {
  color: #74889f;
}

.plan-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-head .muted {
  margin: 0;
}

.plan-price p {
  margin: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f4f92;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-features {
  margin: 0;
  padding-left: 18px;
  color: #2c4e6e;
}

.plan-features li {
  margin: 0 0 4px;
}

.plan-feature-empty {
  margin: 0;
}

.download-links {
  display: grid;
  gap: 12px;
}

.batch-progress-card {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #d3e4f5;
  border-radius: 16px;
  background: #f7fbff;
}

.batch-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.batch-progress-head p {
  margin: 4px 0 0;
}

.batch-progress-value {
  min-width: 54px;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d4f92;
}

.batch-progress-bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: #dce9f7;
  overflow: hidden;
}

.batch-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1b6dd1 0%, #2c8cff 100%);
  transition: width 0.3s ease;
}

.download-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  color: #0d4f92;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #d3e4f5;
  background: #f7fbff;
}

.download-link:focus-visible,
.nav-list button:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(10, 110, 209, 0.24);
  outline-offset: 2px;
}

.download-link:hover {
  background: #eff6ff;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e1eaf3;
  padding: 10px 9px;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  color: #34506a;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

td code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  background: #eef4fa;
  padding: 2px 6px;
  border-radius: 8px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.auth-links a {
  color: #0d4f92;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.page-copyright {
  font-size: 0.84rem;
  color: #6d8093;
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: min(420px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid #cbdcf0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(12, 40, 64, 0.18);
}

.cookie-consent__content strong {
  display: block;
  margin-bottom: 6px;
  color: #15324b;
}

.cookie-consent__content p {
  margin: 0;
  color: #4c6480;
  font-size: 0.95rem;
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.auth-copyright {
  text-align: center;
  margin-top: 14px;
}

.dashboard-copyright {
  padding: 0 26px 26px;
  text-align: right;
}

.home-footer .page-copyright {
  margin: 18px 0 0;
  color: #b8cde0;
  text-align: center;
}

.captcha-widget {
  min-height: 78px;
}

.payment-details p {
  margin: 0 0 8px;
}

.payment-note {
  background: #f6fbff;
  border: 1px solid #d5e8fb;
  border-radius: 10px;
  padding: 10px 12px;
}

.payment-note a {
  color: #0d4f92;
  font-weight: 700;
  text-decoration: none;
}

.payment-note a:hover {
  text-decoration: underline;
}

.payment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-actions button {
  width: 100%;
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    gap: 12px;
    padding: 14px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(193, 213, 232, 0.2);
  }

  .nav-list {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 4px;
  }

  .sidebar.is-open .nav-list {
    display: grid;
  }

  .nav-list button {
    white-space: normal;
    min-height: 48px;
  }

  #logout-btn {
    display: none;
  }

  .sidebar.is-open #logout-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .content {
    padding: 16px;
  }

  .dashboard-copyright {
    padding: 0 16px 16px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px 16px;
  }

  .sidebar {
    padding: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .payment-actions {
    grid-template-columns: 1fr;
  }

  .sidebar-brand {
    align-items: center;
    gap: 8px;
  }

  .sidebar h1 {
    font-size: 1rem;
  }

  .sidebar .muted {
    font-size: 0.8rem;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .cookie-consent__actions .btn {
    width: 100%;
  }

  .content {
    padding: 12px;
  }

  .dashboard-copyright {
    padding: 0 12px 12px;
  }

  .card,
  .stat-card {
    padding: 15px;
  }

  .card h3,
  .stat-card h3 {
    font-size: 0.92rem;
  }

  .stat-card p {
    font-size: 1.75rem;
  }

  .video-placeholder {
    min-height: 260px;
    padding: 18px;
  }

  .video-placeholder h4 {
    font-size: 1.5rem;
  }

  .video-placeholder__cta {
    width: 100%;
  }

  .batch-progress-head {
    flex-direction: column;
    align-items: stretch;
  }

  .batch-progress-value {
    text-align: left;
  }

  .user-chip {
    width: 100%;
    border-radius: 14px;
  }

  .download-link,
  .btn,
  button {
    min-height: 46px;
  }

  .download-link {
    width: 100%;
    justify-content: center;
  }

  .table-wrap.mobile-cards table,
  .table-wrap table.mobile-cards {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-wrap.mobile-cards thead,
  .table-wrap table.mobile-cards thead {
    display: none;
  }

  .table-wrap.mobile-cards tbody,
  .table-wrap.mobile-cards tr,
  .table-wrap.mobile-cards td,
  .table-wrap table.mobile-cards tbody,
  .table-wrap table.mobile-cards tr,
  .table-wrap table.mobile-cards td {
    display: block;
    width: 100%;
  }

  .table-wrap.mobile-cards tr,
  .table-wrap table.mobile-cards tr {
    background: #fff;
    border: 1px solid #e1eaf3;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(7, 29, 50, 0.04);
  }

  .table-wrap.mobile-cards td,
  .table-wrap table.mobile-cards td {
    border-bottom: 0;
    padding: 6px 0;
    font-size: 0.92rem;
  }

  .table-wrap.mobile-cards td::before,
  .table-wrap table.mobile-cards td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #52697f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .table-wrap.mobile-cards td:empty,
  .table-wrap table.mobile-cards td:empty {
    display: none;
  }

  .table-wrap.mobile-cards td .btn,
  .table-wrap.mobile-cards td button,
  .table-wrap table.mobile-cards td .btn,
  .table-wrap table.mobile-cards td button {
    width: 100%;
    margin-top: 6px;
  }
}

.home-body {
  background:
    radial-gradient(900px 580px at 0% -5%, #dae9f7 0%, transparent 62%),
    radial-gradient(900px 620px at 105% 0%, #e5f3e9 0%, transparent 66%),
    #f3f7fb;
}

.home-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(244, 249, 255, 0.85);
  border-bottom: 1px solid #dce7f2;
}

.home-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(130deg, #0a6ed1 0%, #0d4f92 100%);
  color: #fff;
  font-weight: 800;
}

.brand-name {
  font-weight: 800;
  color: #0c2944;
}

.home-menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-menu a {
  text-decoration: none;
  font-weight: 700;
  color: #35506a;
  font-size: 0.92rem;
}

.home-actions {
  display: inline-flex;
  gap: 8px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.9) 0%, rgba(236, 244, 251, 0.92) 100%);
  border-top: 1px solid #dfeaf4;
  border-bottom: 1px solid #dfeaf4;
}

.hero {
  padding: 58px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.hero-kicker {
  margin: 0 0 10px;
  color: #0f4f92;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  color: #0c2740;
}

.hero-text {
  margin: 0 0 18px;
  max-width: 58ch;
  color: #3f5c77;
  font-size: 1.03rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-note {
  color: #5b6f84;
  margin: 0;
}

.hero-note a {
  color: #0f4f92;
  font-weight: 700;
}

.hero-demo {
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 34px rgba(12, 40, 64, 0.1);
}

.hero-demo h3 {
  margin: 0 0 8px;
}

.support-hero .hero-grid {
  align-items: start;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.support-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(12, 40, 64, 0.08);
}

.support-card h2,
.support-card h3,
.support-aside h3,
.support-aside h4 {
  margin-top: 0;
}

.support-list {
  margin: 8px 0 0 18px;
}

.support-list li + li {
  margin-top: 6px;
}

.support-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #dce8f3;
  background: rgba(255, 255, 255, 0.82);
  color: #395772;
  font-size: 0.88rem;
}

.support-pill a {
  color: #0f4f92;
  font-weight: 700;
}

.support-note {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border-left: 4px solid #f0b24b;
  background: #fff6e6;
  color: #5a4720;
}

.support-note a {
  color: inherit;
}

.support-note-ok {
  border-left-color: #2b9a62;
  background: #ebfbf3;
  color: #1f5f41;
}

.support-note-danger {
  border-left-color: #cc4b52;
  background: #fff0f1;
  color: #7f2f36;
}

.support-kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #d6e3ef;
  background: #f4f8fc;
  color: #17324d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.section > .home-container > h2 + .muted {
  margin-top: 0;
  margin-bottom: 24px;
}

.demo-screen {
  margin: 14px 0;
  border: 1px solid #c7d8ea;
  border-radius: 12px;
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(7, 27, 45, 0.18), rgba(7, 27, 45, 0.18)),
    radial-gradient(circle at 20% 20%, rgba(74, 163, 255, 0.38), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(62, 207, 142, 0.24), transparent 24%),
    linear-gradient(145deg, rgba(10, 110, 209, 0.1), rgba(15, 79, 146, 0.04)),
    url("/assets/nametoprofile-logo.png"),
    #f8fbff;
  background-size: auto, auto, auto, auto, cover, auto;
  background-position: center, top left, top right, center, center, center;
  background-repeat: no-repeat;
  color: #4f6882;
  font-weight: 700;
  overflow: hidden;
}

.demo-screen .btn {
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(7, 27, 45, 0.22);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  padding: 16px;
}

.step-card span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e2effb;
  color: #0f4f92;
  font-weight: 800;
}

.step-card h3 {
  margin: 10px 0 6px;
}

.step-card p {
  margin: 0;
  color: #506a83;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-tile {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  padding: 16px;
}

.feature-tile h3 {
  margin: 0 0 6px;
}

.feature-tile p {
  margin: 0;
  color: #506a83;
}

.pricing-head {
  margin-bottom: 14px;
}

#home-pricing-grid .plan-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.price-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e2f2e8;
  color: #18643b;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cta-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 8px 0 0;
  color: #506a83;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card .btn {
  align-self: flex-end;
}

.legal-main {
  padding: 48px 0 72px;
}

.legal-shell {
  display: grid;
  gap: 24px;
}

.legal-hero,
.legal-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(8, 29, 53, 0.08);
}

.legal-hero {
  padding: 28px;
}

.legal-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #0c2740;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: #44617c;
}

.legal-card {
  padding: 28px;
}

.legal-card section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2ebf4;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #123250;
}

.legal-card p,
.legal-card li {
  color: #405a73;
  line-height: 1.7;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card strong {
  color: #102132;
}

.home-footer {
  background: linear-gradient(165deg, #0a2439 0%, #0f2f4b 100%);
  color: #d5e3ef;
  padding: 34px 0;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-footer h4 {
  margin: 0 0 10px;
  color: #f0f7ff;
}

.home-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.home-footer a {
  color: #d5e9fb;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .home-menu {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .support-grid,
  .contact-grid,
  .steps-grid,
  .feature-grid,
  .footer-grid,
  .legal-meta {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }
}

/* ===========================================
   SITE HEADER + NAVIGATION (NEW)
   =========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(244, 249, 255, 0.93);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav-brand-name {
  font-weight: 800;
  font-size: 0.97rem;
  color: #0c2944;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.site-nav-item {
  position: relative;
}

.site-nav-item > a,
.site-nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #35506a;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.site-nav-item > a:hover,
.site-nav-dropdown-btn:hover,
.site-nav-item.is-open .site-nav-dropdown-btn {
  background: var(--brand-soft);
  color: var(--brand);
}

.site-nav-dropdown-btn .caret {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.site-nav-item.is-open .caret {
  transform: rotate(180deg);
}

.site-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 216px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 6px;
  box-shadow: 0 22px 44px rgba(8, 29, 53, 0.13);
  display: none;
  z-index: 200;
  animation: dropdownIn 0.12s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-nav-item.is-open .site-dropdown {
  display: block;
}

.site-dropdown a {
  display: block;
  padding: 7px 11px;
  border-radius: 7px;
  text-decoration: none;
  color: #2c4a66;
  font-weight: 600;
  font-size: 0.86rem;
  transition: background 0.1s;
}

.site-dropdown a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.site-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 3px;
}

.site-dropdown-all {
  color: var(--brand) !important;
  font-weight: 700 !important;
}

.site-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.site-nav-actions .btn,
.site-nav-actions .btn-soft {
  font-size: 0.86rem;
  padding: 8px 14px;
  min-height: 36px;
}

.site-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.site-nav-hamburger span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #2c4a66;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 25, 45, 0.55);
}

.mobile-nav-overlay.is-open {
  display: block;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--surface);
  padding: 18px 16px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -14px 0 40px rgba(8, 25, 45, 0.18);
}

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: #2c4a66;
  font-family: inherit;
}

.mobile-nav-section {}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.93rem;
  color: #1c3a55;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.mobile-nav-toggle:hover {
  background: var(--surface-soft);
}

.mobile-nav-toggle .caret {
  width: 13px;
  height: 13px;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.mobile-nav-section.is-open .mobile-nav-toggle .caret {
  transform: rotate(180deg);
}

.mobile-nav-subitems {
  display: none;
  padding: 2px 6px 6px;
}

.mobile-nav-section.is-open .mobile-nav-subitems {
  display: block;
}

.mobile-nav-subitems a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: #2c4a66;
  font-weight: 600;
  font-size: 0.88rem;
}

.mobile-nav-subitems a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: #1c3a55;
  font-weight: 700;
  font-size: 0.93rem;
}

.mobile-nav-link:hover {
  background: var(--surface-soft);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mobile-nav-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-nav-actions .btn,
.mobile-nav-actions .btn-soft {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

/* ===========================================
   SITE FOOTER (NEW – 5 column)
   =========================================== */

.site-footer {
  background: linear-gradient(165deg, #071f35 0%, #0c2d4a 100%);
  color: #c8dced;
  padding: 52px 0 28px;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 38px;
}

.site-footer-brand {}

.site-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 12px;
}

.site-footer-brand-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-footer-brand-link span {
  font-weight: 800;
  color: #e8f4ff;
  font-size: 0.97rem;
}

.site-footer-brand p {
  color: #7ea8c5;
  font-size: 0.87rem;
  line-height: 1.62;
  max-width: 26ch;
  margin: 0 0 16px;
}

.site-footer-social {
  display: flex;
  gap: 8px;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(200, 220, 237, 0.18);
  color: #9ec4dc;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.13s, color 0.13s;
}

.site-footer-social a:hover {
  background: rgba(200, 220, 237, 0.1);
  color: #d5e9fb;
}

.site-footer-col h5 {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6a9fbf;
  margin: 0 0 11px;
}

.site-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.site-footer-col a {
  color: #b5d0e5;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.12s;
}

.site-footer-col a:hover {
  color: #e2f0ff;
}

.site-footer-divider {
  height: 1px;
  background: rgba(200, 220, 237, 0.1);
  margin-bottom: 22px;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-copyright {
  font-size: 0.8rem;
  color: #5a7f9b;
  margin: 0;
}

.site-footer-copyright a {
  color: #5a7f9b;
  text-decoration: none;
}

/* ===========================================
   TRUST BAR
   =========================================== */

.trust-bar {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(215, 230, 245, 0.8);
  border-bottom: 1px solid rgba(215, 230, 245, 0.8);
  padding: 12px 0;
}

.trust-bar-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2c4e6e;
  white-space: nowrap;
}

.trust-bar-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #e2f3ea;
  color: #1a7a4d;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===========================================
   TESTIMONIALS
   =========================================== */

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(8, 29, 53, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  font-size: 0.95rem;
  color: #f59d0f;
}

.testimonial-card blockquote {
  margin: 0;
  color: #2a4060;
  font-size: 0.95rem;
  line-height: 1.67;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1c3a55;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===========================================
   INTEGRATION TILES (ENHANCED)
   =========================================== */

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.integration-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.integration-tile:hover:not(.integration-coming-soon) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(8, 29, 53, 0.09);
  border-color: #b8d3ef;
}

.integration-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.integration-tile h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #0c2740;
}

.integration-tile p {
  margin: 0;
  color: #506a83;
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.integration-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
}

.integration-coming-soon {
  opacity: 0.68;
  cursor: default;
}

.coming-soon-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0f4f8;
  color: #566e84;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ===========================================
   SERVICE CARDS
   =========================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 29, 53, 0.08);
}

.service-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e8f1fd 0%, #d4e7fb 100%);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.service-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #0c2740;
}

.service-card p {
  margin: 0;
  color: #506a83;
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

/* ===========================================
   CTA BANNER (FULL-WIDTH)
   =========================================== */

.cta-banner-wrap {
  padding: 64px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #073762 0%, #0a6ed1 100%);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 26px;
  font-size: 1.05rem;
}

.cta-banner-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: #073762;
  border-color: #fff;
  font-weight: 700;
}

.btn-white:hover {
  filter: brightness(0.96);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  font-weight: 700;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  filter: none;
}

/* ===========================================
   PAGE HERO (inner marketing pages)
   =========================================== */

.page-hero {
  padding: 52px 0 44px;
  background: linear-gradient(165deg, #f0f7ff 0%, #e8f2fb 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-hero-breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.page-hero-breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin: 0 0 9px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  color: #0c2740;
  max-width: 22ch;
  line-height: 1.12;
}

.page-hero-lead {
  color: #3f5c77;
  font-size: 1.04rem;
  max-width: 60ch;
  line-height: 1.68;
  margin: 0 0 22px;
}

.page-hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===========================================
   INNER PAGE LAYOUT & COMPONENTS
   =========================================== */

.inner-page-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.inner-section {
  padding: 56px 0;
}

.inner-section + .inner-section {
  border-top: 1px solid var(--border);
}

.inner-section-alt {
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.9) 0%, rgba(236, 244, 252, 0.9) 100%);
  border-top: 1px solid #dfeaf4;
  border-bottom: 1px solid #dfeaf4;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.two-col-wide {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.section-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin: 0 0 8px;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #0c2740;
  margin: 0 0 12px;
  line-height: 1.2;
}

.section-lead {
  color: #3f5c77;
  font-size: 1rem;
  line-height: 1.68;
  max-width: 64ch;
  margin: 0 0 28px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #2c4a66;
  font-size: 0.94rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #e2f2e8;
  color: #1a7a4d;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.steps-list {
  display: grid;
  gap: 18px;
}

.step-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.step-num {
  width: 33px;
  height: 33px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-item-body h4 {
  margin: 0 0 4px;
  color: #0c2740;
  font-size: 1rem;
}

.step-item-body p {
  margin: 0;
  color: #506a83;
  font-size: 0.91rem;
  line-height: 1.6;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
}

.benefit-card h4 {
  margin: 0 0 5px;
  color: #0c2740;
  font-size: 0.95rem;
}

.benefit-card p {
  margin: 0;
  color: #506a83;
  font-size: 0.87rem;
  line-height: 1.55;
}

.highlight-box {
  background: var(--brand-soft);
  border: 1px solid #c2d9f5;
  border-radius: 14px;
  padding: 20px 22px;
}

.highlight-box h4 {
  margin: 0 0 6px;
  color: #073762;
}

.highlight-box p {
  margin: 0;
  color: #1e4878;
  font-size: 0.93rem;
  line-height: 1.6;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.13s, box-shadow 0.13s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 29, 53, 0.08);
}

.related-card h4 {
  margin: 0 0 5px;
  font-size: 0.9rem;
  color: #0c2740;
}

.related-card p {
  margin: 0;
  font-size: 0.83rem;
  color: #506a83;
}

/* ===========================================
   PRICING PAGE
   =========================================== */

.pricing-trust-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pricing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3c5e7d;
}

.credit-explain-box {
  background: var(--brand-soft);
  border: 1px solid #c0d9f5;
  border-radius: 13px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.credit-explain-box h4 {
  margin: 0 0 3px;
  color: #0b3060;
  font-size: 0.93rem;
}

.credit-explain-box p {
  margin: 0;
  color: #1d4d78;
  font-size: 0.87rem;
  line-height: 1.55;
}

/* ===========================================
   CONTACT PAGE
   =========================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 26px;
}

.contact-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.88rem;
}

.contact-info-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

.contact-info-value {
  font-weight: 600;
  color: #1c3a55;
  font-size: 0.93rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.86rem;
  color: #1c3a55;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.13s, box-shadow 0.13s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

/* ===========================================
   FAQ PAGE
   =========================================== */

.faq-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0c2740;
  margin: 0 0 13px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--brand-soft);
}

.faq-group {
  margin-bottom: 36px;
}

/* ===========================================
   BLOG STYLES
   =========================================== */

/* ===========================================================================
   BLOG — listing, cards, post detail, category nav, pagination, tags
   =========================================================================== */

/* ---- Card grid (listing) ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-grid-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---- Card ---- */
.blog-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(8, 29, 53, 0.10);
}

/* Card image */
.blog-card-image,
.blog-card-img-wrap {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.blog-card-image img,
.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.blog-card-img-sm {
  aspect-ratio: 16 / 9;
  max-height: none;
}

/* Card body */
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Category badge (shared: card + post header) */
.blog-category-badge,
.blog-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  letter-spacing: 0.01em;
  transition: background 0.12s;
}

.blog-category-badge:hover,
.blog-cat-badge:hover {
  background: #DBEAFE;
  text-decoration: none;
}

/* Card title */
.blog-card h3,
.blog-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1A202C;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: #2563EB;
}
.blog-card-title-sm {
  font-size: 1.05rem;
}

/* Card excerpt */
.blog-card-excerpt {
  color: #64748B;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta row (date, read time) */
.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: auto;
  padding-top: 10px;
}

.blog-meta-sep {
  color: #CBD5E1;
}

/* ---- Featured card (hero on listing page 1) ---- */
.blog-card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.blog-card-featured .blog-card-image,
.blog-card-featured .blog-card-img-wrap {
  width: 48%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 240px;
}

.blog-card-featured .blog-card-body {
  padding: 28px 28px;
  justify-content: center;
}

.blog-card-featured .blog-card-title {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.blog-card-featured .blog-card-excerpt {
  -webkit-line-clamp: 4;
  font-size: 0.92rem;
}

/* ---- Blog post detail layout ---- */
.blog-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* White content card with subtle shadow + top accent highlight */
.blog-article-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 48px 56px 56px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

/* Highlight: thin accent bar at the top of the card */
.blog-article-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 50%, #93C5FD 100%);
  border-radius: 18px 18px 0 0;
}

@media (max-width: 760px) {
  .blog-article-wrap {
    padding: 32px 24px 36px;
    border-radius: 14px;
  }
  .blog-article-wrap::before {
    border-radius: 14px 14px 0 0;
  }
}

/* Post header */
.blog-article-header {
  margin-bottom: 28px;
}

.blog-article-header h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 12px 0 16px;
  color: #1A202C;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.blog-article-dek {
  font-size: 1.18rem;
  color: #64748B;
  line-height: 1.65;
  margin: 0 0 20px;
}

/* Featured image */
.blog-article-hero-img {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 480px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}
.blog-article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

/* Post tags */
.blog-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}
.blog-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.blog-tag-chip:hover {
  background: #E2E8F0;
  color: #1E293B;
  text-decoration: none;
}

/* ---- Previous / Next post navigation ---- */
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
}
.blog-post-nav-card {
  display: block;
  padding: 18px 22px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  text-decoration: none;
  color: #1A202C;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.blog-post-nav-card:hover {
  border-color: #BFDBFE;
  background: #F8FAFC;
  text-decoration: none;
  transform: translateY(-1px);
}
.blog-post-nav-label {
  display: block;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.blog-post-nav-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1A202C;
}
.blog-post-nav-card-next {
  text-align: right;
}
@media (max-width: 640px) {
  .blog-post-nav { grid-template-columns: 1fr; }
  .blog-post-nav-card-next { text-align: left; }
}

/* ---- Desktop table of contents sidebar ---- */
.blog-toc-wrap {
  display: none;
}
.blog-toc-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid #E2E8F0;
}
.blog-toc-list li { margin: 0; }
.blog-toc-item {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -2px;
  font-size: 0.88rem;
  color: #64748B;
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.5;
  transition: color 0.15s, border-color 0.15s;
}
.blog-toc-item:hover {
  color: #1A202C;
  text-decoration: none;
}
.blog-toc-item.is-active {
  color: #2563EB;
  border-left-color: #2563EB;
  font-weight: 600;
}

@media (min-width: 1200px) {
  .blog-shell {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 48px;
    align-items: start;
  }
  .blog-article-wrap {
    margin: 0;
    min-width: 0;
  }
  .blog-toc-wrap {
    display: block;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-top: 8px;
  }
}

/* ---- Recent posts section ---- */
.blog-recent-posts {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 20px;
}
.blog-recent-posts h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.blog-recent-posts .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .blog-recent-posts .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-recent-posts .blog-grid { grid-template-columns: 1fr; }
}

/* ---- Blog body (article content) ---- */
.blog-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #334155;
}

.blog-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1A202C;
  margin: 44px 0 14px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: 88px;
}

.blog-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A202C;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
  scroll-margin-top: 88px;
}

.blog-body p {
  margin: 0 0 18px;
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.blog-body li + li {
  margin-top: 6px;
}

.blog-body a {
  color: #2563EB;
  font-weight: 600;
}

.blog-body a:hover {
  text-decoration: underline;
}

.blog-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #2563EB;
  background: #F8FAFC;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #475569;
}

.blog-body pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  margin: 0 0 18px;
  line-height: 1.65;
}

.blog-body code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 5px;
  color: #334155;
}

.blog-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  display: block;
  overflow-x: auto;
}

.blog-body th,
.blog-body td {
  border: 1px solid #E2E8F0;
  padding: 10px 13px;
  font-size: 0.92rem;
  text-align: left;
  vertical-align: top;
}

.blog-body th {
  background: #F8FAFC;
  font-weight: 700;
  color: #1A202C;
}

.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0;
  display: block;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs-sep {
  color: #CBD5E1;
}

/* ---- Pagination ---- */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span,
.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #334155;
  transition: background 0.12s, border-color 0.12s;
}

.blog-pagination a:hover,
.blog-page-link:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.blog-pagination .pg-current,
.blog-page-current {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

.blog-page-ellipsis {
  color: #94A3B8;
  padding: 0 4px;
}

.blog-pagination .pg-disabled {
  opacity: 0.38;
  pointer-events: none;
}

/* ---- Related posts ---- */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---- Empty / error states ---- */
.blog-empty,
.blog-empty-state {
  text-align: center;
  padding: 72px 20px;
  color: #64748B;
}

.blog-empty h3,
.blog-empty-state h2 {
  color: #1A202C;
  margin: 0 0 10px;
}

.blog-empty p,
.blog-empty-state p {
  margin: 0 0 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Blog category nav (horizontal text tabs) ---- */
.blog-category-nav {
  padding: 0;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-category-nav .inner-page-wrap {
  display: flex;
  gap: 28px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.blog-cat-tab {
  display: inline-block;
  padding: 16px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.blog-cat-tab:hover {
  color: #1A202C;
  text-decoration: none;
}

.blog-cat-tab.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}

/* Legacy chip class — kept styled for any remaining usages */
.blog-category-nav-item,
.blog-cat-chip {
  display: inline-block;
  padding: 16px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #64748B;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.blog-category-nav-item:hover,
.blog-cat-chip:hover {
  color: #1A202C;
}
.blog-category-nav-item.active,
.blog-cat-chip.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}

/* ---- Blog inline CTA ---- */
.blog-cta-inline {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 32px 0;
}

.blog-cta-inline h4 {
  margin: 0 0 6px;
  color: #1E3A5F;
  font-weight: 700;
}

.blog-cta-inline p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 0.94rem;
}

/* ---- Homepage blog preview ---- */
.home-blog-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ===========================================
   RESPONSIVE – NEW COMPONENTS
   =========================================== */

@media (max-width: 1100px) {
  .site-nav-links {
    display: none;
  }

  .site-nav-hamburger {
    display: inline-flex;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .integration-grid,
  .service-grid,
  .testimonials-grid,
  .related-posts-grid,
  .blog-grid,
  .blog-grid-related,
  .home-blog-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-card-featured {
    flex-direction: column;
  }

  .blog-card-featured .blog-card-image,
  .blog-card-featured .blog-card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .two-col,
  .two-col-wide,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .integration-grid,
  .service-grid,
  .testimonials-grid,
  .related-posts-grid,
  .blog-grid,
  .blog-grid-related,
  .home-blog-preview,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 34px 20px;
    border-radius: 14px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .page-hero {
    padding: 34px 0 28px;
  }

  .inner-section {
    padding: 40px 0;
  }
}

/* ---------------------------------------------------------------------------
   Pricing page — SSR plans, offer banner, promo code
   --------------------------------------------------------------------------- */

.pricing-offer-banner {
  background: linear-gradient(90deg, #0a6ed1 0%, #0f4f92 100%);
  color: #fff;
  padding: 14px 0;
  text-align: center;
}

.pricing-offer-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  line-height: 1.4;
}

.pricing-offer-banner strong {
  font-weight: 700;
}

.pricing-offer-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-offer-sep {
  opacity: 0.55;
}

.pricing-offer-expires {
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Enhanced plan card layout for SSR pricing */
.plan-card-popular {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.18), 0 12px 24px rgba(9, 45, 78, 0.12) !important;
  position: relative;
}

.plan-credits-line {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0c2740;
  margin: 0;
}

.plan-price {
  padding: 8px 0;
  border-top: 1px solid rgba(10, 110, 209, 0.08);
  border-bottom: 1px solid rgba(10, 110, 209, 0.08);
  margin: 4px 0;
}

.plan-price-main {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0c2740;
  margin: 0;
  line-height: 1.1;
}

.plan-price-strike {
  font-size: 1rem;
  color: #8a9db2;
  text-decoration: line-through;
  margin: 0 0 2px;
  font-weight: 600;
}

.plan-price-per-unit {
  font-size: 0.82rem;
  color: #6b7f94;
  margin: 4px 0 0;
}

.plan-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.pricing-empty-state h3 {
  margin: 0 0 8px;
  color: #0c2740;
}

.pricing-empty-state p {
  margin: 0;
  color: var(--muted);
}

/* Promo code input block */
.promo-code-section {
  max-width: 560px;
  margin: 40px auto 0;
}

.promo-code-section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  transition: box-shadow 0.16s ease;
}

.promo-code-section details[open] {
  box-shadow: 0 8px 20px rgba(9, 45, 78, 0.06);
}

.promo-code-section summary {
  cursor: pointer;
  font-weight: 600;
  color: #0c2740;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-code-section summary::-webkit-details-marker {
  display: none;
}

.promo-summary-icon {
  font-size: 1.15rem;
}

.promo-code-body {
  margin-top: 16px;
}

.promo-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.promo-input-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #fff;
}

.promo-input-row input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.14);
}

.promo-input-row .btn {
  flex-shrink: 0;
}

.promo-feedback {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.promo-feedback-success {
  color: #0b8a3e;
}

.promo-feedback-error {
  color: #b7322a;
}

.promo-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

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

@media (max-width: 640px) {
  .pricing-offer-banner-inner {
    font-size: 0.88rem;
    padding: 0 16px;
  }
  .plan-price-main {
    font-size: 1.6rem;
  }
  .promo-input-row {
    flex-direction: column;
  }
  .promo-input-row .btn {
    width: 100%;
  }
}

/* ===========================================================================
   DASHBOARD — redesigned workflow-first shell + pages
   All classes prefixed with `dash-` to avoid collision with legacy dashboard
   classes (.sidebar, .panel, .stat-card) which still apply to /dashboard/legacy.
   =========================================================================== */

:root {
  --dash-bg: #f4f7fb;
  --dash-surface: #ffffff;
  --dash-border: #e1ecf7;
  --dash-border-strong: #cfe0f2;
  --dash-text: #0c2740;
  --dash-text-muted: #6b7f94;
  --dash-brand: #0a6ed1;
  --dash-brand-dark: #0f4f92;
  --dash-danger: #c0392b;
  --dash-warn: #c27b00;
  --dash-success: #0b8a3e;
  --dash-shadow-sm: 0 1px 2px rgba(9, 45, 78, 0.04), 0 2px 4px rgba(9, 45, 78, 0.04);
  --dash-shadow-md: 0 4px 10px rgba(9, 45, 78, 0.06), 0 10px 24px rgba(9, 45, 78, 0.06);
  --dash-radius: 14px;
  --dash-radius-sm: 10px;
}

.dash-body {
  margin: 0;
  background: var(--dash-bg);
  color: var(--dash-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}

.dash-body * { box-sizing: border-box; }

.dash-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  grid-template-rows: 64px 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
}

.dash-muted { color: var(--dash-text-muted); }

/* --------- Topbar --------- */
.dash-topbar {
  grid-area: topbar;
  background: #fff;
  border-bottom: 1px solid var(--dash-border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  position: relative;
}
.dash-topbar-brand {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dash-text);
  font-weight: 800;
}
.dash-topbar-brand img { border-radius: 6px; }
.dash-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.dash-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dash-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dash-text);
  border-radius: 2px;
}

/* Topbar credit chip */
.dash-credit-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f2f8ff;
  border: 1px solid var(--dash-border-strong);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  text-decoration: none;
  color: var(--dash-text);
  transition: all 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.dash-credit-chip:hover {
  border-color: var(--dash-brand);
  background: #e8f1fb;
}
.dash-credit-chip-icon { color: var(--dash-brand); display: inline-flex; }
.dash-credit-chip-text { display: flex; align-items: baseline; gap: 4px; }
.dash-credit-chip-text strong { font-weight: 800; font-size: 0.95rem; }
.dash-credit-chip-label { font-size: 0.78rem; color: var(--dash-text-muted); }
.dash-credit-chip-bar {
  display: inline-block;
  width: 60px;
  height: 5px;
  background: #dbe8f5;
  border-radius: 99px;
  overflow: hidden;
}
.dash-credit-chip-bar span {
  display: block;
  height: 100%;
  background: var(--dash-brand);
  transition: width 0.3s ease, background 0.2s ease;
}
.dash-credit-chip.is-low { background: #fff6e6; border-color: #f3c47a; }
.dash-credit-chip.is-low .dash-credit-chip-bar span { background: #e08e00; }
.dash-credit-chip.is-critical { background: #fdeceb; border-color: #f5a39c; }
.dash-credit-chip.is-critical .dash-credit-chip-bar span { background: var(--dash-danger); }

.dash-plan-chip {
  background: #f2f8ff;
  border: 1px solid var(--dash-border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--dash-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.dash-plan-chip:hover { border-color: var(--dash-brand); }

.dash-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f2f8ff;
  border: 1px solid var(--dash-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dash-text);
  position: relative;
  padding: 0;
}
.dash-icon-btn:hover { border-color: var(--dash-brand); }

.dash-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--dash-danger);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.dash-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a6ed1 0%, #0f4f92 100%);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
}
.dash-avatar-lg { width: 44px; height: 44px; font-size: 1.1rem; }

/* Popovers (notif + user menu) */
.dash-notif-panel,
.dash-user-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow-md);
  min-width: 320px;
  max-width: 400px;
  max-height: 460px;
  overflow-y: auto;
  z-index: 40;
}
.dash-user-panel { min-width: 260px; }
.dash-notif-panel-head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dash-border);
  position: sticky;
  top: 0;
  background: #fff;
}
.dash-notif-mark {
  background: none;
  border: none;
  color: var(--dash-brand);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
}
.dash-notif-list { padding: 4px 0; }
.dash-notif-item {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--dash-border);
  transition: background 0.12s ease;
}
.dash-notif-item:last-child { border-bottom: none; }
.dash-notif-item:hover { background: #f7fbff; }
.dash-notif-item.is-unread { background: #f2f8ff; }
.dash-notif-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 3px;
}
.dash-notif-item-subject { font-weight: 700; font-size: 0.92rem; margin-bottom: 3px; }
.dash-notif-item-preview {
  font-size: 0.86rem;
  color: var(--dash-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user-panel-head {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--dash-border);
}
.dash-user-email { font-weight: 700; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.dash-user-link {
  display: block;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--dash-text);
  font-size: 0.92rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dash-user-link:hover { background: #f7fbff; color: var(--dash-brand); }
.dash-logout-btn { color: var(--dash-danger); border-top: 1px solid var(--dash-border); }

/* --------- Sidebar --------- */
.dash-sidebar {
  grid-area: sidebar;
  background: #fff;
  border-right: 1px solid var(--dash-border);
  padding: 20px 0 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 25;
}
.dash-nav { padding: 0 14px; }
.dash-nav-group-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93a7bd;
  padding: 16px 12px 8px;
  margin: 0;
}
.dash-nav-group-label:first-child { padding-top: 0; }
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--dash-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
  transition: background 0.12s ease, color 0.12s ease;
}
.dash-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; color: #6b84a0; }
.dash-nav-link:hover { background: #f2f8ff; color: var(--dash-brand); }
.dash-nav-link:hover svg { color: var(--dash-brand); }
.dash-nav-link.is-active {
  background: #e8f1fb;
  color: var(--dash-brand);
}
.dash-nav-link.is-active svg { color: var(--dash-brand); }

.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 45, 78, 0.5);
  z-index: 20;
}

/* --------- Main content --------- */
.dash-main {
  grid-area: main;
  padding: 24px 32px 48px;
  max-width: 1280px;
  width: 100%;
}
.dash-page { display: flex; flex-direction: column; gap: 20px; }
.dash-page-narrow { max-width: 820px; }

.dash-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dash-kicker {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #93a7bd;
  margin: 0 0 4px;
}
.dash-h1 {
  font-size: 1.75rem;
  margin: 0 0 4px;
  color: var(--dash-text);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dash-section-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #93a7bd;
  margin: 0 0 6px;
}
.dash-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dash-text);
  margin: 0 0 14px;
}

/* --------- Cards --------- */
.dash-card {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 24px;
  box-shadow: var(--dash-shadow-sm);
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.dash-card-head h2, .dash-card-head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.dash-card-head-link { font-size: 0.86rem; text-decoration: none; }
.dash-card-head-link:hover { color: var(--dash-brand); }

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

/* --------- Low-credit banner --------- */
.dash-low-credit-banner {
  background: linear-gradient(90deg, #fff1de 0%, #ffe8c8 100%);
  border: 1px solid #f3c47a;
  border-radius: var(--dash-radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.dash-low-credit-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-low-credit-icon { font-size: 1.4rem; }
.dash-low-credit-text { flex: 1; }
.dash-low-credit-text strong { display: block; color: #8a5700; }

/* --------- Buttons --------- */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}
.dash-btn:disabled, .dash-btn[aria-disabled="true"], .dash-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dash-btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.dash-btn-primary {
  background: var(--dash-brand);
  color: #fff;
}
.dash-btn-primary:hover:not(:disabled) { background: var(--dash-brand-dark); }
.dash-btn-soft {
  background: #f2f8ff;
  color: var(--dash-brand);
  border-color: var(--dash-border-strong);
}
.dash-btn-soft:hover:not(:disabled) { background: #e2eefc; }
.dash-btn-danger {
  background: var(--dash-danger);
  color: #fff;
}
.dash-btn-danger:hover:not(:disabled) { background: #9b2f23; }

.dash-link-btn { background: none; border: none; color: var(--dash-brand); cursor: pointer; font-size: 0.88rem; font-weight: 600; padding: 0; }
.dash-link-btn:hover { text-decoration: underline; }
.dash-link { color: var(--dash-brand); font-weight: 600; text-decoration: none; }
.dash-link:hover { text-decoration: underline; }

/* --------- Forms --------- */
.dash-form-grid { display: flex; flex-direction: column; gap: 14px; }
.dash-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dash-text);
  margin-bottom: 6px;
}
.dash-form-grid input[type="text"],
.dash-form-grid input[type="email"],
.dash-form-grid input[type="url"],
.dash-form-grid input[type="file"],
.dash-form-grid textarea,
.dash-form-grid select,
.dash-resolve-input-row input,
.dash-promo-input-row input,
.dash-cost-preview input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.94rem;
  background: #fff;
  color: var(--dash-text);
}
.dash-form-grid input:focus,
.dash-form-grid textarea:focus,
.dash-resolve-input-row input:focus,
.dash-promo-input-row input:focus {
  outline: none;
  border-color: var(--dash-brand);
  box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.14);
}
.dash-form-grid textarea { resize: vertical; min-height: 80px; }

.dash-inline-msg {
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}
.dash-inline-msg-success { color: var(--dash-success); }
.dash-inline-msg-error { color: var(--dash-danger); }
.dash-inline-msg-warn { color: var(--dash-warn); }
.dash-inline-msg-info { color: var(--dash-brand); }

/* --------- Credit hero card --------- */
.dash-credit-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.dash-credit-hero-body { flex: 1; min-width: 260px; }
.dash-credit-hero-cta { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.dash-credit-number-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 14px;
}
.dash-credit-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--dash-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dash-credit-number-label { color: var(--dash-text-muted); font-size: 0.95rem; }

.dash-credit-meter {
  height: 10px;
  background: #e1ecf7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.dash-credit-meter-sm { height: 6px; }
.dash-credit-meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--dash-brand) 0%, var(--dash-brand-dark) 100%);
  border-radius: 999px;
  transition: width 0.35s ease, background 0.2s ease;
}
.dash-credit-hero.is-low .dash-credit-meter-fill {
  background: linear-gradient(90deg, #e08e00 0%, #b97000 100%);
}
.dash-credit-hero.is-critical .dash-credit-meter-fill {
  background: linear-gradient(90deg, var(--dash-danger) 0%, #8a1e12 100%);
}
.dash-quota-meter .dash-credit-meter-fill.is-critical {
  background: linear-gradient(90deg, var(--dash-danger) 0%, #8a1e12 100%);
}

/* --------- Quick actions --------- */
.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dash-quick-action {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 18px;
  text-decoration: none;
  color: var(--dash-text);
  transition: all 0.15s ease;
  box-shadow: var(--dash-shadow-sm);
}
.dash-quick-action:hover {
  border-color: var(--dash-brand);
  transform: translateY(-1px);
  box-shadow: var(--dash-shadow-md);
}
.dash-quick-action strong { display: block; margin-bottom: 2px; }
.dash-quick-action p { margin: 0; font-size: 0.86rem; }
.dash-qa-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f8ff;
  border-radius: 10px;
}

/* --------- Onboarding --------- */
.dash-onboarding { }
.dash-onboarding-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.dash-onboarding-head h2 { margin: 4px 0 4px; font-size: 1.2rem; }
.dash-onboarding-head p { margin: 0; }
.dash-onboarding-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}
.dash-progress-ring { transform-origin: center; }
.dash-onboarding-progress span { font-weight: 800; font-size: 0.88rem; color: var(--dash-brand); }

.dash-onboarding-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-onboarding-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f7fbff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
}
.dash-onboarding-steps li.is-done { opacity: 0.58; }
.dash-step-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--dash-border-strong);
  flex-shrink: 0;
  position: relative;
}
.dash-onboarding-steps li.is-done .dash-step-check {
  background: var(--dash-success);
  border-color: var(--dash-success);
}
.dash-onboarding-steps li.is-done .dash-step-check::after {
  content: "";
  position: absolute;
  inset: 4px 3px 5px 4px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  width: 5px;
  height: 10px;
  top: 2px;
  left: 7px;
}
.dash-step-body { flex: 1; }
.dash-step-body strong { display: block; }
.dash-step-body p { margin: 2px 0 0; font-size: 0.85rem; }

/* --------- Activity / lists --------- */
.dash-activity-list { display: flex; flex-direction: column; }
.dash-activity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dash-border);
  text-decoration: none;
  color: inherit;
}
.dash-activity-row:last-child { border-bottom: none; }
.dash-activity-row:hover .dash-activity-title { color: var(--dash-brand); }
.dash-activity-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f8ff;
  border-radius: 10px;
  font-size: 1.1rem;
}
.dash-activity-body { flex: 1; min-width: 0; }
.dash-activity-title { font-weight: 700; font-size: 0.92rem; }
.dash-activity-sub { font-size: 0.86rem; color: var(--dash-text-muted); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-activity-time { font-size: 0.8rem; flex-shrink: 0; }

.dash-dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 0.92rem; }
.dash-dl dt { color: var(--dash-text-muted); font-weight: 600; }
.dash-dl dd { margin: 0; font-weight: 600; }
.dash-dl-inline { grid-template-columns: max-content 1fr max-content 1fr; }
.dash-mt-sm { margin-top: 14px; }

/* --------- Resolve page --------- */
.dash-resolve-hero { padding: 28px; }
.dash-resolve-form { display: flex; flex-direction: column; gap: 14px; }
.dash-resolve-input-row {
  display: flex;
  gap: 10px;
}
.dash-resolve-input-row input { flex: 1; }
.dash-resolve-extra { font-size: 0.88rem; }
.dash-resolve-extra summary { cursor: pointer; color: var(--dash-brand); font-weight: 600; }
.dash-resolve-extra input { margin-top: 10px; }
.dash-resolve-meta { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--dash-border); }
.dash-quota-meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.dash-result-card { padding: 22px; }
.dash-result-card-body { display: flex; flex-direction: column; gap: 12px; }
.dash-result-url a {
  color: var(--dash-brand);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.dash-result-url a:hover { text-decoration: underline; }
.dash-result-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 0.88rem; }
.dash-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dash-result-list-ul { list-style: none; padding: 0; margin: 0; }
.dash-result-list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dash-border);
}
.dash-result-list-item:last-child { border-bottom: none; }
.dash-result-list-main { min-width: 0; flex: 1; }
.dash-result-list-main strong { font-size: 0.92rem; }
.dash-result-list-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; font-size: 0.82rem; }
.dash-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* --------- Batch upload --------- */
.dash-upload-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dash-upload-card-head h2 { margin: 4px 0; font-size: 1.15rem; }
.dash-upload-card-head p { margin: 0; }
.dash-upload-zone {
  display: block;
  border: 2px dashed var(--dash-border-strong);
  border-radius: var(--dash-radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f7fbff;
}
.dash-upload-zone:hover, .dash-upload-zone.is-dragging {
  border-color: var(--dash-brand);
  background: #e8f1fb;
}
.dash-upload-zone.has-file { text-align: left; padding: 18px 20px; }
.dash-upload-empty strong { display: block; margin: 10px 0 4px; font-size: 1rem; }
.dash-upload-empty p { margin: 0; font-size: 0.85rem; }
.dash-upload-icon { display: inline-block; color: var(--dash-brand); }
.dash-upload-filled {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-upload-file-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #f2f8ff;
  border-radius: 10px;
}
.dash-upload-file-info { flex: 1; min-width: 0; }
.dash-upload-file-info strong { display: block; font-size: 0.94rem; }
.dash-upload-file-info span { font-size: 0.82rem; }

.dash-cost-preview {
  margin-top: 16px;
  padding: 16px 18px;
  background: #f2f8ff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-cost-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.92rem; }
.dash-upload-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------- Batch job cards --------- */
.dash-joblist { display: flex; flex-direction: column; gap: 12px; }
.dash-job-card {
  background: #f7fbff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  padding: 16px 18px;
}
.dash-job-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dash-job-card-head > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-job-progress { display: flex; flex-direction: column; gap: 6px; }
.dash-job-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
}
.dash-job-card-done summary { cursor: pointer; list-style: none; }
.dash-job-card-done summary::-webkit-details-marker { display: none; }
.dash-job-card-done summary::after {
  content: "▾";
  color: var(--dash-text-muted);
  margin-left: auto;
  font-size: 1.1rem;
}
.dash-job-card-done[open] summary::after { content: "▴"; }
.dash-job-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
}
.dash-job-summary-grid div span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dash-job-summary-grid div strong { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.dash-job-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------- Status badges --------- */
.dash-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e6ebf3;
  color: #52667c;
}
.dash-badge-queued { background: #e6ebf3; color: #52667c; }
.dash-badge-processing { background: #dce8f5; color: #0f4f92; }
.dash-badge-completed { background: #d6f1de; color: #0b8a3e; }
.dash-badge-partial { background: #fff0d0; color: #8a5700; }
.dash-badge-failed { background: #fbdcd9; color: #9b2f23; }
.dash-badge-neutral { background: #e6ebf3; color: #52667c; }

/* --------- Explainer card --------- */
.dash-explainer {
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 18px 22px;
  font-size: 0.92rem;
}
.dash-explainer summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dash-brand);
}
.dash-explainer p { margin: 10px 0; }
.dash-explainer ul { padding-left: 18px; }

/* --------- Usage page --------- */
.dash-activity-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dash-activity-stat {
  background: #f7fbff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  padding: 14px 16px;
  text-align: center;
}
.dash-activity-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dash-text);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.dash-edu-card { display: flex; gap: 18px; align-items: flex-start; }
.dash-edu-icon { font-size: 1.8rem; flex-shrink: 0; }
.dash-edu-card h3 { margin: 0 0 8px; }
.dash-check-list { padding-left: 20px; }
.dash-check-list li { margin-bottom: 4px; }

/* --------- Billing --------- */
.dash-offer-banner {
  background: linear-gradient(90deg, var(--dash-brand) 0%, var(--dash-brand-dark) 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--dash-radius);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-offer-pill {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-offer-sep { opacity: 0.6; }

.dash-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.dash-plan-card {
  background: linear-gradient(180deg, #fcfeff 0%, #f2f8ff 100%);
  border: 1px solid var(--dash-border-strong);
  border-radius: var(--dash-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.dash-plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--dash-brand);
  box-shadow: var(--dash-shadow-md);
}
.dash-plan-card-popular {
  border-color: var(--dash-brand);
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.15);
}
.dash-plan-card-current {
  border-color: var(--dash-success);
  box-shadow: 0 0 0 2px rgba(11, 138, 62, 0.15);
}
.dash-plan-head h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-plan-head p { margin: 0; font-size: 0.86rem; }
.dash-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--dash-brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-plan-badge-current { background: var(--dash-success); }
.dash-plan-price { padding: 10px 0; border-top: 1px solid rgba(10, 110, 209, 0.08); border-bottom: 1px solid rgba(10, 110, 209, 0.08); }
.dash-plan-price-main { font-size: 1.6rem; font-weight: 800; margin: 0; color: var(--dash-text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-plan-price-strike { font-size: 0.9rem; color: var(--dash-text-muted); text-decoration: line-through; margin: 0 0 2px; font-weight: 600; }
.dash-plan-price-per { font-size: 0.78rem; margin: 4px 0 0; }
.dash-plan-features { margin: 0; padding-left: 18px; color: #2c4e6e; font-size: 0.88rem; }
.dash-plan-features li { margin-bottom: 4px; }
.dash-plan-card .dash-btn { margin-top: auto; width: 100%; }

.dash-promo-card details { background: #fff; border: 1px solid var(--dash-border); border-radius: var(--dash-radius); padding: 16px 20px; }
.dash-promo-card summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none; }
.dash-promo-card summary::-webkit-details-marker { display: none; }
.dash-promo-body { margin-top: 14px; }
.dash-promo-input-row { display: flex; gap: 10px; }
.dash-promo-input-row input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Payments table & filters */
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dash-table thead th {
  text-align: left;
  padding: 10px 12px;
  background: #f7fbff;
  border-bottom: 1px solid var(--dash-border);
  font-weight: 700;
  color: var(--dash-text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--dash-border);
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: #f7fbff; }
.dash-action-cell { display: flex; gap: 6px; flex-wrap: wrap; }

.dash-table-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-chip {
  background: #f2f8ff;
  border: 1px solid var(--dash-border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--dash-text);
  font-family: inherit;
}
.dash-chip:hover { border-color: var(--dash-brand); }
.dash-chip.is-active { background: var(--dash-brand); color: #fff; border-color: var(--dash-brand); }

/* --------- Modals --------- */
.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dash-modal[hidden] { display: none; }
.dash-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 45, 78, 0.55); }
.dash-modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--dash-radius);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(9, 45, 78, 0.2);
}
.dash-modal-card h2 { margin: 0 0 10px; font-size: 1.3rem; }
.dash-modal-card p { margin: 0 0 16px; color: var(--dash-text-muted); }
.dash-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.dash-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dash-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.dash-modal-close:hover { background: #f7fbff; }

.dash-quote-lines { display: flex; flex-direction: column; gap: 8px; background: #f7fbff; border: 1px solid var(--dash-border); border-radius: var(--dash-radius-sm); padding: 16px; }
.dash-quote-line { display: flex; justify-content: space-between; font-size: 0.94rem; }
.dash-quote-line-discount { color: var(--dash-success); }
.dash-quote-line-total { border-top: 1px solid var(--dash-border); padding-top: 10px; margin-top: 4px; font-size: 1.1rem; }
.dash-quote-line-total strong { color: var(--dash-text); }

/* --------- API key + integrations --------- */
.dash-apikey-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0c2740;
  color: #e8f1fb;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 14px 0;
  font-family: Consolas, Monaco, "Courier New", monospace;
}
.dash-apikey-display code { flex: 1; font-size: 0.92rem; word-break: break-all; }
.dash-apikey-display-lg code { font-size: 1rem; }

.dash-apikey-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.dash-apikey-actions p { flex: 1; margin: 0; min-width: 260px; font-size: 0.85rem; }

.dash-integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.dash-integration-tile {
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}
.dash-integration-tile:hover {
  border-color: var(--dash-brand);
  box-shadow: var(--dash-shadow-md);
  transform: translateY(-1px);
}
.dash-integration-tile h3 { margin: 4px 0; font-size: 1rem; }
.dash-integration-tile p { margin: 0; font-size: 0.86rem; flex: 1; }
.dash-integration-icon { font-size: 1.8rem; line-height: 1; }
.dash-integration-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.dash-code-block {
  background: #0c2740;
  color: #d5e3ef;
  padding: 16px 18px;
  border-radius: var(--dash-radius-sm);
  font-size: 0.82rem;
  overflow-x: auto;
  font-family: Consolas, Monaco, "Courier New", monospace;
  line-height: 1.5;
  margin: 10px 0 14px;
  white-space: pre;
}

.dash-api-enterprise-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-api-enterprise-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--dash-text);
}
.dash-api-enterprise-body .dash-check-list {
  margin: 4px 0;
  padding-left: 20px;
  color: var(--dash-text-muted);
  font-size: 0.88rem;
}
.dash-api-enterprise-body .dash-check-list li { margin-bottom: 4px; }
.dash-api-enterprise-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* --------- Form help text / required marker --------- */
.dash-required {
  color: #d64545;
  font-weight: 700;
  margin-left: 2px;
}
.dash-help {
  margin: 6px 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--dash-muted, #6b7f94);
}
.dash-help strong { color: var(--dash-text, #102132); }

/* --------- Usage history sparkline --------- */
.dash-usage-chart-card { padding: 20px 24px; }
.dash-usage-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-usage-chart-legend {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--dash-muted, #6b7f94);
}
.dash-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.dash-dot-batch { background: #0a6ed1; }
.dash-dot-single { background: #46a7f5; }
.dash-usage-chart-notice {
  margin: 8px 0 4px;
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 10px 14px;
  background: var(--dash-surface, #f7fbff);
  border: 1px solid var(--dash-border, #e6edf5);
  border-radius: 8px;
}
.dash-usage-chart-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 16px;
}
.dash-usage-total { display: flex; flex-direction: column; }
.dash-usage-total-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dash-text, #102132);
  font-variant-numeric: tabular-nums;
}
.dash-usage-total .dash-muted { font-size: 0.8rem; }
.dash-sparkline-wrap {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-sparkline-loading { margin: 0; }
.dash-sparkline {
  width: 100%;
  height: 100%;
  display: block;
}
.dash-sparkline-line {
  stroke: #0a6ed1;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dash-sparkline-bar {
  stroke: #0a6ed1;
  stroke-opacity: 0.25;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.dash-sparkline-dot {
  fill: #0a6ed1;
  stroke: #fff;
  stroke-width: 1.2;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}
.dash-sparkline-dot:hover { fill: #ff8f1c; }
.dash-sparkline-baseline {
  stroke: #d7e3ef;
  stroke-width: 1;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}
.dash-usage-chart-range {
  margin: 10px 0 0;
  font-size: 0.78rem;
  text-align: right;
}
@media (max-width: 720px) {
  .dash-usage-chart-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-usage-total-num { font-size: 1.15rem; }
  .dash-sparkline-wrap { height: 110px; }
}

/* --------- Notification preferences toggles (Settings page) --------- */
.dash-pref-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-border, #e6edf5);
}
.dash-pref-row:last-child { border-bottom: none; }
.dash-pref-label strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dash-text, #102132);
}
.dash-pref-label span {
  display: block;
  font-size: 0.82rem;
  color: var(--dash-muted, #6b7f94);
  margin-top: 2px;
}
.dash-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.dash-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.dash-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd7e4;
  border-radius: 22px;
  transition: background 0.18s ease;
  cursor: pointer;
}
.dash-toggle-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.dash-toggle input:checked + .dash-toggle-slider { background: #0a6ed1; }
.dash-toggle input:checked + .dash-toggle-slider::before { transform: translateX(18px); }
.dash-toggle input:disabled + .dash-toggle-slider { opacity: 0.5; cursor: not-allowed; }
.dash-pref-saved {
  font-size: 0.82rem;
  color: #1a8754;
  margin-top: 6px;
  min-height: 1em;
}

/* --------- Help page --------- */
.dash-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dash-help-card {
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 22px;
  text-decoration: none;
  color: var(--dash-text);
  transition: all 0.15s ease;
}
.dash-help-card:hover { border-color: var(--dash-brand); transform: translateY(-1px); box-shadow: var(--dash-shadow-md); }
.dash-help-card h3 { margin: 8px 0 4px; font-size: 1.02rem; }
.dash-help-card p { margin: 0; font-size: 0.86rem; }
.dash-help-icon { font-size: 1.6rem; }

.dash-faq-list { display: flex; flex-direction: column; gap: 8px; }
.dash-faq-list details {
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  padding: 14px 18px;
  background: #f7fbff;
}
.dash-faq-list summary { cursor: pointer; font-weight: 600; }
.dash-faq-list details p { margin: 10px 0 0; color: var(--dash-text-muted); font-size: 0.92rem; }

/* --------- Feedback tabs --------- */
.dash-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--dash-border);
}
.dash-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  color: var(--dash-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.dash-tab:hover { color: var(--dash-brand); }
.dash-tab.is-active { color: var(--dash-brand); border-bottom-color: var(--dash-brand); }
.dash-tab-panel { display: none; flex-direction: column; gap: 16px; margin-top: 20px; }
.dash-tab-panel.is-active { display: flex; }

/* --------- Responsive --------- */
@media (max-width: 1040px) {
  .dash-app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "main";
  }
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 268px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--dash-shadow-md);
  }
  .dash-sidebar.is-open {
    transform: translateX(0);
  }
  .dash-hamburger { display: inline-flex; }
  .dash-topbar-brand { display: flex; }
  .dash-main { padding: 20px; }
}

@media (max-width: 900px) {
  .dash-two-col { grid-template-columns: 1fr; }
  .dash-quick-actions { grid-template-columns: 1fr; }
  .dash-job-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-activity-stats { grid-template-columns: 1fr 1fr; }
  .dash-plan-chip { display: none; }
  .dash-credit-chip-bar { display: none; }
}

@media (max-width: 640px) {
  .dash-main { padding: 16px; }
  .dash-card { padding: 18px; }
  .dash-h1 { font-size: 1.4rem; }
  .dash-credit-number { font-size: 2.2rem; }
  .dash-resolve-input-row { flex-direction: column; }
  .dash-resolve-input-row .dash-btn { width: 100%; }
  .dash-promo-input-row { flex-direction: column; }
  .dash-promo-input-row .dash-btn { width: 100%; }
  .dash-onboarding-head { flex-direction: column; align-items: flex-start; }
  .dash-page-head { flex-direction: column; }
  .dash-notif-panel, .dash-user-panel {
    min-width: 280px;
    right: -60px;
  }
  .dash-topbar { padding: 0 14px; gap: 10px; }
  .dash-topbar-brand-name { display: none; }
  .dash-credit-chip-label { display: none; }
  .dash-job-summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
}

