:root {
  --ink: #0c1629;
  --muted: #5a6a7f;
  --line: #c8d9f8;
  --page: #f4f9ff;
  --panel: #ffffff;
  --brand: #1769ff;
  --brand-dark: #083a8f;
  --electric: #36b7ff;
  --violet: #ef3340;
  --green: #16b86a;
  --red: #ef3340;
  --red-soft: #ffe7ea;
  --green-soft: #e3f9ed;
  --blue-soft: #e9f2ff;
  --navy: #071a2f;
  --sky-glow: #d7ebff;
  --mint: #e3f9ed;
  --amber: #fff4d7;
  --rose: #ffe4e8;
  --blue: #e9f2ff;
  --shadow: 0 20px 52px rgba(23, 105, 255, 0.15);
  --premium-shadow: 0 30px 90px rgba(7, 26, 47, 0.2);
}

/* FINAL SCRATCH LOGIN: simple protected access page */
body[data-route="login"] {
  background: #f5f8fc !important;
}

body[data-route="login"] #loginPage {
  background:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  min-height: calc(100dvh - 82px) !important;
  padding: clamp(18px, 4vw, 46px) !important;
}

body[data-route="login"] .simple-login-shell {
  display: grid !important;
  gap: 16px !important;
  margin: 0 auto !important;
  max-width: 1040px !important;
  min-height: auto !important;
  padding: 0 !important;
  width: min(100%, 1040px) !important;
}

body[data-route="login"] .simple-login-shell::before,
body[data-route="login"] .clean-login-status,
body[data-route="login"] .login-access-strip {
  display: none !important;
}

body[data-route="login"] .simple-login-head {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid #dce8f4 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
  color: #102033 !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: auto 1fr !important;
  padding: clamp(16px, 3vw, 26px) !important;
  text-align: left !important;
}

body[data-route="login"] .simple-login-mark {
  align-items: center !important;
  background: linear-gradient(135deg, #1769ff, #18b86b) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(23, 105, 255, 0.25) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  height: 54px !important;
  justify-content: center !important;
  width: 54px !important;
}

body[data-route="login"] .simple-login-head .eyebrow {
  color: #1769ff !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 4px !important;
  text-transform: uppercase !important;
}

body[data-route="login"] .simple-login-head h2 {
  color: #102033 !important;
  font-size: clamp(1.75rem, 4vw, 2.65rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
  margin: 0 0 6px !important;
}

body[data-route="login"] .simple-login-head p:not(.eyebrow) {
  color: #5d6f83 !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

body[data-route="login"] .simple-login-grid {
  align-items: stretch !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-route="login"] .simple-login-card {
  background: #ffffff !important;
  border: 1px solid #dce8f4 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
  color: #14263a !important;
  min-height: auto !important;
  padding: 18px !important;
}

body[data-route="login"] .simple-login-card .login-card-top {
  align-items: center !important;
  display: flex !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

body[data-route="login"] .simple-login-card .login-card-icon {
  align-items: center !important;
  background: #edf5ff !important;
  border: 1px solid #cfe0f4 !important;
  border-radius: 14px !important;
  color: #1769ff !important;
  display: inline-flex !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  height: 42px !important;
  justify-content: center !important;
  width: 42px !important;
}

body[data-route="login"] .staff-login-card .login-card-icon {
  background: #f0fff7 !important;
  color: #098950 !important;
}

body[data-route="login"] .chat-agent-login-card .login-card-icon {
  background: #f4f0ff !important;
  color: #5b3fd7 !important;
}

body[data-route="login"] .simple-login-card .eyebrow {
  color: #64748b !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 3px !important;
  text-transform: uppercase !important;
}

body[data-route="login"] .simple-login-card h2 {
  color: #102033 !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  margin: 0 !important;
}

body[data-route="login"] .simple-login-card .form-stack {
  display: grid !important;
  gap: 10px !important;
}

body[data-route="login"] .simple-login-card label {
  color: #334155 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

body[data-route="login"] .simple-login-card input {
  background: #f8fbff !important;
  border: 1px solid #d9e5f2 !important;
  border-radius: 12px !important;
  color: #102033 !important;
  font-size: 0.92rem !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
}

body[data-route="login"] .simple-login-card input:focus {
  border-color: #1769ff !important;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12) !important;
  outline: none !important;
}

body[data-route="login"] .simple-login-card .primary-action {
  align-items: center !important;
  background: linear-gradient(135deg, #1769ff, #0f57da) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 24px rgba(23, 105, 255, 0.2) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 14px !important;
  text-decoration: none !important;
}

body[data-route="login"] .simple-login-card .primary-action:hover {
  filter: brightness(1.04) !important;
  transform: translateY(-1px) !important;
}

body[data-route="login"] .clean-login-note {
  color: #64748b !important;
  font-size: 0.82rem !important;
  margin: 0 !important;
  text-align: center !important;
}

@media (max-width: 920px) {
  body[data-route="login"] .simple-login-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  body[data-route="login"] #loginPage {
    min-height: calc(100dvh - 68px) !important;
    padding: 14px !important;
  }

  body[data-route="login"] .simple-login-head {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 16px !important;
  }

  body[data-route="login"] .simple-login-mark {
    height: 48px !important;
    width: 48px !important;
  }

  body[data-route="login"] .simple-login-card {
    padding: 15px !important;
  }
}

/* FINAL ADMIN COLOR SYSTEM: clean contrast for back-panel desktop screens. */
@media (min-width: 1025px) {
  body[data-route="admin"] {
    background: #eef4f8 !important;
    color: #102033 !important;
  }

  body[data-route="admin"] #adminPage {
    background: #eef4f8 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-shell {
    background: #f8fbff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14) !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs {
    background: linear-gradient(180deg, #081527 0%, #0d1f36 58%, #071322 100%) !important;
    color: #edf7ff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link {
    background: rgba(255, 255, 255, 0.09) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eaf4ff !important;
    -webkit-text-fill-color: #eaf4ff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link:hover {
    background: #153b63 !important;
    border-color: rgba(125, 211, 252, 0.5) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active {
    background: #0b6fdc !important;
    background-image: linear-gradient(135deg, #0b6fdc, #16856a) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    color: #0f1f33 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header h1,
  body[data-route="admin"] #adminPage .crm-tabs-header h2,
  body[data-route="admin"] #adminPage .crm-tabs-header h3,
  body[data-route="admin"] #adminPage .crm-tabs-header strong {
    color: #0c1f35 !important;
    -webkit-text-fill-color: #0c1f35 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header p,
  body[data-route="admin"] #adminPage .crm-tabs-header small,
  body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
    color: #52657a !important;
    -webkit-text-fill-color: #52657a !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel.active {
    background: #f8fbff !important;
    color: #14283d !important;
  }

  body[data-route="admin"] #adminPage .smart-kpi-card,
  body[data-route="admin"] #adminPage .admin-insight-card,
  body[data-route="admin"] #adminPage .fresh-case-item,
  body[data-route="admin"] #adminPage .crm-sheet,
  body[data-route="admin"] #adminPage .smart-table-wrap,
  body[data-route="admin"] #adminPage .seo-status-panel,
  body[data-route="admin"] #adminPage .panel {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.11) !important;
    color: #12263a !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
  }

  body[data-route="admin"] #adminPage table,
  body[data-route="admin"] #adminPage .smart-table {
    background: #ffffff !important;
    color: #12263a !important;
  }

  body[data-route="admin"] #adminPage th,
  body[data-route="admin"] #adminPage .smart-table th {
    background: #eaf3fb !important;
    color: #18334f !important;
    font-weight: 850 !important;
  }

  body[data-route="admin"] #adminPage td,
  body[data-route="admin"] #adminPage .smart-table td {
    background: #ffffff !important;
    border-color: #dce7f0 !important;
    color: #13283e !important;
  }

  body[data-route="admin"] #adminPage tr:nth-child(even) td {
    background: #f7fbff !important;
  }

  body[data-route="admin"] #adminPage input,
  body[data-route="admin"] #adminPage select,
  body[data-route="admin"] #adminPage textarea {
    background: #ffffff !important;
    border-color: #b9cad8 !important;
    color: #102033 !important;
  }

  body[data-route="admin"] #adminPage input::placeholder,
  body[data-route="admin"] #adminPage textarea::placeholder {
    color: #71869b !important;
  }

  body[data-route="admin"] #adminPage .primary-action,
  body[data-route="admin"] #adminPage .btn-primary {
    background: #0b6fdc !important;
    border-color: #0b6fdc !important;
    color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .secondary-action,
  body[data-route="admin"] #adminPage .ghost-action,
  body[data-route="admin"] #adminPage .btn-outline-secondary {
    background: #ffffff !important;
    border-color: #b8c9d8 !important;
    color: #17324e !important;
  }

  body[data-route="admin"] #adminPage .secondary-action:hover,
  body[data-route="admin"] #adminPage .ghost-action:hover,
  body[data-route="admin"] #adminPage .btn-outline-secondary:hover {
    background: #eaf3fb !important;
    color: #0b253f !important;
  }
}

.page > section:not(.hero-section):not(.crm-tabs-shell),
.footer-panel,
.service-task-section,
.smart-command-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

/* Final admin color pass: keep the back panel readable and consistent. */
#adminPage {
  --admin-navy: #071a2f;
  --admin-navy-2: #0b2f4f;
  --admin-blue: #1769ff;
  --admin-cyan: #20d9ff;
  --admin-green: #10a37f;
  --admin-ink: #09213a;
  --admin-muted: #58708b;
  --admin-line: #d7e8f4;
  --admin-soft: #f4fbff;
  --admin-white: #ffffff;
  background: linear-gradient(135deg, #eef8ff 0%, #ffffff 46%, #f3fff9 100%) !important;
  color: var(--admin-ink) !important;
}

#adminPage .crm-tabs-shell {
  background: var(--admin-white) !important;
  border: 1px solid var(--admin-line) !important;
  box-shadow: 0 22px 70px rgba(7, 26, 47, 0.12) !important;
}

#adminPage .crm-tabs {
  background:
    radial-gradient(circle at 30% 0%, rgba(32, 217, 255, 0.18), transparent 32%),
    linear-gradient(180deg, var(--admin-navy), var(--admin-navy-2)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

#adminPage .crm-tabs button {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #eaf6ff !important;
}

#adminPage .crm-tabs button:hover {
  background: rgba(32, 217, 255, 0.18) !important;
  color: #ffffff !important;
}

#adminPage .crm-tabs button.active {
  background: linear-gradient(135deg, var(--admin-blue), var(--admin-green)) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 12px 28px rgba(23, 105, 255, 0.24) !important;
  color: #ffffff !important;
}

#adminPage .crm-tabs-header {
  background: linear-gradient(135deg, #ffffff, #eff9ff) !important;
  border-bottom: 1px solid var(--admin-line) !important;
  color: var(--admin-ink) !important;
}

#adminPage .crm-tabs-header h2,
#adminPage .crm-tabs-header .eyebrow,
#adminPage .smart-dashboard-hero h3,
#adminPage .smart-chart-title span,
#adminPage .crm-sheet h4,
#adminPage .seo-status-hero h3 {
  color: var(--admin-ink) !important;
}

#adminPage .crm-tabs-header .eyebrow,
#adminPage .smart-dashboard-hero .eyebrow,
#adminPage .seo-status-hero .eyebrow {
  color: var(--admin-blue) !important;
}

#adminPage .crm-search,
#adminPage input,
#adminPage select,
#adminPage textarea {
  background: #ffffff !important;
  border-color: #b8d9ee !important;
  color: var(--admin-ink) !important;
}

#adminPage .crm-search::placeholder,
#adminPage input::placeholder,
#adminPage textarea::placeholder {
  color: #6d8298 !important;
}

#adminPage .crm-tab-panel {
  background: linear-gradient(180deg, #f7fcff, #ffffff) !important;
}

#adminPage .smart-dashboard-hero,
#adminPage .smart-kpi-card,
#adminPage .smart-chart-card,
#adminPage .smart-filter-bar,
#adminPage .smart-table-wrap,
#adminPage .crm-sheet,
#adminPage .seo-status-panel,
#adminPage .seo-advanced-card,
#adminPage .monthly-report-panel,
#adminPage .timezone-card {
  background: #ffffff !important;
  border: 1px solid var(--admin-line) !important;
  color: var(--admin-ink) !important;
  box-shadow: 0 12px 32px rgba(7, 26, 47, 0.07) !important;
}

#adminPage .smart-dashboard-hero p,
#adminPage .smart-kpi-card small,
#adminPage .smart-filter-bar label span,
#adminPage .smart-chip-group > span,
#adminPage .seo-status-hero p,
#adminPage .crm-sheet p,
#adminPage .timezone-card p,
#adminPage .timezone-card small {
  color: var(--admin-muted) !important;
}

#adminPage .smart-kpi-card strong,
#adminPage .seo-rank-summary strong,
#adminPage .timezone-card time {
  color: var(--admin-ink) !important;
}

#adminPage .admin-command-center {
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 217, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--admin-navy), #0d3f65 58%, #075f66) !important;
  color: #ffffff !important;
}

#adminPage .admin-command-copy h3,
#adminPage .admin-command-copy .eyebrow {
  color: #ffffff !important;
}

#adminPage .admin-command-copy p {
  color: #d9f4ff !important;
}

#adminPage .admin-insight-card {
  background: #ffffff !important;
  border: 1px solid rgba(184, 217, 238, 0.9) !important;
  color: var(--admin-ink) !important;
}

#adminPage .admin-insight-card span,
#adminPage .admin-insight-card small {
  color: var(--admin-muted) !important;
}

#adminPage .admin-insight-card strong {
  color: var(--admin-ink) !important;
}

#adminPage .smart-table,
#adminPage .crm-sheet table {
  background: #ffffff !important;
  color: var(--admin-ink) !important;
}

#adminPage .smart-table th,
#adminPage .crm-sheet th {
  background: #eaf6ff !important;
  color: #09213a !important;
}

#adminPage .smart-table td,
#adminPage .crm-sheet td {
  background: #ffffff !important;
  border-color: #dcebf5 !important;
  color: #18324d !important;
}

#adminPage .smart-table tr:hover td,
#adminPage .crm-sheet tr:hover td,
#adminPage .selected-admin-row td {
  background: #f0fbff !important;
}

#adminPage .primary-action {
  background: linear-gradient(135deg, var(--admin-blue), #0ca5d8) !important;
  border-color: rgba(23, 105, 255, 0.35) !important;
  color: #ffffff !important;
}

#adminPage .secondary-action,
#adminPage .ghost-action,
#adminPage .compact-action {
  background: #ffffff !important;
  border: 1px solid #b8d9ee !important;
  color: #0b4da2 !important;
}

#adminPage .secondary-action:hover,
#adminPage .ghost-action:hover,
#adminPage .compact-action:hover {
  background: #eaf6ff !important;
  color: #063b72 !important;
}

#adminPage .smart-chip-group button,
#adminPage .v2-status-buttons button,
#adminPage .ticket-choice-button,
#adminPage .status-initial {
  background: #ffffff !important;
  border-color: #b8d9ee !important;
  color: var(--admin-ink) !important;
}

#adminPage .smart-chip-group button.active,
#adminPage .v2-status-buttons button.active,
#adminPage .ticket-choice-button.active,
#adminPage .status-initial.active {
  background: linear-gradient(135deg, var(--admin-blue), var(--admin-green)) !important;
  color: #ffffff !important;
}

#adminPage .tag.approved,
#adminPage .smart-status.approved,
#adminPage .smart-status.existing {
  background: #dcfce7 !important;
  color: #14532d !important;
}

#adminPage .tag.pending,
#adminPage .smart-status.pending,
#adminPage .smart-status.new {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

#adminPage .tag.blocked,
#adminPage .smart-status.blocked,
#adminPage .status-initial.refunded,
#adminPage .status-initial.disputed {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

#adminPage .status-initial.refunded.active,
#adminPage .status-initial.disputed.active {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  color: #ffffff !important;
}

#adminPage .priority-pill.urgent {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

#adminPage .priority-pill.high {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

#adminPage .priority-pill.normal {
  background: #e0f2fe !important;
  color: #075985 !important;
}

#adminPage .smart-db-status,
#adminPage .seo-score-card,
#adminPage .timezone-board-head {
  background: linear-gradient(135deg, #09213a, #0b4f73) !important;
  border-color: rgba(32, 217, 255, 0.22) !important;
  color: #ffffff !important;
}

#adminPage .smart-db-status span,
#adminPage .smart-db-status small,
#adminPage .seo-score-card span,
#adminPage .seo-score-card small,
#adminPage .timezone-board-head p,
#adminPage .timezone-board-head .eyebrow,
#adminPage .timezone-board-head h3 {
  color: #d9f4ff !important;
}

@media (max-width: 680px) {
  #adminPage .crm-tabs-header {
    background: #ffffff !important;
  }

  #adminPage .crm-tabs {
    background: linear-gradient(135deg, var(--admin-navy), var(--admin-navy-2)) !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100dvh;
}

main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

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

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.12;
  margin-bottom: 10px;
}

h3 {
  margin-bottom: 8px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(22px) saturate(1.25);
  background:
    linear-gradient(90deg, rgba(14, 165, 233, 0.18), transparent 22%, rgba(16, 185, 129, 0.16) 78%, rgba(239, 68, 68, 0.1)),
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.2), transparent 24%),
    radial-gradient(circle at 94% 20%, rgba(16, 185, 129, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9));
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-left: 0;
  border-right: 0;
  box-shadow: 0 18px 50px rgba(2, 21, 45, 0.12);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 56px;
  padding: 6px clamp(16px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header::before {
  background: linear-gradient(90deg, transparent, rgba(23, 105, 255, 0.72), rgba(22, 184, 106, 0.72), transparent);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 8%;
  position: absolute;
  right: 8%;
}

.brand {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 247, 255, 0.72));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 32px rgba(15, 23, 42, 0.09);
  display: inline-flex;
  gap: 10px;
  min-width: max-content;
  overflow: hidden;
  padding: 7px 14px 7px 8px;
  position: relative;
}

.brand::after {
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.74), transparent);
  content: "";
  height: 130%;
  left: -60%;
  opacity: 0.7;
  position: absolute;
  top: -15%;
  transform: rotate(16deg);
  width: 34%;
  animation: headerShine 5.8s ease-in-out infinite;
}

.brand-mark {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 12px;
  box-sizing: border-box;
  color: white;
  display: inline-grid;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  position: relative;
  box-shadow: none;
  width: 42px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
  position: relative;
  z-index: 1;
}

.brand small {
  color: #4b6078;
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-live {
  align-items: center;
  color: #047857;
  display: inline-flex;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 1000;
  gap: 5px;
  letter-spacing: 0;
  margin-top: 3px;
  text-transform: uppercase;
}

.brand-live i {
  background: #16b86a;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(22, 184, 106, 0.14);
  display: inline-block;
  height: 7px;
  width: 7px;
  animation: headerPulse 1.8s ease-in-out infinite;
}

.main-nav {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 247, 255, 0.58));
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  padding: 5px;
}

.mobile-menu-toggle {
  align-items: center;
  background: linear-gradient(135deg, #071a2f, #005cb9 58%, #047857);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(7, 26, 47, 0.18);
  color: #ffffff;
  cursor: pointer;
  display: none;
  font-size: 0.72rem;
  font-weight: 1000;
  gap: 4px;
  justify-content: center;
  justify-self: end;
  line-height: 1;
  min-height: 42px;
  padding: 8px;
  text-transform: uppercase;
  width: 46px;
}

.mobile-menu-toggle span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 16px;
}

.main-nav a,
.nav-service-tab > button {
  background: transparent;
  border-radius: 15px;
  color: #17304d;
  font-size: 0.84rem;
  font-weight: 900;
  min-width: 0;
  padding: 10px 12px;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.nav-service-tab:hover > button,
.nav-service-tab:focus-within > button {
  background:
    linear-gradient(135deg, rgba(0, 91, 187, 0.1), rgba(16, 185, 129, 0.12));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  color: #062a55;
}

.main-nav a.active::after {
  background: linear-gradient(90deg, #1769ff, #16b86a);
  border-radius: 999px;
  bottom: 4px;
  content: "";
  height: 3px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.mobile-nav-only {
  display: none;
}

.header-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-self: end;
  min-width: max-content;
}

.header-support-pill,
.header-login-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 1000;
  min-height: 42px;
  white-space: nowrap;
}

.header-support-pill {
  background: #071a2f;
  box-shadow: 0 14px 30px rgba(7, 26, 47, 0.18);
  color: white;
  gap: 7px;
  padding: 8px 12px;
}

.header-support-pill span {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: inline-grid;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.header-login-action {
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(135deg, #1769ff, #005bb8);
  box-shadow: 0 14px 30px rgba(23, 105, 255, 0.24);
  color: white;
  padding: 9px 16px;
}

.header-login-action:hover,
.header-login-action.active {
  color: white;
  transform: translateY(-1px);
}

.expert-header-action {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(223, 245, 255, 0.9)),
    linear-gradient(135deg, rgba(23, 105, 255, 0.22), rgba(22, 184, 106, 0.2));
  border: 1px solid rgba(23, 105, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(7, 26, 47, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #071a2f;
  display: inline-flex;
  gap: 8px;
  min-width: max-content;
  min-height: 42px;
  padding: 5px 12px 5px 5px;
}

.expert-header-action span {
  align-items: center;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(135deg, #1769ff, #16b86a);
  border-radius: 10px;
  color: #ffffff;
  display: inline-grid;
  font-size: 0.72rem;
  font-weight: 1000;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

@keyframes headerShine {
  0%,
  58% {
    left: -60%;
  }
  74%,
  100% {
    left: 128%;
  }
}

@keyframes headerPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(22, 184, 106, 0.12);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(22, 184, 106, 0.2);
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand::after,
  .brand-live i {
    animation: none;
  }
}

.expert-header-action strong {
  font-size: 0.82rem;
  font-weight: 1000;
}

.expert-header-action:hover,
.expert-header-action.active {
  box-shadow: 0 18px 42px rgba(23, 105, 255, 0.22);
  transform: translateY(-1px);
}

.nav-service-tab {
  position: relative;
}

.service-tab-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  left: 50%;
  min-width: 236px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 40;
}

.nav-service-tab:hover .service-tab-menu,
.nav-service-tab:focus-within .service-tab-menu {
  display: grid;
  gap: 6px;
}

.service-tab-menu a {
  min-width: 0;
  text-align: left;
  width: 100%;
}

.primary-action,
.secondary-action,
.ghost-action {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
}

.primary-action {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    linear-gradient(135deg, var(--red), var(--brand) 48%, var(--green));
  box-shadow:
    0 16px 34px rgba(23, 105, 255, 0.22),
    0 0 0 5px rgba(22, 184, 106, 0.1);
  color: white;
  font-weight: 800;
}

.primary-action:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent),
    linear-gradient(135deg, #ff5260, #2c7bff 48%, #20c878);
}

.secondary-action {
  background: #edf1f6;
  color: var(--ink);
  font-weight: 800;
}

.ghost-action {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.page {
  display: none;
}

.page.active {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}

body[data-route="login"] #loginPage.active,
body[data-route="self-help"] #selfHelpPage.active,
body[data-route="products"] #productsPage.active,
body[data-route="services"] #servicesPage.active,
body[data-route="about"] #aboutPage.active {
  background:
    radial-gradient(circle at 10% 6%, rgba(41, 230, 255, 0.14), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(16, 184, 106, 0.1), transparent 26%),
    linear-gradient(180deg, #f8fdff, #eef8ff);
  display: block;
  min-height: calc(100dvh - 210px);
  padding: clamp(18px, 3vw, 34px) 0;
}

body[data-route="login"] .smart-login-shell,
body[data-route="self-help"] .self-help-hero,
body[data-route="products"] .product-page-shell,
body[data-route="services"] .services-overview-section,
body[data-route="about"] .about-page {
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  width: min(1280px, calc(100% - 32px));
}

body[data-route="self-help"] .self-help-hero,
body[data-route="products"] .product-page-shell,
body[data-route="services"] .services-overview-section,
body[data-route="about"] .about-page {
  border-radius: 28px;
  padding-left: clamp(18px, 3vw, 34px);
  padding-right: clamp(18px, 3vw, 34px);
}

.holiday-banner {
  align-items: center;
  background:
    radial-gradient(circle at 8% 20%, rgba(243, 196, 107, 0.45), transparent 28%),
    linear-gradient(135deg, #063f48, #0f766e);
  color: white;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  overflow: hidden;
  padding: 14px clamp(18px, 5vw, 64px);
  position: relative;
}

.holiday-banner.hide {
  display: none;
}

.holiday-banner span,
.holiday-banner strong,
.holiday-banner p {
  display: block;
}

.holiday-banner span {
  color: #f3c46b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.holiday-banner strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.holiday-banner p {
  color: rgba(255, 255, 255, 0.84);
  margin: 3px 0 0;
}

.holiday-banner .primary-action {
  background: #f3c46b;
  color: #102027;
  flex: 0 0 auto;
}

.holiday-visual {
  flex: 0 0 auto;
  height: 92px;
  position: relative;
  width: 176px;
}

.holiday-flag {
  animation: flagFly 4.2s ease-in-out infinite;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.24));
}

.holiday-custom-flag {
  animation: flagFly 4.2s ease-in-out infinite;
  display: grid;
  place-items: center;
}

.discount-banner-flag {
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 10px 18px 18px 10px;
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  display: block;
  max-height: 76px;
  object-fit: cover;
  width: 150px;
}

.flag-image {
  animation: flagWave 1.35s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px 18px 18px 8px;
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  display: block;
  height: 72px;
  left: 6px;
  object-fit: cover;
  position: absolute;
  top: 6px;
  transform-origin: left center;
  width: 162px;
}

.holiday-flag::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 52%);
  border-radius: 8px 18px 18px 8px;
  content: "";
  height: 72px;
  left: 6px;
  pointer-events: none;
  position: absolute;
  top: 6px;
  width: 162px;
}

.holiday-tree {
  animation: treeGlow 2.8s ease-in-out infinite;
  display: grid;
  justify-items: center;
}

.tree-star {
  background: #facc15;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 80% 92%, 50% 70%, 20% 92%, 32% 56%, 2% 35%, 39% 35%);
  display: block;
  height: 16px;
  position: absolute;
  top: 0;
  width: 16px;
  z-index: 3;
}

.tree-layer {
  background: linear-gradient(135deg, #22c55e, #047857);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  display: block;
  position: absolute;
}

.layer-one {
  height: 24px;
  top: 10px;
  width: 40px;
}

.layer-two {
  height: 30px;
  top: 22px;
  width: 58px;
}

.layer-three {
  height: 36px;
  top: 34px;
  width: 76px;
}

.tree-trunk {
  background: #92400e;
  border-radius: 2px;
  bottom: 0;
  display: block;
  height: 12px;
  position: absolute;
  width: 12px;
}

.tree-gift {
  border-radius: 5px;
  bottom: -4px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.18);
  display: block;
  height: 18px;
  position: absolute;
  width: 20px;
}

.tree-gift::before {
  background: rgba(255, 255, 255, 0.78);
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
}

.gift-one {
  background: #dc2626;
  left: 16px;
}

.gift-two {
  background: #2563eb;
  height: 20px;
  left: 48px;
  width: 22px;
}

.gift-three {
  background: #f59e0b;
  right: 12px;
}

.holiday-spark {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
}

.holiday-spark span {
  animation: treeGlow 1.8s ease-in-out infinite;
  background: #f3c46b;
  border-radius: 50%;
  display: block;
  height: 12px;
  width: 12px;
}

.holiday-spark span:nth-child(2) {
  animation-delay: 0.2s;
  background: #8fd8ff;
}

.holiday-spark span:nth-child(3) {
  animation-delay: 0.4s;
  background: #ffffff;
}

@keyframes flagFly {
  0%,
  100% {
    transform: translateX(0) rotate(-2deg);
  }
  50% {
    transform: translateX(8px) rotate(2deg);
  }
}

@keyframes flagWave {
  0%,
  100% {
    transform: skewY(-3deg) scaleX(0.96);
  }
  50% {
    transform: skewY(4deg) scaleX(1.04);
  }
}

@keyframes treeGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(250, 204, 21, 0));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.68));
    transform: translateY(-2px);
  }
}

.hero {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(7, 26, 47, 0.94), rgba(8, 58, 143, 0.8) 45%, rgba(239, 51, 64, 0.34)),
    radial-gradient(circle at 16% 20%, rgba(54, 183, 255, 0.38), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.32), transparent 22%),
    radial-gradient(circle at 72% 82%, rgba(22, 184, 106, 0.34), transparent 30%),
    url("assets/fixgpt-animated-banner.svg");
  background-position: center;
  background-size: cover;
  color: white;
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(470px, calc(100vh - 210px), 610px);
  padding: clamp(18px, 3vw, 34px) clamp(18px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
}

.hero::after {
  background: linear-gradient(90deg, transparent, rgba(54, 183, 255, 0.24), rgba(22, 184, 106, 0.2), transparent);
  content: "";
  height: 1px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 34%;
  box-shadow:
    0 120px 0 rgba(255, 255, 255, 0.08),
    0 240px 0 rgba(23, 105, 255, 0.1);
  pointer-events: none;
}

.home-help-strip {
  align-items: center;
  background:
    radial-gradient(circle at 10% 12%, rgba(23, 105, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(239, 51, 64, 0.1), transparent 30%),
    linear-gradient(135deg, #ffffff, #eaf3ff 52%, #eafaf1);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.74fr);
  padding: 14px clamp(18px, 5vw, 64px);
}

.home-help-strip h2 {
  color: var(--brand-dark);
  font-size: clamp(1.24rem, 2.2vw, 1.9rem);
  margin: 0 0 5px;
}

.home-help-strip p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.home-help-search {
  background: white;
  border: 1px solid rgba(6, 78, 88, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.62;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.6rem);
  margin-bottom: 12px;
}

.hero-copy {
  margin: 0 auto;
  max-width: 1040px;
  text-align: center;
  width: 100%;
}

.hero-copy .eyebrow {
  margin-top: 4px;
}

.hero-copy p {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.hero .secondary-action {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  color: white;
}

.policy-safe-notice {
  align-items: center;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
  border-bottom: 1px solid rgba(243, 196, 107, 0.42);
  border-top: 1px solid rgba(243, 196, 107, 0.42);
  display: grid;
  gap: 6px 18px;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr);
  padding: 12px clamp(18px, 5vw, 64px);
}

.policy-safe-notice strong {
  color: var(--brand-dark);
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.policy-safe-notice p {
  color: #6b4a04;
  font-size: 0.82rem;
  line-height: 1.38;
  margin: 0;
}

.policy-safe-notice p + p {
  grid-column: 2;
}

.trust-search-section {
  background:
    radial-gradient(circle at 10% 15%, rgba(32, 217, 255, 0.14), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(50, 246, 166, 0.16), transparent 34%),
    linear-gradient(135deg, #061525, #09253a 54%, #071a2f);
  color: #f8fcff;
  display: grid;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
}

.trust-search-head {
  max-width: 820px;
}

.trust-search-head .eyebrow {
  color: #8fe8ff;
}

.trust-search-head h2 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  margin: 0 0 8px;
}

.trust-search-head p {
  color: #d7ebf8;
  line-height: 1.55;
  margin: 0;
}

.trust-signal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-signal-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(143, 232, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 16px;
}

.trust-signal-grid span {
  color: #32f6a6;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.trust-signal-grid strong {
  color: #ffffff;
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
  margin-bottom: 7px;
}

.trust-signal-grid p {
  color: #d7ebf8;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.why-fixgpt-section {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px clamp(18px, 4vw, 36px);
}

.why-copy,
.ai-explainer-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.why-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.why-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.customer-journey-tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
  perspective: 1200px;
}

.customer-journey-tiles article {
  animation: journeyCardFloat 7s ease-in-out infinite;
  background:
    radial-gradient(circle at 30% 0%, rgba(143, 216, 255, 0.32), transparent 34%),
    linear-gradient(145deg, #ffffff, #eef8ff);
  border: 1px solid rgba(14, 165, 163, 0.18);
  border-radius: 8px;
  box-shadow:
    0 16px 26px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  min-height: 118px;
  padding: 12px;
  transform: rotateX(4deg);
}

.customer-journey-tiles article:nth-child(2) {
  animation-delay: 0.15s;
}

.customer-journey-tiles article:nth-child(3) {
  animation-delay: 0.3s;
}

.customer-journey-tiles article:nth-child(4) {
  animation-delay: 0.45s;
}

.customer-journey-tiles article:nth-child(5) {
  animation-delay: 0.6s;
}

.customer-journey-tiles span {
  align-items: center;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  border-radius: 16px;
  color: white;
  display: grid;
  font-size: 0.82rem;
  font-weight: 1000;
  height: 38px;
  justify-content: center;
  margin-bottom: 9px;
  width: 38px;
}

.customer-journey-tiles strong,
.customer-journey-tiles small {
  display: block;
}

.customer-journey-tiles strong {
  color: var(--brand-dark);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.customer-journey-tiles small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}

.smart-mini-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smart-mini-points article {
  min-height: auto;
  padding: 12px;
}

.smart-mini-points strong {
  font-size: 0.86rem;
}

.smart-mini-points p {
  font-size: 0.78rem;
}

@keyframes journeyCardFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(4deg);
  }
  50% {
    transform: translateY(-7px) rotateX(4deg);
  }
}

@media (max-width: 980px) {
  .customer-journey-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .customer-journey-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-journey-tiles article {
    min-height: 104px;
  }
}

.why-points article {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.why-points strong,
.why-points p {
  display: block;
}

.why-points strong {
  color: var(--brand-dark);
  margin-bottom: 5px;
}

.why-points p {
  margin: 0;
}

.ai-explainer-card {
  background:
    radial-gradient(circle at 12% 18%, rgba(143, 216, 255, 0.45), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(243, 196, 107, 0.46), transparent 30%),
    linear-gradient(145deg, #ffffff, #edf8f2);
}

.home-service-task-3d {
  align-items: center;
  background:
    radial-gradient(circle at 8% 0%, rgba(143, 216, 255, 0.24), transparent 30%),
    radial-gradient(circle at 94% 18%, rgba(19, 185, 165, 0.22), transparent 28%),
    linear-gradient(135deg, #071a2f, #0b3f57 58%, #0b6f78);
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
  color: white;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  margin: 0 auto 18px;
  max-width: 1180px;
  padding: clamp(16px, 2.6vw, 24px);
  perspective: 1200px;
}

.task-3d-copy h2 {
  color: white;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  margin-bottom: 8px;
}

.task-3d-copy .eyebrow {
  color: #b8fff0;
}

.task-3d-copy p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin: 0;
}

.task-3d-flow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.task-3d-flow::before {
  background: linear-gradient(90deg, #8fd8ff, #13b9a5, #f3c46b);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 7%;
  opacity: 0.55;
  position: absolute;
  right: 7%;
  top: 32px;
}

.task-3d-flow article {
  animation: task3dFloat 6.5s ease-in-out infinite;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  min-height: 118px;
  padding: 12px;
  position: relative;
  transform: rotateX(5deg);
  z-index: 1;
}

.task-3d-flow article:nth-child(2) {
  animation-delay: 0.15s;
}

.task-3d-flow article:nth-child(3) {
  animation-delay: 0.3s;
}

.task-3d-flow article:nth-child(4) {
  animation-delay: 0.45s;
}

.task-3d-flow span {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #b8fff0);
  border-radius: 14px;
  color: #071a2f;
  display: grid;
  font-size: 0.72rem;
  font-weight: 1000;
  height: 38px;
  justify-content: center;
  margin-bottom: 9px;
  width: 42px;
}

.task-3d-flow strong,
.task-3d-flow small {
  display: block;
}

.task-3d-flow strong {
  color: white;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.task-3d-flow small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}

.tax-task-mini {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  padding: 10px 12px;
}

.tax-task-mini strong {
  color: #b8fff0;
  font-size: 0.86rem;
}

.tax-task-mini span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.35;
}

@keyframes task3dFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(5deg);
  }
  50% {
    transform: translateY(-6px) rotateX(5deg);
  }
}

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

  .task-3d-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-3d-flow::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .task-3d-flow {
    grid-template-columns: 1fr;
  }

  .task-3d-flow article {
    min-height: auto;
  }
}

.ai-explainer-screen {
  background:
    radial-gradient(circle at 20% 16%, rgba(143, 216, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #102027, #064e58 58%, #0b6f78);
  border: 10px solid #172033;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.2);
  color: white;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.video-stage {
  height: 300px;
  position: relative;
}

.character {
  animation: characterFloat 3.5s ease-in-out infinite;
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  position: absolute;
  text-align: center;
  z-index: 3;
}

.character span {
  background:
    radial-gradient(circle at 50% 28%, #ffe2bd 0 22%, transparent 23%),
    linear-gradient(180deg, #13b9a5 0 48%, #f3c46b 49% 100%);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px 24px 10px 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  display: block;
  height: 76px;
  width: 58px;
}

.character strong {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 4px 8px;
}

.customer-character {
  bottom: 34px;
  left: 18px;
}

.david-character {
  animation-delay: 0.35s;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
}

.david-character span {
  background:
    radial-gradient(circle at 50% 28%, #e5f7ff 0 22%, transparent 23%),
    linear-gradient(180deg, #8fd8ff 0 48%, #14b8a6 49% 100%);
}

.expert-character {
  animation-delay: 0.7s;
  bottom: 34px;
  right: 18px;
}

.expert-character span {
  background:
    radial-gradient(circle at 50% 28%, #ffe2bd 0 22%, transparent 23%),
    linear-gradient(180deg, #f3c46b 0 48%, #0ea5a3 49% 100%);
}

.chat-card {
  animation: serviceCardShow 12s infinite;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  left: 50%;
  opacity: 0;
  padding: 11px 13px;
  position: absolute;
  top: 18px;
  transform: translateX(-50%) translateY(18px);
  width: min(86%, 300px);
  z-index: 4;
}

.chat-card small,
.chat-card b {
  display: block;
}

.chat-card small {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 1000;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.chat-card b {
  font-size: 0.88rem;
  line-height: 1.25;
}

.card-two {
  animation-delay: 3s;
}

.card-three {
  animation-delay: 6s;
}

.card-four {
  animation-delay: 9s;
}

.service-orbit {
  animation: orbitPulse 5s linear infinite;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  height: 160px;
  left: 50%;
  position: absolute;
  top: 102px;
  transform: translateX(-50%);
  width: 160px;
  z-index: 1;
}

.service-orbit span {
  align-items: center;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 999px;
  color: var(--brand-dark);
  display: grid;
  font-size: 0.7rem;
  font-weight: 1000;
  height: 38px;
  justify-content: center;
  position: absolute;
  width: 38px;
}

.service-orbit span:nth-child(1) {
  left: 61px;
  top: -18px;
}

.service-orbit span:nth-child(2) {
  right: -18px;
  top: 61px;
}

.service-orbit span:nth-child(3) {
  bottom: -18px;
  left: 61px;
}

.service-orbit span:nth-child(4) {
  left: -18px;
  top: 61px;
}

.explainer-caption {
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.explainer-caption strong,
.explainer-caption span {
  display: block;
}

.explainer-caption strong {
  color: #f3c46b;
}

.explainer-caption span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  line-height: 1.42;
}

.movie-timeline {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.movie-timeline span {
  animation: pulseBar 1.8s infinite;
  background: #0b6f78;
  border-radius: 999px;
  display: block;
  height: 8px;
}

.movie-timeline span:nth-child(2) {
  animation-delay: 0.25s;
  background: #13b9a5;
}

.movie-timeline span:nth-child(3) {
  animation-delay: 0.5s;
  background: #f3c46b;
}

.movie-timeline span:nth-child(4) {
  animation-delay: 0.75s;
  background: #8fd8ff;
}

@keyframes serviceCardShow {
  0%,
  9% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.98);
  }
  13%,
  24% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  30%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px) scale(0.98);
  }
}

@keyframes characterFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes orbitPulse {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b8fff0;
}

.hero-visual {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 1040px;
  width: 100%;
  z-index: 4;
}

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

.hero-metrics div {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(23, 105, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(7, 26, 47, 0.18);
  color: var(--ink);
  padding: 12px;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--brand-dark);
  font-size: 1.32rem;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 5px;
}

.support-window,
.signal-panel,
.panel,
.service-card,
.plan-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.94));
  border: 1px solid rgba(23, 105, 255, 0.18);
  border-radius: 8px;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.service-card,
.plan-card,
.product-card,
.product-featured-card,
.graphic-map-grid article,
.why-points article {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.plan-card:hover,
.product-card:hover,
.product-featured-card:hover,
.graphic-map-grid article:hover,
.why-points article:hover {
  border-color: rgba(22, 184, 106, 0.48);
  box-shadow: var(--premium-shadow);
  transform: translateY(-3px);
}

.support-window {
  color: var(--ink);
  overflow: hidden;
}

.home-search-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 105, 255, 0.22), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(239, 51, 64, 0.12), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(22, 184, 106, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 255, 0.94));
  backdrop-filter: blur(18px);
  border: 2px solid rgba(23, 105, 255, 0.34);
  border-radius: 18px;
  box-shadow:
    0 30px 92px rgba(7, 26, 47, 0.34),
    0 0 0 8px rgba(22, 184, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  position: relative;
  text-align: center;
}

.home-search-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  content: "";
  height: 100%;
  left: -60%;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  width: 34%;
}

.home-search-card:hover::before {
  animation: glossySweep 1.8s ease;
}

.home-search-card .eyebrow {
  background: linear-gradient(135deg, var(--blue-soft), var(--green-soft));
  border: 1px solid rgba(23, 105, 255, 0.26);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding: 5px 11px;
}

.home-search-card h2 {
  color: #071a2f;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  line-height: 1.12;
  margin: 0 auto 8px;
  max-width: 820px;
}

.home-search-card p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin: 0 auto 10px;
  max-width: 720px;
}

.home-issue-search {
  background:
    linear-gradient(180deg, #ffffff, #f0fcff);
  border: 4px solid #29e6ff;
  border-radius: 18px;
  box-shadow:
    0 24px 62px rgba(0, 168, 200, 0.28),
    0 0 0 8px rgba(41, 230, 255, 0.18),
    0 0 42px rgba(97, 87, 255, 0.16);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin: 4px auto 0;
  max-width: 920px;
  padding: 12px;
  position: relative;
  animation: searchPulse 2.8s ease-in-out infinite;
}

.home-issue-search::after {
  background: linear-gradient(90deg, #29e6ff, #6157ff, #10cfa2, #29e6ff);
  border-radius: 999px;
  bottom: -7px;
  content: "";
  height: 4px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.home-issue-search input {
  background: linear-gradient(180deg, #ffffff, #effcff);
  border: 2px solid rgba(41, 230, 255, 0.25);
  border-radius: 10px;
  color: #073b44;
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 800;
  min-height: 66px;
  padding: 0 22px;
}

.home-issue-search input:focus {
  border-color: #29e6ff;
  box-shadow: 0 0 0 4px rgba(41, 230, 255, 0.18);
  outline: none;
}

.home-issue-search .primary-action {
  background: linear-gradient(135deg, #071a2f, #00a8c8 58%, #6157ff);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(7, 26, 47, 0.28);
  font-size: 1rem;
  min-height: 66px;
  padding-inline: 26px;
}

.smart-command-section {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 4px clamp(18px, 4vw, 36px) 34px;
}

.smart-command-copy,
.smart-command-visual {
  border-radius: 12px;
  box-shadow: var(--premium-shadow);
}

.smart-command-copy {
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 168, 200, 0.18), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(52, 211, 153, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff, #f6fbff);
  border: 1px solid rgba(31, 78, 153, 0.2);
  display: grid;
  align-content: center;
  padding: clamp(18px, 3vw, 28px);
}

.smart-command-copy p,
.smart-command-intro {
  color: var(--muted);
  line-height: 1.55;
}

.smart-command-copy h2 {
  margin-bottom: 8px;
}

.smart-command-intro {
  font-size: 0.95rem;
  margin: 0;
}

.smart-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.smart-feature-list span {
  background: linear-gradient(180deg, #ffffff, #edfaff);
  border: 1px solid rgba(18, 184, 199, 0.28);
  border-radius: 999px;
  color: #055a66;
  font-size: 0.77rem;
  font-weight: 900;
  padding: 7px 10px;
}

.smart-command-visual {
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.24), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(124, 58, 237, 0.18), transparent 25%),
    linear-gradient(145deg, #081421, #063c48 54%, #075767);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  overflow: hidden;
  position: relative;
}

.smart-command-visual::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.35;
  position: absolute;
}

.command-topbar,
.command-grid,
.command-signal {
  position: relative;
  z-index: 1;
}

.command-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 8px;
  padding: 11px 16px;
}

.command-topbar span {
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.command-topbar span:nth-child(1) {
  background: #ff6b6b;
}

.command-topbar span:nth-child(2) {
  background: #facc15;
}

.command-topbar span:nth-child(3) {
  background: #34d399;
  margin-right: 8px;
}

.command-topbar strong {
  color: #dffaff;
  font-size: 0.9rem;
  margin-right: auto;
}

.command-topbar b {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  color: #baf7d6;
  font-size: 0.72rem;
  padding: 5px 9px;
}

.command-board {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding: clamp(16px, 2.4vw, 22px);
}

.command-board-main,
.command-ticket-stack {
  display: grid;
  gap: 10px;
}

.command-metric,
.command-ticket-stack article {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px 13px;
}

.command-metric small,
.command-metric strong,
.command-metric em,
.command-ticket-stack span,
.command-ticket-stack b,
.command-ticket-stack i {
  display: block;
}

.command-metric small {
  color: #8ff5ff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.command-metric strong {
  font-size: 1.55rem;
  line-height: 1.2;
}

.command-metric em {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-style: normal;
}

.command-ticket-stack article {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: auto;
}

.command-ticket-stack span {
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
}

.command-ticket-stack b {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
}

.command-ticket-stack i {
  align-self: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #dffaff;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 1000;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 6px 8px;
  text-transform: uppercase;
}

.command-ticket-stack article:first-child i {
  background: rgba(248, 113, 113, 0.22);
  color: #ffd0d0;
}

.panel-glow {
  animation: commandGlow 2.6s ease-in-out infinite;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.24), rgba(255, 255, 255, 0.12));
}

.command-signal {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 10px;
  padding: 12px 16px;
}

.command-signal span {
  animation: signalPulse 1.4s ease-in-out infinite;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.12);
  height: 12px;
  width: 12px;
}

.command-signal b {
  color: #e6feff;
  font-size: 0.82rem;
  line-height: 1.35;
}

@keyframes commandGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.28);
  }
}

@keyframes signalPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}

@keyframes searchPulse {
  0%,
  100% {
    box-shadow:
      0 22px 54px rgba(7, 140, 153, 0.34),
      0 0 0 8px rgba(143, 216, 255, 0.24),
      0 0 34px rgba(20, 184, 166, 0.28);
  }
  50% {
    box-shadow:
      0 26px 64px rgba(7, 140, 153, 0.42),
      0 0 0 11px rgba(243, 196, 107, 0.2),
      0 0 46px rgba(20, 184, 166, 0.34);
  }
}

@keyframes glossySweep {
  from {
    left: -60%;
  }
  to {
    left: 126%;
  }
}

.window-bar {
  align-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(18, 184, 199, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #f5fbff);
  border-bottom: 1px solid rgba(143, 216, 255, 0.42);
  color: #073b44;
  display: flex;
  gap: 6px;
  padding: 9px 12px;
}

.window-bar span {
  background: #fa6969;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.window-bar span:nth-child(2) {
  background: #f6c65b;
}

.window-bar span:nth-child(3) {
  background: #5bd27d;
  margin-right: 8px;
}

.agent-avatar {
  align-items: center;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0 9%, transparent 10%),
    radial-gradient(circle at 50% 38%, #f3c46b 0 19%, transparent 20%),
    radial-gradient(circle at 50% 82%, #0f8c99 0 32%, transparent 33%),
    linear-gradient(135deg, #e0f7ff, #ffffff);
  border: 2px solid rgba(18, 184, 199, 0.34);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(7, 140, 153, 0.18);
  color: transparent;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 1000;
  height: 34px;
  justify-content: center;
  margin-left: 4px;
  width: 34px;
}

.home-chat-popup {
  bottom: 24px;
  display: none;
  position: fixed;
  right: 24px;
  width: min(680px, calc(100vw - 32px));
  z-index: 90;
}

.home-chat-popup.show {
  display: block;
}

.home-chat-popup.show + .public-chat-fab {
  display: none;
}

.public-chat-fab {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0;
  border-radius: 999px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 18px 38px rgba(6, 78, 88, 0.34);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 1000;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  position: fixed;
  right: 22px;
  z-index: 80;
}

.public-chat-fab span {
  background: white;
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  position: relative;
  width: 18px;
}

.public-chat-fab span::after {
  border-left: 5px solid transparent;
  border-top: 6px solid white;
  bottom: -4px;
  content: "";
  position: absolute;
  right: 2px;
}

.home-popup-window {
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  border-color: rgba(20, 184, 166, 0.35);
}

.home-chat-close {
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.26);
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  margin-left: auto;
  min-height: 30px;
  padding: 0 10px;
  pointer-events: auto;
  position: relative;
  z-index: 8;
}

.home-chat-close:hover {
  background: #eef8ff;
}

.chat-agent-title {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.chat-agent-title strong {
  color: #073b44;
  font-size: 0.86rem;
}

.chat-agent-title small {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
}

.expert-chat-strip {
  align-items: center;
  background: linear-gradient(135deg, #f8feff, #ffffff);
  border-bottom: 1px solid rgba(143, 216, 255, 0.38);
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
  padding: 8px 12px;
}

.expert-photo {
  align-items: center;
  background:
    radial-gradient(circle at 50% 30%, #f6d79c 0 18%, transparent 19%),
    radial-gradient(circle at 50% 76%, #0f8c99 0 34%, transparent 35%),
    linear-gradient(135deg, #e0f7ff, #ffffff);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(7, 140, 153, 0.18);
  color: transparent;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.expert-chat-strip strong {
  color: #073b44;
  display: block;
  font-size: 0.84rem;
  line-height: 1.15;
}

.expert-chat-strip span {
  color: #64748b;
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.28;
}

.expert-chat-strip em {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bcebd6;
  border-radius: 999px;
  color: #075849;
  display: inline-flex;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 1000;
  gap: 5px;
  padding: 4px 7px;
}

.expert-chat-strip em::before {
  background: #22c55e;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.message-row {
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
  margin: 14px;
  padding: 12px;
}

.message-row.ai {
  background: var(--blue);
}

.message-row.client {
  background: var(--amber);
}

.message-row.agent {
  background: var(--mint);
}

.home-chat-log {
  background:
    radial-gradient(circle at 10% 0%, rgba(18, 184, 199, 0.12), transparent 26%),
    linear-gradient(180deg, #f7fbff, #eef8ff);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 540px;
  min-height: 420px;
  overflow: auto;
  padding: 12px;
}

.home-chat-bubble {
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.38;
  max-width: 88%;
  padding: 8px 10px;
}

.home-chat-bubble.ai {
  align-self: flex-start;
  background: white;
  border: 1px solid rgba(18, 184, 199, 0.18);
  border-top-left-radius: 6px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.home-chat-bubble.ai::before {
  content: "David";
  color: var(--brand);
  display: block;
  font-size: 0.64rem;
  font-weight: 1000;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.home-chat-bubble.client {
  align-self: flex-end;
  background: linear-gradient(135deg, #fff6df, #ffedbd);
  border: 1px solid rgba(243, 196, 107, 0.38);
  border-top-right-radius: 6px;
  color: var(--ink);
}

.home-chat-bubble.agent {
  align-self: flex-start;
  background: linear-gradient(135deg, #e8fff8, #eef6ff);
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-top-left-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.home-chat-bubble.agent::before {
  content: "Support Team";
  color: #0f766e;
  display: block;
  font-size: 0.64rem;
  font-weight: 1000;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.home-chat-bubble.nudge {
  border-color: rgba(243, 196, 107, 0.42);
}

.home-chat-action {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(30, 41, 59, 0.09);
  padding: 8px;
}

.home-chat-action .primary-action {
  min-height: 34px;
}

.home-chat-compose {
  background: #ffffff;
  border-top: 1px solid rgba(143, 216, 255, 0.42);
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
  padding: 8px 10px 10px;
}

.home-chat-compose input,
.chat-compose input {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
  color: #073b44;
  font-size: 0.82rem;
  font-weight: 750;
  min-height: 38px;
  padding: 0 12px;
}

.home-chat-compose input:focus,
.chat-compose input:focus {
  border-color: #12b8c7;
  box-shadow: 0 0 0 4px rgba(18, 184, 199, 0.14);
  outline: none;
}

.home-chat-compose .primary-action {
  border-radius: 999px;
  font-size: 0.82rem;
  min-height: 38px;
  padding-inline: 14px;
}

.chat-inline-payment[hidden] {
  display: none !important;
}

.chat-inline-payment {
  background: linear-gradient(180deg, #f8fcff, #eef8ff);
  border-top: 1px solid rgba(14, 165, 233, 0.18);
  max-height: min(330px, 44vh);
  overflow: auto;
  padding: 8px 10px;
}

.chat-inline-payment-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.96)),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 36%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  color: #0f172a;
  padding: 10px;
}

.chat-inline-payment-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chat-inline-payment-head span,
.chat-inline-payment-summary span {
  color: #0f766e;
  display: block;
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-inline-payment-head strong {
  color: #075985;
  display: block;
  font-size: 1.2rem;
  line-height: 1;
}

.chat-inline-payment-head .icon-button {
  align-items: center;
  background: #e0f2fe;
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 999px;
  color: #0369a1;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 1000;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0;
}

.chat-inline-payment-summary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
}

.chat-inline-payment-summary p {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0;
}

.chat-inline-payment-summary strong {
  color: #0f172a;
  font-size: 0.72rem;
  max-width: 58%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-inline-payment-form {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.chat-inline-payment-form label {
  color: #334155;
  display: grid;
  font-size: 0.67rem;
  font-weight: 900;
  gap: 3px;
}

.chat-inline-payment-form .wide {
  grid-column: 1 / -1;
}

.chat-inline-payment-form input,
.chat-inline-payment-form select {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 750;
  min-height: 34px;
  padding: 0 10px;
  width: 100%;
}

.chat-inline-payment-form input:focus,
.chat-inline-payment-form select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
  outline: none;
}

.chat-inline-payment-form .chat-inline-check {
  align-items: flex-start;
  background: rgba(236, 253, 245, 0.82);
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  line-height: 1.3;
  padding: 8px;
}

.chat-inline-payment-form .chat-inline-check input {
  accent-color: #0f766e;
  flex: 0 0 auto;
  height: 16px;
  margin-top: 1px;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.chat-inline-payment-form .chat-inline-check label {
  color: #164e63;
  font-size: 0.7rem;
  font-weight: 850;
}

.chat-inline-payment-form .primary-action {
  border-radius: 999px;
  min-height: 36px;
}

.chat-tools {
  align-items: center;
  background:
    linear-gradient(180deg, #ffffff, #f2fbff);
  border-top: 1px solid rgba(143, 216, 255, 0.42);
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  padding: 6px 10px;
  text-align: left;
}

.live-agent-count {
  align-items: center;
  background: #ecfdf5;
  border-top: 1px solid #bcebd6;
  color: #075849;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 10px;
}

.live-agent-count::before {
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
  content: "";
  height: 8px;
  width: 8px;
}

.support-live-count {
  border-top: 0;
}

.chat-tool-button {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #eefdff);
  border: 1px solid rgba(7, 140, 153, 0.28);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(7, 140, 153, 0.14);
  color: #064e58;
  cursor: pointer;
  display: inline-flex;
  font-size: 0;
  font-weight: 900;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0;
  position: relative;
  width: 34px;
}

label.chat-tool-button {
  margin: 0;
  overflow: hidden;
}

.chat-tool-button:hover {
  background: linear-gradient(135deg, #e6fffb, #eef8ff);
  border-color: #12b8c7;
  transform: translateY(-1px);
}

.chat-tool-button::before {
  align-items: center;
  content: "";
  display: block;
  flex: 0 0 auto;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.chat-tool-button[data-chat-tool="upload"]::before {
  background:
    linear-gradient(135deg, transparent 0 10px, #dbeafe 10px 100%),
    linear-gradient(#ffffff, #f8fafc);
  border: 1.6px solid #0f8c99;
  border-radius: 4px;
  box-shadow:
    inset -5px 5px 0 rgba(219, 234, 254, 0.95),
    0 5px 9px rgba(7, 140, 153, 0.16);
}

.chat-tool-button[data-chat-tool="record"]::before {
  content: "●";
  color: #dc2626;
}

.chat-tool-button[data-chat-tool="screen"]::before {
  background:
    linear-gradient(#dff7ff, #ffffff) padding-box,
    linear-gradient(135deg, #0f8c99, #f59e0b) border-box;
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow:
    0 5px 9px rgba(7, 140, 153, 0.16),
    0 8px 0 -6px #0f172a;
  height: 15px;
  width: 20px;
}

.chat-tool-button::after {
  pointer-events: none;
}

.chat-tool-button[data-chat-tool="upload"] {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, #f0fdfa, #ffffff);
}

.chat-tool-button[data-chat-tool="upload"] {
  color: #0f8c99;
}

.chat-tool-button[data-chat-tool="screen"] {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, #fff7ed, #ffffff);
  color: #9a4f00;
}

.home-chat-popup .customer-screen-share-button {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(135deg, #0ea5e9 0%, #2563eb 52%, #16a34a 100%);
  border: 0;
  border-radius: 999px;
  box-shadow:
    0 14px 26px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-size: 0.78rem;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  padding: 0 14px 0 12px;
  width: auto;
}

.home-chat-popup .customer-screen-share-button[hidden] {
  display: none;
}

.home-chat-popup .customer-screen-share-button::before {
  background:
    linear-gradient(#e0f2fe, #ffffff) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(34, 197, 94, 0.85)) border-box;
  border: 2px solid transparent;
  border-radius: 5px;
  box-shadow:
    0 5px 10px rgba(2, 6, 23, 0.18),
    0 9px 0 -7px rgba(255, 255, 255, 0.95);
  height: 15px;
  width: 20px;
}

.home-chat-popup .customer-screen-share-button::after {
  display: none;
}

.home-chat-popup .customer-screen-share-button:hover,
.home-chat-popup .customer-screen-share-button:focus-visible {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 52%, #15803d 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.home-chat-popup .chat-tools {
  align-items: center;
  justify-content: space-between;
}

.chat-tool-button[data-chat-tool="upload"]::after,
.chat-tool-button[data-chat-tool="screen"]::after {
  border-radius: 999px;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 1000;
  height: 13px;
  line-height: 12px;
  position: absolute;
  right: 4px;
  top: 3px;
  width: 13px;
}

.chat-tool-button[data-chat-tool="upload"]::after {
  background: #0f8c99;
  color: #ffffff;
  content: "↑";
}

.chat-tool-button[data-chat-tool="screen"]::after {
  background: #f59e0b;
  color: #ffffff;
  content: "↗";
}

.chat-tool-button:hover::after,
.chat-tool-button:focus-visible::after {
  background: #111827;
  border-radius: 8px;
  bottom: calc(100% + 8px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  color: white;
  content: attr(title);
  font-size: 0.76rem;
  font-weight: 800;
  height: auto;
  left: 50%;
  line-height: 1.2;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  white-space: nowrap;
  width: auto;
  z-index: 120;
}

.chat-tool-button:hover::before,
.chat-tool-button:focus-visible::before {
  transform: scale(1.08);
}

.chat-file-input {
  border: 0;
  cursor: pointer;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
}

.chat-file-input:not(.native-chat-file-input) {
  height: 1px;
  inset: auto;
  width: 1px;
}

.chat-file-input.active-file-picker {
  left: -9999px;
  position: fixed;
  top: 0;
  z-index: -1;
}

.chat-tool-button.recording {
  background: #fff2d8;
  border-color: rgba(243, 196, 107, 0.8);
  color: #7a4a00;
}

.chat-tool-button.recording::before {
  content: "■";
}

.chat-media-panel {
  background: #eef8ff;
  border-top: 1px solid #cbe7fb;
  display: grid;
  gap: 8px;
  padding: 8px 10px;
}

.home-chat-popup .chat-media-panel {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28%),
    linear-gradient(135deg, #071526, #0b1f3a);
  border-top: 1px solid rgba(41, 230, 255, 0.22);
  color: #ffffff;
  padding: 10px;
}

.chat-media-panel[hidden] {
  display: none;
}

.chat-media-header {
  display: grid;
  gap: 3px;
}

.chat-media-header strong {
  color: var(--brand-dark);
}

.home-chat-popup .chat-media-header strong {
  color: #ffffff;
}

.chat-media-header span {
  color: var(--muted);
  font-size: 0.74rem;
}

.home-chat-popup .chat-media-header span {
  color: rgba(255, 255, 255, 0.72);
}

.chat-media-panel video {
  background: #101828;
  border-radius: 8px;
  max-height: 260px;
  object-fit: contain;
  width: 100%;
}

.home-chat-popup .chat-media-panel video {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  max-height: 220px;
}

.voice-call-visual {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  padding: 12px;
}

.voice-call-visual span {
  animation: pulseBar 1s infinite;
  background: var(--brand);
  border-radius: 999px;
  display: block;
  height: 26px;
  width: 8px;
}

.voice-call-visual span:nth-child(2) {
  animation-delay: 0.18s;
  height: 40px;
}

.voice-call-visual span:nth-child(3) {
  animation-delay: 0.36s;
  height: 32px;
}

.voice-call-visual strong {
  color: var(--brand-dark);
  margin-left: 6px;
}

.recording-visual {
  align-items: center;
  background: white;
  border: 1px solid rgba(243, 196, 107, 0.72);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  padding: 12px;
}

.recording-visual span {
  animation: pulseBar 0.8s infinite;
  background: #ef4444;
  border-radius: 999px;
  display: block;
  height: 18px;
  width: 8px;
}

.recording-visual span:nth-child(2) {
  animation-delay: 0.12s;
  height: 38px;
}

.recording-visual span:nth-child(3) {
  animation-delay: 0.24s;
  height: 28px;
}

.recording-visual span:nth-child(4) {
  animation-delay: 0.36s;
  height: 34px;
}

.recording-visual strong {
  color: #7a1c1c;
  margin-left: 6px;
}

.recording-transcript {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0;
  padding: 9px 10px;
}

.chat-attachment {
  display: grid;
  gap: 7px;
}

.chat-attachment strong,
.chat-attachment span,
.chat-attachment a {
  display: block;
}

.chat-attachment span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.chat-attachment a {
  color: var(--brand-dark);
  font-weight: 900;
}

.chat-file-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 180px;
  object-fit: cover;
  width: 100%;
}

.chat-audio-player {
  height: 34px;
  width: min(100%, 220px);
}

.chat-attachment.audio-message {
  gap: 4px;
  max-width: min(280px, 74%);
  padding: 7px 9px;
}

.chat-attachment.audio-message strong {
  font-size: 0.82rem;
}

.chat-attachment.audio-message span,
.chat-attachment.audio-message a,
.audio-transcript {
  font-size: 0.74rem;
}

.audio-transcript {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(6, 78, 88, 0.1);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
  padding: 7px 8px;
}

.signal-panel {
  align-items: center;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.signal-panel span {
  color: var(--muted);
}

.content-band,
.narrow-page,
.registration-layout,
.text-page,
.contact-layout,
.workspace,
.dashboard-layout,
.admin-grid,
.login-grid {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px clamp(18px, 4vw, 36px);
}

.page-banner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px clamp(18px, 4vw, 36px) 0;
}

.page-banner img {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

.page-banner > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.page-banner p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.registration-layout {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
}

.registration-layout > div,
.registration-layout form {
  grid-column: 1;
}

.become-expert-intro {
  background:
    radial-gradient(circle at top right, rgba(32, 217, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96));
  border: 1px solid rgba(23, 105, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(7, 26, 47, 0.1);
  padding: clamp(16px, 2.1vw, 24px);
}

.expert-compact-hero {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.expert-compact-hero h2 {
  color: #071a2f;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.02;
  margin: 4px 0 8px;
}

.expert-compact-hero .lead {
  color: #52677c;
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.expert-apply-highlight {
  background: linear-gradient(135deg, #1769ff, #18c7ff 48%, #16b86a) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 16px 34px rgba(23, 105, 255, 0.32),
    0 0 0 6px rgba(32, 217, 255, 0.13) !important;
  color: #fff !important;
  min-width: 150px;
  position: relative;
}

.expert-apply-highlight::after {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  content: "";
  height: 42%;
  left: 14%;
  opacity: 0.24;
  position: absolute;
  right: 14%;
  top: 10%;
}

.expert-apply-highlight:hover,
.expert-apply-highlight:focus-visible {
  box-shadow:
    0 20px 42px rgba(23, 105, 255, 0.42),
    0 0 0 7px rgba(22, 184, 106, 0.16) !important;
  transform: translateY(-2px) scale(1.02);
}

.expert-quick-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 12px;
}

.expert-quick-grid article {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 105, 255, 0.12);
  border-radius: 16px;
  min-height: 92px;
  padding: 14px;
}

.expert-quick-grid b {
  color: #0b3f91;
  display: block;
  font-size: 0.92rem;
  margin-bottom: 5px;
}

.expert-quick-grid span {
  color: #52677c;
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.expert-compact-flow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0;
}

.expert-compact-flow span {
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.1), rgba(22, 184, 106, 0.13));
  border: 1px solid rgba(23, 105, 255, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 1px;
  padding: 10px 12px;
}

.expert-compact-flow b {
  color: #071a2f;
  font-size: 0.82rem;
}

.expert-compact-flow small {
  color: #53687b;
  font-size: 0.7rem;
  font-weight: 800;
}

.expert-benefit-grid {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.expert-benefit-grid article {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.expert-benefit-grid strong,
.expert-benefit-grid p {
  display: block;
}

.expert-benefit-grid strong {
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.expert-benefit-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.expert-info-board {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 18px 0;
}

.expert-info-board section,
.expert-faq-strip article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 255, 0.94));
  border: 1px solid rgba(23, 105, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(7, 26, 47, 0.08);
  padding: 16px;
}

.expert-info-board h3 {
  color: #0b3f91;
  font-size: 1.02rem;
}

.expert-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.expert-category-pills.compact {
  gap: 6px;
  margin-top: 12px;
}

.expert-category-pills span {
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.1), rgba(22, 184, 106, 0.12));
  border: 1px solid rgba(23, 105, 255, 0.16);
  border-radius: 999px;
  color: #17324d;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 10px;
}

.expert-category-pills.compact span {
  font-size: 0.69rem;
  padding: 6px 9px;
}

.expert-process-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.expert-process-list span {
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 2px;
  padding: 10px;
}

.expert-process-list b,
.expert-faq-strip b {
  color: #0b3f91;
  font-size: 0.84rem;
}

.expert-process-list small,
.expert-faq-strip p {
  color: #53687b;
  font-size: 0.76rem;
  line-height: 1.35;
  margin: 0;
}

.expert-faq-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 18px;
}

.expert-form-panel[hidden] {
  display: none;
}

.expert-form-panel h3 {
  color: var(--brand-dark);
}

.registration-photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  width: 100%;
}

.form-note {
  color: var(--muted);
  line-height: 1.55;
  margin: -2px 0 6px;
}

.selected-plan-notice {
  background: #eaf7f4;
  border: 1px solid #b7ded7;
  border-radius: 8px;
  color: var(--brand-dark);
  display: none;
  margin-bottom: 14px;
  padding: 12px;
}

.selected-plan-notice:not(:empty) {
  display: block;
}

.selected-plan-notice strong,
.selected-plan-notice span {
  display: block;
}

.selected-plan-notice span {
  color: #344054;
  margin-top: 4px;
}

.muted-band {
  background: #eef3f7;
  max-width: none;
}

.graphic-service-map {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(223, 247, 239, 0.84)),
    radial-gradient(circle at 90% 12%, rgba(243, 196, 107, 0.42), transparent 28%);
  max-width: none;
}

.graphic-map-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.graphic-map-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 210px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.graphic-map-grid article::after {
  background: linear-gradient(135deg, rgba(11, 111, 120, 0.12), rgba(243, 196, 107, 0.24));
  border-radius: 999px;
  content: "";
  height: 112px;
  position: absolute;
  right: -38px;
  top: -38px;
  width: 112px;
}

.graphic-map-grid span {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  display: inline-grid;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.graphic-map-grid strong {
  color: var(--ink);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.graphic-map-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.product-page-shell {
  display: grid;
  gap: 18px;
}

.product-store-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

.product-smart-copy {
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 92, 185, 0.12), transparent 32%),
    linear-gradient(145deg, #ffffff, #eef7ff);
  border: 1px solid rgba(8, 100, 150, 0.22);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  padding: clamp(20px, 3vw, 30px);
}

.product-store-hero h2 {
  margin-bottom: 8px;
}

.product-store-actions,
.product-category-tabs,
.product-payment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-store-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(41, 230, 255, 0.34), transparent 36%),
    linear-gradient(145deg, #031224, #064e63 58%, #047857);
  background-size: 32px 32px, 32px 32px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 26px 62px rgba(7, 26, 47, 0.22);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.product-smart-visual {
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.product-visual-core {
  align-content: center;
  background: linear-gradient(145deg, rgba(41, 230, 255, 0.95), rgba(16, 207, 162, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(41, 230, 255, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.26);
  color: #02111f;
  display: grid;
  height: 122px;
  justify-items: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 122px;
  z-index: 2;
}

.product-visual-core strong {
  color: #02111f;
  font-size: 1rem;
}

.product-visual-core span {
  color: #033047;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.product-visual-chip {
  animation: productChipFloat 4.6s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 1000;
  padding: 10px 12px;
  position: absolute;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.product-visual-chip.chip-a {
  left: 18px;
  top: 26px;
}

.product-visual-chip.chip-b {
  right: 20px;
  top: 38px;
}

.product-visual-chip.chip-c {
  bottom: 34px;
  left: 26px;
}

.product-visual-chip.chip-d {
  animation-delay: 0.4s;
  bottom: 26px;
  right: 28px;
}

.product-store-card span,
.product-toolbar-summary span,
.product-category-pill,
.product-mini-meta span,
.product-price-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-store-card strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.product-toolbar {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  border: 1px solid rgba(8, 100, 150, 0.22);
  border-radius: 20px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.product-toolbar-summary {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.product-toolbar-summary strong {
  color: var(--ink);
}

.product-category-tabs button {
  background: #ffffff;
  border: 1px solid rgba(8, 100, 150, 0.22);
  border-radius: 999px;
  color: #071a2f;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  min-height: 36px;
  padding: 7px 12px;
}

.product-category-tabs button.active {
  background: linear-gradient(135deg, #071a2f, #005cb9 58%, #047857);
  border-color: #005cb9;
  color: #ffffff;
}

.product-smart-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-smart-strip article {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  border: 1px solid rgba(8, 100, 150, 0.22);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 5px;
  padding: 15px;
}

.product-smart-strip span {
  color: #005cb9;
  font-size: 0.72rem;
  font-weight: 1000;
}

.product-smart-strip strong {
  color: #071a2f;
  font-size: 0.96rem;
}

.product-smart-strip small {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.32;
}

.product-category-tabs button span {
  margin-left: 6px;
  opacity: 0.75;
}

.product-grid {
  display: grid;
  gap: 18px;
}

.product-featured-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(8, 100, 150, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  overflow: hidden;
}

.product-featured-card img {
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  width: 100%;
}

.product-featured-card > div {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 34px);
}

.product-featured-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  margin: 0;
}

.product-featured-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.55;
}

.product-price-row,
.product-mini-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.product-price-row strong,
.product-card strong {
  color: var(--brand-dark);
  display: block;
  font-size: 1.4rem;
}

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

.product-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(8, 100, 150, 0.24);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  display: grid;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  border-color: rgba(0, 92, 185, 0.5);
  transform: translateY(-4px);
}

.product-image-wrap {
  overflow: hidden;
  position: relative;
}

.product-image-wrap span {
  background: rgba(7, 26, 47, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 1000;
  left: 12px;
  padding: 6px 9px;
  position: absolute;
  top: 12px;
}

.product-card img,
.product-image-wrap img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card > div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-card h3 {
  color: #071a2f;
  font-size: 1.06rem;
  margin: 0;
}

.product-category-pill {
  background: #dff3ff;
  border: 1px solid rgba(0, 92, 185, 0.2);
  border-radius: 999px;
  color: #063b70;
  display: inline-flex;
  justify-self: start;
  padding: 5px 9px;
}

.product-card-topline {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.product-card-topline small {
  color: #047857;
  font-size: 0.72rem;
  font-weight: 950;
}

@keyframes productChipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.product-payment-strip {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 12px;
}

.product-payment-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-payment-strip b {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  padding: 6px 10px;
}

.product-thumb {
  border-radius: 8px;
  height: 58px;
  object-fit: cover;
  width: 86px;
}

.product-checkout {
  margin-top: 24px;
}

.product-checkout-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  padding: clamp(18px, 3vw, 28px);
}

.product-checkout-summary {
  display: grid;
  gap: 14px;
}

.product-checkout-summary img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: block;
  max-height: 180px;
  object-fit: cover;
  width: 100%;
}

.product-checkout-panel .primary-action {
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(23, 105, 255, 0.28);
}

.product-checkout-panel .primary-action:hover {
  background: var(--brand-dark);
}

.product-receipt-panel {
  display: grid;
  gap: 12px;
}

.product-receipt-panel h2 {
  margin: 0;
}

.product-receipt-letterhead {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-receipt-letterhead h2 {
  font-size: 1.2rem;
}

.product-receipt-terms {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

.product-receipt-terms summary {
  cursor: pointer;
  font-weight: 700;
}

.product-receipt-terms p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.product-receipt-status {
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  text-transform: uppercase;
}

.product-receipt-status.paid {
  background: #e9f9ef;
  color: #146c3f;
}

.product-receipt-status.pending {
  background: #fff6e5;
  color: #8a5300;
}

.product-receipt-table {
  border-collapse: collapse;
  width: 100%;
}

.product-receipt-table th,
.product-receipt-table td {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.product-receipt-table th {
  color: var(--muted);
  font-weight: 700;
  padding-right: 12px;
  white-space: nowrap;
  width: 140px;
}

.product-receipt-sign-block {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.product-receipt-sig-canvas {
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  height: 160px;
  touch-action: none;
  width: 100%;
}

.product-receipt-sign-actions {
  display: flex;
  gap: 10px;
}

.product-receipt-signed {
  background: #e9f9ef;
  border-radius: 8px;
  color: #146c3f;
  font-weight: 700;
  padding: 12px;
}

.product-checkout-summary p {
  color: var(--muted);
  line-height: 1.55;
}

.product-checkout-summary strong {
  color: var(--brand-dark);
  display: block;
  font-size: 1.8rem;
}

.product-qb-card-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.product-card-fields {
  display: grid;
  gap: 6px;
}

.product-card-element {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 12px;
}

.product-bank-ref-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.form-note-inline {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  margin-left: 4px;
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

.product-card-actions .primary-action,
.product-card-actions .secondary-action {
  flex: 1;
  font-size: 0.86rem;
  padding: 10px 12px;
}

.product-cart-fab {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0;
  border-radius: 999px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 18px 38px rgba(6, 78, 88, 0.34);
  color: white;
  cursor: pointer;
  display: none;
  font-weight: 1000;
  gap: 8px;
  left: 22px;
  min-height: 50px;
  padding: 12px 18px;
  position: fixed;
  z-index: 80;
}

body[data-route="products"] .product-cart-fab {
  display: inline-flex;
}

.product-cart-fab .cart-badge {
  background: white;
  color: var(--brand-dark);
}

.cart-toggle-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  padding: 10px 16px;
}

.cart-toggle-btn:hover {
  border-color: rgba(0, 92, 185, 0.5);
}

.cart-badge {
  background: var(--brand);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  min-width: 20px;
  padding: 2px 7px;
  text-align: center;
}

.cart-panel {
  display: block;
}

.cart-panel h2 {
  margin-top: 0;
}

.cart-line-items {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.cart-line-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 56px 1fr auto auto auto;
  padding: 10px;
}

.cart-line-item img {
  border-radius: 6px;
  height: 44px;
  object-fit: cover;
  width: 56px;
}

.cart-line-info {
  display: grid;
  gap: 2px;
}

.cart-line-info span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-line-qty {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cart-line-qty button {
  background: #edf1f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  height: 28px;
  width: 28px;
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.cart-line-remove:hover {
  color: var(--red);
}

.cart-summary-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
}

.cart-summary-row strong {
  color: var(--brand-dark);
  font-size: 1.4rem;
}

.cart-checkout-btn {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .cart-line-item {
    grid-template-columns: 44px 1fr;
    grid-template-areas: "img info" "img qty" "img total";
  }
  .cart-line-item img {
    grid-area: img;
  }
  .cart-line-remove {
    grid-column: 2;
    justify-self: end;
  }
}

.service-expired-banner {
  align-items: center;
  background: #fff2d8;
  border: 1px solid #f3c46b;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.service-expired-banner span {
  color: #664500;
}

.self-help-hero,
.self-help-results {
  margin: 0 auto;
  max-width: 1180px;
}

.self-help-hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  padding: 36px clamp(18px, 4vw, 36px);
}

.self-help-has-results .self-help-hero {
  gap: 14px;
  grid-template-columns: minmax(520px, 1.35fr) minmax(280px, 0.65fr);
  padding-top: 18px;
}

.self-help-hero > div:first-child,
.self-help-side-panel,
.self-help-bottom-banner {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.self-help-hero p,
.self-help-answer p,
.self-help-answer li {
  color: var(--muted);
  line-height: 1.65;
}

.self-help-hero h2 {
  color: var(--brand-dark);
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  line-height: 1.14;
  margin-bottom: 10px;
}

.self-help-hero > div:first-child > p:not(.eyebrow) {
  font-size: 0.98rem;
  max-width: 860px;
}

.self-help-search {
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.14), transparent 28%),
    linear-gradient(135deg, #f8fafc, #eef7f7);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 20px;
  max-width: none;
  padding: 12px;
}

.self-help-search input {
  background: white;
  border: 1px solid rgba(6, 78, 88, 0.12);
  border-radius: 8px;
  font-size: 1.08rem;
  min-height: 68px;
  padding: 0 18px;
}

.self-help-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  outline: none;
}

.self-help-search .primary-action {
  min-height: 68px;
  min-width: 132px;
}

.self-help-has-results .self-help-hero > div:first-child,
.self-help-has-results .self-help-side-panel {
  padding: 16px;
}

.self-help-has-results .self-help-hero h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  margin-bottom: 6px;
}

.self-help-has-results .self-help-hero > div:first-child > p:not(.eyebrow) {
  font-size: 0.9rem;
  line-height: 1.45;
}

.self-help-has-results .self-help-search {
  margin-top: 12px;
  padding: 8px;
}

.self-help-has-results .self-help-search input,
.self-help-has-results .self-help-search .primary-action {
  min-height: 46px;
}

.self-help-work-panel {
  display: none;
  gap: 18px;
}

.self-help-has-results .self-help-work-panel {
  display: grid;
  gap: 18px;
}

.self-help-work-panel .self-help-results {
  margin: 0;
  max-width: none;
  width: 100%;
}

.self-help-inline-results,
.self-help-inline-results .self-help-results {
  margin: 0;
  max-width: none;
}

.self-help-bottom-banner {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
}

.self-help-bottom-banner p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.self-help-bottom-banner h3 {
  color: var(--brand-dark);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.self-help-animation {
  align-items: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(143, 216, 255, 0.74), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(243, 196, 107, 0.65), transparent 25%),
    linear-gradient(135deg, #e5f0ff, #dff7ef 54%, #fff5df);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  min-height: 245px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  place-items: center;
}

.animated-device {
  background: #172033;
  border-radius: 26px;
  box-shadow: 0 22px 34px rgba(23, 32, 51, 0.22);
  height: 210px;
  padding: 24px;
  position: relative;
  z-index: 1;
  width: 235px;
}

.animated-device span {
  color: white;
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 26px;
}

.animated-device i,
.animated-device b,
.animated-device em {
  background: #dff7ef;
  border-radius: 999px;
  display: block;
  height: 18px;
  margin-bottom: 18px;
  width: 76%;
}

.animated-device b {
  background: #8fd8ff;
  width: 58%;
}

.animated-device em {
  background: #f3c46b;
  width: 68%;
}

.animated-device::after {
  animation: scanHelp 2.4s infinite;
  background: rgba(255, 255, 255, 0.28);
  content: "";
  height: 4px;
  left: 28px;
  position: absolute;
  right: 28px;
  top: 96px;
}

@keyframes scanHelp {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(94px);
  }
  100% {
    transform: translateY(0);
  }
}

.ai-video-stack {
  display: grid;
  gap: 10px;
  max-width: 150px;
  position: relative;
  z-index: 1;
}

.ai-video-stack article {
  animation: floatVideo 3.2s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(6, 78, 88, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(23, 32, 51, 0.14);
  min-height: 70px;
  overflow: hidden;
  padding: 10px;
}

.ai-video-stack article:nth-child(2) {
  animation-delay: 0.3s;
}

.ai-video-stack article:nth-child(3) {
  animation-delay: 0.6s;
}

.ai-video-stack span {
  animation: videoSweep 2.3s infinite;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent),
    linear-gradient(135deg, #13b9a5, #1f78ff);
  border-radius: 8px;
  display: block;
  height: 34px;
  margin-bottom: 7px;
}

.ai-video-stack strong {
  color: var(--brand-dark);
  font-size: 0.82rem;
}

@keyframes floatVideo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes videoSweep {
  0% {
    background-position: -80px 0, center;
  }
  100% {
    background-position: 140px 0, center;
  }
}

.self-help-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.self-help-chips button {
  background: #eef8ff;
  border: 1px solid #cbe7fb;
  border-radius: 999px;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
}

.self-help-chips button:hover {
  background: #dff7ef;
  border-color: #99dfcf;
}

.self-help-answer {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  height: 100%;
  margin-top: 20px;
}

.self-help-has-results .self-help-answer {
  margin-top: 12px;
}

.self-help-has-results .self-help-inline-results .self-help-answer {
  padding: 14px;
}

.self-help-fix-main h3 {
  color: var(--brand-dark);
}

.self-help-has-results .self-help-fix-main h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.self-help-has-results .self-help-fix-main p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.self-help-has-results .self-help-fix-main ol {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  padding-left: 20px;
}

.self-help-has-results .self-help-fix-main li {
  font-size: 0.88rem;
  line-height: 1.38;
}

.self-help-side-panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(243, 196, 107, 0.32), transparent 32%),
    linear-gradient(145deg, #ffffff, #f4fbf8);
  display: block;
  overflow: hidden;
  position: sticky;
  top: 102px;
}

.self-help-side-panel:empty,
.self-help-bottom-banner:empty {
  display: none;
}

.self-help-inline-results .self-help-answer {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  padding: 18px;
}

.mini-gif-card {
  background:
    radial-gradient(circle at 26% 24%, rgba(143, 216, 255, 0.36), transparent 26%),
    linear-gradient(145deg, #101828, #064e58);
  border-radius: 8px;
  min-height: 210px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.mini-gif-card span {
  animation: pulseBar 1.8s infinite;
  background: #dff7ef;
  border-radius: 999px;
  display: block;
  height: 16px;
  margin-bottom: 16px;
  width: 78%;
}

.mini-gif-card span:nth-child(2) {
  animation-delay: 0.22s;
  background: #8fd8ff;
  width: 58%;
}

.mini-gif-card span:nth-child(3) {
  animation-delay: 0.44s;
  background: #f3c46b;
  width: 68%;
}

.mini-gif-card strong {
  bottom: 20px;
  color: white;
  left: 20px;
  position: absolute;
  right: 20px;
}

.self-help-video-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin: 16px 0;
}

.self-help-video-row div {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(6, 78, 88, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  overflow: hidden;
  padding: 10px 12px;
}

.self-help-video-row span {
  animation: videoSweep 2.2s infinite;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent),
    linear-gradient(135deg, #064e58, #13b9a5 55%, #f3c46b);
  border-radius: 6px;
  display: block;
  grid-row: span 2;
  height: 42px;
  margin: 0;
}

.self-help-video-row strong,
.self-help-video-row small {
  display: block;
}

.self-help-video-row strong {
  color: var(--brand-dark);
}

.self-help-video-row small {
  color: var(--muted);
  line-height: 1.35;
}

.self-help-payment-box {
  background: #ffffff;
  border: 1px solid rgba(243, 196, 107, 0.78);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.self-help-pay-card h3 {
  color: var(--brand-dark);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.self-help-has-results .self-help-pay-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.self-help-pay-card > p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.self-help-has-results .self-help-pay-card > p,
.self-help-has-results .self-help-pay-note {
  font-size: 0.88rem;
  line-height: 1.42;
}

.self-help-price-row {
  align-items: center;
  background: #0f3f46;
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 18px 0 12px;
  padding: 16px;
}

.self-help-has-results .self-help-price-row {
  margin: 10px 0;
  padding: 12px;
}

.self-help-price-row span,
.self-help-price-row strong {
  display: block;
}

.self-help-price-row span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.self-help-price-row strong {
  color: #f3c46b;
  font-size: 2.45rem;
  line-height: 1;
}

.self-help-has-results .self-help-price-row strong {
  font-size: 1.85rem;
}

.self-help-ready-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.self-help-has-results .self-help-ready-list {
  gap: 6px;
  margin: 8px 0;
}

.self-help-ready-list div {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.self-help-has-results .self-help-ready-list div {
  padding: 8px 10px;
}

.self-help-ready-list strong,
.self-help-ready-list span {
  display: block;
}

.self-help-ready-list strong {
  color: var(--brand-dark);
}

.self-help-ready-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.self-help-pay-note {
  background: #fff8e8;
  border: 1px solid rgba(243, 196, 107, 0.72);
  border-radius: 8px;
  color: #6b4a04 !important;
  line-height: 1.45;
  margin: 12px 0;
  padding: 12px;
}

.self-help-pay-card .primary-action {
  width: 100%;
}

.self-help-payment-box span,
.self-help-payment-box strong,
.self-help-payment-box p {
  display: block;
}

.self-help-payment-box span {
  color: #7a5400;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.self-help-payment-box strong {
  color: var(--brand-dark);
  font-size: 1.8rem;
  grid-row: span 2;
}

.self-help-payment-box p {
  color: #6b4a04;
  line-height: 1.45;
  margin: 0;
}

.self-help-payment-box .primary-action {
  grid-column: 1 / -1;
  justify-self: start;
}

@keyframes pulseBar {
  0%,
  100% {
    opacity: 0.58;
    transform: scaleX(0.75);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.muted-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.visual-band {
  padding-top: 28px;
}

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

.picture-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.picture-grid img {
  background: #eef3f7;
  display: block;
  width: 100%;
}

.picture-grid h3,
.picture-grid p {
  padding-left: 18px;
  padding-right: 18px;
}

.picture-grid h3 {
  margin-top: 16px;
}

.picture-grid p {
  color: var(--muted);
  line-height: 1.55;
  padding-bottom: 18px;
}

.service-detail-hero,
.service-detail-body {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px clamp(18px, 4vw, 36px);
}

.service-detail-hero {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
}

.service-detail-hero img,
.service-picture-band img {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

.service-detail-hero > div,
.service-picture-band > div,
.service-explain-grid article,
.service-flow-diagram,
.service-coverage-graphics,
.service-tools-strip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.service-detail-hero p,
.service-picture-band p,
.service-explain-grid p {
  color: var(--muted);
  line-height: 1.65;
}

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

.service-explain-grid ul {
  color: #344054;
  line-height: 1.75;
  margin: 12px 0 0;
  padding-left: 20px;
}

.service-flow-diagram {
  margin-top: 18px;
}

.service-coverage-graphics,
.service-tools-strip {
  margin-top: 18px;
}

.coverage-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.coverage-card-grid article {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 220px;
  padding: 18px;
}

.coverage-card-grid h4 {
  color: var(--ink);
  font-size: 1rem;
  margin: 12px 0 8px;
}

.coverage-card-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.coverage-icon {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  display: inline-grid;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 56px;
}

.tool-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tool-chip-grid button {
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 12px;
  touch-action: manipulation;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.tool-chip-grid button:hover,
.tool-chip-grid button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.tool-chip-grid button:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.34);
  outline-offset: 2px;
}

.common-request-detail-wrap {
  margin-top: 18px;
  min-height: 260px;
}

.common-request-detail {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(223, 247, 239, 0.92), rgba(229, 240, 255, 0.94)),
    radial-gradient(circle at 88% 18%, rgba(243, 196, 107, 0.55), transparent 28%);
  border: 1px solid #cfe0e7;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 230px;
  padding: 18px;
}

.detail-graphic-badge {
  align-items: center;
  background: #172033;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  font-size: 1.4rem;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.common-request-detail p {
  color: #344054;
  line-height: 1.6;
}

.detail-point-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.detail-point-grid span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 111, 120, 0.18);
  border-radius: 8px;
  color: #172033;
  font-weight: 800;
  padding: 12px;
}

.flow-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.flow-steps span {
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  font-weight: 900;
  min-height: 92px;
  padding: 14px;
  position: relative;
}

.flow-steps span:not(:last-child)::after {
  color: var(--brand);
  content: ">";
  font-size: 1.4rem;
  font-weight: 900;
  position: absolute;
  right: -13px;
  top: 34px;
}

.service-picture-band {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  margin-top: 18px;
}

.section-title {
  margin-bottom: 20px;
}

.section-title.compact {
  margin-bottom: 12px;
}

.merchant-safe-note,
.discount-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.discount-note {
  background: #fff8e8;
  border: 1px solid rgba(243, 196, 107, 0.55);
  border-radius: 8px;
  color: #76510e;
  font-weight: 800;
  margin: 8px 0 12px;
  padding: 8px 10px;
}

.old-price {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin-left: 6px;
  text-decoration: line-through;
}

.service-grid,
.plan-grid,
.login-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

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

.plan-grid,
.login-grid,
.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-login-card,
.chat-agent-login-card {
  grid-column: auto;
}

.full-width-action {
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.service-card,
.plan-card,
.panel {
  padding: 20px;
}

.service-card {
  overflow: hidden;
  position: relative;
}

.service-card::after {
  background:
    linear-gradient(135deg, rgba(11, 111, 120, 0.12), rgba(243, 196, 107, 0.16)),
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%);
  border-radius: 999px;
  content: "";
  height: 112px;
  position: absolute;
  right: -36px;
  top: -38px;
  width: 112px;
}

.service-icon {
  align-items: center;
  border-radius: 8px;
  display: grid;
  font-size: 1.3rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  width: 44px;
}

.service-card h3,
.service-card p,
.service-card button {
  position: relative;
  z-index: 1;
}

.service-card:nth-child(1) .service-icon {
  background: var(--blue);
}

.service-card:nth-child(2) .service-icon {
  background: var(--mint);
}

.service-card:nth-child(3) .service-icon {
  background: var(--amber);
}

.service-card:nth-child(4) .service-icon {
  background: var(--rose);
}

.service-card p,
.plan-card p,
.lead,
.login-card p,
.record-detail p {
  color: var(--muted);
  line-height: 1.6;
}

.services-page-hero,
.services-overview-section,
.services-flow-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px clamp(18px, 4vw, 36px);
}

.services-page-hero {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.services-page-hero > div,
.services-page-hero img,
.services-flow-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.services-page-hero > div {
  padding: clamp(16px, 2.2vw, 24px);
}

.services-page-hero img {
  display: block;
  object-fit: cover;
  padding: 18px;
  width: 100%;
}

.services-page-hero p,
.services-page-card p,
.services-flow-section p {
  color: var(--muted);
  line-height: 1.5;
}

.services-page-hero h2 {
  color: #071a2f;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  margin-bottom: 8px;
}

.services-page-hero p {
  color: #334155;
  margin-bottom: 0;
}

.services-page-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-page-card {
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 92, 185, 0.12), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(0, 126, 94, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff, #eef7ff);
  border: 1px solid rgba(8, 100, 150, 0.28);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  transform-style: preserve-3d;
}

.services-page-card::before {
  background: linear-gradient(90deg, transparent, rgba(41, 230, 255, 0.22), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.services-page-card:hover {
  border-color: rgba(0, 92, 185, 0.52);
  transform: translateY(-4px);
}

.services-smart-copy {
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 92, 185, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff, #eef7ff);
  border: 1px solid rgba(8, 100, 150, 0.24);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  max-width: 820px;
  padding: clamp(18px, 3vw, 28px);
  width: 100%;
}

.services-smart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.services-smart-tags span {
  background: linear-gradient(180deg, #ffffff, #dff3ff);
  border: 1px solid rgba(0, 92, 185, 0.28);
  border-radius: 999px;
  color: #063b70;
  font-size: 0.76rem;
  font-weight: 950;
  padding: 8px 10px;
}

.services-ai-router {
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(41, 230, 255, 0.36), transparent 34%),
    linear-gradient(145deg, #031224, #064e63 58%, #047857);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow:
    0 30px 70px rgba(7, 26, 47, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  min-height: 300px;
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateX(3deg);
  width: min(100%, 760px);
}

.services-ai-router::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  height: 1px;
  left: 12%;
  position: absolute;
  right: 12%;
  top: 18px;
}

.router-core {
  align-content: center;
  animation: routerCorePulse 4s ease-in-out infinite;
  background: linear-gradient(145deg, rgba(41, 230, 255, 0.95), rgba(16, 207, 162, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(41, 230, 255, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.26);
  color: #02111f;
  display: grid;
  height: 128px;
  justify-items: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  z-index: 2;
}

.router-core b {
  font-size: 1.1rem;
  font-weight: 1000;
}

.router-core small {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.router-node {
  align-items: center;
  animation: routerNodeFloat 4.8s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  display: grid;
  font-size: 0.82rem;
  font-weight: 1000;
  height: 64px;
  justify-content: center;
  position: absolute;
  width: 82px;
}

.node-it {
  left: 36px;
  top: 38px;
}

.node-tech {
  right: 38px;
  top: 52px;
}

.node-acct {
  bottom: 42px;
  left: 50px;
}

.node-tax {
  animation-delay: 0.45s;
  bottom: 38px;
  right: 48px;
}

.router-signal {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  inset: 54px;
  position: absolute;
}

.signal-b {
  animation: routerSpin 12s linear infinite;
  inset: 82px;
}

.services-smart-title {
  margin-bottom: 16px;
}

.services-card-orb {
  align-items: center;
  background: linear-gradient(135deg, #071a2f, #0ea5e9 58%, #10cfa2);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.18);
  color: #ffffff;
  display: grid;
  font-size: 0.88rem;
  font-weight: 1000;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.services-card-head {
  min-height: 116px;
}

.services-card-diagram {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto 1fr auto;
}

.services-card-diagram span {
  background: #dff3ff;
  border: 1px solid rgba(0, 92, 185, 0.26);
  border-radius: 999px;
  color: #063b70;
  font-size: 0.68rem;
  font-weight: 1000;
  padding: 6px 8px;
}

.services-card-diagram i {
  background: linear-gradient(90deg, #29e6ff, #10cfa2);
  border-radius: 999px;
  height: 3px;
}

.services-routing-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.services-routing-strip article {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  border: 1px solid rgba(8, 100, 150, 0.24);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 6px;
  padding: 15px;
}

.services-routing-strip span {
  color: #005cb9;
  font-size: 0.72rem;
  font-weight: 1000;
}

.services-routing-strip strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.services-routing-strip small {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.32;
}

.services-page-card h3 {
  color: #071a2f;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.services-page-card p {
  color: #334155;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.services-card-points,
.services-card-tools,
.services-card-actions,
.services-flow-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.services-card-points span,
.services-card-tools small {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 8px;
}

.services-card-points span {
  background: #dff3ff;
  border: 1px solid rgba(0, 92, 185, 0.2);
  color: #063b70;
}

.services-card-tools small {
  background: #ffffff;
  border: 1px solid rgba(71, 85, 105, 0.22);
  color: #334155;
}

.services-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.services-card-actions .secondary-action {
  display: none;
}

.services-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.services-flow-grid article {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.services-flow-grid span {
  color: var(--brand);
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

@keyframes routerCorePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes routerNodeFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-7px) rotateX(4deg);
  }
}

@keyframes routerSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.learning-hero,
.learning-library-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px clamp(18px, 4vw, 36px);
}

.learning-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  padding-top: 28px;
}

.learning-intro-card,
.learning-player-card,
.learning-video-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.learning-intro-card,
.learning-player-card {
  padding: clamp(18px, 3vw, 28px);
}

.learning-intro-card {
  display: grid;
  gap: 12px;
}

.learning-intro-card p,
.learning-player-copy p,
.learning-player-copy li,
.learning-video-card p {
  color: var(--muted);
  line-height: 1.55;
}

.learning-intro-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.learning-search {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
}

.learning-search input,
.learning-search button {
  min-height: 52px;
}

.learning-player-card {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.86fr);
}

.learning-player-screen {
  background: #0f2530;
  border: 1px solid #244856;
  border-radius: 8px;
  color: white;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.learning-video-toolbar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.learning-video-toolbar span {
  background: #f3b14f;
  border-radius: 999px;
  display: block;
  height: 10px;
  width: 10px;
}

.learning-video-toolbar span:nth-child(2) {
  background: #5fd18a;
}

.learning-video-toolbar span:nth-child(3) {
  background: #65a7ff;
}

.learning-video-toolbar strong {
  margin-left: auto;
}

.learning-animation {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  min-height: 310px;
  padding: 18px;
  position: relative;
}

.learning-guide-person {
  align-self: end;
  display: grid;
  gap: 8px;
  justify-items: center;
  z-index: 2;
}

.learning-guide-person span {
  background:
    linear-gradient(#f2c7a9 0 32%, transparent 32%),
    linear-gradient(135deg, #38bdf8, #0b6f78);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px 22px 8px 8px;
  display: block;
  height: 110px;
  width: 72px;
}

.learning-guide-person b {
  color: #d7f9ff;
}

.learning-device-board {
  align-self: center;
  background: #f8fafc;
  border: 8px solid #22394a;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 18px;
  position: relative;
}

.learning-screen-card {
  animation: learningCardPulse 6s ease-in-out infinite;
  background: white;
  border: 1px solid #dce7ef;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 37, 48, 0.13);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 12px;
}

.learning-screen-card.card-b {
  animation-delay: 1.2s;
  border-left-color: #f3b14f;
  margin-left: 20px;
}

.learning-screen-card.card-c {
  animation-delay: 2.4s;
  border-left-color: #5b8def;
  margin-left: 40px;
}

.learning-progress-bar {
  background: #e7edf4;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.learning-progress-bar span {
  animation: learningProgress 6s linear infinite;
  background: linear-gradient(90deg, #0b6f78, #5fd18a, #f3b14f);
  display: block;
  height: 100%;
  width: 45%;
}

.learning-floating-tools {
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.learning-floating-tools span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #e9fbff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 7px 10px;
}

.learning-player-copy h3 {
  font-size: 1.35rem;
}

.learning-player-copy ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.learning-player-copy li {
  margin-bottom: 8px;
}

.learning-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.learning-filter-row button {
  background: white;
  border: 1px solid var(--line);
  color: #344054;
  font-weight: 900;
  padding: 9px 12px;
}

.learning-filter-row button.active,
.learning-filter-row button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

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

.learning-video-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
}

.learning-video-card.active {
  border-color: var(--brand);
  box-shadow: 0 18px 40px rgba(11, 111, 120, 0.18);
}

.learning-video-thumb {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(11, 111, 120, 0.96), rgba(15, 37, 48, 0.92)),
    linear-gradient(45deg, #e5f0ff, #fff2d8);
  color: white;
  display: grid;
  min-height: 170px;
  padding: 14px;
  position: relative;
  text-align: left;
}

.learning-video-thumb strong,
.learning-video-thumb small {
  position: relative;
  z-index: 1;
}

.learning-video-thumb small {
  align-self: end;
  color: #d7f9ff;
  font-weight: 900;
}

.play-button {
  align-self: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  display: grid;
  height: 46px;
  justify-self: center;
  place-items: center;
  width: 46px;
}

.play-button::before {
  border-bottom: 9px solid transparent;
  border-left: 14px solid white;
  border-top: 9px solid transparent;
  content: "";
  margin-left: 4px;
}

.learning-video-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.learning-video-body > span {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-video-body h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.learning-video-body p {
  font-size: 0.86rem;
  margin-bottom: 0;
}

.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-tags small {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 7px;
}

@keyframes learningCardPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes learningProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(230%);
  }
}

.price {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  margin: 10px 0;
}

.pricing-video-section {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto 24px;
  max-width: 1120px;
}

.pricing-video-copy {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 780px;
  padding: clamp(18px, 3vw, 28px);
}

.pricing-video-copy h3 {
  color: var(--brand-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0;
}

.pricing-video-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.pricing-pay-form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 255, 0.94));
  border: 1px solid rgba(43, 111, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(9, 34, 72, 0.12);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  padding: 12px;
}

.pricing-pay-form label {
  color: var(--brand-dark);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 5px;
}

.pricing-pay-form input {
  background: white;
  border: 1px solid rgba(26, 54, 93, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
}

.pricing-pay-form button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 42px;
}

.pricing-hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(16, 207, 162, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(0, 92, 185, 0.14), transparent 30%),
    linear-gradient(145deg, #ffffff, #e9fff7) !important;
}

.pricing-smart-copy {
  background:
    radial-gradient(circle at 18% 12%, rgba(16, 207, 162, 0.13), transparent 30%),
    linear-gradient(145deg, #ffffff, #eefdf7);
  border: 1px solid rgba(4, 120, 87, 0.22);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  max-width: 820px;
  padding: clamp(18px, 3vw, 28px);
  width: 100%;
}

.pricing-banner-3d {
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(16, 207, 162, 0.34), transparent 36%),
    linear-gradient(145deg, #031224, #064e63 55%, #047857);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  box-shadow:
    0 30px 70px rgba(7, 26, 47, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  min-height: 300px;
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateX(3deg);
  width: min(100%, 760px);
}

.pricing-banner-core {
  align-content: center;
  animation: routerCorePulse 4s ease-in-out infinite;
  background: linear-gradient(145deg, rgba(41, 230, 255, 0.95), rgba(16, 207, 162, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(16, 207, 162, 0.14),
    0 22px 50px rgba(0, 0, 0, 0.26);
  color: #02111f;
  display: grid;
  height: 140px;
  justify-items: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  z-index: 2;
}

.pricing-banner-core strong {
  color: #02111f;
  font-size: 2.3rem;
  font-weight: 1000;
  line-height: 1;
}

.pricing-banner-core span {
  color: #033047;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.pricing-banner-node {
  animation: routerNodeFloat 4.8s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: grid;
  gap: 3px;
  max-width: 150px;
  padding: 12px 14px;
  position: absolute;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pricing-banner-node b {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 1000;
}

.pricing-banner-node small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.2;
}

.pricing-banner-node.node-connect {
  left: 42px;
  top: 44px;
}

.pricing-banner-node.node-record {
  right: 46px;
  top: 56px;
}

.pricing-banner-node.node-portal {
  animation-delay: 0.45s;
  bottom: 42px;
  left: calc(50% - 75px);
}

.pricing-smart-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  margin-top: 22px;
  padding: 0 clamp(14px, 3vw, 24px);
}

.pricing-smart-card,
.pricing-smart-panel,
.pricing-mini-strip article {
  border: 1px solid rgba(18, 184, 199, 0.2);
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.1);
}

.pricing-smart-card {
  background:
    radial-gradient(circle at 18% 10%, rgba(16, 207, 162, 0.16), transparent 30%),
    radial-gradient(circle at 90% 4%, rgba(41, 230, 255, 0.16), transparent 32%),
    linear-gradient(145deg, #ffffff, #f7feff);
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
}

.pricing-card-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pricing-card-top span {
  background: linear-gradient(135deg, #071a2f, #10cfa2);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 1000;
  padding: 7px 11px;
  text-transform: uppercase;
}

.pricing-smart-card h3 {
  color: #071a2f;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.05;
  margin: 0;
}

.pricing-smart-card p {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.pricing-amount-row {
  align-items: end;
  display: flex;
  gap: 12px;
}

.pricing-amount-row strong {
  background: linear-gradient(135deg, #071a2f, #0ea5e9 54%, #10cfa2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.92;
}

.pricing-amount-row small {
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 950;
  padding-bottom: 10px;
  text-transform: uppercase;
}

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

.pricing-service-grid span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 14px;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 11px 12px;
}

.pricing-smart-panel {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(41, 230, 255, 0.32), transparent 32%),
    radial-gradient(circle at 86% 84%, rgba(16, 207, 162, 0.2), transparent 30%),
    linear-gradient(145deg, #071a2f, #063a4a 58%, #0f766e);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: #ffffff;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  position: relative;
}

.pricing-connection-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 18px;
  text-align: center;
}

.pricing-connection-chip span,
.pricing-connection-chip small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.pricing-connection-chip strong {
  color: #9fffe0;
  font-size: 4rem;
  font-weight: 1000;
  line-height: 0.95;
}

.pricing-flow-3d {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-flow-3d article {
  animation: pricingFloat 4.5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 5px;
  min-height: 128px;
  padding: 14px;
}

.pricing-flow-3d article:nth-child(2) {
  animation-delay: 0.25s;
}

.pricing-flow-3d article:nth-child(3) {
  animation-delay: 0.5s;
}

.pricing-flow-3d article:nth-child(4) {
  animation-delay: 0.75s;
}

.pricing-flow-3d b {
  color: #8ff5ff;
  font-size: 0.72rem;
  font-weight: 1000;
}

.pricing-flow-3d strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.pricing-flow-3d small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.32;
}

.pricing-mini-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  padding: 0 clamp(14px, 3vw, 24px) 32px;
}

.pricing-mini-strip article {
  background: #ffffff;
  display: grid;
  gap: 4px;
  padding: 16px;
}

.pricing-mini-strip strong {
  color: #0f172a;
}

.pricing-mini-strip small {
  color: #64748b;
  font-weight: 780;
}

@keyframes pricingFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-6px) rotateX(2deg);
  }
}

.pricing-system-video {
  min-height: 100%;
}

.pricing-system-video .ai-explainer-screen {
  min-height: 390px;
}

.pricing-video-stage {
  height: 315px;
}

.pricing-flow-line {
  bottom: 76px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  left: 11%;
  position: absolute;
  right: 11%;
  z-index: 2;
}

.pricing-flow-line i {
  animation: pricingFlowPulse 4s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: block;
  height: 8px;
}

.pricing-flow-line i:nth-child(2) {
  animation-delay: 0.3s;
}

.pricing-flow-line i:nth-child(3) {
  animation-delay: 0.6s;
}

.pricing-flow-line i:nth-child(4) {
  animation-delay: 0.9s;
}

.pricing-video-dashboard {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px;
}

.pricing-video-dashboard span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 2px;
  min-height: 54px;
  place-items: center;
  text-align: center;
}

.pricing-video-dashboard b {
  color: var(--brand);
  font-size: 1rem;
}

@keyframes pricingFlowPulse {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.24);
    transform: scaleX(0.86);
  }
  50% {
    background: rgba(243, 196, 107, 0.9);
    transform: scaleX(1);
  }
}

.workspace,
.dashboard-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.support-chat-only {
  grid-template-columns: 1fr;
  max-width: 1200px;
  padding-bottom: 16px;
  padding-top: 16px;
  width: 100%;
}

.crm-overview {
  display: block;
  margin: 0;
  max-width: none;
  padding: 0;
}

.crm-tabs-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 0 18px;
  grid-template-columns: 238px minmax(0, 1fr);
  margin: 18px auto 0;
  max-width: 1180px;
}

.backpanel-top-tickets {
  display: flex;
  justify-content: flex-end;
  margin: 10px auto 0;
  max-width: 1180px;
  min-height: 0;
  padding: 0 clamp(18px, 4vw, 36px);
}

.urgent-ticket-icon {
  align-items: center;
  background: #fee2e2;
  border: 1px solid #f87171;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.18);
  color: #991b1b;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 6px 10px;
}

.urgent-ticket-icon span {
  align-items: center;
  background: #dc2626;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 1000;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.urgent-ticket-icon strong {
  font-size: 0.88rem;
  font-weight: 1000;
}

.crm-tabs-header {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 18px 20px;
}

.crm-tabs-header:has(.crm-search) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.crm-tabs-header h2 {
  margin-bottom: 0;
}

.crm-search {
  min-height: 40px;
}

.backpanel-search-shell {
  align-items: center;
  display: grid;
  grid-template-columns: 40px 0fr;
  justify-self: end;
  min-height: 40px;
  overflow: hidden;
  transition: grid-template-columns 180ms ease, width 180ms ease;
  width: 42px;
}

.backpanel-search-shell.search-open,
.backpanel-search-shell:focus-within {
  grid-template-columns: 40px minmax(180px, 320px);
  width: min(360px, 42vw);
}

.backpanel-search-icon {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1769ff, #10a37f);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  font-size: 20px;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  position: relative;
  z-index: 2;
}

.backpanel-search-shell .crm-search {
  border-radius: 0 999px 999px 0;
  min-width: 0;
  opacity: 0;
  padding-left: 14px;
  transition: opacity 140ms ease;
}

.backpanel-search-shell.search-open .crm-search,
.backpanel-search-shell:focus-within .crm-search {
  opacity: 1;
}

.table-filter-bar {
  align-items: end;
  background: #f8fafc;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  margin-bottom: 8px;
  padding: 8px;
}

.table-filter-bar label {
  font-size: 0.72rem;
  gap: 4px;
}

.table-filter-menu {
  display: grid;
  gap: 4px;
  position: relative;
}

.table-filter-menu > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.table-filter-menu details {
  position: relative;
}

.table-filter-menu summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 32px;
  padding: 5px 8px;
}

.table-filter-menu summary::-webkit-details-marker {
  display: none;
}

.table-filter-menu summary::after {
  content: "v";
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  margin-left: 8px;
}

.table-filter-options {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  display: grid;
  left: 0;
  max-height: 230px;
  min-width: 100%;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 90;
}

.table-filter-options button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 30px;
  padding: 6px 8px;
  text-align: left;
}

.table-filter-options button:hover,
.table-filter-options button.active {
  background: #eef3f7;
  color: var(--brand-dark);
}

.v2-filter-panel {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 10px;
  padding: 10px;
}

.v2-search-filter {
  display: grid;
  gap: 5px;
}

.v2-search-filter,
.v2-chip-filter > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.v2-chip-filter {
  display: grid;
  gap: 5px;
}

.v2-chip-filter > div,
.v2-status-buttons,
.v2-tech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v2-chip-filter button,
.v2-status-buttons button,
.v2-tech-actions button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 9px;
}

.v2-chip-filter button.active,
.v2-status-buttons button.active,
.v2-tech-actions button.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.v2-status-buttons button.approved.active {
  background: #047857;
  border-color: #047857;
}

.v2-status-buttons button.pending.active {
  background: #b45309;
  border-color: #b45309;
}

.v2-status-buttons button.refunded.active,
.v2-status-buttons button.disputed.active {
  background: #be123c;
  border-color: #be123c;
}

.v2-sheet {
  border-radius: 8px;
}

.v2-empty {
  border-radius: 8px;
}

.table-filter-bar input,
.table-filter-bar select {
  font-size: 0.82rem;
  min-height: 32px;
  padding: 5px 8px;
}

.crm-tabs {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  padding: 10px;
  align-self: start;
}

.crm-tabs button {
  background: white;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #475467;
  font-weight: 900;
  justify-content: flex-start;
  min-height: 48px;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
}

.crm-tabs button.active {
  background: #eef3f7;
  border-color: #c9dce4;
  box-shadow: inset 4px 0 0 var(--brand);
  color: var(--brand-dark);
}

.crm-tab-panel {
  display: none;
  grid-column: 2;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.crm-tab-panel.active {
  display: block;
}

.crm-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-height: 132px;
  padding: 18px;
}

.crm-card span,
.crm-detail-header span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.crm-card strong {
  color: var(--ink);
  display: block;
  font-size: 1.42rem;
  line-height: 1.1;
}

.crm-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.crm-sheet {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  cursor: grab;
  grid-column: 1 / -1;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
  scrollbar-gutter: stable both-edges;
  touch-action: pan-x pan-y;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.crm-sheet.dragging {
  cursor: grabbing;
  user-select: none;
}

.crm-sheet input,
.crm-sheet select,
.crm-sheet textarea,
.crm-sheet button,
.crm-sheet a {
  cursor: pointer;
  touch-action: auto;
}

.crm-sheet input,
.crm-sheet textarea {
  cursor: text;
}

#adminPage .crm-tab-panel.active .crm-sheet,
#agentPage .crm-tab-panel.active .crm-sheet,
#productAdminPage .crm-tab-panel.active .crm-sheet {
  max-height: min(68vh, 680px);
}

#adminOverviewTab .crm-sheet {
  max-height: none;
}

.report-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
  padding: 0 12px 10px;
}

.monthly-report-sheet {
  margin-top: 14px;
}

.report-title-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.report-title-bar .secondary-action {
  min-height: 34px;
  padding: 6px 10px;
}

.ticket-priority-top {
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 12px;
}

.ticket-priority-top strong,
.ticket-priority-top span,
.ticket-priority-top small {
  display: block;
}

.ticket-priority-top strong {
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ticket-priority-top span {
  color: var(--ink);
  font-weight: 900;
}

.ticket-priority-top small {
  color: var(--muted);
}

.priority-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
}

.ticket-update-controls {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(96px, 1fr) minmax(92px, 1fr) auto;
  min-width: 290px;
  position: relative;
  z-index: 10;
}

.ticket-action-select {
  background-color: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  min-height: 34px;
  padding: 5px 7px;
  pointer-events: auto;
  position: relative;
  width: 100%;
  z-index: 11;
}

.ticket-status-inline {
  border-radius: 999px;
  font-weight: 900;
  min-width: 112px;
  padding-left: 10px;
}

.ticket-status-inline.open {
  border-color: #86efac;
  color: #166534;
}

.ticket-status-inline.closed {
  border-color: #fecaca;
  color: #991b1b;
}

.ticket-close-button {
  min-height: 34px;
  padding: 5px 10px;
}

.ticket-detail-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  margin-top: 14px;
  padding: 16px;
}

.ticket-detail-panel.priority-urgent {
  border-color: rgba(220, 38, 38, 0.35);
}

.ticket-detail-panel.priority-high {
  border-color: rgba(217, 119, 6, 0.35);
}

.ticket-detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.ticket-detail-grid div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.ticket-detail-grid .wide {
  grid-column: 1 / -1;
}

.ticket-detail-grid span,
.ticket-detail-grid strong {
  display: block;
}

.ticket-detail-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-detail-grid strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ticket-detail-actions {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  margin-top: 14px;
}

.ticket-detail-actions label {
  color: var(--muted);
  display: grid;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 5px;
  text-transform: uppercase;
}

.ticket-choice-group {
  display: grid;
  gap: 6px;
}

.ticket-choice-group > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-choice-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ticket-choice-button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 12px;
}

.ticket-choice-button.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.ticket-choice-button.priority-urgent.active {
  background: #be123c;
  border-color: #be123c;
}

.ticket-choice-button.priority-high.active {
  background: #b45309;
  border-color: #b45309;
}

@media (max-width: 720px) {
  .ticket-detail-grid,
  .ticket-detail-actions {
    grid-template-columns: 1fr;
  }

  .ticket-detail-panel {
    padding: 12px;
  }
}

.ticket-priority-top.priority-urgent,
.priority-pill.priority-urgent {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

.ticket-priority-top.priority-high,
.priority-pill.priority-high {
  background: #fff1d6;
  border-color: #f3c46b;
  color: #7a4b00;
}

.ticket-priority-top.priority-normal,
.priority-pill.priority-normal,
.ticket-priority-top.priority-low,
.priority-pill.priority-low {
  background: #eaf2ff;
  border-color: #b9d2ff;
  color: #1d4ed8;
}

tr.priority-urgent td {
  background: #fff1f2;
}

tr.priority-high td {
  background: #fff8e8;
}

tr.priority-normal td,
tr.priority-low td {
  background: #f5f9ff;
}

.selected-admin-row td {
  background: #ecfdf5 !important;
}

.admin-customer-profile {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
}

.admin-customer-profile.empty-state {
  box-shadow: none;
}

.admin-profile-header {
  align-items: center;
  background: linear-gradient(135deg, #064e58, #0f766e);
  color: white;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px;
}

.admin-profile-header h3,
.admin-profile-header p {
  margin: 0;
}

.admin-profile-header h3 {
  font-size: 1.05rem;
}

.admin-profile-header p {
  font-size: 0.8rem;
}

.admin-profile-header .eyebrow {
  color: #b8fff0;
}

.admin-profile-header .status-pill {
  background: white;
  color: var(--brand-dark);
}

.admin-profile-header .customer-avatar-large {
  font-size: 1rem;
  height: 52px;
  width: 52px;
}

.admin-profile-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-profile-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 8px;
}

.admin-profile-grid span,
.admin-profile-grid strong {
  display: block;
}

.admin-profile-grid span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.admin-profile-grid strong {
  color: var(--ink);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.admin-profile-history table {
  min-width: max(100%, 760px);
}

.customer-profile-strip {
  background: linear-gradient(135deg, #064e58, #0b6f78);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
}

.customer-profile-strip div {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.customer-profile-strip span,
.customer-profile-strip strong {
  display: block;
}

.customer-profile-strip span {
  color: #b8fff0;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.customer-profile-strip strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.empty-profile {
  background: #344054;
}

.customer-profile-panel {
  align-items: center;
  background: linear-gradient(135deg, #064e58, #0b6f78);
  color: white;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(170px, 0.75fr) minmax(0, 1.8fr);
  padding: clamp(12px, 2vw, 18px);
}

.customer-overview-banner {
  margin: 18px auto 0;
  max-width: 1180px;
}

.customer-overview-banner + .crm-tabs-shell {
  margin-top: 10px;
}

.customer-avatar-large {
  align-items: center;
  background: white;
  border-radius: 50%;
  color: var(--brand-dark);
  display: grid;
  font-size: 1rem;
  font-weight: 1000;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.compact-customer-profile .customer-profile-main h2 {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.compact-customer-profile .customer-profile-main p {
  font-size: 0.86rem;
}

.customer-profile-main h2,
.customer-profile-main p {
  margin-bottom: 0;
}

.customer-profile-main .eyebrow {
  color: #b8fff0;
}

.customer-profile-main p {
  color: #d9fff7;
  line-height: 1.5;
}

.customer-profile-details {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-profile-details div {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
}

.customer-profile-details span,
.customer-profile-details strong {
  display: block;
}

.customer-profile-details span {
  color: #b8fff0;
  font-size: 0.66rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.customer-profile-details strong {
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.customer-phone-card {
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(7, 26, 47, 0.18);
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 10px auto;
  max-width: 390px;
  padding: 12px;
}

.customer-phone-card .customer-avatar-large {
  font-size: 0.82rem;
  height: 42px;
  width: 42px;
}

.customer-phone-card .customer-profile-main h2 {
  font-size: 1rem;
  line-height: 1.15;
}

.customer-phone-card .customer-profile-main p {
  font-size: 0.68rem;
  line-height: 1.25;
}

.customer-phone-card .customer-profile-details {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.customer-phone-card .customer-profile-details div {
  border-radius: 10px;
  padding: 7px 8px;
}

.customer-phone-card .customer-profile-details span {
  font-size: 0.56rem;
  margin-bottom: 2px;
}

.customer-phone-card .customer-profile-details strong {
  font-size: 0.7rem;
}

.sheet-title {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
  padding: 12px 14px;
}

.crm-sheet table {
  border-collapse: collapse;
  min-width: max(100%, 900px);
  width: max-content;
}

.compact-sheet table {
  min-width: max(100%, 920px);
}

.employee-compact-sheet table {
  min-width: 680px;
  width: 100%;
}

.employee-compact-sheet th,
.employee-compact-sheet td {
  padding: 5px 7px;
}

.employee-compact-sheet .compact-input {
  font-size: 0.78rem;
  min-height: 28px;
  padding: 4px 7px;
  width: 100%;
}

.compact-action {
  font-size: 0.72rem;
  min-height: 28px;
  padding: 5px 9px;
  white-space: nowrap;
}

.status-text {
  color: #247a4d;
  font-size: 0.76rem;
  font-weight: 900;
}

.employee-detail-panel,
.visitor-detail-panel {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.detail-panel-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.employee-access-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.detail-panel-header h3 {
  font-size: 1rem;
  margin: 2px 0 0;
}

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

.employee-detail-grid label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-detail-grid input,
.employee-detail-grid select,
.employee-detail-grid textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: block;
  font-size: 0.82rem;
  margin-top: 4px;
  min-height: 32px;
  padding: 6px 8px;
  text-transform: none;
  width: 100%;
}

.employee-detail-grid textarea {
  min-height: 56px;
  resize: vertical;
}

.employee-detail-grid .wide {
  grid-column: 1 / -1;
}

.visitor-summary-strip,
.visitor-detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visitor-summary-strip {
  margin-bottom: 10px;
}

.visitor-summary-strip div,
.visitor-detail-grid div {
  background: #ffffff;
  border: 1px solid rgba(201, 220, 228, 0.9);
  border-radius: 7px;
  min-width: 0;
  padding: 9px;
}

.visitor-summary-strip span,
.visitor-detail-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.visitor-summary-strip strong,
.visitor-detail-grid strong {
  color: #073b44;
  display: block;
  font-size: 0.82rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.visitor-detail-grid .wide {
  grid-column: span 2;
}

.visitor-compact-sheet table {
  min-width: 860px;
}

.crm-sheet th,
.crm-sheet td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.crm-sheet th {
  background: #eef3f7;
  color: #344054;
  font-size: 0.7rem;
  font-weight: 900;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  z-index: 2;
}

.crm-sheet td {
  color: #263244;
  font-size: 0.82rem;
}

#adminCases .crm-sheet table,
#adminPayments .crm-sheet table {
  min-width: 620px;
  width: 100%;
}

#adminCases .crm-status-select,
#adminPayments .crm-status-select {
  font-size: 0.78rem;
  min-height: 30px;
  padding: 4px 7px;
}

#adminCases .secondary-action,
#adminPayments .secondary-action {
  min-height: 30px;
  padding: 4px 9px;
}

.table-pager {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  padding: 7px 9px;
}

.table-pager div {
  align-items: center;
  display: flex;
  gap: 7px;
}

.table-pager strong {
  color: var(--brand-dark);
  font-size: 0.76rem;
}

.table-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.crm-sheet tr:hover td {
  background: #f8fbff;
}

.crm-sheet th:last-child,
.crm-sheet td:last-child {
  border-right: 0;
}

.crm-sheet tr:last-child td {
  border-bottom: 0;
}

.sheet-status {
  background: var(--mint);
  border: 1px solid #a9ded0;
  border-radius: 999px;
  color: #075849;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 8px;
}

.pdf-toolbar {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 14px;
  padding: 14px;
}

.pdf-toolbar h3,
.pdf-toolbar p {
  margin: 0;
}

.pdf-toolbar p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.pdf-icon {
  align-items: end;
  background: #fff;
  border: 2px solid #d92d20;
  color: #d92d20;
  display: grid;
  font-size: 0.78rem;
  font-weight: 1000;
  height: 58px;
  justify-content: center;
  padding-bottom: 7px;
  position: relative;
  width: 46px;
}

.pdf-icon::before {
  border-left: 13px solid transparent;
  border-top: 13px solid #ffd7d3;
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
}

.appointment-sheet {
  margin-top: 14px;
}

.direct-chat-panel {
  background: white;
  border: 1px solid var(--line);
}

.floating-chat-popup {
  bottom: 16px;
  display: none;
  max-height: calc(100dvh - 32px);
  max-width: calc(100vw - 28px);
  position: fixed;
  right: 22px;
  width: 560px;
  z-index: 46;
}

.floating-chat-popup.active {
  display: block;
}

.floating-chat-popup .direct-chat-panel {
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  height: min(640px, calc(100dvh - 32px));
  min-height: 0;
  overflow: hidden;
}

.floating-chat-popup .direct-chat-log {
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}

.floating-chat-popup .direct-chat-header {
  padding: 13px 14px;
}

.direct-chat-header-actions {
  position: relative;
  z-index: 8;
}

.direct-chat-close {
  pointer-events: auto;
  position: relative;
  z-index: 9;
}

.floating-chat-popup .direct-chat-header h3 {
  font-size: 1rem;
}

.floating-chat-popup .direct-message {
  max-width: 92%;
}

.live-chat-workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  min-height: 620px;
}

.live-chat-list-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.live-chat-list-header {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.live-chat-list-header h3 {
  margin: 0;
}

.live-chat-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding: 10px;
}

.live-chat-case {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.live-chat-case strong,
.live-chat-case span,
.live-chat-case small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-case span {
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.live-chat-case small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-chat-case.active {
  background: #e6fbf7;
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.16);
}

.live-chat-thread {
  min-width: 0;
}

.live-chat-thread .direct-chat-panel {
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto auto auto auto;
  height: min(720px, calc(100dvh - 180px));
  min-height: 560px;
  overflow: hidden;
}

.live-chat-thread .direct-chat-log {
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.live-chat-thread .direct-chat-close {
  display: none;
}

.direct-chat-header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.direct-chat-header h3 {
  margin-bottom: 0;
}

.direct-chat-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.direct-chat-close {
  min-height: 34px;
  padding: 6px 10px;
}

.direct-chat-log {
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fafc, #eef7f7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  min-height: 380px;
  overflow: auto;
  padding: 16px;
}

.direct-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: min(680px, 86%);
  padding: 12px 14px;
}

.direct-message strong {
  display: block;
  font-size: 0.76rem;
  margin-bottom: 5px;
}

.direct-message p {
  margin: 0;
}

.direct-message.customer {
  align-self: flex-end;
  background: #fff2d8;
}

.direct-message.agent {
  align-self: flex-start;
  background: #dff7ef;
}

.direct-message.ai {
  align-self: flex-start;
  background: #eaf2ff;
}

.direct-chat-compose {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.direct-chat-compose input,
.direct-chat-compose textarea {
  min-height: 44px;
  min-width: 0;
}

.direct-chat-compose textarea {
  max-height: 112px;
  resize: none;
}

.wide-crm-card,
.crm-chart-card {
  grid-column: 1 / -1;
}

.bar-chart {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(0, 1fr) 34px;
}

.bar-row span {
  margin: 0;
  text-transform: none;
}

.bar-row div {
  background: #e8eef6;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.bar-row i {
  background: linear-gradient(90deg, var(--brand), #f3c46b);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.bar-row b {
  font-size: 0.9rem;
  text-align: right;
}

.crm-detail-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.crm-detail-header h3 {
  margin: 0;
}

.crm-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.crm-info-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.seo-status-panel {
  display: grid;
  gap: 14px;
}

.seo-status-hero {
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 166, 214, 0.2), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef9ff);
  border: 1px solid rgba(43, 111, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(12, 42, 92, 0.11);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 210px;
  padding: 16px;
}

.seo-status-hero h3 {
  color: var(--brand-dark);
  margin: 0 0 6px;
}

.seo-status-hero p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.seo-score-card {
  background: linear-gradient(135deg, var(--brand), #00a6d6);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 4px;
  padding: 16px;
}

.seo-score-card span,
.seo-score-card small {
  color: rgba(255, 255, 255, 0.82);
}

.seo-score-card strong {
  font-size: 2.25rem;
  line-height: 1;
}

.seo-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-rank-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.seo-rank-summary article {
  background:
    radial-gradient(circle at 88% 8%, rgba(41, 230, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #071a2f, #063b55);
  border: 1px solid rgba(41, 230, 255, 0.24);
  border-radius: 10px;
  color: white;
  display: grid;
  gap: 5px;
  min-height: 98px;
  padding: 13px;
}

.seo-rank-summary span,
.seo-rank-summary small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-rank-summary strong {
  color: white;
  font-size: 1.7rem;
  line-height: 1;
}

.seo-last-check {
  color: var(--ink) !important;
  font-size: 0.9rem;
  font-weight: 800;
}

.seo-run-confirm {
  background: #e9fff3;
  border: 1px solid rgba(17, 153, 90, 0.28);
  border-radius: 999px;
  color: #087344;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 38px;
  padding: 9px 12px;
}

.blog-agent-panel {
  background:
    radial-gradient(circle at 95% 8%, rgba(37, 99, 235, 0.18), transparent 34%),
    radial-gradient(circle at 8% 110%, rgba(16, 185, 129, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #eef8ff);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.blog-agent-head {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.blog-agent-head h4 {
  color: #061a2f;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.blog-agent-head p:not(.eyebrow),
.blog-agent-panel .seo-table-note {
  color: #35506b;
}

.blog-agent-orb {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #0759d6, #06a884);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(7, 89, 214, 0.22);
  color: white;
  display: grid;
  justify-items: center;
  min-width: 110px;
  padding: 14px;
  text-align: center;
}

.blog-agent-orb strong {
  font-size: 2rem;
  line-height: 1;
}

.blog-agent-orb span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-agent-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.blog-agent-stats article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.blog-agent-stats span {
  color: #46627f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-agent-stats strong {
  color: #061a2f;
  font-size: 1.4rem;
  line-height: 1;
}

.blog-agent-actions {
  gap: 8px;
}

.blog-agent-latest {
  margin-top: 6px;
}

.blog-agent-latest-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.blog-agent-latest-head .eyebrow {
  margin: 0;
}

.blog-agent-latest-close {
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  border: 0;
  border-radius: 50%;
  color: #46627f;
  cursor: pointer;
  display: flex;
  height: 26px;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
  width: 26px;
}

.blog-agent-latest-close:hover {
  background: rgba(37, 99, 235, 0.18);
  color: #1769ff;
}

.blog-agent-latest-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.blog-agent-latest-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  padding: 9px 12px;
}

.blog-agent-latest-item span {
  align-items: center;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  color: #1769ff;
  display: flex;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.blog-agent-latest-item strong {
  display: block;
  color: #061a2f;
  font-size: 0.86rem;
  line-height: 1.3;
}

.blog-agent-latest-item small {
  color: #46627f;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .blog-agent-head {
    grid-template-columns: 1fr;
  }

  .blog-agent-orb {
    aspect-ratio: auto;
    border-radius: 16px;
    min-width: 0;
  }

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

.seo-status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
}

.seo-advanced-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 0.8fr) minmax(420px, 1.4fr);
}

.seo-advanced-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(41, 230, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f5fcff);
  border: 1px solid rgba(41, 230, 255, 0.24);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(7, 26, 47, 0.08);
  overflow: hidden;
  padding: 14px;
}

.seo-advanced-card h4 {
  color: #071a2f;
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.seo-mini-bars {
  display: grid;
  gap: 9px;
}

.seo-mini-bar {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 100px minmax(0, 1fr) 42px;
}

.seo-mini-bar span,
.seo-mini-bar strong {
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
}

.seo-mini-bar div {
  background: #e8f5fb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.seo-mini-bar i {
  background: linear-gradient(90deg, #29e6ff, #6157ff);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.seo-opportunity-card table {
  border-collapse: collapse;
  width: 100%;
}

.seo-opportunity-card th,
.seo-opportunity-card td {
  border-bottom: 1px solid #e2edf5;
  font-size: 0.74rem;
  padding: 7px;
  text-align: left;
  vertical-align: top;
}

.seo-opportunity-card th {
  color: #071a2f;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.seo-table-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: -4px 0 10px;
}

.seo-position {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.seo-position.pending {
  background: #fff6d8;
  color: #8a5a00;
}

.seo-position.ranking {
  background: #e3fff1;
  color: #087344;
}

.seo-move {
  background: #eef4ff;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 1000;
  min-width: 34px;
  padding: 6px 9px;
  justify-content: center;
}

.seo-move.up {
  background: #dcfce7;
  color: #166534;
}

.seo-move.down {
  background: #fee2e2;
  color: #991b1b;
}

.customer-chatbot-fab {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 16px 34px rgba(6, 78, 88, 0.32);
  color: white;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  position: fixed;
  right: 22px;
  z-index: 45;
}

.crm-sheet input,
.crm-sheet select {
  min-width: 130px;
}

.customer-chatbot-fab span {
  background: white;
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  position: relative;
  width: 18px;
}

.customer-chatbot-fab span::after {
  border-left: 5px solid transparent;
  border-top: 6px solid white;
  bottom: -4px;
  content: "";
  position: absolute;
  right: 2px;
}

.customer-support-chat-fab {
  align-items: center;
  background: linear-gradient(135deg, #0f8c99, #064e58);
  border: 0;
  border-radius: 999px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 18px 38px rgba(6, 78, 88, 0.34);
  color: #ffffff;
  cursor: pointer;
  display: none;
  font-weight: 1000;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  position: fixed;
  right: 22px;
  z-index: 78;
}

body[data-route="customer"] .customer-support-chat-fab {
  display: inline-flex;
}

.customer-support-chat-fab span {
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  position: relative;
  width: 18px;
}

.customer-support-chat-fab span::after {
  border-left: 5px solid transparent;
  border-top: 6px solid #ffffff;
  bottom: -4px;
  content: "";
  position: absolute;
  right: 2px;
}

.customer-support-chat-popup {
  bottom: 16px;
  display: none;
  max-height: calc(100dvh - 32px);
  max-width: calc(100vw - 28px);
  position: fixed;
  right: 22px;
  width: 560px;
  z-index: 82;
}

.customer-support-chat-popup.active {
  display: block;
}

.customer-support-chat-popup.active + .customer-support-chat-fab {
  display: none;
}

.customer-support-chat-panel {
  background: #ffffff;
  border: 1px solid rgba(143, 216, 255, 0.42);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(620px, calc(100dvh - 32px));
  overflow: hidden;
}

.customer-support-chat-header {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
  border-bottom: 1px solid rgba(143, 216, 255, 0.42);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.customer-support-chat-header h3 {
  color: #073b44;
  font-size: 1rem;
  margin: 0;
}

.customer-support-chat-log {
  background: linear-gradient(180deg, #f7fbff, #eef8ff);
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.customer-support-message {
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.42;
  max-width: 84%;
  padding: 10px 12px;
}

.customer-support-message strong {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.customer-support-message p {
  margin: 0;
}

.customer-support-message.customer {
  align-self: flex-end;
  background: linear-gradient(135deg, #fff6df, #ffedbd);
  border: 1px solid rgba(243, 196, 107, 0.38);
  border-top-right-radius: 6px;
}

.customer-support-message.agent,
.customer-support-message.admin,
.customer-support-message.support {
  align-self: flex-start;
  background: linear-gradient(135deg, #e8fff8, #eef6ff);
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-top-left-radius: 6px;
}

.customer-support-message.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(18, 184, 199, 0.18);
  border-top-left-radius: 6px;
}

.customer-support-chat-compose {
  background: #ffffff;
  border-top: 1px solid rgba(143, 216, 255, 0.42);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.customer-support-chat-compose input {
  border: 1px solid rgba(7, 140, 153, 0.35);
  border-radius: 999px;
  font-size: 16px;
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
}

.customer-support-chat-compose button {
  border-radius: 999px;
  min-height: 46px;
}

.chat-shell {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto auto auto auto;
  height: clamp(620px, calc(100vh - 116px), 820px);
  height: clamp(620px, calc(100dvh - 116px), 820px);
  min-height: 0;
  overflow: hidden;
}

.chat-header {
  align-items: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(18, 184, 199, 0.13), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7fcff);
  border-bottom: 1px solid rgba(143, 216, 255, 0.42);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.support-chat-identity {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.support-chat-identity h2 {
  color: #073b44;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.1;
  margin: 0;
}

.support-chat-identity small {
  color: #64748b;
  display: block;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.3;
  margin-top: 3px;
}

.status-pill,
.tag {
  background: var(--amber);
  border: 1px solid #edd294;
  border-radius: 999px;
  color: #7a4b00;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 6px 10px;
}

.status-pill.paid,
.tag.approved {
  background: var(--mint);
  border-color: #a9ded0;
  color: #075849;
}

.tag.pending {
  background: var(--amber);
}

.chat-log {
  background:
    radial-gradient(circle at 8% 0%, rgba(18, 184, 199, 0.1), transparent 26%),
    linear-gradient(180deg, #f7fbff, #eef8ff);
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.bubble {
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.48;
  max-width: 78%;
  padding: 12px 14px;
}

.bubble.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(18, 184, 199, 0.18);
  border-top-left-radius: 6px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.bubble.customer {
  align-self: flex-end;
  background: linear-gradient(135deg, #fff6df, #ffedbd);
  border: 1px solid rgba(243, 196, 107, 0.38);
  border-top-right-radius: 6px;
}

.bubble.agent {
  align-self: flex-start;
  background: linear-gradient(135deg, #e8fff8, #eef6ff);
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-top-left-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chat-compose {
  background: #ffffff;
  border-top: 1px solid rgba(143, 216, 255, 0.42);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.chat-compose .primary-action {
  border-radius: 999px;
  min-height: 44px;
  padding-inline: 18px;
}

.chat-payment-plugin {
  background: #f8fafc;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

.chat-payment-plugin strong,
.chat-payment-plugin span {
  display: block;
}

.chat-payment-plugin span,
.chat-plan-history {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 3px 0 0;
}

.chat-initial-payment {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #f3c46b;
  border-radius: 8px;
  display: grid;
  gap: 6px 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px;
}

.chat-initial-payment strong {
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.chat-initial-payment span {
  color: #7a5400;
  font-size: 0.78rem;
  font-weight: 900;
  grid-column: 1 / -1;
  margin: 0;
}

.chat-initial-payment p {
  color: #6b4a04;
  line-height: 1.4;
  margin: 0;
}

.chat-initial-payment .primary-action {
  min-height: 36px;
  padding: 8px 12px;
}

.chat-plan-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-plan-buttons .secondary-action {
  min-height: 36px;
  padding: 8px 10px;
}

.crm-status-select {
  min-width: 142px;
}

.search-result-sheet {
  margin-bottom: 14px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

label {
  color: #344054;
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 7px;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 14px;
}

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

.wide {
  grid-column: 1 / -1;
}

.checkbox-line {
  align-items: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  font-weight: 700;
  gap: 10px;
  grid-template-columns: auto 1fr;
  line-height: 1.45;
  padding: 12px;
  user-select: none;
}

.checkbox-line input {
  accent-color: var(--brand);
  cursor: pointer;
  float: none;
  height: 22px;
  min-height: 22px;
  margin-left: 0;
  margin-top: 1px;
  position: static;
  width: 22px;
}

.record-list {
  display: grid;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.record-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.record-item strong,
.record-item span {
  display: block;
}

.record-item span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.record-detail {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 360px;
  padding: 0;
}

.detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.detail-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.detail-tile span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.appointment-form {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.staff-logout {
  margin: 0 0 14px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-list span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
}

.text-page {
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-page {
  display: grid;
  gap: 26px;
}

.about-hero,
.about-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.about-hero p,
.about-section p {
  color: var(--muted);
}

.about-service-grid,
.experience-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.about-card,
.experience-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.about-card h3,
.experience-card strong {
  color: var(--ink);
}

.experience-card strong {
  display: block;
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.process-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.process-list span {
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  font-weight: 800;
  padding: 12px 14px;
}

.about-smart-hero,
.about-smart-section {
  background:
    radial-gradient(circle at 12% 14%, rgba(41, 230, 255, 0.15), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(97, 87, 255, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.96));
  border: 1px solid rgba(18, 184, 199, 0.2);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.about-smart-hero {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  min-height: 360px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  position: relative;
}

.about-smart-copy p {
  color: var(--muted);
  max-width: 650px;
}

.about-smart-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.about-smart-stats span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 184, 199, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 3px;
  padding: 14px;
}

.about-smart-stats b {
  color: #075985;
  font-size: 1.5rem;
  line-height: 1;
}

.about-smart-stats small {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
}

.about-3d-desk {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(41, 230, 255, 0.34), transparent 36%),
    linear-gradient(145deg, #071a2f, #063a4a 62%, #0f766e);
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow:
    0 30px 70px rgba(7, 26, 47, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  min-height: 310px;
  perspective: 900px;
  position: relative;
}

.about-orbit-core {
  align-content: center;
  animation: aboutCoreFloat 4.4s ease-in-out infinite;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.62), transparent 24%),
    linear-gradient(145deg, rgba(41, 230, 255, 0.95), rgba(16, 207, 162, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(41, 230, 255, 0.12),
    0 20px 46px rgba(0, 0, 0, 0.28);
  color: #052033;
  display: grid;
  height: 132px;
  justify-items: center;
  left: 50%;
  padding-top: 8px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotateX(8deg);
  width: 132px;
  z-index: 2;
}

.about-orbit-core b {
  font-size: 1.18rem;
  font-weight: 1000;
}

.about-orbit-core small {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-orbit-card {
  animation: aboutCardLift 5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 13px;
  position: absolute;
  transform: rotateX(10deg) rotateY(-8deg);
}

.about-orbit-card span {
  color: #8ff5ff;
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.about-orbit-card strong {
  font-size: 0.86rem;
  line-height: 1.15;
}

.about-orbit-card.card-a {
  left: 26px;
  top: 30px;
}

.about-orbit-card.card-b {
  animation-delay: 0.35s;
  right: 30px;
  top: 42px;
}

.about-orbit-card.card-c {
  animation-delay: 0.7s;
  bottom: 38px;
  right: 44px;
}

.about-orbit-card.card-d {
  animation-delay: 1.05s;
  bottom: 32px;
  left: 34px;
}

.about-smart-section {
  padding: clamp(18px, 3vw, 28px);
}

.compact-title {
  margin-bottom: 16px;
}

.compact-title h2 {
  margin-bottom: 0;
}

.about-cube-grid,
.about-journey-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-cube-grid article,
.about-journey-board article {
  background:
    radial-gradient(circle at 18% 14%, rgba(41, 230, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(18, 184, 199, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 17px;
  transform: translateZ(0);
}

.about-cube-grid span,
.about-journey-board b {
  align-items: center;
  background: linear-gradient(135deg, #071a2f, #00a8c8 58%, #10cfa2);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 168, 200, 0.2);
  color: #ffffff;
  display: grid;
  font-size: 0.82rem;
  font-weight: 1000;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.about-cube-grid strong,
.about-journey-board strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.18;
}

.about-cube-grid small,
.about-journey-board small {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
}

.about-smart-process {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
}

.about-process-flow {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(7, auto);
}

.about-process-flow span {
  background: linear-gradient(135deg, #071a2f, #0ea5e9);
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 1000;
  padding: 10px 13px;
  text-align: center;
  white-space: nowrap;
}

.about-process-flow i {
  background: linear-gradient(90deg, #29e6ff, #10cfa2);
  border-radius: 999px;
  display: block;
  height: 3px;
  min-width: 28px;
}

@keyframes aboutCoreFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(8deg) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotateX(8deg) translateY(-8px);
  }
}

@keyframes aboutCardLift {
  0%,
  100% {
    transform: rotateX(10deg) rotateY(-8deg) translateY(0);
  }
  50% {
    transform: rotateX(10deg) rotateY(-8deg) translateY(-7px);
  }
}

.legal-page {
  display: grid;
  gap: 22px;
}

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

.legal-grid article {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.legal-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.rgb-theme-divider {
  background: linear-gradient(90deg, var(--red) 0 30%, #ffffff 30% 42%, var(--brand) 42% 100%);
}

.service-card::before,
.product-card::before,
.why-points article::before,
.crm-card::before {
  background: linear-gradient(90deg, var(--red) 0 30%, #ffffff 30% 42%, var(--brand) 42% 100%);
}

.crm-tabs button.active,
.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.tag.approved,
.status-pill.approved,
.payment-status.paid {
  background: var(--green-soft);
  color: #087a45;
}

.tag.blocked,
.priority-pill.priority-urgent,
.ticket-priority-top.priority-urgent {
  background: var(--red-soft);
  color: #b4232f;
}

.home-chat-bubble.agent,
.home-chat-bubble.client,
.chat-bubble.client {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.home-chat-bubble.ai,
.chat-bubble.ai,
.chat-bubble.agent {
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
  border-color: rgba(23, 105, 255, 0.2);
}

.public-chat-fab,
.customer-support-chat-fab,
.backoffice-agent-fab {
  background: linear-gradient(135deg, var(--red), var(--brand) 52%, var(--green));
}

.site-footer {
  background:
    linear-gradient(135deg, #101828, #12333c),
    radial-gradient(circle at 90% 10%, rgba(243, 196, 107, 0.18), transparent 34%);
  color: white;
  margin-top: 24px;
  padding: 22px clamp(16px, 3vw, 28px) 18px;
}

.footer-inner {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 1.15fr) minmax(150px, 0.55fr) minmax(250px, 0.9fr);
  margin: 0 auto;
  max-width: 1180px;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand .brand-mark {
  height: 34px;
  width: 34px;
}

.site-footer strong {
  font-size: 0.95rem;
}

.footer-brand small,
.footer-contact span {
  color: #cbd5e1;
  display: block;
  font-size: 0.8rem;
}

.footer-contact {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.site-footer p {
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 6px 0 10px;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8e2ef;
  font-size: 0.78rem;
  margin: 14px auto 0;
  max-width: 1180px;
  padding-top: 10px;
}

.footer-links,
.accepted-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-links.stacked {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.footer-links a {
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 8px;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.08);
  color: #e5eefb;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.footer-payment-block strong {
  display: block;
  margin-bottom: 8px;
}

.fxr-blog-hero {
  background:
    linear-gradient(135deg, rgba(7, 26, 47, 0.88), rgba(15, 118, 110, 0.82)),
    url("assets/accounting.svg") center/cover no-repeat;
  color: #ffffff;
  padding: clamp(32px, 7vw, 72px) clamp(16px, 4vw, 34px);
}

.fxr-blog-hero h2 {
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0 0 10px;
}

.fxr-blog-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 820px;
}

.fxr-blog-auto-note {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 12px;
  padding: 10px 12px;
}

.fxr-blog-search {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
  max-width: 780px;
}

.fxr-blog-search input {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 14px;
}

.fxr-blog-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  height: min(920px, calc(100dvh - 110px));
  overflow: hidden;
  padding: clamp(16px, 3vw, 28px);
}

.fxr-blog-index,
.blog-post-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.fxr-blog-index {
  display: grid;
  gap: 10px;
  max-height: 100%;
  overflow: hidden;
  padding: 16px;
  position: sticky;
  top: 92px;
}

#blogCategoryList {
  display: grid;
  gap: 8px;
  max-height: min(520px, calc(100dvh - 310px));
  overflow-y: auto;
  padding-right: 3px;
}

#blogCategoryList::-webkit-scrollbar,
.fxr-blog-content::-webkit-scrollbar {
  width: 8px;
}

#blogCategoryList::-webkit-scrollbar-thumb,
.fxr-blog-content::-webkit-scrollbar-thumb {
  background: #bfdbfe;
  border-radius: 999px;
}

.fxr-blog-content {
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.fxr-blog-content.topic-selected .fxr-blog-clusters,
.fxr-blog-content.topic-selected .fxr-blog-guidance,
.fxr-blog-content.topic-selected .fxr-blog-authority,
.fxr-blog-content.topic-selected .fxr-blog-citation {
  display: none !important;
}

.fxr-blog-content.topic-selected .fxr-blog-featured {
  margin-bottom: 10px;
}

#blogCategoryList button {
  align-items: center;
  appearance: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  cursor: pointer;
  display: flex;
  font-size: 0.84rem;
  font-weight: 800;
  justify-content: space-between;
  padding: 8px 10px;
  text-align: left;
}

#blogCategoryList button.active {
  background: #ecfdf5;
  border-color: #34d399;
  color: #065f46;
}

#blogCategoryList strong,
#blogCategoryList button strong {
  color: var(--brand);
}

.fxr-blog-seo-note {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 10px;
}

.fxr-blog-seo-note span {
  color: #0f766e;
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fxr-blog-seo-note p {
  color: #475467;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 5px 0 0;
}

.fxr-blog-featured {
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f3fbff);
  border: 1px solid #cfe6ee;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: clamp(16px, 3vw, 24px);
}

.fxr-blog-featured h3 {
  color: #0b3340;
  margin: 0 0 8px;
}

.fxr-blog-featured p {
  color: #475467;
  line-height: 1.55;
  margin: 0 0 10px;
}

.fxr-blog-clusters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0 0 16px;
}

.fxr-blog-clusters article {
  background:
    radial-gradient(circle at 100% 0%, rgba(32, 217, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fcff);
  border: 1px solid #d7e7f1;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(7, 26, 47, 0.07);
  min-width: 0;
  padding: 12px;
}

.fxr-blog-clusters b {
  color: #0b3f91;
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  margin-bottom: 5px;
}

.fxr-blog-clusters span {
  color: #526b82;
  display: block;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.fxr-blog-guidance {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
}

.fxr-blog-guidance article {
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 105, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #d7e7f1;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(7, 26, 47, 0.07);
  padding: 14px;
}

.fxr-blog-guidance span {
  color: #1769ff;
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 6px;
}

.fxr-blog-guidance b {
  color: #102033;
  display: block;
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.fxr-blog-guidance p {
  color: #53677c;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.fxr-blog-authority {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(7, 21, 40, 0.98), rgba(10, 47, 73, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(50, 246, 166, 0.18), transparent 28%);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(7, 26, 47, 0.16);
  color: #ffffff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  margin: 0 0 16px;
  padding: clamp(16px, 3vw, 22px);
}

.fxr-blog-authority .eyebrow,
.fxr-blog-authority h3,
.fxr-blog-authority p,
.fxr-blog-authority li {
  color: #ffffff;
}

.fxr-blog-authority .eyebrow {
  color: #32f6a6;
  margin-bottom: 6px;
}

.fxr-blog-authority h3 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  margin: 0 0 8px;
}

.fxr-blog-authority p,
.fxr-blog-authority li {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.fxr-blog-authority ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fxr-blog-authority li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}

.fxr-blog-citation {
  background: #ffffff;
  border: 1px solid #d7e7f1;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(7, 26, 47, 0.08);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.82fr);
  margin: 0 0 16px;
  padding: clamp(16px, 3vw, 22px);
}

.fxr-blog-citation h3 {
  color: #102033;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  margin: 0 0 8px;
}

.fxr-blog-citation p {
  color: #52657a;
  font-weight: 700;
  line-height: 1.55;
}

.citation-nap-card {
  background: linear-gradient(135deg, #071a2f, #0b3f68);
  border-radius: 14px;
  color: #ffffff;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.citation-nap-card strong,
.citation-nap-card span,
.citation-nap-card small {
  color: #ffffff;
}

.citation-nap-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.4;
}

.citation-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.citation-checklist span {
  background: #eef7ff;
  border: 1px solid #cfe8ff;
  border-radius: 999px;
  color: #0f4b82;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.blog-answer-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  margin: 10px 0 12px;
  padding: 12px 14px;
}

.blog-answer-box strong {
  color: #1d4ed8;
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.blog-answer-box p {
  color: #17365d;
  font-weight: 800;
  margin: 0;
}

.blog-answer-box.compact {
  margin: 8px 0 10px;
  padding: 10px 12px;
}

.blog-answer-box.compact p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.blog-answer-faq {
  background: #f8fbff;
  border: 1px solid #d7e7f1;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
}

.blog-answer-faq > strong,
.blog-related-links > strong {
  color: #102033;
  display: block;
  font-size: 0.86rem;
  font-weight: 950;
  margin-bottom: 2px;
}

.blog-answer-faq article {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.blog-answer-faq h4 {
  color: #102033;
  font-size: 0.95rem;
  font-weight: 900;
  margin: 0 0 5px;
}

.blog-answer-faq p {
  color: #52657a;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

.blog-related-links {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  margin: 14px 0;
  padding: 12px;
}

.blog-related-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-related-links .secondary-action {
  background: #ffffff;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #047857;
  min-height: 36px;
  padding: 7px 11px;
}

.blog-post-list {
  display: grid;
  gap: 16px;
}

.blog-post-card {
  padding: clamp(16px, 3vw, 24px);
}

.blog-post-card.daily-post {
  border-left: 5px solid #14b8a6;
}

.blog-post-card.blog-just-generated {
  animation: blogJustGeneratedFlash 2.4s ease-out;
}
@keyframes blogJustGeneratedFlash {
  0% { box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.55); background: rgba(20, 184, 166, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); background: transparent; }
}

.blog-post-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.blog-post-card h3 {
  color: #0b3340;
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 10px;
}

.blog-post-card p {
  color: #475467;
  line-height: 1.65;
  margin: 0 0 10px;
}

.blog-query-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.blog-query-strip em {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  padding: 5px 8px;
}

.blog-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.blog-keywords span {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.blog-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.payment-card {
  background: linear-gradient(135deg, #ffffff, #dfe7f2);
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  display: block;
  height: 42px;
  overflow: hidden;
  position: relative;
  width: 74px;
}

.payment-card::before,
.payment-card::after {
  content: "";
  position: absolute;
}

.payment-card::before {
  background: rgba(255, 255, 255, 0.55);
  height: 7px;
  left: 9px;
  right: 9px;
  top: 9px;
}

.payment-card::after {
  background: rgba(16, 24, 40, 0.2);
  border-radius: 999px;
  bottom: 9px;
  height: 5px;
  left: 9px;
  width: 30px;
}

.payment-card i,
.payment-card b,
.payment-card em {
  display: block;
  position: absolute;
}

.payment-card em {
  color: #111827;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 900;
  left: 9px;
  line-height: 1;
  max-width: 56px;
  overflow: hidden;
  text-transform: uppercase;
  top: 24px;
  white-space: nowrap;
  z-index: 2;
}

.payment-card.visa {
  background: linear-gradient(135deg, #1a4fb8, #f4f7ff);
}

.payment-card.visa em,
.payment-card.amex em {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.payment-card.visa i {
  background: #f3c46b;
  bottom: 9px;
  height: 8px;
  right: 9px;
  transform: skewX(-18deg);
  width: 26px;
}

.payment-card.mastercard {
  background: linear-gradient(135deg, #ffffff, #f4efe8);
}

.payment-card.mastercard i,
.payment-card.mastercard b {
  border-radius: 50%;
  bottom: 8px;
  height: 18px;
  width: 18px;
}

.payment-card.mastercard i {
  background: #e63d2e;
  right: 23px;
}

.payment-card.mastercard b {
  background: #f2a900;
  right: 10px;
}

.payment-card.amex {
  background: linear-gradient(135deg, #208bd7, #0c4f88);
}

.payment-card.amex i {
  background: rgba(255, 255, 255, 0.85);
  bottom: 8px;
  height: 10px;
  right: 9px;
  width: 32px;
}

.payment-card.discover {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 48%, #f58220 49%, #f8ba63 100%);
}

.payment-card.discover i {
  background: #172033;
  bottom: 10px;
  height: 6px;
  right: 9px;
  width: 32px;
}

.payment-card.bank {
  background: linear-gradient(135deg, #dff7ef, #ffffff);
}

.payment-card.bank i {
  border-bottom: 15px solid #0b6f78;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  height: 0;
  left: 15px;
  top: 13px;
  width: 0;
}

.payment-card.wallet {
  background: linear-gradient(135deg, #fff2d8, #ffffff);
}

.payment-card.wallet i {
  background: #8a5a00;
  border-radius: 8px;
  bottom: 8px;
  height: 18px;
  right: 9px;
  width: 34px;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 0.8fr 1fr;
}

.toast {
  background: #111827;
  border-radius: 8px;
  bottom: 20px;
  color: white;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px 16px;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: 0.24s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.backoffice-agent-fab {
  align-items: center;
  background: linear-gradient(135deg, #0f172a, #0b6f78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  bottom: 94px;
  box-shadow: var(--shadow);
  color: white;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  min-height: 50px;
  padding: 10px 16px 10px 10px;
  position: fixed;
  right: 22px;
  z-index: 58;
}

.backoffice-agent-fab span {
  align-items: center;
  background: #f3c46b;
  border-radius: 50%;
  color: #1f2937;
  display: inline-flex;
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.backoffice-agent-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 154px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  max-height: min(620px, calc(100vh - 180px));
  overflow: hidden;
  position: fixed;
  right: 22px;
  width: min(460px, calc(100vw - 32px));
  z-index: 59;
}

.backoffice-agent-fab.hide,
.backoffice-agent-panel.hide {
  display: none;
}

.backoffice-agent-header {
  align-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(243, 196, 107, 0.25), transparent 34%),
    linear-gradient(135deg, #0f172a, #064e58);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.backoffice-agent-header .eyebrow {
  color: #b8fff0;
  margin-bottom: 4px;
}

.backoffice-agent-header h3 {
  font-size: 1.08rem;
  margin: 0;
}

.backoffice-agent-log {
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc, #eef7f7);
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  padding: 14px;
}

.backoffice-agent-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 88%;
  padding: 10px 12px;
}

.backoffice-agent-message.agent {
  align-self: flex-start;
  background: #eaf2ff;
}

.backoffice-agent-message.user {
  align-self: flex-end;
  background: #fff2d8;
}

.backoffice-agent-compose {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.cookie-banner {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 18px;
  max-width: 720px;
  padding: 16px;
  position: fixed;
  right: 18px;
  z-index: 60;
}

.cookie-banner.hide {
  display: none;
}

.cookie-banner p {
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

.modal-backdrop {
  align-items: center;
  background: rgba(17, 24, 39, 0.68);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 80;
}

.modal-backdrop.active {
  display: flex;
}

.modal-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  max-height: calc(100vh - 36px);
  max-width: 920px;
  overflow: auto;
  padding: 22px;
  width: 100%;
}

.modal-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.backpanel-detail-modal {
  max-width: 1080px;
  padding: 0;
  width: min(94vw, 1080px);
}

.product-checkout-modal {
  max-width: 1080px;
  padding: 0;
  width: min(94vw, 1080px);
}

.product-document-modal {
  max-width: 1080px;
  padding: 0;
  width: min(94vw, 1080px);
}

.backpanel-detail-modal .modal-header {
  background:
    radial-gradient(circle at 0% 0%, rgba(41, 230, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #effbff);
  margin: 0;
  padding: 16px 18px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.product-checkout-modal .modal-header {
  background:
    radial-gradient(circle at 0% 0%, rgba(41, 230, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #effbff);
  margin: 0;
  padding: 16px 18px;
}

.product-document-modal .modal-header {
  background:
    radial-gradient(circle at 0% 0%, rgba(41, 230, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #effbff);
  margin: 0;
  padding: 16px 18px;
}

.modal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backpanel-detail-modal-body {
  display: grid;
  gap: 14px;
  max-height: min(76vh, 760px);
  overflow: auto;
  padding: 16px;
}

.backpanel-detail-modal-body .admin-customer-profile,
.backpanel-detail-modal-body .employee-detail-panel,
.backpanel-detail-modal-body .visitor-detail-panel,
.backpanel-detail-modal-body .ticket-detail-panel {
  box-shadow: none;
  margin: 0;
}

.product-checkout-modal-body {
  max-height: min(76vh, 760px);
  overflow: auto;
  padding: 16px;
}

.product-document-modal-body {
  max-height: min(76vh, 760px);
  overflow: auto;
  padding: 16px;
}

.product-checkout-modal-body .product-checkout-panel {
  box-shadow: none;
  margin: 0;
}

.product-document-modal-body .invoice-document {
  margin: 0;
}

.product-signature-pad {
  background: linear-gradient(135deg, #f8fcff, #eef8ff);
  border: 1px solid #cfe4f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.product-signature-pad strong,
.product-signature-pad span {
  display: block;
}

.product-signature-pad span {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-signature-pad canvas {
  background: #ffffff;
  border: 1px solid #c7d6e5;
  border-radius: 10px;
  cursor: crosshair;
  height: 150px;
  max-width: 100%;
  touch-action: none;
  width: 100%;
}

.document-signature-pad {
  margin-top: 16px;
}

.document-signature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-signature-complete {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 10px;
  color: #166534;
  font-weight: 900;
  margin-top: 14px;
  padding: 12px;
}

body.backpanel-detail-open {
  overflow: hidden;
}

body.product-checkout-open {
  overflow: hidden;
}

body.product-document-open {
  overflow: hidden;
}

.document-preview {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.payment-panel {
  max-width: 760px;
}

.payment-page-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px clamp(18px, 4vw, 36px);
}

.payment-page-intro,
.payment-page-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.payment-page-intro p {
  color: var(--muted);
  line-height: 1.65;
}

.merchant-disclosure {
  background: #eef8ff;
  border: 1px solid #cbe7fb;
  border-radius: 8px;
  margin-top: 14px;
  padding: 14px;
}

.merchant-disclosure strong,
.merchant-disclosure span {
  display: block;
}

.merchant-disclosure strong {
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.merchant-disclosure span {
  color: var(--muted);
  line-height: 1.5;
}

.product-back-office-shell {
  padding: 0 clamp(18px, 4vw, 36px) 48px;
}

.payment-summary {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}

.payment-total {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.payment-total span,
.payment-total strong,
.payment-lines span,
.payment-lines strong {
  display: block;
}

.payment-total span,
.payment-lines span {
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-total strong {
  font-size: 1.6rem;
}

.payment-lines {
  display: grid;
  gap: 8px;
}

.payment-lines p {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.payment-form {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.modal-backdrop.chat-payment-backdrop {
  align-items: end;
  background: transparent;
  justify-content: end;
  padding: 14px 22px calc(92px + env(safe-area-inset-bottom, 0px)) 14px;
  pointer-events: none;
  z-index: 120;
}

.chat-payment-backdrop .payment-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 255, 0.98));
  border: 1px solid rgba(15, 118, 180, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(4, 19, 37, 0.28);
  max-height: none;
  max-width: 360px;
  overflow: visible;
  padding: 10px;
  pointer-events: auto;
}

.chat-payment-backdrop .modal-header {
  align-items: center;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 7px;
  padding-bottom: 6px;
}

.chat-payment-backdrop .modal-header .eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  margin: 0 0 2px;
}

.chat-payment-backdrop .modal-header h2 {
  font-size: 0.92rem;
  line-height: 1.1;
  margin: 0;
}

.chat-payment-backdrop #closePaymentModal {
  font-size: 0.68rem;
  min-height: 28px;
  padding: 4px 8px;
}

.chat-payment-backdrop .payment-summary {
  margin-bottom: 7px;
  padding: 8px;
}

.chat-payment-backdrop .payment-total {
  margin-bottom: 5px;
  padding-bottom: 5px;
}

.chat-payment-backdrop .payment-total span,
.chat-payment-backdrop .payment-lines span {
  font-size: 0.68rem;
}

.chat-payment-backdrop .payment-total strong {
  font-size: 1rem;
}

.chat-payment-backdrop .payment-lines {
  gap: 3px;
}

.chat-payment-backdrop .payment-lines p {
  gap: 10px;
}

.chat-payment-backdrop .payment-lines strong {
  font-size: 0.7rem;
  text-align: right;
}

.chat-payment-backdrop .payment-form {
  gap: 6px;
  padding-top: 7px;
}

.chat-payment-backdrop .payment-form label {
  font-size: 0.66rem;
  gap: 3px;
}

.chat-payment-backdrop .payment-form input:not([type="checkbox"]),
.chat-payment-backdrop .payment-form select {
  font-size: 0.74rem;
  min-height: 29px;
  padding: 5px 7px;
}

.chat-payment-backdrop .payment-form label:has(select[name="method"]),
.chat-payment-backdrop .payment-form label:has(select[name="merchant"]) {
  display: none;
}

.chat-payment-backdrop .checkbox-line {
  border-radius: 8px;
  font-size: 0.58rem;
  gap: 5px;
  line-height: 1.2;
  padding: 6px;
}

.chat-payment-backdrop .form-note {
  display: none;
}

.chat-payment-backdrop #paymentModalSubmit {
  font-size: 0.76rem;
  min-height: 32px;
  padding: 6px 12px;
}

.invoice-document {
  background: #ffffff;
  border: 1px solid #111827;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 28px;
}

.terms-list {
  color: #1f2937;
  line-height: 1.5;
  margin: 0;
  padding-left: 22px;
}

.terms-list li {
  margin-bottom: 7px;
  padding-left: 4px;
}

.invoice-letterhead {
  align-items: flex-start;
  border-bottom: 3px solid #111827;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 16px;
}

.invoice-letterhead h2 {
  color: #111827;
  font-size: 1.75rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 8px;
}

.invoice-letterhead p,
.invoice-meta p {
  margin: 2px 0;
}

.invoice-meta {
  min-width: 230px;
  text-align: right;
}

.invoice-info-table,
.invoice-line-table {
  border-collapse: collapse;
  margin-top: 18px;
  table-layout: fixed;
  width: 100%;
}

.invoice-info-table th,
.invoice-info-table td,
.invoice-line-table th,
.invoice-line-table td {
  border: 1px solid #1f2937;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.invoice-info-table th,
.invoice-line-table th,
.invoice-line-table tfoot td {
  background: #f3f4f6;
  color: #111827;
  font-weight: 800;
}

.invoice-info-table th {
  width: 16%;
}

.invoice-line-table .amount {
  text-align: right;
  white-space: nowrap;
  width: 130px;
}

.invoice-agreement-text {
  border-top: 2px solid #111827;
  margin-top: 20px;
  padding-top: 14px;
}

.invoice-agreement-text h3 {
  color: #111827;
  font-size: 1rem;
  margin: 14px 0 8px;
}

.invoice-agreement-text p {
  margin: 0 0 10px;
}

.invoice-signature-line {
  border-bottom: 1px solid #111827;
  margin: 18px 0 8px;
  min-height: 84px;
  width: 360px;
}

.invoice-signature-line img {
  display: block;
  height: auto;
  max-height: 76px;
  max-width: 340px;
}

.invoice-signature-line span {
  color: #4b5563;
  display: block;
  font-size: 0.8rem;
  padding-top: 4px;
}

.signature-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
}

.empty-state {
  border: 1px dashed #b8c1d0;
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero,
  .home-help-strip,
  .why-fixgpt-section,
  .workspace,
  .dashboard-layout,
  .contact-layout,
  .page-banner,
  .registration-layout,
  .self-help-hero,
  .self-help-answer,
  .payment-page-layout,
  .smart-command-section,
  .product-store-hero,
  .product-featured-card,
  .product-checkout-panel,
  .service-detail-hero,
  .service-picture-band,
  .services-page-hero,
  .learning-hero,
  .learning-player-card,
  .services-page-grid,
  .services-flow-grid,
  .services-routing-strip,
  .product-smart-strip,
  .pricing-smart-shell,
  .pricing-video-section,
  .fxr-blog-guidance,
  .fxr-blog-authority {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .invoice-hero,
  .invoice-brand-block,
  .invoice-section-title {
    align-items: start;
    flex-direction: column;
  }

  .invoice-status-card {
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  .invoice-summary-band,
  .smart-detail-grid,
  .verification-grid,
  .signature-box {
    grid-template-columns: 1fr;
  }

  .verification-grid .wide {
    grid-column: auto;
  }

  .invoice-section {
    padding: 16px;
  }

  .hero-visual {
    position: static;
  }

  .home-issue-search {
    grid-template-columns: 1fr;
  }

  .about-smart-hero,
  .about-smart-process {
    grid-template-columns: 1fr;
  }

  .about-cube-grid,
  .about-journey-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-board {
    grid-template-columns: 1fr;
  }

  .command-board-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-chat-popup {
    bottom: 14px;
    left: 14px;
    right: 14px;
    width: auto;
  }

  .home-chat-log {
    max-height: none;
  }

  .fxr-blog-layout {
    grid-template-columns: 1fr;
  }

  .fxr-blog-search,
  .fxr-blog-featured {
    grid-template-columns: 1fr;
  }

  .fxr-blog-featured {
    align-items: stretch;
    display: grid;
  }

  .fxr-blog-index {
    position: static;
  }

  .product-signature-pad canvas {
    height: 120px;
  }

  .registration-layout > div,
  .registration-layout form,
  .registration-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .registration-photo {
    min-height: 320px;
  }

  .service-grid,
  .plan-grid,
  .login-grid,
  .admin-grid,
  .picture-grid,
  .coverage-card-grid,
    .graphic-map-grid,
    .product-grid,
    .product-card-grid,
    .learning-video-grid,
    .services-page-grid,
    .crm-overview,
    .footer-inner {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-login-card {
    grid-column: auto;
  }

  .footer-payment-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .smart-command-section {
    gap: 12px;
    padding-bottom: 24px;
  }

  .command-board-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .command-board {
    gap: 10px;
    padding: 12px;
  }

  .command-metric {
    min-height: 86px;
    padding: 10px 8px;
  }

  .command-metric small {
    font-size: 0.58rem;
  }

  .command-metric strong {
    font-size: 1.18rem;
  }

  .command-metric em,
  .command-ticket-stack b {
    font-size: 0.66rem;
  }

  .command-ticket-stack article {
    padding: 10px;
  }

  .command-ticket-stack span {
    font-size: 0.78rem;
  }

  .command-topbar b {
    display: none;
  }

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

  .about-3d-desk {
    min-height: 390px;
  }

  .about-orbit-card {
    min-width: 116px;
  }

  .about-cube-grid,
  .about-journey-board,
  .about-process-flow {
    grid-template-columns: 1fr;
  }

  .about-process-flow i {
    height: 18px;
    justify-self: center;
    min-width: 3px;
    width: 3px;
  }

  .pricing-smart-shell {
    padding-inline: 10px;
  }

  .pricing-service-grid,
  .pricing-flow-3d,
  .pricing-mini-strip {
    grid-template-columns: 1fr;
  }

  .pricing-amount-row {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .pricing-amount-row small {
    padding-bottom: 0;
  }

  .services-ai-router {
    min-height: 360px;
  }

  .pricing-banner-3d {
    min-height: 360px;
    width: 100%;
  }

  .router-node {
    height: 56px;
    width: 72px;
  }

  .pricing-banner-node {
    max-width: 128px;
    padding: 10px;
  }

  .pricing-banner-node.node-connect {
    left: 18px;
    top: 34px;
  }

  .pricing-banner-node.node-record {
    right: 18px;
    top: 44px;
  }

  .pricing-banner-node.node-portal {
    left: calc(50% - 64px);
  }

  .services-card-head {
    min-height: auto;
  }

  .services-card-diagram {
    grid-template-columns: 1fr;
  }

  .services-card-diagram i {
    height: 18px;
    justify-self: center;
    width: 3px;
  }

  .service-grid,
  .plan-grid,
  .login-grid,
  .admin-grid,
  .form-grid,
  .detail-grid,
  .about-service-grid,
  .service-explain-grid,
  .coverage-card-grid,
  .experience-grid,
  .process-list,
  .signature-box,
  .picture-grid,
  .graphic-map-grid,
  .command-grid,
  .product-grid,
  .product-card-grid,
  .services-page-grid,
  .services-flow-grid,
  .learning-video-grid,
  .learning-player-card,
  .legal-grid,
  .crm-overview,
  .crm-section-grid,
  .seo-status-hero,
  .seo-rank-summary,
  .seo-advanced-grid,
  .seo-status-grid,
  .trust-signal-grid,
  .fxr-blog-clusters,
  .customer-profile-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .smart-command-section {
    padding-bottom: 28px;
  }

  .command-panel {
    min-height: auto;
  }

  .product-toolbar-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-store-hero {
    grid-template-columns: 1fr;
  }

  .product-smart-visual {
    min-height: 320px;
  }

  .product-featured-card img {
    min-height: 220px;
  }

  .direct-chat-compose,
  .pdf-toolbar,
  .self-help-search,
  .home-help-search,
  .learning-search,
  .learning-video-card,
  .learning-animation,
  .self-help-video-row,
  .service-window-points,
  .pricing-pay-form,
  .self-help-payment-box {
    grid-template-columns: 1fr;
  }

  .self-help-search input,
  .self-help-search .primary-action {
    min-height: 56px;
  }

  .pricing-system-video .ai-explainer-screen {
    min-height: 340px;
  }

  .pricing-video-stage {
    height: 270px;
  }

  .pricing-video-dashboard {
    grid-template-columns: 1fr;
  }

  .pricing-video-copy,
  .pricing-system-video {
    padding: 14px;
  }

  .pricing-pay-form button {
    justify-self: stretch;
    width: 100%;
  }

  .self-help-payment-box strong {
    grid-row: auto;
  }

  .self-help-animation {
    align-items: stretch;
    flex-direction: column;
  }

  .animated-device,
  .ai-video-stack {
    width: 100%;
  }

  .ai-video-stack {
    max-width: none;
  }

  .customer-profile-panel,
  .customer-profile-details,
  .flow-steps,
  .learning-hero,
  .crm-tabs-header,
  .crm-tabs-shell,
  .common-request-detail,
  .detail-point-grid,
  .self-help-bottom-banner,
  .self-help-answer {
    grid-template-columns: 1fr;
  }

  .self-help-side-panel {
    position: static;
  }

  .common-request-detail-wrap,
  .common-request-detail {
    min-height: auto;
  }

  .crm-tab-panel,
  .crm-tabs-header {
    grid-column: auto;
  }

  .flow-steps span:not(:last-child)::after {
    content: "";
  }

  .floating-chat-popup {
    bottom: 82px;
    left: 14px;
    right: 14px;
    width: auto;
  }

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

  .service-tab-menu {
    left: 0;
    transform: none;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .holiday-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .holiday-visual {
    height: 48px;
    width: 72px;
  }

  .payment-total,
  .payment-lines p {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-initial-payment {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .home-chat-compose {
    grid-template-columns: 1fr;
  }

  .bubble {
    max-width: 100%;
  }

  .signal-panel,
  .chat-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    gap: 10px;
    min-height: auto;
    padding: 10px 12px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    height: 36px;
    width: 36px;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .main-nav {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .main-nav a {
    font-size: 0.78rem;
    min-height: 38px;
    min-width: 0;
    padding: 8px 6px;
  }

  .site-header > .primary-action {
    min-height: 40px;
    width: 100%;
  }

  .home-help-strip,
  .hero,
  .content-band,
  .narrow-page,
  .registration-layout,
  .text-page,
  .contact-layout,
  .backpanel-top-tickets,
  .workspace,
  .dashboard-layout,
  .services-page-hero,
  .services-overview-section,
  .services-flow-section,
  .learning-hero,
  .learning-library-section,
  .self-help-hero,
  .payment-page-layout,
  .product-back-office-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-help-strip {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-help-strip h2,
  .hero h1,
  .section-title h2,
  .why-copy h2,
  .services-page-hero h2,
  .learning-intro-card h2,
  .self-help-hero h2 {
    overflow-wrap: anywhere;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 18vw, 4rem);
  }

  .hero-actions,
  .services-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .services-card-actions button {
    width: 100%;
  }

  .home-chat-log {
    max-height: none;
    min-height: 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .service-card,
  .plan-card,
  .panel,
  .why-copy,
  .ai-explainer-card,
  .services-page-card,
  .learning-intro-card,
  .learning-player-card,
  .learning-video-body,
  .self-help-hero > div:first-child,
  .self-help-side-panel,
  .self-help-bottom-banner {
    padding: 16px;
  }

  .ai-explainer-screen {
    min-height: 330px;
  }

  .video-stage {
    height: 270px;
  }

  .character span {
    height: 62px;
    width: 48px;
  }

  .service-orbit {
    height: 132px;
    top: 104px;
    width: 132px;
  }

  .service-orbit span:nth-child(1) {
    left: 47px;
  }

  .service-orbit span:nth-child(2) {
    top: 47px;
  }

  .service-orbit span:nth-child(3) {
    left: 47px;
  }

  .service-orbit span:nth-child(4) {
    top: 47px;
  }

  .chat-shell {
    height: calc(100vh - 132px);
    height: calc(100dvh - 132px);
    min-height: 520px;
  }

  .chat-log {
    min-height: 0;
    padding: 12px;
  }

  .bubble,
  .home-chat-bubble {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .chat-payment-plugin {
    padding: 10px;
  }

  .backoffice-agent-fab {
    bottom: 84px;
    right: 12px;
  }

  .backoffice-agent-panel {
    bottom: 144px;
    left: 12px;
    max-height: calc(100vh - 164px);
    right: 12px;
    width: auto;
  }

  .chat-plan-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-plan-buttons button {
    width: 100%;
  }

  .self-help-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .self-help-price-row strong {
    font-size: 2rem;
  }

  .self-help-bottom-banner .mini-gif-card {
    min-height: 150px;
  }

  .services-flow-grid article,
  .graphic-map-grid article,
  .coverage-card-grid article {
    min-width: 0;
  }

  .crm-tabs-shell {
    margin-left: 12px;
    margin-right: 12px;
  }

  .crm-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crm-tabs button {
    width: 100%;
  }

  .crm-sheet {
    -webkit-overflow-scrolling: touch;
  }

  .crm-sheet table,
  .compact-sheet table {
    min-width: 920px;
    width: max-content;
  }

  .customer-profile-details {
    grid-template-columns: 1fr;
  }

  .admin-profile-header,
  .admin-profile-grid {
    grid-template-columns: 1fr;
  }

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

  .payment-card {
    min-height: 48px;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .modal-backdrop.chat-payment-backdrop {
    align-items: end;
    justify-content: center;
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .chat-payment-backdrop .payment-panel {
    max-height: none;
    max-width: 350px;
    padding: 9px;
    width: 100%;
  }

  .invoice-top,
  .modal-header {
    flex-direction: column;
  }

  .floating-chat-popup {
    bottom: 70px;
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 0.92rem;
  }

  h1,
  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.05rem);
    line-height: 1.02;
  }

  h2,
  .home-search-card h2,
  .services-page-hero h2,
  .self-help-hero h2,
  .learning-intro-card h2 {
    font-size: clamp(1.22rem, 6vw, 1.6rem);
    line-height: 1.12;
  }

  h3 {
    font-size: 1rem;
  }

  p,
  li,
  td,
  th {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  input,
  select,
  textarea,
  .home-issue-search input,
  .home-help-search input,
  .self-help-search input {
    font-size: 16px;
  }

  .primary-action,
  .secondary-action,
  .ghost-action {
    min-height: 38px;
    padding: 8px 10px;
  }

  .home-chat-popup {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    max-height: calc(100dvh - 20px);
    right: 10px;
    width: auto;
    z-index: 95;
  }

  .home-popup-window {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
    max-height: calc(100dvh - 20px);
    overflow: hidden;
  }

  .window-bar {
    gap: 6px;
    padding: 8px 10px;
  }

  .window-bar strong {
    font-size: 0.82rem;
  }

  .agent-avatar {
    height: 28px;
    width: 28px;
  }

  .expert-chat-strip {
    gap: 7px;
    padding: 7px 9px;
  }

  .expert-photo {
    height: 30px;
    width: 30px;
  }

  .expert-chat-strip strong {
    font-size: 0.78rem;
  }

  .expert-chat-strip span {
    font-size: 0.66rem;
  }

  .expert-chat-strip em {
    font-size: 0.62rem;
    padding: 3px 6px;
  }

  .home-chat-log {
    height: min(56dvh, 430px);
    max-height: none;
    min-height: 0;
    padding: 8px;
  }

  .home-chat-bubble,
  .bubble,
  .direct-message {
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.36;
    max-width: 100%;
    padding: 7px 9px;
  }

  .home-chat-action {
    margin: 0 10px 8px;
    padding: 7px;
  }

  .chat-tools {
    gap: 6px;
    padding: 6px 8px;
  }

  .chat-tool-button {
    height: 30px;
    min-height: 30px;
    width: 30px;
  }

  .chat-media-panel {
    gap: 7px;
    max-height: 32dvh;
    overflow: auto;
    padding: 7px;
  }

  .home-chat-compose,
  .chat-compose {
    background: white;
    bottom: 0;
    gap: 6px;
    padding: 7px;
    position: sticky;
  }

  .direct-chat-compose {
    background: white;
    bottom: auto;
    gap: 8px;
    padding: 8px;
    position: static;
  }

  .direct-chat-compose input,
  .direct-chat-compose textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .direct-chat-compose textarea {
    line-height: 1.35;
    max-height: 96px;
    overflow-y: auto;
  }

  .chat-shell {
    height: calc(100dvh - 92px);
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto;
  }

  #supportPage .chat-shell {
    height: min(640px, calc(100dvh - 178px));
  }

  .chat-header {
    gap: 8px;
    padding: 10px;
  }

  .chat-log {
    min-height: 0;
    padding: 10px;
  }

  .floating-chat-popup {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    max-height: calc(100dvh - 94px);
    right: 10px;
    width: auto;
    z-index: 88;
  }

  .floating-chat-popup .direct-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    height: calc(100dvh - 94px);
    max-height: calc(100dvh - 94px);
  }

  .floating-chat-popup .direct-chat-header {
    gap: 8px;
    padding: 10px;
  }

  .floating-chat-popup .direct-chat-log {
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding: 10px;
  }

  .live-chat-workspace {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-template-columns: 1fr;
    height: calc(100dvh - 226px);
    min-height: 430px;
    overflow: hidden;
  }

  .live-chat-thread {
    min-height: 0;
    order: 1;
  }

  .live-chat-list-panel {
    min-height: 0;
    order: 2;
  }

  .live-chat-list {
    max-height: 118px;
  }

  .ticket-update-controls {
    grid-template-columns: 1fr;
    min-width: 180px;
  }

  .ticket-close-button {
    width: 100%;
  }

  .live-chat-thread .direct-chat-panel {
    height: min(500px, calc(100dvh - 248px));
    min-height: 0;
  }

  body.home-chat-open {
    overflow: auto;
  }

  body.backpanel-chat-focus {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.backpanel-chat-popup-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.backpanel-chat-popup-open .admin-floating-chat.active,
  body.backpanel-chat-popup-open .agent-floating-chat.active {
    bottom: 0;
    left: 0;
    max-height: 100dvh;
    max-width: none;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1200;
  }

  body.backpanel-chat-popup-open .admin-floating-chat.active .direct-chat-panel,
  body.backpanel-chat-popup-open .agent-floating-chat.active .direct-chat-panel {
    border: 0;
    border-radius: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
  }

  body.backpanel-chat-popup-open .admin-floating-chat.active .direct-chat-log,
  body.backpanel-chat-popup-open .agent-floating-chat.active .direct-chat-log {
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  body.home-chat-open .home-chat-popup {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    max-height: min(72dvh, 600px);
    right: 10px;
    top: auto;
    width: auto;
    z-index: 1000;
  }

  body.home-chat-open .home-popup-window {
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 14px;
    height: auto;
    max-height: min(72dvh, 600px);
  }

  body.home-chat-open .home-chat-log {
    height: min(42dvh, 340px);
  }

  body[data-route="support"] {
    overflow: hidden;
  }

  body[data-route="support"] .site-header,
  body[data-route="support"] .holiday-banner,
  body[data-route="support"] .site-footer {
    display: none;
  }

  body[data-route="support"] main,
  body[data-route="support"] #supportPage,
  body[data-route="support"] .support-chat-only {
    margin: 0;
    padding: 0;
  }

  body[data-route="support"] #supportPage .chat-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 8px 10px;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .main-nav {
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav a {
    font-size: 0.7rem;
    min-height: 32px;
    padding: 6px 4px;
  }

  .hero,
  .home-help-strip,
  .content-band,
  .narrow-page,
  .self-help-hero,
  .services-page-hero,
  .learning-hero,
  .workspace,
  .dashboard-layout,
  .payment-page-layout,
  .product-back-office-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    gap: 12px;
    padding-bottom: 16px;
    padding-top: 14px;
  }

  .home-search-card,
  .signal-panel,
  .service-card,
  .plan-card,
  .panel,
  .why-copy,
  .ai-explainer-card,
  .services-page-card,
  .learning-intro-card,
  .learning-player-card,
  .learning-video-body,
  .self-help-hero > div:first-child,
  .self-help-side-panel,
  .self-help-bottom-banner {
    padding: 12px;
  }

  .home-search-card p,
  .hero p,
  .home-help-strip p {
    font-size: 0.82rem;
  }

  .home-issue-search {
    gap: 8px;
    padding: 8px;
  }

  .home-issue-search input {
    min-height: 44px;
    padding: 0 12px;
  }

  .home-chat-log {
    height: min(52dvh, 380px);
  }

  .chat-tool-button:hover::after,
  .chat-tool-button:focus-visible::after {
    left: auto;
    max-width: 190px;
    right: 0;
    transform: none;
    white-space: normal;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    padding: 10px 6px;
  }

  .hero-metrics strong {
    font-size: 1rem;
  }

  .hero-metrics span {
    font-size: 0.66rem;
  }

  .chat-shell {
    height: calc(100dvh - 82px);
  }

  #supportPage .chat-shell {
    height: min(620px, calc(100dvh - 178px));
  }

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

@media (hover: none) {
  .chat-tool-button:hover::after {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-route="support"] {
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body[data-route="support"] main,
  body[data-route="support"] #supportPage,
  body[data-route="support"] .support-chat-only {
    height: 100dvh;
    margin: 0;
    max-width: none;
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  body[data-route="support"] #supportPage .chat-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    width: 100%;
  }

  body[data-route="support"] #supportPage .chat-log {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[data-route="support"] #supportPage .chat-compose {
    background: #ffffff;
    bottom: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 4;
  }

  body[data-route="support"] #supportPage #chatInput {
    font-size: 16px;
    min-width: 0;
    touch-action: manipulation;
  }

  body[data-route="support"] #supportPage #chatSend {
    min-width: 72px;
    white-space: nowrap;
  }

  body[data-route="customer"] .floating-chat-popup.active {
    bottom: 0;
    left: 0;
    max-height: var(--fixgpt-vh, 100dvh);
    max-width: none;
    right: 0;
    width: auto;
  }

  body[data-route="customer"] .floating-chat-popup.active .direct-chat-panel {
    border: 0;
    border-radius: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    height: var(--fixgpt-vh, 100dvh);
    max-height: var(--fixgpt-vh, 100dvh);
    min-height: 0;
    overflow: hidden;
    touch-action: none;
  }

  body[data-route="customer"] .floating-chat-popup.active .direct-chat-log {
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body[data-route="customer"] .floating-chat-popup.active .direct-chat-compose {
    background: #ffffff;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 10;
  }

  body[data-route="customer"] .floating-chat-popup.active [data-direct-chat-draft] {
    background: #ffffff;
    border: 1px solid rgba(7, 140, 153, 0.35);
    font-size: 16px;
    height: 48px;
    min-height: 48px;
    min-width: 0;
    pointer-events: auto;
    resize: none;
    touch-action: manipulation;
    user-select: text;
    -webkit-user-select: text;
  }

  body[data-route="customer"] .customer-support-chat-popup.active {
    bottom: 0;
    left: 0;
    max-height: var(--fixgpt-vh, 100dvh);
    max-width: none;
    right: 0;
    width: auto;
  }

  body[data-route="customer"] .customer-support-chat-panel {
    border: 0;
    border-radius: 0;
    height: var(--fixgpt-vh, 100dvh);
    max-height: var(--fixgpt-vh, 100dvh);
  }

  body[data-route="customer"] .customer-support-chat-log {
    overflow-y: scroll;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  body[data-route="customer"] .customer-support-chat-compose {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 680px) {
  .employee-detail-grid {
    grid-template-columns: 1fr;
  }

  .visitor-summary-strip,
  .visitor-detail-grid {
    grid-template-columns: 1fr;
  }

  .visitor-detail-grid .wide {
    grid-column: auto;
  }

  .employee-compact-sheet table {
    min-width: 620px;
  }

  .visitor-compact-sheet table {
    min-width: 720px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  svg,
  canvas,
  iframe {
    max-width: 100%;
  }

  .site-header {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 8px 10px;
    position: sticky;
    top: 0;
    z-index: 70;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-live {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(8, 100, 150, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(7, 26, 47, 0.14);
    display: none;
    gap: 7px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    margin: 0;
    max-width: 100%;
    overflow: visible;
    padding: 8px;
    scrollbar-width: none;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-menu-open .main-nav {
    display: grid;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    border-radius: 12px;
    flex: initial;
    font-size: 0.82rem;
    justify-content: flex-start;
    min-height: 40px;
    padding: 9px 11px;
    width: 100%;
  }

  .main-nav .mobile-nav-only {
    display: flex;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .header-support-pill,
  .header-login-action {
    display: none;
  }

  main,
  .page,
  .hero,
  .home-help-strip,
  .content-band,
  .narrow-page,
  .workspace,
  .dashboard-layout,
  .registration-layout,
  .text-page,
  .contact-layout,
  .services-page-hero,
  .services-overview-section,
  .services-flow-section,
  .self-help-hero,
  .self-help-answer,
  .learning-hero,
  .learning-library-section,
  .payment-page-layout,
  .product-back-office-shell {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .hero,
  .home-help-strip,
  .content-band,
  .narrow-page,
  .workspace,
  .dashboard-layout,
  .registration-layout,
  .text-page,
  .contact-layout,
  .services-page-hero,
  .services-overview-section,
  .services-flow-section,
  .self-help-hero,
  .self-help-answer,
  .learning-hero,
  .learning-library-section,
  .payment-page-layout,
  .product-back-office-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    padding-bottom: 16px;
    padding-top: 14px;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 18vw, 3.5rem);
    line-height: 0.98;
  }

  .hero-copy p,
  .home-search-card p,
  .home-help-strip p {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .home-search-card {
    border-radius: 14px;
    padding: 12px;
  }

  .home-search-card h2 {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .home-issue-search,
  .home-help-search,
  .self-help-search,
  .learning-search {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .home-issue-search input,
  .home-help-search input,
  .self-help-search input,
  .learning-search input,
  .home-issue-search button,
  .home-help-search button,
  .self-help-search button,
  .learning-search button {
    min-height: 42px;
    width: 100%;
  }

  .hero-actions,
  .services-card-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .services-card-actions button {
    width: 100%;
  }

  .hero-metrics {
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    min-width: 0;
    padding: 9px 5px;
  }

  .hero-metrics strong {
    font-size: 0.98rem;
  }

  .hero-metrics span {
    font-size: 0.62rem;
    line-height: 1.15;
  }

  .service-grid,
  .plan-grid,
  .login-grid,
  .admin-grid,
  .form-grid,
  .detail-grid,
  .about-service-grid,
  .service-explain-grid,
  .coverage-card-grid,
  .experience-grid,
  .process-list,
  .signature-box,
  .picture-grid,
  .graphic-map-grid,
  .product-grid,
  .services-page-grid,
  .services-flow-grid,
  .learning-video-grid,
  .learning-player-card,
  .legal-grid,
  .crm-overview,
  .crm-section-grid,
  .seo-status-hero,
  .seo-rank-summary,
  .seo-advanced-grid,
  .seo-status-grid,
  .customer-profile-strip,
  .footer-inner,
  .crm-tabs-shell,
  .crm-tabs-header,
  .customer-profile-panel,
  .customer-profile-details,
  .admin-profile-header,
  .admin-profile-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .plan-card,
  .panel,
  .why-copy,
  .ai-explainer-card,
  .services-page-card,
  .learning-intro-card,
  .learning-player-card,
  .learning-video-body,
  .self-help-hero > div:first-child,
  .self-help-side-panel,
  .self-help-bottom-banner,
  .crm-card {
    max-width: 100%;
    min-width: 0;
    padding: 12px;
  }

  .policy-safe-notice,
  .why-points article,
  .expert-benefit-grid article,
  .graphic-map-grid article,
  .picture-grid article,
  .service-explain-grid article,
  .coverage-card-grid article,
  .services-flow-grid article,
  .legal-grid article,
  .ai-video-stack article {
    box-sizing: border-box;
    max-width: calc(100vw - 20px);
    min-width: 0;
    overflow-x: hidden;
  }

  .policy-safe-notice {
    align-items: start;
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .policy-safe-notice strong {
    font-size: 0.82rem;
    white-space: normal;
  }

  .policy-safe-notice p,
  .policy-safe-notice p + p {
    font-size: 0.74rem;
    grid-column: auto;
    line-height: 1.34;
  }

  .crm-tabs-shell {
    margin-left: 10px;
    margin-right: 10px;
  }

  .crm-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .crm-tabs::-webkit-scrollbar {
    display: none;
  }

  .crm-tabs button {
    flex: 0 0 auto;
    font-size: 0.78rem;
    min-height: 36px;
    padding: 8px 10px;
    width: auto;
  }

  .table-filter-bar {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .crm-sheet {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .crm-sheet table,
  .compact-sheet table {
    min-width: 760px;
    width: max-content;
  }

  .employee-compact-sheet table {
    min-width: 620px;
  }

  .visitor-compact-sheet table {
    min-width: 720px;
  }

  .ticket-update-controls {
    grid-template-columns: 1fr;
    min-width: 170px;
  }

  .ticket-close-button {
    width: 100%;
  }

  .home-chat-popup {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    max-height: min(78dvh, 620px);
    right: 8px;
    top: auto;
    width: auto;
    z-index: 1000;
  }

  .home-popup-window {
    border-radius: 14px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
    max-height: min(78dvh, 620px);
    overflow: hidden;
  }

  .home-chat-log {
    height: min(43dvh, 360px);
    max-height: none;
    min-height: 0;
    overflow-y: auto;
  }

  .home-chat-compose {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-chat-compose input {
    min-width: 0;
  }

  .home-chat-compose .primary-action {
    min-width: 68px;
    padding-inline: 12px;
  }

  .public-chat-fab {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    min-height: 44px;
    padding: 10px 14px;
    right: 14px;
  }

  .site-footer {
    font-size: 0.76rem;
  }

  .service-orbit {
    height: 112px;
    max-width: calc(100vw - 34px);
    right: 10px;
    top: 94px;
    width: 112px;
  }

  .service-orbit span {
    font-size: 0.6rem;
    height: 34px;
    width: 34px;
  }

  .service-orbit span:nth-child(1),
  .service-orbit span:nth-child(3) {
    left: 39px;
  }

  .service-orbit span:nth-child(2),
  .service-orbit span:nth-child(4) {
    top: 39px;
  }
}

@media (max-width: 390px) {
  .main-nav a {
    font-size: 0.68rem;
    padding: 6px 8px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .home-chat-popup {
    left: 6px;
    right: 6px;
  }
}

/* Advanced theme refresh */
.content-band,
.narrow-page,
.registration-layout,
.text-page,
.contact-layout,
.workspace,
.dashboard-layout,
.admin-grid,
.login-grid,
.services-page-hero,
.services-overview-section,
.services-flow-section {
  position: relative;
}

.content-band::before,
.services-page-hero::before,
.product-store-hero::before,
.page-banner::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(41, 230, 255, 0.14), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(97, 87, 255, 0.1), transparent 24%);
  border-radius: 18px;
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.content-band > *,
.services-page-hero > *,
.product-store-hero > *,
.page-banner > * {
  position: relative;
  z-index: 1;
}

.why-copy,
.ai-explainer-card,
.product-store-card,
.product-toolbar,
.product-card,
.product-featured-card,
.product-checkout-panel,
.service-card,
.plan-card,
.about-card,
.experience-card,
.legal-grid article,
.graphic-map-grid article,
.login-card,
.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 253, 255, 0.93));
  border: 1px solid rgba(41, 230, 255, 0.28);
  box-shadow:
    0 22px 62px rgba(7, 26, 47, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.graphic-map-grid article,
.service-card,
.product-card,
.plan-card {
  overflow: hidden;
  position: relative;
}

.smart-login-shell {
  margin: 18px auto;
  isolation: isolate;
}

.smart-login-shell::before,
.smart-login-shell::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.smart-login-shell::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(41, 230, 255, 0.34), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(52, 211, 153, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0));
  inset: 0;
}

.smart-login-shell::after {
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0.5;
}

.smart-login-head {
  align-items: center !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(41, 230, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(7, 26, 47, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 22px;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  grid-template-columns: 1fr !important;
  justify-items: center;
  overflow: hidden;
  padding: 16px;
  position: relative;
  text-align: center;
}

.smart-login-head::before {
  background:
    linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.smart-login-head > div:first-child {
  display: grid;
  justify-items: center;
}

.smart-login-head > div:nth-child(2) .tw-text-cyan-300 {
  color: #67e8f9 !important;
  font-size: 0.76rem !important;
  font-weight: 1000 !important;
  letter-spacing: 0.24em !important;
  text-shadow: none;
}

.smart-login-head > div:nth-child(2) h2 {
  background: none;
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  font-weight: 1000 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 12px 34px rgba(15, 23, 42, 0.45);
}

.smart-login-head > div:nth-child(2) p:last-child {
  color: #cbd5e1 !important;
  font-size: clamp(0.9rem, 1.2vw, 1rem) !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
  max-width: 780px !important;
}

.smart-login-head > * {
  position: relative;
  z-index: 1;
}

.login-banner-3d {
  height: 92px;
  margin-bottom: 6px;
  position: relative;
  width: min(360px, 100%);
}

.login-3d-core {
  align-items: center;
  animation: loginCoreFloat 4s ease-in-out infinite;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.82), transparent 25%),
    linear-gradient(135deg, #29e6ff, #1769ff 54%, #16b86a);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  box-shadow:
    0 0 0 10px rgba(41, 230, 255, 0.1),
    0 22px 48px rgba(41, 230, 255, 0.22);
  color: white;
  display: flex;
  font-size: 1.15rem;
  font-weight: 1000;
  height: 62px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 15px;
  transform: translateX(-50%) rotateX(10deg) rotateZ(-2deg);
  width: 78px;
}

.login-3d-chip {
  animation: loginChipFloat 4.6s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  color: #dff8ff;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 8px 11px;
  position: absolute;
}

.login-3d-chip.chip-customer {
  left: 18px;
  top: 10px;
}

.login-3d-chip.chip-admin {
  right: 24px;
  top: 20px;
}

.login-3d-chip.chip-chat {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes loginCoreFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes loginChipFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

.smart-login-head > div:first-child p {
  margin-left: auto;
  margin-right: auto;
}

.smart-login-status {
  backdrop-filter: blur(12px);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(5, 150, 105, 0.94), rgba(13, 148, 136, 0.9)) !important;
  border-color: rgba(134, 239, 172, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 32px rgba(5, 150, 105, 0.22);
  color: #ffffff !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  justify-self: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.smart-login-grid {
  gap: 12px;
  padding: 0;
}

.smart-login-card {
  min-height: 100%;
  padding: 14px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.smart-login-card:hover {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow:
    0 24px 70px rgba(8, 47, 73, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-3px);
}

.login-card-top {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.login-card-top .eyebrow {
  font-size: 0.66rem;
  margin: 0 0 2px;
}

.login-card-top h2 {
  color: #071a2f;
  font-size: 1.08rem;
  margin: 0;
}

.login-card-icon {
  align-items: center;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, #0369a1, #2563eb 52%, #10b981);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.3);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 950;
  height: 40px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 40px;
}

.smart-login-card p:not(.eyebrow) {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.42;
  margin-bottom: 10px;
}

.smart-login-card .form-stack {
  gap: 8px;
}

.smart-login-card label {
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 900;
}

.smart-login-card input {
  background: #f8fafc;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  min-height: 40px;
  padding: 9px 11px;
}

.smart-login-card input:focus {
  background: #fff;
  border-color: #0284c7;
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.smart-login-card .primary-action {
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.admin-two-step-panel {
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 14px;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.admin-two-step-panel p {
  color: #075985 !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

/* Complete secure login page refresh */
body[data-route="login"] #loginPage {
  background:
    radial-gradient(circle at 8% 5%, rgba(14, 165, 233, 0.16), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(34, 197, 94, 0.14), transparent 24%),
    linear-gradient(135deg, #f8fbff, #eef7ff 48%, #f5fff9) !important;
}

body[data-route="login"] .smart-login-shell {
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.22), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(34, 197, 94, 0.16), transparent 24%),
    linear-gradient(135deg, #020617, #0f172a 54%, #031b2e) !important;
  border-color: rgba(125, 211, 252, 0.22) !important;
  border-radius: 30px !important;
  box-shadow:
    0 32px 90px rgba(8, 47, 73, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  margin-top: 0;
  padding: clamp(12px, 2vw, 18px) !important;
}

body[data-route="login"] .smart-login-head {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94)) !important;
  border-radius: 24px;
  min-height: 214px;
  padding: 20px 18px;
}

body[data-route="login"] .login-banner-3d {
  height: 104px;
}

body[data-route="login"] .login-3d-core {
  height: 70px;
  width: 88px;
}

body[data-route="login"] .login-3d-chip {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(125, 211, 252, 0.24);
}

.login-access-strip,
.login-security-note {
  position: relative;
  z-index: 1;
}

.login-access-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
}

.login-access-strip span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 16px;
  color: #dbeafe;
  display: grid;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 2px;
  min-height: 54px;
  padding: 10px 12px;
}

.login-access-strip strong {
  color: #ffffff;
  font-size: 0.82rem;
}

body[data-route="login"] .smart-login-grid {
  align-items: stretch;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-route="login"] .smart-login-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 255, 0.95)) !important;
  border-color: rgba(125, 211, 252, 0.32) !important;
  border-radius: 24px !important;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-height: 330px;
  padding: 16px;
}

body[data-route="login"] .smart-login-card:hover {
  border-color: rgba(34, 211, 238, 0.7) !important;
  transform: translateY(-4px);
}

body[data-route="login"] .login-card-icon {
  height: 46px;
  width: 46px;
}

.login-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.login-card-points span {
  background: #e0f2fe;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 999px;
  color: #075985;
  font-size: 0.62rem;
  font-weight: 1000;
  padding: 4px 8px;
  text-transform: uppercase;
}

body[data-route="login"] .smart-login-card .form-stack {
  align-content: end;
}

body[data-route="login"] .smart-login-card input {
  min-height: 42px;
}

body[data-route="login"] .smart-login-card .primary-action {
  background: linear-gradient(135deg, #0284c7, #2563eb 56%, #059669);
  border: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.login-security-note {
  align-items: center;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  color: #cbd5e1;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 12px;
}

.login-security-note strong {
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.login-security-note span {
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

@media (max-width: 980px) {
  .login-access-strip,
  body[data-route="login"] .smart-login-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route="login"] .chat-agent-login-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body[data-route="login"] .smart-login-shell {
    border-radius: 0 !important;
  }

  body[data-route="login"] .smart-login-head {
    min-height: 0;
    padding: 14px;
  }

  .login-access-strip,
  body[data-route="login"] .smart-login-grid {
    grid-template-columns: 1fr;
  }

  body[data-route="login"] .chat-agent-login-card {
    grid-column: auto;
  }

  body[data-route="login"] .smart-login-card {
    min-height: 0;
  }

  .login-security-note {
    align-items: flex-start;
    display: grid;
  }

  .login-security-note span {
    text-align: left;
  }
}

.two-step-setup {
  display: grid;
  gap: 5px;
}

.two-step-setup strong {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 950;
}

.two-step-setup span {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
}

.two-step-setup code {
  background: #0f172a;
  border-radius: 10px;
  color: #7dd3fc;
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  padding: 8px;
}

.graphic-map-grid article::before,
.service-card::before,
.product-card::before,
.plan-card::before {
  background: linear-gradient(90deg, #29e6ff, #6157ff, #10cfa2);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.graphic-map-grid span,
.service-icon {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(135deg, #29e6ff, #00a8c8 52%, #6157ff) !important;
  box-shadow: 0 12px 26px rgba(0, 168, 200, 0.2);
  color: white;
}

.smart-command-visual {
  background:
    radial-gradient(circle at 18% 20%, rgba(41, 230, 255, 0.28), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(97, 87, 255, 0.26), transparent 25%),
    linear-gradient(145deg, #061323, #063b55 54%, #162f80);
}

.command-panel {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(41, 230, 255, 0.22);
}

.product-store-hero,
.services-page-hero,
.page-banner {
  background:
    radial-gradient(circle at 12% 18%, rgba(41, 230, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(97, 87, 255, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 250, 255, 0.92));
  border: 1px solid rgba(41, 230, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 20px 58px rgba(7, 26, 47, 0.1);
}

.site-footer {
  background:
    radial-gradient(circle at 10% 8%, rgba(41, 230, 255, 0.2), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(97, 87, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #071a2f, #063b55 54%, #111b4d);
  border-top: 1px solid rgba(41, 230, 255, 0.22);
}

@media (max-width: 680px) {
  .product-store-hero,
  .services-page-hero,
  .page-banner {
    border-radius: 10px;
  }
}

/* Smart rebuilt back panel */
#adminPage,
#agentPage,
#productAdminPage {
  background:
    radial-gradient(circle at 10% 6%, rgba(41, 230, 255, 0.18), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(97, 87, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #f7fdff, #eff8ff);
  min-height: calc(100vh - 76px);
  padding: 18px;
}

#adminPage .crm-tabs-shell,
#agentPage .crm-tabs-shell,
#productAdminPage .crm-tabs-shell {
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(41, 230, 255, 0.26);
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(7, 26, 47, 0.14);
  display: grid;
  gap: 0;
  grid-template-columns: 238px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1380px;
  overflow: hidden;
  padding: 0;
}

#adminPage .crm-tabs-header,
#agentPage .crm-tabs-header,
#productAdminPage .crm-tabs-header {
  align-content: start;
  background:
    radial-gradient(circle at 18% 6%, rgba(41, 230, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #071a2f, #063b55);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  display: grid;
  gap: 12px;
  grid-column: 1;
  grid-row: 1 / span 20;
  min-height: calc(100vh - 120px);
  padding: 20px 14px;
}

#adminPage .crm-tabs-header .eyebrow,
#agentPage .crm-tabs-header .eyebrow,
#productAdminPage .crm-tabs-header .eyebrow {
  color: #8ff5ff;
}

#adminPage .crm-tabs-header h2,
#agentPage .crm-tabs-header h2,
#productAdminPage .crm-tabs-header h2 {
  color: white;
  font-size: 1.3rem;
}

#adminPage .crm-search,
#agentPage .crm-search {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: white;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}

#adminPage .crm-search::placeholder,
#agentPage .crm-search::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

#adminPage .crm-tabs,
#agentPage .crm-tabs,
#productAdminPage .crm-tabs {
  background: #f8fdff;
  border-bottom: 1px solid rgba(41, 230, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 2;
  padding: 14px;
}

#adminPage .crm-tabs button,
#agentPage .crm-tabs button,
#productAdminPage .crm-tabs button {
  background: white;
  border: 1px solid rgba(41, 230, 255, 0.22);
  border-radius: 999px;
  color: #263a50;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 12px;
}

#adminPage .crm-tabs button.active,
#agentPage .crm-tabs button.active,
#productAdminPage .crm-tabs button.active {
  background: linear-gradient(135deg, #071a2f, #00a8c8 58%, #6157ff);
  box-shadow: 0 12px 26px rgba(0, 168, 200, 0.2);
  color: white;
}

#adminPage .crm-tab-panel,
#agentPage .crm-tab-panel,
#productAdminPage .crm-tab-panel {
  grid-column: 2;
  padding: 16px;
}

.smart-dashboard-hero,
.smart-kpi-card,
.smart-chart-card,
.smart-filter-bar,
.smart-table-wrap,
.employee-detail-panel,
.visitor-detail-panel,
.admin-customer-profile,
.ticket-detail-panel,
.team-chat-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 253, 255, 0.94));
  border: 1px solid rgba(41, 230, 255, 0.24);
  border-radius: 12px;
  box-shadow: 0 18px 54px rgba(7, 26, 47, 0.09);
}

.smart-dashboard-hero {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  margin-bottom: 14px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.smart-dashboard-hero::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(41, 230, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(97, 87, 255, 0.12), transparent 24%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.smart-dashboard-hero > * {
  position: relative;
}

.smart-dashboard-hero h3 {
  color: #071a2f;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  margin-bottom: 8px;
}

.smart-dashboard-hero p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.admin-command-center {
  background:
    radial-gradient(circle at 78% 12%, rgba(97, 87, 255, 0.18), transparent 28%),
    radial-gradient(circle at 12% 90%, rgba(16, 207, 162, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(7, 26, 47, 0.98), rgba(6, 59, 85, 0.96));
  border: 1px solid rgba(143, 245, 255, 0.26);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(7, 26, 47, 0.18);
  color: white;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.95fr) 148px minmax(360px, 1.35fr);
  margin-bottom: 14px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.admin-command-center::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  inset: 0;
  opacity: 0.52;
  pointer-events: none;
  position: absolute;
}

.admin-command-center > * {
  position: relative;
}

.admin-command-copy {
  align-content: center;
  display: grid;
  gap: 10px;
}

.admin-command-copy .eyebrow {
  color: #8ff5ff;
}

.admin-command-copy h3 {
  color: white;
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin: 0;
}

.admin-command-copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
}

.admin-command-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.admin-command-buttons .secondary-action {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(143, 245, 255, 0.28);
  color: white;
}

.admin-command-orb {
  align-self: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(143, 245, 255, 0.95), rgba(41, 230, 255, 0.32) 33%, rgba(97, 87, 255, 0.2) 60%, transparent 72%);
  border: 1px solid rgba(143, 245, 255, 0.38);
  border-radius: 999px;
  box-shadow:
    0 0 38px rgba(41, 230, 255, 0.34),
    inset 0 0 28px rgba(255, 255, 255, 0.22);
  display: grid;
  justify-items: center;
  min-width: 128px;
  padding: 22px 12px;
  place-content: center;
  position: relative;
  text-align: center;
}

.admin-command-orb span {
  animation: adminPulseRing 2.8s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: inherit;
  inset: 14px;
  position: absolute;
}

.admin-command-orb strong {
  color: #071a2f;
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
}

.admin-command-orb small {
  color: rgba(7, 26, 47, 0.72);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

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

.admin-insight-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 12px;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-insight-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(143, 245, 255, 0.42);
  transform: translateY(-2px);
}

.admin-insight-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-insight-card strong {
  color: white;
  font-size: 1.45rem;
  line-height: 1;
}

.admin-insight-card small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-insight-card.good {
  border-color: rgba(52, 211, 153, 0.36);
}

.admin-insight-card.warning {
  border-color: rgba(251, 191, 36, 0.48);
}

.admin-insight-card.danger {
  border-color: rgba(248, 113, 113, 0.5);
}

.admin-insight-card.info {
  border-color: rgba(41, 230, 255, 0.46);
}

@keyframes adminPulseRing {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

.smart-db-status {
  background: linear-gradient(135deg, #071a2f, #063b55);
  border-radius: 12px;
  color: white;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.smart-db-status span,
.smart-db-status small,
.smart-kpi-card span,
.smart-kpi-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-db-status strong {
  color: #8ff5ff;
  font-size: 1.28rem;
}

.smart-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.smart-kpi-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(41, 230, 255, 0.18), transparent 36%),
    linear-gradient(145deg, #071a2f, #063b55);
  color: white;
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 15px;
}

.smart-kpi-card strong {
  color: white;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
}

.smart-kpi-card.revenue {
  background: linear-gradient(145deg, #063b55, #00a8c8);
}

.smart-kpi-card.tickets {
  background: linear-gradient(145deg, #401018, #c2410c);
}

.smart-kpi-card.staff {
  background: linear-gradient(145deg, #123524, #10a37f);
}

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

.smart-chart-card {
  padding: 16px;
}

.smart-chart-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.smart-chart-title span {
  color: #071a2f;
  font-weight: 1000;
}

.smart-chart-title b {
  color: var(--brand);
}

.smart-bars {
  display: grid;
  gap: 10px;
}

.smart-bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(0, 1fr) 28px;
}

.smart-bar-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.smart-bar-row div {
  background: #e8f5fb;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.smart-bar-row i {
  background: linear-gradient(90deg, #29e6ff, #6157ff);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.smart-filter-bar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) repeat(4, auto);
  margin-bottom: 12px;
  padding: 12px;
}

.smart-filter-bar label,
.smart-chip-group {
  display: grid;
  gap: 7px;
}

.smart-filter-bar label span,
.smart-chip-group > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.smart-filter-bar input {
  background: #ffffff;
  border: 1px solid rgba(41, 230, 255, 0.28);
  border-radius: 10px;
  min-height: 40px;
  padding: 9px 11px;
}

.smart-chip-group > div,
.v2-status-buttons,
.v2-tech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.v2-status-control {
  background: #f8fdff;
  border: 1px solid rgba(41, 230, 255, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  min-width: 210px;
  padding: 8px;
}

.v2-status-control.compact-dropdown {
  background: transparent;
  border: 0;
  min-width: 132px;
  padding: 0;
}

.v2-status-control.compact-dropdown label {
  display: grid;
  gap: 4px;
}

.v2-status-control.compact-dropdown span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.v2-status-select {
  background: #ffffff;
  border: 1px solid rgba(41, 230, 255, 0.32);
  border-radius: 8px;
  color: #071a2f;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 8px;
  width: 100%;
}

.v2-status-select.approved {
  border-color: rgba(22, 101, 52, 0.34);
  color: #166534;
}

.v2-status-select.pending {
  border-color: rgba(154, 52, 18, 0.34);
  color: #9a3412;
}

.v2-status-select.refunded,
.v2-status-select.disputed {
  border-color: rgba(153, 27, 27, 0.34);
  color: #991b1b;
}

.v2-status-current {
  align-items: center;
  background: white;
  border: 1px solid #e2edf5;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 8px;
}

.v2-status-current span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.v2-status-current strong {
  color: #071a2f;
  font-size: 0.78rem;
}

.v2-status-current.approved strong {
  color: #166534;
}

.v2-status-current.pending strong {
  color: #9a3412;
}

.v2-status-current.refunded strong,
.v2-status-current.disputed strong {
  color: #991b1b;
}

.v2-status-control .v2-status-buttons {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-chip-group button,
.v2-status-buttons button,
.v2-tech-actions button,
.ticket-choice-button {
  background: #ffffff;
  border: 1px solid rgba(41, 230, 255, 0.24);
  border-radius: 999px;
  color: #24364d;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.v2-status-control .v2-status-buttons button {
  border-radius: 7px;
  font-size: 0.68rem;
  padding: 6px 5px;
  text-align: center;
}

.smart-chip-group button.active,
.v2-status-buttons button.active,
.v2-tech-actions button.active,
.ticket-choice-button.active {
  background: linear-gradient(135deg, #071a2f, #00a8c8);
  color: white;
}

.smart-table-wrap {
  margin-bottom: 12px;
  overflow-x: auto;
}

.smart-table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

.smart-table th,
.smart-table td {
  border-bottom: 1px solid #e2edf5;
  font-size: 0.82rem;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.smart-table th {
  background: #f0fbff;
  color: #071a2f;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.smart-table tr:hover td,
.selected-admin-row td {
  background: #f4fcff;
}

.smart-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 1000;
  padding: 5px 8px;
  text-transform: uppercase;
}

.smart-status.approved,
.smart-status.existing {
  background: #dcfce7;
  color: #166534;
}

.smart-status.pending,
.smart-status.new {
  background: #fff7ed;
  color: #9a3412;
}

.smart-status.blocked {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 1120px) {
  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    grid-template-columns: 1fr;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header,
  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #productAdminPage .crm-tabs,
  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    grid-column: 1;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header {
    min-height: auto;
  }

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

  .admin-command-center {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-command-orb {
    display: none;
  }

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

  .smart-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  #adminPage,
  #agentPage,
  #productAdminPage {
    padding: 8px;
  }

  .smart-dashboard-hero,
  .smart-kpi-grid,
  .smart-chart-grid {
    grid-template-columns: 1fr;
  }

  .admin-command-center {
    border-radius: 12px;
    padding: 14px;
  }

  .admin-insight-grid {
    grid-template-columns: 1fr;
  }

  .admin-command-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .smart-table {
    min-width: 680px;
  }
}

/* Back panel compact right-side menu refresh */
@media (min-width: 1121px) {
  body:has(#adminPage.active),
  body:has(#agentPage.active),
  body:has(#productAdminPage.active) {
    overflow: hidden;
  }

  #adminPage,
  #agentPage,
  #productAdminPage {
    height: calc(100vh - 76px);
    overflow: hidden;
    padding: 10px;
  }

  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    grid-template-columns: 292px minmax(0, 1fr) 132px;
    height: calc(100vh - 96px);
    max-width: none;
    width: 100%;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header {
    grid-column: 1;
    grid-row: 1;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
    padding: 14px;
  }

  #adminPage .crm-tabs-header > *,
  #agentPage .crm-tabs-header > *,
  #productAdminPage .crm-tabs-header > * {
    min-width: 0;
    width: 100%;
  }

  #adminPage .crm-tabs-header .secondary-action,
  #adminPage .crm-tabs-header .ghost-action,
  #agentPage .crm-tabs-header .secondary-action,
  #agentPage .crm-tabs-header .ghost-action,
  #productAdminPage .crm-tabs-header .secondary-action,
  #productAdminPage .crm-tabs-header .ghost-action {
    min-height: 36px;
    padding: 8px 10px;
    width: 100%;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #productAdminPage .crm-tabs {
    align-content: start;
    background:
      radial-gradient(circle at 50% 0%, rgba(41, 230, 255, 0.16), transparent 30%),
      linear-gradient(180deg, #f8fdff, #edf8ff);
    border-bottom: 0;
    border-left: 1px solid rgba(41, 230, 255, 0.2);
    display: grid;
    gap: 8px;
    grid-column: 3;
    grid-row: 1;
    height: 100%;
    overflow: hidden;
    padding: 10px;
  }

  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    border-radius: 10px;
    justify-content: flex-start;
    min-height: 32px;
    padding: 7px 8px;
    text-align: left;
    white-space: normal;
    width: 100%;
    font-size: 0.7rem;
  }

  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
  }

  .smart-dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 190px;
    margin-bottom: 8px;
    padding: 12px;
  }

  .smart-dashboard-hero h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }

  .smart-dashboard-hero p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .smart-db-status {
    padding: 10px;
  }

  .smart-kpi-grid {
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  .smart-kpi-card {
    gap: 4px;
    min-height: 76px;
    padding: 10px;
  }

  .smart-kpi-card span,
  .smart-kpi-card small {
    font-size: 0.64rem;
  }

  .smart-kpi-card strong {
    font-size: 1.05rem;
  }

  .smart-chart-grid {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  .smart-chart-card {
    padding: 10px;
  }

  .smart-chart-title {
    margin-bottom: 8px;
  }

  .smart-bars {
    gap: 6px;
  }

  .smart-bar-row {
    gap: 7px;
    grid-template-columns: 74px minmax(0, 1fr) 22px;
  }

  .smart-bar-row span,
  .smart-bar-row b {
    font-size: 0.68rem;
  }

  .smart-filter-bar {
    gap: 8px;
    grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(78px, auto));
    margin-bottom: 8px;
    padding: 8px;
  }

  .smart-filter-bar input {
    min-height: 34px;
    padding: 7px 9px;
  }

  .smart-chip-group button,
  .v2-status-buttons button,
  .v2-tech-actions button,
  .ticket-choice-button {
    font-size: 0.68rem;
    padding: 5px 7px;
  }

  .v2-status-control {
    min-width: 132px;
    padding: 6px;
  }

  .v2-status-control.compact-dropdown {
    min-width: 118px;
    padding: 0;
  }

  .v2-status-current {
    padding: 5px 6px;
  }

  .v2-status-control .v2-status-buttons {
    gap: 5px;
  }

  .smart-table-wrap {
    margin-bottom: 8px;
    overflow-x: visible;
  }

  .smart-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .smart-table th,
  .smart-table td {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
    padding: 7px;
    word-break: break-word;
  }

  .smart-table th {
    font-size: 0.64rem;
  }

  .employee-detail-panel,
  .visitor-detail-panel,
  .admin-customer-profile,
  .ticket-detail-panel,
  .team-chat-panel {
    margin-top: 8px;
    padding: 10px;
  }

  .admin-profile-grid,
  .employee-detail-grid,
  .visitor-detail-grid {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Admin back-office reliability and visual polish */
#adminPage .crm-tabs-shell {
  background:
    radial-gradient(circle at 92% 4%, rgba(41, 230, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 251, 255, 0.96));
}

#adminPage .crm-tab-panel {
  scrollbar-width: thin;
}

#adminPage .smart-table-wrap,
#adminPage .crm-sheet {
  border: 1px solid rgba(41, 230, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(7, 26, 47, 0.07);
}

#adminPage .smart-table th,
#adminPage .smart-table td,
#adminPage .crm-sheet th,
#adminPage .crm-sheet td {
  color: #0f2742;
}

#adminPage .admin-command-center {
  background:
    radial-gradient(circle at 12% 18%, rgba(41, 230, 255, 0.2), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(97, 87, 255, 0.17), transparent 24%),
    linear-gradient(135deg, #071a2f, #083b61 52%, #0a6b6d);
  box-shadow: 0 22px 60px rgba(7, 26, 47, 0.18);
}

#adminPage .admin-command-copy p,
#adminPage .admin-command-copy h3,
#adminPage .admin-command-copy .eyebrow {
  color: #ffffff;
}

#adminPage .admin-command-copy p {
  color: rgba(255, 255, 255, 0.78);
}

#adminPage .admin-insight-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.42);
}

.backoffice-agent-fab {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, #071a2f, #1769ff 55%, #10a37f);
  box-shadow: 0 18px 48px rgba(23, 105, 255, 0.32);
}

.backoffice-agent-panel {
  background:
    radial-gradient(circle at 88% 0%, rgba(41, 230, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff, #f3fbff);
  border-color: rgba(41, 230, 255, 0.24);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(7, 26, 47, 0.22);
}

.backoffice-agent-log {
  background:
    radial-gradient(circle at 8% 0%, rgba(41, 230, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fdff, #eef8ff);
}

.backoffice-agent-message {
  border-radius: 14px;
  font-size: 0.82rem;
  white-space: pre-line;
}

.backoffice-agent-message.agent {
  background: #eaf6ff;
  border-color: rgba(23, 105, 255, 0.18);
  color: #0f2742;
}

.backoffice-agent-message.user {
  background: #071a2f;
  border-color: rgba(41, 230, 255, 0.35);
  color: #ffffff;
}

.backoffice-agent-compose input {
  background: #ffffff;
  border: 1px solid rgba(41, 230, 255, 0.28);
  border-radius: 12px;
  color: #071a2f;
  min-height: 42px;
  padding: 10px 12px;
}

@media (min-width: 1121px) {
  #adminPage .crm-tabs {
    overflow-y: auto;
    scrollbar-width: thin;
  }

  #adminPage .crm-tab-panel {
    background: linear-gradient(180deg, rgba(248, 253, 255, 0.92), rgba(255, 255, 255, 0.98));
  }

  #adminPage .smart-table-wrap {
    overflow-x: hidden;
  }
}

@media (max-width: 680px) {
  .backoffice-agent-fab {
    bottom: 86px;
    font-size: 0.78rem;
    min-height: 44px;
    right: 12px;
  }

  .backoffice-agent-panel {
    bottom: 136px;
    max-height: min(560px, calc(100vh - 150px));
    right: 10px;
    width: calc(100vw - 20px);
  }
}

@media print {
  body.print-invoice-only * {
    visibility: hidden !important;
  }

  body.print-invoice-only #productDocumentPreview,
  body.print-invoice-only #productDocumentPreview *,
  body.print-invoice-only #invoicePreview,
  body.print-invoice-only #invoicePreview * {
    visibility: visible !important;
  }

  body.print-invoice-only #productDocumentPreview,
  body.print-invoice-only #invoicePreview {
    background: #ffffff !important;
    left: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
  }

  body.print-invoice-only .invoice-document {
    border: 0 !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-size: 11px !important;
    margin: 0 !important;
    padding: 12mm !important;
    width: 100% !important;
  }

  body.print-invoice-only .modal-backdrop,
  body.print-invoice-only .modal-panel,
  body.print-invoice-only .product-document-modal-body {
    background: transparent !important;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
  }

  body.print-invoice-only .modal-header,
  body.print-invoice-only .toast,
  body.print-invoice-only .floating-chat-popup,
  body.print-invoice-only .floating-chat-button {
    display: none !important;
  }

  body.print-invoice-only table,
  body.print-invoice-only tr,
  body.print-invoice-only td,
  body.print-invoice-only th {
    break-inside: avoid;
  }
}

@media (max-width: 1120px) {
  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #productAdminPage .crm-tabs {
    justify-content: flex-start;
    overflow-x: visible;
  }

  .smart-table-wrap {
    overflow-x: visible;
  }

  .smart-table {
    min-width: 0;
    table-layout: fixed;
  }

  .smart-table th,
  .smart-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Back panel organized left-side tabs */
@media (min-width: 1121px) {
  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    grid-template-columns: 168px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #productAdminPage .crm-tabs {
    align-content: start;
    background:
      radial-gradient(circle at 50% 0%, rgba(41, 230, 255, 0.16), transparent 30%),
      linear-gradient(180deg, #071a2f, #063b55);
    border-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 7px;
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 100%;
    overflow: hidden;
    padding: 10px;
  }

  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.7rem;
    justify-content: flex-start;
    min-height: 31px;
    padding: 7px 8px;
    text-align: left;
    white-space: normal;
    width: 100%;
  }

  #adminPage .crm-tabs button.active,
  #agentPage .crm-tabs button.active,
  #productAdminPage .crm-tabs button.active {
    background: linear-gradient(135deg, #29e6ff, #00a8c8 56%, #6157ff);
    color: white;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header {
    align-items: center;
    background:
      radial-gradient(circle at 0% 0%, rgba(41, 230, 255, 0.14), transparent 28%),
      linear-gradient(135deg, #ffffff, #effbff);
    border-bottom: 1px solid rgba(41, 230, 255, 0.18);
    border-right: 0;
    color: var(--ink);
    display: grid;
    gap: 10px;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1fr) auto auto;
    min-height: 0;
    overflow: visible;
    padding: 10px 12px;
  }

  #adminPage .crm-tabs-header .eyebrow,
  #agentPage .crm-tabs-header .eyebrow,
  #productAdminPage .crm-tabs-header .eyebrow {
    color: var(--brand-dark);
    margin-bottom: 2px;
  }

  #adminPage .crm-tabs-header h2,
  #agentPage .crm-tabs-header h2,
  #productAdminPage .crm-tabs-header h2 {
    color: var(--ink);
    font-size: 1.05rem;
    margin: 0;
  }

  #adminPage .crm-tabs-header > *,
  #agentPage .crm-tabs-header > *,
  #productAdminPage .crm-tabs-header > * {
    width: auto;
  }

  #adminPage .crm-search,
  #agentPage .crm-search {
    background: white;
    border: 1px solid rgba(41, 230, 255, 0.28);
    color: var(--ink);
    min-height: 36px;
  }

  #adminPage .crm-search::placeholder,
  #agentPage .crm-search::placeholder {
    color: var(--muted);
  }

  #adminPage .crm-tabs-header .secondary-action,
  #adminPage .crm-tabs-header .ghost-action,
  #agentPage .crm-tabs-header .secondary-action,
  #agentPage .crm-tabs-header .ghost-action,
  #productAdminPage .crm-tabs-header .secondary-action,
  #productAdminPage .crm-tabs-header .ghost-action {
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
    width: auto;
  }

  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    grid-column: 2;
    grid-row: 2;
    height: 100%;
    overflow-y: auto;
    padding: 10px;
  }
}

/* Back panel final scroll and status-initial controls */
.v2-status-control.status-initials {
  background: transparent;
  border: 0;
  display: inline-grid;
  gap: 4px;
  grid-template-columns: repeat(4, 24px);
  min-width: 0;
  padding: 0;
}

.status-initial {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(41, 230, 255, 0.3);
  border-radius: 7px;
  color: #263a50;
  cursor: pointer;
  display: inline-grid;
  font-size: 0.72rem;
  font-weight: 1000;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 24px;
}

.status-initial.active {
  background: linear-gradient(135deg, #071a2f, #00a8c8);
  color: #ffffff;
}

.status-initial.approved.active {
  background: #16a34a;
}

.status-initial.pending.active {
  background: #d97706;
}

.status-initial.refunded.active,
.status-initial.disputed.active {
  background: #dc2626;
}

.monthly-report-panel {
  display: grid;
  gap: 12px;
}

.report-dashboard-hero {
  margin-bottom: 0;
}

.monthly-report-panel .smart-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monthly-report-panel .smart-table td:last-child strong {
  color: #166534;
  font-size: 0.9rem;
}

/* Compact footer layout */
.site-footer {
  margin-top: 18px;
  padding: 12px clamp(12px, 2vw, 20px) 10px;
}

.footer-inner {
  align-items: center;
  gap: 10px 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(310px, 0.95fr) minmax(260px, 0.75fr);
  max-width: 1240px;
}

.footer-brand {
  margin-bottom: 4px;
}

.footer-brand .brand-mark {
  height: 30px;
  width: 30px;
}

.site-footer p {
  font-size: 0.76rem;
  line-height: 1.25;
  margin: 3px 0 5px;
}

.site-footer strong {
  font-size: 0.82rem;
}

.footer-brand small,
.footer-contact span {
  font-size: 0.72rem;
  line-height: 1.25;
}

.footer-contact {
  gap: 2px;
  margin-top: 4px;
}

.footer-links.stacked {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.footer-links a {
  font-size: 0.72rem;
  min-height: 28px;
  padding: 5px 7px;
  text-align: center;
}

.footer-payment-block strong {
  margin-bottom: 4px;
}

.accepted-payments {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, 58px);
  justify-content: start;
}

.payment-card {
  height: 32px;
  width: 58px;
}

.payment-card em {
  font-size: 0.48rem;
  left: 7px;
  top: 19px;
}

.payment-card::before {
  height: 5px;
  left: 7px;
  right: 7px;
  top: 7px;
}

.payment-card::after {
  bottom: 7px;
  height: 4px;
  left: 7px;
  width: 24px;
}

.footer-disclaimer {
  font-size: 0.68rem;
  line-height: 1.25;
  margin-top: 8px;
  max-width: 1240px;
  padding-top: 7px;
}

.footer-smart-hero {
  align-items: center;
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  margin-top: clamp(18px, 3vw, 34px);
  padding: clamp(20px, 4vw, 44px);
  position: relative;
}

.footer-smart-hero::before {
  background:
    linear-gradient(90deg, rgba(23, 105, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 184, 106, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
}

.footer-smart-copy,
.footer-smart-orb {
  position: relative;
  z-index: 1;
}

.footer-smart-orb {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(145deg, #071a2f, #1769ff 52%, #16b86a);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(23, 105, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: grid;
  justify-items: center;
  max-width: 180px;
  min-height: 142px;
  padding: 18px;
}

.footer-smart-orb span {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 1000;
  line-height: 1;
}

.footer-smart-orb small {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 900;
  text-transform: uppercase;
}

.smart-explainer-row {
  margin-top: 16px;
}

.smart-explainer-row span {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 105, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(7, 26, 47, 0.08);
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 12px;
}

.smart-explainer-row b {
  color: #0b3f91;
  font-size: 0.92rem;
  font-weight: 1000;
}

.smart-explainer-row small {
  color: #496175;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.footer-smart-page {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 255, 0.94)),
    radial-gradient(circle at 90% 8%, rgba(22, 184, 106, 0.14), transparent 28%);
}

.footer-smart-page .legal-grid article,
.footer-smart-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 255, 0.95));
  border: 1px solid rgba(23, 105, 255, 0.14);
  box-shadow: 0 12px 30px rgba(7, 26, 47, 0.08);
}

.footer-smart-page .legal-grid article h3 {
  color: #0b3f91;
}

.bottom-page-shell {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 36px) 16px;
}

.bottom-page-head {
  background:
    radial-gradient(circle at top right, rgba(32, 217, 255, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96));
  border: 1px solid rgba(23, 105, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(7, 26, 47, 0.09);
  padding: clamp(18px, 3vw, 28px);
}

.bottom-page-head h2 {
  color: #071a2f;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  margin: 4px 0 8px;
}

.bottom-page-head p:last-child {
  color: #53687b;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 860px;
}

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

.bottom-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bottom-card-grid article,
.bottom-form-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 105, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(7, 26, 47, 0.07);
  padding: 16px;
}

.bottom-card-grid b {
  color: #0b3f91;
  display: block;
  font-size: 0.94rem;
  margin-bottom: 5px;
}

.bottom-card-grid span {
  color: #52677c;
  display: block;
  font-size: 0.8rem;
  line-height: 1.42;
}

.policy-strength-panel {
  background:
    radial-gradient(circle at 8% 12%, rgba(22, 184, 106, 0.18), transparent 32%),
    radial-gradient(circle at 96% 16%, rgba(23, 105, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #071a2f, #082f49);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(7, 26, 47, 0.16);
  color: white;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  padding: clamp(18px, 3vw, 26px);
}

.policy-strength-panel h3 {
  color: white;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  margin: 4px 0 8px;
}

.policy-strength-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
}

.policy-strength-panel ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-strength-panel li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 10px 12px;
}

.bottom-form-card {
  max-width: 680px;
}

.bottom-form-card textarea {
  min-height: 92px;
}

.contact-action-layout {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.contact-action-layout .bottom-form-card {
  max-width: none;
}

.contact-help-panel {
  background:
    radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.2), transparent 32%),
    linear-gradient(135deg, #071a2f, #0b3f91 58%, #0f766e);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(7, 26, 47, 0.18);
  color: white;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.contact-help-panel::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}

.contact-help-panel > * {
  position: relative;
  z-index: 1;
}

.contact-help-orb {
  align-items: center;
  background:
    radial-gradient(circle at 28% 22%, #fff, rgba(255, 255, 255, 0.18) 32%),
    linear-gradient(135deg, #29e6ff, #1769ff 52%, #16b86a);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(41, 230, 255, 0.24);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  height: 48px;
  justify-content: center;
  margin-bottom: 14px;
  width: 48px;
}

.contact-help-panel h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.contact-help-panel ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-help-panel li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #eaf6ff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 10px 11px;
}

.contact-flow-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-flow-strip span {
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96));
  border: 1px solid rgba(23, 105, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(7, 26, 47, 0.06);
  color: #0f2746;
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
}

.contact-flow-strip b {
  align-items: center;
  background: linear-gradient(135deg, #1769ff, #16b86a);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .expert-header-action {
    border-radius: 12px;
    gap: 0;
    padding: 7px;
  }

  .expert-header-action strong {
    display: none;
  }

  .expert-header-action span {
    height: 32px;
    width: 32px;
  }

  .footer-smart-hero {
    grid-template-columns: 1fr;
    margin-top: 14px;
    padding: 18px;
  }

  .bottom-card-grid,
  .bottom-card-grid.three {
    grid-template-columns: 1fr;
  }

  .contact-action-layout,
  .contact-flow-strip {
    grid-template-columns: 1fr;
  }

  .bottom-page-shell {
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-smart-orb {
    aspect-ratio: auto;
    border-radius: 18px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    max-width: none;
    min-height: 72px;
    width: 100%;
  }

  .smart-explainer-row span {
    min-height: 58px;
  }

  .expert-info-board,
  .expert-faq-strip {
    grid-template-columns: 1fr;
  }

  .expert-compact-hero,
  .expert-quick-grid,
  .expert-compact-flow {
    grid-template-columns: 1fr;
  }

  .expert-compact-hero .primary-action {
    width: 100%;
  }

  .expert-quick-grid article {
    min-height: 0;
  }

  .expert-category-pills span {
    font-size: 0.7rem;
  }

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

  .accepted-payments {
    grid-template-columns: repeat(3, 58px);
  }
}

@media (min-width: 1121px) {
  body:has(#adminPage.active),
  body:has(#agentPage.active),
  body:has(#productAdminPage.active) {
    overflow-y: auto;
  }

  #adminPage,
  #agentPage,
  #productAdminPage {
    height: auto;
    min-height: calc(100vh - 76px);
    overflow: visible;
  }

  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    height: auto;
    min-height: calc(100vh - 96px);
  }

  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
}

/* Tailwind homepage trial: scoped and prefixed to avoid Bootstrap/backpanel conflicts */
.tailwind-home-hero {
  display: block;
  min-height: clamp(540px, calc(100vh - 150px), 720px);
  padding: clamp(32px, 5vw, 72px) 0;
}

.tailwind-home-hero::before {
  opacity: 0.42;
}

.tailwind-home-hero .primary-action {
  background: linear-gradient(135deg, #071a2f, #00a8c8 58%, #6157ff);
  border: 0;
  color: #ffffff;
}

.tailwind-home-hero .secondary-action {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.tailwind-hero-copy .eyebrow {
  color: #b8fff0;
}

.tailwind-search-box {
  border: 2px solid rgba(23, 105, 255, 0.34);
}

.tailwind-home-search {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tailwind-home-search input:focus {
  border-color: #29e6ff;
  box-shadow: 0 0 0 4px rgba(41, 230, 255, 0.18);
}

.tailwind-metric-grid {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .tailwind-home-hero {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .tailwind-home-search {
    grid-template-columns: 1fr;
  }

  .tailwind-home-search .primary-action {
    width: 100%;
  }
}

/* Better Tailwind banner polish */
.tailwind-home-hero {
  background:
    radial-gradient(circle at 12% 15%, rgba(41, 230, 255, 0.34), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(97, 87, 255, 0.32), transparent 27%),
    radial-gradient(circle at 72% 86%, rgba(16, 207, 162, 0.22), transparent 30%),
    linear-gradient(135deg, #04111f 0%, #071a2f 45%, #0b1020 100%) !important;
}

.tailwind-home-hero::after {
  background:
    linear-gradient(90deg, transparent, rgba(41, 230, 255, 0.28), rgba(16, 207, 162, 0.2), transparent),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 100% 1px, 44px 44px, 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
}

.hero-gradient-word {
  background: linear-gradient(90deg, #29e6ff, #ffffff 36%, #10cfa2 68%, #b9b5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.tailwind-hero-copy {
  position: relative;
}

.tailwind-hero-copy::before {
  background: linear-gradient(180deg, rgba(41, 230, 255, 0.28), rgba(16, 207, 162, 0));
  border-radius: 999px;
  content: "";
  height: 140px;
  left: -34px;
  position: absolute;
  top: -26px;
  width: 6px;
}

.tailwind-hero-panel {
  position: relative;
}

.tailwind-hero-panel::before {
  background: rgba(41, 230, 255, 0.2);
  border-radius: 999px;
  content: "";
  filter: blur(48px);
  inset: 18px;
  position: absolute;
}

.tailwind-search-box,
.tailwind-metric-grid,
.tailwind-service-orbit {
  position: relative;
  z-index: 2;
}

.tailwind-search-box {
  background:
    radial-gradient(circle at 16% 0%, rgba(41, 230, 255, 0.2), transparent 34%),
    radial-gradient(circle at 96% 8%, rgba(97, 87, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 255, 0.94)) !important;
  border: 1px solid rgba(41, 230, 255, 0.46) !important;
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.32),
    0 0 0 8px rgba(41, 230, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.tailwind-metric-grid div {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(41, 230, 255, 0.24) !important;
}

.tailwind-service-orbit {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.tailwind-service-orbit span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 12px 8px;
  text-align: center;
}

@media (max-width: 980px) {
  .tailwind-hero-copy::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .tailwind-service-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Center the Tailwind homepage banner */
.tailwind-home-hero .tw-grid {
  grid-template-columns: minmax(0, 980px) !important;
  justify-content: center;
  text-align: center;
}

.tailwind-home-hero .tailwind-hero-copy,
.tailwind-home-hero .tailwind-search-box,
.tailwind-home-hero .tailwind-hero-panel {
  margin-left: auto !important;
  margin-right: auto !important;
}

.tailwind-home-hero .hero-actions,
.tailwind-home-hero .tailwind-trust-tags {
  justify-content: center !important;
}

.tailwind-home-hero .tailwind-hero-copy p {
  margin-left: auto !important;
  margin-right: auto !important;
}

.tailwind-home-hero .tailwind-hero-copy::before {
  display: none;
}

/* Admin time-zone watch */
.admin-timezone-board {
  display: grid;
  gap: 16px;
}

.timezone-board-head {
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(41, 230, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #06152d 0%, #0d2d57 48%, #0b4b48 100%);
  border: 1px solid rgba(41, 230, 255, 0.2);
  border-radius: 18px;
  color: #ffffff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.timezone-board-head::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: 0.45;
  position: absolute;
}

.timezone-board-head > * {
  position: relative;
  z-index: 1;
}

.timezone-board-head .eyebrow,
.timezone-board-head h3,
.timezone-board-head p {
  color: #ffffff;
  margin: 0;
}

.timezone-board-head h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 1000;
}

.timezone-board-head p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  margin-top: 4px;
  max-width: 620px;
}

.timezone-live-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 900;
  gap: 8px;
  padding: 10px 14px;
}

.timezone-live-pill span {
  animation: timezonePulse 1.4s ease-in-out infinite;
  background: #40e467;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(64, 228, 103, 0.7);
  height: 9px;
  width: 9px;
}

.timezone-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timezone-card {
  background: #ffffff;
  border: 1px solid rgba(9, 29, 62, 0.1);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(9, 29, 62, 0.08);
  color: #071a2f;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.timezone-card::before {
  content: "";
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

.timezone-card.blue::before {
  background: linear-gradient(90deg, #1479ff, #29e6ff);
}

.timezone-card.green::before {
  background: linear-gradient(90deg, #16a34a, #40e467);
}

.timezone-card.red::before {
  background: linear-gradient(90deg, #dc2626, #ff6b6b);
}

.timezone-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.timezone-card-top span,
.timezone-card small {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 850;
}

.timezone-card-top strong {
  background: #eef6ff;
  border-radius: 999px;
  color: #075baf;
  font-size: 0.72rem;
  padding: 5px 8px;
}

.timezone-card h4 {
  font-size: 0.95rem;
  font-weight: 1000;
  margin: 0 0 5px;
}

.timezone-card time {
  color: #071a2f;
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 6px;
}

.timezone-card p {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 760;
  margin: 0 0 4px;
}

@keyframes timezonePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
}

@media (max-width: 1180px) {
  .timezone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .timezone-board-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

/* Final mobile polish: compact icon menu and stable live chat popup */
@media (max-width: 760px) {
  .smart-login-shell {
    border-radius: 0;
    margin: 0;
    padding: 12px 10px 16px;
  }

  .smart-login-head {
    margin-bottom: 10px;
  }

  .smart-login-status {
    justify-self: center;
    padding: 9px 12px;
  }

  .smart-login-grid {
    grid-template-columns: 1fr;
  }

  .smart-login-card {
    border-radius: 18px;
    padding: 12px;
  }

  .login-card-icon {
    border-radius: 12px;
    height: 36px;
    width: 36px;
  }

  .login-card-top h2 {
    font-size: 1rem;
  }

  .smart-login-card p:not(.eyebrow) {
    display: none;
  }

  .mobile-menu-toggle {
    gap: 3px;
    min-height: 42px;
    width: 44px;
  }

  .mobile-menu-toggle span {
    height: 2px;
    width: 18px;
  }

  .home-chat-popup {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px !important;
    max-height: calc(100dvh - 92px) !important;
    right: 10px !important;
    top: auto !important;
    width: auto !important;
  }

  .home-popup-window {
    border-radius: 14px !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(150px, 1fr) auto auto auto auto !important;
    height: min(560px, calc(100dvh - 116px)) !important;
    max-height: calc(100dvh - 96px) !important;
    overflow: hidden !important;
  }

  .home-chat-log {
    height: auto !important;
    max-height: none !important;
    min-height: 150px !important;
    overflow-y: auto !important;
  }

  .expert-chat-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .expert-chat-strip em {
    display: none;
  }

  .home-chat-compose {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .home-chat-compose input {
    min-width: 0 !important;
  }
}

/* Admin panel final visual lock: this block intentionally stays last. */
#adminPage {
  --admin-navy: #071a2f;
  --admin-navy-2: #0b2f4f;
  --admin-blue: #1769ff;
  --admin-green: #10a37f;
  --admin-ink: #09213a;
  --admin-muted: #58708b;
  --admin-line: #d7e8f4;
  background: linear-gradient(135deg, #eef8ff 0%, #ffffff 46%, #f3fff9 100%) !important;
  color: var(--admin-ink) !important;
}

#adminPage .crm-tabs-shell {
  background: #ffffff !important;
  border: 1px solid var(--admin-line) !important;
  box-shadow: 0 22px 70px rgba(7, 26, 47, 0.12) !important;
}

#adminPage .crm-tabs {
  background:
    radial-gradient(circle at 30% 0%, rgba(32, 217, 255, 0.18), transparent 32%),
    linear-gradient(180deg, var(--admin-navy), var(--admin-navy-2)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

#adminPage .crm-tabs button {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #eaf6ff !important;
}

#adminPage .crm-tabs button:hover,
#adminPage .crm-tabs button.active {
  background: linear-gradient(135deg, var(--admin-blue), var(--admin-green)) !important;
  color: #ffffff !important;
}

#adminPage .crm-tabs-header,
#adminPage .crm-tab-panel,
#adminPage .smart-dashboard-hero,
#adminPage .smart-kpi-card,
#adminPage .smart-chart-card,
#adminPage .smart-filter-bar,
#adminPage .smart-table-wrap,
#adminPage .crm-sheet,
#adminPage .seo-status-panel,
#adminPage .seo-advanced-card,
#adminPage .monthly-report-panel,
#adminPage .timezone-card {
  background: #ffffff !important;
  border-color: var(--admin-line) !important;
  color: var(--admin-ink) !important;
}

#adminPage h1,
#adminPage h2,
#adminPage h3,
#adminPage h4,
#adminPage strong,
#adminPage .smart-chart-title span,
#adminPage .smart-kpi-card strong,
#adminPage .seo-rank-summary strong,
#adminPage .timezone-card time {
  color: var(--admin-ink) !important;
}

#adminPage p,
#adminPage small,
#adminPage .eyebrow,
#adminPage .smart-kpi-card span,
#adminPage .smart-kpi-card small,
#adminPage .smart-filter-bar label span,
#adminPage .smart-chip-group > span,
#adminPage .timezone-card p,
#adminPage .timezone-card small {
  color: var(--admin-muted) !important;
}

#adminPage .crm-tabs-header .eyebrow,
#adminPage .smart-dashboard-hero .eyebrow,
#adminPage .seo-status-hero .eyebrow {
  color: var(--admin-blue) !important;
}

#adminPage input,
#adminPage select,
#adminPage textarea,
#adminPage .crm-search {
  background: #ffffff !important;
  border-color: #b8d9ee !important;
  color: var(--admin-ink) !important;
}

#adminPage .smart-table,
#adminPage .crm-sheet table {
  background: #ffffff !important;
  color: var(--admin-ink) !important;
}

#adminPage .smart-table th,
#adminPage .crm-sheet th {
  background: #eaf6ff !important;
  color: #09213a !important;
}

#adminPage .smart-table td,
#adminPage .crm-sheet td {
  background: #ffffff !important;
  border-color: #dcebf5 !important;
  color: #18324d !important;
}

#adminPage .smart-table tr:hover td,
#adminPage .crm-sheet tr:hover td,
#adminPage .selected-admin-row td {
  background: #f0fbff !important;
}

#adminPage .admin-command-center {
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 217, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--admin-navy), #0d3f65 58%, #075f66) !important;
  color: #ffffff !important;
}

#adminPage .admin-command-copy h3,
#adminPage .admin-command-copy .eyebrow {
  color: #ffffff !important;
}

#adminPage .admin-command-copy p {
  color: #d9f4ff !important;
}

#adminPage .admin-insight-card {
  background: #ffffff !important;
  border-color: rgba(184, 217, 238, 0.9) !important;
  color: var(--admin-ink) !important;
}

#adminPage .primary-action {
  background: linear-gradient(135deg, var(--admin-blue), #0ca5d8) !important;
  border-color: rgba(23, 105, 255, 0.35) !important;
  color: #ffffff !important;
}

#adminPage .secondary-action,
#adminPage .ghost-action,
#adminPage .compact-action,
#adminPage .smart-chip-group button,
#adminPage .v2-status-buttons button,
#adminPage .ticket-choice-button,
#adminPage .status-initial {
  background: #ffffff !important;
  border-color: #b8d9ee !important;
  color: #0b4da2 !important;
}

#adminPage .smart-chip-group button.active,
#adminPage .v2-status-buttons button.active,
#adminPage .ticket-choice-button.active,
#adminPage .status-initial.active {
  background: linear-gradient(135deg, var(--admin-blue), var(--admin-green)) !important;
  color: #ffffff !important;
}

#adminPage .tag.approved,
#adminPage .smart-status.approved,
#adminPage .smart-status.existing {
  background: #dcfce7 !important;
  color: #14532d !important;
}

#adminPage .tag.pending,
#adminPage .smart-status.pending,
#adminPage .smart-status.new {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

#adminPage .tag.blocked,
#adminPage .smart-status.blocked,
#adminPage .status-initial.refunded,
#adminPage .status-initial.disputed {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

#adminPage .status-initial.refunded.active,
#adminPage .status-initial.disputed.active {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  color: #ffffff !important;
}

#adminPage .priority-pill.urgent {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

#adminPage .priority-pill.high {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

#adminPage .priority-pill.normal {
  background: #e0f2fe !important;
  color: #075985 !important;
}

#adminPage .smart-db-status,
#adminPage .seo-score-card,
#adminPage .timezone-board-head {
  background: linear-gradient(135deg, #09213a, #0b4f73) !important;
  color: #ffffff !important;
}

#adminPage .smart-db-status *,
#adminPage .seo-score-card *,
#adminPage .timezone-board-head * {
  color: #d9f4ff !important;
}

.two-step-admin-panel {
  display: grid;
  gap: 14px;
}

.two-step-admin-head {
  align-items: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 217, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #f0fbff);
  border: 1px solid #d7e8f4;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.two-step-admin-head h3 {
  color: #09213a;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 1000;
  margin: 0 0 4px;
}

.two-step-admin-head p:not(.eyebrow) {
  color: #58708b;
  margin: 0;
  max-width: 760px;
}

.merchant-api-grid {
  display: grid;
  gap: 14px;
}

.merchant-api-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
}

.merchant-api-card-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.merchant-api-card-head h4 {
  margin: 0 0 6px;
}

.merchant-api-fields {
  margin-bottom: 10px;
}

.merchant-api-connect-row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 4px 0 6px;
}

.merchant-api-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.merchant-api-status {
  color: #58708b;
  font-size: 0.86rem;
}

.two-step-state {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 1000;
  padding: 10px 16px;
}

.two-step-state.on {
  background: #dcfce7;
  color: #14532d;
}

.two-step-state.off {
  background: #fff7ed;
  color: #9a3412;
}

.two-step-admin-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 260px minmax(0, 1fr) minmax(240px, 0.75fr);
}

.two-step-qr-card,
.two-step-setup-card,
.two-step-help-card {
  background: #ffffff;
  border: 1px solid #d7e8f4;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(7, 26, 47, 0.08);
  padding: 16px;
}

.two-step-qr-card {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 260px;
}

.two-step-qr-card img {
  background: #ffffff;
  border: 1px solid #d7e8f4;
  border-radius: 16px;
  height: 220px;
  padding: 10px;
  width: 220px;
}

.two-step-lock-visual {
  align-items: center;
  background:
    radial-gradient(circle at 30% 10%, rgba(32, 217, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #071a2f, #0b4f73);
  border-radius: 22px;
  color: #ffffff;
  display: grid;
  height: 210px;
  justify-items: center;
  place-content: center;
  width: 210px;
}

.two-step-lock-visual strong {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 1000;
}

.two-step-lock-visual span {
  color: #d9f4ff;
  font-weight: 900;
}

.two-step-setup-card {
  display: grid;
  gap: 12px;
}

.two-step-setup-card h4,
.two-step-help-card strong {
  color: #09213a;
  font-size: 1.08rem;
  font-weight: 1000;
  margin: 0;
}

.two-step-setup-card p,
.two-step-help-card li {
  color: #58708b;
}

.two-step-secret-row {
  background: #f4fbff;
  border: 1px solid #d7e8f4;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.two-step-secret-row span {
  color: #58708b;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.two-step-secret-row code {
  color: #09213a;
  font-size: 0.92rem;
  font-weight: 1000;
  white-space: normal;
  word-break: break-all;
}

.two-step-enable-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.two-step-enable-form label {
  color: #09213a;
  display: grid;
  font-weight: 900;
  gap: 6px;
}

.two-step-help-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .two-step-admin-grid {
    grid-template-columns: 1fr;
  }

  .two-step-enable-form {
    grid-template-columns: 1fr;
  }
}

/* Full-screen back panels and simplified login experience. */
body[data-route="admin"] .site-header,
body[data-route="agent"] .site-header,
body[data-route="customer"] .site-header,
body[data-route="products-admin"] .site-header,
body[data-route="admin"] .site-footer,
body[data-route="agent"] .site-footer,
body[data-route="customer"] .site-footer,
body[data-route="products-admin"] .site-footer,
body[data-route="admin"] .holiday-banner,
body[data-route="agent"] .holiday-banner,
body[data-route="customer"] .holiday-banner,
body[data-route="products-admin"] .holiday-banner {
  display: none !important;
}

body[data-route="admin"],
body[data-route="agent"],
body[data-route="customer"],
body[data-route="products-admin"] {
  background: #eef8ff !important;
  overflow: hidden !important;
}

body[data-route="admin"] main,
body[data-route="agent"] main,
body[data-route="customer"] main,
body[data-route="products-admin"] main {
  min-height: 100vh !important;
}

body[data-route="admin"] #adminPage,
body[data-route="agent"] #agentPage,
body[data-route="customer"] #customerPage,
body[data-route="products-admin"] #productAdminPage {
  height: 100vh !important;
  max-width: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100% !important;
}

body[data-route="customer"] #customerPage {
  overflow-y: auto !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell,
body[data-route="agent"] #agentPage .crm-tabs-shell,
body[data-route="customer"] #customerPage .crm-tabs-shell,
body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
  border-radius: 0 !important;
  height: 100vh !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body[data-route="customer"] #customerPage .crm-tabs-shell {
  height: auto !important;
  min-height: calc(100vh - 150px) !important;
}

body[data-route="customer"] .customer-overview-banner,
body[data-route="admin"] .backpanel-top-tickets,
body[data-route="agent"] .backpanel-top-tickets,
body[data-route="products-admin"] .backpanel-top-tickets {
  margin: 0 !important;
  max-width: none !important;
}

body[data-route="customer"] .customer-overview-banner {
  background: #dcecff !important;
  display: grid !important;
  justify-items: center !important;
  padding: 10px 10px 0 !important;
}

@media (min-width: 1121px) {
  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    height: 100vh !important;
    grid-template-columns: 168px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel,
  body[data-route="agent"] #agentPage .crm-tab-panel,
  body[data-route="products-admin"] #productAdminPage .crm-tab-panel {
    height: 100% !important;
    overflow-y: auto !important;
  }
}

body[data-route="login"] #loginPage {
  align-items: center !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(23, 105, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(16, 163, 127, 0.14), transparent 28%),
    linear-gradient(135deg, #eef8ff, #ffffff 48%, #f4fff9) !important;
  display: flex !important;
  min-height: calc(100vh - 78px) !important;
  padding: clamp(18px, 4vw, 44px) !important;
}

.clean-login-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d7e8f4;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(7, 26, 47, 0.14);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(18px, 3vw, 28px);
  width: 100%;
}

.clean-login-head {
  align-items: center;
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 217, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #071a2f, #0b4f73);
  border-radius: 18px;
  color: #ffffff;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: clamp(16px, 3vw, 24px);
}

.clean-login-mark {
  align-items: center;
  background: linear-gradient(135deg, #1769ff, #10a37f);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(23, 105, 255, 0.28);
  display: flex;
  font-size: 1.8rem;
  font-weight: 1000;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.clean-login-head .eyebrow,
.clean-login-head h2,
.clean-login-head p {
  color: #ffffff;
  margin: 0;
}

.clean-login-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 1000;
  letter-spacing: 0;
}

.clean-login-head p:not(.eyebrow) {
  color: #d9f4ff;
  font-weight: 700;
  margin-top: 5px;
}

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

.clean-login-card {
  background: #ffffff;
  border: 1px solid #d7e8f4;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(7, 26, 47, 0.08);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.clean-login-card .login-card-top {
  align-items: center;
  display: flex;
  gap: 12px;
}

.clean-login-card .login-card-top h2 {
  color: #09213a;
  font-size: 1.1rem;
  font-weight: 1000;
  margin: 0;
}

.clean-login-card .eyebrow {
  color: #1769ff;
  margin: 0 0 2px;
}

.clean-login-card .login-card-icon {
  background: linear-gradient(135deg, #1769ff, #10a37f);
  border-radius: 14px;
  color: #ffffff;
  flex: 0 0 auto;
  height: 44px;
  width: 44px;
}

.clean-login-card .form-stack {
  display: grid;
  gap: 11px;
}

.clean-login-card label {
  color: #09213a;
  display: grid;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 6px;
}

.clean-login-card input {
  background: #f8fcff;
  border: 1px solid #b8d9ee;
  border-radius: 12px;
  color: #09213a;
  min-height: 44px;
  padding: 10px 12px;
}

.clean-login-card input:focus {
  border-color: #1769ff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.12);
  outline: none;
}

.clean-login-card .primary-action {
  min-height: 44px;
  width: 100%;
}

.clean-login-note {
  color: #58708b;
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

@media (max-width: 920px) {
  .clean-login-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body[data-route="login"] #loginPage {
    align-items: flex-start !important;
    padding: 12px !important;
  }

  .clean-login-head {
    grid-template-columns: 1fr;
  }
}

/* Mobile back-panel scroll fix: desktop stays full-screen, phones/tablets can move through every admin tab. */
@media (max-width: 1120px) {
  body[data-route="admin"] {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body[data-route="admin"] main,
  body[data-route="admin"] #adminPage {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-shell {
    border-radius: 0 !important;
    display: block !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header {
    gap: 10px !important;
    padding: 14px !important;
    position: relative !important;
    z-index: 3 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs {
    background: #f6fbff !important;
    border-bottom: 1px solid rgba(23, 105, 255, 0.12) !important;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 10px 12px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    -webkit-overflow-scrolling: touch;
  }

  body[data-route="admin"] #adminPage .crm-tabs button {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    white-space: nowrap !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 12px 12px 88px !important;
  }

  body[data-route="admin"] #adminPage .crm-sheet,
  body[data-route="admin"] #adminPage .table-responsive,
  body[data-route="admin"] #adminPage .admin-responsive-table {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Simplified unique login access center */
body[data-route="login"] #loginPage {
  background:
    radial-gradient(circle at 15% 12%, rgba(23, 105, 255, 0.18), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(17, 163, 106, 0.16), transparent 28%),
    linear-gradient(135deg, #eaf5ff 0%, #ffffff 52%, #effff8 100%) !important;
  min-height: calc(100dvh - 78px) !important;
}

body[data-route="login"] .clean-login-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(126, 167, 199, 0.3);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(7, 26, 47, 0.16);
  gap: 14px;
  max-width: 1040px;
  padding: 14px;
  position: relative;
}

body[data-route="login"] .clean-login-shell::before {
  background: linear-gradient(180deg, #1769ff, #10a37f);
  border-radius: 999px;
  content: "";
  height: calc(100% - 44px);
  left: 22px;
  opacity: 0.18;
  position: absolute;
  top: 22px;
  width: 8px;
}

body[data-route="login"] .clean-login-head {
  background:
    radial-gradient(circle at 92% 5%, rgba(0, 168, 200, 0.26), transparent 30%),
    linear-gradient(135deg, #071a2f, #0b4f73 58%, #0f766e);
  border-radius: 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 118px;
  padding: 18px 20px 18px 28px;
}

body[data-route="login"] .clean-login-mark {
  border-radius: 20px;
  height: 58px;
  width: 58px;
}

body[data-route="login"] .clean-login-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.clean-login-status {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #ffffff;
  display: grid;
  gap: 3px;
  min-width: 140px;
  padding: 12px 14px;
}

.clean-login-status span {
  color: #d9f4ff;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.clean-login-status strong {
  color: #ffffff;
  font-size: 0.92rem;
}

body[data-route="login"] .clean-login-grid {
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-route="login"] .clean-login-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(23, 105, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(126, 167, 199, 0.28);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(7, 26, 47, 0.08);
  gap: 12px;
  padding: 14px;
}

body[data-route="login"] .clean-login-card .login-card-top {
  background: #f8fbff;
  border: 1px solid rgba(126, 167, 199, 0.22);
  border-radius: 18px;
  padding: 9px;
}

body[data-route="login"] .clean-login-card .login-card-icon {
  align-items: center;
  border-radius: 15px;
  display: grid;
  font-size: 0.78rem;
  font-weight: 1000;
  height: 42px;
  justify-items: center;
  width: 42px;
}

body[data-route="login"] .clean-login-card .login-card-top h2 {
  font-size: 1rem;
}

body[data-route="login"] .clean-login-card .eyebrow {
  font-size: 0.64rem;
}

body[data-route="login"] .clean-login-card .form-stack {
  gap: 9px;
}

body[data-route="login"] .clean-login-card label {
  font-size: 0.76rem;
}

body[data-route="login"] .clean-login-card input {
  background: #ffffff;
  border-radius: 14px;
  min-height: 42px;
}

body[data-route="login"] .clean-login-card .primary-action {
  border-radius: 999px;
  min-height: 42px;
}

body[data-route="login"] .clean-login-note {
  background: #f8fbff;
  border: 1px solid rgba(126, 167, 199, 0.22);
  border-radius: 999px;
  color: #486277;
  font-size: 0.78rem;
  padding: 10px 14px;
}

@media (max-width: 920px) {
  body[data-route="login"] .clean-login-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .clean-login-status {
    grid-column: 1 / -1;
  }

  body[data-route="login"] .clean-login-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body[data-route="login"] .clean-login-shell {
    border-radius: 22px;
    padding: 10px;
  }

  body[data-route="login"] .clean-login-shell::before {
    display: none;
  }

  body[data-route="login"] .clean-login-head {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* Admin color correction: readable, bright content with a clean navy control area. */
body[data-route="admin"] #adminPage {
  --admin-bg-soft: #f4fbff;
  --admin-card: #ffffff;
  --admin-ink-strong: #06192d;
  --admin-ink: #102f4a;
  --admin-muted-readable: #496579;
  --admin-blue-bright: #1769ff;
  --admin-cyan-bright: #00a8c8;
  --admin-green-bright: #10a37f;
  --admin-border-soft: #cfe3f0;
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 105, 255, 0.12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(16, 163, 127, 0.1), transparent 26%),
    linear-gradient(135deg, #f6fbff 0%, #ffffff 52%, #f4fff9 100%) !important;
  color: var(--admin-ink) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--admin-border-soft) !important;
  box-shadow: 0 24px 72px rgba(6, 25, 45, 0.14) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header {
  background:
    radial-gradient(circle at 18% 2%, rgba(0, 168, 200, 0.22), transparent 28%),
    linear-gradient(180deg, #06192d 0%, #0a3558 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header h2,
body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
  opacity: 0.82 !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .crm-search {
  background: #ffffff !important;
  border: 1px solid rgba(167, 219, 242, 0.95) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  color: var(--admin-ink-strong) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .crm-search::placeholder {
  color: #66839a !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .secondary-action,
body[data-route="admin"] #adminPage .crm-tabs-header .ghost-action {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .secondary-action:hover,
body[data-route="admin"] #adminPage .crm-tabs-header .ghost-action:hover {
  background: #ffffff !important;
  color: #063153 !important;
}

body[data-route="admin"] #adminPage .crm-tabs {
  background: #eef7fd !important;
  border-color: var(--admin-border-soft) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button {
  background: #ffffff !important;
  border: 1px solid #b9d9ed !important;
  box-shadow: 0 8px 18px rgba(6, 25, 45, 0.06) !important;
  color: #0d3a5b !important;
}

body[data-route="admin"] #adminPage .crm-tabs button:hover,
body[data-route="admin"] #adminPage .crm-tabs button.active {
  background: linear-gradient(135deg, var(--admin-blue-bright), var(--admin-green-bright)) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tab-panel,
body[data-route="admin"] #adminPage .smart-dashboard-hero,
body[data-route="admin"] #adminPage .smart-kpi-card,
body[data-route="admin"] #adminPage .smart-chart-card,
body[data-route="admin"] #adminPage .smart-filter-bar,
body[data-route="admin"] #adminPage .smart-table-wrap,
body[data-route="admin"] #adminPage .crm-sheet,
body[data-route="admin"] #adminPage .record-list,
body[data-route="admin"] #adminPage .record-detail,
body[data-route="admin"] #adminPage .panel-form,
body[data-route="admin"] #adminPage .seo-status-panel,
body[data-route="admin"] #adminPage .seo-advanced-card,
body[data-route="admin"] #adminPage .monthly-report-panel,
body[data-route="admin"] #adminPage .timezone-card,
body[data-route="admin"] #adminPage .two-step-admin-card,
body[data-route="admin"] #adminPage .two-step-help-card {
  background: var(--admin-card) !important;
  border-color: var(--admin-border-soft) !important;
  color: var(--admin-ink) !important;
}

body[data-route="admin"] #adminPage h1,
body[data-route="admin"] #adminPage h2,
body[data-route="admin"] #adminPage h3,
body[data-route="admin"] #adminPage h4,
body[data-route="admin"] #adminPage label,
body[data-route="admin"] #adminPage strong,
body[data-route="admin"] #adminPage th {
  color: var(--admin-ink-strong) !important;
}

body[data-route="admin"] #adminPage p,
body[data-route="admin"] #adminPage small,
body[data-route="admin"] #adminPage span,
body[data-route="admin"] #adminPage td,
body[data-route="admin"] #adminPage li {
  color: var(--admin-muted-readable) !important;
}

body[data-route="admin"] #adminPage input,
body[data-route="admin"] #adminPage select,
body[data-route="admin"] #adminPage textarea {
  background: #ffffff !important;
  border: 1px solid #aecfe4 !important;
  color: var(--admin-ink-strong) !important;
}

body[data-route="admin"] #adminPage input:focus,
body[data-route="admin"] #adminPage select:focus,
body[data-route="admin"] #adminPage textarea:focus {
  border-color: var(--admin-blue-bright) !important;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.14) !important;
  outline: none !important;
}

body[data-route="admin"] #adminPage .smart-table,
body[data-route="admin"] #adminPage .crm-sheet table {
  background: #ffffff !important;
  color: var(--admin-ink) !important;
}

body[data-route="admin"] #adminPage .smart-table th,
body[data-route="admin"] #adminPage .crm-sheet th {
  background: #e8f5ff !important;
  border-color: #c9e1f0 !important;
  color: var(--admin-ink-strong) !important;
}

body[data-route="admin"] #adminPage .smart-table td,
body[data-route="admin"] #adminPage .crm-sheet td {
  background: #ffffff !important;
  border-color: #e0edf5 !important;
  color: var(--admin-ink) !important;
}

body[data-route="admin"] #adminPage .smart-table tr:hover td,
body[data-route="admin"] #adminPage .crm-sheet tr:hover td,
body[data-route="admin"] #adminPage .selected-admin-row td {
  background: #f1fbff !important;
}

body[data-route="admin"] #adminPage .primary-action {
  background: linear-gradient(135deg, var(--admin-blue-bright), var(--admin-cyan-bright)) !important;
  border-color: rgba(23, 105, 255, 0.35) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .secondary-action,
body[data-route="admin"] #adminPage .ghost-action,
body[data-route="admin"] #adminPage .compact-action,
body[data-route="admin"] #adminPage .smart-chip-group button,
body[data-route="admin"] #adminPage .v2-status-buttons button,
body[data-route="admin"] #adminPage .ticket-choice-button,
body[data-route="admin"] #adminPage .status-initial {
  background: #f8fcff !important;
  border: 1px solid #b9d9ed !important;
  color: #0b4f73 !important;
}

body[data-route="admin"] #adminPage .smart-chip-group button.active,
body[data-route="admin"] #adminPage .v2-status-buttons button.active,
body[data-route="admin"] #adminPage .ticket-choice-button.active,
body[data-route="admin"] #adminPage .status-initial.active {
  background: linear-gradient(135deg, var(--admin-blue-bright), var(--admin-green-bright)) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .tag,
body[data-route="admin"] #adminPage .smart-status,
body[data-route="admin"] #adminPage .priority-pill,
body[data-route="admin"] #adminPage .status-initial {
  color: inherit !important;
}

body[data-route="admin"] #adminPage .smart-db-status,
body[data-route="admin"] #adminPage .seo-score-card,
body[data-route="admin"] #adminPage .timezone-board-head,
body[data-route="admin"] #adminPage .admin-command-center {
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 168, 200, 0.24), transparent 32%),
    linear-gradient(135deg, #06192d, #0b4f73) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .smart-db-status *,
body[data-route="admin"] #adminPage .seo-score-card *,
body[data-route="admin"] #adminPage .timezone-board-head *,
body[data-route="admin"] #adminPage .admin-command-center * {
  color: #eaf8ff !important;
}

@media (max-width: 1120px) {
  body[data-route="admin"] #adminPage .crm-tabs-header {
    border-radius: 0 !important;
    min-height: 0 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs {
    background: rgba(238, 247, 253, 0.98) !important;
  }
}

/* Mobile admin header and badge polish after phone-size testing. */
@media (max-width: 640px) {
  body[data-route="admin"] #adminPage .crm-tabs-header {
    align-items: stretch !important;
    display: grid !important;
    gap: 9px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header > div:first-child,
  body[data-route="admin"] #adminPage .crm-tabs-header .crm-search {
    grid-column: 1 / -1 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header h2 {
    font-size: 1.05rem !important;
    line-height: 1.16 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header .crm-search {
    min-height: 42px !important;
    width: 100% !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header .secondary-action,
  body[data-route="admin"] #adminPage .crm-tabs-header .ghost-action {
    border-radius: 12px !important;
    font-size: 0.78rem !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    min-height: 42px !important;
    padding: 9px 8px !important;
    white-space: normal !important;
    width: 100% !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs {
    align-items: center !important;
    gap: 7px !important;
    padding: 10px !important;
    position: relative !important;
    top: auto !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs button {
    border-radius: 999px !important;
    font-size: 0.76rem !important;
    min-height: 34px !important;
    padding: 7px 10px !important;
  }
}

/* Back-panel tabs: names only on desktop, three-dot menu on mobile. */
#adminPage .crm-tabs button::before,
#agentPage .crm-tabs button::before,
#customerPage .crm-tabs button::before,
#productAdminPage .crm-tabs button::before,
#adminPage .crm-tabs button::after,
#agentPage .crm-tabs button::after,
#customerPage .crm-tabs button::after,
#productAdminPage .crm-tabs button::after {
  content: none !important;
  display: none !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link,
body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link {
  color: #eaf7ff !important;
  font-size: 0.82rem !important;
  text-align: left !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active,
body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link.active,
body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link.active,
body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link.active {
  color: #ffffff !important;
}

.backpanel-mobile-tabs-button {
  display: none !important;
}

@media (max-width: 1024px) {
  .backpanel-mobile-tabs-button {
    align-items: center !important;
    display: inline-flex !important;
    font-size: 1.25rem !important;
    font-weight: 950 !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: 36px !important;
    min-width: 38px !important;
    padding: 6px 9px !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    display: none !important;
    position: static !important;
  }

  body.backpanel-mobile-tabs-open #adminPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #agentPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #customerPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #productAdminPage.active .crm-tabs {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    padding: 8px !important;
  }

  body.backpanel-mobile-tabs-open #adminPage.active .crm-tabs button,
  body.backpanel-mobile-tabs-open #agentPage.active .crm-tabs button,
  body.backpanel-mobile-tabs-open #customerPage.active .crm-tabs button,
  body.backpanel-mobile-tabs-open #productAdminPage.active .crm-tabs button {
    color: #eaf7ff !important;
    display: inline-flex !important;
    font-size: 0.76rem !important;
    justify-content: center !important;
    min-height: 36px !important;
    min-width: 0 !important;
    padding: 7px 8px !important;
    text-align: center !important;
    width: 100% !important;
  }

  body.backpanel-mobile-tabs-open #adminPage.active .crm-tabs button.active,
  body.backpanel-mobile-tabs-open #agentPage.active .crm-tabs button.active,
  body.backpanel-mobile-tabs-open #customerPage.active .crm-tabs button.active,
  body.backpanel-mobile-tabs-open #productAdminPage.active .crm-tabs button.active {
    color: #ffffff !important;
  }

  body.backpanel-mobile-tabs-open #adminPage.active .crm-tabs button::before,
  body.backpanel-mobile-tabs-open #agentPage.active .crm-tabs button::before,
  body.backpanel-mobile-tabs-open #customerPage.active .crm-tabs button::before,
  body.backpanel-mobile-tabs-open #productAdminPage.active .crm-tabs button::before {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 560px) {
  body.backpanel-mobile-tabs-open #adminPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #agentPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #customerPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #productAdminPage.active .crm-tabs {
    grid-template-columns: 1fr !important;
  }
}

/* Final desktop override: make back-panel left menu bigger and easier to read. */
@media (min-width: 1025px) {
  #adminPage .backpanel-mobile-tabs-button,
  #agentPage .backpanel-mobile-tabs-button,
  #customerPage .backpanel-mobile-tabs-button,
  #productAdminPage .backpanel-mobile-tabs-button {
    display: none !important;
  }

  #adminPage .crm-tabs button::before,
  #agentPage .crm-tabs button::before,
  #customerPage .crm-tabs button::before,
  #productAdminPage .crm-tabs button::before,
  #adminPage .crm-tabs button::after,
  #agentPage .crm-tabs button::after,
  #customerPage .crm-tabs button::after,
  #productAdminPage .crm-tabs button::after {
    content: none !important;
    display: none !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    gap: 10px !important;
    padding: 14px 12px !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link,
  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #customerPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    align-items: center !important;
    border-radius: 14px !important;
    display: flex !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    justify-content: flex-start !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    min-height: 48px !important;
    padding: 13px 14px !important;
    text-align: left !important;
    white-space: normal !important;
  }
}

/* Rebuilt desktop back-panel sidebar: simple, readable, no hidden text. */
@media (min-width: 1025px) {
  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="customer"] #customerPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    background: #f6fbff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    min-height: calc(100vh - 32px) !important;
    overflow: hidden !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs {
    align-content: start !important;
    background: linear-gradient(180deg, #071528 0%, #0c2438 55%, #0a1d2e 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: 1fr !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 14px 12px !important;
    position: static !important;
    width: 220px !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #f8fbff !important;
    display: flex !important;
    font-size: 0.83rem !important;
    font-weight: 750 !important;
    height: 34px !important;
    justify-content: flex-start !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    min-height: 34px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 7px 10px !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    width: 100% !important;
    -webkit-text-fill-color: #f8fbff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link:hover,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link:hover,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link:hover,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link:hover {
    background: rgba(59, 130, 246, 0.24) !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
    color: #ffffff !important;
    transform: none !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link.active {
    background: linear-gradient(135deg, #0b74ff, #10b981) !important;
    border-color: rgba(255, 255, 255, 0.36) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link::after,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link::after,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link::after,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link::after {
    content: none !important;
    display: none !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d8e3ec !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    color: #0f1f33 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header h1,
  body[data-route="admin"] #adminPage .crm-tabs-header h2,
  body[data-route="admin"] #adminPage .crm-tabs-header h3,
  body[data-route="admin"] #adminPage .crm-tabs-header strong {
    color: #0b1f34 !important;
    -webkit-text-fill-color: #0b1f34 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header p,
  body[data-route="admin"] #adminPage .crm-tabs-header small,
  body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
    color: #52657a !important;
    -webkit-text-fill-color: #52657a !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel.active {
    background: #f8fbff !important;
    color: #14283d !important;
  }

  body[data-route="admin"] #adminPage .smart-kpi-card,
  body[data-route="admin"] #adminPage .admin-insight-card,
  body[data-route="admin"] #adminPage .fresh-case-item,
  body[data-route="admin"] #adminPage .crm-sheet,
  body[data-route="admin"] #adminPage .smart-table-wrap,
  body[data-route="admin"] #adminPage .seo-status-panel,
  body[data-route="admin"] #adminPage .panel {
    background: #ffffff !important;
    border-color: #d8e3ec !important;
    color: #12263a !important;
  }

  body[data-route="admin"] #adminPage th,
  body[data-route="admin"] #adminPage .smart-table th {
    background: #e8f2fb !important;
    color: #12304d !important;
  }

  body[data-route="admin"] #adminPage td,
  body[data-route="admin"] #adminPage .smart-table td {
    background: #ffffff !important;
    color: #13283e !important;
  }
}

/* ABSOLUTE FINAL ADMIN CONTRAST FIX */
@media (min-width: 1025px) {
  body[data-route="admin"] #adminPage .crm-tabs-header,
  body[data-route="admin"] #adminPage .crm-tabs-shell > .crm-tabs-header {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d8e3ec !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    color: #0f1f33 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header *,
  body[data-route="admin"] #adminPage .crm-tab-panel.active * {
    text-shadow: none !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header h1,
  body[data-route="admin"] #adminPage .crm-tabs-header h2,
  body[data-route="admin"] #adminPage .crm-tabs-header h3,
  body[data-route="admin"] #adminPage .crm-tabs-header strong {
    color: #0b1f34 !important;
    -webkit-text-fill-color: #0b1f34 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header p,
  body[data-route="admin"] #adminPage .crm-tabs-header small,
  body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
    color: #52657a !important;
    -webkit-text-fill-color: #52657a !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel.active {
    background: #f8fbff !important;
    color: #14283d !important;
  }

  body[data-route="admin"] #adminPage .smart-kpi-card,
  body[data-route="admin"] #adminPage .admin-insight-card,
  body[data-route="admin"] #adminPage .fresh-case-item,
  body[data-route="admin"] #adminPage .crm-sheet,
  body[data-route="admin"] #adminPage .smart-table-wrap,
  body[data-route="admin"] #adminPage .seo-status-panel,
  body[data-route="admin"] #adminPage .panel {
    background: #ffffff !important;
    border-color: #d8e3ec !important;
    color: #12263a !important;
  }

  body[data-route="admin"] #adminPage th,
  body[data-route="admin"] #adminPage .smart-table th {
    background: #e8f2fb !important;
    color: #12304d !important;
  }

  body[data-route="admin"] #adminPage td,
  body[data-route="admin"] #adminPage .smart-table td {
    background: #ffffff !important;
    color: #13283e !important;
  }

  body[data-route="admin"] #adminPage tr:nth-child(even) td {
    background: #f6faff !important;
  }
}

/* TRUE FINAL ADMIN COLOR SYSTEM: balanced contrast for the CRM back panel. */
@media (min-width: 1025px) {
  body[data-route="admin"],
  body[data-route="admin"] #adminPage {
    background: #eef4f8 !important;
    color: #102033 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-shell {
    background: #f8fbff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14) !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs {
    background: linear-gradient(180deg, #081527 0%, #0d1f36 58%, #071322 100%) !important;
    color: #edf7ff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link {
    background: rgba(255, 255, 255, 0.09) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #eaf4ff !important;
    -webkit-text-fill-color: #eaf4ff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link:hover {
    background: #153b63 !important;
    border-color: rgba(125, 211, 252, 0.5) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active {
    background: linear-gradient(135deg, #0b6fdc, #16856a) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    color: #0f1f33 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header h1,
  body[data-route="admin"] #adminPage .crm-tabs-header h2,
  body[data-route="admin"] #adminPage .crm-tabs-header h3,
  body[data-route="admin"] #adminPage .crm-tabs-header strong {
    color: #0c1f35 !important;
    -webkit-text-fill-color: #0c1f35 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header p,
  body[data-route="admin"] #adminPage .crm-tabs-header small,
  body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
    color: #52657a !important;
    -webkit-text-fill-color: #52657a !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel.active {
    background: #f8fbff !important;
    color: #14283d !important;
  }

  body[data-route="admin"] #adminPage .smart-kpi-card,
  body[data-route="admin"] #adminPage .admin-insight-card,
  body[data-route="admin"] #adminPage .fresh-case-item,
  body[data-route="admin"] #adminPage .crm-sheet,
  body[data-route="admin"] #adminPage .smart-table-wrap,
  body[data-route="admin"] #adminPage .seo-status-panel,
  body[data-route="admin"] #adminPage .panel {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.11) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
    color: #12263a !important;
  }

  body[data-route="admin"] #adminPage table,
  body[data-route="admin"] #adminPage .smart-table {
    background: #ffffff !important;
    color: #12263a !important;
  }

  body[data-route="admin"] #adminPage th,
  body[data-route="admin"] #adminPage .smart-table th {
    background: #eaf3fb !important;
    color: #18334f !important;
    font-weight: 850 !important;
  }

  body[data-route="admin"] #adminPage td,
  body[data-route="admin"] #adminPage .smart-table td {
    background: #ffffff !important;
    border-color: #dce7f0 !important;
    color: #13283e !important;
  }

  body[data-route="admin"] #adminPage tr:nth-child(even) td {
    background: #f7fbff !important;
  }

  body[data-route="admin"] #adminPage input,
  body[data-route="admin"] #adminPage select,
  body[data-route="admin"] #adminPage textarea {
    background: #ffffff !important;
    border-color: #b9cad8 !important;
    color: #102033 !important;
  }

  body[data-route="admin"] #adminPage input::placeholder,
  body[data-route="admin"] #adminPage textarea::placeholder {
    color: #71869b !important;
  }

  body[data-route="admin"] #adminPage .primary-action,
  body[data-route="admin"] #adminPage .btn-primary {
    background: #0b6fdc !important;
    border-color: #0b6fdc !important;
    color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .secondary-action,
  body[data-route="admin"] #adminPage .ghost-action,
  body[data-route="admin"] #adminPage .btn-outline-secondary {
    background: #ffffff !important;
    border-color: #b8c9d8 !important;
    color: #17324e !important;
  }
}

/* Desktop finish: back-panel tabs use readable names, with a slightly larger hit area. */
@media (min-width: 1025px) {
  #adminPage .backpanel-mobile-tabs-button,
  #agentPage .backpanel-mobile-tabs-button,
  #customerPage .backpanel-mobile-tabs-button,
  #productAdminPage .backpanel-mobile-tabs-button {
    display: none !important;
  }

  #adminPage .crm-tabs button::before,
  #agentPage .crm-tabs button::before,
  #customerPage .crm-tabs button::before,
  #productAdminPage .crm-tabs button::before,
  #adminPage .crm-tabs button::after,
  #agentPage .crm-tabs button::after,
  #customerPage .crm-tabs button::after,
  #productAdminPage .crm-tabs button::after {
    content: none !important;
    display: none !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    gap: 9px !important;
    padding: 13px 11px !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link,
  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #customerPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    border-radius: 13px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    min-height: 42px !important;
    padding: 11px 12px !important;
    text-align: left !important;
    white-space: normal !important;
  }
}

body[data-route="admin"] #adminPage .two-step-state.off {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

body[data-route="admin"] #adminPage .two-step-state.on,
body[data-route="admin"] #adminPage .sheet-status.badge {
  background: #dcfce7 !important;
  color: #14532d !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card {
  overflow-x: auto !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card table {
  min-width: 620px !important;
}

@media (max-width: 640px) {
  body[data-route="admin"] #adminPage #adminSeoTab .table-responsive,
  body[data-route="admin"] #adminPage #adminSeoTab .smart-table-wrap,
  body[data-route="admin"] #adminPage #adminSeoTab .seo-advanced-card {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body[data-route="admin"] #adminPage #adminSeoTab table,
  body[data-route="admin"] #adminPage #adminSeoTab .table {
    min-width: 0 !important;
    table-layout: fixed !important;
    width: 100% !important;
  }

  body[data-route="admin"] #adminPage #adminSeoTab th,
  body[data-route="admin"] #adminPage #adminSeoTab td {
    white-space: normal !important;
    word-break: break-word !important;
  }

  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card table {
    min-width: 0 !important;
    table-layout: fixed !important;
    width: 100% !important;
  }

  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card th,
  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card td {
    font-size: 0.62rem !important;
    line-height: 1.25 !important;
    padding: 6px 4px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card th:nth-child(1),
  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card td:nth-child(1) {
    width: 42% !important;
  }

  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card th:nth-child(2),
  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card td:nth-child(2),
  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card th:nth-child(3),
  body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card td:nth-child(3) {
    width: 15% !important;
  }

  body[data-route="admin"] #adminPage #adminSeoTab .seo-position,
  body[data-route="admin"] #adminPage #adminSeoTab .seo-move,
  body[data-route="admin"] #adminPage #adminSeoTab .tag,
  body[data-route="admin"] #adminPage #adminSeoTab .badge {
    font-size: 0.6rem !important;
    min-width: 0 !important;
    padding: 4px 5px !important;
    white-space: normal !important;
  }
}

/* Final mobile back-panel usability pass: card tables and compact assistant button. */
@media (max-width: 640px) {
  body[data-route="admin"] #adminPage {
    background: linear-gradient(180deg, #eef8ff 0%, #ffffff 44%, #f5fff9 100%) !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel {
    padding: 12px 12px 118px !important;
  }

  body[data-route="admin"] #adminPage .smart-table-wrap,
  body[data-route="admin"] #adminPage .crm-sheet {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body[data-route="admin"] #adminPage .smart-table,
  body[data-route="admin"] #adminPage .crm-sheet table {
    background: transparent !important;
    border: 0 !important;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[data-route="admin"] #adminPage .smart-table thead,
  body[data-route="admin"] #adminPage .crm-sheet thead {
    display: none !important;
  }

  body[data-route="admin"] #adminPage .smart-table tbody,
  body[data-route="admin"] #adminPage .crm-sheet tbody {
    display: grid !important;
    gap: 10px !important;
  }

  body[data-route="admin"] #adminPage .smart-table tr,
  body[data-route="admin"] #adminPage .crm-sheet tr {
    background: #ffffff !important;
    border: 1px solid #cfe3f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(6, 25, 45, 0.08) !important;
    display: grid !important;
    gap: 0 !important;
    overflow: hidden !important;
    padding: 6px 0 !important;
  }

  body[data-route="admin"] #adminPage .smart-table td,
  body[data-route="admin"] #adminPage .crm-sheet td {
    align-items: start !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #edf4f9 !important;
    color: #102f4a !important;
    display: grid !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr) !important;
    line-height: 1.35 !important;
    padding: 8px 12px !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  body[data-route="admin"] #adminPage .smart-table td:last-child,
  body[data-route="admin"] #adminPage .crm-sheet td:last-child {
    border-bottom: 0 !important;
  }

  body[data-route="admin"] #adminPage .smart-table td::before,
  body[data-route="admin"] #adminPage .crm-sheet td::before {
    color: #0b4f73 !important;
    content: attr(data-label);
    font-size: 0.66rem !important;
    font-weight: 1000 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
  }

  body[data-route="admin"] #adminPage .smart-table td[colspan],
  body[data-route="admin"] #adminPage .crm-sheet td[colspan] {
    display: block !important;
  }

  body[data-route="admin"] #adminPage .smart-table td[colspan]::before,
  body[data-route="admin"] #adminPage .crm-sheet td[colspan]::before {
    content: none !important;
  }

  body[data-route="admin"] #adminPage .smart-status,
  body[data-route="admin"] #adminPage .tag,
  body[data-route="admin"] #adminPage .badge,
  body[data-route="admin"] #adminPage .priority-pill {
    align-self: start !important;
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    padding: 5px 7px !important;
    white-space: normal !important;
  }

  body[data-route="admin"] #adminPage .smart-status.approved,
  body[data-route="admin"] #adminPage .smart-status.existing,
  body[data-route="admin"] #adminPage .tag.approved {
    background: #dcfce7 !important;
    color: #14532d !important;
  }

  body[data-route="admin"] #adminPage .smart-status.pending,
  body[data-route="admin"] #adminPage .smart-status.new,
  body[data-route="admin"] #adminPage .tag.pending {
    background: #fff7ed !important;
    color: #9a3412 !important;
  }

  body[data-route="admin"] .backoffice-agent-fab {
    bottom: 14px !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(23, 105, 255, 0.24) !important;
    font-size: 0 !important;
    gap: 0 !important;
    height: 54px !important;
    justify-content: center !important;
    min-height: 54px !important;
    padding: 0 !important;
    right: 14px !important;
    width: 54px !important;
  }

  body[data-route="admin"] .backoffice-agent-fab span:not(:first-child),
  body[data-route="admin"] .backoffice-agent-fab strong,
  body[data-route="admin"] .backoffice-agent-fab > :not(:first-child) {
    display: none !important;
  }

  body[data-route="admin"] .backoffice-agent-fab span:first-child {
    align-items: center !important;
    border-radius: inherit !important;
    display: flex !important;
    font-size: 0.78rem !important;
    height: 54px !important;
    justify-content: center !important;
    width: 54px !important;
  }
}

/* Mobile dashboard color reset: keep the back panel bright and readable on small screens. */
@media (max-width: 640px) {
  body[data-route="admin"] #adminOverviewTab .smart-dashboard-hero,
  body[data-route="admin"] #adminOverviewTab .admin-command-center,
  body[data-route="admin"] #adminOverviewTab .smart-chart-card,
  body[data-route="admin"] #adminOverviewTab .smart-kpi-card,
  body[data-route="admin"] #adminOverviewTab .monthly-report-panel {
    background:
      radial-gradient(circle at 92% 0%, rgba(23, 105, 255, 0.08), transparent 30%),
      linear-gradient(180deg, #ffffff, #f8fcff) !important;
    border: 1px solid #cfe3f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 32px rgba(6, 25, 45, 0.08) !important;
    color: #102f4a !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-dashboard-hero {
    gap: 12px !important;
    padding: 16px !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-dashboard-hero::before,
  body[data-route="admin"] #adminOverviewTab .admin-command-center::before {
    opacity: 0 !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-dashboard-hero .eyebrow,
  body[data-route="admin"] #adminOverviewTab .admin-command-center .eyebrow,
  body[data-route="admin"] #adminOverviewTab .admin-command-copy .eyebrow {
    color: #1769ff !important;
    font-size: 0.68rem !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-dashboard-hero h3,
  body[data-route="admin"] #adminOverviewTab .admin-command-center h3,
  body[data-route="admin"] #adminOverviewTab .admin-command-copy h3,
  body[data-route="admin"] #adminOverviewTab .smart-kpi-card strong,
  body[data-route="admin"] #adminOverviewTab .smart-chart-title span {
    color: #06192d !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-dashboard-hero p,
  body[data-route="admin"] #adminOverviewTab .admin-command-center p,
  body[data-route="admin"] #adminOverviewTab .admin-command-copy p,
  body[data-route="admin"] #adminOverviewTab .smart-kpi-card span,
  body[data-route="admin"] #adminOverviewTab .smart-kpi-card small {
    color: #496579 !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-db-status {
    background: #ffffff !important;
    border: 1px solid #cfe3f0 !important;
    border-left: 5px solid #1769ff !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(6, 25, 45, 0.08) !important;
    color: #102f4a !important;
    padding: 14px !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-db-status span {
    color: #0b4f73 !important;
    font-size: 0.68rem !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-db-status strong {
    color: #06192d !important;
    font-size: 1.25rem !important;
  }

  body[data-route="admin"] #adminOverviewTab .smart-db-status small {
    color: #496579 !important;
    font-size: 0.72rem !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-command-center {
    padding: 16px !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-command-buttons .secondary-action,
  body[data-route="admin"] #adminOverviewTab .admin-command-buttons .ghost-action {
    background: #f8fcff !important;
    border-color: #b9d9ed !important;
    color: #0b4f73 !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-insight-card,
  body[data-route="admin"] #adminOverviewTab .admin-priority-card {
    background: #ffffff !important;
    border: 1px solid #cfe3f0 !important;
    border-left: 5px solid #00a8c8 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(6, 25, 45, 0.08) !important;
    color: #102f4a !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-insight-card:nth-child(2n),
  body[data-route="admin"] #adminOverviewTab .admin-priority-card:nth-child(2n) {
    border-left-color: #1769ff !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-insight-card:nth-child(3n),
  body[data-route="admin"] #adminOverviewTab .admin-priority-card:nth-child(3n) {
    border-left-color: #10a37f !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-insight-card *,
  body[data-route="admin"] #adminOverviewTab .admin-priority-card * {
    color: #102f4a !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-insight-card span,
  body[data-route="admin"] #adminOverviewTab .admin-priority-card span,
  body[data-route="admin"] #adminOverviewTab .admin-insight-card small,
  body[data-route="admin"] #adminOverviewTab .admin-priority-card small {
    color: #496579 !important;
  }

  body[data-route="admin"] #adminOverviewTab .admin-insight-card strong,
  body[data-route="admin"] #adminOverviewTab .admin-priority-card strong {
    color: #06192d !important;
  }
}

/* SEO tab color correction: keep ranking cards, tables, badges, and controls readable. */
body[data-route="admin"] #adminPage #adminSeoTab .seo-status-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(23, 105, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef9ff) !important;
  border: 1px solid #cfe3f0 !important;
  color: #09213a !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero h3,
body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero strong {
  color: #06192d !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero p,
body[data-route="admin"] #adminPage #adminSeoTab .seo-last-check {
  color: #496579 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-score-card {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #1769ff, #00a8c8 58%, #10a37f) !important;
  border: 0 !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-score-card span,
body[data-route="admin"] #adminPage #adminSeoTab .seo-score-card small,
body[data-route="admin"] #adminPage #adminSeoTab .seo-score-card strong {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article {
  background:
    radial-gradient(circle at 88% 8%, rgba(41, 230, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #06192d, #0b4f73) !important;
  border: 1px solid rgba(41, 230, 255, 0.28) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article span,
body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article small {
  color: #c8f4ff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article strong {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-advanced-card {
  background: linear-gradient(180deg, #ffffff, #f7fcff) !important;
  border: 1px solid #cfe3f0 !important;
  box-shadow: 0 14px 36px rgba(6, 25, 45, 0.08) !important;
  color: #102f4a !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-advanced-card h4,
body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card th {
  color: #06192d !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-mini-bar span,
body[data-route="admin"] #adminPage #adminSeoTab .seo-mini-bar strong,
body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card td,
body[data-route="admin"] #adminPage #adminSeoTab .seo-table-note {
  color: #496579 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card table {
  background: #ffffff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card th {
  background: #e8f5ff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-opportunity-card td {
  background: #ffffff !important;
  border-color: #e0edf5 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-position.pending {
  background: #fff6d8 !important;
  color: #8a5a00 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-position.ranking {
  background: #dcfce7 !important;
  color: #14532d !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-move {
  background: #eef4ff !important;
  color: #334155 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-move.up {
  background: #dcfce7 !important;
  color: #166534 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-move.down {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-run-confirm {
  background: #e9fff3 !important;
  border-color: rgba(17, 153, 90, 0.3) !important;
  color: #087344 !important;
}

/* SEO visual balance fix after browser review: lighter KPI cards with strong readable text. */
body[data-route="admin"] #adminPage #adminSeoTab {
  background: #f7fcff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-panel {
  gap: 12px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero {
  box-shadow: 0 14px 34px rgba(6, 25, 45, 0.08) !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-score-card {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #0b4f73, #1769ff 52%, #10a37f) !important;
  box-shadow: 0 18px 36px rgba(23, 105, 255, 0.2) !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary {
  gap: 10px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article {
  background: #ffffff !important;
  border: 1px solid #cfe3f0 !important;
  border-left: 5px solid #1769ff !important;
  box-shadow: 0 12px 28px rgba(6, 25, 45, 0.08) !important;
  color: #09213a !important;
  min-height: 92px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article:nth-child(2) {
  border-left-color: #00a8c8 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article:nth-child(3) {
  border-left-color: #10a37f !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article:nth-child(4) {
  border-left-color: #6157ff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article:nth-child(5) {
  border-left-color: #0ea5e9 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article:nth-child(6) {
  border-left-color: #22c55e !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article:nth-child(7) {
  border-left-color: #f59e0b !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article span {
  color: #0b4f73 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article strong {
  color: #06192d !important;
  font-size: 1.55rem !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article small {
  color: #58708b !important;
  font-size: 0.68rem !important;
  line-height: 1.35 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-action-row {
  background: #ffffff !important;
  border: 1px solid #d7e8f4 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(6, 25, 45, 0.06) !important;
  padding: 10px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-action-row .primary-action {
  background: linear-gradient(135deg, #1769ff, #00a8c8) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-action-row .secondary-action {
  background: #f7fcff !important;
  color: #0b4f73 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-advanced-card {
  border-radius: 12px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-advanced-card h4 {
  border-bottom: 1px solid #e0edf5 !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-mini-bar div {
  background: #edf6fb !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-mini-bar i {
  background: linear-gradient(90deg, #1769ff, #10a37f) !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-card {
  display: flex !important;
  flex-direction: column !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-list {
  display: grid !important;
  gap: 10px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item {
  background: #ffffff !important;
  border: 1px solid #d7e8f4 !important;
  border-left: 5px solid #f59e0b !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(6, 25, 45, 0.06) !important;
  color: #102f4a !important;
  display: grid !important;
  gap: 4px !important;
  padding: 10px 12px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item.done {
  border-left-color: #10a37f !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item.manual {
  border-left-color: #1769ff !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item span {
  background: #eef7ff !important;
  border: 1px solid #cfe3f0 !important;
  border-radius: 999px !important;
  color: #0b4f73 !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  justify-self: start !important;
  padding: 3px 8px !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item.done span {
  background: #e9fff3 !important;
  border-color: rgba(16, 163, 127, 0.28) !important;
  color: #087344 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item strong {
  color: #06192d !important;
  font-size: 0.9rem !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item em {
  color: #1769ff !important;
  font-size: 0.76rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item p {
  color: #496579 !important;
  font-size: 0.76rem !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

/* 21 July final admin contrast lock: one readable palette for the whole back panel. */
body[data-route="admin"] #adminPage {
  --fg-admin-bg: #f4f9ff;
  --fg-admin-card: #ffffff;
  --fg-admin-ink: #071a2f;
  --fg-admin-text: #17324d;
  --fg-admin-muted: #526b82;
  --fg-admin-line: #cfe0ec;
  --fg-admin-blue: #1769ff;
  --fg-admin-cyan: #00a8c8;
  --fg-admin-green: #10a37f;
  background: linear-gradient(135deg, #edf7ff 0%, #ffffff 54%, #f2fff8 100%) !important;
  color: var(--fg-admin-text) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell {
  background: var(--fg-admin-card) !important;
  border: 1px solid var(--fg-admin-line) !important;
  box-shadow: 0 22px 64px rgba(7, 26, 47, 0.12) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header {
  background: linear-gradient(135deg, #ffffff, #f3fbff) !important;
  border-bottom: 1px solid var(--fg-admin-line) !important;
  color: var(--fg-admin-ink) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header h2,
body[data-route="admin"] #adminPage .crm-tabs-header strong {
  color: var(--fg-admin-ink) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow,
body[data-route="admin"] #adminPage .crm-tabs-header p,
body[data-route="admin"] #adminPage .crm-tabs-header small {
  color: var(--fg-admin-muted) !important;
}

body[data-route="admin"] #adminPage .crm-tabs {
  background:
    radial-gradient(circle at 18% 4%, rgba(32, 217, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #071a2f, #0a2d4a 58%, #0b4f73) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #eaf7ff !important;
  font-weight: 900 !important;
}

body[data-route="admin"] #adminPage .crm-tabs button:hover,
body[data-route="admin"] #adminPage .crm-tabs button.active {
  background: linear-gradient(135deg, var(--fg-admin-blue), var(--fg-admin-green)) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tab-panel,
body[data-route="admin"] #adminPage .smart-dashboard-hero,
body[data-route="admin"] #adminPage .admin-command-center,
body[data-route="admin"] #adminPage .smart-kpi-card,
body[data-route="admin"] #adminPage .smart-chart-card,
body[data-route="admin"] #adminPage .smart-filter-bar,
body[data-route="admin"] #adminPage .smart-table-wrap,
body[data-route="admin"] #adminPage .crm-sheet,
body[data-route="admin"] #adminPage .admin-customer-profile,
body[data-route="admin"] #adminPage .monthly-report-panel,
body[data-route="admin"] #adminPage .timezone-card,
body[data-route="admin"] #adminPage .two-step-admin-head,
body[data-route="admin"] #adminPage .two-step-qr-card,
body[data-route="admin"] #adminPage .two-step-setup-card,
body[data-route="admin"] #adminPage .two-step-help-card {
  background: var(--fg-admin-card) !important;
  border-color: var(--fg-admin-line) !important;
  color: var(--fg-admin-text) !important;
}

body[data-route="admin"] #adminPage .smart-dashboard-hero {
  background:
    radial-gradient(circle at 92% 4%, rgba(23, 105, 255, 0.08), transparent 28%),
    linear-gradient(135deg, #ffffff, #f3fbff) !important;
}

body[data-route="admin"] #adminPage h1,
body[data-route="admin"] #adminPage h2,
body[data-route="admin"] #adminPage h3,
body[data-route="admin"] #adminPage h4,
body[data-route="admin"] #adminPage h5,
body[data-route="admin"] #adminPage strong,
body[data-route="admin"] #adminPage b,
body[data-route="admin"] #adminPage .smart-chart-title span,
body[data-route="admin"] #adminPage .smart-kpi-card strong,
body[data-route="admin"] #adminPage .timezone-card time {
  color: var(--fg-admin-ink) !important;
}

body[data-route="admin"] #adminPage p,
body[data-route="admin"] #adminPage span,
body[data-route="admin"] #adminPage small,
body[data-route="admin"] #adminPage label,
body[data-route="admin"] #adminPage li,
body[data-route="admin"] #adminPage .record-detail,
body[data-route="admin"] #adminPage .smart-kpi-card span,
body[data-route="admin"] #adminPage .smart-kpi-card small,
body[data-route="admin"] #adminPage .smart-filter-bar label span {
  color: var(--fg-admin-muted) !important;
}

body[data-route="admin"] #adminPage .eyebrow,
body[data-route="admin"] #adminPage .crm-sheet h4,
body[data-route="admin"] #adminPage .smart-chart-title span {
  color: var(--fg-admin-blue) !important;
}

body[data-route="admin"] #adminPage input,
body[data-route="admin"] #adminPage select,
body[data-route="admin"] #adminPage textarea,
body[data-route="admin"] #adminPage .crm-search {
  background: #ffffff !important;
  border: 1px solid #b8d4e6 !important;
  color: var(--fg-admin-ink) !important;
  box-shadow: none !important;
}

body[data-route="admin"] #adminPage input::placeholder,
body[data-route="admin"] #adminPage textarea::placeholder,
body[data-route="admin"] #adminPage .crm-search::placeholder {
  color: #7b91a6 !important;
}

body[data-route="admin"] #adminPage input:focus,
body[data-route="admin"] #adminPage select:focus,
body[data-route="admin"] #adminPage textarea:focus,
body[data-route="admin"] #adminPage .crm-search:focus {
  border-color: var(--fg-admin-blue) !important;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.14) !important;
  outline: none !important;
}

body[data-route="admin"] #adminPage .smart-table,
body[data-route="admin"] #adminPage .crm-sheet table {
  background: #ffffff !important;
  color: var(--fg-admin-text) !important;
}

body[data-route="admin"] #adminPage .smart-table th,
body[data-route="admin"] #adminPage .crm-sheet th {
  background: #eaf5ff !important;
  border-color: #d7e8f4 !important;
  color: var(--fg-admin-ink) !important;
}

body[data-route="admin"] #adminPage .smart-table td,
body[data-route="admin"] #adminPage .crm-sheet td {
  background: #ffffff !important;
  border-color: #e2edf5 !important;
  color: var(--fg-admin-text) !important;
}

body[data-route="admin"] #adminPage .smart-table td *,
body[data-route="admin"] #adminPage .crm-sheet td * {
  color: inherit;
}

body[data-route="admin"] #adminPage .smart-table tr:hover td,
body[data-route="admin"] #adminPage .crm-sheet tr:hover td,
body[data-route="admin"] #adminPage .selected-admin-row td {
  background: #f2fbff !important;
  color: var(--fg-admin-ink) !important;
}

body[data-route="admin"] #adminPage .primary-action {
  background: linear-gradient(135deg, var(--fg-admin-blue), var(--fg-admin-cyan)) !important;
  border-color: rgba(23, 105, 255, 0.38) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .secondary-action,
body[data-route="admin"] #adminPage .ghost-action,
body[data-route="admin"] #adminPage .compact-action,
body[data-route="admin"] #adminPage .smart-chip-group button,
body[data-route="admin"] #adminPage .v2-status-buttons button,
body[data-route="admin"] #adminPage .ticket-choice-button,
body[data-route="admin"] #adminPage .status-initial {
  background: #ffffff !important;
  border-color: #b8d4e6 !important;
  color: #0b4f73 !important;
}

body[data-route="admin"] #adminPage .secondary-action:hover,
body[data-route="admin"] #adminPage .ghost-action:hover,
body[data-route="admin"] #adminPage .compact-action:hover,
body[data-route="admin"] #adminPage .smart-chip-group button:hover,
body[data-route="admin"] #adminPage .ticket-choice-button:hover {
  background: #eef8ff !important;
  border-color: var(--fg-admin-blue) !important;
  color: #063b78 !important;
}

body[data-route="admin"] #adminPage .smart-chip-group button.active,
body[data-route="admin"] #adminPage .v2-status-buttons button.active,
body[data-route="admin"] #adminPage .ticket-choice-button.active,
body[data-route="admin"] #adminPage .status-initial.active {
  background: linear-gradient(135deg, var(--fg-admin-blue), var(--fg-admin-green)) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .admin-command-center {
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 217, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #071a2f, #0b4f73) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .admin-command-center *,
body[data-route="admin"] #adminPage .smart-db-status *,
body[data-route="admin"] #adminPage .seo-score-card *,
body[data-route="admin"] #adminPage .timezone-board-head * {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .admin-command-center p,
body[data-route="admin"] #adminPage .admin-command-center small {
  color: #d9f4ff !important;
}

body[data-route="admin"] #adminPage .admin-command-center .admin-insight-card,
body[data-route="admin"] #adminPage .admin-command-center .admin-priority-card {
  background: #ffffff !important;
  border-color: #d7e8f4 !important;
  color: #17324d !important;
}

body[data-route="admin"] #adminPage .admin-command-center .admin-insight-card *,
body[data-route="admin"] #adminPage .admin-command-center .admin-priority-card * {
  color: #17324d !important;
}

body[data-route="admin"] #adminPage .admin-command-center .admin-insight-card span,
body[data-route="admin"] #adminPage .admin-command-center .admin-insight-card small,
body[data-route="admin"] #adminPage .admin-command-center .admin-priority-card span,
body[data-route="admin"] #adminPage .admin-command-center .admin-priority-card small {
  color: #526b82 !important;
}

body[data-route="admin"] #adminPage .admin-command-center .admin-insight-card strong,
body[data-route="admin"] #adminPage .admin-command-center .admin-priority-card strong {
  color: #071a2f !important;
}

body[data-route="admin"] #adminPage .tag.approved,
body[data-route="admin"] #adminPage .smart-status.approved,
body[data-route="admin"] #adminPage .smart-status.existing {
  background: #dcfce7 !important;
  color: #14532d !important;
}

body[data-route="admin"] #adminPage .tag.pending,
body[data-route="admin"] #adminPage .smart-status.pending,
body[data-route="admin"] #adminPage .smart-status.new {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

body[data-route="admin"] #adminPage .tag.blocked,
body[data-route="admin"] #adminPage .smart-status.blocked,
body[data-route="admin"] #adminPage .status-initial.refunded,
body[data-route="admin"] #adminPage .status-initial.disputed {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

body[data-route="admin"] #adminPage #adminSeoTab,
body[data-route="admin"] #adminPage #adminSeoTab .seo-status-panel {
  background: transparent !important;
  color: var(--fg-admin-text) !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero,
body[data-route="admin"] #adminPage #adminSeoTab .seo-advanced-card,
body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article,
body[data-route="admin"] #adminPage #adminSeoTab .seo-action-row,
body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item {
  background: #ffffff !important;
  border-color: var(--fg-admin-line) !important;
  color: var(--fg-admin-text) !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero h3,
body[data-route="admin"] #adminPage #adminSeoTab .seo-advanced-card h4,
body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article strong,
body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item strong {
  color: var(--fg-admin-ink) !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-status-hero p,
body[data-route="admin"] #adminPage #adminSeoTab .seo-table-note,
body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article span,
body[data-route="admin"] #adminPage #adminSeoTab .seo-rank-summary article small,
body[data-route="admin"] #adminPage #adminSeoTab .seo-readiness-item p {
  color: var(--fg-admin-muted) !important;
}

body[data-route="admin"] #adminPage #adminSeoTab .seo-score-card {
  background: linear-gradient(135deg, #071a2f, #1769ff 58%, #10a37f) !important;
  color: #ffffff !important;
}

@media (max-width: 1120px) {
  body[data-route="admin"] #adminPage .crm-tabs {
    background: #ffffff !important;
    border-bottom: 1px solid var(--fg-admin-line) !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs button {
    background: #f4fbff !important;
    border-color: #b8d4e6 !important;
    color: #0b4f73 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs button.active,
  body[data-route="admin"] #adminPage .crm-tabs button:hover {
    background: linear-gradient(135deg, var(--fg-admin-blue), var(--fg-admin-green)) !important;
    color: #ffffff !important;
  }
}

/* Admin browser-verified contrast fix: header and tab rail must stay dark when Bootstrap/Tailwind classes collide. */
body[data-route="admin"] #adminPage .crm-tabs-header {
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 217, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #071a2f, #0b4f73) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  grid-template-columns: minmax(190px, 1fr) auto auto auto auto !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header h1,
body[data-route="admin"] #adminPage .crm-tabs-header h2,
body[data-route="admin"] #adminPage .crm-tabs-header h3,
body[data-route="admin"] #adminPage .crm-tabs-header strong,
body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header p,
body[data-route="admin"] #adminPage .crm-tabs-header small {
  color: #d9f4ff !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs,
body[data-route="admin"] #adminPage .crm-tabs {
  background:
    radial-gradient(circle at 18% 4%, rgba(32, 217, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #071a2f, #0a2d4a 58%, #0b4f73) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs .nav-link,
body[data-route="admin"] #adminPage .crm-tabs button,
body[data-route="admin"] #adminPage .crm-tabs .nav-link {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #eefaff !important;
  opacity: 1 !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs .nav-link.active,
body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs .nav-link:hover,
body[data-route="admin"] #adminPage .crm-tabs button.active,
body[data-route="admin"] #adminPage .crm-tabs button:hover,
body[data-route="admin"] #adminPage .crm-tabs .nav-link.active,
body[data-route="admin"] #adminPage .crm-tabs .nav-link:hover {
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage button.primary-action,
body[data-route="admin"] #adminPage .primary-action {
  background: linear-gradient(135deg, #1769ff, #00a8c8) !important;
  border-color: rgba(23, 105, 255, 0.4) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage button.secondary-action,
body[data-route="admin"] #adminPage button.ghost-action,
body[data-route="admin"] #adminPage .secondary-action,
body[data-route="admin"] #adminPage .ghost-action {
  background: #ffffff !important;
  border-color: #b8d4e6 !important;
  color: #0b4f73 !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header button.secondary-action,
body[data-route="admin"] #adminPage .crm-tabs-header button.ghost-action,
body[data-route="admin"] #adminPage .admin-command-center button.secondary-action,
body[data-route="admin"] #adminPage .admin-command-center button.ghost-action {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .admin-signout-button {
  justify-self: end !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 1120px) {
  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs,
  body[data-route="admin"] #adminPage .crm-tabs {
    background:
      radial-gradient(circle at 18% 4%, rgba(32, 217, 255, 0.18), transparent 30%),
      linear-gradient(90deg, #071a2f, #0b4f73) !important;
  }
}

.admin-icon-action {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 1rem !important;
  font-weight: 1000 !important;
  height: 44px !important;
  justify-content: center !important;
  min-width: 46px !important;
  padding: 0 12px !important;
}

.admin-icon-action:hover {
  background: rgba(255, 255, 255, 0.24) !important;
}

body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs {
  display: none !important;
}

@media (min-width: 1121px) {
  body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs-header,
  body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tab-panel {
    grid-column: 1 !important;
  }
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs.nav.nav-tabs,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs {
  background: linear-gradient(135deg, #ffffff, #eef8ff) !important;
  border-color: #cfe0ec !important;
  color: #071a2f !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header h2,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header .eyebrow,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header p,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header small {
  color: #071a2f !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs.nav.nav-tabs .nav-link,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs button,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs .nav-link,
body[data-route="admin"].admin-soft-theme #adminPage .admin-icon-action,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header button.secondary-action,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header button.ghost-action {
  background: #ffffff !important;
  border-color: #b8d4e6 !important;
  color: #0b4f73 !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs.nav.nav-tabs .nav-link.active,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs button.active,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs .nav-link.active {
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  color: #ffffff !important;
}

.email-automation-panel {
  background: #ffffff !important;
  border: 1px solid #cfe0ec !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(7, 26, 47, 0.08) !important;
  display: grid !important;
  gap: 12px !important;
  margin-top: 12px !important;
  padding: 16px !important;
}

.email-automation-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.email-automation-panel h3 {
  color: #071a2f !important;
  font-size: 1.15rem !important;
  font-weight: 1000 !important;
  margin: 0 !important;
}

.email-automation-panel p {
  color: #526b82 !important;
  margin: 0 !important;
}

.customer-page-action {
  white-space: nowrap !important;
}

/* 21 July login refresh: simplified, compact, and distinct from the dashboard UI. */
body[data-route="login"] #loginPage {
  align-items: center !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(23, 105, 255, 0.24), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(16, 163, 127, 0.2), transparent 25%),
    linear-gradient(135deg, #061425 0%, #0a2138 46%, #06271f 100%) !important;
  min-height: calc(100dvh - 72px) !important;
  overflow-x: hidden !important;
  padding: clamp(14px, 3vw, 28px) !important;
}

body[data-route="login"] .clean-login-shell {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(5, 18, 32, 0.88) !important;
  border: 1px solid rgba(142, 210, 255, 0.22) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32) !important;
  gap: 12px !important;
  max-width: 1080px !important;
  padding: clamp(12px, 2vw, 18px) !important;
}

body[data-route="login"] .clean-login-shell::before {
  display: none !important;
}

body[data-route="login"] .clean-login-head {
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.22), rgba(16, 163, 127, 0.18)),
    rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  min-height: 98px !important;
  padding: clamp(14px, 2.4vw, 22px) !important;
}

body[data-route="login"] .clean-login-mark {
  background: linear-gradient(135deg, #2383ff, #14d8a0) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  height: 54px !important;
  width: 54px !important;
}

body[data-route="login"] .clean-login-head .eyebrow {
  color: #8ee9ff !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
}

body[data-route="login"] .clean-login-head h2 {
  color: #ffffff !important;
  font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
  line-height: 1.05 !important;
}

body[data-route="login"] .clean-login-head p:not(.eyebrow) {
  color: #d7eaff !important;
  font-size: clamp(0.86rem, 1.4vw, 1rem) !important;
  font-weight: 700 !important;
}

body[data-route="login"] .clean-login-status {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(142, 233, 255, 0.24) !important;
  border-radius: 14px !important;
  min-width: 126px !important;
  padding: 10px 12px !important;
}

body[data-route="login"] .clean-login-status span {
  color: #91ffd8 !important;
}

body[data-route="login"] .login-access-strip {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(142, 210, 255, 0.16) !important;
  border-radius: 16px !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding: 8px !important;
}

body[data-route="login"] .login-access-strip span {
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  display: grid !important;
  gap: 2px !important;
  padding: 9px 12px !important;
}

body[data-route="login"] .login-access-strip strong {
  color: #ffffff !important;
  font-size: 0.88rem !important;
}

body[data-route="login"] .login-access-strip small {
  color: #a9bdd2 !important;
  font-weight: 800 !important;
}

body[data-route="login"] .clean-login-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-route="login"] .clean-login-card {
  background:
    radial-gradient(circle at top right, rgba(35, 131, 255, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(197, 225, 245, 0.55) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18) !important;
  gap: 12px !important;
  padding: 14px !important;
}

body[data-route="login"] .clean-login-card .login-card-top {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

body[data-route="login"] .clean-login-card .login-card-icon {
  background: #08213a !important;
  border: 1px solid rgba(23, 105, 255, 0.24) !important;
  border-radius: 12px !important;
  color: #7ddfff !important;
  display: grid !important;
  font-size: 0.72rem !important;
  font-weight: 1000 !important;
  height: 38px !important;
  place-items: center !important;
  width: 38px !important;
}

body[data-route="login"] .clean-login-card .eyebrow {
  color: #1769ff !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.08em !important;
}

body[data-route="login"] .clean-login-card .login-card-top h2 {
  color: #06192d !important;
  font-size: 1rem !important;
}

body[data-route="login"] .clean-login-card .form-stack {
  gap: 8px !important;
}

body[data-route="login"] .clean-login-card label {
  color: #17344d !important;
  font-size: 0.74rem !important;
  gap: 5px !important;
}

body[data-route="login"] .clean-login-card input {
  background: #f8fcff !important;
  border: 1px solid #c8ddec !important;
  border-radius: 12px !important;
  color: #06192d !important;
  min-height: 40px !important;
  padding: 9px 11px !important;
}

body[data-route="login"] .clean-login-card input:focus {
  border-color: #2383ff !important;
  box-shadow: 0 0 0 3px rgba(35, 131, 255, 0.16) !important;
  outline: none !important;
}

body[data-route="login"] .clean-login-card .primary-action {
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(23, 105, 255, 0.24) !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  min-height: 40px !important;
}

body[data-route="login"] .clean-login-note {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(142, 210, 255, 0.14) !important;
  border-radius: 14px !important;
  color: #c7d9e8 !important;
  font-size: 0.76rem !important;
  padding: 9px 12px !important;
}

@media (max-width: 900px) {
  body[data-route="login"] .clean-login-head,
  body[data-route="login"] .clean-login-grid,
  body[data-route="login"] .login-access-strip {
    grid-template-columns: 1fr !important;
  }

  body[data-route="login"] .clean-login-status {
    min-width: 0 !important;
  }
}

@media (max-width: 560px) {
  body[data-route="login"] #loginPage {
    align-items: flex-start !important;
    min-height: 100dvh !important;
    padding: 10px !important;
  }

  body[data-route="login"] .clean-login-head {
    gap: 10px !important;
    padding: 14px !important;
  }

  body[data-route="login"] .clean-login-mark {
    height: 46px !important;
    width: 46px !important;
  }

  body[data-route="login"] .login-access-strip {
    display: none !important;
  }
}

/* Fresh simple CRM design without the back-office agent layer. */
body[data-route="admin"] .backoffice-agent-fab,
body[data-route="admin"] .backoffice-agent-panel,
body[data-route="agent"] .backoffice-agent-fab,
body[data-route="agent"] .backoffice-agent-panel,
body[data-route="products-admin"] .backoffice-agent-fab,
body[data-route="products-admin"] .backoffice-agent-panel {
  display: none !important;
}

body[data-route="admin"],
body[data-route="agent"],
body[data-route="products-admin"] {
  background: #eef5fb !important;
}

body[data-route="admin"] #adminPage,
body[data-route="agent"] #agentPage,
body[data-route="products-admin"] #productAdminPage {
  background:
    radial-gradient(circle at top left, rgba(23, 105, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 163, 127, 0.12), transparent 28%),
    #eef5fb !important;
  color: #0b1f33 !important;
  min-height: 100dvh !important;
  padding: 12px !important;
}

body[data-route="admin"] #adminPage .backpanel-top-tickets,
body[data-route="agent"] #agentPage .backpanel-top-tickets,
body[data-route="products-admin"] #productAdminPage .backpanel-top-tickets {
  margin: 0 auto 8px !important;
  max-width: 1440px !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell,
body[data-route="agent"] #agentPage .crm-tabs-shell,
body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
  background: #ffffff !important;
  border: 1px solid #d7e5ef !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 52px rgba(8, 31, 52, 0.1) !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: 208px minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: calc(100dvh - 24px) !important;
  margin: 0 auto !important;
  max-width: 1440px !important;
  overflow: hidden !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header,
body[data-route="agent"] #agentPage .crm-tabs-header,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header {
  align-items: center !important;
  background: linear-gradient(135deg, #071a2f, #0c3b5d) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  display: grid !important;
  gap: 12px !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(190px, 1fr) auto auto auto auto !important;
  min-height: 70px !important;
  padding: 12px 14px !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow,
body[data-route="agent"] #agentPage .crm-tabs-header .eyebrow,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header .eyebrow {
  color: #8ee9ff !important;
  font-size: 0.68rem !important;
  margin: 0 !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header h2,
body[data-route="agent"] #agentPage .crm-tabs-header h2,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header h2 {
  color: #ffffff !important;
  font-size: 1.28rem !important;
  font-weight: 1000 !important;
  margin: 0 !important;
}

body[data-route="admin"] #adminPage .backpanel-search-shell,
body[data-route="agent"] #agentPage .backpanel-search-shell {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  display: flex !important;
  min-width: 260px !important;
  overflow: hidden !important;
  padding: 3px !important;
}

body[data-route="admin"] #adminPage .backpanel-search-icon,
body[data-route="agent"] #agentPage .backpanel-search-icon {
  background: #1769ff !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  height: 34px !important;
  min-width: 34px !important;
}

body[data-route="admin"] #adminPage .crm-search,
body[data-route="agent"] #agentPage .crm-search {
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  font-size: 0.84rem !important;
  min-height: 34px !important;
  min-width: 210px !important;
}

body[data-route="admin"] #adminPage .crm-search::placeholder,
body[data-route="agent"] #agentPage .crm-search::placeholder {
  color: rgba(255, 255, 255, 0.68) !important;
}

body[data-route="admin"] #adminPage .admin-icon-action,
body[data-route="admin"] #adminPage .admin-signout-button,
body[data-route="agent"] #agentPage .ghost-action,
body[data-route="products-admin"] #productAdminPage .ghost-action {
  background: rgba(255, 255, 255, 0.11) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
}

body[data-route="admin"] #adminPage .crm-tabs,
body[data-route="agent"] #agentPage .crm-tabs,
body[data-route="products-admin"] #productAdminPage .crm-tabs {
  align-content: start !important;
  background: #f7fbff !important;
  border: 0 !important;
  border-right: 1px solid #dceaf3 !important;
  display: grid !important;
  gap: 6px !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
  max-height: none !important;
  overflow-y: auto !important;
  padding: 12px !important;
}

body[data-route="admin"] #adminPage .crm-tabs button,
body[data-route="agent"] #agentPage .crm-tabs button,
body[data-route="products-admin"] #productAdminPage .crm-tabs button {
  align-items: center !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: #34536d !important;
  display: flex !important;
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  justify-content: flex-start !important;
  min-height: 38px !important;
  padding: 9px 10px !important;
  text-align: left !important;
  width: 100% !important;
}

body[data-route="admin"] #adminPage .crm-tabs button:hover,
body[data-route="agent"] #agentPage .crm-tabs button:hover,
body[data-route="products-admin"] #productAdminPage .crm-tabs button:hover {
  background: #eef6ff !important;
  color: #1769ff !important;
}

body[data-route="admin"] #adminPage .crm-tabs button.active,
body[data-route="agent"] #agentPage .crm-tabs button.active,
body[data-route="products-admin"] #productAdminPage .crm-tabs button.active {
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 20px rgba(23, 105, 255, 0.22) !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell.tabs-collapsed,
body[data-route="agent"] #agentPage .crm-tabs-shell.tabs-collapsed,
body[data-route="products-admin"] #productAdminPage .crm-tabs-shell.tabs-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell.tabs-collapsed .crm-tabs,
body[data-route="agent"] #agentPage .crm-tabs-shell.tabs-collapsed .crm-tabs,
body[data-route="products-admin"] #productAdminPage .crm-tabs-shell.tabs-collapsed .crm-tabs {
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  pointer-events: none !important;
}

body[data-route="admin"] #adminPage .crm-tab-panel,
body[data-route="agent"] #agentPage .crm-tab-panel,
body[data-route="products-admin"] #productAdminPage .crm-tab-panel {
  background: #ffffff !important;
  display: none !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  height: 100% !important;
  overflow-y: auto !important;
  padding: 14px !important;
}

body[data-route="admin"] #adminPage .crm-tab-panel.active,
body[data-route="agent"] #agentPage .crm-tab-panel.active,
body[data-route="products-admin"] #productAdminPage .crm-tab-panel.active {
  display: block !important;
}

body[data-route="admin"] #adminPage .smart-dashboard-hero,
body[data-route="agent"] #agentPage .smart-dashboard-hero,
body[data-route="products-admin"] #productAdminPage .smart-dashboard-hero,
body[data-route="admin"] #adminPage .admin-command-center,
body[data-route="admin"] #adminPage .smart-kpi-card,
body[data-route="agent"] #agentPage .smart-kpi-card,
body[data-route="admin"] #adminPage .smart-chart-card,
body[data-route="admin"] #adminPage .crm-sheet,
body[data-route="agent"] #agentPage .crm-sheet,
body[data-route="products-admin"] #productAdminPage .crm-sheet,
body[data-route="admin"] #adminPage .smart-table-wrap,
body[data-route="agent"] #agentPage .smart-table-wrap {
  background: #ffffff !important;
  border: 1px solid #dbe8f1 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(8, 31, 52, 0.08) !important;
  color: #0b1f33 !important;
}

body[data-route="admin"] #adminPage .smart-dashboard-hero,
body[data-route="agent"] #agentPage .smart-dashboard-hero {
  align-items: center !important;
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  padding: 14px !important;
}

body[data-route="admin"] #adminPage .smart-dashboard-hero h3,
body[data-route="agent"] #agentPage .smart-dashboard-hero h3,
body[data-route="admin"] #adminPage .admin-command-copy h3 {
  color: #071a2f !important;
  font-size: 1.15rem !important;
  font-weight: 1000 !important;
}

body[data-route="admin"] #adminPage .smart-dashboard-hero p,
body[data-route="agent"] #agentPage .smart-dashboard-hero p,
body[data-route="admin"] #adminPage .admin-command-copy p {
  color: #516b82 !important;
  font-size: 0.86rem !important;
}

body[data-route="admin"] #adminPage .admin-command-center {
  align-items: stretch !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(220px, 0.8fr) 120px minmax(320px, 1.4fr) !important;
  margin-bottom: 12px !important;
  padding: 14px !important;
}

body[data-route="admin"] #adminPage .admin-command-orb {
  align-items: center !important;
  align-self: stretch !important;
  background: linear-gradient(135deg, #071a2f, #1769ff) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  display: grid !important;
  justify-items: center !important;
  min-height: 120px !important;
  padding: 12px !important;
}

body[data-route="admin"] #adminPage .admin-command-orb strong {
  color: #ffffff !important;
  font-size: 1.45rem !important;
}

body[data-route="admin"] #adminPage .admin-insight-grid {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-route="admin"] #adminPage .admin-insight-card {
  background: #f8fbff !important;
  border: 1px solid #dceaf3 !important;
  border-radius: 14px !important;
  color: #0b1f33 !important;
  display: grid !important;
  gap: 3px !important;
  min-height: 82px !important;
  padding: 10px !important;
  text-align: left !important;
}

body[data-route="admin"] #adminPage .admin-insight-card strong {
  color: #071a2f !important;
  font-size: 1.1rem !important;
}

body[data-route="admin"] #adminPage .admin-insight-card span,
body[data-route="admin"] #adminPage .admin-insight-card small {
  color: #516b82 !important;
  font-size: 0.72rem !important;
}

body[data-route="admin"] #adminPage .smart-kpi-grid,
body[data-route="agent"] #agentPage .smart-kpi-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  margin-bottom: 12px !important;
}

body[data-route="admin"] #adminPage .smart-kpi-card,
body[data-route="agent"] #agentPage .smart-kpi-card {
  min-height: 92px !important;
  padding: 12px !important;
}

body[data-route="admin"] #adminPage .smart-kpi-card strong,
body[data-route="agent"] #agentPage .smart-kpi-card strong {
  color: #071a2f !important;
  font-size: 1.28rem !important;
}

body[data-route="admin"] #adminPage .smart-kpi-card span,
body[data-route="admin"] #adminPage .smart-kpi-card small,
body[data-route="agent"] #agentPage .smart-kpi-card span,
body[data-route="agent"] #agentPage .smart-kpi-card small {
  color: #526b82 !important;
}

body[data-route="admin"] #adminPage .smart-chart-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-route="admin"] #adminPage .smart-table,
body[data-route="agent"] #agentPage .smart-table,
body[data-route="products-admin"] #productAdminPage .smart-table,
body[data-route="admin"] #adminPage .crm-sheet table,
body[data-route="agent"] #agentPage .crm-sheet table,
body[data-route="products-admin"] #productAdminPage .crm-sheet table {
  background: #ffffff !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: #0b1f33 !important;
  font-size: 0.8rem !important;
  width: 100% !important;
}

body[data-route="admin"] #adminPage .smart-table th,
body[data-route="agent"] #agentPage .smart-table th,
body[data-route="products-admin"] #productAdminPage .smart-table th,
body[data-route="admin"] #adminPage .crm-sheet th,
body[data-route="agent"] #agentPage .crm-sheet th,
body[data-route="products-admin"] #productAdminPage .crm-sheet th {
  background: #f1f7fc !important;
  color: #34536d !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.04em !important;
  padding: 10px !important;
  text-transform: uppercase !important;
}

body[data-route="admin"] #adminPage .smart-table td,
body[data-route="agent"] #agentPage .smart-table td,
body[data-route="products-admin"] #productAdminPage .smart-table td,
body[data-route="admin"] #adminPage .crm-sheet td,
body[data-route="agent"] #agentPage .crm-sheet td,
body[data-route="products-admin"] #productAdminPage .crm-sheet td {
  border-bottom: 1px solid #edf3f8 !important;
  color: #14304a !important;
  padding: 9px 10px !important;
  vertical-align: middle !important;
}

body[data-route="admin"] #adminPage .primary-action,
body[data-route="agent"] #agentPage .primary-action,
body[data-route="products-admin"] #productAdminPage .primary-action {
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  border: 0 !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .secondary-action,
body[data-route="admin"] #adminPage .compact-action,
body[data-route="agent"] #agentPage .secondary-action,
body[data-route="agent"] #agentPage .compact-action,
body[data-route="products-admin"] #productAdminPage .secondary-action,
body[data-route="products-admin"] #productAdminPage .compact-action {
  background: #eef6ff !important;
  border: 1px solid #cfe0ec !important;
  color: #1769ff !important;
}

@media (max-width: 1180px) {
  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    grid-template-columns: 164px minmax(0, 1fr) !important;
  }

  body[data-route="admin"] #adminPage .smart-kpi-grid,
  body[data-route="agent"] #agentPage .smart-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body[data-route="admin"] #adminPage .admin-command-center {
    grid-template-columns: 1fr !important;
  }

  body[data-route="admin"] #adminPage .admin-command-orb {
    display: none !important;
  }

  body[data-route="admin"] #adminPage .smart-chart-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-route="admin"] #adminPage,
  body[data-route="agent"] #agentPage,
  body[data-route="products-admin"] #productAdminPage {
    padding: 0 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    border-radius: 0 !important;
    display: block !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-header,
  body[data-route="agent"] #agentPage .crm-tabs-header,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-header {
    grid-template-columns: 1fr auto auto auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
  }

  body[data-route="admin"] #adminPage .backpanel-search-shell,
  body[data-route="agent"] #agentPage .backpanel-search-shell {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[data-route="admin"] #adminPage .crm-search,
  body[data-route="agent"] #agentPage .crm-search {
    min-width: 0 !important;
    width: 100% !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs,
  body[data-route="agent"] #agentPage .crm-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs {
    border-right: 0 !important;
    border-bottom: 1px solid #dceaf3 !important;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px !important;
    position: sticky !important;
    top: 70px !important;
    z-index: 19 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs button,
  body[data-route="agent"] #agentPage .crm-tabs button,
  body[data-route="products-admin"] #productAdminPage .crm-tabs button {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  body[data-route="admin"] #adminPage .crm-tab-panel,
  body[data-route="agent"] #agentPage .crm-tab-panel,
  body[data-route="products-admin"] #productAdminPage .crm-tab-panel {
    height: auto !important;
    min-height: calc(100dvh - 132px) !important;
    overflow: visible !important;
    padding: 10px !important;
  }

  body[data-route="admin"] #adminPage .smart-kpi-grid,
  body[data-route="agent"] #agentPage .smart-kpi-grid,
  body[data-route="admin"] #adminPage .admin-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body[data-route="admin"] #adminPage .crm-tabs-header,
  body[data-route="agent"] #agentPage .crm-tabs-header,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-header {
    grid-template-columns: 1fr auto !important;
  }

  body[data-route="admin"] #adminPage .admin-signout-button,
  body[data-route="agent"] #agentPage .ghost-action,
  body[data-route="products-admin"] #productAdminPage .ghost-action {
    font-size: 0.72rem !important;
    padding: 7px 10px !important;
  }

  body[data-route="admin"] #adminPage .smart-kpi-grid,
  body[data-route="agent"] #agentPage .smart-kpi-grid,
  body[data-route="admin"] #adminPage .admin-insight-grid {
    grid-template-columns: 1fr !important;
  }
}

body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs {
  display: none !important;
}

body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs-header,
body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tab-panel {
  grid-column: 1 !important;
}

body[data-route="admin"].admin-soft-theme #adminPage,
body[data-route="admin"].admin-soft-theme {
  background: #f6fbff !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header {
  background: linear-gradient(135deg, #ffffff, #eef8ff) !important;
  border-bottom: 1px solid #dceaf3 !important;
  color: #071a2f !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header h2,
body[data-route="admin"].admin-soft-theme #adminPage .crm-tabs-header .eyebrow {
  color: #071a2f !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .backpanel-search-shell {
  background: #ffffff !important;
  border-color: #cfe0ec !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-search {
  color: #071a2f !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .crm-search::placeholder {
  color: #6d8498 !important;
}

body[data-route="admin"].admin-soft-theme #adminPage .admin-icon-action,
body[data-route="admin"].admin-soft-theme #adminPage .admin-signout-button {
  background: #ffffff !important;
  border-color: #cfe0ec !important;
  color: #0b4f73 !important;
}

/* Fresh smart CRM overview merged into the live admin back panel. */
body[data-route="admin"] #adminPage .fresh-crm-dashboard {
  display: grid !important;
  gap: 12px !important;
}

body[data-route="admin"] #adminPage .fresh-crm-snapshot {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(280px, 1.2fr) minmax(0, 1fr) !important;
}

body[data-route="admin"] #adminPage .fresh-crm-snapshot .smart-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 0 !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero,
body[data-route="admin"] #adminPage .fresh-crm-card,
body[data-route="admin"] #adminPage .fresh-crm-details {
  background: #ffffff !important;
  border: 1px solid #dbe8f1 !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(8, 31, 52, 0.08) !important;
  color: #071a2f !important;
  overflow: hidden !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero {
  align-items: center !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(23, 105, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef9ff) !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  min-height: 118px !important;
  padding: 16px !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero .eyebrow {
  color: #1769ff !important;
  font-size: 0.7rem !important;
  margin: 0 0 5px !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero h3 {
  color: #071a2f !important;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem) !important;
  font-weight: 1000 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero p,
body[data-route="admin"] #adminPage .fresh-crm-card-head p {
  color: #526b82 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin: 5px 0 0 !important;
}

body[data-route="admin"] #adminPage .fresh-crm-orb {
  align-items: center !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(135deg, #1769ff, #00b8d9, #10a37f) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 34px rgba(23, 105, 255, 0.26) !important;
  color: #ffffff !important;
  display: grid !important;
  font-size: 1.45rem !important;
  font-weight: 1000 !important;
  height: 88px !important;
  justify-items: center !important;
  justify-self: end !important;
  transform: rotate(-7deg) !important;
  width: 88px !important;
}

body[data-route="admin"] #adminPage .fresh-crm-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

body[data-route="admin"] #adminPage .fresh-crm-actions.two {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

body[data-route="admin"] #adminPage .fresh-crm-priority {
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1fr) !important;
}

body[data-route="admin"] #adminPage .fresh-crm-priority .admin-insight-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr)) !important;
}

body[data-route="admin"] #adminPage .fresh-crm-workspace {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1fr) 300px 330px !important;
}

body[data-route="admin"] #adminPage .fresh-crm-bottom {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) minmax(260px, 0.8fr) !important;
}

body[data-route="admin"] #adminPage .fresh-crm-card,
body[data-route="admin"] #adminPage .fresh-crm-details {
  min-height: 0 !important;
}

body[data-route="admin"] #adminPage .fresh-crm-card-head {
  align-items: center !important;
  border-bottom: 1px solid #dce8f3 !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: space-between !important;
  padding: 12px 14px !important;
}

body[data-route="admin"] #adminPage .fresh-crm-card-head h3 {
  color: #071a2f !important;
  font-size: 0.95rem !important;
  font-weight: 1000 !important;
  margin: 0 !important;
}

body[data-route="admin"] #adminPage .fresh-case-list,
body[data-route="admin"] #adminPage .fresh-path-list,
body[data-route="admin"] #adminPage .fresh-activity-list {
  display: grid !important;
  gap: 8px !important;
  padding: 10px !important;
}

body[data-route="admin"] #adminPage .fresh-case-item {
  align-items: center !important;
  background: #f8fbff !important;
  border: 1px solid #dfeaf4 !important;
  border-radius: 15px !important;
  color: #071a2f !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  min-height: 62px !important;
  padding: 9px !important;
  text-align: left !important;
}

body[data-route="admin"] #adminPage .fresh-case-item.active,
body[data-route="admin"] #adminPage .fresh-case-item:hover {
  background: #eef7ff !important;
  border-color: #b9d8ef !important;
}

body[data-route="admin"] #adminPage .fresh-case-icon,
body[data-route="admin"] #adminPage .fresh-profile-top > span {
  align-items: center !important;
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  display: grid !important;
  font-size: 0.74rem !important;
  font-weight: 1000 !important;
  height: 40px !important;
  justify-items: center !important;
  width: 40px !important;
}

body[data-route="admin"] #adminPage .fresh-case-item b {
  color: #071a2f !important;
  display: block !important;
  font-size: 0.84rem !important;
  font-weight: 1000 !important;
}

body[data-route="admin"] #adminPage .fresh-case-item small {
  color: #65788c !important;
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-route="admin"] #adminPage .fresh-case-item em {
  border-radius: 999px !important;
  font-size: 0.63rem !important;
  font-style: normal !important;
  font-weight: 1000 !important;
  padding: 6px 8px !important;
  white-space: nowrap !important;
}

body[data-route="admin"] #adminPage .fresh-case-item em.approved {
  background: #dcfce7 !important;
  color: #166534 !important;
}

body[data-route="admin"] #adminPage .fresh-case-item em.pending {
  background: #fef3c7 !important;
  color: #92400e !important;
}

body[data-route="admin"] #adminPage .fresh-case-item em.refunded,
body[data-route="admin"] #adminPage .fresh-case-item em.disputed {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

body[data-route="admin"] #adminPage .fresh-path-step {
  background: #f8fbff !important;
  border: 1px solid #dfeaf4 !important;
  border-radius: 15px !important;
  color: #071a2f !important;
  display: grid !important;
  gap: 4px !important;
  padding: 10px !important;
}

body[data-route="admin"] #adminPage .fresh-path-step b {
  color: #071a2f !important;
  font-size: 0.8rem !important;
}

body[data-route="admin"] #adminPage .fresh-path-step span {
  color: #65788c !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
}

body[data-route="admin"] #adminPage .fresh-path-step i {
  background: #e8f0f7 !important;
  border-radius: 999px !important;
  display: block !important;
  height: 7px !important;
  margin-top: 6px !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

body[data-route="admin"] #adminPage .fresh-path-step i::after {
  background: linear-gradient(90deg, #1769ff, #10a37f) !important;
  border-radius: inherit !important;
  content: "" !important;
  height: 7px !important;
  left: 0 !important;
  position: absolute !important;
  top: 0 !important;
  width: var(--w) !important;
}

body[data-route="admin"] #adminPage .fresh-crm-details {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 184, 217, 0.2), transparent 34%),
    rgba(9, 24, 42, 0.94) !important;
  color: #ffffff !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
}

body[data-route="admin"] #adminPage .fresh-profile-top {
  align-items: center !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
}

body[data-route="admin"] #adminPage .fresh-profile-top h3 {
  color: #ffffff !important;
  font-size: 0.98rem !important;
  font-weight: 1000 !important;
  margin: 0 !important;
}

body[data-route="admin"] #adminPage .fresh-profile-top p {
  color: #bdd5e8 !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  margin: 3px 0 0 !important;
}

body[data-route="admin"] #adminPage .fresh-detail-grid {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: 1fr 1fr !important;
}

body[data-route="admin"] #adminPage .fresh-detail-grid > div {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 13px !important;
  padding: 8px !important;
}

body[data-route="admin"] #adminPage .fresh-detail-grid small {
  color: #91abc3 !important;
  display: block !important;
  font-size: 0.56rem !important;
  font-weight: 1000 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body[data-route="admin"] #adminPage .fresh-detail-grid b {
  color: #ffffff !important;
  display: block !important;
  font-size: 0.76rem !important;
  margin-top: 4px !important;
}

body[data-route="admin"] #adminPage .fresh-activity-item {
  background: #f8fbff !important;
  border: 1px solid #dfeaf4 !important;
  border-left: 4px solid #1769ff !important;
  border-radius: 14px !important;
  color: #071a2f !important;
  display: grid !important;
  gap: 3px !important;
  padding: 9px 10px !important;
  text-align: left !important;
}

body[data-route="admin"] #adminPage .fresh-activity-item b {
  color: #071a2f !important;
  font-size: 0.78rem !important;
}

body[data-route="admin"] #adminPage .fresh-activity-item span {
  color: #65788c !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
}

body[data-route="admin"] #adminPage .fresh-crm-bottom .smart-chart-card {
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

body[data-route="admin"] #adminPage .fresh-crm-bottom .smart-chart-title {
  display: none !important;
}

/* Full-page back panel with compact icon-only left tabs. */
body[data-route="admin"] #adminPage,
body[data-route="agent"] #agentPage,
body[data-route="products-admin"] #productAdminPage {
  padding: 8px !important;
}

body[data-route="admin"] #adminPage .backpanel-top-tickets,
body[data-route="agent"] #agentPage .backpanel-top-tickets,
body[data-route="products-admin"] #productAdminPage .backpanel-top-tickets,
body[data-route="admin"] #adminPage .crm-tabs-shell,
body[data-route="agent"] #agentPage .crm-tabs-shell,
body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
  max-width: none !important;
  width: 100% !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell,
body[data-route="agent"] #agentPage .crm-tabs-shell,
body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
  border-radius: 16px !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  height: calc(100dvh - 16px) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header,
body[data-route="agent"] #agentPage .crm-tabs-header,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header {
  background: linear-gradient(135deg, #ffffff, #f2f8ff) !important;
  border-bottom: 1px solid #dceaf3 !important;
  color: #071a2f !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow,
body[data-route="agent"] #agentPage .crm-tabs-header .eyebrow,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header .eyebrow {
  color: #1769ff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header h2,
body[data-route="agent"] #agentPage .crm-tabs-header h2,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header h2 {
  color: #071a2f !important;
}

body[data-route="admin"] #adminPage .backpanel-search-shell,
body[data-route="agent"] #agentPage .backpanel-search-shell {
  background: #ffffff !important;
  border-color: #cfe0ec !important;
}

body[data-route="admin"] #adminPage .crm-search,
body[data-route="agent"] #agentPage .crm-search {
  color: #071a2f !important;
}

body[data-route="admin"] #adminPage .crm-search::placeholder,
body[data-route="agent"] #agentPage .crm-search::placeholder {
  color: #6d8498 !important;
}

body[data-route="admin"] #adminPage .admin-icon-action,
body[data-route="admin"] #adminPage .admin-signout-button,
body[data-route="agent"] #agentPage .ghost-action,
body[data-route="products-admin"] #productAdminPage .ghost-action {
  background: #ffffff !important;
  border-color: #cfe0ec !important;
  color: #0b4f73 !important;
}

body[data-route="admin"] #adminPage .crm-tabs,
body[data-route="agent"] #agentPage .crm-tabs,
body[data-route="products-admin"] #productAdminPage .crm-tabs {
  align-content: start !important;
  background:
    radial-gradient(circle at top, rgba(23, 105, 255, 0.3), transparent 34%),
    linear-gradient(180deg, #061425 0%, #08213a 56%, #071a2f 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: grid !important;
  gap: 5px !important;
  grid-template-columns: 34px !important;
  justify-items: center !important;
  overflow: visible !important;
  padding: 9px 12px !important;
}

body[data-route="admin"] #adminPage .crm-tabs button,
body[data-route="agent"] #agentPage .crm-tabs button,
body[data-route="products-admin"] #productAdminPage .crm-tabs button {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: transparent !important;
  display: grid !important;
  font-size: 0 !important;
  height: 34px !important;
  justify-content: center !important;
  justify-items: center !important;
  min-height: 34px !important;
  overflow: visible !important;
  padding: 0 !important;
  position: relative !important;
  text-align: center !important;
  width: 34px !important;
}

body[data-route="admin"] #adminPage .crm-tabs button::before,
body[data-route="agent"] #agentPage .crm-tabs button::before,
body[data-route="products-admin"] #productAdminPage .crm-tabs button::before {
  color: #e5f6ff !important;
  content: attr(data-icon) !important;
  font-size: 0.64rem !important;
  font-weight: 1000 !important;
  letter-spacing: 0 !important;
}

body[data-route="admin"] #adminPage .crm-tabs button::after,
body[data-route="agent"] #agentPage .crm-tabs button::after,
body[data-route="products-admin"] #productAdminPage .crm-tabs button::after {
  background: #ffffff !important;
  border: 1px solid #d8e7f2 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(7, 26, 47, 0.18) !important;
  color: #071a2f !important;
  content: attr(data-label) !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  left: calc(100% + 10px) !important;
  max-width: 180px !important;
  opacity: 0 !important;
  padding: 7px 9px !important;
  pointer-events: none !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) translateX(-4px) !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
  white-space: nowrap !important;
  z-index: 50 !important;
}

body[data-route="admin"] #adminPage .crm-tabs button:hover::after,
body[data-route="agent"] #agentPage .crm-tabs button:hover::after,
body[data-route="products-admin"] #productAdminPage .crm-tabs button:hover::after,
body[data-route="admin"] #adminPage .crm-tabs button:focus-visible::after,
body[data-route="agent"] #agentPage .crm-tabs button:focus-visible::after,
body[data-route="products-admin"] #productAdminPage .crm-tabs button:focus-visible::after {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(0) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button:hover,
body[data-route="agent"] #agentPage .crm-tabs button:hover,
body[data-route="products-admin"] #productAdminPage .crm-tabs button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(142, 233, 255, 0.36) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button.active,
body[data-route="agent"] #agentPage .crm-tabs button.active,
body[data-route="products-admin"] #productAdminPage .crm-tabs button.active {
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 9px 20px rgba(23, 105, 255, 0.34) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button.active::before,
body[data-route="agent"] #agentPage .crm-tabs button.active::before,
body[data-route="products-admin"] #productAdminPage .crm-tabs button.active::before {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tab-panel,
body[data-route="agent"] #agentPage .crm-tab-panel,
body[data-route="products-admin"] #productAdminPage .crm-tab-panel {
  padding: 12px !important;
}

@media (max-width: 760px) {
  body[data-route="admin"] #adminPage,
  body[data-route="agent"] #agentPage,
  body[data-route="products-admin"] #productAdminPage {
    padding: 0 !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs,
  body[data-route="agent"] #agentPage .crm-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs {
    background: #071a2f !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs button::after,
  body[data-route="agent"] #agentPage .crm-tabs button::after,
  body[data-route="products-admin"] #productAdminPage .crm-tabs button::after {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  body[data-route="admin"] #adminPage .fresh-crm-snapshot,
  body[data-route="admin"] #adminPage .fresh-crm-workspace,
  body[data-route="admin"] #adminPage .fresh-crm-bottom,
  body[data-route="admin"] #adminPage .fresh-crm-priority {
    grid-template-columns: 1fr !important;
  }

  body[data-route="admin"] #adminPage .fresh-crm-priority .admin-insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body[data-route="admin"] #adminPage .fresh-crm-snapshot .smart-kpi-grid,
  body[data-route="admin"] #adminPage .fresh-crm-priority .admin-insight-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-route="admin"] #adminPage .fresh-crm-hero {
    grid-template-columns: 1fr !important;
  }

  body[data-route="admin"] #adminPage .fresh-crm-orb {
    height: 70px !important;
    justify-self: start !important;
    width: 70px !important;
  }

  body[data-route="admin"] #adminPage .fresh-case-item {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  body[data-route="admin"] #adminPage .fresh-case-item em {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  body[data-route="admin"] #adminPage .fresh-detail-grid,
  body[data-route="admin"] #adminPage .fresh-crm-actions.two {
    grid-template-columns: 1fr !important;
  }
}

/* Back-panel color polish: balanced dark rail, bright header, readable CRM cards. */
body[data-route="admin"],
body[data-route="agent"],
body[data-route="products-admin"] {
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 105, 255, 0.16), transparent 26%),
    radial-gradient(circle at 96% 8%, rgba(16, 163, 127, 0.13), transparent 28%),
    #edf5fb !important;
}

body[data-route="admin"] #adminPage,
body[data-route="agent"] #agentPage,
body[data-route="products-admin"] #productAdminPage {
  background:
    linear-gradient(135deg, rgba(248, 252, 255, 0.98), rgba(237, 248, 255, 0.94)),
    #edf5fb !important;
}

body[data-route="admin"] #adminPage .crm-tabs-shell,
body[data-route="agent"] #agentPage .crm-tabs-shell,
body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
  background: #f8fbff !important;
  border-color: #cbddea !important;
  box-shadow: 0 18px 48px rgba(7, 26, 47, 0.14) !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header,
body[data-route="agent"] #agentPage .crm-tabs-header,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header {
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 105, 255, 0.1), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f9ff 55%, #eefaf7 100%) !important;
  border-bottom: 1px solid #cfe0ec !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header h2,
body[data-route="agent"] #agentPage .crm-tabs-header h2,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header h2 {
  color: #06192d !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header .eyebrow,
body[data-route="agent"] #agentPage .crm-tabs-header .eyebrow,
body[data-route="products-admin"] #productAdminPage .crm-tabs-header .eyebrow {
  color: #0b64d8 !important;
}

body[data-route="admin"] #adminPage .crm-tabs,
body[data-route="agent"] #agentPage .crm-tabs,
body[data-route="products-admin"] #productAdminPage .crm-tabs {
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 217, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #06192d 0%, #08243e 48%, #051523 100%) !important;
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button,
body[data-route="agent"] #agentPage .crm-tabs button,
body[data-route="products-admin"] #productAdminPage .crm-tabs button {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(203, 230, 246, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button::before,
body[data-route="agent"] #agentPage .crm-tabs button::before,
body[data-route="products-admin"] #productAdminPage .crm-tabs button::before {
  color: #dff6ff !important;
}

body[data-route="admin"] #adminPage .crm-tabs button:hover,
body[data-route="agent"] #agentPage .crm-tabs button:hover,
body[data-route="products-admin"] #productAdminPage .crm-tabs button:hover {
  background: rgba(32, 217, 255, 0.2) !important;
  border-color: rgba(142, 233, 255, 0.44) !important;
}

body[data-route="admin"] #adminPage .crm-tabs button.active,
body[data-route="agent"] #agentPage .crm-tabs button.active,
body[data-route="products-admin"] #productAdminPage .crm-tabs button.active {
  background: linear-gradient(135deg, #1769ff 0%, #00a8c8 54%, #10a37f 100%) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 10px 24px rgba(23, 105, 255, 0.36) !important;
}

body[data-route="admin"] #adminPage .backpanel-search-shell,
body[data-route="agent"] #agentPage .backpanel-search-shell {
  background: #ffffff !important;
  border-color: #bcd4e6 !important;
  box-shadow: 0 8px 20px rgba(7, 26, 47, 0.08) !important;
}

body[data-route="admin"] #adminPage .backpanel-search-icon,
body[data-route="agent"] #agentPage .backpanel-search-icon {
  background: linear-gradient(135deg, #1769ff, #00a8c8) !important;
}

body[data-route="admin"] #adminPage .admin-icon-action,
body[data-route="admin"] #adminPage .admin-signout-button,
body[data-route="agent"] #agentPage .ghost-action,
body[data-route="products-admin"] #productAdminPage .ghost-action {
  background: #ffffff !important;
  border-color: #bfd5e6 !important;
  color: #09213a !important;
  box-shadow: 0 8px 18px rgba(7, 26, 47, 0.08) !important;
}

body[data-route="admin"] #adminPage .admin-signout-button {
  background: #fff5f5 !important;
  border-color: #fecaca !important;
  color: #991b1b !important;
}

body[data-route="admin"] #adminPage .crm-tab-panel,
body[data-route="agent"] #agentPage .crm-tab-panel,
body[data-route="products-admin"] #productAdminPage .crm-tab-panel {
  background: #f8fbff !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero,
body[data-route="admin"] #adminPage .fresh-crm-card,
body[data-route="admin"] #adminPage .admin-command-center,
body[data-route="admin"] #adminPage .smart-kpi-card,
body[data-route="admin"] #adminPage .smart-chart-card,
body[data-route="admin"] #adminPage .smart-table-wrap,
body[data-route="admin"] #adminPage .crm-sheet,
body[data-route="agent"] #agentPage .crm-sheet,
body[data-route="products-admin"] #productAdminPage .crm-sheet {
  background: #ffffff !important;
  border-color: #d6e5ef !important;
  box-shadow: 0 12px 30px rgba(7, 26, 47, 0.08) !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero {
  background:
    radial-gradient(circle at 92% 0%, rgba(16, 163, 127, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 100%) !important;
}

body[data-route="admin"] #adminPage .fresh-crm-details {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 168, 200, 0.2), transparent 32%),
    linear-gradient(160deg, #071a2f 0%, #0a2d4a 56%, #06362f 100%) !important;
  border-color: rgba(142, 233, 255, 0.18) !important;
  box-shadow: 0 16px 36px rgba(7, 26, 47, 0.2) !important;
}

body[data-route="admin"] #adminPage .fresh-case-item,
body[data-route="admin"] #adminPage .fresh-path-step,
body[data-route="admin"] #adminPage .fresh-activity-item,
body[data-route="admin"] #adminPage .admin-insight-card {
  background: #f6fbff !important;
  border-color: #d8e7f1 !important;
}

body[data-route="admin"] #adminPage .primary-action {
  background: linear-gradient(135deg, #1769ff, #10a37f) !important;
  box-shadow: 0 10px 22px rgba(23, 105, 255, 0.18) !important;
}

body[data-route="admin"] #adminPage .secondary-action,
body[data-route="admin"] #adminPage .compact-action,
body[data-route="agent"] #agentPage .secondary-action,
body[data-route="agent"] #agentPage .compact-action,
body[data-route="products-admin"] #productAdminPage .secondary-action,
body[data-route="products-admin"] #productAdminPage .compact-action {
  background: #eef7ff !important;
  border-color: #bfd9ec !important;
  color: #0b5fc7 !important;
}

/* Contrast audit fixes: solid fallbacks for gradients and stronger text tones. */
body[data-route="admin"] #adminPage .backpanel-search-icon,
body[data-route="agent"] #agentPage .backpanel-search-icon {
  background-color: #0b5fc7 !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs {
  background-color: #06192d !important;
}

body[data-route="admin"] #adminPage .crm-tabs button,
body[data-route="agent"] #agentPage .crm-tabs button,
body[data-route="products-admin"] #productAdminPage .crm-tabs button {
  background: #102f4a !important;
}

body[data-route="admin"] #adminPage .crm-tabs button.active,
body[data-route="agent"] #agentPage .crm-tabs button.active,
body[data-route="products-admin"] #productAdminPage .crm-tabs button.active,
body[data-route="admin"] #adminPage .primary-action,
body[data-route="agent"] #agentPage .primary-action,
body[data-route="products-admin"] #productAdminPage .primary-action {
  background: #0b5fc7 !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .admin-signout-button {
  background: #fff5f5 !important;
  color: #7f1d1d !important;
}

body[data-route="admin"] #adminPage .fresh-crm-hero .eyebrow,
body[data-route="admin"] #adminPage .fresh-crm-hero p.eyebrow,
body[data-route="admin"] #adminPage .record-detail p,
body[data-route="admin"] #adminPage .team-chat-panel p,
body[data-route="admin"] #adminPage .chat-panel p {
  color: #0b5fc7 !important;
}

body[data-route="admin"] #adminPage .fresh-crm-details {
  background-color: #071a2f !important;
}

body[data-route="admin"] #adminPage .fresh-crm-details h3,
body[data-route="admin"] #adminPage .fresh-crm-details b {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .fresh-crm-details p,
body[data-route="admin"] #adminPage .fresh-detail-grid small {
  color: #c7d9e8 !important;
}

body[data-route="admin"] #adminPage .timezone-board-head {
  background: #ffffff !important;
  border: 1px solid #d6e5ef !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(7, 26, 47, 0.08) !important;
  color: #071a2f !important;
}

body[data-route="admin"] #adminPage .timezone-board-head h3 {
  color: #071a2f !important;
}

body[data-route="admin"] #adminPage .timezone-board-head p,
body[data-route="admin"] #adminPage .timezone-board-head .eyebrow {
  color: #0b5fc7 !important;
}

body[data-route="admin"] #adminPage .tag,
body[data-route="admin"] #adminPage .smart-status,
body[data-route="admin"] #adminPage .badge {
  color: inherit;
}

/* Highest-specificity color lock after legacy Bootstrap/back-panel rules. */
body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link {
  background: #102f4a !important;
  background-color: #102f4a !important;
  color: transparent !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active,
body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link.active,
body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link.active {
  background: #0b5fc7 !important;
  background-color: #0b5fc7 !important;
  color: transparent !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link::before,
body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link::before,
body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link::before {
  color: #dff6ff !important;
}

body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active::before,
body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link.active::before,
body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link.active::before {
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage button.primary-action.btn,
body[data-route="admin"] #adminPage .primary-action.btn,
body[data-route="agent"] #agentPage button.primary-action.btn,
body[data-route="products-admin"] #productAdminPage button.primary-action.btn {
  background: #0b5fc7 !important;
  background-color: #0b5fc7 !important;
  background-image: none !important;
  border-color: #0b5fc7 !important;
  color: #ffffff !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header button.admin-signout-button,
body[data-route="admin"] #adminPage button.admin-signout-button.btn {
  background: #fff5f5 !important;
  background-color: #fff5f5 !important;
  background-image: none !important;
  border-color: #fecaca !important;
  color: #7f1d1d !important;
}

body[data-route="admin"] #adminPage .crm-tabs-header button.backpanel-search-icon,
body[data-route="agent"] #agentPage .crm-tabs-header button.backpanel-search-icon {
  background: #0b5fc7 !important;
  background-color: #0b5fc7 !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* Final responsive layer: public pages, customer portal, and all CRM back panels. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.page,
.page.active {
  min-width: 0;
}

.crm-sheet,
.smart-table-wrap,
.record-list,
.record-detail,
.appointment-sheet,
.backpanel-detail-modal-body,
.table-responsive {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.crm-sheet table,
.smart-table,
.admin-profile-history table,
.invoice-info-table,
.invoice-line-table {
  width: 100%;
}

@media (max-width: 1180px) {
  .workspace,
  .bottom-page-shell,
  .services-page-shell,
  .pricing-page-shell,
  .products-page-shell,
  .about-page-shell,
  .fxr-blog-layout,
  .crm-tabs-shell {
    max-width: calc(100vw - 24px) !important;
  }

  .hero-section,
  .home-help-strip,
  .trust-search-section,
  .why-fixgpt-section,
  .home-service-task-3d,
  .policy-safe-notice {
    padding-left: clamp(14px, 3vw, 28px) !important;
    padding-right: clamp(14px, 3vw, 28px) !important;
  }

  .service-grid,
  .product-grid,
  .services-page-grid,
  .coverage-card-grid,
  .bottom-card-grid,
  .fxr-blog-clusters,
  .trust-signal-grid,
  .admin-profile-grid,
  .smart-dashboard-grid,
  .fresh-kpi-row,
  .crm-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .fxr-blog-layout {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 920px) {
  body[data-route="admin"],
  body[data-route="agent"],
  body[data-route="customer"],
  body[data-route="products-admin"] {
    overflow-y: auto !important;
  }

  #adminPage,
  #agentPage,
  #customerPage,
  #productAdminPage {
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 8px !important;
  }

  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #customerPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    border-radius: 18px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin: 8px auto !important;
    max-width: calc(100vw - 16px) !important;
    min-height: auto !important;
    overflow: visible !important;
    width: 100% !important;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #customerPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header {
    align-items: stretch !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 1fr auto auto auto !important;
    padding: 10px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
  }

  #customerPage .crm-tabs-header {
    grid-template-columns: 1fr auto !important;
  }

  #adminPage .crm-tabs-header > div:first-child,
  #agentPage .crm-tabs-header > div:first-child,
  #customerPage .crm-tabs-header > div:first-child,
  #productAdminPage .crm-tabs-header > div:first-child {
    min-width: 0 !important;
  }

  #adminPage .crm-tabs-header h2,
  #agentPage .crm-tabs-header h2,
  #customerPage .crm-tabs-header h2,
  #productAdminPage .crm-tabs-header h2 {
    font-size: clamp(1rem, 4vw, 1.35rem) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  #adminPage .backpanel-search-shell,
  #agentPage .backpanel-search-shell {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  #adminPage .backpanel-search-shell .crm-search,
  #agentPage .backpanel-search-shell .crm-search {
    width: 100% !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    border-radius: 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 6px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px !important;
    position: sticky !important;
    top: 70px !important;
    width: 100% !important;
    z-index: 25 !important;
    -webkit-overflow-scrolling: touch;
  }

  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #customerPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    flex: 0 0 auto !important;
    font-size: 0.76rem !important;
    min-height: 38px !important;
    min-width: 92px !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link {
    color: #eaf7ff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link.active {
    color: #ffffff !important;
  }

  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #customerPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 10px !important;
  }

  .crm-sheet,
  .smart-table-wrap,
  .compact-sheet,
  .employee-compact-sheet,
  .visitor-compact-sheet {
    border-radius: 14px !important;
    padding: 10px !important;
  }

  .crm-sheet table,
  .smart-table,
  .compact-sheet table,
  .employee-compact-sheet table,
  .visitor-compact-sheet table,
  #adminCases .crm-sheet table,
  #adminPayments .crm-sheet table {
    min-width: 720px !important;
  }

  .table-filter-bar,
  .smart-filter-bar,
  .form-grid,
  .panel-form,
  .payment-form,
  .appointment-form,
  .contact-action-layout,
  .fxr-blog-layout,
  .policy-safe-notice,
  .policy-strength-panel,
  .home-help-strip,
  .home-service-task-3d,
  .learning-player-card,
  .pricing-main-grid,
  .product-checkout-grid {
    grid-template-columns: 1fr !important;
  }

  .fxr-blog-index {
    position: static !important;
  }

  .service-grid,
  .product-grid,
  .services-page-grid,
  .coverage-card-grid,
  .bottom-card-grid,
  .fxr-blog-clusters,
  .trust-signal-grid,
  .admin-profile-grid,
  .smart-dashboard-grid,
  .fresh-kpi-row,
  .crm-overview {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .site-header {
    min-height: 58px;
  }

  .brand,
  .footer-brand {
    min-width: 0;
  }

  .brand strong,
  .footer-brand strong {
    font-size: 1rem;
  }

  .hero-section h1,
  .fxr-blog-hero h2,
  .bottom-page-head h2,
  .services-page-head h2,
  .pricing-page-head h2,
  .about-page-head h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem) !important;
    line-height: 1.08 !important;
  }

  .hero-section,
  .fxr-blog-hero,
  .bottom-page-shell,
  .services-page-shell,
  .pricing-page-shell,
  .products-page-shell,
  .about-page-shell {
    padding: 16px 12px !important;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }

  .home-issue-search,
  .home-help-search,
  .fxr-blog-search,
  .self-help-search {
    grid-template-columns: 1fr !important;
  }

  .public-chat-fab,
  .customer-support-chat-fab {
    bottom: 14px !important;
    right: 12px !important;
  }

  .home-chat-popup,
  .customer-support-chat-popup {
    bottom: 72px !important;
    left: 10px !important;
    max-width: calc(100vw - 20px) !important;
    right: 10px !important;
    width: auto !important;
  }

  .home-popup-window,
  .customer-support-chat-panel {
    max-height: min(76dvh, 620px) !important;
    width: 100% !important;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #customerPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header {
    grid-template-columns: 1fr auto !important;
  }

  #adminPage .admin-icon-action,
  #adminPage .admin-signout-button,
  #agentPage [data-staff-logout],
  #customerPage [data-customer-logout],
  #productAdminPage [data-staff-logout] {
    min-height: 34px !important;
    padding: 7px 9px !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    top: 62px !important;
  }

  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #customerPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    font-size: 0.72rem !important;
    min-width: 76px !important;
    padding: 7px 8px !important;
  }

  .crm-sheet th,
  .crm-sheet td,
  .smart-table th,
  .smart-table td {
    font-size: 0.76rem !important;
    padding: 8px !important;
  }

  .modal-panel,
  .backpanel-detail-modal,
  .product-checkout-modal {
    border-radius: 16px !important;
    max-height: calc(100dvh - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    overflow: auto !important;
    width: calc(100vw - 18px) !important;
  }
}

@media (max-width: 420px) {
  #adminPage,
  #agentPage,
  #customerPage,
  #productAdminPage {
    padding: 4px !important;
  }

  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #customerPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    max-width: calc(100vw - 8px) !important;
  }

  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #customerPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    padding: 8px !important;
  }
}

/* SEO/AEO/GEO specialist workspace */
.seo-specialist-login-card,
.seo-specialist-login-panel {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 253, 244, 0.95)) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
}

.seo-specialist-login-card .login-card-icon,
.seo-specialist-login-panel .login-card-icon {
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
  color: #ffffff !important;
  font-size: 0.74rem !important;
}

.seo-specialist-access-shell {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1040px;
  min-height: calc(100dvh - 170px);
  padding: clamp(18px, 4vw, 44px);
  place-content: center;
}

.seo-specialist-access-head {
  align-items: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(34, 197, 94, 0.2), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(37, 99, 235, 0.2), transparent 34%),
    linear-gradient(135deg, #f8fbff, #effdf7);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: clamp(18px, 3vw, 32px);
}

.seo-specialist-access-orb {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(37, 99, 235, 0.95)),
    #0f172a;
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(37, 99, 235, 0.3);
  color: #ffffff;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 950;
  height: 82px;
  justify-content: center;
  width: 82px;
}

.seo-specialist-access-head h2 {
  color: #082f49;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  margin: 3px 0 8px;
}

.seo-specialist-access-head p:not(.eyebrow) {
  color: #315267;
  margin: 0;
  max-width: 760px;
}

.seo-specialist-access-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.seo-specialist-login-panel,
.seo-specialist-access-info {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: clamp(18px, 3vw, 28px);
}

.seo-specialist-access-info {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  display: grid;
  gap: 12px;
}

.seo-specialist-access-info > span {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
  width: fit-content;
}

.seo-specialist-access-info strong {
  color: #0f172a;
  font-size: 1.35rem;
}

.seo-specialist-access-info ul {
  color: #475569;
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.seo-specialist-hero {
  align-items: center;
  background:
    radial-gradient(circle at 16% 20%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(34, 197, 94, 0.16), transparent 28%),
    linear-gradient(135deg, #f8fbff, #eefdf8);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
  padding: clamp(16px, 2.4vw, 26px);
}

.seo-specialist-hero h3 {
  color: #082f49;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.05;
  margin: 4px 0 8px;
}

.seo-specialist-hero p:not(.eyebrow) {
  color: #315267;
  margin: 0;
  max-width: 780px;
}

.seo-specialist-score {
  background: linear-gradient(135deg, #0f172a, #0f766e);
  border-radius: 20px;
  color: #ffffff;
  display: grid;
  min-width: 172px;
  padding: 18px;
  text-align: center;
}

.seo-specialist-score span,
.seo-specialist-score small {
  color: #c7f9e5;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seo-specialist-score strong {
  font-size: 2.3rem;
  line-height: 1;
}

.seo-specialist-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

.seo-priority-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
  padding: clamp(16px, 2.2vw, 24px);
}

.seo-priority-panel-head p.eyebrow {
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.seo-priority-panel-head h4 {
  color: #082f49;
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.seo-priority-panel-head p:not(.eyebrow) {
  color: #4c6577;
  margin: 0 0 14px;
  max-width: 720px;
}

.seo-priority-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-priority-chip {
  align-items: center;
  background: linear-gradient(135deg, #f0fdf9, #eef6ff);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seo-priority-chip:hover {
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.14);
  transform: translateY(-1px);
}

.seo-priority-chip-kw {
  color: #0b2942;
  font-size: 0.86rem;
  font-weight: 700;
}

.seo-priority-chip-status {
  background: #0f766e;
  border-radius: 999px;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  text-transform: uppercase;
}

.seo-specialist-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 45%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
}

.seo-specialist-grid article span {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.04em;
  min-height: 28px;
  padding: 5px 10px;
  text-transform: uppercase;
  width: fit-content;
}

.seo-specialist-grid article strong {
  color: #0f172a;
  font-size: 1rem;
}

.seo-specialist-grid article p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

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

.seo-specialist-table table {
  min-width: 760px;
}

.ai-platform-card {
  overflow: hidden;
}

.ai-platform-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.ai-platform-row {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 5px;
  min-height: 126px;
  padding: 12px;
}

.ai-platform-row span {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  justify-content: center;
  padding: 4px 8px;
  text-transform: uppercase;
  width: fit-content;
}

.ai-platform-row.monitor span {
  background: #fef3c7;
  color: #92400e;
}

.ai-platform-row strong {
  color: #0f172a;
  font-size: 0.94rem;
}

.ai-platform-row small {
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 800;
}

.ai-platform-row p {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 1100px) {
  .seo-specialist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .seo-specialist-access-shell {
    min-height: auto;
    padding: 16px 12px;
  }

  .seo-specialist-access-head,
  .seo-specialist-access-grid {
    grid-template-columns: 1fr;
  }

  .seo-specialist-access-orb {
    height: 64px;
    width: 64px;
  }

  .seo-specialist-hero {
    grid-template-columns: 1fr;
  }

  .seo-specialist-score {
    min-width: 0;
  }

  .seo-specialist-grid,
  .seo-specialist-workbench {
    grid-template-columns: 1fr;
  }
}

/* Simple final login page layout */
body[data-route="login"] .clean-login-shell {
  gap: 16px !important;
  max-width: 980px !important;
  min-height: calc(100dvh - 170px) !important;
  padding: clamp(16px, 3vw, 34px) !important;
}

body[data-route="login"] .clean-login-shell::before,
body[data-route="login"] .login-access-strip,
body[data-route="login"] .clean-login-status {
  display: none !important;
}

body[data-route="login"] .clean-login-head {
  align-items: center !important;
  background: linear-gradient(135deg, #ffffff, #f8fbff) !important;
  border: 1px solid rgba(37, 99, 235, 0.12) !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08) !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  padding: clamp(16px, 2.5vw, 24px) !important;
}

body[data-route="login"] .clean-login-mark {
  border-radius: 20px !important;
  height: 58px !important;
  width: 58px !important;
}

body[data-route="login"] .clean-login-head h2 {
  color: #0f172a !important;
  font-size: clamp(1.8rem, 4vw, 2.65rem) !important;
  margin: 2px 0 4px !important;
}

body[data-route="login"] .clean-login-head p:not(.eyebrow) {
  color: #475569 !important;
  font-size: 0.96rem !important;
  margin: 0 !important;
}

body[data-route="login"] .clean-login-grid {
  align-items: stretch !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-route="login"] .clean-login-card {
  border-radius: 20px !important;
  min-height: 0 !important;
  padding: 18px !important;
}

body[data-route="login"] .clean-login-card .login-card-top {
  margin-bottom: 12px !important;
}

body[data-route="login"] .clean-login-card .login-card-icon {
  border-radius: 16px !important;
  height: 44px !important;
  width: 44px !important;
}

body[data-route="login"] .clean-login-card .login-card-top h2 {
  color: #0f172a !important;
  font-size: 1.15rem !important;
  margin: 0 !important;
}

body[data-route="login"] .clean-login-card .form-stack {
  gap: 10px !important;
}

body[data-route="login"] .clean-login-card label {
  color: #334155 !important;
  font-size: 0.82rem !important;
}

body[data-route="login"] .clean-login-card input {
  min-height: 42px !important;
}

body[data-route="login"] .clean-login-card .primary-action {
  min-height: 42px !important;
}

body[data-route="login"] .clean-login-note {
  color: #64748b !important;
  font-size: 0.82rem !important;
  margin: 0 !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  body[data-route="login"] .clean-login-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  body[data-route="login"] .clean-login-head {
    grid-template-columns: 1fr !important;
  }

  body[data-route="login"] .clean-login-mark {
    height: 50px !important;
    width: 50px !important;
  }
}

/* Final performance layer */
.page:not(.active) {
  content-visibility: hidden;
  contain: layout style paint;
}

.page.active {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.crm-tab-panel:not(.active) {
  content-visibility: hidden;
  contain: layout style paint;
}

.crm-tab-panel.active,
.record-list,
.record-detail,
.crm-sheet,
.smart-table-wrap,
.seo-status-panel,
.seo-specialist-grid,
.admin-timezone-board {
  content-visibility: auto;
  contain: layout style paint;
}

.service-card,
.product-card,
.blog-topic-card,
.seo-advanced-card,
.smart-kpi-card,
.fresh-case-item,
.admin-insight-card {
  contain: content;
}

.home-chat-popup,
.floating-chat-popup,
.customer-support-chat-popup {
  contain: layout style paint;
}

.blog-view-counter {
  align-items: center;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.1), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(23, 105, 255, 0.18);
  border-radius: 999px;
  color: #102033;
  display: inline-flex;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 7px 11px;
  width: fit-content;
}

.blog-view-counter span {
  color: #1769ff;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.blog-view-counter strong {
  color: #0f172a;
  font-size: 0.86rem;
}

/* Final CRM mobile/tablet rescue layer */
@media (max-width: 1024px) {
  body[data-route="admin"],
  body[data-route="agent"],
  body[data-route="customer"],
  body[data-route="products-admin"] {
    background: #eef6fb !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body[data-route="admin"] main,
  body[data-route="agent"] main,
  body[data-route="customer"] main,
  body[data-route="products-admin"] main {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  #adminPage,
  #agentPage,
  #customerPage,
  #productAdminPage {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 8px !important;
  }

  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #customerPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    min-height: auto !important;
    overflow: visible !important;
    width: 100% !important;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #customerPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header {
    align-items: center !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) repeat(3, auto) !important;
    padding: 10px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
  }

  #customerPage .crm-tabs-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  #adminPage .crm-tabs-header h2,
  #agentPage .crm-tabs-header h2,
  #customerPage .crm-tabs-header h2,
  #productAdminPage .crm-tabs-header h2 {
    font-size: 1rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  #adminPage .crm-tabs-header .eyebrow,
  #agentPage .crm-tabs-header .eyebrow,
  #customerPage .crm-tabs-header .eyebrow,
  #productAdminPage .crm-tabs-header .eyebrow {
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
  }

  #adminPage .backpanel-search-shell,
  #agentPage .backpanel-search-shell {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    align-items: center !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 6px !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px !important;
    position: sticky !important;
    top: 76px !important;
    width: 100% !important;
    z-index: 45 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #customerPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    flex: 0 0 auto !important;
    font-size: 0.7rem !important;
    min-height: 36px !important;
    min-width: 78px !important;
    padding: 7px 9px !important;
    white-space: nowrap !important;
  }

  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #customerPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 10px !important;
  }

  #adminPage .smart-kpi-grid,
  #adminPage .smart-chart-grid,
  #adminPage .admin-insight-grid,
  #adminPage .fresh-kpi-row,
  #adminPage .fresh-crm-snapshot,
  #adminPage .fresh-crm-workspace,
  #adminPage .fresh-crm-bottom,
  #agentPage .smart-dashboard-grid,
  #customerPage .customer-portal-grid,
  #productAdminPage .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #adminPage .admin-command-center,
  #adminPage .fresh-crm-hero,
  #adminPage .fresh-crm-priority,
  #adminPage .fresh-crm-details,
  #agentPage .smart-dashboard-hero,
  #customerPage .customer-overview-banner {
    grid-template-columns: 1fr !important;
  }

  #adminPage .crm-sheet,
  #adminPage .smart-table-wrap,
  #agentPage .crm-sheet,
  #agentPage .smart-table-wrap,
  #customerPage .crm-sheet,
  #customerPage .smart-table-wrap,
  #productAdminPage .crm-sheet,
  #productAdminPage .smart-table-wrap {
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 10px !important;
  }

  #adminPage .crm-sheet table,
  #adminPage .smart-table,
  #agentPage .crm-sheet table,
  #agentPage .smart-table,
  #customerPage .crm-sheet table,
  #customerPage .smart-table,
  #productAdminPage .crm-sheet table,
  #productAdminPage .smart-table {
    min-width: 0 !important;
    table-layout: fixed !important;
    width: 100% !important;
  }

  #adminPage .crm-sheet th,
  #adminPage .crm-sheet td,
  #adminPage .smart-table th,
  #adminPage .smart-table td,
  #agentPage .crm-sheet th,
  #agentPage .crm-sheet td,
  #agentPage .smart-table th,
  #agentPage .smart-table td,
  #customerPage .crm-sheet th,
  #customerPage .crm-sheet td,
  #customerPage .smart-table th,
  #customerPage .smart-table td,
  #productAdminPage .crm-sheet th,
  #productAdminPage .crm-sheet td,
  #productAdminPage .smart-table th,
  #productAdminPage .smart-table td {
    font-size: 0.74rem !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
    padding: 7px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  #adminPage input,
  #adminPage select,
  #adminPage textarea,
  #agentPage input,
  #agentPage select,
  #agentPage textarea,
  #customerPage input,
  #customerPage select,
  #customerPage textarea,
  #productAdminPage input,
  #productAdminPage select,
  #productAdminPage textarea {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #adminPage .table-filter-bar,
  #adminPage .smart-filter-bar,
  #agentPage .table-filter-bar,
  #agentPage .smart-filter-bar,
  #productAdminPage .table-filter-bar,
  #productAdminPage .smart-filter-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-route="admin"] .page.active,
  body[data-route="agent"] .page.active,
  body[data-route="customer"] .page.active,
  body[data-route="products-admin"] .page.active {
    content-visibility: visible !important;
    contain: none !important;
  }
}

@media (max-width: 640px) {
  #adminPage,
  #agentPage,
  #customerPage,
  #productAdminPage {
    padding: 4px !important;
  }

  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #customerPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    border-radius: 14px !important;
    margin: 4px 0 !important;
  }

  #adminPage .crm-tabs-header,
  #agentPage .crm-tabs-header,
  #customerPage .crm-tabs-header,
  #productAdminPage .crm-tabs-header {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    padding: 8px !important;
  }

  #adminPage .admin-signout-button,
  #agentPage [data-staff-logout],
  #customerPage [data-customer-logout],
  #productAdminPage [data-staff-logout] {
    font-size: 0 !important;
    min-width: 38px !important;
  }

  #adminPage .admin-signout-button::after,
  #agentPage [data-staff-logout]::after,
  #customerPage [data-customer-logout]::after,
  #productAdminPage [data-staff-logout]::after {
    content: "Out";
    font-size: 0.72rem !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    top: 62px !important;
    padding: 6px !important;
  }

  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #customerPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    font-size: 0.66rem !important;
    min-width: 64px !important;
    padding: 6px 7px !important;
  }

  #adminPage .crm-tabs button::before,
  #agentPage .crm-tabs button::before,
  #customerPage .crm-tabs button::before,
  #productAdminPage .crm-tabs button::before {
    display: block !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    margin: 0 auto 2px !important;
    position: static !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link {
    color: #eaf7ff !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
  }

  #adminPage .smart-kpi-grid,
  #adminPage .smart-chart-grid,
  #adminPage .admin-insight-grid,
  #adminPage .fresh-kpi-row,
  #adminPage .fresh-crm-snapshot,
  #adminPage .fresh-crm-workspace,
  #adminPage .fresh-crm-bottom,
  #agentPage .smart-dashboard-grid,
  #customerPage .customer-portal-grid,
  #productAdminPage .product-grid,
  #adminPage .table-filter-bar,
  #adminPage .smart-filter-bar,
  #agentPage .table-filter-bar,
  #agentPage .smart-filter-bar,
  #productAdminPage .table-filter-bar,
  #productAdminPage .smart-filter-bar {
    grid-template-columns: 1fr !important;
  }

  #adminPage .crm-tab-panel,
  #agentPage .crm-tab-panel,
  #customerPage .crm-tab-panel,
  #productAdminPage .crm-tab-panel {
    padding: 8px !important;
  }

  #adminPage .crm-sheet th,
  #adminPage .crm-sheet td,
  #adminPage .smart-table th,
  #adminPage .smart-table td,
  #agentPage .crm-sheet th,
  #agentPage .crm-sheet td,
  #agentPage .smart-table th,
  #agentPage .smart-table td,
  #customerPage .crm-sheet th,
  #customerPage .crm-sheet td,
  #customerPage .smart-table th,
  #customerPage .smart-table td,
  #productAdminPage .crm-sheet th,
  #productAdminPage .crm-sheet td,
  #productAdminPage .smart-table th,
  #productAdminPage .smart-table td {
    font-size: 0.68rem !important;
    padding: 6px !important;
  }
}

/* Absolute final rule: mobile back-panel tabs stay hidden until the three-dot button opens them. */
@media (max-width: 1024px) {
  #adminPage .backpanel-mobile-tabs-button,
  #agentPage .backpanel-mobile-tabs-button,
  #customerPage .backpanel-mobile-tabs-button,
  #productAdminPage .backpanel-mobile-tabs-button {
    align-items: center !important;
    display: inline-flex !important;
    justify-content: center !important;
  }

  body:not(.backpanel-mobile-tabs-open) #adminPage.active .crm-tabs,
  body:not(.backpanel-mobile-tabs-open) #agentPage.active .crm-tabs,
  body:not(.backpanel-mobile-tabs-open) #customerPage.active .crm-tabs,
  body:not(.backpanel-mobile-tabs-open) #productAdminPage.active .crm-tabs {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  body.backpanel-mobile-tabs-open #adminPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #agentPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #customerPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #productAdminPage.active .crm-tabs {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    padding: 8px !important;
    pointer-events: auto !important;
    position: static !important;
    visibility: visible !important;
  }
}

@media (max-width: 560px) {
  body.backpanel-mobile-tabs-open #adminPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #agentPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #customerPage.active .crm-tabs,
  body.backpanel-mobile-tabs-open #productAdminPage.active .crm-tabs {
    grid-template-columns: 1fr !important;
  }
}

/* Final blog workspace: left topic tabs, right detail panel */
@media (min-width: 921px) {
  body[data-route="blog"] #blogPage.active {
    height: calc(100dvh - 76px) !important;
    overflow: hidden !important;
  }

  body[data-route="blog"] {
    overflow: hidden !important;
  }

  body[data-route="blog"] .site-footer {
    display: none !important;
  }

  body[data-route="blog"] .fxr-blog-hero {
    padding: 16px clamp(16px, 3vw, 28px) !important;
  }

  body[data-route="blog"] .fxr-blog-hero h2 {
    font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
    margin-bottom: 6px !important;
  }

  body[data-route="blog"] .fxr-blog-hero p {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    max-width: 1080px !important;
  }

  body[data-route="blog"] .fxr-blog-auto-note {
    display: none !important;
  }

  body[data-route="blog"] .fxr-blog-search {
    margin-top: 10px !important;
    max-width: 680px !important;
  }

  body[data-route="blog"] .fxr-blog-search input,
  body[data-route="blog"] .fxr-blog-search button {
    min-height: 40px !important;
  }

  body[data-route="blog"] .fxr-blog-layout {
    align-items: stretch !important;
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    height: calc(100dvh - 292px) !important;
    min-height: 360px !important;
    max-width: none !important;
    overflow: hidden !important;
    padding: 18px clamp(16px, 3vw, 28px) !important;
    width: 100% !important;
  }

  body[data-route="blog"] .fxr-blog-index {
    align-self: stretch !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    max-height: none !important;
    overflow: hidden !important;
    position: static !important;
    top: auto !important;
  }

  body[data-route="blog"] #blogCategoryList {
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  body[data-route="blog"] .fxr-blog-content {
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 920px) {
  body[data-route="blog"] .fxr-blog-layout {
    height: auto !important;
    overflow: visible !important;
  }

  body[data-route="blog"] .fxr-blog-content,
  body[data-route="blog"] #blogCategoryList {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Global public chat + smart service pages final polish */
body[data-route="admin"] #homeChatPopup,
body[data-route="agent"] #homeChatPopup,
body[data-route="products-admin"] #homeChatPopup,
body[data-route="customer"] #homeChatPopup,
body[data-route="admin"] #publicChatFab,
body[data-route="agent"] #publicChatFab,
body[data-route="products-admin"] #publicChatFab,
body[data-route="customer"] #publicChatFab {
  display: none !important;
}

#homeChatPopup {
  z-index: 1500 !important;
}

#publicChatFab {
  z-index: 1490 !important;
}

#homeChatPopup.show ~ #publicChatFab,
#homeChatPopup.show + #publicChatFab {
  display: none !important;
}

#homeChatPopup.show {
  display: block !important;
}

#homeChatPopup.show .home-popup-window {
  display: grid !important;
  grid-template-rows: auto auto minmax(220px, 1fr) auto auto auto auto !important;
  max-height: min(760px, calc(100dvh - 44px)) !important;
  overflow: hidden !important;
}

#homeChatPopup.show .home-chat-log {
  min-height: 220px !important;
  overflow-y: auto !important;
}

.public-chat-fab {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.44), transparent 18%),
    linear-gradient(135deg, #1769ff, #16b86a) !important;
  box-shadow:
    0 18px 42px rgba(23, 105, 255, 0.28),
    0 0 0 7px rgba(50, 246, 166, 0.12) !important;
}

.home-popup-window {
  background: #ffffff !important;
  border: 1px solid rgba(14, 165, 233, 0.26) !important;
}

body[data-route="services"] #servicesPage.active,
body[data-route="service"] #serviceDetailPage.active {
  background:
    radial-gradient(circle at 10% 10%, rgba(32, 217, 255, 0.13), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(50, 246, 166, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fdff 0%, #eef7ff 100%) !important;
  padding: clamp(18px, 3vw, 34px) 0 !important;
}

.services-overview-section {
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 105, 255, 0.08), transparent 28%),
    #ffffff !important;
}

.services-page-grid {
  align-items: stretch !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.services-page-card {
  min-height: 100% !important;
}

.services-card-glow {
  background:
    radial-gradient(circle, rgba(32, 217, 255, 0.16), transparent 64%),
    radial-gradient(circle at 70% 35%, rgba(50, 246, 166, 0.14), transparent 52%);
  height: 180px;
  position: absolute;
  right: -78px;
  top: -86px;
  width: 180px;
}

.services-card-diagram {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto 1fr auto;
  margin: 18px 0 14px;
}

.services-card-diagram span {
  background: #eef7ff;
  border: 1px solid #cfe8ff;
  border-radius: 999px;
  color: #0f4b82;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 7px 10px;
}

.services-card-diagram i {
  background: linear-gradient(90deg, #1769ff, #16b86a);
  border-radius: 999px;
  display: block;
  height: 2px;
  min-width: 18px;
}

.services-card-points,
.services-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.services-card-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px !important;
}

.services-card-actions .primary-action,
.services-card-actions .secondary-action {
  border-radius: 12px;
  flex: 1 1 150px;
  min-height: 44px;
}

.services-card-actions .secondary-action {
  display: inline-flex !important;
}

.service-detail-hero,
.service-detail-body {
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  width: min(1280px, calc(100% - 32px));
}

.service-detail-hero {
  align-items: stretch !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr) !important;
  margin-bottom: 18px !important;
}

.service-holo-orb {
  box-shadow: 0 0 34px rgba(32, 217, 255, 0.28);
}

.service-detail-copy {
  display: grid;
  gap: 14px;
}

.service-detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-detail-chip-row span {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.service-detail-body {
  display: grid;
  gap: 18px;
}

.service-smart-panel h3 {
  color: #102033;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 950;
  margin: 0 0 12px;
}

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

.coverage-card-grid article h4 {
  color: #102033;
  font-weight: 900;
}

.coverage-card-grid article p {
  color: #52657a;
  font-weight: 650;
}

.service-related-blog-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-related-blog-grid article {
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 105, 255, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #d7e7f1;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.service-related-blog-grid span {
  color: #1769ff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.service-related-blog-grid strong {
  color: #102033;
  font-size: 1rem;
  line-height: 1.3;
}

.service-related-blog-grid p {
  color: #52657a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.answer-first-faq-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.answer-first-faq-grid article {
  background: #ffffff;
  border: 1px solid #d7e7f1;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(7, 26, 47, 0.07);
  padding: 16px;
}

.answer-first-faq-grid h3 {
  color: #102033;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.3;
  margin: 0 0 8px;
}

.answer-first-faq-grid p {
  color: #52657a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.answer-first-faq-grid b {
  color: #1769ff;
}

@media (max-width: 920px) {
  .services-page-grid,
  .service-detail-hero,
  .coverage-card-grid,
  .service-related-blog-grid,
  .answer-first-faq-grid,
  .fxr-blog-citation {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .services-overview-section,
  .service-detail-hero,
  .service-detail-body {
    width: min(100%, calc(100% - 20px)) !important;
  }

  .services-card-diagram {
    grid-template-columns: 1fr !important;
  }

  .services-card-diagram i {
    height: 12px;
    justify-self: center;
    width: 2px;
  }

  .home-chat-popup {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    left: 8px !important;
    max-height: calc(100dvh - 24px) !important;
    right: 8px !important;
    top: auto !important;
    width: auto !important;
  }

  #homeChatPopup.show .home-popup-window {
    border-radius: 16px !important;
    height: min(620px, calc(100dvh - 28px)) !important;
    max-height: calc(100dvh - 28px) !important;
  }

  #homeChatPopup.show .home-chat-log {
    min-height: 180px !important;
  }

  .public-chat-fab {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
  }
}

/* True final desktop override: bigger readable back-panel menu names. */
@media (min-width: 1025px) {
  #adminPage .backpanel-mobile-tabs-button,
  #agentPage .backpanel-mobile-tabs-button,
  #customerPage .backpanel-mobile-tabs-button,
  #productAdminPage .backpanel-mobile-tabs-button {
    display: none !important;
  }

  #adminPage .crm-tabs-shell,
  #agentPage .crm-tabs-shell,
  #customerPage .crm-tabs-shell,
  #productAdminPage .crm-tabs-shell {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="customer"] #customerPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }

  #adminPage .crm-tabs button::before,
  #agentPage .crm-tabs button::before,
  #customerPage .crm-tabs button::before,
  #productAdminPage .crm-tabs button::before,
  #adminPage .crm-tabs button::after,
  #agentPage .crm-tabs button::after,
  #customerPage .crm-tabs button::after,
  #productAdminPage .crm-tabs button::after {
    content: none !important;
    display: none !important;
  }

  #adminPage .crm-tabs,
  #agentPage .crm-tabs,
  #customerPage .crm-tabs,
  #productAdminPage .crm-tabs {
    align-content: start !important;
    gap: 10px !important;
    grid-template-columns: 1fr !important;
    padding: 14px 12px !important;
    width: 190px !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs {
    align-content: start !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 1fr !important;
    padding: 14px 12px !important;
    width: 190px !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link,
  #adminPage .crm-tabs button,
  #agentPage .crm-tabs button,
  #customerPage .crm-tabs button,
  #productAdminPage .crm-tabs button {
    align-items: center !important;
    border-radius: 14px !important;
    display: flex !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    justify-content: flex-start !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    min-height: 40px !important;
    min-width: 0 !important;
    padding: 10px 13px !important;
    text-align: left !important;
    width: 100% !important;
    white-space: normal !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link {
    min-height: 40px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* FINAL MASTER SIDEBAR: clean desktop back-panel menu from scratch. */
@media (min-width: 1025px) {
  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="customer"] #customerPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    background: #f6fbff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    min-height: calc(100vh - 32px) !important;
    overflow: hidden !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs {
    align-content: start !important;
    background: linear-gradient(180deg, #071528 0%, #0c2438 55%, #0a1d2e 100%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: 1fr !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 14px 12px !important;
    position: static !important;
    width: 220px !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #f8fbff !important;
    display: flex !important;
    font-size: 0.83rem !important;
    font-weight: 750 !important;
    height: 34px !important;
    justify-content: flex-start !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    min-height: 34px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 7px 10px !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    text-shadow: none !important;
    transform: none !important;
    white-space: nowrap !important;
    width: 100% !important;
    -webkit-text-fill-color: #f8fbff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link:hover,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link:hover,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link:hover,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link:hover {
    background: rgba(59, 130, 246, 0.24) !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link.active,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link.active {
    background: linear-gradient(135deg, #0b74ff, #10b981) !important;
    border-color: rgba(255, 255, 255, 0.36) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link::before,
  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs button.nav-link::after,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs button.nav-link::after,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs button.nav-link::after,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs button.nav-link::after {
    content: none !important;
    display: none !important;
  }
}

/* ABSOLUTE FINAL BLOG TABS FIX: visible left rail with internal content view. */
@media (min-width: 921px) {
  body[data-route="blog"] {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body[data-route="blog"] main {
    height: calc(100dvh - 76px) !important;
    overflow: hidden !important;
  }

  body[data-route="blog"] #blogPage.active {
    contain: none !important;
    content-visibility: visible !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  body[data-route="blog"] .site-footer {
    display: none !important;
  }

  body[data-route="blog"] .fxr-blog-hero {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    padding: 14px clamp(16px, 3vw, 26px) !important;
  }

  body[data-route="blog"] .fxr-blog-hero h2 {
    font-size: clamp(1.45rem, 2.6vw, 2.15rem) !important;
    line-height: 1.05 !important;
    margin: 0 0 6px !important;
  }

  body[data-route="blog"] .fxr-blog-hero p {
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
    margin: 0 0 5px !important;
    max-width: 1100px !important;
  }

  body[data-route="blog"] .fxr-blog-auto-note {
    display: none !important;
  }

  body[data-route="blog"] .fxr-blog-search {
    margin-top: 8px !important;
    max-width: 660px !important;
  }

  body[data-route="blog"] .fxr-blog-search input,
  body[data-route="blog"] .fxr-blog-search button {
    min-height: 38px !important;
  }

  body[data-route="blog"] .fxr-blog-layout {
    align-items: stretch !important;
    contain: none !important;
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 14px clamp(14px, 2vw, 22px) !important;
    width: 100% !important;
  }

  body[data-route="blog"] .fxr-blog-index {
    align-self: stretch !important;
    background: #ffffff !important;
    border: 1px solid #cfe3f2 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 34px rgba(7, 26, 47, 0.1) !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px !important;
    position: static !important;
    top: auto !important;
  }

  body[data-route="blog"] .fxr-blog-index > strong {
    color: #102033 !important;
    display: block !important;
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
  }

  body[data-route="blog"] .fxr-blog-seo-note {
    display: none !important;
  }

  body[data-route="blog"] #blogCategoryList {
    display: grid !important;
    gap: 6px !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 4px 0 0 !important;
  }

  body[data-route="blog"] #blogCategoryList button {
    align-items: center !important;
    background: #f8fbff !important;
    border: 1px solid #d7e7f1 !important;
    border-radius: 10px !important;
    color: #183149 !important;
    display: flex !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    justify-content: space-between !important;
    line-height: 1.15 !important;
    min-height: 32px !important;
    padding: 7px 9px !important;
    text-align: left !important;
    width: 100% !important;
  }

  body[data-route="blog"] #blogCategoryList button.active {
    background: linear-gradient(135deg, #1769ff, #10b981) !important;
    border-color: rgba(23, 105, 255, 0.38) !important;
    color: #ffffff !important;
  }

  body[data-route="blog"] #blogCategoryList button.active strong {
    color: #ffffff !important;
  }

  body[data-route="blog"] .fxr-blog-content {
    background: transparent !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 6px 18px 0 !important;
  }
}

@media (max-width: 920px) {
  body[data-route="blog"] {
    height: auto !important;
    overflow-y: auto !important;
  }

  body[data-route="blog"] main,
  body[data-route="blog"] #blogPage.active,
  body[data-route="blog"] .fxr-blog-layout {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body[data-route="blog"] .fxr-blog-index,
  body[data-route="blog"] #blogCategoryList,
  body[data-route="blog"] .fxr-blog-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ABSOLUTE FINAL BLOG LEFT RAIL HEIGHT FIX */
@media (min-width: 921px) {
  body[data-route="blog"] .fxr-blog-layout {
    align-items: start !important;
    height: calc(100dvh - 262px) !important;
    min-height: 380px !important;
  }

  body[data-route="blog"] .fxr-blog-index {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100dvh - 292px) !important;
    max-height: calc(100dvh - 292px) !important;
    min-height: 350px !important;
    overflow: hidden !important;
  }

  body[data-route="blog"] #blogCategoryList {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  body[data-route="blog"] .fxr-blog-content {
    height: calc(100dvh - 292px) !important;
    max-height: calc(100dvh - 292px) !important;
    min-height: 350px !important;
    overflow-y: auto !important;
  }
}

/* Final chat payment screen: payment stays inside the chat window and uses the full chat body. */
#homeChatPopup.payment-screen-active.show .home-popup-window {
  position: relative !important;
}

#homeChatPopup.payment-screen-active .home-popup-window {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: min(760px, calc(100dvh - 44px)) !important;
  overflow: hidden !important;
  position: relative !important;
}

#homeChatPopup.payment-screen-active .expert-chat-strip,
#homeChatPopup.payment-screen-active .home-chat-log,
#homeChatPopup.payment-screen-active .chat-tools,
#homeChatPopup.payment-screen-active .chat-media-panel,
#homeChatPopup.payment-screen-active .live-agent-count,
#homeChatPopup.payment-screen-active .home-chat-compose {
  display: none !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment {
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.18), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fcff 0%, #eaf6ff 100%) !important;
  border-top: 1px solid rgba(14, 165, 233, 0.2) !important;
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 14px !important;
  pointer-events: auto !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-card {
  display: grid !important;
  gap: 10px !important;
  margin: 0 auto !important;
  max-width: 520px !important;
  min-height: 100% !important;
  padding: 14px !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-head {
  background: linear-gradient(135deg, #052e4f, #0f766e) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16) !important;
  margin: 0 !important;
  padding: 12px !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-head span,
#homeChatPopup.payment-screen-active .chat-inline-payment-head strong {
  color: #ffffff !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-head .icon-button {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #ffffff !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-summary {
  grid-template-columns: 1fr !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-form {
  align-content: start !important;
  gap: 9px !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-form input,
#homeChatPopup.payment-screen-active .chat-inline-payment-form select {
  min-height: 40px !important;
  pointer-events: auto !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-form .chat-inline-check {
  align-items: center !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  padding: 10px !important;
  pointer-events: auto !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-form .chat-inline-check input[type="checkbox"] {
  appearance: auto !important;
  cursor: pointer !important;
  height: 18px !important;
  margin: 0 !important;
  min-height: 18px !important;
  opacity: 1 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  position: static !important;
  width: 18px !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-form .chat-inline-check label {
  color: #164e63 !important;
  cursor: pointer !important;
  display: block !important;
  font-size: 0.76rem !important;
  line-height: 1.3 !important;
  pointer-events: auto !important;
}

#homeChatPopup.payment-screen-active .chat-inline-payment-form .primary-action {
  min-height: 42px !important;
}

@media (max-width: 540px) {
  #homeChatPopup.payment-screen-active.show {
    inset: 10px !important;
    bottom: auto !important;
    right: auto !important;
    width: calc(100vw - 20px) !important;
  }

  #homeChatPopup.payment-screen-active.show .home-popup-window {
    height: calc(100dvh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }

  #homeChatPopup.payment-screen-active .chat-inline-payment {
    padding: 10px !important;
  }

  #homeChatPopup.payment-screen-active .chat-inline-payment-card {
    border-radius: 14px !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  #homeChatPopup.payment-screen-active .chat-inline-payment-form {
    grid-template-columns: 1fr !important;
  }
}

/* Fresh Tailwind-style services page */
body[data-route="services"] .services-overview-section {
  background:
    radial-gradient(circle at 14% 0%, rgba(23, 105, 255, 0.12), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(22, 184, 106, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 255, 0.96)) !important;
  overflow: hidden !important;
  padding: clamp(16px, 3vw, 28px) !important;
}

body[data-route="services"] .services-smart-title {
  margin: 0 auto clamp(18px, 3vw, 28px) !important;
  max-width: 900px !important;
}

body[data-route="services"] .services-smart-title h2 {
  color: #0f172a !important;
  font-size: clamp(1.8rem, 4vw, 3.25rem) !important;
  line-height: 1.04 !important;
}

body[data-route="services"] .services-smart-title p {
  color: #475569 !important;
}

body[data-route="services"] .services-page-grid {
  align-items: stretch !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

body[data-route="services"] .services-v2-card {
  grid-column: span 3 !important;
  min-height: 100% !important;
}

body[data-route="services"] .services-v2-card:nth-child(5n) {
  grid-column: span 6 !important;
}

.services-v2-flow {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.services-v2-flow span {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 14px !important;
  display: grid !important;
  gap: 5px !important;
  min-height: 86px !important;
  padding: 9px !important;
}

.services-v2-flow b {
  align-items: center !important;
  background: linear-gradient(135deg, #1769ff, #16b86a) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.72rem !important;
  font-weight: 1000 !important;
  height: 24px !important;
  justify-content: center !important;
  width: 24px !important;
}

.services-v2-flow em {
  color: #0f172a !important;
  font-size: 0.72rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

body[data-route="services"] .services-routing-strip {
  background: #0f172a !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18) !important;
  margin-top: 20px !important;
  padding: 12px !important;
}

body[data-route="services"] .services-routing-strip article {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-route="services"] .services-routing-strip strong,
body[data-route="services"] .services-routing-strip small {
  color: #ffffff !important;
}

body[data-route="services"] .services-routing-strip span {
  background: rgba(34, 211, 238, 0.16) !important;
  color: #67e8f9 !important;
}

@media (max-width: 980px) {
  body[data-route="services"] .services-page-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-route="services"] .services-v2-card,
  body[data-route="services"] .services-v2-card:nth-child(5n) {
    grid-column: span 1 !important;
  }
}

@media (max-width: 620px) {
  body[data-route="services"] .services-overview-section {
    border-radius: 20px !important;
    padding: 14px !important;
  }

  .services-v2-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .services-v2-flow span {
    min-height: 76px !important;
  }
}

/* Fresh Tailwind-style service detail pages */
body[data-route="service"] .service-detail-hero,
body[data-route="service"] .service-detail-body {
  max-width: 1240px !important;
  padding-inline: clamp(14px, 3vw, 28px) !important;
}

body[data-route="service"] .service-detail-hero {
  display: block !important;
  margin-bottom: 18px !important;
}

.service-detail-v2-shell {
  min-height: 420px !important;
}

.service-detail-v2-orbit {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 70px rgba(8, 47, 73, 0.28) !important;
}

.service-orbit-chip {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(125, 211, 252, 0.32) !important;
  border-radius: 999px !important;
  color: #0f172a !important;
  font-size: 0.7rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  padding: 8px 10px !important;
  position: absolute !important;
  z-index: 12 !important;
}

.service-orbit-chip-0 { left: 18px; top: 22px; }
.service-orbit-chip-1 { right: 22px; top: 42px; }
.service-orbit-chip-2 { left: 30px; bottom: 44px; }
.service-orbit-chip-3 { right: 26px; bottom: 26px; }
.service-orbit-chip-4 { left: 50%; top: 12px; transform: translateX(-50%); }
.service-orbit-chip-5 { left: 50%; bottom: 12px; transform: translateX(-50%); }

body[data-route="service"] .service-detail-body {
  display: grid !important;
  gap: 18px !important;
}

.service-detail-v2-grid {
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr) !important;
}

.service-detail-v2-panel {
  background:
    radial-gradient(circle at 4% 0%, rgba(14, 165, 233, 0.08), transparent 32%),
    #ffffff !important;
  border: 1px solid rgba(14, 165, 233, 0.14) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden !important;
  padding: clamp(16px, 2.4vw, 24px) !important;
}

.service-detail-v2-panel h3 {
  color: #0f172a !important;
  font-size: clamp(1.25rem, 2.2vw, 2rem) !important;
  font-weight: 1000 !important;
  line-height: 1.1 !important;
  margin: 0 0 14px !important;
}

.service-detail-v2-steps {
  display: grid !important;
  gap: 10px !important;
}

.service-detail-v2-steps span {
  align-items: center !important;
  background: linear-gradient(135deg, #f8fafc, #eef8ff) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 18px !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  padding: 12px !important;
}

.service-detail-v2-steps b {
  align-items: center !important;
  background: linear-gradient(135deg, #1769ff, #16b86a) !important;
  border-radius: 15px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.8rem !important;
  font-weight: 1000 !important;
  height: 42px !important;
  justify-content: center !important;
  width: 42px !important;
}

.service-detail-v2-steps em {
  color: #0f172a !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

.service-detail-v2-prepare {
  display: grid !important;
  gap: 10px !important;
}

.service-detail-v2-prepare span {
  background: #ecfeff !important;
  border: 1px solid rgba(14, 165, 233, 0.18) !important;
  border-radius: 14px !important;
  color: #155e75 !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  padding: 10px !important;
}

.service-detail-v2-section-head {
  align-items: center !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}

.service-detail-v2-section-head span {
  background: #0f172a !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  flex: 0 0 auto !important;
  font-size: 0.72rem !important;
  font-weight: 1000 !important;
  padding: 8px 10px !important;
}

.service-detail-v2-coverage {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.service-detail-v2-coverage article {
  background: linear-gradient(145deg, #ffffff, #f0f9ff) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 20px !important;
  min-height: 100% !important;
  padding: 14px !important;
}

.service-detail-v2-coverage article div {
  align-items: center !important;
  background: linear-gradient(135deg, #1769ff, #16b86a) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.82rem !important;
  font-weight: 1000 !important;
  height: 40px !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  min-width: 48px !important;
  padding-inline: 10px !important;
}

.service-detail-v2-coverage h4 {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 1000 !important;
  margin: 0 0 8px !important;
}

.service-detail-v2-coverage p,
.service-detail-v2-visual p {
  color: #475569 !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  line-height: 1.6 !important;
}

.service-detail-v2-visual {
  align-items: center !important;
  display: grid !important;
  gap: 20px !important;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr) !important;
}

.service-detail-v2-visual img {
  background: #0f172a !important;
  border-radius: 24px !important;
  max-height: 300px !important;
  object-fit: cover !important;
  width: 100% !important;
}

.service-detail-v2-visual strong {
  background: #f0fdf4 !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  border-radius: 16px !important;
  color: #166534 !important;
  display: block !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  margin-top: 12px !important;
  padding: 12px !important;
}

@media (max-width: 980px) {
  .service-detail-v2-grid,
  .service-detail-v2-coverage,
  .service-detail-v2-visual {
    grid-template-columns: 1fr !important;
  }

  .service-detail-v2-shell {
    min-height: 0 !important;
  }
}

@media (max-width: 560px) {
  .service-detail-v2-orbit {
    min-height: 240px !important;
  }

  .service-orbit-chip {
    font-size: 0.62rem !important;
    padding: 6px 8px !important;
  }

  .service-detail-v2-section-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .service-detail-v2-steps span {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }
}

/* Compact service pages: no banners, shorter service cards, simple detail view. */
body[data-route="services"] .services-overview-section {
  padding: clamp(14px, 2.4vw, 22px) !important;
}

body[data-route="services"] .services-smart-title {
  margin-bottom: 16px !important;
}

body[data-route="services"] .services-smart-title h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
}

body[data-route="services"] .services-smart-title p {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

body[data-route="services"] .services-routing-strip {
  display: none !important;
}

body[data-route="services"] .services-v2-card {
  border-color: rgba(14, 165, 233, 0.14) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

body[data-route="services"] .services-v2-card:nth-child(5n) {
  grid-column: span 3 !important;
}

.service-simple-head,
.service-simple-panel {
  border-color: rgba(14, 165, 233, 0.14) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

body[data-route="service"] .service-detail-hero {
  margin-bottom: 14px !important;
}

.service-simple-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr) !important;
}

.service-simple-panel {
  background: #ffffff !important;
  border: 1px solid rgba(14, 165, 233, 0.14) !important;
  border-radius: 22px !important;
  padding: clamp(14px, 2vw, 20px) !important;
}

.service-simple-panel h3 {
  color: #0f172a !important;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem) !important;
  font-weight: 1000 !important;
  line-height: 1.18 !important;
  margin: 0 0 12px !important;
}

.service-simple-steps {
  display: grid !important;
  gap: 8px !important;
}

.service-simple-steps span {
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 14px !important;
  color: #0f172a !important;
  display: grid !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
  gap: 10px !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  padding: 9px !important;
}

.service-simple-steps b {
  align-items: center !important;
  background: #0f766e !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.72rem !important;
  font-weight: 1000 !important;
  height: 28px !important;
  justify-content: center !important;
  width: 28px !important;
}

.service-simple-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.service-simple-tags span {
  background: #eef8ff !important;
  border: 1px solid rgba(14, 165, 233, 0.18) !important;
  border-radius: 999px !important;
  color: #075985 !important;
  font-size: 0.72rem !important;
  font-weight: 950 !important;
  padding: 7px 9px !important;
}

.service-simple-coverage {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.service-simple-coverage article {
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 16px !important;
  padding: 12px !important;
}

.service-simple-coverage strong {
  color: #0f766e !important;
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 1000 !important;
  margin-bottom: 6px !important;
}

.service-simple-coverage h4 {
  color: #0f172a !important;
  font-size: 0.98rem !important;
  font-weight: 1000 !important;
  margin: 0 0 6px !important;
}

.service-simple-coverage p {
  color: #475569 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

@media (max-width: 980px) {
  body[data-route="services"] .services-v2-card:nth-child(5n) {
    grid-column: span 1 !important;
  }

  .service-simple-grid,
  .service-simple-coverage {
    grid-template-columns: 1fr !important;
  }
}

/* Clean services rebuild: simple catalog and simple detail pages. */
body[data-route="services"] .services-overview-section {
  background: #ffffff !important;
  border-color: rgba(14, 165, 233, 0.14) !important;
  border-radius: 22px !important;
  padding: clamp(14px, 2vw, 22px) !important;
}

body[data-route="services"] .services-smart-title {
  margin: 0 0 16px !important;
  max-width: 840px !important;
  text-align: left !important;
}

body[data-route="services"] .services-smart-title h2 {
  color: #0f172a !important;
  font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
  line-height: 1.08 !important;
}

body[data-route="services"] .services-page-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.service-clean-card {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
}

.service-clean-card-main {
  align-items: flex-start !important;
  display: flex !important;
  gap: 12px !important;
}

.service-clean-icon {
  align-items: center !important;
  background: linear-gradient(135deg, #1769ff, #16b86a) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 0.82rem !important;
  font-weight: 1000 !important;
  height: 44px !important;
  justify-content: center !important;
  width: 44px !important;
}

.service-clean-card h3 {
  color: #0f172a !important;
  font-size: 1.05rem !important;
  font-weight: 1000 !important;
  line-height: 1.2 !important;
  margin: 0 0 5px !important;
}

.service-clean-card p,
.service-clean-title p {
  color: #475569 !important;
  font-size: 0.84rem !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.service-clean-card .primary-action {
  border-radius: 12px !important;
  min-height: 40px !important;
  width: 100% !important;
}

.service-clean-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.service-clean-tags span {
  background: #eef8ff !important;
  border: 1px solid rgba(14, 165, 233, 0.16) !important;
  border-radius: 999px !important;
  color: #075985 !important;
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  padding: 7px 8px !important;
}

body[data-route="service"] .service-detail-hero,
body[data-route="service"] .service-detail-body {
  max-width: 1180px !important;
  padding-inline: clamp(12px, 2.5vw, 24px) !important;
}

.service-clean-head {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(14, 165, 233, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  padding: clamp(14px, 2vw, 20px) !important;
}

.service-clean-title h2 {
  color: #0f172a !important;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem) !important;
  font-weight: 1000 !important;
  line-height: 1.08 !important;
  margin: 0 0 6px !important;
}

body[data-route="service"] .service-detail-body {
  display: grid !important;
  gap: 14px !important;
}

.service-clean-layout {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr) !important;
}

.service-clean-side {
  display: grid !important;
  gap: 14px !important;
}

.service-clean-panel {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
  padding: clamp(14px, 2vw, 18px) !important;
}

.service-clean-panel-head {
  margin-bottom: 12px !important;
}

.service-clean-panel h3 {
  color: #0f172a !important;
  font-size: clamp(1.1rem, 2vw, 1.55rem) !important;
  font-weight: 1000 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.service-clean-coverage {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.service-clean-coverage article {
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 14px !important;
  padding: 12px !important;
}

.service-clean-coverage strong {
  color: #0f766e !important;
  display: block !important;
  font-size: 0.68rem !important;
  font-weight: 1000 !important;
  margin-bottom: 5px !important;
}

.service-clean-coverage h4 {
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-weight: 1000 !important;
  margin: 0 0 5px !important;
}

.service-clean-coverage p {
  color: #475569 !important;
  font-size: 0.8rem !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.service-clean-steps {
  display: grid !important;
  gap: 8px !important;
}

.service-clean-steps span {
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  display: grid !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
  gap: 9px !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  line-height: 1.35 !important;
  padding: 9px !important;
}

.service-clean-steps b {
  align-items: center !important;
  background: #0f766e !important;
  border-radius: 9px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.68rem !important;
  font-weight: 1000 !important;
  height: 24px !important;
  justify-content: center !important;
  width: 24px !important;
}

@media (max-width: 980px) {
  body[data-route="services"] .services-page-grid,
  .service-clean-layout,
  .service-clean-coverage {
    grid-template-columns: 1fr !important;
  }

  .service-clean-head {
    align-items: flex-start !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .service-clean-head .secondary-action {
    grid-column: 1 / -1 !important;
  }
}

/* 2026-07-31 final admin SEO scroll and chat payment layer repair */
@media (min-width: 1025px) {
  body[data-route="admin"],
  body[data-route="agent"],
  body[data-route="products-admin"] {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body[data-route="admin"] main,
  body[data-route="agent"] main,
  body[data-route="products-admin"] main,
  body[data-route="admin"] #adminPage.active,
  body[data-route="agent"] #agentPage.active,
  body[data-route="products-admin"] #productAdminPage.active {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body[data-route="admin"] #adminPage.active .crm-tabs-shell,
  body[data-route="agent"] #agentPage.active .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage.active .crm-tabs-shell {
    align-items: stretch !important;
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body[data-route="admin"] #adminPage.active .crm-tabs-header,
  body[data-route="agent"] #agentPage.active .crm-tabs-header,
  body[data-route="products-admin"] #productAdminPage.active .crm-tabs-header {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 72px !important;
    max-height: 116px !important;
    overflow: visible !important;
  }

  body[data-route="admin"] #adminPage.active .crm-tabs.nav.nav-tabs,
  body[data-route="agent"] #agentPage.active .crm-tabs.nav.nav-tabs,
  body[data-route="products-admin"] #productAdminPage.active .crm-tabs.nav.nav-tabs {
    display: grid !important;
    grid-auto-rows: minmax(38px, auto) !important;
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    grid-template-columns: 1fr !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 10px !important;
    position: static !important;
    top: auto !important;
    width: 240px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body[data-route="admin"] #adminPage.active .crm-tab-panel,
  body[data-route="agent"] #agentPage.active .crm-tab-panel,
  body[data-route="products-admin"] #productAdminPage.active .crm-tab-panel {
    grid-column: 2 !important;
    grid-row: 2 !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 10px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body[data-route="admin"] #adminPage.active #adminSeoTab.crm-tab-panel {
    display: none !important;
  }

  body[data-route="admin"] #adminPage.active #adminSeoTab.crm-tab-panel.active {
    display: block !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    overflow-anchor: none !important;
    scroll-behavior: auto !important;
  }

  body[data-route="admin"] #adminPage.active #adminSeoTab.crm-tab-panel.active * {
    overflow-anchor: none !important;
  }
}

#paymentModal.modal-backdrop.active,
#paymentModal.modal-backdrop.chat-payment-backdrop.active {
  align-items: center !important;
  background: rgba(2, 6, 23, 0.56) !important;
  display: flex !important;
  justify-content: center !important;
  padding: 12px !important;
  pointer-events: auto !important;
  z-index: 3200 !important;
}

#paymentModal.chat-payment-backdrop .payment-panel {
  border-radius: 18px !important;
  max-height: min(620px, calc(100dvh - 24px)) !important;
  max-width: 390px !important;
  overflow-y: auto !important;
  padding: 12px !important;
  position: relative !important;
  width: min(390px, calc(100vw - 24px)) !important;
  z-index: 3201 !important;
}

#paymentModal.chat-payment-backdrop .payment-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#paymentModal.chat-payment-backdrop .payment-form .wide,
#paymentModal.chat-payment-backdrop .payment-form .checkbox-line,
#paymentModal.chat-payment-backdrop .payment-form button {
  grid-column: 1 / -1 !important;
}

#paymentModal.chat-payment-backdrop .checkbox-line input[type="checkbox"] {
  flex: 0 0 auto !important;
  height: 16px !important;
  min-height: 16px !important;
  width: 16px !important;
}

@media (max-width: 620px) {
  #paymentModal.modal-backdrop.active,
  #paymentModal.modal-backdrop.chat-payment-backdrop.active {
    align-items: center !important;
    padding: 8px !important;
  }

  #paymentModal.chat-payment-backdrop .payment-panel {
    max-height: calc(100dvh - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
  }
}

/* Search growth and trust foundation */
.ranking-foundation-section {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto;
  padding: 26px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(34, 197, 94, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f0f9ff 48%, #ecfdf5);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.ranking-foundation-head {
  max-width: 780px;
  margin-bottom: 18px;
}

.ranking-foundation-head h2 {
  margin: 8px 0 10px;
  color: #07111f;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.ranking-foundation-head p {
  color: #334155;
  font-weight: 750;
  line-height: 1.62;
}

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

.ranking-foundation-grid article {
  min-height: 178px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.ranking-foundation-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(34, 197, 94, 0.16));
  color: #075985;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ranking-foundation-grid strong {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
}

.ranking-foundation-grid p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .ranking-foundation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ranking-foundation-section {
    width: min(100% - 20px, 1180px);
    padding: 18px;
    border-radius: 22px;
  }

  .ranking-foundation-grid {
    grid-template-columns: 1fr;
  }
}


/* 2026-07-28 final back-panel stability fix: keep admin/SEO scrollable online. */
body[data-route="admin"],
body[data-route="agent"],
body[data-route="products-admin"] {
  height: auto !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body[data-route="admin"] main,
body[data-route="agent"] main,
body[data-route="products-admin"] main,
body[data-route="admin"] .page.active,
body[data-route="agent"] .page.active,
body[data-route="products-admin"] .page.active {
  height: auto !important;
  max-height: none !important;
  min-height: calc(100dvh - 76px) !important;
  overflow: visible !important;
}

#adminPage .crm-tabs-shell,
#agentPage .crm-tabs-shell,
#productAdminPage .crm-tabs-shell {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#adminPage .crm-tab-panel,
#agentPage .crm-tab-panel,
#productAdminPage .crm-tab-panel,
#adminPage #adminSeoTab,
#adminPage .seo-status-panel {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#adminPage .crm-sheet,
#adminPage .smart-table-wrap,
#adminPage .compact-sheet,
#adminPage .seo-status-grid,
#adminPage .seo-advanced-grid,
#adminPage .blog-agent-panel {
  max-width: 100% !important;
}

#adminPage .crm-sheet,
#adminPage .smart-table-wrap,
#adminPage .compact-sheet {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
}

#adminPage #adminSeoTab table,
#adminPage #adminSeoTab .crm-sheet table {
  min-width: 760px !important;
}

@media (max-width: 920px) {
  body[data-route="admin"] .site-header,
  body[data-route="agent"] .site-header,
  body[data-route="products-admin"] .site-header {
    position: sticky !important;
    top: 0 !important;
  }

  #adminPage,
  #agentPage,
  #productAdminPage {
    padding: 10px !important;
  }

  #adminPage .seo-status-hero,
  #adminPage .seo-rank-summary,
  #adminPage .seo-status-grid,
  #adminPage .seo-advanced-grid,
  #adminPage .blog-agent-head,
  #adminPage .blog-agent-stats {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-07-29 desktop sidebar recovery: left tabs must always be visible on back panels. */
@media (min-width: 1025px) {
  body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs,
  body[data-route="admin"] #adminPage .crm-tabs,
  body[data-route="agent"] #agentPage .crm-tabs,
  body[data-route="customer"] #customerPage .crm-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs,
  body[data-route="admin"] #adminPage .crm-tabs.nav.nav-tabs,
  body[data-route="agent"] #agentPage .crm-tabs.nav.nav-tabs,
  body[data-route="customer"] #customerPage .crm-tabs.nav.nav-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs.nav.nav-tabs {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs-shell,
  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="customer"] #customerPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tabs-header,
  body[data-route="admin"].admin-tabs-collapsed #adminPage .crm-tab-panel {
    grid-column: auto !important;
  }
}

/* 2026-07-29 absolute sidebar placement fix: desktop back panels use a real left rail. */
@media (min-width: 1025px) {
  #adminPage.active .crm-tabs-shell,
  #agentPage.active .crm-tabs-shell,
  #customerPage.active .crm-tabs-shell,
  #productAdminPage.active .crm-tabs-shell,
  body[data-route="admin"] #adminPage .crm-tabs-shell,
  body[data-route="agent"] #agentPage .crm-tabs-shell,
  body[data-route="customer"] #customerPage .crm-tabs-shell,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-shell {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    max-width: calc(100vw - 28px) !important;
    overflow: visible !important;
  }

  #adminPage.active .crm-tabs,
  #agentPage.active .crm-tabs,
  #customerPage.active .crm-tabs,
  #productAdminPage.active .crm-tabs,
  body[data-route="admin"] #adminPage .crm-tabs,
  body[data-route="agent"] #agentPage .crm-tabs,
  body[data-route="customer"] #customerPage .crm-tabs,
  body[data-route="products-admin"] #productAdminPage .crm-tabs,
  #adminPage.active .crm-tabs.nav.nav-tabs,
  #agentPage.active .crm-tabs.nav.nav-tabs,
  #customerPage.active .crm-tabs.nav.nav-tabs,
  #productAdminPage.active .crm-tabs.nav.nav-tabs {
    align-content: start !important;
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    grid-template-columns: 1fr !important;
    max-height: none !important;
    min-height: calc(100dvh - 34px) !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: sticky !important;
    top: 12px !important;
    visibility: visible !important;
    width: 230px !important;
    z-index: 5 !important;
  }

  #adminPage.active .crm-tabs-header,
  #agentPage.active .crm-tabs-header,
  #customerPage.active .crm-tabs-header,
  #productAdminPage.active .crm-tabs-header,
  body[data-route="admin"] #adminPage .crm-tabs-header,
  body[data-route="agent"] #agentPage .crm-tabs-header,
  body[data-route="customer"] #customerPage .crm-tabs-header,
  body[data-route="products-admin"] #productAdminPage .crm-tabs-header {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  #adminPage.active .crm-tab-panel,
  #agentPage.active .crm-tab-panel,
  #customerPage.active .crm-tab-panel,
  #productAdminPage.active .crm-tab-panel,
  body[data-route="admin"] #adminPage .crm-tab-panel,
  body[data-route="agent"] #agentPage .crm-tab-panel,
  body[data-route="customer"] #customerPage .crm-tab-panel,
  body[data-route="products-admin"] #productAdminPage .crm-tab-panel {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
  }

  body.admin-tabs-collapsed #adminPage.active .crm-tabs,
  body.admin-tabs-collapsed body[data-route="admin"] #adminPage .crm-tabs {
    display: grid !important;
  }
}

/* 2026-07-29 back-panel scroll repair: every tab content must scroll normally. */
@media (min-width: 1025px) {
  body[data-route="admin"],
  body[data-route="agent"],
  body[data-route="customer"],
  body[data-route="products-admin"] {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body[data-route="admin"] main,
  body[data-route="agent"] main,
  body[data-route="customer"] main,
  body[data-route="products-admin"] main,
  body[data-route="admin"] .page.active,
  body[data-route="agent"] .page.active,
  body[data-route="customer"] .page.active,
  body[data-route="products-admin"] .page.active {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #adminPage.active,
  #agentPage.active,
  #customerPage.active,
  #productAdminPage.active {
    padding: 12px !important;
  }

  #adminPage.active .crm-tabs-shell,
  #agentPage.active .crm-tabs-shell,
  #customerPage.active .crm-tabs-shell,
  #productAdminPage.active .crm-tabs-shell {
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #adminPage.active .crm-tabs,
  #agentPage.active .crm-tabs,
  #customerPage.active .crm-tabs,
  #productAdminPage.active .crm-tabs,
  #adminPage.active .crm-tabs.nav.nav-tabs,
  #agentPage.active .crm-tabs.nav.nav-tabs,
  #customerPage.active .crm-tabs.nav.nav-tabs,
  #productAdminPage.active .crm-tabs.nav.nav-tabs {
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
    top: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #adminPage.active .crm-tabs-header,
  #agentPage.active .crm-tabs-header,
  #customerPage.active .crm-tabs-header,
  #productAdminPage.active .crm-tabs-header {
    min-height: 74px !important;
    max-height: 112px !important;
    overflow: visible !important;
  }

  #adminPage.active .crm-tab-panel,
  #agentPage.active .crm-tab-panel,
  #customerPage.active .crm-tab-panel,
  #productAdminPage.active .crm-tab-panel {
    height: calc(100dvh - 128px) !important;
    max-height: calc(100dvh - 128px) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #adminPage.active .crm-tab-panel.active,
  #agentPage.active .crm-tab-panel.active,
  #customerPage.active .crm-tab-panel.active,
  #productAdminPage.active .crm-tab-panel.active {
    display: block !important;
  }

  #adminPage.active .crm-sheet,
  #adminPage.active .smart-table-wrap,
  #adminPage.active .compact-sheet,
  #agentPage.active .crm-sheet,
  #agentPage.active .smart-table-wrap,
  #customerPage.active .crm-sheet,
  #customerPage.active .smart-table-wrap,
  #productAdminPage.active .crm-sheet,
  #productAdminPage.active .smart-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 1024px) {
  body[data-route="admin"],
  body[data-route="agent"],
  body[data-route="customer"],
  body[data-route="products-admin"],
  body[data-route="admin"] main,
  body[data-route="agent"] main,
  body[data-route="customer"] main,
  body[data-route="products-admin"] main,
  body[data-route="admin"] .page.active,
  body[data-route="agent"] .page.active,
  body[data-route="customer"] .page.active,
  body[data-route="products-admin"] .page.active,
  #adminPage.active,
  #agentPage.active,
  #customerPage.active,
  #productAdminPage.active,
  #adminPage.active .crm-tabs-shell,
  #agentPage.active .crm-tabs-shell,
  #customerPage.active .crm-tabs-shell,
  #productAdminPage.active .crm-tabs-shell,
  #adminPage.active .crm-tab-panel,
  #agentPage.active .crm-tab-panel,
  #customerPage.active .crm-tab-panel,
  #productAdminPage.active .crm-tab-panel {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
  }
}

/* ===== FixGPT redesign (fxr-) — Home page ===== */
@keyframes fxr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes fxr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fxr-flow { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.fxr-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 50%, #ffffff 100%);
  border-radius: 0;
  padding: 56px 20px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.fxr-hero-video { background: #0c1629; }
.fxr-hero-video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0.85; pointer-events: none; }
.fxr-hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.08) 0%, rgba(8, 15, 28, 0.5) 55%, rgba(8, 15, 28, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 15, 28, 0.62) 0%, rgba(8, 15, 28, 0.2) 46%, rgba(8, 15, 28, 0) 68%);
  pointer-events: none;
}
.fxr-hero-video .fxr-hero-bottom, .fxr-hero-video .fxr-search-bar { position: relative; z-index: 1; }

.fxr-hero-clean { display: flex; flex-direction: column; min-height: 88vh; text-align: left; padding: 0; }
.fxr-hero-fill { flex: 1; }
.fxr-hero-bottom { padding: 0 clamp(20px, 4vw, 40px) 14px; }
.fxr-hero-instant-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
}
.fxr-hero-instant-note i { color: var(--brand); font-size: 15px; flex-shrink: 0; }
.fxr-hero-title-sm {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 8px;
  text-shadow: 0 2px 16px rgba(255,255,255,.9), 0 1px 4px rgba(255,255,255,.9);
}
.fxr-hero-sub-sm {
  font-size: clamp(14px, 2vw, 18px); font-weight: 600; color: var(--ink); margin: 0;
  text-shadow: 0 2px 12px rgba(255,255,255,.9), 0 1px 4px rgba(255,255,255,.9);
}
.fxr-hero-clean .fxr-search-bar { background: transparent; padding: 18px clamp(96px, 12vw, 150px) 22px clamp(20px, 4vw, 40px); border-radius: 0; }
.fxr-search-form { display: flex; gap: 12px; max-width: none; width: 100%; flex-wrap: wrap; }
.fxr-search-input {
  flex: 1 1 320px; min-width: 0; height: 58px !important; border-radius: 14px !important; border: 0; padding: 0 22px !important;
  font-size: 16px !important; outline: none; box-shadow: 0 10px 30px rgba(0,0,0,.15); background: #fff;
}
.fxr-search-input:focus { box-shadow: 0 0 0 4px rgba(23,105,255,.3); }
.fxr-search-btn {
  height: 58px; padding: 0 32px; border-radius: 14px; border: 0; background: var(--brand); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.15); transition: background .15s ease;
  margin-left: -8px;
}
.fxr-search-btn:hover { background: var(--brand-dark); }

.fxr-hero-tools-strip { padding: 18px 4px 4px; }
.fxr-hero-tools-mask {
  overflow: hidden; padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.fxr-hero-tools-track { display: flex; gap: 12px; width: max-content; padding: 0 16px; animation: fxr-scroll 24s linear infinite; }
.fxr-hero-tools-mask:hover .fxr-hero-tools-track { animation-play-state: paused; }
.fxr-hero-tool-chip {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.95);
  border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: var(--shadow); flex-shrink: 0; white-space: nowrap;
}
.fxr-hero-tools-strip .fxr-hero-tool-chip {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--line);
}
.fxr-hero-tool-ic { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fxr-hero-tool-chip b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
@media (max-width: 700px) {
  .fxr-hero-clean { min-height: 62vh; }
  .fxr-hero-bottom { padding: 0 16px 10px; }
  .fxr-hero-instant-note {
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 11px;
    white-space: normal;
  }
  .fxr-hero-instant-note i { font-size: 13px; }
  .fxr-hero-title-sm { font-size: 24px; margin: 0 0 5px; }
  .fxr-hero-sub-sm { font-size: 13px; }
  .fxr-hero-trust-row {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin: 10px 0 0 !important;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    scrollbar-width: none;
  }
  .fxr-hero-trust-row::-webkit-scrollbar { display: none; }
  .fxr-hero-trust-chip { padding: 6px 11px !important; font-size: 11px !important; gap: 5px !important; flex-shrink: 0; white-space: nowrap; }
  .fxr-hero-trust-chip i { font-size: 13px !important; }
  .fxr-hero-clean .fxr-search-bar {
    padding: 10px 16px 16px !important;
  }
  .fxr-search-form { gap: 8px; }
  .fxr-search-input {
    height: 48px !important;
    font-size: 15px !important;
    padding: 0 16px !important;
    flex-basis: 100%;
  }
  .fxr-search-btn {
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
    margin-left: 0;
    flex: 1 1 auto;
  }
}

.fxr-ticker-band { padding: 34px 4px 0; }
.fxr-ticker-eyebrow {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 12px; padding: 0 4px;
}
.fxr-ticker-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.fxr-ticker-track { display: flex; gap: 12px; width: max-content; padding: 4px; animation: fxr-scroll 26s linear infinite; }
.fxr-ticker-mask:hover .fxr-ticker-track { animation-play-state: paused; }
.fxr-ticker-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; white-space: nowrap; flex-shrink: 0;
}
.fxr-ticker-chip b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fxr-ticker-chip small { font-size: 12px; color: var(--muted); }
.fxr-ticker-ic { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fxr-ticker-ic i { font-size: 15px; }

.fxr-help-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; overflow: hidden; border-radius: 24px; }
.fxr-help-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.fxr-help-visual img, .fxr-help-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fxr-help-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 8px;
}
.fxr-help-form input {
  background: rgba(255, 255, 255, 0.75);
}
@media (max-width: 760px) { .fxr-help-strip { grid-template-columns: 1fr; } .fxr-help-visual { display: none; } }

.fxr-notice { border-radius: 20px; }

.fxr-trust { padding: 56px 4px; }
.fxr-trust > .eyebrow, .fxr-trust > h2 { text-align: center; }
.fxr-trust h2 { font-size: 26px; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.fxr-trust-lede { color: var(--muted); max-width: 640px; margin: 0 auto 28px; text-align: center; }
.fxr-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fxr-trust-grid article {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fxr-trust-grid article:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12); }
.fxr-trust-grid p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 4px 0 0; }
.fxr-trust-grid strong { display: block; font-size: 15px; font-weight: 700; margin-top: 2px; }
.fxr-trust-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 700px) { .fxr-trust-grid { grid-template-columns: 1fr; } }

.fxr-ranking { padding: 56px 4px; }
.fxr-ranking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fxr-ranking-grid article { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.fxr-ranking-grid strong { display: block; font-size: 14.5px; font-weight: 700; margin: 6px 0 4px; }
.fxr-ranking-grid p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.fxr-rank-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
@media (max-width: 900px) { .fxr-ranking-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fxr-ranking-grid { grid-template-columns: 1fr; } }

.fxr-journey, .fxr-task { padding: 44px 28px; border-radius: 24px; margin: 24px 4px; }
.fxr-journey { background: #f6f2ff; }
.fxr-task { background: #fff8e6; }
.fxr-journey h2, .fxr-task h2 { font-size: 24px; font-weight: 800; margin: 0 0 24px; color: var(--ink); }
.fxr-journey > .eyebrow, .fxr-journey > h2, .fxr-task > .eyebrow, .fxr-task > h2 { text-align: center; }
.fxr-task-lede { color: var(--muted); max-width: 640px; margin: -14px auto 26px; text-align: center; }
.fxr-pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 20px; }
.fxr-pipeline-4 { grid-template-columns: repeat(4, 1fr); }
.fxr-pipeline-dot {
  position: absolute; top: -2.5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--electric); box-shadow: 0 0 0 3px rgba(54,183,255,.2);
  animation: fxr-flow 6.4s linear infinite;
}
.fxr-pstep { position: relative; padding-top: 18px; padding-right: 12px; }
.fxr-pstep::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--line); }
.fxr-pstep::after { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.fxr-pstep:first-child::before { left: 50%; }
.fxr-pstep:last-child::before { right: 50%; }
.fxr-pstep-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.fxr-pstep b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.fxr-pstep small { font-size: 12px; color: var(--muted); }
.fxr-mini-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fxr-mini-points article { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px; }
.fxr-mini-points i { color: var(--brand); font-size: 17px; margin-top: 2px; }
.fxr-mini-points b { display: block; font-size: 13.5px; font-weight: 700; }
.fxr-mini-points span { font-size: 12px; color: var(--muted); }
.fxr-tax-mini { background: var(--green-soft); border-radius: 14px; padding: 14px 16px; }
.fxr-tax-mini strong { display: block; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.fxr-tax-mini span { color: var(--ink); font-size: 12.5px; line-height: 1.55; }
@media (max-width: 700px) { .fxr-pipeline, .fxr-pipeline-4 { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } .fxr-mini-points { grid-template-columns: 1fr; } }

.fxr-command { padding: 0 4px 40px; }
.fxr-command-visual { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.fxr-command-topbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--blue-soft); }
.fxr-dot { width: 10px; height: 10px; border-radius: 50%; }
.fxr-command-topbar strong { margin-left: 8px; font-size: 12.5px; font-weight: 700; }
.fxr-command-topbar b { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--green); }
.fxr-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; animation: fxr-pulse 1.8s ease-in-out infinite; }
.fxr-command-board { display: grid; grid-template-columns: 1.2fr 1fr; }
.fxr-command-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; border-right: 1px solid var(--line); }
.fxr-metric { background: var(--blue-soft); border-radius: 14px; padding: 16px; }
.fxr-metric small { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.fxr-metric strong { font-size: 24px; font-weight: 900; display: block; }
.fxr-metric em { font-size: 11px; color: var(--brand); font-style: normal; font-weight: 600; }
.fxr-ticket-stack { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fxr-ticket-stack article { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fxr-ticket-stack span { font-size: 12.5px; font-weight: 700; display: block; }
.fxr-ticket-stack b { font-size: 11px; color: var(--muted); font-weight: 500; }
.fxr-ticket-stack i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.fxr-pill-high { background: #fcebeb; color: #a32d2d; }
.fxr-pill-normal { background: #e6fbff; color: #0a7ea4; }
.fxr-pill-open { background: #f1ecfe; color: #6d3fd1; }
@media (max-width: 760px) { .fxr-command-board { grid-template-columns: 1fr; } .fxr-command-metrics { grid-template-columns: 1fr; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) {
  .fxr-live-dot, .fxr-pipeline-dot, .fxr-ticker-track, .fxr-hero-tools-track { animation: none !important; }
}

/* ===== FixGPT redesign (fxr-) — Services page ===== */
.fxr-svc-wrap { max-width: 1160px; margin: 0 auto; padding: 40px 20px 60px; }
.fxr-svc-hero { position: relative; isolation: isolate; border-radius: 24px; padding: 40px 32px; margin-bottom: 20px; overflow: hidden; background: var(--blue-soft); }
.fxr-svc-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1600&q=80");
  background-size: cover; background-position: center; opacity: 0.7;
}
.fxr-svc-hero .eyebrow, .fxr-svc-hero .fxr-svc-title, .fxr-svc-hero .fxr-svc-sub {
  text-shadow: 0 2px 16px rgba(255,255,255,.85), 0 1px 4px rgba(255,255,255,.9);
}
.fxr-svc-title { font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 4px 0 8px; text-wrap: balance; }
.fxr-svc-sub { color: var(--muted); font-size: 15px; max-width: 640px; margin: 0; }
.fxr-svc-console { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.fxr-svc-rail { border-right: 1px solid var(--line); }
.fxr-svc-row {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 18px 20px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative;
  font-family: inherit; color: inherit; transition: background .15s ease, padding-left .15s ease;
}
.fxr-svc-row:last-child { border-bottom: 0; }
.fxr-svc-row:hover { background: var(--blue-soft); padding-left: 24px; }
.fxr-svc-row[aria-selected="true"] { background: var(--blue-soft); }
.fxr-svc-row[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.fxr-svc-code { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fxr-svc-code i { font-size: 17px; }
.fxr-svc-row-title { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; color: var(--ink); }
.fxr-svc-row-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.fxr-svc-row-meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

.fxr-svc-panel { padding: 32px 36px; min-width: 0; }
.fxr-svc-panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 6px; }
.fxr-svc-panel-head-photo { position: relative; isolation: isolate; border-radius: 16px; padding: 20px; margin: -20px -20px 6px; }
.fxr-svc-panel-head-bg {
  position: absolute; inset: 0; z-index: -1; border-radius: 16px;
  background-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=80");
  background-size: cover; background-position: center; opacity: 0.7;
}
.fxr-svc-panel-head-bg-video { width: 100%; height: 100%; object-fit: cover; background-image: none; pointer-events: none; }
.fxr-svc-panel-head-photo .fxr-svc-panel-h2, .fxr-svc-panel-head-photo .fxr-svc-panel-name {
  text-shadow: 0 2px 16px rgba(255,255,255,.9), 0 1px 4px rgba(255,255,255,.95);
}
.fxr-svc-panel-code { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fxr-svc-panel-code i { font-size: 23px; }
.fxr-svc-panel-h2 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 3px; color: var(--ink); }
.fxr-svc-panel-name { font-size: 13px; color: var(--muted); margin: 0; }
.fxr-svc-panel-desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 18px 0 28px; max-width: 68ch; }
.fxr-svc-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.fxr-svc-pipeline { margin-bottom: 32px; }
.fxr-pnum { font-size: 10.5px; color: var(--brand); font-weight: 800; display: block; margin-bottom: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fxr-ptext { font-size: 12.5px; line-height: 1.4; color: var(--ink); padding-right: 10px; }

.fxr-svc-ticker-mask { overflow: hidden; margin-bottom: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.fxr-svc-ticker-track { display: flex; gap: 12px; width: max-content; padding: 4px 2px 8px; animation: fxr-scroll 26s linear infinite; }
.fxr-svc-ticker-mask:hover .fxr-svc-ticker-track { animation-play-state: paused; }
.fxr-svc-tool { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; padding: 14px 8px 12px; border: 1px solid var(--line); border-radius: 12px; text-align: center; flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--ink); }
.fxr-svc-tool-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.fxr-svc-tool-ic i { font-size: 20px; }

.fxr-svc-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-bottom: 26px; }
.fxr-svc-coverage { display: flex; flex-direction: column; gap: 12px; }
.fxr-svc-cov-item { border-left: 2px solid var(--line); padding-left: 12px; }
.fxr-svc-cov-item b { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.fxr-svc-cov-item span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fxr-svc-prepare { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fxr-svc-prepare li { font-size: 13px; padding-left: 16px; position: relative; color: var(--ink); }
.fxr-svc-prepare li::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--electric); }
.fxr-svc-outcome { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; }
.fxr-svc-outcome b { display: block; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.fxr-svc-outcome span { font-size: 12.5px; color: var(--ink); line-height: 1.55; }
.fxr-svc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 780px) {
  .fxr-svc-console { grid-template-columns: 1fr; }
  .fxr-svc-rail { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .fxr-svc-row { flex-direction: column; gap: 6px; min-width: 200px; border-bottom: 0; border-right: 1px solid var(--line); }
  .fxr-svc-row[aria-selected="true"]::before { left: 0; top: 0; bottom: auto; width: 100%; height: 3px; }
  .fxr-svc-panel { padding: 24px 18px; }
  .fxr-svc-cols { grid-template-columns: 1fr; gap: 22px; }
  .fxr-svc-pipeline { grid-template-columns: repeat(2, 1fr) !important; row-gap: 20px; }
}

/* ===== FixGPT redesign (fxr-) — Pricing page ===== */
.fxr-pricing-wrap { max-width: 1160px; margin: 0 auto; padding: 40px 20px 60px; }
.fxr-pricing-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.fxr-pricing-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 12px; }
.fxr-pricing-head p { color: var(--muted); font-size: 15px; }
.fxr-pricing-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; margin-bottom: 40px; }
.fxr-pricing-card { border: 2px solid var(--brand); border-radius: 22px; overflow: hidden; box-shadow: var(--premium-shadow); }
.fxr-pricing-card-top { background: var(--brand); padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; }
.fxr-pricing-card-top span { color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.fxr-pricing-card-top b { background: #fff; color: var(--brand); font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.fxr-pricing-card-body { padding: 32px 36px; }
.fxr-pricing-card-body h3 { font-size: 22px; font-weight: 800; margin: 0 0 14px; color: var(--ink); }
.fxr-pricing-amount { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.fxr-pricing-amount strong { font-size: 56px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.fxr-pricing-amount small { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.fxr-pricing-card-body > p { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.fxr-pricing-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.fxr-pricing-features span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.fxr-pricing-features i { color: var(--green); font-size: 17px; }
.fxr-pricing-form { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--blue-soft); }
.fxr-pricing-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.fxr-pricing-form-row input { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font-size: 13.5px; outline: none; }
.fxr-pricing-form-row input:focus { border-color: var(--brand); }
.fxr-pricing-form .primary-action { width: 100%; height: 46px; border-radius: 10px; }
.fxr-pricing-side { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.fxr-pricing-side-top { background: var(--ink); padding: 30px 24px; text-align: center; }
.fxr-pricing-side-top p { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); margin: 0 0 8px; }
.fxr-pricing-side-top strong { display: block; font-size: 48px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.fxr-pricing-side-top small { font-size: 12.5px; color: rgba(255,255,255,.7); }
.fxr-pricing-flow { padding: 22px 24px; flex: 1; }
.fxr-pricing-flow > div { display: flex; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.fxr-pricing-flow > div:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.fxr-pricing-flow-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fxr-pricing-flow-ic i { color: var(--brand); font-size: 17px; }
.fxr-pricing-flow b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.fxr-pricing-flow small { font-size: 12.5px; color: var(--muted); }
.fxr-pricing-safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fxr-pricing-safe article { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.fxr-pricing-safe-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fxr-pricing-safe-ic i { color: var(--green); font-size: 19px; }
.fxr-pricing-safe b { display: block; font-size: 14px; font-weight: 700; }
.fxr-pricing-safe small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .fxr-pricing-grid { grid-template-columns: 1fr; }
  .fxr-pricing-features { grid-template-columns: 1fr; }
  .fxr-pricing-form-row { grid-template-columns: 1fr; }
  .fxr-pricing-safe { grid-template-columns: 1fr; }
}

/* ===== FixGPT redesign (fxr-) — About page ===== */
.fxr-about-wrap { max-width: 1160px; margin: 0 auto; padding: 40px 20px 60px; }
.fxr-about-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.fxr-about-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 14px; }
.fxr-about-lede { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.fxr-about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fxr-about-stats b { display: block; font-size: 30px; font-weight: 900; color: var(--ink); }
.fxr-about-stats span { font-size: 12px; color: var(--muted); }
.fxr-about-orbit { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin: 0 auto; }
.fxr-about-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line); }
.fxr-about-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 112px; height: 112px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--premium-shadow); z-index: 2;
}
.fxr-about-core b { font-size: 14px; font-weight: 800; }
.fxr-about-core small { font-size: 10px; opacity: .85; }
.fxr-about-node { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 6px 16px rgba(12,22,41,.08); }
.fxr-about-node span { display: block; font-size: 10px; color: var(--muted); }
.fxr-about-node strong { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.fxr-about-node-tl { top: 6%; left: 4%; }
.fxr-about-node-tr { top: 6%; right: 4%; }
.fxr-about-node-bl { bottom: 6%; left: 4%; }
.fxr-about-node-br { bottom: 6%; right: 4%; }

.fxr-about-section { margin-bottom: 56px; }
.fxr-about-section h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 6px 0 26px; }
.fxr-about-coverage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fxr-about-coverage article { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.fxr-about-coverage .fxr-svc-code { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; }
.fxr-about-coverage strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.fxr-about-coverage small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.fxr-about-journey-wrap .fxr-pipeline { background: var(--blue-soft); border-radius: 20px; padding: 30px 26px 16px; }

.fxr-about-process { display: flex; align-items: center; gap: 10px; max-width: 640px; }
.fxr-about-process span { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.fxr-about-process i { flex: 1; height: 2px; background: var(--line); display: block; }

@media (max-width: 900px) {
  .fxr-about-hero { grid-template-columns: 1fr; }
  .fxr-about-coverage { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fxr-about-coverage { grid-template-columns: 1fr; }
  .fxr-about-process { flex-wrap: wrap; }
}

/* ===== FixGPT redesign (fxr-) — Products page hero (grid/checkout untouched) ===== */
.fxr-prod-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, #ffffff, var(--blue-soft)); border: 1px solid var(--line); border-radius: 24px; padding: 34px 36px; margin-bottom: 20px; }
.fxr-prod-hero h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 12px; }
.fxr-prod-lede { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.fxr-prod-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fxr-prod-visual { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; }
.fxr-prod-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--premium-shadow); }
.fxr-prod-core b { font-size: 12.5px; font-weight: 800; }
.fxr-prod-core span { font-size: 9.5px; opacity: .85; }
.fxr-prod-chip { position: absolute; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 11.5px; font-weight: 700; box-shadow: 0 6px 14px rgba(12,22,41,.08); }
.fxr-prod-chip i { color: var(--brand); font-size: 14px; }
.fxr-prod-chip-a { top: 4%; left: 0; }
.fxr-prod-chip-b { top: 4%; right: 0; }
.fxr-prod-chip-c { bottom: 4%; left: 0; }
.fxr-prod-chip-d { bottom: 4%; right: 0; }
.fxr-prod-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.fxr-prod-flow article { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fxr-prod-flow strong { display: block; font-size: 13.5px; font-weight: 700; margin: 4px 0; color: var(--ink); }
.fxr-prod-flow small { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .fxr-prod-hero { grid-template-columns: 1fr; }
  .fxr-prod-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .fxr-prod-flow { grid-template-columns: 1fr; } }

/* ===== FixGPT redesign (fxr-) — Self Help Desk page ===== */
.fxr-sh-wrap { max-width: 1160px; margin: 0 auto; padding: 40px 20px 60px; }
.fxr-sh-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.fxr-sh-head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 12px; }
.fxr-sh-head p { color: var(--muted); font-size: 15px; }

.fxr-sh-head-video {
  position: relative;
  isolation: isolate;
  max-width: none;
  border-radius: 24px;
  padding: 44px 24px;
  overflow: hidden;
}
.fxr-sh-head-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.fxr-sh-head-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 100% 100%, rgba(12, 22, 41, .9) 0%, rgba(12, 22, 41, .55) 22%, transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.68) 55%, rgba(255,255,255,.85) 100%);
}
.fxr-sh-head-video .eyebrow,
.fxr-sh-head-video h1,
.fxr-sh-head-video p {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 14px rgba(255,255,255,.8);
}
.fxr-sh-search { max-width: 760px; margin: 0 auto 22px; }
.fxr-sh-search form { display: flex; gap: 10px; border: 1px solid var(--line); background: var(--blue-soft); border-radius: 16px; padding: 8px; }
.fxr-sh-input { flex: 1; height: 52px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 18px; font-size: 14.5px; outline: none; }
.fxr-sh-input:focus { border-color: var(--brand); }
.fxr-sh-btn { height: 52px; padding: 0 28px; border-radius: 10px; }
.fxr-sh-ticker-mask { max-width: 760px; margin: 0 auto 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fxr-sh-ticker-track { display: flex; gap: 10px; width: max-content; animation: fxr-scroll 26s linear infinite; }
.fxr-sh-ticker-mask:hover .fxr-sh-ticker-track { animation-play-state: paused; }
.fxr-sh-ticker-track span { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--brand-dark); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

.fxr-sh-wrap .self-help-results,
.fxr-sh-wrap .self-help-side-panel,
.fxr-sh-wrap .self-help-bottom-banner { margin-bottom: 24px; position: static; top: auto; }

.fxr-sh-how { margin: 20px 0 48px; }
.fxr-sh-how .eyebrow { text-align: center; display: block; }
.fxr-sh-how h2 { text-align: center; font-size: 24px; font-weight: 800; color: var(--ink); margin: 6px 0 30px; }
.fxr-pipeline-3 { grid-template-columns: repeat(3, 1fr); }

.fxr-sh-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fxr-sh-categories article { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.fxr-sh-categories .fxr-svc-code { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px; }
.fxr-sh-categories strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.fxr-sh-categories small { font-size: 12px; color: var(--muted); line-height: 1.45; }

@media (max-width: 900px) {
  .fxr-sh-categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fxr-sh-search form { flex-direction: column; }
  .fxr-sh-categories { grid-template-columns: 1fr; }
}

/* ===== FixGPT redesign (fxr-) — Blog page ===== */
.fxr-blog-hero { max-width: 1160px; margin: 40px auto 30px; padding: 40px clamp(20px, 4vw, 48px); background: var(--ink); border-radius: 24px; }
.fxr-blog-hero .eyebrow { color: var(--electric); }
.fxr-blog-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.02em; color: #fff; margin: 10px 0 14px; max-width: 720px; }
.fxr-blog-lede { color: rgba(255,255,255,.72); font-size: 15px; max-width: 680px; margin-bottom: 16px; }
.fxr-blog-auto-note { color: rgba(255,255,255,.55); font-size: 12.5px; max-width: 720px; margin-bottom: 22px; line-height: 1.55; }
.fxr-blog-search { display: flex; gap: 10px; max-width: 560px; }
.fxr-blog-search input { flex: 1; height: 48px; border-radius: 10px; border: 0; background: #fff; padding: 0 16px; font-size: 13.5px; outline: none; }
.fxr-blog-search .primary-action { height: 48px; padding: 0 26px; border-radius: 10px; }

.fxr-blog-layout { max-width: 1160px; margin: 0 auto 60px; padding: 0 20px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.fxr-blog-index { border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: sticky; top: 96px; }
.fxr-blog-index > strong { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
#blogCategoryList { display: flex; flex-direction: column; gap: 4px; }
#blogCategoryList button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
#blogCategoryList button:hover { background: var(--blue-soft); }
#blogCategoryList button.active { background: var(--brand); color: #fff; }
#blogCategoryList button strong { font-size: 11px; font-weight: 700; opacity: .7; }
.fxr-blog-seo-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fxr-blog-seo-note span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); margin-bottom: 6px; }
.fxr-blog-seo-note p { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.fxr-blog-clusters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.fxr-blog-clusters article { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fxr-blog-clusters .fxr-svc-code { margin-bottom: 10px; }
.fxr-blog-clusters b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fxr-blog-clusters > article > span:last-child { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

.fxr-blog-guidance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.fxr-blog-guidance article { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fxr-blog-guidance b { display: block; font-size: 14px; font-weight: 700; margin: 8px 0 6px; color: var(--ink); }
.fxr-blog-guidance p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.fxr-blog-authority { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; background: var(--blue-soft); }
.fxr-blog-authority h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 4px 0 10px; }
.fxr-blog-authority > div > p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.fxr-blog-authority ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fxr-blog-authority li { font-size: 12.5px; color: var(--ink); padding-left: 20px; position: relative; }
.fxr-blog-authority li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.fxr-blog-citation { border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 28px; }
.fxr-blog-citation h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 4px 0 10px; }
.fxr-blog-citation > div > p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.fxr-blog-nap { border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.fxr-blog-nap strong { font-size: 14px; color: var(--ink); }
.fxr-blog-nap span { font-size: 12.5px; color: var(--muted); }
.fxr-blog-nap small { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.fxr-blog-checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.fxr-blog-checklist span { font-size: 11.5px; font-weight: 700; color: var(--brand-dark); background: var(--blue-soft); border-radius: 999px; padding: 6px 12px; }

.fxr-blog-postlist:empty,
.fxr-blog-featured:empty { display: none; }
.fxr-blog-featured { margin-bottom: 24px; }

@media (max-width: 960px) {
  .fxr-blog-layout { grid-template-columns: 1fr; }
  .fxr-blog-index { position: static; }
  .fxr-blog-clusters { grid-template-columns: repeat(2, 1fr); }
  .fxr-blog-guidance { grid-template-columns: 1fr; }
  .fxr-blog-authority { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fxr-blog-clusters { grid-template-columns: 1fr; }
  .fxr-blog-search { flex-direction: column; }
}

/* ===== FixGPT redesign (fxr-) — Login page, rebuilt full-page AI-illusion gate ===== */
@keyframes fxr-login-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fxr-login-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes fxr-login-spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fxr-login-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(23,105,255,.5), 0 0 70px 14px rgba(54,183,255,.4); } 50% { box-shadow: 0 0 0 18px rgba(23,105,255,0), 0 0 110px 28px rgba(54,183,255,.55); } }
@keyframes fxr-login-float { 0%, 100% { transform: translateY(0) scale(1); opacity: .5; } 50% { transform: translateY(-16px) scale(1.2); opacity: 1; } }
@keyframes fxr-login-btn-pulse { 0%, 100% { box-shadow: 0 14px 34px rgba(23,105,255,.4); } 50% { box-shadow: 0 14px 46px rgba(54,183,255,.65); } }
@keyframes fxr-login-twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.2); } }
@keyframes fxr-login-scan { 0% { transform: translateY(-100%); opacity: 0; } 10% { opacity: .8; } 90% { opacity: .8; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes fxr-login-grid-pan { from { background-position: 0 0; } to { background-position: 60px 60px; } }
@keyframes fxr-login-node-orbit-1 { from { transform: rotate(0deg) translateX(96px) rotate(0deg); } to { transform: rotate(360deg) translateX(96px) rotate(-360deg); } }
@keyframes fxr-login-node-orbit-2 { from { transform: rotate(120deg) translateX(96px) rotate(-120deg); } to { transform: rotate(480deg) translateX(96px) rotate(-480deg); } }
@keyframes fxr-login-node-orbit-3 { from { transform: rotate(240deg) translateX(96px) rotate(-240deg); } to { transform: rotate(600deg) translateX(96px) rotate(-600deg); } }

body[data-route="login"] #loginPage {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100dvh !important;
  background: #070f1f !important;
}

body[data-route="login"] .site-header,
body[data-route="login"] .site-footer,
body[data-route="login"] .public-chat-fab,
body[data-route="login"] .mobile-menu-backdrop {
  display: none !important;
}

body[data-route="login"] .fxr-login-stage {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

body[data-route="login"] .fxr-login-stage > * {
  transition: opacity .6s ease, transform .6s ease !important;
}

body[data-route="login"] .fxr-login-gate,
body[data-route="login"] .fxr-login-real {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-height: 100dvh !important;
}

body[data-route="login"] .fxr-login-real {
  opacity: 0 !important;
  transform: translateY(22px) scale(.98) !important;
  pointer-events: none !important;
  overflow-y: auto !important;
}

body[data-route="login"] .fxr-login-stage.fxr-login-revealed .fxr-login-real {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body[data-route="login"] .fxr-login-stage.fxr-login-revealed .fxr-login-gate {
  opacity: 0 !important;
  transform: translateY(-22px) scale(.96) !important;
  pointer-events: none !important;
}

/* --- AI gate: full-bleed dark scene --- */
body[data-route="login"] .fxr-login-gate {
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #070f1f !important;
  overflow: hidden !important;
}

body[data-route="login"] .fxr-login-gate-video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: .8 !important;
  pointer-events: none !important;
}

body[data-route="login"] .fxr-login-gate-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    radial-gradient(circle at 50% -10%, rgba(54, 183, 255, .2), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(23, 105, 255, .14), transparent 46%),
    radial-gradient(circle at 0% 100%, rgba(23, 179, 130, .1), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(5, 11, 24, .96) 0%, rgba(5, 11, 24, .8) 22%, transparent 42%),
    linear-gradient(180deg, rgba(7, 15, 31, .55) 0%, rgba(7, 15, 31, .72) 60%, rgba(5, 11, 24, .88) 100%) !important;
  pointer-events: none !important;
}

body[data-route="login"] .fxr-login-home-btn {
  position: absolute !important;
  right: clamp(14px, 3vw, 28px) !important;
  bottom: clamp(14px, 3vw, 28px) !important;
  z-index: 3 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(7, 15, 31, .78) !important;
  border: 1px solid rgba(54, 183, 255, .4) !important;
  color: #fff !important;
  font-size: 20px !important;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35) !important;
  transition: transform .15s ease, background .15s ease !important;
}

body[data-route="login"] .fxr-login-home-btn:hover {
  transform: translateY(-2px) !important;
  background: rgba(23, 105, 255, .85) !important;
}

body[data-route="login"] .fxr-login-grid-bg {
  position: absolute !important;
  z-index: 1 !important;
  inset: -60px !important;
  background-image:
    linear-gradient(rgba(54, 183, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 183, 255, .08) 1px, transparent 1px) !important;
  background-size: 60px 60px !important;
  animation: fxr-login-grid-pan 12s linear infinite !important;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%) !important;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%) !important;
}

body[data-route="login"] .fxr-login-scan {
  position: absolute !important;
  z-index: 1 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 160px !important;
  background: linear-gradient(180deg, transparent, rgba(54, 183, 255, .12), transparent) !important;
  animation: fxr-login-scan 5s ease-in-out infinite !important;
  pointer-events: none !important;
}

body[data-route="login"] .fxr-login-star {
  position: absolute !important;
  z-index: 1 !important;
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: #fff !important;
  animation: fxr-login-twinkle 3.2s ease-in-out infinite !important;
}
body[data-route="login"] .fxr-login-star-1 { top: 12%; left: 8%; animation-delay: 0s !important; }
body[data-route="login"] .fxr-login-star-2 { top: 22%; left: 88%; animation-delay: .4s !important; }
body[data-route="login"] .fxr-login-star-3 { top: 68%; left: 5%; animation-delay: .9s !important; }
body[data-route="login"] .fxr-login-star-4 { top: 80%; left: 92%; animation-delay: 1.3s !important; }
body[data-route="login"] .fxr-login-star-5 { top: 40%; left: 14%; animation-delay: 1.8s !important; }
body[data-route="login"] .fxr-login-star-6 { top: 15%; left: 60%; animation-delay: 2.2s !important; }
body[data-route="login"] .fxr-login-star-7 { top: 88%; left: 40%; animation-delay: 2.6s !important; }
body[data-route="login"] .fxr-login-star-8 { top: 55%; left: 82%; animation-delay: 3s !important; }

body[data-route="login"] .fxr-login-gate-inner {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: clamp(24px, 5vw, 48px) !important;
  max-width: 620px !important;
}

body[data-route="login"] .fxr-login-orb-wrap {
  position: relative !important;
  width: 220px !important;
  height: 220px !important;
  margin: 0 auto 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-route="login"] .fxr-login-ring {
  position: absolute !important;
  border-radius: 50% !important;
  border: 1px dashed rgba(54, 183, 255, .4) !important;
}
body[data-route="login"] .fxr-login-ring-1 { inset: 0 !important; animation: fxr-login-spin 16s linear infinite !important; }
body[data-route="login"] .fxr-login-ring-2 { inset: 26px !important; border-style: solid !important; border-color: rgba(23, 105, 255, .3) !important; animation: fxr-login-spin-rev 11s linear infinite !important; }
body[data-route="login"] .fxr-login-ring-3 { inset: 52px !important; border-color: rgba(54, 183, 255, .18) !important; animation: fxr-login-spin-slow 22s linear infinite !important; }

body[data-route="login"] .fxr-login-node {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 34px !important;
  height: 34px !important;
  margin: -17px 0 0 -17px !important;
  border-radius: 50% !important;
  background: rgba(12, 22, 41, .9) !important;
  border: 1px solid rgba(54, 183, 255, .5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--electric) !important;
  font-size: 15px !important;
}
body[data-route="login"] .fxr-login-node-1 { animation: fxr-login-node-orbit-1 9s linear infinite !important; }
body[data-route="login"] .fxr-login-node-2 { animation: fxr-login-node-orbit-2 9s linear infinite !important; }
body[data-route="login"] .fxr-login-node-3 { animation: fxr-login-node-orbit-3 9s linear infinite !important; }

body[data-route="login"] .fxr-login-particle {
  position: absolute !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--electric) !important;
  animation: fxr-login-float 3.4s ease-in-out infinite !important;
}
body[data-route="login"] .fxr-login-particle-1 { top: 2%; left: 22%; animation-delay: 0s !important; }
body[data-route="login"] .fxr-login-particle-2 { top: 8%; right: 6%; animation-delay: .7s !important; }
body[data-route="login"] .fxr-login-particle-3 { bottom: 6%; left: 4%; animation-delay: 1.4s !important; }
body[data-route="login"] .fxr-login-particle-4 { bottom: 2%; right: 12%; animation-delay: 2.1s !important; }

body[data-route="login"] .fxr-login-orb {
  position: relative !important;
  z-index: 1 !important;
  width: 108px !important;
  height: 108px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1769ff, #36b7ff) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: fxr-login-glow 2.6s ease-in-out infinite !important;
}
body[data-route="login"] .fxr-login-orb i { font-size: 46px !important; color: #fff !important; }

body[data-route="login"] .fxr-login-gate-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--electric) !important;
  font-size: .8rem !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin: 0 0 10px !important;
}

body[data-route="login"] .fxr-login-gate-title {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
  margin: 0 0 14px !important;
}

body[data-route="login"] .fxr-login-gate-sub {
  color: rgba(255,255,255,.68) !important;
  font-size: 1rem !important;
  max-width: 480px !important;
  line-height: 1.6 !important;
  margin: 0 0 30px !important;
}

body[data-route="login"] .fxr-login-gate-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 16px 34px !important;
  background: linear-gradient(135deg, #1769ff, #0f57da) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  animation: fxr-login-btn-pulse 2.2s ease-in-out infinite !important;
  transition: transform .15s ease !important;
}
body[data-route="login"] .fxr-login-gate-btn:hover { transform: translateY(-2px) !important; }

body[data-route="login"] .fxr-login-gate-hint {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 18px !important;
  margin: 26px 0 0 !important;
}
body[data-route="login"] .fxr-login-gate-hint span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(255,255,255,.55) !important;
  font-size: .8rem !important;
  font-weight: 700 !important;
}
body[data-route="login"] .fxr-login-gate-hint i { color: var(--electric) !important; font-size: 15px !important; }

/* --- Real login shell: full-bleed, no boxed card --- */
body[data-route="login"] .fxr-login-real {
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 105, 255, .1), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(16, 184, 106, .08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  display: flex !important;
  justify-content: center !important;
}

body[data-route="login"] .fxr-login-real-inner {
  width: 100% !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 40px) !important;
}

body[data-route="login"] .fxr-login-real-head {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 30px !important;
}

body[data-route="login"] .fxr-login-real-mark {
  flex-shrink: 0 !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #1769ff, #18b86b) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 1.1rem !important;
  box-shadow: 0 14px 30px rgba(23, 105, 255, .28) !important;
}

body[data-route="login"] .fxr-login-real-head .eyebrow {
  color: var(--brand) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  margin: 0 0 4px !important;
}
body[data-route="login"] .fxr-login-real-head h1 {
  color: var(--ink) !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
  font-weight: 900 !important;
  margin: 0 0 4px !important;
}
body[data-route="login"] .fxr-login-real-head p:not(.eyebrow) {
  color: var(--muted) !important;
  font-size: .98rem !important;
  margin: 0 !important;
}

body[data-route="login"] .fxr-login-single-wrap {
  display: flex !important;
  justify-content: center !important;
}

body[data-route="login"] .fxr-login-real-card {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08) !important;
  padding: 26px !important;
}

body[data-route="login"] .fxr-login-single-card {
  width: 100% !important;
  max-width: 440px !important;
}

body[data-route="login"] .fxr-login-role-label {
  display: block !important;
  color: #334155 !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
}

body[data-route="login"] .fxr-login-role-label select {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
  background: #f8fbff !important;
  border: 1px solid #d9e5f2 !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
}

body[data-route="login"] .fxr-login-role-label select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, .12) !important;
  outline: none !important;
}

body[data-route="login"] .fxr-login-real-card .login-card-top {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}
body[data-route="login"] .fxr-login-real-card .login-card-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: var(--blue-soft) !important;
  border: 1px solid var(--line) !important;
  color: var(--brand) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: .9rem !important;
  flex-shrink: 0 !important;
}
body[data-route="login"] .fxr-login-single-card[data-role="staff"] .login-card-icon { background: var(--green-soft) !important; color: #098950 !important; }
body[data-route="login"] .fxr-login-single-card[data-role="chat"] .login-card-icon { background: #f4f0ff !important; color: #5b3fd7 !important; }

body[data-route="login"] .fxr-login-real-card .eyebrow {
  color: var(--muted) !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  margin: 0 0 3px !important;
}
body[data-route="login"] .fxr-login-real-card h2 {
  color: var(--ink) !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  margin: 0 !important;
}
body[data-route="login"] .fxr-login-real-card .form-stack { display: grid !important; gap: 10px !important; }
body[data-route="login"] .fxr-login-real-card label { color: #334155 !important; font-size: .82rem !important; font-weight: 800 !important; }
body[data-route="login"] .fxr-login-real-card input {
  background: #f8fbff !important;
  border: 1px solid #d9e5f2 !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  font-size: .92rem !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  width: 100% !important;
}
body[data-route="login"] .fxr-login-real-card input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, .12) !important;
  outline: none !important;
}
body[data-route="login"] .fxr-login-real-card .primary-action {
  width: 100% !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #1769ff, #0f57da) !important;
  color: #fff !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
}
body[data-route="login"] .fxr-login-real-card .primary-action:hover { filter: brightness(1.05) !important; }

body[data-route="login"] .fxr-login-real-note {
  text-align: center !important;
  color: var(--muted) !important;
  font-size: .82rem !important;
  margin: 26px 0 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  body[data-route="login"] .fxr-login-ring,
  body[data-route="login"] .fxr-login-node,
  body[data-route="login"] .fxr-login-particle,
  body[data-route="login"] .fxr-login-orb,
  body[data-route="login"] .fxr-login-gate-btn,
  body[data-route="login"] .fxr-login-scan,
  body[data-route="login"] .fxr-login-grid-bg,
  body[data-route="login"] .fxr-login-star {
    animation: none !important;
  }
}

@media (max-width: 560px) {
  body[data-route="login"] .fxr-login-orb-wrap { width: 168px !important; height: 168px !important; }
  body[data-route="login"] .fxr-login-ring-3 { display: none !important; }
  body[data-route="login"] .fxr-login-node { display: none !important; }
  body[data-route="login"] .fxr-login-orb { width: 84px !important; height: 84px !important; }
  body[data-route="login"] .fxr-login-orb i { font-size: 36px !important; }
  body[data-route="login"] .fxr-login-real-head { flex-direction: column !important; text-align: center !important; }
}

/* ===== FixGPT redesign (fxr-) — Smart "Needs attention" case prioritization ===== */
.fgr-attention-panel { margin-top: 18px; }
.fgr-attention-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fgr-attention-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: #fff;
}
.fgr-attention-row b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fgr-attention-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.fgr-attention-reasons em {
  font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand-dark);
  background: var(--blue-soft); border-radius: 999px; padding: 3px 9px;
}

/* ===== FixGPT redesign (fxr-) — Home chat single-step intake form ===== */
.home-chat-intake-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  overflow-y: auto;
  flex: 1;
}
.home-chat-intake-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
}
.home-chat-intake-form input,
.home-chat-intake-form textarea {
  background: #f8fbff;
  border: 1px solid #d9e5f2;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 12px;
  font-family: inherit;
}
.home-chat-intake-form textarea {
  min-height: 64px;
  resize: vertical;
}
.home-chat-intake-form input:focus,
.home-chat-intake-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.14);
  outline: none;
}
.home-chat-intake-form .primary-action {
  margin-top: 4px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.88rem;
}

/* ===== FixGPT redesign (fxr-) — site-wide instant/free support trust strip ===== */
.fxr-instant-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  text-align: center;
}
.fxr-instant-strip i {
  color: var(--brand);
  font-size: 15px;
  flex-shrink: 0;
}
body[data-route="login"] .fxr-instant-strip,
body[data-route="home"] .fxr-instant-strip {
  display: none !important;
}
@media (max-width: 560px) {
  .fxr-instant-strip { font-size: 11.5px; padding: 7px 12px; }
}

/* ===== FixGPT redesign (fxr-) — sitewide glass + motion background + brighter base ===== */
body.tw-antialiased {
  background: #ffffff !important;
}

.fxr-bg-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.fxr-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.fxr-bg-orb-1 {
  top: -12%;
  left: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(23, 105, 255, 0.55), transparent 70%);
  animation: fxrOrbDrift1 26s ease-in-out infinite;
}
.fxr-bg-orb-2 {
  top: 28%;
  right: -12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(50, 246, 166, 0.45), transparent 70%);
  animation: fxrOrbDrift2 32s ease-in-out infinite;
}
.fxr-bg-orb-3 {
  bottom: -10%;
  left: 18%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(97, 87, 255, 0.4), transparent 70%);
  animation: fxrOrbDrift3 28s ease-in-out infinite;
}
.fxr-bg-orb-4 {
  bottom: 12%;
  right: 12%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(224, 168, 63, 0.3), transparent 70%);
  animation: fxrOrbDrift1 34s ease-in-out infinite reverse;
}
@keyframes fxrOrbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.08); }
}
@keyframes fxrOrbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.05); }
}
@keyframes fxrOrbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .fxr-bg-orb { animation: none; }
}
@media (max-width: 700px) {
  .fxr-bg-orb { opacity: 0.32; }
}

/* keep real page content above the fixed motion layer */
.site-header, main, .site-footer, .fxr-instant-strip { position: relative; z-index: 1; }

/* glass utility, reusable */
.fxr-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.1);
}

/* stronger glass on the sticky header */
.site-header {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
}

/* home hero: keep the video banner fully visible behind the search bar, no blur/tint */
.fxr-hero-clean .fxr-search-bar {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.fxr-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  position: relative;
  z-index: 1;
}
.fxr-hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.fxr-hero-trust-chip:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}
.fxr-hero-trust-chip i { color: #6bffb0; font-size: 15px; }

/* ===== FixGPT redesign (fxr-) — stronger glass pass across surfaces ===== */
.panel {
  background: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 22px 62px rgba(7, 26, 47, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.fxr-pricing-card-body,
.fxr-svc-panel,
.fxr-svc-wrap .fxr-svc-console {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}
.fxr-pricing-side {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.fxr-pricing-side-top {
  background: rgba(8, 15, 28, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fxr-hero-tool-chip,
.fxr-ticker-chip {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.fxr-instant-strip {
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}

/* stronger, more visible glass utility */
.fxr-glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fxr-hero-clean .fxr-search-bar {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ===== FixGPT redesign (fxr-) — step highlight synced to the traveling pipeline dot ===== */
@keyframes fxr-step-active-ic {
  0% {
    transform: scale(1.16);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 7px rgba(23, 105, 255, 0.32), 0 0 24px 6px rgba(54, 183, 255, 0.55);
  }
  20%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(23, 105, 255, 0);
  }
}
@keyframes fxr-step-active-label {
  0% { color: var(--brand); }
  20%, 100% { color: var(--ink); }
}
.fxr-pstep-ic { animation-timing-function: ease-out; }
.fxr-pstep b { transition: color 0.15s ease; }
.fxr-svc-pipeline .fxr-pnum, .fxr-pipeline-4 .fxr-pnum, .fxr-pipeline-3 .fxr-pnum {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 8px;
}
@keyframes fxr-step-active-num {
  0% {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px rgba(23, 105, 255, 0.3), 0 0 18px 5px rgba(54, 183, 255, 0.6);
    transform: scale(1.12);
  }
  20%, 100% {
    color: var(--brand);
    background: transparent;
    box-shadow: 0 0 0 0 rgba(23, 105, 255, 0);
    transform: scale(1);
  }
}
@keyframes fxr-step-active-ptext {
  0% { color: var(--brand-dark); font-weight: 700; }
  20%, 100% { color: var(--ink); font-weight: 400; }
}

/* 5-step pipeline ("Support explained visually"): step centers at 10/30/50/70/90% of a 6.4s loop */
.fxr-pipeline .fxr-pstep:nth-child(2) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 0.64s; }
.fxr-pipeline .fxr-pstep:nth-child(2) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 0.64s; }
.fxr-pipeline .fxr-pstep:nth-child(3) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 1.92s; }
.fxr-pipeline .fxr-pstep:nth-child(3) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 1.92s; }
.fxr-pipeline .fxr-pstep:nth-child(4) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 3.2s; }
.fxr-pipeline .fxr-pstep:nth-child(4) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 3.2s; }
.fxr-pipeline .fxr-pstep:nth-child(5) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 4.48s; }
.fxr-pipeline .fxr-pstep:nth-child(5) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 4.48s; }
.fxr-pipeline .fxr-pstep:nth-child(6) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 5.76s; }
.fxr-pipeline .fxr-pstep:nth-child(6) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 5.76s; }

/* 5-step service-directory pipeline (dynamic .fxr-pnum / .fxr-ptext markup, always 5 diagramSteps): same 10/30/50/70/90% timing */
.fxr-svc-pipeline .fxr-pstep:nth-child(2) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 0.64s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(2) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 0.64s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(3) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 1.92s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(3) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 1.92s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(4) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 3.2s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(4) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 3.2s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(5) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 4.48s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(5) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 4.48s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(6) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 5.76s; }
.fxr-svc-pipeline .fxr-pstep:nth-child(6) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 5.76s; }

/* 4-step pipeline ("Service task"): step centers at 12.5/37.5/62.5/87.5% of the same 6.4s loop — overrides the 5-step timing above since it comes later */
.fxr-pipeline-4 .fxr-pstep:nth-child(2) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 0.8s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(2) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 0.8s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(3) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 2.4s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(3) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 2.4s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(4) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 4.0s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(4) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 4.0s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(5) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 5.6s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(5) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 5.6s; }
/* same 4-step pipeline, pnum/ptext markup variant (About page "What the customer sees") */
.fxr-pipeline-4 .fxr-pstep:nth-child(2) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 0.8s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(2) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 0.8s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(3) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 2.4s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(3) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 2.4s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(4) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 4.0s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(4) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 4.0s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(5) .fxr-pnum { animation: fxr-step-active-num 6.4s ease-out infinite; animation-delay: 5.6s; }
.fxr-pipeline-4 .fxr-pstep:nth-child(5) .fxr-ptext { animation: fxr-step-active-ptext 6.4s ease-out infinite; animation-delay: 5.6s; }

/* 3-step pipeline (Self Help Desk "How it works"): step centers at 16.67/50/83.33% of the same 6.4s loop */
.fxr-pipeline-3 .fxr-pstep:nth-child(2) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 1.067s; }
.fxr-pipeline-3 .fxr-pstep:nth-child(2) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 1.067s; }
.fxr-pipeline-3 .fxr-pstep:nth-child(3) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 3.2s; }
.fxr-pipeline-3 .fxr-pstep:nth-child(3) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 3.2s; }
.fxr-pipeline-3 .fxr-pstep:nth-child(4) .fxr-pstep-ic { animation: fxr-step-active-ic 6.4s ease-out infinite; animation-delay: 5.333s; }
.fxr-pipeline-3 .fxr-pstep:nth-child(4) b { animation: fxr-step-active-label 6.4s ease-out infinite; animation-delay: 5.333s; }

@media (prefers-reduced-motion: reduce) {
  .fxr-pstep-ic, .fxr-pstep b, .fxr-pnum, .fxr-ptext { animation: none !important; }
}

/* Blog page: force normal, always-reliable page scrolling instead of the fragile fixed-viewport
   split-pane above (calc(100dvh - Npx) breaks whenever the real header/hero renders taller than
   the hardcoded offsets, clipping content to near-zero height). This always wins the cascade. */
body[data-route="blog"] {
  height: auto !important;
  overflow: visible !important;
}
body[data-route="blog"] main,
body[data-route="blog"] #blogPage.active,
body[data-route="blog"] .fxr-blog-layout,
body[data-route="blog"] .fxr-blog-index,
body[data-route="blog"] #blogCategoryList,
body[data-route="blog"] .fxr-blog-content {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
