@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700&display=swap");
:root {
  color-scheme: light;
  --color-primary: #3559d5;
  --color-primary-dark: #2948b4;
  --color-primary-light: #eaf0ff;
  --color-bg: #f7f8fa;
  --color-surface: #fff;
  --color-text: #20313e;
  --color-text-muted: #71818f;
  --color-accent: #3559d5;
  --color-gold: #3559d5;
  --color-gold-dim: #8da0b9;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --color-gray-50: #f7f8fa;
  --color-gray-100: #f0f3f7;
  --color-gray-200: #e2e7ed;
  --color-gray-300: #ccd6e0;
  --color-gray-500: #8997a4;
  --color-gray-600: #71818f;
  --color-gray-700: #4e6476;
  --color-gray-900: #20313e;
  --glow-gold: none;
  --glow-accent: none;
}
body {
  background: #f7f8fa !important;
  color: #20313e;
  font-family: "Inter", system-ui, sans-serif !important;
  background-image: none !important;
  line-height: 1.6;
  display: block !important;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #3559d5;
}
a:hover {
  color: #2948b4;
  text-shadow: none !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", system-ui, sans-serif !important;
  letter-spacing: -0.035em;
  text-shadow: none !important;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #96aef0;
  outline-offset: 3px;
}
.af-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #20313e !important;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.6px;
  text-decoration: none !important;
}
.af-brand-mark {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #203342;
  color: white;
  font-size: 17px;
}
.af-public-header {
  max-width: 1240px;
  padding: 24px 35px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.af-public-header > a:last-child {
  color: #667179;
  font-size: 13px;
  text-decoration: none;
}
.af-public-header > a:last-child i {
  margin-left: 5px;
}
.af-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #64717e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.af-eyebrow::before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #6e88ce;
}
.af-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: white;
  color: #3c5264;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.af-button:hover {
  background: #f0f3f9;
  color: #28415a;
}
.af-button-primary {
  background: #3559d5;
  color: white;
  border-color: #3559d5;
}
.af-button-primary:hover {
  background: #2948b4;
  color: white;
}
.auth-layout {
  max-width: 1050px;
  padding: 60px 35px 70px;
  min-height: calc(100vh - 95px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  margin: auto;
}
.auth-story h1 {
  font-size: 43px;
  line-height: 1.14;
  font-weight: 500;
  margin: 25px 0;
  letter-spacing: -2px;
}
.auth-story h1 span {
  color: #546bad;
}
.auth-story > p:not(.af-eyebrow) {
  font-size: 13px;
  color: #63717a;
  line-height: 1.9;
  max-width: 350px;
}
.auth-context {
  border-top: 1px solid #e1e7ef;
  margin-top: 35px;
  padding-top: 20px;
  display: flex;
  gap: 12px;
  color: #637383;
  align-items: center;
}
.auth-context > i {
  font-size: 23px;
  display: grid;
  place-items: center;
  background: #edf1f9;
  border-radius: 10px;
  height: 45px;
  width: 45px;
}
.auth-context strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #597084;
}
.auth-context small {
  display: block;
  font-size: 12px;
  color: #69737e;
  margin-top: 4px;
}
.auth-card {
  padding: 35px;
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 13px;
  box-shadow: 0 16px 45px #293f5606;
}
.auth-card h2 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
}
.auth-card-intro {
  font-size: 13px;
  color: #66727a;
  line-height: 1.9;
  margin-bottom: 25px;
}
.auth-facebook {
  width: 100%;
  background: #3559d5;
  color: #fff;
  border-color: #3559d5;
  min-height: 45px;
}
.auth-facebook:hover {
  background: #2948b4;
  color: #fff;
}
.auth-facebook i {
  font-size: 16px;
}
.auth-password {
  border-top: 1px solid #e6ebf0;
  margin-top: 24px;
  padding-top: 22px;
}
.auth-password summary {
  font-size: 13px;
  color: #5e7182;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-password summary::-webkit-details-marker {
  display: none;
}
.auth-password summary::after {
  content: "+";
  font-size: 17px;
  color: #636f7b;
}
.auth-password[open] summary::after {
  content: "−";
}
.auth-password form {
  padding-top: 22px;
}
.auth-password label {
  font-size: 12px;
  color: #647482;
  margin-bottom: 7px;
  display: block;
}
.auth-password .form-control {
  font-size: 13px;
  border-radius: 7px;
  border: 1px solid #dce4ee;
  padding: 11px 12px;
  box-shadow: none;
  background: #fbfcfd;
}
.auth-password .form-control:focus {
  border-color: #829be1;
  box-shadow: 0 0 0 3px #3559d50c;
}
.auth-password .af-button {
  width: 100%;
  margin-top: 15px;
}
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}
.auth-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
}
.auth-options a {
  font-size: 12px;
  text-decoration: none;
}
.auth-options input {
  accent-color: #3559d5;
}
.auth-demo-link {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid #e6ebf0;
}
.auth-demo-link p {
  font-size: 12px;
  color: #667078;
  margin-bottom: 9px;
}
.auth-demo-link a {
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.auth-footnote {
  font-size: 11px;
  text-align: center;
  color: #667077;
  margin: 20px 0 0;
}
.auth-footnote a {
  color: #647386;
}
.auth-card .alert {
  font-size: 13px;
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
/* Shared merchant and administrative workspace */
.sidebar {
  background: #f1f4f8 !important;
  border-right: 1px solid #e0e6ed !important;
  box-shadow: none !important;
}
.sidebar-logo,
.sidebar-brand {
  color: #263c4f !important;
  font-size: 20px !important;
  letter-spacing: -0.7px !important;
  font-weight: 650 !important;
  padding: 28px 24px !important;
  border-bottom: 1px solid #e1e7ef !important;
}
.sidebar-logo > i,
.sidebar-brand-icon {
  background: #263c4f !important;
  color: white !important;
  padding: 6px;
  border-radius: 7px;
  font-size: 16px !important;
}
.sidebar-nav {
  padding: 24px 14px !important;
}
.sidebar-nav-link,
.sidebar .nav-item {
  font-size: 13px !important;
  font-weight: 450 !important;
  color: #647483 !important;
  border-radius: 7px !important;
  padding: 12px 14px !important;
  margin-bottom: 5px !important;
  border: 0 !important;
}
.sidebar-nav-link.active,
.sidebar .nav-item.active {
  background: #e4ebfa !important;
  color: #4667ba !important;
  border: 0 !important;
}
.sidebar-nav-link:hover,
.sidebar .nav-item:hover {
  background: #e9eef5 !important;
  color: #4667ba !important;
}
.sidebar-nav-icon {
  font-size: 16px !important;
}
.topbar {
  background: #ffffffb3 !important;
  border-bottom: 1px solid #e2e7ee !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}
.topbar-title {
  font-size: 15px !important;
  font-weight: 550 !important;
  color: #5d7080 !important;
  letter-spacing: -0.3px !important;
}
.page-header-title {
  font-size: 29px !important;
  font-weight: 500 !important;
  letter-spacing: -1px !important;
  color: #304a60 !important;
}
.page-header-subtitle {
  font-size: 13px !important;
  color: #69737d !important;
}
.content-wrapper,
.content {
  max-width: 1400px;
}
.card-minimal,
.card,
.stat-card,
.stats-card,
.panel {
  background: #fff !important;
  border: 1px solid #e0e7ef !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 14px #2f456003 !important;
}
.card-minimal-header {
  font-size: 12px !important;
  letter-spacing: 0.03em !important;
  font-weight: 500 !important;
  color: #65737e !important;
}
.card-minimal-value {
  font-size: 29px !important;
  font-weight: 500 !important;
  color: #3b5770 !important;
  letter-spacing: -1px !important;
}
.card-minimal-label {
  font-size: 12px !important;
  color: #697178 !important;
}
.btn-minimal,
.btn {
  border-radius: 7px !important;
  font-size: 13px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
.btn-minimal-primary,
.btn-primary {
  background: #3559d5 !important;
  border-color: #3559d5 !important;
  color: #fff !important;
}
.btn-minimal-secondary {
  background: #fff !important;
  border: 1px solid #dde5ef !important;
  color: #5c7185 !important;
}
.table-minimal,
.table {
  font-size: 13px !important;
  color: #647483 !important;
}
.table-minimal th,
.table th {
  background: #f6f8fb !important;
  color: #66717b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-bottom: 1px solid #e4eaf1 !important;
  padding: 14px !important;
}
.table-minimal td,
.table td {
  padding: 15px 14px !important;
  vertical-align: middle !important;
  border-bottom-color: #edf1f5 !important;
}
.form-control,
.form-select {
  border-radius: 7px;
  border-color: #dce4ed;
  font-size: 13px !important;
  box-shadow: none;
}
.badge {
  font-size: 11px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  padding: 5px 8px !important;
}
.nav-tabs .nav-link {
  font-size: 13px !important;
}
.alert {
  font-size: 13px;
}
.empty-state {
  color: #65727b;
}
.modal-content {
  border-radius: 12px;
  border: 1px solid #e1e8f0;
  box-shadow: 0 20px 70px #20334220;
}
.sidebar-section-label {
  color: #68727b !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
}
.sidebar-footer {
  border-top: 1px solid #e0e7ef !important;
  background: transparent !important;
}
.setup-container,
.onboarding-container {
  font-family: "Inter", system-ui, sans-serif;
}
.login-container .login-card {
  border: 1px solid #dfe6ee !important;
  box-shadow: 0 10px 40px #20334208 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.login-container .login-card::before,
.login-container .login-card::after {
  display: none;
}
.login-container .login-title {
  font-family: "Inter", system-ui, sans-serif !important;
  color: #263f54 !important;
  text-transform: none !important;
  letter-spacing: -1px !important;
}
.login-container .login-subtitle {
  font-family: inherit !important;
  text-transform: none !important;
  color: #69737e !important;
  letter-spacing: 0 !important;
}
@media (max-width: 800px) {
  .af-public-header {
    padding: 19px 23px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 23px 50px;
    max-width: 540px;
    min-height: 0;
  }
  .auth-story h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
    margin: 19px 0;
  }
  .auth-story > p:not(.af-eyebrow) {
    max-width: 100%;
  }
  .auth-context {
    display: none;
  }
  .auth-card {
    padding: 26px;
  }
  .sidebar-logo,
  .sidebar-brand {
    padding: 23px 18px !important;
  }
  .page-header-title {
    font-size: 25px !important;
  }
}
.dashboard-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.dashboard-page-header .af-eyebrow {
  margin-bottom: 13px;
}
.dashboard-page-header .page-header-title {
  margin-bottom: 12px;
}
.workspace-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 25px 0;
}
.workspace-shortcuts > a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 23px;
  background: #fff;
  border: 1px solid #e1e8f1;
  border-radius: 9px;
  text-decoration: none;
}
.workspace-shortcuts > a > i:first-child {
  height: 35px;
  width: 35px;
  background: #f0f4fb;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #5a6e9b;
  font-size: 17px;
  flex-shrink: 0;
}
.workspace-shortcuts strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #526c83;
}
.workspace-shortcuts span {
  display: block;
  font-size: 11px;
  color: #607180;
  line-height: 1.8;
  margin-top: 7px;
}
.workspace-shortcuts > a > i:last-child {
  margin-left: auto;
  color: #5f7385;
  font-size: 11px;
}
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}
.assistant-control h2 {
  font-size: 21px;
  color: #536f87;
  margin: 24px 0 15px;
}
.assistant-control > p:not(.af-eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: #5e7284;
  max-width: 410px;
}
.assistant-controls {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.assistant-controls form {
  margin: 0;
}
.assistant-controls .af-button {
  font-size: 11px;
  padding: 9px 12px;
}
.assistant-state {
  font-size: 24px !important;
}
.dashboard-explore > a {
  display: grid;
  grid-template-columns: 1fr 16px;
  row-gap: 6px;
  border-bottom: 1px solid #e7edf4;
  padding: 20px 0;
  text-decoration: none;
}
.dashboard-explore > a:last-child {
  border: 0;
  padding-bottom: 0;
}
.dashboard-explore strong {
  font-size: 13px;
  font-weight: 500;
  color: #5c7387;
}
.dashboard-explore span {
  font-size: 11px;
  color: #5d7082;
  grid-column: 1;
  line-height: 1.8;
}
.dashboard-explore i {
  grid-column: 2;
  grid-row: 1;
  color: #627384;
  font-size: 11px;
}
.local-design-banner {
  background: #eef2fa;
  border-bottom: 1px solid #dde6f4;
  color: #5a729a;
  padding: 9px 26px;
  font-size: 11px;
  letter-spacing: 0.015em;
}
.content-container > h1 {
  font-size: 29px;
  font-weight: 500;
  color: #334f65;
  margin-bottom: 20px;
}
.content-container > p {
  color: #5e7284;
  font-size: 13px;
  line-height: 1.9;
}
.content-container form label {
  font-size: 12px;
  color: #5a7287;
  margin-bottom: 7px;
}
.content-container
  form
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(
    [type="file"]
  ),
.content-container form textarea {
  font-family: "Inter", system-ui, sans-serif;
  padding: 10px 12px;
  border: 1px solid #dce6f0;
  border-radius: 7px;
  background: #fcfdff;
  color: #576f84;
  font-size: 13px;
}
.content-container form textarea {
  width: 100%;
}
.card-minimal pre {
  padding: 18px;
  background: #f3f6fb;
  border-radius: 7px;
  max-height: 500px;
  overflow: auto;
  color: #597085;
  font-size: 12px;
}
.policy-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 25px;
  align-items: start;
}
.policy-editor {
  position: sticky;
  top: 90px;
}
.policy-editor .form-field {
  margin-bottom: 20px;
}
.policy-editor input,
.policy-editor textarea {
  width: 100%;
  display: block;
}
.policy-editor h2 {
  font-size: 17px;
  margin-bottom: 22px;
}
.policy-record {
  margin-bottom: 18px;
}
.policy-record h2 {
  font-size: 17px;
  color: #405e77;
  margin: 15px 0;
}
.policy-record p {
  color: #5d7183;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.policy-record .policy-category {
  font-size: 10px;
  background: #eef3fb;
  border-radius: 4px;
  padding: 4px 7px;
  color: #5c729c;
  display: inline-block;
}
.policy-record .policy-delete {
  background: none;
  border: 0;
  color: #946464;
  font-size: 11px;
  margin-top: 12px;
  padding: 0;
}
.import-form {
  max-width: 650px;
}
.import-form label {
  display: block;
  margin: 25px 0 9px;
}
.import-form p {
  font-size: 12px;
  color: #607486;
  line-height: 1.9;
}
.import-form .af-button {
  margin-top: 25px;
}
@media (max-width: 1050px) {
  .workspace-shortcuts {
    grid-template-columns: 1fr;
  }
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .dashboard-page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-editor {
    position: static;
  }
  .dashboard-page-header .af-button {
    font-size: 12px;
  }
  .local-design-banner {
    font-size: 10px;
    padding: 10px 20px;
  }
}
.sidebar-logo {
  display: flex !important;
  align-items: center;
  gap: 9px;
}
.stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
body:has(> .login-card) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
body:has(> .login-card) > .login-card {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  box-shadow: 0 14px 45px #20334208;
}
body:has(> .login-card) .login-logo {
  background: #eaf0fc;
  color: #3559d5;
  box-shadow: none;
}
body:has(> .login-card) .login-title {
  color: #304b62;
  letter-spacing: -0.6px;
}
body:has(> .login-card) .btn-login {
  background: #3559d5;
  border-radius: 7px;
  box-shadow: none;
}
@media (max-width: 1100px) {
  .stats-row {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 500px) {
  .stats-row {
    gap: 12px !important;
  }
  .stats-row .card-minimal {
    padding: 17px !important;
  }
  .card-minimal-header {
    font-size: 10px !important;
  }
  .card-minimal-label {
    font-size: 10px !important;
  }
}
@media (max-width: 600px) {
  .topbar {
    gap: 10px;
    padding: 13px 16px !important;
    min-height: 64px;
    height: auto !important;
  }
  .topbar .bot-status-badge {
    display: none;
  }
  .topbar-actions {
    min-width: 0;
    gap: 8px !important;
  }
  .topbar-actions .dropdown-toggle {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-title {
    font-size: 14px !important;
  }
}
