/* =============================================
   MARSHMALLOW TECHNOLOGY — main.css
   Bootstrap 5.3 + Custom Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────── */
:root {
  --system-font: 'Inter', Arial, Helvetica, sans-serif;
  --navy:        #1a2a4a;
  --navy-deep:   #111e36;
  --navy-mid:    #243557;
  --gold:        #F5C518;
  --gold-hover:  #e0b010;
  --white:       #ffffff;
  --off-white:   #f4f6fb;
  --gray:        #6c757d;
  --gray-light:  #e8ecf4;
  --success:     #28a745;
  --danger:      #dc3545;
  --warning:     #ffc107;

  /* Theme defaults (light) */
  --bg:          var(--off-white);
  --bg-card:     #ffffff;
  --text:        var(--navy);
  --text-muted:  #555e75;
  --border:      #d0d9ef;
  --btn-bg:      var(--navy);
  --btn-text:    #ffffff;
  --btn-outline: var(--navy);
  --header-bg:   #ffffff;
  --footer-bg:   var(--navy-deep);
  --code-bg:     #1e2d4a;
  --light-blue-border: #002f72;
  --hover-border: #7fb3ff;
  --hover-shadow: 0 0 12px rgba(245,197,24,.22);
  --marsh-spark-one: var(--gold);
  --marsh-spark-two: #4aa3ff;
  --marsh-spark-three: #4aa3ff;
}

[data-theme="dark"] {
  --bg:          var(--navy);
  --bg-card:     var(--navy-mid);
  --text:        #e8ecf4;
  --text-muted:  #8fa3c8;
  --border:      #2e4070;
  --btn-bg:      var(--gold);
  --btn-text:    var(--navy-deep);
  --btn-outline: var(--gold);
  --header-bg:   var(--navy-deep);
  --footer-bg:   var(--navy-deep);
  --code-bg:     #0d1929;
  --hover-border: var(--gold);
  --hover-shadow: 0 0 12px rgba(245,197,24,.24);
}

/* ─── Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

body[dir="rtl"],
html[dir="rtl"] body { font-family: 'Vazirmatn', 'Inter', sans-serif; text-align: right; }
html[lang="fa"] body,
html[lang="ar"] body,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select,
html[lang="fa"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] button {
  font-family: 'Vazirmatn', 'Inter', sans-serif;
}

/* One type system: Persian/Arabic use Vazirmatn; every Latin-script UI uses sans-serif. */
html[lang="fa"],
html[lang="ar"] { --system-font: 'Vazirmatn', Tahoma, Arial, sans-serif; }
body,
button,
input,
textarea,
select,
option,
label,
table,
th,
td,
h1, h2, h3, h4, h5, h6,
p,
a,
.display-font,
.btn-marsh,
.btn-marsh-outline,
.nav-link-marsh,
.section-label,
.section-title,
.dash-logo,
.dash-stat-val {
  font-family: var(--system-font) !important;
  letter-spacing: 0;
}
.table {
  --bs-table-color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border);
  color: var(--text);
}
.table thead th {
  background: color-mix(in srgb, var(--bg-card) 88%, var(--gold) 12%);
  color: var(--text);
  border-color: var(--border);
  font-weight: 700;
}
[data-theme="light"] .table thead th {
  background: #eef3ff;
  color: var(--navy-deep);
}
[data-theme="dark"] .table thead th {
  background: #152440;
  color: #f8fbff;
}
code,
pre,
kbd,
.vscode-window,
.vscode-code,
.marsh-editor-code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--gold); }

/* ─── Back to top ───────────────────────────── */
.marsh-back-to-top {
  position: fixed;
  inset-inline-start: clamp(1rem, 2vw, 1.35rem);
  inset-block-end: clamp(1rem, 2vw, 1.35rem);
  z-index: 1080;
  inline-size: 46px;
  block-size: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--gold) 68%, var(--border));
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 14px 34px rgba(17, 30, 54, .18), 0 0 0 6px color-mix(in srgb, var(--gold) 12%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.75rem) scale(.88);
  transition: opacity .24s ease, visibility .24s ease, transform .24s ease, background .24s ease, color .24s ease, border-color .24s ease;
}
.marsh-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.marsh-back-to-top:hover,
.marsh-back-to-top:focus-visible {
  background: var(--navy-deep);
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-.18rem) scale(1.03);
  outline: none;
}
.marsh-back-to-top i {
  font-size: 1.65rem;
  line-height: 1;
}
[data-theme="dark"] .marsh-back-to-top {
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28), 0 0 0 6px rgba(245,197,24,.12);
}
body[data-marsh-editor-scope="dashboard"] .marsh-back-to-top,
.dashboard-embedded-body .marsh-back-to-top {
  z-index: 1065;
}
@media (max-width: 575px) {
  .marsh-back-to-top {
    inline-size: 42px;
    block-size: 42px;
    inset-inline-start: .85rem;
    inset-block-end: .85rem;
  }
}

/* ─── Buttons ───────────────────────────────── */
.btn-marsh {
  display: inline-flex;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-bg);
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: .55rem 1.6rem;
  transition: all .25s;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}
.btn-marsh:hover {
  background: transparent;
  color: var(--btn-outline);
  border-color: var(--hover-border);
  box-shadow: var(--hover-shadow);
}
.btn-marsh-outline {
  display: inline-flex;
  background: transparent;
  color: var(--btn-outline);
  border: 1px solid var(--btn-outline);
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: .55rem 1.6rem;
  transition: all .25s;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}
.btn-marsh-outline:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--hover-border);
  box-shadow: var(--hover-shadow);
}

/* ─── Header / Mega Menu ────────────────────── */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--header-bg);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 18px rgba(26,42,74,.10);
  transition: background .3s;
}

#main-header .site-header-container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 3vw, 3.75rem);
  gap: clamp(.75rem, 1.8vw, 2rem);
}

#main-header .navbar-collapse {
  min-width: 0;
}

#main-header .navbar-nav {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

#main-header .navbar-collapse > .d-flex {
  flex: 0 0 auto;
  white-space: nowrap;
}

.navbar-brand img { height: 64px; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1;
}
.brand-lockup:hover { color: var(--text); }
.brand-lockup img {
  width: auto;
  height: 64px;
  max-width: 280px;
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
}
.theme-logo-dark { display: none; }
[data-theme="dark"] .theme-logo-light { display: none;}
[data-theme="dark"] .theme-logo-dark { display: inline-block; }
.brand-lockup span { display: none; font-size: 1rem; white-space: nowrap; }
.brand-lockup.logo-fallback { gap: .65rem; }
.brand-lockup.logo-fallback span { display: inline; }
.brand-lockup.logo-fallback img { display: none; }
.brand-lockup b { color: var(--gold); font-weight: 700; }
.footer-brand { color: #ffffff; }
.footer-brand:hover { color: #ffffff; }
.footer-brand img { background: #0b163000; height: 80px; max-width: 290px; }
.footer-slogan {
  color: var(--gold) !important;
  font-family: 'Vazirmatn', 'Inter', sans-serif;
  font-weight: 600;
  margin: .25rem 0 .35rem;
}

.nav-link-marsh {
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  letter-spacing: .8px;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .5rem .9rem !important;
  border-radius: 5px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-link-marsh:hover,
.nav-link-marsh.active {
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  box-shadow: var(--hover-shadow);
  outline: 1px solid var(--hover-border);
  outline-offset: -1px;
}
.nav-link-marsh svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-link-marsh i { font-size: 1rem; line-height: 1; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  #main-header .site-header-container {
    padding-inline: .9rem;
    gap: .65rem;
  }
  .brand-lockup img {
    height: 54px;
    max-width: 220px;
  }
  .nav-link-marsh {
    font-size: .86rem;
    padding-inline: .58rem !important;
    gap: 4px;
  }
  .lang-toggle,
  .admin-login-link {
    min-height: 36px;
    padding-inline: .62rem;
  }
}

/* Mega dropdown */
.has-mega::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -18px;
  right: -18px;
  height: 14px;
  background: transparent;
  pointer-events: auto;
}
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 700px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(26,42,74,.18);
  padding: 1.5rem;
  display: none;
  z-index: 2000;
  animation: fadeDown .2s ease;
}
.mega-menu::before,
.login-switcher-menu::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-right: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  top: -8px;
  z-index: 3;
  box-shadow: -1px -1px 0 var(--border);
  pointer-events: none;
}
.mega-menu::before { left: calc(50% - 6px); }
.mega-menu-rich::before { display: none; }
.mega-popover-arrow {
  position: absolute;
  top: -10px;
  left: calc(50% - 9px);
  width: 18px;
  height: 18px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-right: 0;
  border-bottom: 0;
  box-shadow: -2px -2px 8px rgba(26,42,74,.05);
  transform: rotate(45deg);
  z-index: 6;
  pointer-events: none;
}
.mega-menu-rich > .mega-popover-arrow {
  position: absolute;
  top: -10px;
  left: calc(50% - 9px);
  z-index: 7;
}
.mega-menu.show { display: flex; gap: 2rem; flex-wrap: wrap; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-col h6 {
  font-family: 'Oswald', sans-serif;
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .3rem;
}
.mega-col a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: .3rem 0;
  color: var(--text);
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}
.mega-col a:hover { color: var(--gold); padding-left: 4px; }
.mega-col a svg { width: 15px; height: 15px; }
.mega-menu-rich {
  --mega-bg-light: none;
  --mega-bg-dark: var(--mega-bg-light);
  --mega-bg-image: var(--mega-bg-light);
  min-width: min(920px, 92vw);
  display: none;
  grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr);
  gap: 1.2rem;
  padding: 1rem;
  overflow: visible;
  direction: ltr;
}
[data-theme="dark"] .mega-menu-rich {
  --mega-bg-image: var(--mega-bg-dark);
}
.mega-menu-rich::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .16;
  background-image:
    linear-gradient(135deg, var(--bg-card), transparent 58%),
    var(--mega-bg-image);
  background-size: cover;
  background-position: center;
  pointer-events: none;
  border-radius: inherit;
}
[data-theme="dark"] .mega-menu-rich::after {
  opacity: .22;
}
.mega-menu-rich > * {
  position: relative;
  z-index: 1;
}
.mega-menu-rich.show {
  display: grid;
}
.mega-products {
  min-width: min(1280px, calc(100vw - 1.5rem));
  max-width: min(1280px, calc(100vw - 1.5rem));
  grid-template-columns: minmax(0, 1fr) minmax(200px, 220px);
  gap: 1rem;
}
.mega-products::before {
  left: calc(50% - 6px);
  right: auto;
}
.mega-products .mega-content {
  min-width: 0;
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline-end: .25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.mega-products .mega-visual {
  min-height: 240px;
}
.mega-menu-rich .mega-content {
  grid-column: 1;
  grid-row: 1;
}
.mega-menu-rich .mega-visual {
  grid-column: 2;
  grid-row: 1;
}
.mega-products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .38rem .7rem;
}
.mega-product-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .8fr);
  gap: .95rem;
  align-items: start;
}
.mega-product-section {
  min-width: 0;
}
.mega-product-section + .mega-product-section {
  margin-top: 0;
  padding-top: 0;
  padding-inline-start: .95rem;
  border-top: 0;
  border-inline-start: 1px solid color-mix(in srgb, var(--border) 76%, var(--gold) 24%);
}
.mega-product-section h6 {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin-bottom: .45rem;
}
.mega-products .mega-grid a {
  padding: .45rem .5rem;
}
.mega-products .mega-grid i {
  width: 28px;
  height: 28px;
}
.mega-ready-products-grid {
  grid-template-columns: 1fr;
}
.mega-products .mega-grid small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-ready-products-grid a {
  background: color-mix(in srgb, var(--bg-card) 96%, var(--gold) 4%);
}
[data-theme="dark"] .mega-ready-products-grid a {
  background: color-mix(in srgb, var(--navy-mid) 86%, var(--gold) 5%);
}
.mega-visual {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-card) 96%, var(--gold) 4%),
      color-mix(in srgb, var(--bg-card) 92%, var(--navy-deep) 8%));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  min-height: 240px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .55rem;
  overflow: hidden;
  position: relative;
}
.mega-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    radial-gradient(circle at 22% 22%, rgba(245,197,24,.22), transparent 20%),
    radial-gradient(circle at 82% 34%, rgba(55,118,255,.16), transparent 22%),
    var(--mega-bg-image);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
[data-theme="dark"] .mega-visual {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--navy-deep) 84%, var(--gold) 5%),
      color-mix(in srgb, var(--navy-deep) 92%, #000 8%));
  color: #c5cfe8;
}
[data-theme="dark"] .mega-visual::before {
  opacity: .22;
}
.mega-visual img,
.mega-visual strong,
.mega-visual span {
  position: relative;
  z-index: 1;
}
.mega-visual img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100px;
  object-fit: contain;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, #ffffff 88%, var(--bg-card) 12%),
      color-mix(in srgb, #eef3fb 82%, var(--gold) 18%));
  border: 1px solid color-mix(in srgb, var(--border) 72%, #ffffff 28%);
  border-radius: 6px;
  padding: .55rem .75rem;
  flex: 0 0 auto;
  margin-bottom: .35rem;
  box-shadow: 0 12px 28px rgba(17, 30, 54, .08);
}
[data-theme="dark"] .mega-visual img {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--navy-mid) 72%, #ffffff 10%),
      color-mix(in srgb, var(--navy-deep) 76%, var(--gold) 8%));
  border-color: color-mix(in srgb, var(--border) 68%, var(--gold) 16%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}
.mega-visual-logo-dark { display: none; }
[data-theme="dark"] .mega-visual-logo-light { display: none; }
[data-theme="dark"] .mega-visual-logo-dark { display: block; }
.mega-visual strong {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  margin-top: auto;
}
.mega-visual span {
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.5;
}
.mega-visual-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: 100%;
  margin: .1rem 0 .55rem;
}
.mega-visual-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 34px;
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid color-mix(in srgb, var(--border) 74%, var(--gold) 26%);
  border-radius: 6px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--gold) 8%);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}
[data-theme="dark"] .mega-visual-actions a {
  color: #f7d969;
  background: color-mix(in srgb, var(--navy-mid) 82%, var(--gold) 8%);
  border-color: color-mix(in srgb, var(--border) 62%, var(--gold) 32%);
}
.mega-visual-actions a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--hover-shadow);
}
.mega-visual-actions i {
  flex-shrink: 0;
}
.mega-visual-actions span {
  color: inherit;
  font-size: inherit;
  line-height: 1;
}
.mega-content {
  min-width: 0;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .8rem;
}
.mega-products .mega-ready-products-grid {
  grid-template-columns: 1fr;
}
.mega-grid a {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
}
.mega-grid a:hover {
  border-color: var(--hover-border);
  box-shadow: var(--hover-shadow);
  background: rgba(245,197,24,.08);
  color: var(--text);
}
.mega-grid i {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-grid b {
  display: block;
  font-size: .88rem;
  line-height: 1.25;
}
.mega-grid small {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.45;
  margin-top: .18rem;
}
@media (min-width: 992px) and (max-width: 1199px) {
  .mega-products {
    min-width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    grid-template-columns: minmax(0, 1fr) minmax(180px, 195px);
    gap: .8rem;
    padding: .85rem;
  }
  .mega-product-panels {
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
  }
  .mega-request-products-grid {
    grid-template-columns: 1fr;
  }
  .mega-products .mega-grid a {
    gap: .5rem;
    padding: .4rem;
  }
  .mega-products .mega-visual {
    padding: .8rem;
  }
  .mega-products .mega-visual img {
    height: 82px;
  }
}
@media (min-width: 1200px) {
  .mega-products .mega-content {
    padding-inline-end: .35rem;
  }
}
@media (max-width: 991px) {
  .mega-menu,
  .mega-menu-rich,
  .mega-products,
  .mega-popover-arrow {
    display: none !important;
  }
}
.mega-explore-link {
  margin-top: .45rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--gold);
  border: 1px solid rgba(245,197,24,.55);
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .86rem;
  font-weight: 700;
}
.mega-explore-link:hover {
  color: var(--navy-deep);
  background: var(--gold);
  box-shadow: var(--hover-shadow);
}
.mobile-nav-dropdown {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .75rem;
  border-radius: 5px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .8px;
}
.mobile-nav-dropdown.active,
.mobile-nav-dropdown:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--hover-shadow);
  outline: 1px solid var(--hover-border);
  outline-offset: -1px;
}
#mobileNav .offcanvas-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-subnav {
  display: grid;
  gap: .35rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  margin: .25rem 0 .65rem;
  padding: .45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-card) 92%, var(--header-bg));
}
.mobile-subnav a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .65rem;
  color: var(--text);
  border-radius: 6px;
  font-size: .9rem;
}
.mobile-subnav a:hover {
  background: rgba(245,197,24,.12);
  color: var(--text);
}
.mobile-subnav i {
  color: var(--gold);
  flex-shrink: 0;
}
.mobile-subnav-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: .35rem .35rem .15rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .72rem;
  font-weight: 800;
}
.mobile-nav-dropdown i {
  font-size: .75rem;
}
.mobile-subnav {
  padding: .35rem 0 .45rem 1rem;
}
[dir="rtl"] .mobile-subnav {
  padding-left: 0;
  padding-right: 1rem;
}
.mobile-subnav a {
  display: block;
  color: var(--text-muted);
  padding: .35rem .75rem;
  font-size: .9rem;
}
.mobile-subnav a:hover {
  color: var(--gold);
}
.mobile-utility-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch !important;
}
.mobile-utility-row > * {
  min-width: 0;
}
.mobile-utility-row .lang-switcher,
.mobile-utility-row .admin-login-link,
.mobile-utility-row #theme-toggle-mobile {
  flex: 1 1 0;
  min-height: 38px;
}
.mobile-utility-row .lang-switcher {
  min-width: 132px;
}
.mobile-utility-row .admin-login-link,
.mobile-utility-row #theme-toggle-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Theme + Lang buttons */
#theme-toggle {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s;
}
#theme-toggle:hover { opacity: .85; }

.lang-select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .35rem .65rem;
  font-size: .85rem;
  cursor: pointer;
  min-width: 118px;
}
.lang-switcher {
  position: relative;
}
.lang-toggle {
  min-width: 128px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--text);
}
.lang-toggle .bi {
  margin-inline-start: auto;
  font-size: .72rem;
}
.lang-switcher-menu {
  min-width: 178px;
  padding: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26,42,74,.2);
  z-index: 2050;
}
.lang-switcher-menu[data-bs-popper] {
  top: 100%;
  left: 50%;
  right: auto;
  margin-top: 12px !important;
  transform: translateX(-50%) !important;
}
.lang-switcher-menu::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-right: 0;
  border-bottom: 0;
  transform: translateX(-50%) rotate(45deg);
}
.lang-switcher-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: 5px;
  color: var(--text);
  padding: .5rem .6rem;
  font-size: .86rem;
}
.lang-switcher-menu .dropdown-item:hover,
.lang-switcher-menu .dropdown-item:focus,
.lang-switcher-menu .dropdown-item.active,
.lang-switcher-menu .dropdown-item:active {
  background: rgba(245,197,24,.12);
  color: var(--gold);
}
.lang-flag {
  width: 20px;
  height: 14px;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 2px;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px rgba(17,30,54,.18);
}
.flag-us { background: repeating-linear-gradient(to bottom, #b22234 0 7.7%, #fff 7.7% 15.4%); }
.flag-us::before { content: ''; position: absolute; top: 0; left: 0; width: 42%; height: 54%; background: #3c3b6e; }
.flag-af { background: linear-gradient(to right, #111 0 33.33%, #d32011 33.33% 66.66%, #007a36 66.66% 100%); }
.flag-sa { background: #006c35; }
.flag-sa::after { content: ''; position: absolute; left: 4px; right: 4px; top: 7px; height: 1.5px; background: #fff; border-radius: 2px; }
.flag-fr { background: linear-gradient(to right, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66% 100%); }
.flag-cn { background: #de2910; }
.flag-cn::before { content: '*'; position: absolute; left: 2px; top: -1px; color: #ffde00; font-size: 9px; line-height: 1; }
.flag-es { background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%); }
.flag-pt { background: linear-gradient(to right, #006600 0 42%, #ff0000 42% 100%); }
.flag-jp { background: #fff; }
.flag-jp::before { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #bc002d; left: 50%; top: 50%; transform: translate(-50%, -50%); }
[dir="rtl"] .lang-switcher-menu[data-bs-popper] {
  left: 50%;
  right: auto;
  transform: translateX(-50%) !important;
}

/* ─── Shared Hero – Animated Digital Network ───────────────── */
.hero-network-surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-network-surface > .container,
.hero-network-surface .legal-hero-grid {
  position: relative;
  z-index: 1;
}
.hero-network-surface .section-label,
.hero-network-surface .display-font,
.hero-network-surface .section-title,
.hero-network-surface h1,
.hero-network-surface p {
  text-shadow:
    0 2px 10px rgba(2, 6, 23, .78),
    0 0 24px rgba(2, 6, 23, .42);
}
.hero-network-surface .hero-plexus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.hero-network-surface .vscode-window {
  position: relative;
  z-index: 1;
}

#home-hero {
  color: #f8fbff;
}
#home-hero .section-label {
  color: rgba(245,197,24,.95);
}
#home-hero .display-font {
  color: #ffffff !important;
}
#home-hero .section-desc {
  color: rgba(255,255,255,.82);
}
#home-hero .btn-marsh {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
#home-hero .btn-marsh:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(245,197,24,.28);
}
#home-hero .btn-marsh-outline {
  color: var(--gold);
  border-color: rgba(245,197,24,.9);
}
#home-hero .btn-marsh-outline:hover {
  background: rgba(245,197,24,.12);
  color: #ffffff;
  border-color: var(--gold);
}

/* Public website buttons: WhatsApp-style fill that rises from bottom to top. */
body[data-server-layout="1"] .btn-marsh,
body[data-server-layout="1"] .btn-marsh-outline,
body[data-server-layout="1"] .admin-login-link,
body[data-server-layout="1"] .auth-social-btn,
body[data-server-layout="1"] .nav-link-marsh,
body[data-server-layout="1"] .lang-toggle,
body[data-server-layout="1"] #theme-toggle,
body[data-server-layout="1"] #theme-toggle-mobile,
body[data-server-layout="1"] .mega-explore-link,
body[data-server-layout="1"] .mega-visual-actions a,
body[data-server-layout="1"] .mobile-nav-dropdown,
body[data-server-layout="1"] .mobile-subnav a,
body[data-server-layout="1"] .marsh-chatbot-toggle,
body[data-server-layout="1"] .marsh-chatbot-close,
body[data-server-layout="1"] .marsh-chatbot-chip,
body[data-server-layout="1"] .marsh-chatbot-form button,
body[data-server-layout="1"] .marsh-back-to-top {
  --site-button-rest-bg: transparent;
  --site-button-fill: var(--gold);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--site-button-rest-bg);
  background-image: radial-gradient(circle at 50% 115%, var(--site-button-fill) 0 50%, transparent 51%);
  background-repeat: no-repeat;
  background-size: 0% 0%;
  background-position: 50% 100%;
  transition:
    background-size .58s cubic-bezier(.22, .61, .36, 1),
    color .32s ease,
    border-color .32s ease,
    box-shadow .32s ease,
    transform .32s ease;
}

body[data-server-layout="1"] .btn-marsh {
  --site-button-rest-bg: var(--btn-bg);
}

body[data-server-layout="1"] #home-hero .btn-marsh {
  --site-button-rest-bg: var(--gold);
}

body[data-server-layout="1"] .nav-link-marsh.active,
body[data-server-layout="1"] #theme-toggle,
body[data-server-layout="1"] #theme-toggle-mobile,
body[data-server-layout="1"] .marsh-chatbot-toggle,
body[data-server-layout="1"] .marsh-chatbot-form button,
body[data-server-layout="1"] .marsh-back-to-top {
  --site-button-rest-bg: var(--btn-bg);
}

body[data-server-layout="1"] .marsh-chatbot-close {
  --site-button-rest-bg: rgba(255,255,255,.08);
}

body[data-server-layout="1"] .marsh-chatbot-chip {
  --site-button-rest-bg: var(--bg-card);
}

body[data-server-layout="1"] #home-hero .btn-hero-contact {
  --site-button-fill: #ffffff;
  --site-button-rest-bg: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.9);
  background-color: transparent;
}

body[data-server-layout="1"] .btn-marsh:hover,
body[data-server-layout="1"] .btn-marsh-outline:hover,
body[data-server-layout="1"] .admin-login-link:hover,
body[data-server-layout="1"] .auth-social-btn:hover,
body[data-server-layout="1"] .nav-link-marsh:hover,
body[data-server-layout="1"] .lang-toggle:hover,
body[data-server-layout="1"] .lang-toggle[aria-expanded="true"],
body[data-server-layout="1"] #theme-toggle:hover,
body[data-server-layout="1"] #theme-toggle-mobile:hover,
body[data-server-layout="1"] .mega-explore-link:hover,
body[data-server-layout="1"] .mega-visual-actions a:hover,
body[data-server-layout="1"] .mobile-nav-dropdown:hover,
body[data-server-layout="1"] .mobile-nav-dropdown.active,
body[data-server-layout="1"] .mobile-subnav a:hover,
body[data-server-layout="1"] .marsh-chatbot-toggle:hover,
body[data-server-layout="1"] .marsh-chatbot-close:hover,
body[data-server-layout="1"] .marsh-chatbot-chip:hover,
body[data-server-layout="1"] .marsh-chatbot-chip.is-active,
body[data-server-layout="1"] .marsh-chatbot-form button:hover,
body[data-server-layout="1"] .marsh-back-to-top:hover,
body[data-server-layout="1"] #home-hero .btn-marsh:hover,
body[data-server-layout="1"] #home-hero .btn-marsh-outline:hover {
  background-color: var(--site-button-rest-bg);
  background-size: 240% 240%;
  color: #050505 !important;
  border-color: var(--gold);
  box-shadow: var(--hover-shadow);
}

body[data-server-layout="1"] #home-hero .btn-hero-contact:hover {
  background-color: transparent;
  background-size: 240% 240%;
  color: #050505 !important;
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255,255,255,.22);
}

body[data-server-layout="1"] .btn-marsh:hover i,
body[data-server-layout="1"] .btn-marsh-outline:hover i,
body[data-server-layout="1"] .admin-login-link:hover i,
body[data-server-layout="1"] .auth-social-btn:hover i,
body[data-server-layout="1"] .nav-link-marsh:hover i,
body[data-server-layout="1"] .lang-toggle:hover i,
body[data-server-layout="1"] #theme-toggle:hover i,
body[data-server-layout="1"] #theme-toggle-mobile:hover i,
body[data-server-layout="1"] .mega-explore-link:hover i,
body[data-server-layout="1"] .mega-visual-actions a:hover i,
body[data-server-layout="1"] .mobile-nav-dropdown:hover i,
body[data-server-layout="1"] .mobile-subnav a:hover i,
body[data-server-layout="1"] .marsh-chatbot-toggle:hover i,
body[data-server-layout="1"] .marsh-chatbot-close:hover i,
body[data-server-layout="1"] .marsh-chatbot-chip:hover i,
body[data-server-layout="1"] .marsh-chatbot-form button:hover i,
body[data-server-layout="1"] .marsh-back-to-top:hover i,
body[data-server-layout="1"] .btn-marsh:hover span,
body[data-server-layout="1"] .btn-marsh-outline:hover span,
body[data-server-layout="1"] .admin-login-link:hover span,
body[data-server-layout="1"] .auth-social-btn:hover span,
body[data-server-layout="1"] .nav-link-marsh:hover span,
body[data-server-layout="1"] .lang-toggle:hover span,
body[data-server-layout="1"] #theme-toggle:hover span,
body[data-server-layout="1"] #theme-toggle-mobile:hover span,
body[data-server-layout="1"] .mega-explore-link:hover span,
body[data-server-layout="1"] .mega-visual-actions a:hover span,
body[data-server-layout="1"] .mobile-nav-dropdown:hover span,
body[data-server-layout="1"] .mobile-subnav a:hover span,
body[data-server-layout="1"] .marsh-chatbot-toggle:hover span,
body[data-server-layout="1"] .marsh-chatbot-close:hover span,
body[data-server-layout="1"] .marsh-chatbot-chip:hover span,
body[data-server-layout="1"] .marsh-chatbot-form button:hover span,
body[data-server-layout="1"] .marsh-back-to-top:hover span {
  color: inherit;
}

[data-theme="light"] {
  --marsh-spark-one: var(--gold);
  --marsh-spark-two: #4aa3ff;
  --marsh-spark-three: #4aa3ff;
}

[data-theme="dark"] {
  --marsh-spark-one: var(--gold);
  --marsh-spark-two: #4aa3ff;
  --marsh-spark-three: #4aa3ff;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  inline-size: var(--marsh-spark-size, .58rem);
  block-size: var(--marsh-spark-size, .58rem);
  pointer-events: none;
  opacity: 0;
  color: var(--marsh-spark-color, var(--gold)) !important;
  filter: drop-shadow(0 0 .34rem color-mix(in srgb, currentColor 72%, transparent));
  animation: none;
  transition:
    opacity .18s ease,
    filter .28s ease;
}

body[data-server-layout="1"] [data-btn-type="whimsical"] > .deco,
body[data-server-layout="1"] [data-btn-type="whimsical"]:hover > .deco,
body[data-server-layout="1"] [data-btn-type="whimsical"]:focus-visible > .deco,
.auth-page-layer [data-btn-type="whimsical"] > .deco,
.auth-page-layer [data-btn-type="whimsical"]:hover > .deco,
.auth-page-layer [data-btn-type="whimsical"]:focus-visible > .deco {
  color: var(--marsh-spark-color, var(--gold)) !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco::before,
:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
  transform: rotate(var(--marsh-spark-rotate, 0deg)) scale(var(--marsh-spark-scale, 1));
  transform-origin: center;
  animation: none;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco::after {
  opacity: .55;
  transform: rotate(calc(var(--marsh-spark-rotate, 0deg) + 45deg)) scale(calc(var(--marsh-spark-scale, 1) * .68));
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] {
  position: relative;
  overflow: visible !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(12) {
  --marsh-spark-delay: -.1s;
  --marsh-spark-size: .62rem;
  --marsh-spark-color: var(--marsh-spark-one);
  --marsh-spark-scale: .94;
  --spark-x0: 8%;
  --spark-y0: -12px;
  --spark-x1: 52%;
  --spark-y1: -18px;
  --spark-x2: 94%;
  --spark-y2: -9px;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(11) {
  --marsh-spark-delay: -.22s;
  --marsh-spark-size: .44rem;
  --marsh-spark-color: var(--marsh-spark-two);
  --marsh-spark-rotate: 14deg;
  --marsh-spark-scale: .82;
  --spark-x0: calc(100% + 10px);
  --spark-y0: 14%;
  --spark-x1: calc(100% + 17px);
  --spark-y1: 52%;
  --spark-x2: calc(100% + 8px);
  --spark-y2: 88%;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(10) {
  --marsh-spark-delay: -.34s;
  --marsh-spark-size: .54rem;
  --marsh-spark-color: var(--marsh-spark-three);
  --marsh-spark-rotate: -10deg;
  --marsh-spark-scale: .9;
  --spark-x0: 90%;
  --spark-y0: calc(100% + 10px);
  --spark-x1: 47%;
  --spark-y1: calc(100% + 17px);
  --spark-x2: 11%;
  --spark-y2: calc(100% + 9px);
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(9) {
  --marsh-spark-delay: -.46s;
  --marsh-spark-size: .5rem;
  --marsh-spark-color: var(--marsh-spark-one);
  --marsh-spark-rotate: 24deg;
  --marsh-spark-scale: .86;
  --spark-x0: -10px;
  --spark-y0: 86%;
  --spark-x1: -17px;
  --spark-y1: 46%;
  --spark-x2: -8px;
  --spark-y2: 13%;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(8) {
  --marsh-spark-delay: -.58s;
  --marsh-spark-size: .36rem;
  --marsh-spark-color: var(--marsh-spark-two);
  --marsh-spark-rotate: -20deg;
  --marsh-spark-scale: .76;
  --spark-x0: 18%;
  --spark-y0: calc(100% + 8px);
  --spark-x1: calc(100% + 12px);
  --spark-y1: 72%;
  --spark-x2: 72%;
  --spark-y2: -11px;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(7) {
  --marsh-spark-delay: -.7s;
  --marsh-spark-size: .4rem;
  --marsh-spark-color: var(--marsh-spark-three);
  --marsh-spark-rotate: 32deg;
  --marsh-spark-scale: .78;
  --spark-x0: 34%;
  --spark-y0: -10px;
  --spark-x1: 74%;
  --spark-y1: -19px;
  --spark-x2: calc(100% + 7px);
  --spark-y2: 28%;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(6) {
  --marsh-spark-delay: -.82s;
  --marsh-spark-size: .46rem;
  --marsh-spark-color: var(--marsh-spark-one);
  --marsh-spark-rotate: -34deg;
  --marsh-spark-scale: .82;
  --spark-x0: calc(100% + 9px);
  --spark-y0: 32%;
  --spark-x1: calc(100% + 18px);
  --spark-y1: 76%;
  --spark-x2: 76%;
  --spark-y2: calc(100% + 11px);
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(5) {
  --marsh-spark-delay: -.94s;
  --marsh-spark-size: .34rem;
  --marsh-spark-color: var(--marsh-spark-two);
  --marsh-spark-rotate: 8deg;
  --marsh-spark-scale: .72;
  --spark-x0: 62%;
  --spark-y0: calc(100% + 8px);
  --spark-x1: 22%;
  --spark-y1: calc(100% + 17px);
  --spark-x2: -8px;
  --spark-y2: 68%;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(4) {
  --marsh-spark-delay: -1.06s;
  --marsh-spark-size: .58rem;
  --marsh-spark-color: var(--marsh-spark-three);
  --marsh-spark-rotate: -16deg;
  --marsh-spark-scale: .88;
  --spark-x0: -9px;
  --spark-y0: 62%;
  --spark-x1: -18px;
  --spark-y1: 22%;
  --spark-x2: 24%;
  --spark-y2: -10px;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(3) {
  --marsh-spark-delay: -1.18s;
  --marsh-spark-size: .42rem;
  --marsh-spark-color: var(--marsh-spark-one);
  --marsh-spark-rotate: 18deg;
  --marsh-spark-scale: .76;
  --spark-x0: 12%;
  --spark-y0: calc(100% + 10px);
  --spark-x1: 8%;
  --spark-y1: -12px;
  --spark-x2: 56%;
  --spark-y2: -18px;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(2) {
  --marsh-spark-delay: -1.3s;
  --marsh-spark-size: .5rem;
  --marsh-spark-color: var(--marsh-spark-two);
  --marsh-spark-rotate: -26deg;
  --marsh-spark-scale: .84;
  --spark-x0: 48%;
  --spark-y0: -14px;
  --spark-x1: calc(100% + 16px);
  --spark-y1: 48%;
  --spark-x2: 48%;
  --spark-y2: calc(100% + 14px);
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"] > .deco:nth-last-child(1) {
  --marsh-spark-delay: -1.42s;
  --marsh-spark-size: .32rem;
  --marsh-spark-color: var(--marsh-spark-three);
  --marsh-spark-rotate: 40deg;
  --marsh-spark-scale: .7;
  --spark-x0: calc(100% + 8px);
  --spark-y0: 84%;
  --spark-x1: 50%;
  --spark-y1: calc(100% + 18px);
  --spark-x2: -7px;
  --spark-y2: 16%;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"]:hover > .deco,
:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"]:focus-visible > .deco {
  animation:
    marsh-button-sparkle var(--marsh-spark-duration, 1.35s) linear var(--marsh-spark-delay, 0s) 1 both;
}

:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"]:hover > .deco::before,
:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"]:hover > .deco::after,
:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"]:focus-visible > .deco::before,
:where(body[data-server-layout="1"], .auth-page-layer) [data-btn-type="whimsical"]:focus-visible > .deco::after {
  animation: marsh-button-twinkle .46s ease-in-out 0s 3 alternate both;
}

@keyframes marsh-button-sparkle {
  0% {
    left: var(--spark-x0);
    top: var(--spark-y0);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.45);
  }
  14%,
  74% {
    opacity: 1;
  }
  48% {
    left: var(--spark-x1);
    top: var(--spark-y1);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    left: var(--spark-x2);
    top: var(--spark-y2);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.45);
  }
}

@keyframes marsh-button-twinkle {
  from { rotate: 0deg; scale: .72; }
  to { rotate: 38deg; scale: 1.16; }
}

.product-price-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border: 1px solid var(--border);
}
.product-price-card .product-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: .75rem;
  padding: .26rem .68rem;
  border: 1px solid color-mix(in srgb, var(--gold) 82%, #ffffff 18%);
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 10px 22px rgba(245, 197, 24, .14);
  line-height: 1.15;
  white-space: normal;
}
.product-price-card.is-selected {
  border-color: var(--gold);
  box-shadow: var(--hover-shadow);
}
.product-price-card code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .18rem .46rem;
  border: 1px solid color-mix(in srgb, var(--gold) 82%, #ffffff 18%);
  border-radius: 7px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  direction: ltr;
  text-align: start;
  overflow-wrap: anywhere;
  white-space: normal;
}
[data-theme="dark"] .product-price-card code,
[data-theme="dark"] .product-price-card .product-badge {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: color-mix(in srgb, var(--gold) 78%, #ffffff 22%);
}
.product-price-amount {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin-top: auto;
}
.product-price-meta {
  display: grid;
  gap: .35rem;
  padding-top: .65rem;
  color: var(--text-muted);
  font-size: .86rem;
}

.marsh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  max-width: 100%;
  padding: .34rem .72rem;
  border: 1px solid rgba(245,197,24,.45);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-card) 84%, var(--gold) 16%);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-showcase-section {
  overflow: hidden;
}
.form-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 1.25rem;
  align-items: stretch;
}
[dir="rtl"] .form-showcase-grid {
  direction: rtl;
}
.form-showcase-card {
  padding: clamp(1.1rem, 2vw, 1.65rem);
}
.form-visual-card {
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 20%, rgba(245,197,24,.22), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(95,183,255,.18), transparent 32%),
    color-mix(in srgb, var(--bg-card) 84%, var(--navy-deep) 16%);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  box-shadow: var(--hover-shadow);
}
.form-illustration-img {
  width: min(100%, 430px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(7, 14, 32, .22));
}
.form-visual-card svg {
  width: min(100%, 440px);
  height: auto;
}
.contact-split-grid {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(300px, 500px);
  gap: 1.25rem;
  max-width: 1040px;
  margin-inline: auto;
  justify-content: center;
  align-items: start;
}
[dir="rtl"] .contact-split-grid {
  direction: rtl;
}
.contact-info-card {
  padding: clamp(1.1rem, 2vw, 1.6rem);
}
.contact-split-grid > .marsh-card {
  align-self: start;
}
.contact-split-grid .form-showcase-card {
  padding: clamp(1rem, 1.7vw, 1.35rem);
}
.contact-split-grid .form-showcase-card form {
  margin: 0;
}
.contact-split-grid .form-showcase-card .row > .col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
}
.contact-split-grid .form-showcase-card textarea.form-control {
  min-height: 185px;
}
.contact-info-list {
  display: grid;
  gap: .85rem;
  margin-top: 1.15rem;
}
.contact-info-item,
.contact-admin-field,
.contact-message-meta {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-card) 88%, var(--navy-deep) 12%);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .85rem;
}
[dir="rtl"] .contact-info-item {
  text-align: right;
}
.contact-info-item i,
.contact-modal-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  flex: 0 0 auto;
}
.contact-info-item span,
.contact-message-meta span {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
}
.contact-info-item strong,
.contact-info-item a,
.contact-message-meta strong {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.contact-socials a {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
  background: var(--bg-card);
}
.contact-admin-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .65rem;
}
.contact-modal-icon {
  margin-bottom: .85rem;
}
.contact-message-meta {
  padding: .85rem;
  min-height: 76px;
}
.illustration-credit {
  align-self: end;
  margin-top: .75rem;
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.project-form-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
}
.project-visual-card {
  align-self: stretch;
}
.about-value-card h3,
.team-card h3,
.testimonial-card h3 {
  font-size: 1.08rem;
  margin-top: .85rem;
}
.about-slider,
.testimonial-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .25rem .25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.about-slider::-webkit-scrollbar,
.testimonial-slider::-webkit-scrollbar { height: 6px; }
.about-slider::-webkit-scrollbar-thumb,
.testimonial-slider::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
.team-card,
.testimonial-card {
  scroll-snap-align: start;
  min-height: 100%;
}
.team-avatar,
.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 900;
  font-size: 1.3rem;
}
.team-card span,
.testimonial-head span {
  display: block;
  color: var(--text-muted);
  font-size: .86rem;
}
.testimonial-head {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.testimonial-stars {
  --rating: 5;
  --percent: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: .12rem;
  margin: 1rem 0 .75rem;
}
.testimonial-stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--gold) var(--percent), color-mix(in srgb, var(--text-muted) 45%, transparent) var(--percent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating-picker {
  --rating: 5;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(10, 18px);
  width: 180px;
  height: 32px;
}
.rating-picker::before {
  content: "★★★★★";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-size: 1.65rem;
  letter-spacing: .18rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--gold) calc(var(--rating) / 5 * 100%), color-mix(in srgb, var(--text-muted) 42%, transparent) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.rating-picker button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* ─── Customer Signup ───────────────────────── */
.customer-signup-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}
.customer-signup-shell {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 10px;
}
.customer-signup-visual {
  grid-column: 1;
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 16%, rgba(245,197,24,.2), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(37,99,235,.16), transparent 34%),
    color-mix(in srgb, var(--bg-card) 86%, var(--navy-deep) 14%);
  overflow: hidden;
}
.customer-signup-visual img {
  width: min(100%, 430px);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(7, 14, 32, .24));
}
.customer-signup-panel {
  grid-column: 2;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.8rem);
}
.customer-signup-subtitle {
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.7;
}
.customer-signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.customer-signup-wide {
  grid-column: 1 / -1;
}
.customer-signup-form .form-control {
  min-height: 58px;
}
.customer-signup-back {
  width: fit-content;
}
[dir="rtl"] .customer-signup-visual {
  grid-column: 1;
}
[dir="rtl"] .customer-signup-panel {
  grid-column: 2;
  direction: rtl;
  text-align: right;
}

@media (max-width: 991px) {
  .form-showcase-grid,
  .contact-split-grid,
  .project-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-split-grid {
    max-width: 100%;
  }
  .form-visual-card {
    min-height: 260px;
  }
  .customer-signup-page {
    align-items: flex-start;
  }
  .customer-signup-shell {
    display: block;
    max-width: 720px;
    padding: clamp(1rem, 4vw, 1.4rem);
  }
  .customer-signup-visual {
    display: none;
  }
  .customer-signup-panel {
    padding: .4rem;
  }
  .customer-signup-form {
    grid-template-columns: 1fr;
  }
  .customer-signup-wide {
    grid-column: auto;
  }
}

/* ─── Hero – VS Code ────────────────────────── */
#home-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.vscode-window {
  background: var(--code-bg);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  border: 1px solid #2e4070;
}
.vscode-titlebar {
  background: #0d1929;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dot { width: 13px; height: 13px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }
.vscode-filename {
  color: #6b8cba;
  font-size: .8rem;
  margin-left: .5rem;
}
.vscode-body {
  display: flex;
  min-height: 340px;
}
.vscode-gutter {
  background: #0d1929;
  padding: 1rem .6rem;
  text-align: right;
  color: #3d5577;
  font-size: .78rem;
  line-height: 1.9;
  min-width: 38px;
  user-select: none;
}
.vscode-code {
  padding: 1rem 1.2rem;
  flex: 1;
  line-height: 1.9;
  overflow: hidden;
  color: #dbeafe;
}
.code-line { display: block; white-space: pre; opacity: 0; animation: codeFadeIn .4s forwards; color: #dbeafe; }
.code-line.visible { opacity: 1; }
.marsh-ltr-code,
.marsh-ltr-code *,
.api-code-snippet,
.api-code-snippet *,
.response-box pre,
.response-box pre * {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}
.marsh-ltr-code .vscode-code {
  overflow-x: auto;
}
.home-api-section .home-api-code-card {
  background: #10203a;
  border-color: rgba(148, 170, 215, .38);
  box-shadow: 0 22px 70px rgba(14, 28, 55, .26);
}
.home-api-section .vscode-titlebar {
  background: #09172a;
  border-bottom: 1px solid rgba(148, 170, 215, .18);
}
.home-api-section .vscode-filename {
  color: #9bb9e8;
}
.home-api-section .vscode-body {
  min-height: 0;
}
.home-api-section .vscode-gutter {
  background: #09172a;
  color: #6f86ac;
  padding-top: 1.15rem;
  line-height: 1.85;
}
.home-api-section .vscode-code {
  padding: 1.15rem 1.25rem;
  line-height: 1.85;
  overflow-x: auto;
  scrollbar-width: thin;
}
.home-api-section .code-line {
  min-width: max-content;
  font-size: clamp(.72rem, .9vw, .86rem);
}
html[data-bs-theme="light"] .home-api-section .home-api-code-card,
body:not(.dark-mode) .home-api-section .home-api-code-card {
  box-shadow: 0 24px 80px rgba(17, 34, 68, .18);
}

.home-clients-section {
  position: relative;
  overflow: hidden;
}
.home-clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  max-width: 900px;
  margin: 0 auto;
}
.home-client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  min-width: 78px;
  min-height: 54px;
  max-width: 220px;
  max-height: 112px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 92%, var(--gold) 8%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-card) 96%, #ffffff 4%);
  color: var(--navy);
  text-decoration: none;
  box-shadow: none;
}
.home-client-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 112px;
  object-fit: contain;
}
.home-client-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 900;
  letter-spacing: .02em;
}
[data-theme="dark"] .home-client-logo {
  background: color-mix(in srgb, var(--navy-mid) 88%, #ffffff 12%);
  border-color: color-mix(in srgb, var(--border) 88%, var(--gold) 12%);
  color: #fff;
}

#home-hero .vscode-window,
#home-hero .vscode-window *,
.vscode-gutter,
.vscode-code,
.code-line {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

/* syntax colors */
.syn-kw  { color: #c792ea; }   /* keyword */
.syn-fn  { color: #82aaff; }   /* function */
.syn-str { color: #c3e88d; }   /* string */
.syn-num { color: #f78c6c; }   /* number */
.syn-cm  { color: #546e7a; font-style: italic; } /* comment */
.syn-tag { color: #f07178; }   /* tag */
.syn-at  { color: #89ddff; }   /* attr / symbol */
.syn-pl  { color: #ffffff; }   /* plain */
.syn-gold { color: #F5C518; }

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

.cursor-blink {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── Section Common ─────────────────────────── */
.marsh-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.marsh-section-alt { background: var(--bg-card); }
body[data-server-layout="1"] .marsh-section {
  isolation: isolate;
}
body[data-server-layout="1"] .marsh-section > .container,
body[data-server-layout="1"] .marsh-section > .container-fluid {
  position: relative;
  z-index: 1;
}

@supports (content-visibility: auto) {
  body[data-server-layout="1"] .marsh-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }

  body[data-server-layout="1"] :is(#home-hero, .hero-section, .about-hero-section, .form-showcase-section:first-of-type) {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}
body[data-server-layout="1"] .marsh-section::before,
body[data-server-layout="1"] .marsh-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background: color-mix(in srgb, var(--gold) 88%, transparent);
  filter: drop-shadow(0 12px 28px rgba(245, 197, 24, .16));
  transform: rotate(-10deg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
body[data-server-layout="1"] .marsh-section::before {
  inline-size: clamp(84px, 10vw, 150px);
  block-size: clamp(84px, 10vw, 150px);
  inset-block-start: clamp(1.6rem, 7vw, 5rem);
  inset-inline-start: clamp(.6rem, 4vw, 4rem);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M82 8c7 29 18 45 46 53-28 8-39 24-46 53-8-29-19-45-47-53 28-8 39-24 47-53Z' fill='black'/%3E%3Cpath d='M125 90c4 14 11 22 25 27-14 4-21 12-25 27-5-15-12-23-27-27 15-5 22-13 27-27Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M82 8c7 29 18 45 46 53-28 8-39 24-46 53-8-29-19-45-47-53 28-8 39-24 47-53Z' fill='black'/%3E%3Cpath d='M125 90c4 14 11 22 25 27-14 4-21 12-25 27-5-15-12-23-27-27 15-5 22-13 27-27Z' fill='black'/%3E%3C/svg%3E");
}
body[data-server-layout="1"] .marsh-section::after {
  inline-size: clamp(170px, 22vw, 310px);
  block-size: clamp(120px, 16vw, 220px);
  inset-block-end: clamp(1rem, 6vw, 4.5rem);
  inset-inline-end: clamp(-2rem, 3vw, 3.5rem);
  background: color-mix(in srgb, #4aa3ff 76%, transparent);
  opacity: .14;
  filter: drop-shadow(0 18px 34px rgba(74, 163, 255, .18));
  transform: rotate(8deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 360 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='14' stroke-linecap='round' stroke-dasharray='24 26'%3E%3Cpath d='M8 160c58-20 93-88 142-63 28 15 15 51-10 52-42 1-64-67-15-101 73-50 143 43 101 101-26 36-81 43-128 24'/%3E%3Cpath d='M198 174c62 20 105-18 153-64'/%3E%3C/g%3E%3Cpath d='M179 166l16 18-24 5Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 360 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='14' stroke-linecap='round' stroke-dasharray='24 26'%3E%3Cpath d='M8 160c58-20 93-88 142-63 28 15 15 51-10 52-42 1-64-67-15-101 73-50 143 43 101 101-26 36-81 43-128 24'/%3E%3Cpath d='M198 174c62 20 105-18 153-64'/%3E%3C/g%3E%3Cpath d='M179 166l16 18-24 5Z' fill='black'/%3E%3C/svg%3E");
}
body[data-server-layout="1"] .marsh-section:nth-of-type(3n)::before {
  inline-size: clamp(110px, 13vw, 190px);
  block-size: clamp(110px, 13vw, 190px);
  inset-block-start: auto;
  inset-block-end: clamp(1rem, 5vw, 4rem);
  background: color-mix(in srgb, #4aa3ff 80%, transparent);
  opacity: .16;
  transform: rotate(14deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Cellipse cx='55' cy='42' rx='13' ry='50' transform='rotate(-63 55 42)'/%3E%3Cellipse cx='124' cy='36' rx='15' ry='45' transform='rotate(6 124 36)'/%3E%3Cellipse cx='64' cy='94' rx='13' ry='54' transform='rotate(-88 64 94)'/%3E%3Cellipse cx='120' cy='128' rx='15' ry='48' transform='rotate(37 120 128)'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Cellipse cx='55' cy='42' rx='13' ry='50' transform='rotate(-63 55 42)'/%3E%3Cellipse cx='124' cy='36' rx='15' ry='45' transform='rotate(6 124 36)'/%3E%3Cellipse cx='64' cy='94' rx='13' ry='54' transform='rotate(-88 64 94)'/%3E%3Cellipse cx='120' cy='128' rx='15' ry='48' transform='rotate(37 120 128)'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-server-layout="1"] .marsh-section:nth-of-type(4n)::after {
  inline-size: clamp(115px, 15vw, 220px);
  block-size: clamp(115px, 15vw, 220px);
  inset-inline-end: clamp(.8rem, 5vw, 5rem);
  background: color-mix(in srgb, var(--gold) 74%, #4aa3ff 26%);
  opacity: .15;
  transform: rotate(-5deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 190 190' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M92 78v-38M92 78l38 39M92 78l-25 59M92 78l-41-22M92 78h48M92 78l-39 32'/%3E%3Cpath d='M79 90c8-17 36-12 40 8l10 49c2 12-7 23-19 23H74c-11 0-20-9-19-20l2-25c1-11 14-16 23-9l11 9'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 190 190' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M92 78v-38M92 78l38 39M92 78l-25 59M92 78l-41-22M92 78h48M92 78l-39 32'/%3E%3Cpath d='M79 90c8-17 36-12 40 8l10 49c2 12-7 23-19 23H74c-11 0-20-9-19-20l2-25c1-11 14-16 23-9l11 9'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="dark"] body[data-server-layout="1"] .marsh-section::before,
[data-theme="dark"] body[data-server-layout="1"] .marsh-section::after {
  opacity: .20;
}
[data-theme="dark"] body[data-server-layout="1"] .marsh-section::after,
[data-theme="dark"] body[data-server-layout="1"] .marsh-section:nth-of-type(3n)::before {
  background: color-mix(in srgb, #4aa3ff 82%, transparent);
}
body[data-server-layout="1"] #services-preview::before {
  inline-size: clamp(220px, 24vw, 380px);
  block-size: clamp(150px, 17vw, 255px);
  inset-block-start: clamp(1.3rem, 4vw, 3.8rem);
  inset-inline-start: clamp(-2.5rem, 2vw, 3rem);
  background: color-mix(in srgb, var(--gold) 72%, #4aa3ff 28%);
  opacity: .22;
  transform: rotate(-7deg);
  filter: drop-shadow(0 16px 36px rgba(245, 197, 24, .18));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 420 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='13' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='20 21'%3E%3Cpath d='M7 196c52-14 91-37 127-61 45-30 74-62 58-95-11-23-47-24-72-1-24 22-30 54-11 82 31 45 99 34 111-24 8-39-24-74-65-67-54 9-86 65-64 114 27 61 120 89 218 75 39-6 73-17 104-33'/%3E%3C/g%3E%3Cpath d='M191 178l27 18-29 14 8-17Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 420 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='13' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='20 21'%3E%3Cpath d='M7 196c52-14 91-37 127-61 45-30 74-62 58-95-11-23-47-24-72-1-24 22-30 54-11 82 31 45 99 34 111-24 8-39-24-74-65-67-54 9-86 65-64 114 27 61 120 89 218 75 39-6 73-17 104-33'/%3E%3C/g%3E%3Cpath d='M191 178l27 18-29 14 8-17Z' fill='black'/%3E%3C/svg%3E");
}
body[data-server-layout="1"] #services-preview::after {
  opacity: .08;
}
body[data-server-layout="1"] #products-preview::before {
  inline-size: clamp(140px, 16vw, 235px);
  block-size: clamp(140px, 16vw, 235px);
  inset-block-start: clamp(1.3rem, 4vw, 3.4rem);
  inset-inline-start: clamp(1rem, 6vw, 6rem);
  background: color-mix(in srgb, var(--gold) 78%, #4aa3ff 22%);
  opacity: .22;
  transform: rotate(-8deg);
  filter: drop-shadow(0 14px 30px rgba(245, 197, 24, .20));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Cellipse cx='55' cy='42' rx='13' ry='50' transform='rotate(-63 55 42)'/%3E%3Cellipse cx='124' cy='36' rx='15' ry='45' transform='rotate(6 124 36)'/%3E%3Cellipse cx='64' cy='94' rx='13' ry='54' transform='rotate(-88 64 94)'/%3E%3Cellipse cx='120' cy='128' rx='15' ry='48' transform='rotate(37 120 128)'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Cellipse cx='55' cy='42' rx='13' ry='50' transform='rotate(-63 55 42)'/%3E%3Cellipse cx='124' cy='36' rx='15' ry='45' transform='rotate(6 124 36)'/%3E%3Cellipse cx='64' cy='94' rx='13' ry='54' transform='rotate(-88 64 94)'/%3E%3Cellipse cx='120' cy='128' rx='15' ry='48' transform='rotate(37 120 128)'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-server-layout="1"] #products-preview::after {
  background: color-mix(in srgb, #4aa3ff 84%, transparent);
  opacity: .16;
}
[data-theme="dark"] body[data-server-layout="1"] #services-preview::before,
[data-theme="dark"] body[data-server-layout="1"] #products-preview::before {
  opacity: .24;
}
@media (max-width: 767.98px) {
  body[data-server-layout="1"] .marsh-section::before {
    inline-size: 72px;
    block-size: 72px;
    opacity: .09;
  }
  body[data-server-layout="1"] .marsh-section::after {
    inline-size: 155px;
    block-size: 100px;
    opacity: .075;
  }
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  font-family: var(--system-font);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: color-mix(in srgb, var(--gold) 22%, var(--white));
  border: 1px solid color-mix(in srgb, var(--gold) 82%, var(--border));
  border-radius: 10px;
  padding: .42rem .8rem;
  margin-bottom: .7rem;
  line-height: 1.1;
  box-shadow: 0 10px 24px rgba(245, 197, 24, .12);
}
.text-center .section-label {
  margin-inline: auto;
}
[data-theme="dark"] .section-label,
.hero-network-surface .section-label,
#home-hero .section-label {
  color: var(--gold);
  background: rgba(13, 25, 41, .76);
  border-color: color-mix(in srgb, var(--gold) 72%, rgba(255,255,255,.18));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
html[lang="fa"] .section-label,
html[lang="ar"] .section-label {
  letter-spacing: 0;
  font-weight: 800;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: .75rem;
}
.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Cards ─────────────────────────────────── */
.marsh-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  margin-top: 10px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.marsh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26,42,74,.18), var(--hover-shadow);
  border-color: var(--hover-border);
}
.marsh-card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
[data-theme="dark"] .marsh-card-icon {
  background: linear-gradient(135deg, var(--gold) 0%, #d4a000 100%);
}
.marsh-card-icon svg { width: 24px; height: 24px; color: #fff; }
.marsh-card-icon i { font-size: 1.4rem; color: #fff; }
[data-theme="dark"] .marsh-card-icon svg { color: var(--navy-deep); }
[data-theme="dark"] .marsh-card-icon i { color: var(--navy-deep); }

.marsh-card h4 {
  font-family: 'Oswald', sans-serif;
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: .5rem;
}
.marsh-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ─── API Hero ───────────────────────────────── */
#api-hero {
  min-height: 560px;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
}
.api-float-code {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: rgba(130,170,255,.4);
  white-space: pre;
  animation: floatCode linear infinite;
  pointer-events: none;
}
@keyframes floatCode {
  0%   { transform: translateY(110%) rotate(-5deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110%) rotate(5deg); opacity: 0; }
}

.api-hero-card {
  background: rgba(7, 15, 35, .82);
  border: 1px solid rgba(222, 232, 255, .18);
  color: #f8fbff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
}
#api-hero {
  position: relative;
  isolation: isolate;
}
#api-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 9, 24, .48), rgba(3, 9, 24, .18) 48%, rgba(3, 9, 24, .5)),
    radial-gradient(circle at 74% 42%, rgba(245, 197, 24, .14), transparent 34%);
}
#api-hero .container {
  z-index: 1;
}
#api-hero .section-label {
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
}
#api-hero .display-font,
#api-hero .section-desc {
  color: #ffffff !important;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .78), 0 0 1px rgba(0, 0, 0, .9);
}
#api-hero .section-desc {
  max-width: 680px;
  color: rgba(255, 255, 255, .92) !important;
}
#api-hero .btn-marsh-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(7, 15, 35, .34);
  backdrop-filter: blur(6px);
}
#api-hero .btn-marsh-outline:hover,
#api-hero .btn-marsh-outline:focus {
  color: #07142d;
  border-color: var(--gold);
  background: var(--gold);
}
#api-hero .api-hero-card h3,
#api-hero .api-hero-card p {
  color: #f8fbff;
}
#api-hero .api-hero-card p {
  color: rgba(248, 251, 255, .84);
}
.api-page-section {
  padding: clamp(2.5rem, 4.5vw, 3.75rem) 0;
  overflow: visible;
}
.api-page-section + .api-page-section {
  padding-top: clamp(2rem, 3.5vw, 3rem);
}
.api-card {
  height: auto;
  min-height: 0;
  margin-top: 0;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
  border-radius: 8px;
}
.api-card:hover {
  transform: none;
}
.api-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.api-stack > .marsh-card {
  margin-top: 0;
}
.api-endpoint {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  background: rgba(22, 28, 78, .98);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-top: 1rem;
  color: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}
.api-endpoint span {
  font-weight: 700;
  color: var(--gold);
}
.api-endpoint code {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}
.feature-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem;
  min-height: 118px;
}
.feature-box h3 {
  font-size: 1rem;
  margin-bottom: .45rem;
}
.feature-box p {
  margin-bottom: 0;
}
.api-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}
.api-step-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: .72rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.api-step-list li::before {
  content: "";
  width: .52rem;
  height: .52rem;
  flex: 0 0 .52rem;
  margin-top: .62rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent);
}
.api-step-list li:last-child {
  margin-bottom: 0;
}
.api-code-snippet {
  background: #071224;
  border: 1px solid rgba(194,211,255,.22);
  border-radius: 8px;
  padding: .9rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .86rem;
  line-height: 1.55;
  direction: ltr;
  text-align: left;
  tab-size: 2;
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 42px rgba(0,0,0,.22);
}
.api-code-snippet code,
.api-code-snippet pre,
.api-code-snippet * {
  color: #e2e8f0;
}
.api-code-snippet .code-token,
.response-box .code-token {
  font: inherit;
}
.api-code-snippet .code-token.token-keyword {
  color: #c084fc;
}
.api-code-snippet .code-token.token-function {
  color: #67e8f9;
}
.api-code-snippet .code-token.token-property,
.response-box .code-token.token-property {
  color: #93c5fd;
}
.api-code-snippet .code-token.token-string,
.response-box .code-token.token-string {
  color: #86efac;
}
.api-code-snippet .code-token.token-number,
.response-box .code-token.token-number {
  color: #fbbf24;
}
.api-code-snippet .code-token.token-boolean,
.response-box .code-token.token-boolean {
  color: #fb7185;
}
.api-code-snippet .code-token.token-comment {
  color: #64748b;
  font-style: italic;
}
.api-code-snippet .code-token.token-punctuation,
.response-box .code-token.token-punctuation {
  color: #cbd5e1;
}
.api-code-snippet-compact {
  font-size: .75rem;
  line-height: 1.65;
  margin-bottom: 0;
}
.api-demo-textarea {
  min-height: 150px;
  resize: vertical;
}
.api-card .marsh-editor-wrapper {
  margin-top: .85rem;
  margin-bottom: 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}
.api-card .marsh-editor-body {
  min-height: 180px;
}
.response-box {
  background: #0f172a;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 8px;
  padding: .9rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .84rem;
  color: #e2e8f0;
}
.response-box pre {
  margin: 0;
  max-height: 300px;
  overflow: auto;
  color: #e2e8f0;
}
[data-theme="light"] .api-code-snippet,
[data-theme="light"] .response-box,
[data-theme="dark"] .api-code-snippet,
[data-theme="dark"] .response-box {
  background: #071224;
  color: #e2e8f0;
  border-color: rgba(194,211,255,.22);
}
.api-examples-section {
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
@media (max-width: 991px) {
  #api-hero {
    min-height: auto;
  }
  .api-page-section {
    padding: 2.25rem 0;
  }
}
@media (max-width: 575px) {
  .api-card {
    padding: 1rem !important;
  }
  .api-endpoint {
    display: flex;
    width: 100%;
    padding: .75rem;
  }
  .api-code-snippet,
  .response-box {
    font-size: .78rem;
  }
}

/* ─── Forms ──────────────────────────────────── */
.form-floating label { color: var(--text-muted); }
.form-floating > label,
.form-floating > label::after {
  background: transparent !important;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--text-muted);
}
.form-control, .form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.form-control.invalid-char,
.form-select.invalid-char,
textarea.invalid-char {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220,53,69,.22) !important;
  animation: invalidShake .28s linear;
}
@keyframes invalidShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}
.form-control:focus, .form-select:focus {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,24,.2);
}
.recaptcha-wrap {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 78px;
  overflow-x: auto;
  padding: .15rem 0;
}
[dir="rtl"] .recaptcha-wrap {
  justify-content: flex-end;
}
.recaptcha-wrap .g-recaptcha {
  transform-origin: top left;
}
[dir="rtl"] .recaptcha-wrap .g-recaptcha {
  transform-origin: top right;
}
@media (max-width: 380px) {
  .recaptcha-wrap .g-recaptcha {
    transform: scale(.88);
  }
}

/* ─── Toast ──────────────────────────────────── */
.toast-container {
  position: fixed !important;
  z-index: 1090 !important;
  right: auto !important;
  left: auto !important;
  inset-block-end: max(1rem, env(safe-area-inset-bottom)) !important;
  inset-inline-end: max(1rem, env(safe-area-inset-right)) !important;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: min(390px, calc(100vw - 2rem));
  padding: 0 !important;
}
.toast-marsh {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(17,30,54,.22);
}
.toast-marsh .toast-header {
  min-height: 42px;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--text));
  color: var(--text);
}
.toast-marsh .toast-body { padding: .8rem; color: var(--text); font-size: .88rem; line-height: 1.6; text-align: start; }
.toast-marsh .toast-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; margin-inline-end: .55rem; border-radius: 50%; font-size: .9rem; }
.toast-marsh .toast-title { font-size: .86rem; font-weight: 700; }
.toast-marsh .toast-close { margin-inline-start: auto; margin-inline-end: 0; }
.toast-marsh.toast-success { border-inline-start-color: var(--success); }
.toast-marsh.toast-success .toast-icon { background: rgba(40,167,69,.15); color: var(--success); }
.toast-marsh.toast-error { border-inline-start-color: var(--danger); }
.toast-marsh.toast-error .toast-icon { background: rgba(220,53,69,.14); color: var(--danger); }
.toast-marsh.toast-warning { border-inline-start-color: var(--warning); }
.toast-marsh.toast-warning .toast-icon { background: rgba(255,193,7,.16); color: #9a7100; }
.toast-marsh.toast-info { border-inline-start-color: #4a90e2; }
.toast-marsh.toast-info .toast-icon { background: rgba(74,144,226,.14); color: #2f70bd; }
[data-theme="dark"] .toast-marsh .toast-header { background: color-mix(in srgb, var(--bg-card) 86%, var(--code-bg)); }
[data-theme="dark"] .toast-marsh.toast-warning .toast-icon { color: var(--gold); }
html[dir="rtl"] .toast-container { inset-inline-end: max(1rem, env(safe-area-inset-left)) !important; }

/* ─── Footer ─────────────────────────────────── */
#main-footer {
  background: var(--footer-bg);
  color: #c5cfe8;
  padding: 3.5rem 0 1rem;
}
#main-footer .footer-logo img { height: 50px; filter: brightness(10); }
#main-footer p { font-size: .88rem; color: #8fa3c8; line-height: 1.7; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #2e4070;
  color: #8fa3c8;
  transition: all .2s;
  margin-right: 6px;
}
[dir="rtl"] .social-icons a { margin-right: 0; margin-left: 6px; }
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.social-icons a:hover { box-shadow: var(--hover-shadow); }
.footer-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #8fa3c8;
  font-size: .88rem;
  padding: .2rem 0;
  transition: color .2s;
}
.footer-link i {
  color: var(--gold);
  flex: 0 0 auto;
  margin: 0 !important;
  text-align: center;
  width: 1.1em;
}
.footer-link:hover {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245,197,24,.24);
}
.footer-bottom {
  border-top: 1px solid #2e4070;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .82rem;
  color: #4e6690;
}
.footer-bottom-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.footer-copy {
  color: #4e6690;
  text-align: start;
}
.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.footer-legal-links-end { grid-column: 2; justify-content: flex-end; }
.footer-legal-links a {
  color: #8fa3c8;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.footer-legal-links a::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  color: var(--gold);
  font-size: .9rem;
}
.footer-legal-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245,197,24,.24);
}
.admin-login-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 34px;
  padding: .35rem .65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: .8rem;
  white-space: nowrap;
}
.admin-login-link:hover { border-color: var(--gold); color: var(--gold); }
.login-switcher .admin-login-link { background: var(--bg-card); cursor: pointer; }
.login-switcher-menu { position: absolute; margin-top: 12px !important; min-width: 210px; padding: .45rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 14px 34px rgba(26,42,74,.2); }
.login-switcher-menu::before { right: 18px; }
.login-switcher .dropdown-toggle::after {
  margin-inline-start: .35rem;
  margin-inline-end: 0;
}
.login-switcher .admin-login-link i,
.login-menu-icon {
  flex: 0 0 auto;
  margin: 0 !important;
}
.login-switcher-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  border-radius: 5px;
  color: var(--text);
  padding: .55rem .65rem;
  font-size: .86rem;
}
.login-switcher-menu .dropdown-item:hover,
.login-switcher-menu .dropdown-item:focus { background: rgba(245,197,24,.1); color: var(--text); }
[dir="rtl"] .mega-menu::before { left: calc(50% - 6px); right: auto; }
[dir="rtl"] .login-switcher .dropdown-toggle::after {
  margin-inline-start: 0;
  margin-inline-end: .35rem;
}
[dir="rtl"] .login-switcher-menu .dropdown-item {
  direction: rtl;
  text-align: right;
}
[dir="ltr"] .login-switcher-menu .dropdown-item {
  direction: ltr;
  text-align: left;
}

/* Form direction is visual only; field names and values remain unchanged. */
:is(html[lang="fa"], html[lang="ar"]) input:not([type="checkbox"]):not([type="radio"]),
:is(html[lang="fa"], html[lang="ar"]) textarea,
:is(html[lang="fa"], html[lang="ar"]) select { direction: rtl; text-align: right; }
:is(html[lang="en"], html[lang="fr"], html[lang="zh"], html[lang="es"], html[lang="pt"], html[lang="ja"]) input:not([type="checkbox"]):not([type="radio"]),
:is(html[lang="en"], html[lang="fr"], html[lang="zh"], html[lang="es"], html[lang="pt"], html[lang="ja"]) textarea,
:is(html[lang="en"], html[lang="fr"], html[lang="zh"], html[lang="es"], html[lang="pt"], html[lang="ja"]) select { direction: ltr; text-align: left; }
:is(html[lang="fa"], html[lang="ar"]) input::placeholder,
:is(html[lang="fa"], html[lang="ar"]) textarea::placeholder { direction: rtl; text-align: right; }
:is(html[lang="en"], html[lang="fr"], html[lang="zh"], html[lang="es"], html[lang="pt"], html[lang="ja"]) input::placeholder,
:is(html[lang="en"], html[lang="fr"], html[lang="zh"], html[lang="es"], html[lang="pt"], html[lang="ja"]) textarea::placeholder { direction: ltr; text-align: left; }
[dir="rtl"] .form-floating > label { right: 0; left: auto; text-align: right; transform-origin: 100% 0; }
[dir="ltr"] .form-floating > label { left: 0; right: auto; text-align: left; transform-origin: 0 0; }
[dir="rtl"] .form-floating > .form-control:focus ~ label,
[dir="rtl"] .form-floating > .form-control:not(:placeholder-shown) ~ label,
[dir="rtl"] .form-floating > .form-select ~ label { transform: scale(.85) translateY(-.5rem) translateX(-.15rem); }
.auth-social-btn,
.auth-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.auth-remember {
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  margin: .15rem 0 .35rem;
  direction: ltr;
  text-align: start;
}
[dir="rtl"] .auth-remember {
  direction: rtl;
  text-align: right;
}
.auth-remember .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 0;
}
.auth-remember .form-check-label {
  margin: 0;
  line-height: 1.4;
  color: var(--text);
}
.auth-action-icon {
  flex: 0 0 auto;
  margin: 0 !important;
}
[data-auth-code-field] { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.auth-page-layer { position: relative; z-index: 1; }
.hero-side,
.hero-top { display: none !important; }
.hero-main { margin-left: 0 !important; padding-top: 0 !important; min-height: 0 !important; }
.footer-bottom-divider {
  display: none;
}
.legal-doc-card {
  white-space: pre-wrap;
  line-height: 1.9;
  color: var(--text-muted);
}
.legal-page-hero {
  background: var(--code-bg);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.legal-page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% -10%;
  height: 220px;
  background: radial-gradient(circle, rgba(245,197,24,.16), transparent 64%);
}
.legal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}
.legal-hero-copy h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1;
  margin: .45rem 0 .8rem;
}
.legal-hero-copy p {
  color: #c5cfe8;
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: .8rem;
}
.legal-hero-copy small {
  color: #8fa3c8;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.legal-hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 20px;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.45);
  color: var(--gold);
  display: grid;
  place-items: center;
  box-shadow: var(--hover-shadow);
}
.legal-hero-icon i {
  font-size: 4rem;
}
.legal-document-section {
  overflow: visible;
}
.legal-toc {
  position: sticky;
  top: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
.legal-toc strong {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .8rem;
}
.legal-toc strong i {
  color: var(--gold);
}
.legal-toc nav {
  display: grid;
  gap: .35rem;
}
.legal-toc a {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.4;
  padding: .42rem .45rem;
  border-radius: 6px;
}
.legal-toc a:hover {
  color: var(--text);
  background: rgba(245,197,24,.08);
  box-shadow: var(--hover-shadow);
}
.legal-toc a.active {
  color: var(--text);
  background: rgba(245,197,24,.08);
  box-shadow: inset 3px 0 0 var(--gold), var(--hover-shadow);
}
[dir="rtl"] .legal-toc a.active {
  box-shadow: inset -3px 0 0 var(--gold), var(--hover-shadow);
}
.legal-toc a span {
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: .76rem;
}
.legal-document {
  display: grid;
  gap: 1rem;
}
.legal-document-notice,
.legal-sources-card,
.legal-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.legal-document-notice {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  color: var(--text-muted);
}
.legal-document-notice i {
  color: var(--gold);
  font-size: 1.25rem;
}
.legal-document-notice p {
  margin: 0;
  line-height: 1.7;
}
.legal-section-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1.1rem;
}
.legal-section-number {
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--code-bg);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.legal-section-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .55rem;
}
.legal-section-heading i {
  color: var(--gold);
  font-size: 1.3rem;
}
.legal-section-heading h2 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--text);
}
.legal-section-copy p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: .75rem;
}
.legal-section-sources {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
}
.legal-section-sources a,
.legal-source-grid a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #8fa3c8;
  font-size: .78rem;
}
.legal-section-sources a:hover,
.legal-source-grid a:hover {
  color: var(--gold);
}
.legal-sources-card {
  padding: 1.1rem;
}
.legal-sources-card h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  margin-bottom: .8rem;
}
.legal-sources-card h3 i {
  color: var(--gold);
}
.legal-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1rem;
}

/* ─── Product badges ─────────────────────────── */
.product-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: .5rem;
}
.product-detail-card {
  text-align: start;
  padding: 1.6rem 1.8rem;
}
.product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  margin-bottom: 1rem;
}
[dir="rtl"] .product-card-head { flex-direction: row-reverse; }
.product-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .product-card-icon {
  background: var(--gold);
  color: var(--navy-deep);
}
.product-card-icon i { font-size: 1.35rem; }
.product-detail-card h4 {
  margin-bottom: .65rem;
  min-height: 2.7rem;
}
.product-detail-card p {
  min-height: 5.3rem;
}
.product-detail-card .product-feature-list {
  width: 100%;
  margin: .7rem 0 0;
  padding-inline-start: 1.25rem;
}
.product-detail-card .product-feature-list li {
  margin-inline-start: 0;
}
.product-feature-list {
  color: var(--text-muted);
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: .7rem auto 0;
  padding: 0;
  text-align: start;
  line-height: 1.9;
  font-size: .9rem;
}
.product-feature-list li {
  margin-inline-start: 1.1rem;
}
.product-detail-card .btn-marsh-outline {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 1rem 0 0 !important;
  margin-inline-end: auto !important;
}
.products-built-grid {
  align-items: stretch;
}
.product-built-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  min-height: 320px;
}
.product-built-card .product-badge {
  align-self: flex-start;
  margin-bottom: .5rem;
}
.product-built-card .marsh-card-icon {
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.product-built-card h4 {
  margin-bottom: .55rem;
}
.product-built-card p {
  margin-bottom: .75rem;
}
.product-built-card .product-feature-list {
  width: 100%;
  margin: .75rem 0 1.4rem;
  padding-inline-start: 1.25rem;
}
.product-built-card .product-feature-list li {
  margin-inline-start: 0;
}
.product-built-card .btn-marsh-outline {
  margin-top: auto !important;
}
.product-request-card {
  padding: 2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  text-align: start;
}
.product-request-card .marsh-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  margin-bottom: 1.2rem;
}
.product-request-card .product-badge {
  align-self: flex-start;
  margin-bottom: 1rem;
}
.product-request-card h4 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: .6rem;
}
.product-request-card p {
  font-size: .95rem;
  line-height: 1.65;
}
.product-request-card .product-feature-list {
  display: block;
  margin: 1rem 0 1.4rem;
  padding-inline-start: 1.25rem;
  line-height: 1.9;
}
.product-request-card .product-feature-list li {
  margin-inline-start: 0;
}
.product-request-card .btn-marsh {
  align-self: flex-start;
  margin-top: auto !important;
}
.product-request-custom {
  border: 2px dashed var(--gold);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
}
.product-request-custom > i {
  font-size: 3rem;
}
.product-request-custom p {
  max-width: 500px;
}

/* ─── Project request wizard ───────────────────────────────────── */
.project-request-section { padding: 3rem 0 2.5rem; }
.project-request-section .col-xl-10 { display: flex; flex-direction: column; }
.project-request-heading { max-width: 720px; margin-inline: auto; }
.project-request-heading > p { color: var(--text-muted); }
.project-wizard-card { padding: clamp(1.1rem, 3vw, 2rem); padding-bottom: clamp(1rem, 2vw, 1.35rem); }
.project-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  padding: 0;
  margin: 0 0 2.25rem;
  list-style: none;
  margin-bottom: 10px;
}
.project-stepper::before {
  content: '';
  position: absolute;
  top: 23px;
  inset-inline: calc(100% / 6);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.project-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  min-width: 0;
  color: var(--text-muted);
  text-align: center;
}
.project-step-marker {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  z-index: 2;
  box-shadow: 0 0 0 8px var(--bg-card);
}
.project-step strong,
.project-step small { display: block; }
.project-step strong { font-size: .9rem; color: var(--text); }
.project-step small { margin-top: .15rem; font-size: .72rem; line-height: 1.35; }
.project-step > div { min-width: 0; max-width: 180px; }
.project-step-check { display: none; }
.project-step.is-active .project-step-marker,
.project-step.is-complete .project-step-marker { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
.project-step.is-active strong,
.project-step.is-complete strong { color: var(--text); }
.project-step.is-complete .project-step-marker > :first-child { display: none; }
.project-step.is-complete .project-step-check { display: inline; font-size: 1.25rem; }
.project-pane-title { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.4rem; }
.project-pane-title > i { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--code-bg); color: var(--gold); font-size: 1.15rem; }
.project-pane-title h2 { margin: 0; font-size: 1.35rem; }
.project-pane-title p { margin: .25rem 0 0; color: var(--text-muted); font-size: .9rem; }
.project-service-label { display: flex; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: .7rem; font-weight: 700; }
.project-required { color: var(--danger); font-size: .75rem; font-weight: 500; }
.project-service-option,
.project-budget-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-height: 56px;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.project-service-option > i:first-child { color: var(--gold); font-size: 1.05rem; }
.project-service-option > i:last-child { margin-inline-start: auto; opacity: 0; }
.btn-check:checked + .project-service-option,
.btn-check:checked + .project-budget-option { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--bg-card)); color: var(--text); }
.btn-check:checked + .project-service-option > i:last-child { opacity: 1; color: var(--gold); }
.project-service-option:hover,
.project-budget-option:hover { border-color: var(--hover-border); transform: translateY(-1px); }
.project-budget-option { justify-content: center; font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 700; }
.project-upload { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; border: 1px dashed var(--border); border-radius: 8px; padding: 1rem; background: var(--code-bg); color: var(--text); cursor: pointer; text-align: center; }
.project-upload:hover { border-color: var(--gold); }
.project-upload > i { color: var(--gold); font-size: 2rem; }
.project-upload span { color: var(--text-muted); font-size: .8rem; }
.project-upload input { max-width: 100%; margin-top: .4rem; font-size: .78rem; }
.project-file-name { color: var(--gold); min-height: 1.2em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-payment-note { display: flex; gap: .75rem; padding: 1rem; border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--border)); border-radius: 8px; background: color-mix(in srgb, var(--gold) 10%, var(--bg-card)); }
.project-payment-note > i { color: var(--gold); font-size: 1.2rem; }
.project-payment-note strong,
.project-payment-note span { display: block; }
.project-payment-note span { margin-top: .2rem; color: var(--text-muted); font-size: .88rem; }
.project-legal-box { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--code-bg); }
.project-legal-box .form-check { padding-inline-start: 1.65rem; }
.project-legal-box .form-check-input { margin-inline-start: -1.65rem; }
.project-wizard-actions { display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.project-wizard-actions [data-wizard-next],
.project-wizard-actions [data-wizard-submit] { margin-inline-start: auto; }
.project-wizard-pane { min-width: 0; border: 0; padding: 0; margin: 0; }
.project-wizard-pane .form-control,
.project-wizard-pane .form-select { background-color: var(--bg-card); color: var(--text); }
.project-wizard-pane .form-floating > label { color: var(--text-muted); }
.project-wizard-pane .form-floating .form-control.is-invalid {
  padding-inline-end: 2.8rem;
}
[dir="rtl"] .project-wizard-pane .form-floating .form-control.is-invalid {
  padding-inline-start: 2.8rem;
  padding-inline-end: 0.75rem;
}
.project-wizard-pane .form-check-label { color: var(--text); font-size: .88rem; line-height: 1.55; }
.is-shaking { animation: project-shake .38s ease-in-out; }
@keyframes project-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@media (max-width: 767px) {
  .toast-container { inset-inline: 1rem !important; width: auto; }
  .project-request-section { padding: 2rem 0 2rem; }
  .project-wizard-card { padding: 1rem; }
  .project-stepper { grid-template-columns: 1fr; gap: .7rem; margin-bottom: 1.5rem; }
  .project-stepper::before { top: 23px; bottom: 23px; inset-inline-start: 22px; inset-inline-end: auto; width: 2px; height: auto; }
  .project-step { flex-direction: row; justify-content: flex-start; gap: .65rem; text-align: start; }
  .project-step > div { max-width: none; }
  .project-step-marker { box-shadow: 0 0 0 6px var(--bg-card); }
  .project-step small { font-size: .7rem; }
  .project-pane-title { gap: .65rem; margin-bottom: 1rem; }
  .project-pane-title > i { width: 38px; height: 38px; flex-basis: 38px; }
  .project-pane-title h2 { font-size: 1.15rem; }
  .project-service-label { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .project-wizard-actions { flex-direction: column-reverse; }
  .project-wizard-actions [data-wizard-next],
  .project-wizard-actions [data-wizard-submit],
  .project-wizard-actions [data-wizard-back] { width: 100%; margin-inline: 0; }
  .project-payment-note { align-items: flex-start; }
}

/* ─── Dashboard ──────────────────────────────── */
.dash-sidebar {
  width: 240px;
  background: var(--navy-deep);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: width .3s;
  overflow-x: hidden;
}
[dir="rtl"] .dash-sidebar { left: auto; right: 0; }
.dash-main { margin-left: 240px; transition: margin .3s; }
[dir="rtl"] .dash-main { margin-left: 0; margin-right: 240px; }

.dash-sidebar.collapsed { width: 64px; }
.dash-sidebar.collapsed + .dash-main { margin-left: 64px; }
[dir="rtl"] .dash-sidebar.collapsed + .dash-main { margin-right: 64px; }

.dash-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: .7rem 1rem;
  color: #8fa3c8;
  font-size: .9rem;
  transition: all .2s;
  white-space: nowrap;
}
.dash-nav-link:hover, .dash-nav-link.active {
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 6px;
}
.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dash-stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-stat-icon svg { width: 22px; height: 22px; color: var(--navy-deep); }
.dash-stat-val { font-family: 'Oswald', sans-serif; font-size: 1.6rem; color: var(--text); }
.dash-stat-lbl { font-size: .8rem; color: var(--text-muted); }
.logo-upload-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  height: 100%;
}
.logo-preview-frame {
  min-height: 110px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  margin-bottom: .8rem;
}
.logo-preview-frame img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}
.legal-textarea {
  min-height: 260px;
  line-height: 1.65;
}
.legal-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.legal-editor-head strong {
  display: block;
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  letter-spacing: .02em;
}
.legal-editor-head span,
.legal-editor-source-help {
  color: var(--text-muted);
  font-size: .86rem;
}
.legal-icon-field {
  min-width: 220px;
}
.legal-editor-lang,
.legal-editor-clause {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  padding: .85rem;
}
.legal-editor-lang-title {
  color: var(--text);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .65rem;
}
.legal-editor-lang textarea:not(.legal-textarea) {
  min-height: 95px;
}
.legal-editor-source-help {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .25rem 0 .85rem;
}
.legal-editor-clause {
  margin-top: .85rem;
}
.legal-editor-clause summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 800;
}
.legal-editor-clause summary span {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
}
.legal-editor-clause summary i {
  color: var(--gold);
}
.legal-editor-clause-meta {
  margin-top: .85rem;
  margin-bottom: .85rem;
}
.legal-editor-clause .legal-textarea {
  min-height: 150px;
}

.customer-account-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.customer-account-photo.is-large {
  width: 64px;
  height: 64px;
}
.customer-account-actions {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.customer-product-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
  max-width: 260px;
}
.icon-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color .2s, color .2s, background .2s;
}
.icon-action:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,197,24,.08);
}
.icon-action.is-danger {
  color: #ef6b73;
}
.icon-action.is-success {
  color: #5dd39e;
}
.customer-account-modal {
  background: var(--bg-card);
  color: var(--text);
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
}
.customer-account-modal .modal-header,
.customer-account-modal .modal-footer {
  border-color: var(--border);
  background: transparent;
  flex: 0 0 auto;
}
.customer-account-modal .modal-body {
  color: var(--text);
  overflow-y: auto;
}
.customer-account-modal .modal-title,
.customer-account-modal .form-label,
.customer-account-modal .form-check-label,
.customer-account-modal small,
.customer-account-modal .form-text {
  color: var(--text);
}
.customer-account-modal .form-control,
.customer-account-modal .form-select,
.customer-account-modal textarea {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.customer-account-modal .form-control:focus,
.customer-account-modal .form-select:focus,
.customer-account-modal textarea:focus {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(245,197,24,.12);
}
.customer-account-modal .btn-close {
  filter: var(--modal-close-filter, none);
}
[data-theme="dark"] .customer-account-modal .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}
.dashboard-embedded-body {
  background: var(--bg);
  color: var(--text);
  min-height: auto;
}
.customer-account-embedded {
  background: transparent;
}
.license-admin-page {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: clamp(.8rem, 1.4vw, 1.15rem);
}
.license-admin-page .dash-toolbar {
  align-items: flex-end;
  gap: .85rem;
  margin-bottom: .85rem;
}
.license-admin-page .dash-toolbar > div {
  min-width: 0;
}
.license-admin-page .section-label {
  margin-bottom: .2rem !important;
}
.license-admin-page .section-title {
  line-height: 1.05;
}
.license-admin-page .dash-toolbar p:last-child {
  max-width: 620px;
}
.license-admin-page .btn-marsh {
  flex: 0 0 auto;
  min-height: 38px;
  padding-block: .48rem;
}
.license-table-card {
  padding: .95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(17,30,54,.08);
}
[data-theme="dark"] .license-table-card {
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.license-table {
  min-width: 860px;
}
.license-table thead th {
  padding: .72rem .85rem;
  white-space: nowrap;
  font-size: .78rem;
  letter-spacing: 0;
  vertical-align: middle;
  border-color: var(--border);
}
.license-table tbody td {
  padding: .78rem .85rem;
  vertical-align: middle;
  border-color: var(--border);
  color: var(--text);
}
.license-table tbody tr:last-child td {
  border-bottom-width: 0;
}
.license-table small {
  line-height: 1.45;
}
.license-table code {
  direction: ltr;
  display: inline-block;
  max-width: 180px;
  overflow-wrap: anywhere;
  text-align: left;
  color: #c92872;
}
[data-theme="dark"] .license-table code {
  color: #ff7ab6;
}
[dir="rtl"] .license-table code {
  direction: ltr;
  text-align: left;
}
@media (max-width: 767px) {
  .license-admin-page {
    padding: .75rem;
  }
  .license-admin-page .dash-toolbar {
    align-items: stretch;
  }
  .license-admin-page .dash-toolbar .btn-marsh {
    width: 100%;
    justify-content: center;
  }
  .license-table-card {
    padding: .7rem;
  }
}
.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: 0;
}
.customer-detail-grid > div,
.customer-feature-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: .85rem;
}
.customer-detail-grid dt {
  color: var(--text-muted);
  font-size: .76rem;
  margin-bottom: .25rem;
}
.customer-detail-grid dd {
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}
.customer-feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  height: 100%;
}
.customer-feature-card span {
  display: block;
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: .15rem;
}
.customer-license-card {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
}
.customer-license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.customer-license-label {
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: .75rem;
  margin-bottom: .3rem;
}
.customer-license-input {
  background-color: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  letter-spacing: .04em;
}
.customer-license-input:focus {
  background-color: var(--bg-card);
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 0 0 .2rem rgba(245,197,24,.12);
}
.customer-license-help {
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.45;
  margin-top: .35rem;
}
.customer-license-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .75rem;
  padding-inline-start: 0;
}
.customer-license-check .form-check-input {
  margin: 0;
}
.license-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
  align-items: stretch;
}
.license-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: .85rem .95rem;
}
.license-detail-grid span {
  display: block;
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.35;
}
.license-detail-grid strong,
.license-detail-grid code {
  display: block;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.license-detail-grid code {
  direction: ltr;
  text-align: left;
  color: #d63384;
}
[data-theme="dark"] .license-detail-grid code {
  color: #ff7ab6;
}
[dir="rtl"] .customer-account-table,
[dir="rtl"] .customer-detail-grid,
[dir="rtl"] .customer-feature-card,
[dir="rtl"] .license-detail-grid {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .license-detail-grid code {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .form-control.is-invalid,
[dir="rtl"] .was-validated .form-control:invalid {
  background-position: left calc(.375em + .1875rem) center;
  padding-left: calc(1.5em + .75rem);
  padding-right: .75rem;
}
[dir="rtl"] textarea.form-control.is-invalid,
[dir="rtl"] .was-validated textarea.form-control:invalid {
  background-position: left calc(.375em + .1875rem) top .75rem;
}
[dir="rtl"] .form-select.is-invalid,
[dir="rtl"] .was-validated .form-select:invalid {
  background-position: left .75rem center, center left 2.25rem;
  padding-left: 4.125rem;
  padding-right: .75rem;
}
[dir="ltr"] .form-control.is-invalid,
[dir="ltr"] .was-validated .form-control:invalid {
  background-position: right calc(.375em + .1875rem) center;
}
.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card);
  color: var(--text);
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.icon-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 10px 22px rgba(245, 197, 24, .18);
}
[data-theme="dark"] .icon-btn {
  background: rgba(255,255,255,.04);
  color: #fff;
}
[data-theme="dark"] .icon-btn:hover,
[data-theme="dark"] .icon-btn:focus-visible {
  color: var(--navy-deep);
}
.modal-header {
  display: flex;
  flex-direction: row;
}
.modal-header > :not(.btn-close) {
  flex: 1 1 auto;
  min-width: 0;
}
[dir="ltr"] .modal-header .btn-close {
  margin-inline-start: auto;
}
[dir="rtl"] .modal-header {
  flex-direction: row;
  text-align: right;
}
[dir="rtl"] .modal-header .btn-close {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* Customer portal is an authenticated application shell, not a public page. */
.customer-portal-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
.customer-portal-app {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}
.customer-portal-sidebar {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.15rem .85rem;
  background: var(--navy-deep);
  border-right: 1px solid var(--border);
}
.customer-portal-profile {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .75rem .55rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(143,163,200,.22);
  background: transparent;
  color: inherit;
  text-align: start;
}
.customer-portal-profile img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg-card);
}
.customer-avatar-initial,
.customer-photo-preview .customer-avatar-initial {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(245,197,24,.12);
  color: var(--gold);
  font-weight: 800;
}
.customer-portal-profile strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.customer-portal-profile strong { color: #fff; font-size: .9rem; line-height: 1.45; }
.customer-portal-profile > div { min-width: 0; flex: 1 1 auto; }
.customer-portal-menu-toggle { cursor: pointer; }
.customer-portal-menu-chevron { margin-inline-start: auto; font-size: .72rem; transition: transform .18s ease; }
.customer-portal-menu-toggle[aria-expanded="true"] .customer-portal-menu-chevron,
.customer-portal-nav-toggle[aria-expanded="true"] .customer-portal-menu-chevron { transform: rotate(180deg); }
.customer-portal-nav {
  display: grid;
  gap: .35rem;
}
.customer-portal-nav-group { min-width: 0; }
.customer-portal-nav a,
.customer-portal-nav-toggle {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 42px;
  width: 100%;
  padding: .65rem .75rem;
  color: #b4c3dd;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  text-align: start;
  transition: background .18s, border-color .18s, color .18s;
}
.customer-portal-nav-toggle { cursor: pointer; }
.customer-portal-nav a > i:first-child,
.customer-portal-nav-toggle > i:first-child {
  width: 18px;
  text-align: center;
}
.customer-portal-nav a:hover,
.customer-portal-nav a.active {
  color: var(--navy-deep);
  border-color: var(--gold);
  background: var(--gold);
}
.customer-portal-nav-toggle:hover,
.customer-portal-nav-toggle[aria-expanded="true"] { color: #fff; background: rgba(143,163,200,.12); }
.customer-portal-subnav {
  display: none;
  gap: .28rem;
  margin: .2rem 0 .35rem;
  padding-inline-start: .7rem;
}
.customer-portal-subnav.is-open { display: grid; }
.customer-portal-subnav a { min-height: 36px; padding: .48rem .65rem; font-size: .83rem; }
.customer-profile-menu .customer-portal-subnav { padding: .25rem .4rem 0; }
.customer-portal-subnav a.active { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.customer-portal-logout {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(143,163,200,.22);
}
.customer-portal-logout .btn-marsh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.customer-portal-panel {
  min-width: 0;
  min-height: 100vh;
}
.customer-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding: .8rem 1.35rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.customer-portal-tools {
  display: flex;
  align-items: center;
  gap: .55rem;
}

/* ─── Public Chatbot ────────────────────────── */
.marsh-chatbot {
  position: fixed;
  z-index: 1085;
  inset-inline-end: 1.15rem;
  bottom: 1.15rem;
}
.marsh-chatbot-toggle {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 18px 38px rgba(5, 16, 39, .22);
  font-size: 1.35rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.marsh-chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(5, 16, 39, .28);
}
.marsh-chatbot-panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + .85rem);
  width: min(370px, calc(100vw - 2rem));
  height: min(540px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-card) 96%, transparent);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(5, 16, 39, .24);
  backdrop-filter: blur(14px);
}
.marsh-chatbot-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--navy) 92%, var(--bg-card));
  color: #fff;
}
.marsh-chatbot-head .section-label {
  color: var(--gold);
  margin-bottom: .35rem;
}
.marsh-chatbot-head strong {
  display: block;
  font-size: .9rem;
  line-height: 1.6;
}
.marsh-chatbot-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.marsh-chatbot-tags {
  order: 1;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  max-height: 92px;
  overflow-y: auto;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  scrollbar-color: var(--gold) transparent;
}
.marsh-chatbot-profile {
  order: 2;
  flex: 0 0 auto;
  display: grid;
  gap: .6rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 94%, var(--gold) 6%);
}
.marsh-chatbot-profile[hidden] {
  display: none !important;
}
.marsh-chatbot-profile-head {
  display: grid;
  gap: .2rem;
}
.marsh-chatbot-profile-head strong {
  color: var(--text);
  font-size: .95rem;
}
.marsh-chatbot-profile-head small {
  color: var(--text-muted);
  line-height: 1.5;
}
.marsh-chatbot-profile input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .75rem;
  background: var(--bg-card);
  color: var(--text);
}
.marsh-chatbot-profile .btn-marsh {
  min-height: 40px;
  border-radius: 8px;
}
.marsh-chatbot-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .65rem;
  background: var(--bg-card);
  color: var(--text);
  font-size: .78rem;
}
.marsh-chatbot-chip:hover,
.marsh-chatbot-chip.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-deep);
}
.marsh-chatbot-messages {
  order: 3;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-height: none;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-color: var(--gold) transparent;
}
.marsh-chat-message {
  max-width: 86%;
  padding: .65rem .75rem;
  border-radius: 10px;
  line-height: 1.6;
  font-size: .88rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--text);
  white-space: pre-line;
}
.marsh-chat-message.user {
  align-self: flex-end;
  background: var(--gold);
  color: var(--navy-deep);
}
[dir="rtl"] .marsh-chat-message.user {
  align-self: flex-start;
}
.marsh-chatbot-links {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: 86%;
}
[dir="rtl"] .marsh-chatbot-links {
  align-self: flex-start;
}
.marsh-chatbot-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: .3rem .62rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #050505;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.marsh-chatbot-link i {
  font-size: .9em;
}
.marsh-chatbot-thinking {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
}
.marsh-chatbot-dots {
  display: inline-flex;
  gap: .18rem;
  align-items: center;
}
.marsh-chatbot-dots i {
  width: .32rem;
  height: .32rem;
  border-radius: 999px;
  background: var(--gold);
  animation: marshTypingDot 1s ease-in-out infinite;
}
.marsh-chatbot-dots i:nth-child(2) { animation-delay: .16s; }
.marsh-chatbot-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes marshTypingDot {
  0%, 70%, 100% { opacity: .35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-.18rem); }
}
.marsh-chatbot-form {
  order: 4;
  flex: 0 0 auto;
  display: flex;
  gap: .5rem;
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--border);
}
.marsh-chatbot-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 .8rem;
  background: var(--bg);
  color: var(--text);
}
.marsh-chatbot-form button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy-deep);
}
[dir="rtl"] .marsh-chatbot-panel,
[dir="rtl"] .marsh-chatbot-form input,
[dir="rtl"] .marsh-chatbot-profile,
[dir="rtl"] .marsh-chatbot-profile input {
  direction: rtl;
  text-align: right;
}
[data-theme="dark"] .marsh-chatbot-panel {
  background: rgba(26, 42, 74, .96);
}
[data-theme="dark"] .marsh-chatbot-profile {
  background: color-mix(in srgb, var(--navy-mid) 86%, var(--gold) 6%);
}

.marsh-faq-section .accordion {
  display: grid;
  gap: .85rem;
  max-width: 980px;
  margin-inline: auto;
}
.marsh-faq-section .accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 36, 72, .06);
}
.marsh-faq-section .accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 74px;
  padding: 1rem 1.15rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  box-shadow: none;
  text-align: start;
}
.marsh-faq-section .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 24%, var(--surface)), var(--surface));
  color: var(--text);
}
.marsh-faq-section .accordion-button::after {
  display: none;
}
.marsh-faq-section .faq-question-text {
  flex: 1 1 auto;
  min-width: 0;
}
.marsh-faq-section .faq-toggle-symbol {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  color: var(--navy-deep);
  font-weight: 900;
  line-height: 1;
}
.marsh-faq-section .faq-toggle-symbol::before {
  content: "+";
  font-size: 1.35rem;
}
.marsh-faq-section .accordion-button:not(.collapsed) .faq-toggle-symbol {
  background: var(--gold);
  color: var(--navy-deep);
}
.marsh-faq-section .accordion-button:not(.collapsed) .faq-toggle-symbol::before {
  content: "-";
}
.marsh-faq-section .accordion-body {
  padding: 1.1rem 1.35rem 1.35rem;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.85;
  text-align: start;
}
.marsh-faq-section .marsh-faq-more {
  margin-top: 1rem;
}
.marsh-faq-section .marsh-faq-more.show {
  display: grid;
  gap: .85rem;
}
.marsh-faq-section .marsh-faq-more.collapsing {
  display: grid;
  gap: .85rem;
}
.marsh-faq-section [data-bs-toggle="collapse"] .when-open {
  display: none;
}
.marsh-faq-section [data-bs-toggle="collapse"][aria-expanded="true"] .when-collapsed {
  display: none;
}
.marsh-faq-section [data-bs-toggle="collapse"][aria-expanded="true"] .when-open {
  display: inline;
}
[data-theme="dark"] .marsh-faq-section .accordion-item,
[data-theme="dark"] .marsh-faq-section .accordion-button {
  background: rgba(26, 42, 74, .92);
}
[data-theme="dark"] .marsh-faq-section .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(245, 197, 24, .18), rgba(26, 42, 74, .94));
}
[data-theme="dark"] .marsh-faq-section .accordion-body {
  background: rgba(26, 42, 74, .92);
}
[data-theme="dark"] .marsh-faq-section .faq-toggle-symbol,
[data-theme="dark"] .marsh-faq-section .accordion-button:not(.collapsed) .faq-toggle-symbol {
  color: #fff;
}
[dir="rtl"] .marsh-faq-section .accordion-button {
  direction: ltr;
  text-align: right;
}
[dir="rtl"] .marsh-faq-section .faq-question-text {
  order: 2;
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .marsh-faq-section .faq-toggle-symbol {
  order: 1;
}
[dir="rtl"] .marsh-faq-section .accordion-body {
  direction: rtl;
  text-align: right;
}
@media (max-width: 575px) {
  .marsh-faq-section .accordion-button {
    min-height: 64px;
    padding: .85rem .95rem;
  }
  .marsh-faq-section .faq-toggle-symbol {
    width: 40px;
    height: 40px;
  }
  .marsh-faq-section .accordion-body {
    padding: 1rem;
  }
}

.dashboard-chat-card .marsh-lang-tabs {
  margin-bottom: 1rem;
}
.chatbot-settings-panel {
  display: grid;
  gap: 1rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}
.chatbot-copy-tabs {
  padding: 1rem;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.chatbot-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.chatbot-view-card {
  min-width: 0;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.chatbot-view-card span {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  margin-bottom: .35rem;
}
.chatbot-view-card strong,
.chatbot-view-card p {
  color: var(--text);
  overflow-wrap: anywhere;
}
.dash-search-box {
  position: relative;
  min-width: min(320px, 100%);
}
.dash-search-box i {
  position: absolute;
  inset-inline-start: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.dash-search-box .form-control {
  min-height: 42px;
  padding-inline-start: 2.35rem;
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
[dir="rtl"] .dash-search-box .form-control {
  padding-inline-start: 2.35rem;
  padding-inline-end: .85rem;
}
.chat-log-thread {
  display: grid;
  gap: .85rem;
}
.chat-log-turn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem;
  background: color-mix(in srgb, var(--bg-card) 92%, var(--gold) 4%);
}
.chat-log-turn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--text-muted);
  font-size: .78rem;
  margin-bottom: .65rem;
}
.chat-log-bubble {
  width: fit-content;
  max-width: min(760px, 100%);
  padding: .7rem .8rem;
  border-radius: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.chat-log-user {
  margin-inline-start: auto;
  background: var(--gold);
  color: var(--navy-deep);
}
.chat-log-bot {
  margin-top: .45rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  color: var(--text);
}
.chat-log-bot a {
  display: block;
  margin-top: .45rem;
  font-weight: 700;
}
[dir="rtl"] .chat-log-user {
  margin-inline-start: 0;
  margin-inline-end: auto;
}
@media (max-width: 575px) {
  .marsh-chatbot {
    inset-inline-start: auto;
    inset-inline-end: .85rem;
    bottom: .85rem;
  }
  .marsh-chatbot-panel {
    position: fixed;
    inset-inline-start: .75rem;
    inset-inline-end: .75rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
    width: auto;
    height: min(520px, calc(100dvh - 7.25rem));
    max-height: calc(100dvh - 7.25rem);
    border-radius: 10px;
  }
  .marsh-chatbot-head {
    padding: .85rem;
  }
  .marsh-chatbot-head strong {
    font-size: .84rem;
  }
  .marsh-chatbot-tags {
    max-height: 86px;
    padding: .65rem .75rem;
    gap: .38rem;
  }
  .marsh-chatbot-chip {
    max-width: 100%;
    padding: .32rem .55rem;
    font-size: .74rem;
    line-height: 1.35;
  }
  .marsh-chatbot-profile {
    padding: .75rem;
  }
  .marsh-chatbot-messages {
    padding: .75rem;
  }
  .marsh-chat-message {
    max-width: 92%;
    font-size: .82rem;
  }
  .marsh-chatbot-form {
    padding: .65rem .75rem .75rem;
    gap: .45rem;
  }
  .marsh-chatbot-form input {
    height: 40px;
  }
  .marsh-chatbot-form button {
    width: 40px;
    height: 40px;
  }
  .chatbot-view-grid {
    grid-template-columns: 1fr;
  }
}
.customer-portal-tools .lang-select {
  width: auto;
  min-width: 118px;
  height: 38px;
}
.customer-portal-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
}
.customer-portal-content {
  padding: 1.35rem;
}
.customer-portal-section {
  display: none;
}
.customer-portal-section.is-active {
  display: block;
}
.customer-portal-section-head {
  margin-bottom: 1rem;
}
.customer-portal-section-head h2 {
  margin: 0;
  color: var(--text);
  font-family: Oswald, sans-serif;
  font-size: 1.55rem;
}
.customer-portal-section-head p {
  margin: .25rem 0 0;
  color: var(--text-muted);
  font-size: .88rem;
}
.customer-product-card small {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.customer-profile-card-head,
.customer-request-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.customer-profile-card-head img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg-card);
}
.customer-profile-card-head .customer-avatar-initial {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  font-size: 1.35rem;
}
.customer-photo-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
}
.customer-photo-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
}
.customer-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.customer-photo-preview .customer-avatar-initial {
  width: 100%;
  height: 100%;
  border: 0;
}
.customer-profile-card-head span,
.customer-profile-details dt { color: var(--text-muted); font-size: .82rem; }
.customer-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.35rem 0 0;
}
.customer-profile-details > div {
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}
.customer-profile-details dt { margin-bottom: .25rem; }
.customer-profile-details dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.customer-profile-card-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.customer-password-field { position: relative; }
.customer-password-field .form-control { padding-inline-end: 3.05rem; }
.customer-password-field > label { padding-inline-end: 3.05rem; }
.customer-password-toggle {
  position: absolute;
  z-index: 4;
  inset-inline-end: .55rem;
  top: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  transform: translateY(-50%);
}
.customer-password-toggle:hover { color: var(--gold); }
.customer-key-help {
  margin: -.25rem 0 .75rem;
  color: var(--text-muted);
  font-size: .86rem;
}
.customer-key-mask {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: center;
  min-width: 9.5rem;
  padding: .28rem .5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .04em;
}
.customer-copy-key-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  white-space: nowrap;
}
.customer-copy-key-btn:hover,
.customer-copy-key-btn:focus {
  border-color: var(--gold);
  background: var(--gold);
  color: #07142d;
}
.customer-portal-modal { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.customer-portal-modal .modal-header,
.customer-portal-modal .modal-footer { border-color: var(--border); }
.customer-portal-modal .btn-close { filter: var(--modal-close-filter, none); }
[data-theme="dark"] .customer-portal-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); }
[dir="rtl"] .customer-portal-app {
  grid-template-columns: minmax(0, 1fr) 270px;
}
[dir="rtl"] .customer-portal-sidebar {
  grid-column: 2;
  border-right: 0;
  border-left: 1px solid var(--border);
}
[dir="rtl"] .customer-portal-panel {
  grid-column: 1;
  grid-row: 1;
}
[dir="rtl"] .customer-portal-profile,
[dir="rtl"] .customer-portal-nav a,
[dir="rtl"] .customer-portal-nav-toggle,
[dir="rtl"] .customer-portal-topbar,
[dir="rtl"] .customer-portal-section,
[dir="rtl"] .customer-portal-modal {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .customer-portal-modal .modal-header { flex-direction: row; }
[dir="rtl"] .customer-portal-modal .btn-close {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

@media (max-width: 767px) {
  .customer-portal-app,
  [dir="rtl"] .customer-portal-app {
    display: flex;
    flex-direction: column;
  }
  .customer-portal-sidebar,
  [dir="rtl"] .customer-portal-sidebar {
    min-height: auto;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: .75rem;
  }
  .customer-portal-profile { padding-bottom: .65rem; }
  .customer-portal-nav { gap: .25rem; }
  .customer-portal-nav a,
  .customer-portal-nav-toggle { min-height: 38px; padding: .5rem .6rem; font-size: .8rem; }
  .customer-portal-subnav { margin-bottom: .2rem; }
  .customer-portal-logout { display: block; margin-top: .15rem; padding-top: .75rem; }
  .customer-portal-topbar {
    min-height: 64px;
    padding: .65rem .8rem;
  }
  .customer-portal-topbar .section-label,
  .customer-portal-topbar .section-title {
    display: none;
  }
  .customer-portal-tools { margin-inline-start: auto; }
  .customer-portal-content { padding: .85rem; }
  .customer-profile-details { grid-template-columns: 1fr; }
  .customer-request-intro { align-items: flex-start; flex-direction: column; }
}

/* ─── Scroll animations ──────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s, transform .55s; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Utility ────────────────────────────────── */
.text-gold { color: var(--gold) !important; }
.bg-navy   { background: var(--navy) !important; }
.border-gold { border-color: var(--gold) !important; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 991px) {
  .mega-menu { min-width: 90vw; }
  .mega-menu-rich { display: none !important; }
  .brand-lockup span { font-size: .9rem; }
  .dash-sidebar { width: 64px; }
  .dash-sidebar .nav-label { display: none; }
  .dash-main { margin-left: 64px; }
}

@media (max-width: 420px) {
  #main-header .brand-lockup img {
    width: clamp(185px, 58vw, 245px);
    max-height: 58px;
  }
  #main-header .mobile-nav-toggle {
    width: 44px;
    height: 40px;
  }
  .mobile-utility-row {
    flex-direction: column;
  }
  .mobile-utility-row .lang-switcher,
  .mobile-utility-row .admin-login-link,
  .mobile-utility-row #theme-toggle-mobile {
    width: 100%;
    flex-basis: auto;
  }
}
/* ─── Persian and Arabic typography ──────────────────────────────── */
/* Keep every UI control consistent when the document language changes. */
html[lang="fa"] body *,
html[lang="ar"] body * {
  font-family: 'Vazirmatn', 'Inter', sans-serif !important;
  letter-spacing: normal;
}

/* Code and editor source views should remain monospaced. */
html[lang="fa"] body :is(pre, pre *, code, code *, kbd, samp),
html[lang="ar"] body :is(pre, pre *, code, code *, kbd, samp) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace !important;
}

@media (max-width: 767px) {
  .marsh-section { padding: 3rem 0; }
  .marsh-section.project-request-section { padding: 2rem 0 2rem; }
  .hero-network-surface { min-height: 340px; }
  .hero-network-surface .hero-plexus-canvas {
    inset: 0 auto 0 50%;
    width: 1180px;
    max-width: none;
    transform: translateX(-50%);
  }
  #home-hero { min-height: 520px; padding: 3rem 0; }
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0 !important; margin-right: 0 !important; }
  .vscode-window { font-size: .72rem; }
  #main-header .site-header-container {
    flex-wrap: nowrap;
    align-items: center;
    gap: .6rem;
    padding-inline: clamp(.85rem, 4vw, 1.2rem);
  }
  #main-header .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-inline: 0;
    padding-block: .25rem;
  }
  #main-header .brand-lockup {
    min-width: 0;
    max-width: calc(100vw - 6.5rem);
  }
  #main-header .brand-lockup img {
    width: clamp(205px, 62vw, 290px);
    max-width: 100%;
    height: auto;
    max-height: 64px;
  }
  #main-header .mobile-nav-toggle {
    flex: 0 0 auto;
    width: 46px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    padding: .25rem;
  }
  .footer-brand img { height: 80px; max-width: 290px; }
  .brand-lockup span { max-width: 280px; white-space: normal; line-height: 1.05; }
  .footer-bottom-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .footer-copy { text-align: center; }
  .footer-legal-links-end { justify-content: center; }
  .footer-bottom-divider {
    display: block;
    height: 1px;
    width: 100%;
    background: #2e4070;
  }
  .subscribe-form { flex-direction: column; }
  .legal-page-hero { padding: 3rem 0; }
  .legal-hero-grid { grid-template-columns: 1fr; }
  .legal-hero-icon { width: 92px; height: 92px; }
  .legal-hero-icon i { font-size: 2.7rem; }
  .legal-editor-head { flex-direction: column; }
  .legal-icon-field { width: 100%; min-width: 0; }
  .customer-detail-grid { grid-template-columns: 1fr; }
  .customer-feature-card { align-items: stretch; flex-direction: column; }
  .legal-toc { position: static; }
  .legal-section-card { grid-template-columns: 1fr; }
  .legal-section-number { width: 64px; }
  .legal-source-grid { grid-template-columns: 1fr; }
}

/* Final public button hover layer: keeps the same action on header, mega menus,
   chatbot, auth pages, and back-to-top after later component styles run. */
:where(body[data-server-layout="1"], .auth-page-layer) :is(
  .btn-marsh,
  .btn-marsh-outline,
  .auth-social-btn,
  .nav-link-marsh,
  .admin-login-link,
  .lang-toggle,
  #theme-toggle,
  #theme-toggle-mobile,
  .mega-explore-link,
  .mega-visual-actions a,
  .mobile-nav-dropdown,
  .mobile-subnav a,
  .marsh-chatbot-toggle,
  .marsh-chatbot-close,
  .marsh-chatbot-chip,
  .marsh-chatbot-form button,
  .marsh-back-to-top
) {
  --site-button-rest-bg: transparent;
  --site-button-fill: var(--gold);
  position: relative;
  overflow: visible;
  isolation: isolate;
  background-image: radial-gradient(circle at 50% 115%, var(--site-button-fill) 0 50%, transparent 51%);
  background-repeat: no-repeat;
  background-size: 0% 0%;
  background-position: 50% 100%;
  transition:
    background-size .58s cubic-bezier(.22, .61, .36, 1),
    color .32s ease,
    border-color .32s ease,
    box-shadow .32s ease,
    transform .32s ease,
    opacity .24s ease,
    visibility .24s ease;
}

:where(body[data-server-layout="1"], .auth-page-layer) :is(
  .btn-marsh,
  .nav-link-marsh.active,
  #theme-toggle,
  #theme-toggle-mobile,
  .marsh-chatbot-toggle,
  .marsh-chatbot-form button,
  .marsh-back-to-top
) {
  --site-button-rest-bg: var(--btn-bg);
}

:where(body[data-server-layout="1"], .auth-page-layer) .marsh-chatbot-close {
  --site-button-rest-bg: rgba(255,255,255,.08);
}

:where(body[data-server-layout="1"], .auth-page-layer) .marsh-chatbot-chip {
  --site-button-rest-bg: var(--bg-card);
}

:where(body[data-server-layout="1"], .auth-page-layer) :is(.marsh-chatbot-toggle, .marsh-back-to-top) {
  background-color: var(--btn-bg);
  color: #ffffff !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) .marsh-chatbot-toggle > i {
  color: #ffffff !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) .marsh-chatbot-toggle:is(:hover, :focus-visible) > i {
  color: #050505 !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) .marsh-chatbot-form button > i {
  color: #ffffff !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) .marsh-chatbot-form button:is(:hover, :focus-visible) > i {
  color: #050505 !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) #home-hero .btn-hero-contact {
  --site-button-fill: #ffffff;
  --site-button-rest-bg: transparent;
}

:where(body[data-server-layout="1"], .auth-page-layer) :is(
  .btn-marsh,
  .btn-marsh-outline,
  .auth-social-btn,
  .nav-link-marsh,
  .admin-login-link,
  .lang-toggle,
  #theme-toggle,
  #theme-toggle-mobile,
  .mega-explore-link,
  .mega-visual-actions a,
  .mobile-nav-dropdown,
  .mobile-subnav a,
  .marsh-chatbot-toggle,
  .marsh-chatbot-close,
  .marsh-chatbot-chip,
  .marsh-chatbot-form button,
  .marsh-back-to-top
):is(:hover, :focus-visible),
:where(body[data-server-layout="1"], .auth-page-layer) :is(.lang-toggle[aria-expanded="true"], .mobile-nav-dropdown.active, .marsh-chatbot-chip.is-active) {
  background-color: var(--site-button-rest-bg);
  background-size: 240% 240%;
  color: #050505 !important;
  border-color: var(--gold);
  box-shadow: var(--hover-shadow);
  outline: none;
}

:where(body[data-server-layout="1"], .auth-page-layer) #home-hero .btn-hero-contact:is(:hover, :focus-visible) {
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255,255,255,.22);
}

:where(body[data-server-layout="1"], .auth-page-layer) :is(
  .btn-marsh,
  .btn-marsh-outline,
  .auth-social-btn,
  .nav-link-marsh,
  .admin-login-link,
  .lang-toggle,
  #theme-toggle,
  #theme-toggle-mobile,
  .mega-explore-link,
  .mega-visual-actions a,
  .mobile-nav-dropdown,
  .mobile-subnav a,
  .marsh-chatbot-toggle,
  .marsh-chatbot-close,
  .marsh-chatbot-chip,
  .marsh-chatbot-form button,
  .marsh-back-to-top
):is(:hover, :focus-visible) :is(i, span),
:where(body[data-server-layout="1"], .auth-page-layer) :is(.lang-toggle[aria-expanded="true"], .mobile-nav-dropdown.active, .marsh-chatbot-chip.is-active) :is(i, span) {
  color: inherit !important;
}

:where(body[data-server-layout="1"], .auth-page-layer) :is(
  .btn-marsh,
  .btn-marsh-outline,
  .auth-social-btn,
  .nav-link-marsh,
  .admin-login-link,
  .lang-toggle,
  #theme-toggle,
  #theme-toggle-mobile,
  .mega-explore-link,
  .mega-visual-actions a,
  .mobile-nav-dropdown,
  .mobile-subnav a,
  .marsh-chatbot-toggle,
  .marsh-chatbot-close,
  .marsh-chatbot-chip,
  .marsh-chatbot-form button,
  .marsh-back-to-top
):is(:hover, :focus-visible) .deco,
:where(body[data-server-layout="1"], .auth-page-layer) :is(.lang-toggle[aria-expanded="true"], .mobile-nav-dropdown.active, .marsh-chatbot-chip.is-active) .deco {
  color: var(--marsh-spark-color, var(--gold)) !important;
}

/* Final public layout polish: remove footer under-gap and tighten the home hero. */
html,
body[data-server-layout="1"] {
  min-height: 100%;
}

body[data-server-layout="1"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html:has(> body[data-server-layout="1"]) {
  background: var(--footer-bg);
}

body[data-server-layout="1"] #main-header,
body[data-server-layout="1"] #main-footer {
  flex: 0 0 auto;
}

body[data-server-layout="1"] #main-footer {
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

body[data-server-layout="1"] .marsh-chatbot,
body[data-server-layout="1"] .marsh-back-to-top {
  z-index: 3000;
}

body[data-server-layout="1"] .marsh-chatbot {
  bottom: max(1rem, env(safe-area-inset-bottom));
}

body[data-server-layout="1"] .marsh-back-to-top {
  position: fixed !important;
  inset-inline-start: clamp(1rem, 2vw, 1.35rem);
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body[data-server-layout="1"] #home-hero {
    min-height: auto;
    padding: clamp(3.5rem, 7vh, 5.5rem) 0;
    margin: 0;
  }
}

[data-theme="dark"] :is(.mega-menu, .mega-menu-rich, .marsh-chatbot-panel) {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--border) 58%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(245, 197, 24, .08);
}

[data-theme="dark"] :is(.mega-menu::before, .login-switcher-menu::before, .mega-popover-arrow) {
  border-left-color: color-mix(in srgb, var(--gold) 42%, var(--border) 58%);
  border-top-color: color-mix(in srgb, var(--gold) 42%, var(--border) 58%);
}

[data-theme="dark"] .marsh-chatbot-head,
[data-theme="dark"] .marsh-chatbot-tags,
[data-theme="dark"] .marsh-chatbot-form {
  border-color: color-mix(in srgb, var(--gold) 28%, var(--border) 72%);
}

[data-theme="dark"] .marsh-faq-section .faq-toggle-symbol,
[data-theme="dark"] .marsh-faq-section .faq-toggle-symbol::before {
  color: #ffffff !important;
}

/* Chatbot and FAQ visual polish only. */
body[data-server-layout="1"] .marsh-chatbot-chip.is-active,
body[data-server-layout="1"] .marsh-chatbot-chip.is-active:is(:hover, :focus-visible) {
  background: var(--gold) !important;
  background-image: none !important;
  background-size: 0 0 !important;
  border-color: var(--gold) !important;
  color: #050505 !important;
  box-shadow: 0 10px 22px rgba(245, 197, 24, .22);
}

body[data-server-layout="1"] .marsh-chatbot-chip.is-active :is(i, span) {
  color: #050505 !important;
}

body[data-server-layout="1"] .marsh-chatbot-link,
body[data-server-layout="1"] .marsh-chat-message a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: .3rem .62rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #050505 !important;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(245, 197, 24, .18);
}

body[data-server-layout="1"] .marsh-chatbot-link:is(:hover, :focus-visible),
body[data-server-layout="1"] .marsh-chat-message a:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--gold) 88%, #ffffff 12%);
  color: #050505 !important;
  transform: translateY(-1px);
}

.marsh-faq-section .faq-toggle-symbol {
  position: relative;
  overflow: visible;
}

.marsh-faq-section .faq-toggle-symbol::after {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  opacity: 0;
  transform: scale(.65) rotate(-8deg);
  background:
    radial-gradient(circle at 15% 25%, var(--gold) 0 2px, transparent 2.4px),
    radial-gradient(circle at 82% 20%, #2f80ed 0 2px, transparent 2.4px),
    radial-gradient(circle at 88% 82%, var(--gold) 0 2px, transparent 2.4px),
    radial-gradient(circle at 22% 78%, #2f80ed 0 2px, transparent 2.4px);
  transition: opacity .22s ease, transform .28s ease;
}

.marsh-faq-section .accordion-button:is(:hover, :focus-visible) .faq-toggle-symbol::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.marsh-faq-section .accordion-button:is(:hover, :focus-visible) .faq-toggle-symbol {
  border-color: var(--gold);
  background: var(--gold);
  color: #050505 !important;
  box-shadow: 0 12px 26px rgba(245, 197, 24, .22);
}

.marsh-faq-section .accordion-button:is(:hover, :focus-visible) .faq-toggle-symbol::before {
  color: #050505 !important;
}

body[data-server-layout="1"] .marsh-faq-section .accordion-button:is(:hover, :focus-visible) .faq-toggle-symbol > .deco {
  animation:
    marsh-button-sparkle var(--marsh-spark-duration, 1.35s) linear var(--marsh-spark-delay, 0s) 1 both;
}

body[data-server-layout="1"] .marsh-faq-section .accordion-button:is(:hover, :focus-visible) .faq-toggle-symbol > .deco::before,
body[data-server-layout="1"] .marsh-faq-section .accordion-button:is(:hover, :focus-visible) .faq-toggle-symbol > .deco::after {
  animation: marsh-button-twinkle .46s ease-in-out 0s 3 alternate both;
}

:where(body[data-server-layout="1"], .auth-page-layer) #home-hero .btn-hero-contact:is(:hover, :focus-visible) {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #050505 !important;
  border-color: #ffffff !important;
  text-shadow: none !important;
}

.marsh-inspection-guard-toast {
  position: fixed;
  inset-block-end: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  inset-inline-end: clamp(1rem, 2vw, 1.5rem);
  z-index: 2147483000;
  width: min(420px, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--border));
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 22px 58px rgba(5, 9, 20, .28);
  text-align: start;
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

[dir="rtl"] .marsh-inspection-guard-toast {
  inset-inline-end: auto;
  inset-inline-start: clamp(1rem, 2vw, 1.5rem);
}

.marsh-inspection-guard-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[dir="rtl"] .marsh-inspection-guard-toast.is-visible {
  transform: translateY(0);
}

.marsh-guard-toast-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .78rem .95rem;
  background: var(--primary);
  color: #ffffff;
}

.marsh-guard-toast-success .marsh-guard-toast-head {
  background: var(--gold);
  color: var(--navy-deep);
}

.marsh-guard-toast-warning .marsh-guard-toast-head {
  background: color-mix(in srgb, var(--gold) 78%, #f97316);
  color: var(--navy-deep);
}

.marsh-guard-toast-error .marsh-guard-toast-head {
  background: #9f1d2c;
  color: #ffffff;
}

.marsh-guard-toast-info .marsh-guard-toast-head {
  background: #1d4ed8;
  color: #ffffff;
}

.marsh-guard-toast-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.marsh-guard-toast-success .marsh-guard-toast-icon,
.marsh-guard-toast-warning .marsh-guard-toast-icon {
  background: rgba(17, 30, 54, .1);
}

.marsh-guard-toast-head strong {
  min-width: 0;
  flex: 1 1 auto;
  font-size: .94rem;
  letter-spacing: .01em;
}

.marsh-guard-toast-close {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 1.9rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: currentColor;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease, transform .18s ease;
}

.marsh-guard-toast-close:hover {
  background: rgba(255, 255, 255, .24);
  transform: rotate(90deg);
}

.marsh-guard-toast-body {
  padding: .95rem 1rem 1.05rem;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.8;
  background: color-mix(in srgb, var(--bg-card) 94%, var(--gold) 6%);
}

[data-theme="dark"] .marsh-inspection-guard-toast,
html[data-theme="dark"] .marsh-inspection-guard-toast,
body.dark-mode .marsh-inspection-guard-toast {
  border-color: rgba(245, 197, 24, .56);
  background: #142847;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .38);
}

[data-theme="dark"] .marsh-guard-toast-body,
html[data-theme="dark"] .marsh-guard-toast-body,
body.dark-mode .marsh-guard-toast-body {
  background: #192f52;
  color: #f8fbff;
}



