:root {
  --bg: #ffffff;
  --bg2: #0B1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.48);
  --accent: #203a7a;
  --accent2: #b81623;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);

  --radius: 18px;
  --radius-sm: 14px;
  --container: 1120px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 560ms;

  /* Wood Colors (Default = Dark Theme = Lighter Wood) */
  --wood-1: #EBC378;
  /* Light Golden Oak */
  --wood-2: #C38C3C;
  /* Darker Golden Oak */
  --wood-3: #F2D598;
  /* Highlight */
  --wood-4: #D4A356;
  /* Shadow */
  --ink-rgb: 32, 58, 122;
  /* Blue Ink */
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ebf0f5;
  --bg2: #dde4ed;
  --panel: rgba(var(--ink-rgb), 0.06);
  --panel2: rgba(var(--ink-rgb), 0.08);
  --border: rgba(var(--ink-rgb), 0.14);
  --text: rgba(17, 33, 74, 0.92);
  --muted: rgba(17, 33, 74, 0.68);
  --faint: rgba(17, 33, 74, 0.48);
  --accent: #11214a;
  --accent2: #a61420;
  --shadow: 0 30px 80px rgba(17, 33, 74, 0.16);

  /* Wood Colors (Light Theme = Darker Wood e.g. Ebony/Walnut) */
  --wood-1: #5D4037;
  /* Deep Brown */
  --wood-2: #3E2723;
  /* Darker Deep Brown */
  --wood-3: #795548;
  /* Medium Brown */
  --wood-4: #4E342E;
  /* Shadow Brown */
  --ink-rgb: 17, 33, 74;
  /* Dark Blue Ink */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Proxima Nova', Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  text-rendering: geometricPrecision;
  transition: background 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Global Typography: Bold & Large Text -> Public Sans Bold */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
strong,
b,
th {
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
}

html[data-theme="light"] body {
  background: #ffffff;
}

html[data-theme="light"] .pageLoader__backdrop {
  background:
    radial-gradient(900px 600px at 50% 25%, rgba(0, 0, 0, 0.04), transparent 60%),
    rgba(244, 247, 251, 0.92);
}



html[data-theme="light"] .logo-filter-invert {
  filter: invert(1);
}

html[data-theme="light"] .nav__iconLink {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .nav__iconLink:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

html[data-theme="light"] .button {
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--text);
}

html[data-theme="light"] .button:hover {
  background: rgba(var(--ink-rgb), 0.10);
}

html[data-theme="light"] .button--ghost {
  background: rgba(var(--ink-rgb), 0.04);
}

html[data-theme="light"] .button--primary {
  background: #203a7a;
  color: #ffffff;
  border-color: #11214a;
}

html[data-theme="light"] .button--primary:hover {
  background: #11214a;
  color: #ffffff;
}

html[data-theme="light"] .trust,
html[data-theme="light"] .card,
html[data-theme="light"] .form {
  background: rgba(var(--ink-rgb), 0.05);
  border-color: rgba(var(--ink-rgb), 0.14);
}

html[data-theme="light"] .glass {
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.08), rgba(var(--ink-rgb), 0.05));
  border-color: rgba(var(--ink-rgb), 0.14);
}

html[data-theme="light"] .card__item {
  color: rgba(var(--ink-rgb), 0.86);
}

html[data-theme="light"] .field__label {
  color: rgba(var(--ink-rgb), 0.68);
}

html[data-theme="light"] .input,
html[data-theme="light"] .textarea {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(var(--ink-rgb), 0.18);
  color: var(--text);
}

html[data-theme="light"] .input:focus,
html[data-theme="light"] .textarea:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(var(--ink-rgb), 0.35);
}

html[data-theme="light"] select.input {
  color: var(--text);
  background-image:
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.05), rgba(var(--ink-rgb), 0.02)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(var(--ink-rgb),0.65)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 0, right 12px center;
  background-size: auto, 16px 16px;
}

html[data-theme="light"] select.input option,
html[data-theme="light"] select.input optgroup {
  color: #0b1220;
  background: #f3f6fb;
}

html[data-theme="light"] .divider {
  background: rgba(var(--ink-rgb), 0.12);
}

html[data-theme="light"] .footer {
  border-top-color: rgba(var(--ink-rgb), 0.08);
  background: rgba(var(--ink-rgb), 0.04);
}

html[data-theme="light"] .accountRow {
  border-bottom-color: rgba(var(--ink-rgb), 0.12);
}

html[data-theme="light"] .pill {
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.08);
  color: rgba(var(--ink-rgb), 0.78);
}

html[data-theme="light"] .eyebrow {
  color: rgba(var(--ink-rgb), 0.65);
}

html[data-theme="light"] .list {
  color: rgba(var(--ink-rgb), 0.86);
}

html[data-theme="light"] .section--alt {
  background:
    radial-gradient(800px 500px at 10% 20%, rgba(166, 20, 32, 0.08), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(var(--ink-rgb), 0.08), transparent 60%),
    rgba(var(--ink-rgb), 0.04);
  border-block-color: rgba(var(--ink-rgb), 0.08);
}

html[data-theme="light"] .service {
  background: rgba(var(--ink-rgb), 0.05);
  border-color: rgba(var(--ink-rgb), 0.14);
}

html[data-theme="light"] .countryFlag {
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.06);
  box-shadow: 0 8px 18px rgba(17, 33, 74, 0.16);
}

html[data-theme="light"] .badge {
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.06);
  color: rgba(var(--ink-rgb), 0.8);
}

html[data-theme="light"] .chip {
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.05);
}

html[data-theme="light"] .chip:hover {
  background: rgba(var(--ink-rgb), 0.08);
}

html[data-theme="light"] .chip__count {
  border-color: rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.06);
  color: rgba(var(--ink-rgb), 0.82);
}

html[data-theme="light"] .compareTable {
  border-color: rgba(var(--ink-rgb), 0.14);
  background: rgba(var(--ink-rgb), 0.04);
}

html[data-theme="light"] .compareTable__row {
  border-bottom-color: rgba(var(--ink-rgb), 0.12);
}

html[data-theme="light"] .compareTable__head {
  background: rgba(var(--ink-rgb), 0.08);
  color: rgba(var(--ink-rgb), 0.66);
}

html[data-theme="light"] .compareTable__label {
  color: rgba(var(--ink-rgb), 0.9);
}

html[data-theme="light"] .compareTable__cell {
  color: rgba(var(--ink-rgb), 0.8);
}

html[data-theme="light"] .dataTable__head {
  background: rgba(var(--ink-rgb), 0.08);
  border-bottom-color: rgba(var(--ink-rgb), 0.12);
  color: rgba(var(--ink-rgb), 0.62);
}

html[data-theme="light"] .dataTable__row {
  border-bottom-color: rgba(var(--ink-rgb), 0.12);
}

html[data-theme="light"] .dataTable__row:hover {
  background: rgba(var(--ink-rgb), 0.04);
}

html[data-theme="light"] .dataTable__meta {
  color: rgba(var(--ink-rgb), 0.68);
}

html[data-theme="light"] .dataTable__note {
  border-bottom-color: rgba(var(--ink-rgb), 0.12);
}

/* Page loader (Approved stamp) */
html[data-theme="light"] .accountSidebar {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(var(--ink-rgb), 0.12);
  backdrop-filter: blur(20px);
}

html[data-theme="light"] .accountNav__link {
  color: var(--text);
  border-color: rgba(var(--ink-rgb), 0.08);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .accountNav__link:hover {
  background: rgba(var(--ink-rgb), 0.06);
  transform: translateY(-1px);
}

html[data-theme="light"] .accountNav__link.is-active {
  background: rgba(var(--ink-rgb), 0.12);
  border-color: rgba(var(--ink-rgb), 0.3);
  color: #3E2723;
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), 0.1);
}

html[data-theme="light"] .crmCard {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(var(--ink-rgb), 0.1);
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), 0.04);
}

html[data-theme="light"] .crmCard:hover {
  border-color: rgba(var(--ink-rgb), 0.35);
  box-shadow: 0 8px 24px rgba(var(--ink-rgb), 0.08);
}

html[data-theme="light"] .accountRow {
  border-bottom-color: rgba(var(--ink-rgb), 0.08);
}

html[data-theme="light"] .accountRow:hover {
  background: rgba(var(--ink-rgb), 0.04);
  border-color: rgba(var(--ink-rgb), 0.15);
}

html[data-theme="light"] .crmColumn__head {
  background: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(var(--ink-rgb), 0.1);
}

html[data-theme="light"] .crmColumn__count {
  color: rgba(var(--ink-rgb), 0.55);
}

html[data-theme="light"] .crmColumn {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(var(--ink-rgb), 0.08);
}

html[data-theme="light"] .crmCard__meta {
  color: rgba(var(--ink-rgb), 0.6);
}

html[data-theme="light"] .pill {
  color: rgba(var(--ink-rgb), 0.85);
  background: rgba(var(--ink-rgb), 0.06);
  border-color: rgba(var(--ink-rgb), 0.12);
}

html[data-theme="light"] .badge--green {
  /* Fix green pills in light mode */
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

html[data-theme="light"] .badge--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.25);
}

.pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  opacity: 0;
  transition: opacity 420ms var(--ease);
  perspective: 1200px;
  /* Enable 3D space */
}

/* New stationary shadow on the "floor" */
.pageLoader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 100px;
  transform: translate(-50%, 0) rotateX(60deg);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.4), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  margin-top: 140px;
  /* Position below center */
}

html.is-loading.loader--wood .pageLoader::before {
  animation: shadowPulse3D 1000ms var(--ease) 1 both;
}

.pageLoader__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% 25%, rgba(255, 255, 255, 0.06), transparent 60%),
    rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(10px);
}

html.is-loading.loader--swing .pageLoader__backdrop {
  animation: backdropFlash 1180ms var(--ease) 1 both;
}

@keyframes backdropFlash {
  0% {
    filter: brightness(1);
  }

  55% {
    filter: brightness(1);
  }

  58% {
    filter: brightness(1.4) saturate(1.2);
  }

  100% {
    filter: brightness(1);
  }
}

html.is-loading .pageLoader {
  opacity: 1;
  pointer-events: auto;
}

html.is-loading body {
  overflow: hidden;
}

/* Debug: keep the loader fully visible (used with ?hold=1) */
html.loader--hold .pageLoader {
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: none !important;
}

/* Debug: freeze elements in a representative pose (used with ?hold=1) */
html.loader--hold.loader--swing .stamper,
html.loader--hold.loader--swing .stamper__shadow,
html.loader--hold.loader--swing .stamp {
  animation-play-state: paused !important;
}

html.loader--hold.loader--swing .stamper {
  /* Show the lever device clearly even if the animation already finished */
  opacity: 1 !important;
  transform: translateX(20px) translateY(-60px) rotate(6deg) scale(1) !important;
}

html.loader--hold.loader--swing .stamper__shadow {
  opacity: 0.25 !important;
}

html.loader--hold.loader--wood .stamper,
html.loader--hold.loader--wood .stamper__shadow,
html.loader--hold.loader--wood .stamp {
  animation-play-state: paused !important;
}

html.loader--hold.loader--wood .stamper {
  opacity: 1 !important;
  transform: translateY(-70px) scale(1) !important;
}

html.loader--hold.loader--wood .stamper__shadow {
  opacity: 0.22 !important;
}

/* Stamper device (drops, then reveals the stamp mark) */
.stamper {
  position: absolute;
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
  transform: translateY(-220px);
  opacity: 0;
  z-index: 2;
  transform-origin: 50% 78%;
  will-change: transform, opacity;
}

html.is-loading.loader--drop .stamper {
  opacity: 1;
  animation: stamperMotion 1180ms var(--ease) 1 both;
}

.stamper__shadow {
  position: absolute;
  left: 50%;
  top: 248px;
  width: 260px;
  height: 86px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(4px);
  opacity: 0;
}

html.is-loading.loader--drop .stamper__shadow {
  animation: shadowPulse 1180ms var(--ease) 1 both;
}

.stamper__handle {
  position: absolute;
  top: 10px;
  width: 58px;
  height: 128px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.stamper__body {
  position: absolute;
  top: 126px;
  width: 188px;
  height: 118px;
  border-radius: 28px;
  background:
    radial-gradient(140px 80px at 30% 25%, rgba(var(--ink-rgb), 0.20), transparent 62%),
    radial-gradient(140px 90px at 70% 30%, rgba(184, 22, 35, 0.10), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.45);
}

.stamper__foot {
  position: absolute;
  top: 232px;
  width: 236px;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(160px 40px at 50% 25%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(7, 10, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(var(--ink-rgb), 0.08) inset;
}

/* Variant: mono (more premium/minimal, less "cartoony") */
.pageLoader[data-stamper="mono"] .stamper__handle {
  width: 44px;
  height: 138px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.pageLoader[data-stamper="mono"] .stamper__body {
  width: 214px;
  height: 120px;
  border-radius: 30px;
  background:
    radial-gradient(180px 60px at 50% 18%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.pageLoader[data-stamper="mono"] .stamper__foot {
  width: 256px;
  height: 62px;
  background:
    radial-gradient(220px 40px at 50% 18%, rgba(255, 255, 255, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(var(--ink-rgb), 0.10) inset;
}

.pageLoader[data-stamper="mono"] .stamper__shadow {
  top: 258px;
  width: 280px;
  height: 92px;
  opacity: 0;
  filter: blur(6px);
}

.pageLoader[data-stamper="mono"] .stamper {
  transform: translateY(-240px);
}

html.is-loading .pageLoader[data-stamper="mono"] .stamper {
  animation: stamperMotionMono 1180ms var(--ease) 1 both;
}

.stamp {
  position: relative;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  transform: translateY(10px) scale(0.86) rotate(-10deg);
  opacity: 0;
  filter: blur(8px) drop-shadow(0 22px 55px rgba(0, 0, 0, 0.6));
  z-index: 1;
  will-change: transform, opacity, filter;
}

html.is-loading .stamp {
  /* Reveal after the stamper impact */
  animation: stampMark 720ms var(--ease) 1 both;
  animation-delay: 820ms;
}

/* Variant: wood (classic wooden stamp) */
html.loader--wood .stamper {
  width: 360px;
  height: 360px;
  transform-origin: 50% 86%;
  transform-style: preserve-3d;
  /* Allow children to be 3D */
}

/* Hide the old internal shadow because it rotates with the object */
html.loader--wood .stamper__shadow {
  display: none;
}

html.is-loading.loader--wood .stamper {
  opacity: 1;
  animation: stamperMotion 1000ms var(--ease) 1 both;
}

html.is-loading.loader--wood .pageLoader {
  animation: shake 500ms ease-out 600ms 1 both;
}

html.is-loading.loader--wood .pageLoader__backdrop {
  animation: backdropFlash 1000ms var(--ease) 1 both;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

html.is-loading.loader--wood .stamper__shadow {
  animation: shadowPulse 1260ms var(--ease) 1 both;
}

html.is-loading.loader--wood .stamp {
  animation: stampMark 720ms var(--ease) 1 both;
  animation-delay: 650ms;
}

html.loader--wood .stamper__shadow {
  top: 278px;
  width: 280px;
  height: 88px;
  opacity: 0;
  filter: blur(6px);
}

/* Wooden knob handle */
html.loader--wood .stamper__handle {
  top: 46px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(52px 52px at 30% 28%, rgba(255, 255, 255, 0.26), transparent 60%),
    radial-gradient(90px 70px at 55% 55%, rgba(0, 0, 0, 0.18), transparent 62%),
    linear-gradient(135deg, var(--wood-1), var(--wood-2));
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 6px),
    linear-gradient(135deg, var(--wood-1), var(--wood-2));
  background-blend-mode: multiply;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(255, 215, 0, 0.2) inset;
  /* Gold rim hint */
}

html.loader--wood .stamper__handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 64%;
  width: 56px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  filter: blur(0.2px);
  opacity: 0.45;
}

/* Wooden neck + collar */
html.loader--wood .stamper__body {
  top: 140px;
  width: 88px;
  height: 96px;
  border-radius: 999px;
  background:
    radial-gradient(46px 36px at 35% 18%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--wood-3), var(--wood-4));
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 6px),
    linear-gradient(135deg, var(--wood-3), var(--wood-4));
  background-blend-mode: multiply;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(0, 0, 0, 0.05) inset;
}

html.loader--wood .stamper__body::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 128px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(70px 22px at 50% 30%, rgba(255, 255, 255, 0.10), transparent 65%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.10);
  opacity: 0.9;
}

/* Wooden base block */
html.loader--wood .stamper__foot {
  top: 228px;
  width: 270px;
  height: 82px;
  border-radius: 18px;
  background:
    radial-gradient(260px 90px at 30% 20%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--wood-3), var(--wood-4));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.52),
    0 0 0 4px rgba(255, 215, 0, 0.15) inset;
  /* Gold rim */
}

/* Rubber pad underside */
html.loader--wood .stamper__foot::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 18px;
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.82);
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* Variant: swing (hinged arm look/feel) */
html.loader--swing .stamper {
  width: 520px;
  height: 320px;
  transform-origin: 120px 250px;
  /* hinge point */
}

html.is-loading.loader--swing .stamper {
  opacity: 1;
  animation: stamperSwing 1180ms var(--ease) 1 both;
}

html.is-loading.loader--swing .stamper__shadow {
  animation: shadowSwing 1180ms var(--ease) 1 both;
}

html.is-loading.loader--swing .stamp {
  animation: stampMark 720ms var(--ease) 1 both;
  animation-delay: 760ms;
}

/* Make swing variant look genuinely different: lever arm + hinge + rectangular head */
html.loader--swing .stamper__handle,
html.loader--swing .stamper__body,
html.loader--swing .stamper__foot {
  border-radius: 0;
  box-shadow: none;
}

/* Hinge post (left) */
html.loader--swing .stamper__body {
  top: 120px;
  left: 88px;
  width: 44px;
  height: 150px;
  border-radius: 18px;
  background:
    radial-gradient(40px 60px at 30% 25%, rgba(255, 255, 255, 0.20), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

/* Lever arm (horizontal) */
html.loader--swing .stamper__handle {
  top: 132px;
  left: 110px;
  width: 320px;
  height: 40px;
  border-radius: 18px;
  background:
    radial-gradient(160px 60px at 35% 35%, rgba(var(--ink-rgb), 0.22), transparent 62%),
    radial-gradient(180px 70px at 75% 45%, rgba(184, 22, 35, 0.10), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.40);
}

/* Hinge cap (pseudo element for the lever) */
html.loader--swing .stamper__handle::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 999px;
  background:
    radial-gradient(18px 18px at 35% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* Stamp head (right, rectangular) */
html.loader--swing .stamper__foot {
  top: 168px;
  left: 350px;
  width: 160px;
  height: 110px;
  border-radius: 22px;
  background:
    radial-gradient(160px 110px at 30% 25%, rgba(184, 22, 35, 0.14), transparent 64%),
    radial-gradient(160px 110px at 70% 30%, rgba(var(--ink-rgb), 0.12), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.52);
}

/* Rubber pad under the head */
html.loader--swing .stamper__foot::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 16px;
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.72);
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

/* Shadow positioning for swing geometry */
html.loader--swing .stamper__shadow {
  top: 248px;
  width: 340px;
  height: 92px;
}

/* Variant: minimal (no stamper, just ink imprint) */
html.is-loading.loader--minimal .stamper {
  display: none;
}

html.is-loading.loader--minimal .stamp {
  opacity: 0;
  transform: translateY(6px) scale(0.94) rotate(-10deg);
  filter: blur(10px) drop-shadow(0 22px 55px rgba(0, 0, 0, 0.6));
  animation: inkImprint 780ms var(--ease) 1 both;
  animation-delay: 220ms;
}

.stamp__ring {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 4px solid rgba(var(--ink-rgb), 0.72);
  box-shadow:
    0 0 0 2px rgba(var(--ink-rgb), 0.12) inset,
    0 0 0 10px rgba(var(--ink-rgb), 0.06) inset;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent 65%),
    radial-gradient(closest-side, rgba(var(--ink-rgb), 0.10), transparent 72%);
}

.stamp__inner {
  position: absolute;
  inset: 28px;
  border-radius: 999px;
  border: 2px dashed rgba(var(--ink-rgb), 0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.10);
}

.stamp__title {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 30px;
  color: rgba(var(--ink-rgb), 0.92);
  text-transform: uppercase;
  line-height: 1.05;
  transform: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.18);
}

.stamp__sub {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.62);
  line-height: 1.2;
  transform: none;
  opacity: 0.95;
}

@keyframes stampMark {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(1.5) rotate(-15deg);
    filter: blur(20px);
  }

  55% {
    opacity: 1;
    transform: translateY(0) scale(0.95) rotate(-10deg);
    filter: blur(0px);
  }

  75% {
    transform: translateY(0) scale(1.02) rotate(-10deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-10deg);
    filter: blur(0px);
  }
}

@keyframes stamperMotion {
  0% {
    transform: translateY(-150px) rotate(-15deg);
    opacity: 0;
  }

  60% {
    transform: translateY(-20px) rotate(-5deg);
    opacity: 1;
  }

  70% {
    transform: translateY(10px) rotate(0deg);
  }

  /* Impact */
  85% {
    transform: translateY(-5px) rotate(0deg);
  }

  100% {
    transform: translateY(-240px) rotate(0deg);
    opacity: 0;
  }
}

@keyframes shadowPulse3D {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5);
  }

  60% {
    opacity: 0.6;
    transform: translate(-50%, 0) scale(1.1);
  }

  70% {
    opacity: 0.8;
    transform: translate(-50%, 0) scale(1.2);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 0) scale(1.0);
  }
}

@keyframes stamperMotionMono {
  0% {
    transform: translateY(-280px) scale(0.985);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  58% {
    transform: translateY(-36px) scale(1.00);
  }

  66% {
    transform: translateY(14px) scale(1.012);
  }

  78% {
    transform: translateY(8px) scale(1.008);
    opacity: 1;
  }

  86% {
    transform: translateY(-10px) scale(1.00);
    opacity: 1;
  }

  100% {
    transform: translateY(-220px) scale(1.00);
    opacity: 0;
  }
}

@keyframes shadowPulse {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
  }

  56% {
    opacity: 0.20;
    transform: translateX(-50%) scale(1.02);
  }

  66% {
    opacity: 0.42;
    transform: translateX(-50%) scale(1.07);
  }

  84% {
    opacity: 0.16;
    transform: translateX(-50%) scale(1.00);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.98);
  }
}

@keyframes stamperSwing {
  0% {
    transform: translateX(150px) translateY(-190px) rotate(18deg) scale(0.98);
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  56% {
    transform: translateX(10px) translateY(-46px) rotate(6deg) scale(1.00);
    opacity: 1;
  }

  66% {
    transform: translateX(0px) translateY(10px) rotate(0deg) scale(1.01);
  }

  76% {
    transform: translateX(0px) translateY(6px) rotate(0deg) scale(1.01);
  }

  84% {
    transform: translateX(0px) translateY(-8px) rotate(0deg) scale(1.00);
    opacity: 1;
  }

  100% {
    transform: translateX(-160px) translateY(-210px) rotate(-10deg) scale(1.00);
    opacity: 0;
  }
}

@keyframes shadowSwing {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }

  56% {
    opacity: 0.16;
    transform: translateX(-50%) scale(1.00);
  }

  66% {
    opacity: 0.42;
    transform: translateX(-50%) scale(1.08);
  }

  84% {
    opacity: 0.12;
    transform: translateX(-50%) scale(0.98);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
  }
}

@keyframes inkImprint {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(1.08) rotate(-10deg);
    filter: blur(14px) saturate(0.9);
  }

  25% {
    opacity: 0.0;
  }

  52% {
    opacity: 1;
    transform: translateY(0) scale(1.02) rotate(-10deg);
    filter: blur(0px) saturate(1);
  }

  76% {
    transform: translateY(0) scale(0.99) rotate(-10deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-10deg);
    filter: blur(0px) saturate(1);
  }
}

html.is-loaded .pageLoader {
  opacity: 0;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  transform: translateY(-140%);
  transition: transform var(--dur) var(--ease);
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container-premium {
  width: min(1600px, calc(100% - 60px));
  margin-inline: auto;
  padding: 0 30px;
}

/* Premium Typography for Services & Countries */
.container-premium h1,
.container-premium h2,
.container-premium h3,
.container-premium h4,
.container-premium .h1,
.container-premium .h2,
.container-premium .h3,
.container-premium .h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #111827;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.container-premium h1,
.container-premium h2.hero-title {
  letter-spacing: -2px;
}

.container-premium p,
.container-premium ul:not(.tabs__nav) li {
  font-family: 'Inter', sans-serif;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.6;
}

.container-premium strong {
  font-weight: 600;
  color: #111827;
}

.panel-premium {
  background: #e9ede4;
  border-radius: 0;
  padding: 32px;
  border: 1px solid #e9ede4;
}

.panel-premium > h2,
.panel-premium > h3,
.panel-premium > .h2,
.panel-premium > .h3,
.panel-premium > h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.75rem !important;
  margin-top: 0;
  margin-bottom: 20px !important;
  font-weight: 400;
  color: #111827;
  letter-spacing: -0.5px;
}

.container--services {
  width: min(1320px, calc(100% - 48px));
}

/* Wider containers for dashboards/CRM on large screens */
.container--xl {
  width: min(1480px, calc(100% - 48px));
}

/* Extra wide dashboards (admin/account) */
.container--xxl {
  width: min(1760px, calc(100% - 32px));
}

/* Dashboard UX polish */
.kpiGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.kpiCard {
  margin: 0;
}

.chartsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  align-items: start;
}

.chartBox .accountBar {
  align-items: baseline;
}

.chartBox canvas {
  display: block;
}

/* CRM dialog tweaks (reuse autoDialog visuals) */
.crmDialog .autoDialog__inner {
  width: min(860px, calc(100vw - 32px));
}

/* Professional CRM drawer (right side) */
.crmDialog {
  width: min(640px, calc(100vw - 18px));
  height: 100vh;
  max-height: 100vh;
  margin: 0 0 0 auto;
  border-radius: 18px 0 0 18px;
  border-right: none;
}

.crmDialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.crmDialog .autoDialog__inner {
  height: 100%;
  overflow: auto;
}

.crmConfirm {
  width: min(520px, calc(100vw - 28px));
}

/* Toasts */
.toastRoot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 16, 0.90);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  padding: 12px 12px;
  width: min(420px, calc(100vw - 32px));
}

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

.toast__title {
  font-weight: 700;
}

.toast__msg {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* Kanban pro layout */
.crmBoard {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.crmColumn {
  flex: 0 0 330px;
  scroll-snap-align: start;
}

.crmColumn__head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.crmColumn__body {
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 6px;
}

.crmColumn.is-drop {
  border-color: rgba(var(--ink-rgb), 0.35);
  background: rgba(var(--ink-rgb), 0.06);
}

.crmCard[draggable="true"] {
  cursor: grab;
}

.crmCard.is-dragging {
  opacity: 0.55;
  transform: rotate(-0.4deg);
}

/* Global search dropdown */
.searchDropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 16, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  padding: 8px;
}

.searchItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
}

.searchItem:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(var(--ink-rgb), 0.22);
}

.searchItem__title {
  font-weight: 700;
}

.searchItem__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.searchItem__tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Data table (professional admin lists) */
.dataTableWrap {
  overflow: auto;
  border-radius: 14px;
}

.dataTable {
  min-width: 980px;
}

.dataTable__head,
.dataTable__row {
  display: grid;
  grid-template-columns: 120px 120px 220px minmax(260px, 1fr) 190px 260px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.dataTable__head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(10, 12, 16, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dataTable__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dataTable__row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dataTable__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.dataTable__title {
  font-weight: 700;
}

.dataTable__meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 2px;
}

.dataTable__note {
  grid-column: 1 / -1;
  padding: 10px 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dataTable__note .textarea {
  width: 100%;
}

/* Cases list density toggle */
.cases-density-compact [data-crm-cases-view-panel="list"] .dataTable__head,
.cases-density-compact [data-crm-cases-view-panel="list"] .dataTable__row {
  padding: 6px 10px;
  gap: 10px;
  font-size: 12px;
}

.cases-density-compact [data-crm-cases-view-panel="list"] .dataTable__title {
  font-size: 13px;
}

.cases-density-compact [data-crm-cases-view-panel="list"] .dataTable__meta {
  font-size: 11px;
  margin-top: 1px;
}

.tasks-density-compact [data-crm-tasks-list] .accountRow {
  padding: 8px 0;
  gap: 10px;
}

.tasks-density-compact [data-crm-tasks-list] .accountRow__title {
  font-size: 13px;
}

.tasks-density-compact [data-crm-tasks-list] .accountRow__meta {
  font-size: 11px;
}

.tasks-density-compact [data-crm-tasks-list] .accountRow__actions {
  gap: 6px;
}

.orders-density-compact [data-admin-orders-table] .dataTable__head,
.orders-density-compact [data-admin-orders-table] .dataTable__row {
  padding: 6px 10px;
  gap: 10px;
  font-size: 12px;
}

.orders-density-compact [data-admin-orders-table] .dataTable__title {
  font-size: 13px;
}

.orders-density-compact [data-admin-orders-table] .dataTable__meta {
  font-size: 11px;
  margin-top: 1px;
}

/* Cases page UX */
.casesBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crmAccordion {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.crmAccordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.crmAccordion__panel {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.segmented {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.segmented__btn {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.segmented__btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.segmented__btn.is-active {
  background: rgba(var(--ink-rgb), 0.14);
  border-color: rgba(var(--ink-rgb), 0.26);
  color: rgba(255, 255, 255, 0.95);
}

.casesChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 13px;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.05);
}

.chip.is-active {
  border-color: rgba(var(--ink-rgb), 0.28);
  background: rgba(var(--ink-rgb), 0.12);
}

.chip.badge--stage-new,
.chip.badge--stage-qualified,
.chip.badge--stage-docs,
.chip.badge--stage-submitted,
.chip.badge--stage-decision,
.chip.badge--stage-completed,
.chip.badge--stage-lost,
.chip.badge--stage-hold,
.chip.badge--hue {
  /* Use the same palette as badges, but tuned for chips */
  border-color: rgba(255, 255, 255, 0.12);
}

.chip.badge--stage-new {
  border-color: rgba(120, 195, 255, 0.30);
  background: rgba(120, 195, 255, 0.08);
}

.chip.badge--stage-qualified {
  border-color: rgba(var(--ink-rgb), 0.30);
  background: rgba(var(--ink-rgb), 0.08);
}

.chip.badge--stage-docs {
  border-color: rgba(255, 220, 140, 0.26);
  background: rgba(255, 220, 140, 0.06);
}

.chip.badge--stage-submitted {
  border-color: rgba(170, 150, 255, 0.28);
  background: rgba(170, 150, 255, 0.07);
}

.chip.badge--stage-decision {
  border-color: rgba(255, 140, 220, 0.24);
  background: rgba(255, 140, 220, 0.06);
}

.chip.badge--stage-completed {
  border-color: rgba(140, 255, 200, 0.26);
  background: rgba(140, 255, 200, 0.06);
}

.chip.badge--stage-lost {
  border-color: rgba(255, 120, 120, 0.26);
  background: rgba(255, 120, 120, 0.06);
}

.chip.badge--stage-hold {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.chip.badge--hue {
  border-color: hsla(var(--badge-hue, 200), 70%, 60%, 0.28);
  background: hsla(var(--badge-hue, 200), 70%, 60%, 0.07);
}

.chip__count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 0 8px;
}

/* Badges (Kind/Stage) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.badge--kind-immigration {
  background: rgba(120, 195, 255, 0.14);
  border-color: rgba(120, 195, 255, 0.28);
}

.badge--kind-cars {
  background: rgba(140, 255, 200, 0.12);
  border-color: rgba(140, 255, 200, 0.26);
}

.badge--stage-new {
  background: rgba(120, 195, 255, 0.14);
  border-color: rgba(120, 195, 255, 0.30);
}

.badge--stage-qualified {
  background: rgba(var(--ink-rgb), 0.16);
  border-color: rgba(var(--ink-rgb), 0.30);
}

.badge--stage-docs {
  background: rgba(255, 220, 140, 0.12);
  border-color: rgba(255, 220, 140, 0.26);
}

.badge--stage-submitted {
  background: rgba(170, 150, 255, 0.14);
  border-color: rgba(170, 150, 255, 0.28);
}

.badge--stage-decision {
  background: rgba(255, 140, 220, 0.12);
  border-color: rgba(255, 140, 220, 0.24);
}

.badge--stage-completed {
  background: rgba(140, 255, 200, 0.12);
  border-color: rgba(140, 255, 200, 0.26);
}

.badge--stage-lost {
  background: rgba(255, 120, 120, 0.12);
  border-color: rgba(255, 120, 120, 0.26);
}

.badge--stage-hold {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.badge--hue {
  background: hsla(var(--badge-hue, 200), 70%, 60%, 0.14);
  border-color: hsla(var(--badge-hue, 200), 70%, 60%, 0.28);
}

.badge--priority-normal {
  background: rgba(120, 195, 255, 0.12);
  border-color: rgba(120, 195, 255, 0.26);
}

.badge--priority-high {
  background: rgba(255, 220, 140, 0.14);
  border-color: rgba(255, 220, 140, 0.28);
}

.badge--priority-urgent {
  background: rgba(255, 120, 120, 0.14);
  border-color: rgba(255, 120, 120, 0.28);
}

.badge--due-overdue {
  background: rgba(255, 120, 120, 0.14);
  border-color: rgba(255, 120, 120, 0.30);
}

.badge--due-soon {
  background: rgba(255, 220, 140, 0.14);
  border-color: rgba(255, 220, 140, 0.30);
}

.accountMain .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: radial-gradient(120% 140% at 30% 10%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.02) 100%);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.accountMain .card:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--ink-rgb), 0.24);
  background: radial-gradient(120% 140% at 30% 10%, rgba(var(--ink-rgb), 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.02) 100%);
}

.accountNav__link {
  position: relative;
  font-weight: 600;
}

.accountNav__link.is-active::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.85);
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb), 0.20), 0 0 18px rgba(var(--ink-rgb), 0.18);
}

.accountSidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ink-rgb), 0.35) rgba(255, 255, 255, 0.06);
}

.accountSidebar::-webkit-scrollbar {
  width: 10px;
}

.accountSidebar::-webkit-scrollbar-thumb {
  background: rgba(var(--ink-rgb), 0.30);
  border-radius: 999px;
  border: 3px solid rgba(7, 10, 15, 0.75);
}

.accountSidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #36428c;
  /* #36428c - Lighter blue match */
  transition: background var(--dur) var(--ease);
}

.header.is-elevated {
  background: #36428c;
}

html[data-theme="light"] .header {
  background: #36428c;
}

html[data-theme="light"] .header.is-elevated {
  background: #36428c;
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

@media (min-width: 921px) {

  .header__top-left,
  .header__top-right {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .header__top-right {
    justify-content: flex-end;
  }
}

.header__top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__contact {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  font-size: 15px;
  text-decoration: none;
}

.header__divider {
  display: none;
}

.header__bottom {
  background: #111a3c;
}

.header__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.brand__logo {
  height: clamp(76px, 9vw, 92px);
  width: clamp(76px, 9vw, 92px);
  object-fit: contain;
  border-radius: 2px;
}

.brand__name {
  font-family: "Optima", "URW Classico", sans-serif;
  font-size: 21px;
  /* Reduced from 24px */
  letter-spacing: 0.3em;
  color: #B30000;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
  /* Red color exactly matching the logo text */
}

.brand:hover .brand__name {
  color: #000000;
}

.brand__reg {
  font-size: 0.35em;
  /* Further reduced to 0.35em */
  vertical-align: super;
  position: relative;
  top: -1.0em;
  /* Adjusted position for smaller size */
  margin-left: -1px;
}

.nav {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.nav__panel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  /* Reduced gap since links now have larger padding for mouse targets */
}

.nav__link {
  font-family: 'Optima Pro', 'Optima', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 0;
  padding: 24px 16px;
  /* Expanded padding to make background full height of header bottom */
  transition: all var(--dur) var(--ease);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.nav__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav__link.is-active {
  color: #ffffff;
}

/* прозорий білий шар (membership-btn style) */
.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* постійний ефект для виділених посилань (register) */
.nav__link--highlight::before {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}

.nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__dropdownPanel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  /* Remove gap so it connects to the button above */
  background: #ffffff;
  border: none;
  border-radius: 0;
  /* Make it completely square */
  padding: 0;
  /* Removed padding so links touch seamlessly */
  min-width: 100%;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  overflow: hidden;
  /* Added to clip square hover borders within the rounded panel */
}

html[data-theme="light"] .nav__dropdownPanel {
  background: #ffffff;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav__dropdown:hover .nav__dropdownPanel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdownPanel .nav__link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 24px 16px;
  /* Match the 24px vertical padding of the main nav links so height is exactly the same */
  border-radius: 0;
  /* Make buttons square */
  color: #111a3c;
}

.nav__dropdownPanel .nav__link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111a3c;
}

.nav__langWrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  color: #ffffff;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  /* Slightly smaller */
  font-weight: 600;
}

.nav__lang a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.nav__lang a:hover {
  color: var(--text);
}

.nav__iconLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  /* Reduced paddings */
  font-size: 13px;
  /* Smaller font inside if any */
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav__iconLink:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.scroll-top-btn {
  position: fixed;
  bottom: 96px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background-color: #dceaf5;
  color: #000;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: #c5d8ea;
  transform: translateY(-3px);
}

html[data-theme="light"] .scroll-top-btn {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nav__iconText {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.authTabs {
  display: flex;
  gap: 10px;
  margin: 14px 0 10px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.authTab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.authTab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.authPanel {
  margin-top: 10px;
}

.nav__cta {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.14);
  border: 1px solid rgba(var(--ink-rgb), 0.28);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav__cta:hover {
  transform: translateY(-1px);
  background: rgba(var(--ink-rgb), 0.18);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav__toggleLines {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
  margin: 0 auto;
}

.nav__toggleLines::before,
.nav__toggleLines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav__toggleLines::before {
  top: 0;
}

.nav__toggleLines::after {
  top: 10px;
}

.nav.is-open .nav__toggleLines::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggleLines::after {
  top: 5px;
  transform: rotate(-45deg);
}

html[data-theme="light"] .nav__toggle {
  border-color: rgba(var(--ink-rgb), 0.12);
  background: rgba(var(--ink-rgb), 0.06);
}

html[data-theme="light"] .nav__toggleLines::before,
html[data-theme="light"] .nav__toggleLines::after {
  background: rgba(var(--ink-rgb), 0.85);
}

.hero {
  position: relative;
  overflow: clip;
}


/* Background Utility Classes */
.bg-white {
  background-color: #ffffff !important;
  color: #11214a !important;
}

.bg-white .h1,
.bg-white .h2,
.bg-white .h3,
.bg-white .card__title,
.bg-white .trust__title {
  color: #11214a !important;
}

.bg-white .lead,
.bg-white .muted,
.bg-white .card__text,
.bg-white .trust__desc,
.bg-white .eyebrow {
  color: rgba(17, 33, 74, 0.8) !important;
}

.bg-white .button--ghost {
  border-color: rgba(17, 33, 74, 0.2);
  color: #11214a;
}

.bg-white .button--ghost:hover {
  background: rgba(17, 33, 74, 0.05);
}

.bg-white .glass {
  background: #f7f9fc !important;
  border-color: rgba(17, 33, 74, 0.1) !important;
}

/* bg-white text color overrides */
.bg-white {
  color: #374151 !important;
}

.bg-white .h1,
.bg-white .h2,
.bg-white .h3,
.bg-white .card__title,
.bg-white .trust__title {
  color: #374151 !important;
}

.bg-white .lead,
.bg-white .muted,
.bg-white .card__text,
.bg-white .trust__desc,
.bg-white .eyebrow,
.bg-white .card__item {
  color: rgba(17, 26, 60, 0.75) !important;
}

/* bg-white text overrides for lists and tables */
.bg-white .list {
  color: rgba(17, 26, 60, 0.86) !important;
}
.bg-white .list li {
  color: rgba(17, 26, 60, 0.68) !important;
}
.bg-white .compareTable {
  border-color: rgba(17, 26, 60, 0.14) !important;
  background: rgba(17, 26, 60, 0.04) !important;
}
.bg-white .compareTable__row {
  border-bottom-color: rgba(17, 26, 60, 0.12) !important;
}
.bg-white .compareTable__head {
  background: rgba(17, 26, 60, 0.08) !important;
  color: rgba(17, 26, 60, 0.66) !important;
}
.bg-white .compareTable__label {
  color: rgba(17, 26, 60, 0.9) !important;
}
.bg-white .compareTable__cell {
  color: rgba(17, 26, 60, 0.8) !important;
}
.bg-white .tabs__nav {
  border-bottom-color: rgba(17, 26, 60, 0.1) !important;
}
.bg-white .tabs__btn {
  color: rgba(17, 26, 60, 0.68) !important;
}
.bg-white .tabs__btn:hover {
  color: rgba(17, 26, 60, 0.9) !important;
  background: rgba(17, 26, 60, 0.05) !important;
}
.bg-white .tabs__btn.is-active {
  color: var(--accent) !important;
}

.bg-white .card,
html[data-theme="light"] .card,
.bg-white .service,
html[data-theme="light"] .service,
.bg-white .countryCard,
html[data-theme="light"] .countryCard,
.bg-white .infoCard,
html[data-theme="light"] .infoCard {
  background: #111a3c !important;
  border-color: rgba(17, 26, 60, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  color: #ffffff !important;
}

/* Ensure text inside dark cards on white background is white */
.bg-white .service .h2,
.bg-white .service .h3,
.bg-white .service .h4,
.bg-white .service .lead,
.bg-white .service .muted,
.bg-white .service .tiny,
.bg-white .service li,
.bg-white .service strong,
.bg-white .service .countryCard__title,
.bg-white .service span {
  color: #ffffff !important;
}

.bg-white .field__label {
  color: #374151 !important;
}

.bg-white .input,
.bg-white .textarea {
  background: rgba(35, 42, 94, 0.08);
  /* slightly lighter than cards */
  border-color: rgba(17, 26, 60, 0.15);
  color: #111a3c;
}

.bg-white .input::placeholder,
.bg-white .textarea::placeholder {
  color: rgba(17, 26, 60, 0.5);
}

.bg-white .input:focus,
.bg-white .textarea:focus {
  border-color: #a81420;
  box-shadow: 0 0 0 4px rgba(168, 20, 32, 0.1);
}

.bg-white .field__hint {
  color: rgba(17, 26, 60, 0.6) !important;
}

/* bg-blue color overrides (placed after bg-white to ensure higher precedence) */
.bg-blue {
  background-color: #ffffff !important;
  color: var(--text) !important;
}

.bg-blue .h1,
.bg-blue .h2,
.bg-blue .h3,
.bg-blue .card__title,
.bg-blue .trust__title {
  color: var(--text) !important;
}

.bg-blue .lead,
.bg-blue .muted,
.bg-blue .card__text,
.bg-blue .trust__desc,
.bg-blue .eyebrow,
.bg-blue .card__item {
  color: var(--text-muted) !important;
}

/* Ensure cards on blue background are white with dark text */
/* Ensure cards on blue background are white with dark text */
.bg-blue .card,
html[data-theme="dark"] .card:not(.bg-white .card),
.bg-blue .countryCard,
html[data-theme="dark"] .countryCard:not(.bg-white .countryCard),
.bg-blue .infoCard,
html[data-theme="dark"] .infoCard:not(.bg-white .infoCard) {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-blue .service,
html[data-theme="dark"] .service:not(.bg-white .service) {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bg-blue .card .h1,
.bg-blue .card .h2,
.bg-blue .card .h3,
.bg-blue .card .h4,
.bg-blue .card .lead,
.bg-blue .card .muted,
.bg-blue .card .tiny,
.bg-blue .card li,
.bg-blue .card strong,
.bg-blue .card .card__title,
.bg-blue .card span,
.bg-blue .card .note__text,
html[data-theme="dark"] .card:not(.bg-white .card) .h1,
html[data-theme="dark"] .card:not(.bg-white .card) .h2,
html[data-theme="dark"] .card:not(.bg-white .card) .h3,
html[data-theme="dark"] .card:not(.bg-white .card) .h4,
html[data-theme="dark"] .card:not(.bg-white .card) .lead,
html[data-theme="dark"] .card:not(.bg-white .card) .muted,
html[data-theme="dark"] .card:not(.bg-white .card) .tiny,
html[data-theme="dark"] .card:not(.bg-white .card) li,
html[data-theme="dark"] .card:not(.bg-white .card) strong,
html[data-theme="dark"] .card:not(.bg-white .card) .card__title,
html[data-theme="dark"] .card:not(.bg-white .card) span,
html[data-theme="dark"] .card:not(.bg-white .card) .note__text {
  color: #374151 !important;
}

.bg-blue .service .h1,
.bg-blue .service .h2,
.bg-blue .service .h3,
.bg-blue .service .h4,
.bg-blue .service .lead,
.bg-blue .service .muted,
.bg-blue .service .tiny,
.bg-blue .service li,
.bg-blue .service strong,
.bg-blue .service .countryCard__title,
.bg-blue .service span,
html[data-theme="dark"] .service:not(.bg-white .service) .h1,
html[data-theme="dark"] .service:not(.bg-white .service) .h2,
html[data-theme="dark"] .service:not(.bg-white .service) .h3,
html[data-theme="dark"] .service:not(.bg-white .service) .h4,
html[data-theme="dark"] .service:not(.bg-white .service) .lead,
html[data-theme="dark"] .service:not(.bg-white .service) .muted,
html[data-theme="dark"] .service:not(.bg-white .service) .tiny,
html[data-theme="dark"] .service:not(.bg-white .service) li,
html[data-theme="dark"] .service:not(.bg-white .service) strong,
html[data-theme="dark"] .service:not(.bg-white .service) .countryCard__title,
html[data-theme="dark"] .service:not(.bg-white .service) span {
  color: #ffffff !important;
}

.bg-blue .card .note,
html[data-theme="dark"] .card:not(.bg-white .card) .note {
  background: rgba(17, 26, 60, 0.05) !important;
  border-color: rgba(17, 26, 60, 0.1) !important;
}

.bg-blue .card .link,
html[data-theme="dark"] .card:not(.bg-white .card) .link {
  color: #203a7a;
}

.bg-blue .card .link:hover,
html[data-theme="dark"] .card:not(.bg-white .card) .link:hover {
  color: #11214a;
}

.bg-blue .card .button,
html[data-theme="dark"] .card:not(.bg-white .card) .button,
.bg-blue .service .button,
html[data-theme="dark"] .service:not(.bg-white .service) .button {
  color: #ffffff !important;
}

.bg-blue .button--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.bg-blue .button--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bg-blue .glass {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-services {
  background-image: none !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-contact {
  background-image: none !important;
  background-color: #ffffff !important;
  position: relative;
  z-index: 1;
}

.bg-contact .h2, 
.bg-contact .muted, 
.bg-contact .field__label {
  color: #000000 !important;
}

.bg-contact .input, 
.bg-contact select.input, 
.bg-contact textarea.input {
  background-color: #f4f4f5 !important;
  color: #374151 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.bg-contact .input::placeholder {
  color: rgba(0, 0, 0, 0.45) !important;
}

.bg-footer {
  background-image: none !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-page-premium {
  background-image: none !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

.hero__bg {
  display: block;
  /* Restored visibility for the sky background picture */
}

@keyframes floatBg {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(26px);
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  padding: 74px 0 56px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #B30000;
  font-family: "Optima", "URW Classico", sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: #D9D9D9;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}



.hero .h1,
.bg-white.hero .h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal;
  color: #ffffff !important;
}

.h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.02em;
}

.h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
}

.hero .lead {
  font-family: 'Proxima Nova', sans-serif;
}

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

.tiny {
  font-size: 12px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: #203a7a;
  border-color: #34519e;
  color: #ffffff;
}

.button--primary:hover {
  background: #2c4ba3;
  color: #ffffff;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button--gray-border {
  background: transparent;
  border: 1px solid #808080 !important;
  border-radius: 0 !important;
  color: #B30000;
  font-family: "Optima", "URW Classico", sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.button--gray-border:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.trust {
  padding: 14px 14px;
  border-radius: 0;
  border: 1px solid #808080;
  background: rgba(255, 255, 255, 0.04);
}

.trust__title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  font-family: 'Optima', sans-serif;
}

.trust__desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero__card {
  position: sticky;
  top: 92px;
}

.card {
  padding: 18px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.14);
}

.bg-white .glass,
html[data-theme="light"] .glass {
  background: #111a3c !important;
  border-color: rgba(17, 26, 60, 0.1);
  color: #ffffff !important;
  --muted: rgba(255, 255, 255, 0.7);
  --text: #ffffff;
}

.bg-white .glass .card__title,
html[data-theme="light"] .glass .card__title,
.bg-white .glass .card__text,
html[data-theme="light"] .glass .card__text,
.bg-white .glass .card__list,
html[data-theme="light"] .glass .card__list,
.bg-white .glass .card__item,
html[data-theme="light"] .glass .card__item,
.bg-white .glass span,
html[data-theme="light"] .glass span,
.bg-white .glass strong,
html[data-theme="light"] .glass strong,
.bg-white .glass .muted,
html[data-theme="light"] .glass .muted,
.bg-white .glass p,
html[data-theme="light"] .glass p,
.bg-white .glass .note__text,
html[data-theme="light"] .glass .note__text {
  color: #ffffff !important;
}

.bg-white .glass .note,
html[data-theme="light"] .glass .note {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white .glass .link,
html[data-theme="light"] .glass .link {
  color: #78c3ff;
}

.bg-white .glass .link:hover,
html[data-theme="light"] .glass .link:hover {
  color: #ffffff;
}

.card__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card__text {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.card__list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.card__item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(var(--ink-rgb), 0.8);
  box-shadow: 0 8px 20px rgba(var(--ink-rgb), 0.16);
}

.link {
  color: rgba(var(--ink-rgb), 0.92);
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section {
  padding: 76px 0;
}

.section--alt {
  background:
    radial-gradient(800px 500px at 10% 20%, rgba(184, 22, 35, 0.08), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(var(--ink-rgb), 0.10), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section__head {
  display: grid;
  gap: 10px;
  max-width: 70ch;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

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

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

.service {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 645px;
  padding: 22px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.service:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.service>.button,
.service>a.button {
  margin-top: 32px;
  width: 100%;
  justify-content: center;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(17, 26, 60, 0.2);
  border-radius: 6px;
  font-size: 13px !important;
  color: #374151 !important;
  font-weight: normal;
  padding: 10px;
  text-transform: none;
  line-height: 1.4;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.service>.button:hover,
.service>a.button:hover {
  background: rgba(17, 26, 60, 0.05);
  border-color: rgba(17, 26, 60, 0.4);
}

.service--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service--link:focus-visible {
  outline: 2px solid rgba(var(--ink-rgb), 0.55);
  outline-offset: 3px;
}

.service .countryCard__title span,
.service .h3 {
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  font-family: 'Optima', sans-serif !important;
  letter-spacing: normal !important;
  color: #374151 !important;
}


.countryCard__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.countryFlag {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.30);
}

/* =========================
   Service Tabs
   ========================= */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.tab-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-button.active,
.tab-button:hover {
  background: #fff;
  color: #111a3c;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================
   Country cards sizing
   ========================= */
.countryGrid {
  gap: 18px;
}



.countryGrid .countryCard__title {
  font-size: 20px;
  gap: 12px;
}

.countryGrid .countryFlag {
  width: 34px;
  height: 22px;
  border-radius: 6px;
}

.countryGrid .divider {
  margin: 16px 0;
}

.countryGrid .button {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.84);
}

.list li {
  margin: 6px 0;
  color: var(--muted);
}

.note {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.note__icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: rgba(184, 22, 35, 0.14);
  border: 1px solid rgba(184, 22, 35, 0.24);
}

.note__text {
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 16px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.step__num {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(var(--ink-rgb), 0.9);
}

.step__title {
  font-weight: 600;
}

.step__desc {
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

.stat {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.stat__value {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat__label {
  color: var(--muted);
  margin-top: 6px;
}

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

.quote {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.quote footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.faq__item {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
}

.faq__item>summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  font-weight: 600;
}

.faq__item>summary::-webkit-details-marker {
  display: none;
}

.faq__content {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.6;
}

.compareTable {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  overflow: auto;
}

.compareTable__row {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(160px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compareTable__row:last-child {
  border-bottom: none;
}

.compareTable__head {
  background: rgba(10, 12, 16, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

.compareTable__label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.compareTable__cell {
  color: rgba(255, 255, 255, 0.82);
}

.compareTable__cell .badge {
  margin-right: 6px;
}

.calc {
  display: grid;
  gap: 12px;
}

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

.form {
  padding: 18px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.input,
.textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  color: rgba(255, 255, 255, 0.92);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 0, right 12px center;
  background-size: auto, 16px 16px;
}

select.input:focus {
  border-color: rgba(var(--ink-rgb), 0.45);
}

select.input option {
  color: #e9edf5;
  background: #0f1218;
}

select.input optgroup {
  color: #e9edf5;
  background: #0f1218;
}

.input:focus,
.textarea:focus {
  border-color: rgba(var(--ink-rgb), 0.35);
  background: rgba(0, 0, 0, 0.32);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.form__status {
  margin: 10px 0 0;
  color: var(--faint);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 14px 0;
}

.footer {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.16);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer__left,
.footer__right {
  flex: 1 1 250px;
}

.footer__center {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 15px;
}

.footer__right {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

.footer__policy-link {
  color: inherit;
  text-decoration: none;
}

.footer__policy-link:hover {
  text-decoration: underline;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer__brand img {
  display: block;
  max-width: 100%;
}

.footer__brand img[alt="Come Back Alive"],
.footer__brand img[alt="Р СџР С•Р Р†Р ВµРЎР‚Р Р…Р С‘РЎРѓРЎРЉ Р В¶Р С‘Р Р†Р С‘Р С"] {
  height: 56px;
  width: auto;
}

.footer__brand img[alt="United24"] {
  height: 18px;
  width: auto;
}

.footer__content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__links {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__links .link--featured {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--text);
  /* making it a bit brighter than normal footer links */
}

/* =========================
  Marketplace
   ========================= */
.autoLayout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}

.autoFilters {
  position: sticky;
  top: 92px;
}

.autoFilters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.autoFilters__grid {
  display: grid;
  gap: 12px;
}

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

.autoResults__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.autoResults__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.carCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 14px;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.carCard:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--ink-rgb), 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.carCard:focus-visible {
  outline: 2px solid rgba(var(--ink-rgb), 0.65);
  outline-offset: 2px;
}

.carCard__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.carCard__price {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: rgba(245, 240, 230, 0.98);
}

.carCard__title {
  font-weight: 650;
  font-size: 16px;
}

.carCard__meta {
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
}

.carCard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.pill--danger {
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(255, 120, 120, 0.14);
  color: rgba(255, 220, 220, 0.95);
}

.pill--warn {
  border-color: rgba(255, 220, 140, 0.34);
  background: rgba(255, 220, 140, 0.16);
  color: rgba(255, 238, 210, 0.95);
}

.pill--ok {
  border-color: rgba(140, 255, 200, 0.30);
  background: rgba(140, 255, 200, 0.12);
  color: rgba(215, 255, 235, 0.95);
}

.autoEmpty {
  margin-top: 14px;
}

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

.uploadItem {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 4 / 3;
}

.uploadItem img,
.uploadItem video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.autoDialog {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0;
  width: min(920px, calc(100vw - 28px));
  background: rgba(10, 12, 16, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.autoDialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.autoDialog__inner {
  padding: 16px;
}

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

.autoDialog__title {
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.autoDialog__sub {
  font-size: 13px;
}

.autoDialog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.autoDialog__card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.autoDialog__price {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.autoKV {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.autoKV:last-child {
  border-bottom: none;
}

.button--sm {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* Account */
.accountLayout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.accountSidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.accountSidebar__head {
  display: grid;
}

.accountSidebar__actions {
  display: grid;
  gap: 10px;
}

.accountNav {
  display: grid;
  gap: 8px;
}

.accountNav__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.accountNav__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
}

.accountNav__link.is-active {
  background: rgba(var(--ink-rgb), 0.14);
  border-color: rgba(var(--ink-rgb), 0.28);
}

.accountMain {
  min-width: 0;
}

.accountSection {
  min-width: 0;
}

.accountSpacer {
  margin-top: 18px;
}

/* Make dashboard cards align nicely (same height, actions pinned) */
.accountMain .grid--2>.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.accountMain .grid--2>.card .form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.accountMain .grid--2>.card .form__actions {
  margin-top: auto;
}

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

.accountRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accountRow__check {
  display: flex;
  align-items: flex-start;
}

.accountRow__check input {
  margin-top: 3px;
}

.accountRow__main {
  flex: 1;
  min-width: 0;
}

.accountRow:last-child {
  border-bottom: none;
}

.accountRow__title {
  font-weight: 650;
}

.accountRow__meta {
  font-size: 13px;
}

.accountRow__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.taskBulkBar {
  flex-wrap: wrap;
}

.bulkSelect {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CRM polish */
.accountMain {
  position: relative;
}

.accountMain::before,
.accountMain::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
}

.accountMain::before {
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(var(--ink-rgb), 0.16), rgba(var(--ink-rgb), 0));
  opacity: 0.7;
}

.accountMain::after {
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(120, 195, 255, 0.18), rgba(120, 195, 255, 0));
  opacity: 0.55;
}

.accountMain>.accountSection {
  position: relative;
  z-index: 1;
}

.accountMain .section__head {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.accountSidebar {
  background: radial-gradient(120% 120% at 20% 10%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 60%, rgba(7, 10, 15, 0.60) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.accountNav__link {
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.accountNav__link:hover {
  transform: translateY(-1px);
}

.accountNav__link.is-active {
  background: rgba(var(--ink-rgb), 0.14);
  border-color: rgba(var(--ink-rgb), 0.30);
  box-shadow: 0 10px 26px rgba(var(--ink-rgb), 0.12);
}

.accountRow {
  padding: 10px 8px;
  border-radius: 12px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.accountRow:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(var(--ink-rgb), 0.22);
  transform: translateY(-1px);
}

.accountRow__meta .badge {
  font-size: 11px;
  padding: 3px 8px;
}

.accountRow__actions .button {
  border-radius: 999px;
}

.crmQuick {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.16);
}

.quickActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quickActions .button {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.quickActions .button--primary {
  box-shadow: 0 12px 26px rgba(var(--ink-rgb), 0.20);
}

.crmCard {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.crmCard:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--ink-rgb), 0.30);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.crmCard__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.crmCard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.crmCard__actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.crmCard__actions .accountRow__actions {
  gap: 6px;
}

.crmColumn__body {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ink-rgb), 0.35) rgba(255, 255, 255, 0.04);
}

.crmColumn__body::-webkit-scrollbar {
  width: 10px;
}

.crmColumn__body::-webkit-scrollbar-thumb {
  background: rgba(var(--ink-rgb), 0.30);
  border-radius: 999px;
  border: 3px solid rgba(7, 10, 15, 0.75);
}

.crmColumn__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.dataTable__row:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.015);
}

.dataTable__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dataTable__head {
  backdrop-filter: blur(10px);
}

.dataTable__actions .button {
  border-radius: 999px;
}

.searchDropdown {
  backdrop-filter: blur(12px);
}

.searchItem__tag {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.input:focus,
.textarea:focus {
  box-shadow: 0 0 0 2px rgba(var(--ink-rgb), 0.16);
}

/* CRM */
.crmBoard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.crmColumn {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  min-height: 120px;
}

.crmColumn__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 15, 0.35);
}

.crmColumn__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.crmColumn__count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.crmColumn__body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.crmCard {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.crmCard__title {
  font-weight: 700;
}

.crmCard__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.crmCard__meta {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.crmCard__actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.pillRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

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

  .accountSidebar {
    position: relative;
    top: auto;
  }

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

  .autoFilters {
    position: relative;
    top: auto;
  }

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

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

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Utilities */
.grid--2 {
  display: grid;
  /* Ensure it's a grid if not already inheriting */
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Responsive */
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__card {
    position: relative;
    top: auto;
  }

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

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

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

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

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

  .footer__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 24px;
  }

  .footer__content {
    justify-content: center;
  }

  .nav__langWrapper {
    margin-right: 0;
    justify-content: center;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);

    /* Ensure visible on mobile (overrides global opacity) */
    display: flex;
    flex-direction: column;

    min-width: 260px;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(7, 10, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  html[data-theme="light"] .nav__panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(var(--ink-rgb), 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  }

  .nav.is-open .nav__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__cta {
    text-align: center;
  }

  .nav__panel .nav__link {
    text-align: center;
    justify-content: center;
  }

  .nav__panel .nav__dropdown {
    justify-content: center;
  }

  .theme-switch {
    width: 64px;
    height: 64px;
    bottom: 96px;
    right: 20px;
  }

  .theme-switch-thumb {
    width: 58px;
    height: 58px;
  }

  .theme-icon {
    width: 26px;
    height: 26px;
    top: 19px;
    left: 19px;
  }
}

/* CRM Mobile Fixes */
@media (max-width: 1024px) {
  .crmBoard {
    /* Ensure kanban scrolls horizontally */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
  }

  .crmColumn {
    flex: 0 0 85vw;
    /* Almost full width cards on mobile */
    scroll-snap-align: center;
    min-width: 280px;
  }

  .dataTableWrap {
    /* Ensure tables scroll horizontally */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dataTable {
    /* Force min-width to trigger scroll */
    min-width: 800px;
  }

  .accountLayout {
    grid-template-columns: 1fr !important;
  }

  /* Show sidebar on mobile as a compact horizontal bar */
  .accountSidebar {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    top: auto;
    z-index: 5;
    /* Ensure it stays above if needed */
    padding: 12px;
    margin-bottom: 20px;
  }

  .accountSidebar__head {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .accountSidebar .divider {
    display: none;
  }

  .accountNav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 8px;
    margin-top: 10px;
  }

  .accountSidebar__actions {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Inbox / Chat Layout */
.inbox {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 140px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.inbox__sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
}

.inbox__main {
  display: flex;
  flex-direction: column;
  background: transparent;
  min-width: 0;
}

.inbox__header,
.chat__header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.chat__back {
  display: none;
}

/* Inbox Mobile */
@media (max-width: 768px) {
  .inbox {
    grid-template-columns: 1fr;
    height: calc(100vh - 120px);
    /* Adjust for mobile header/nav */
  }

  .inbox__sidebar {
    width: 100%;
    border-right: none;
  }

  .inbox__main {
    display: none;
    /* Hidden by default on mobile */
    width: 100%;
    height: 100%;
  }

  .inbox.is-chat-open .inbox__sidebar {
    display: none;
  }

  .inbox.is-chat-open .inbox__main {
    display: flex;
  }

  .chat__back {
    display: inline-flex;
    margin-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__bg {
    animation: none;
  }

  .reveal {
    transition: none;
  }

  .button,
  .nav__panel,
  .header {
    transition: none;
  }

  html.is-loading .stamper {
    animation: none;
    opacity: 0;
  }

  html.is-loading .stamp {
    animation: none;
    opacity: 1;
    transform: rotate(-10deg);
    filter: none;
  }

  .pageLoader {
    transition: none;
  }
}

/* Loader Disabled */
#page-loader {
  display: none !important;
}

/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™
   TABS COMPONENT
   Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.tabs {
  margin-top: 40px;
}

.tabs__nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.tabs__btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tabs__btn:hover {
  color: var(--text);
  background: var(--panel);
  border-radius: 8px 8px 0 0;
}

.tabs__btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tabs__content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tabs__content.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */
.mt-10 {
  margin-top: 10px !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.mt-24 {
  margin-top: 24px !important;
}

.pt-0 {
  padding-top: 0 !important;
}

/* ----- Cookie Consent Banner ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  z-index: 99999;
  /* Increased to ensure it's above everything */
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
  }
}

.cookie-banner__content p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner__content strong {
  color: var(--text);
  font-weight: 600;
}

.cookie-banner__link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  text-decoration-thickness: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Light theme overrides for Cookie Banner */
html[data-theme="light"] .cookie-banner {
  background: rgba(244, 247, 251, 0.95);
  box-shadow: 0 -10px 40px rgba(var(--ink-rgb), 0.1);
}

/* ----------------------------------- */

/* Block Header Search */
.header-search {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 32px;
  width: 240px;
}

.header-search__input {
  flex: 1;
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0 12px;
  font-size: 15px;
  color: #333;
  outline: none;
  min-width: 0;
}

.header-search__input::placeholder {
  color: #666;
}

.header-search__button {
  background: #a81420;
  /* Red matching the trademark name */
  color: #ffffff;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.header-search__button:hover {
  background: #8e101a;
}

.header-search__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: rgba(var(--ink-rgb), 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

html[data-theme="light"] .header-search__results {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-search__results.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search__result-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  text-decoration: none;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
  color: var(--text);
}

html[data-theme="light"] .header-search__result-item {
  border-bottom-color: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.header-search__result-item:last-child {
  border-bottom: none;
}

.header-search__result-item:hover,
.header-search__result-item:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

html[data-theme="light"] .header-search__result-item:hover,
html[data-theme="light"] .header-search__result-item:focus {
  background: rgba(0, 0, 0, 0.04);
}

.header-search__result-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.header-search__result-type {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-search__empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .header-search {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .header-search {
    display: none;
  }
}

.header__top {
  background-color: #182c5b;
  color: #ffffff;
}

.header__top-right a,
.header__top-right svg,
.header__top-right span {
  color: #ffffff !important;
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */
.promo-section {
  width: 100%;
  background: var(--surface-2);
  /* Dark sleek background */
  color: #ffffff;
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle separation from hero */
  position: relative;
  display: flex;
  align-items: center;
}

html[data-theme="light"] .promo-section {
  background: #f8fafc;
  /* Very light cool gray for light mode */
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.promo-banner__track {
  display: flex;
  width: max-content;
  animation: scrollPromo 35s linear infinite;
}

.promo-banner__track:hover {
  animation-play-state: paused;
  /* Pause on hover for readability */
}

.promo-banner__content {
  display: flex;
  gap: 3rem;
  /* Space between phrases */
  padding-right: 3rem;
  /* Crucial for seamless looping: must match gap */
  align-items: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.promo-dot {
  color: rgba(168, 20, 32, 0.8);
  /* Signature red for bullet points */
  margin-right: 0.5rem;
  font-size: 1.2em;
  /* slightly larger dot */
  vertical-align: middle;
}

@keyframes scrollPromo {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Moves exactly halfway since content is duplicated */
}

/* Hero Section Core */
.hero {
  position: relative;
  overflow: hidden;
}

/* Hero Background Video */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.9;
}

/* Make the hero glass card transparent to see the background */
.hero .glass {
  background: rgba(17, 26, 60, 0.45) !important;
  backdrop-filter: blur(6px) !important;
}

/* Temporarily hide the "What we do" card based on user request */
.hero__card {
  display: none !important;
}

/* Service Card Hover Zoom */
.service img {
  transition: transform 0.4s ease;
}

.service:hover img {
  transform: scale(1.05);
}

/* Force clean, lighter font on Hero section subtitle as requested by user image */
.hero h1,
.hero .h1 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
}

/* 4-column minimal grid - Constrained for smaller cards */
.grid--4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
}

/* Homepage Countries Background */
section#countries {
  background-image: none !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  padding-top: 8vw;
  padding-bottom: 8vw;
}

section#countries::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none !important;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}

html[data-theme="dark"] section#countries::before {
  background-color: rgba(3, 7, 18, 0.4);
}

/* Countries Carousel */
.countries-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  /* padding for the hover box-shadow */
}

.countryGrid {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 15px;
}

/* 5 items visible per view */
.countryGrid>.service {
  flex: 0 0 calc((100% - (15px * 4)) / 5);
  min-width: 0;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(168, 20, 32, 0.8);
  border-color: rgba(168, 20, 32, 1);
}

.carousel-btn.prev {
  left: -22px;
}

.carousel-btn.next {
  right: -22px;
}

/* Hover Reveal Card Effect for Country Cards with Red Glow */
.countryGrid .service {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Align content to the bottom */
  /* Center horizontally */
  aspect-ratio: 3 / 4 !important;
  /* Make cards a bit wider to prevent text overlap */
  padding: 1rem;
  /* Inner spacing */
  background-color: var(--panel);
  text-align: center;
  height: auto !important;
  min-height: auto !important;
}

/* Legacy Background Map Styling removed */

.countryGrid .countryCard__title {
  display: none !important;
}

.countryGrid .countryCard__title span {
  font-family: inherit;
  /* Will be overridden by .brand__name font below */
  font-size: 21px;
  /* Match brand__name font size */
  font-weight: 600;
  text-transform: uppercase;
}

.countryGrid .countryFlag {
  width: 36px;
  /* Smaller flag */
  height: auto;
  border-radius: 3px;
}

.countryGrid .divider {
  display: none;
  /* Hide divider for a cleaner card look */
}

.countryGrid .service:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: var(--accent) !important;
}



@media (max-width: 1000px) {

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

@media (max-width: 600px) {

  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }
}



.countryCard__photo {
  display: none !important;
}



#countries .service,
.grid-countries-homepage .service,
.grid--5.countryGrid .service {
  background: var(--accent) !important;
  /* Use the brand blue */
  border-color: rgba(255, 255, 255, 0.1) !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  /* Wider cards (3/4 aspect ratio) */
}

/* Use CSS mask to perfectly match card background var(--accent) */
#countries .service .countryCard__map,
.grid-countries-homepage .service .countryCard__map,
.grid--5.countryGrid .service .countryCard__map {
  position: absolute;
  top: 26px;
  right: 26px;
  left: auto;
  width: 68px !important;
  height: 68px !important;

  /* Mask configurations */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  /* The visible color is defined by a gradient to allow shimmering transition */
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 40%, rgba(255, 255, 255, 0.8) 50%, #ffffff 60%, #ffffff 100%);
  background-size: 250% 100%;
  background-position: 0% 0;
  opacity: 1;
  transition: background-position 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 4;

  transform-origin: top right;
  transform: translateZ(0) !important;
  will-change: transform, background-position, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* The black corner block behind the map icon */
#countries .service::after,
.grid-countries-homepage .service::after,
.grid--5.countryGrid .service::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background-color: #1f2937;
  /* Removed border radius */
  z-index: 3;
  pointer-events: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  transform-origin: top right;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#countries .service:hover .countryCard__map,
.grid-countries-homepage .service:hover .countryCard__map,
.grid--5.countryGrid .service:hover .countryCard__map {
  /* Scale up and sweep gradient to pure white */
  transform: scale(1.15) translateZ(0) !important;
  background-position: 100% 0 !important;
  opacity: 1 !important;
}

#countries .service:hover::after,
.grid-countries-homepage .service:hover::after,
.grid--5.countryGrid .service:hover::after {
  /* Scale the black block along with the map */
  transform: scale(1.15) !important;
  background-color: #374151;
}

/* Document style text for Country Cards */
.countryCard__docs {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  z-index: 5;
  pointer-events: none;
}

.countryCard__docs-top {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: top left;
  will-change: transform, opacity;
}

#countries .service:hover .countryCard__docs-top,
.grid-countries-homepage .service:hover .countryCard__docs-top,
.grid--5.countryGrid .service:hover .countryCard__docs-top {
  transform: scale(0.9) translate(-5px, 5px);
  opacity: 0.85;
}

.countryCard__docs-subtitle {
  font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.50rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  line-height: 1.3;
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.countryCard__docs-title {
  font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.countryCard__docs-prepared-under {
  display: block;
  font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif !important;
  font-size: 0.45rem !important;
  max-width: calc(100% - 92px) !important;
  margin-top: 32px !important;
  text-align: left;
  white-space: nowrap !important;
  transform: scale(0.65);
  transform-origin: left top;
}

/* Split Section Layout for Countries */
.split-section {
  position: relative;
  width: 100%;
}

.split-sidebar {
  margin-bottom: 24px;
}

@media (min-width: 1400px) {
  .split-sidebar {
    position: absolute;
    left: -260px;
    top: 0;
    width: 240px;
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .split-section {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
  }
  .split-sidebar {
    position: sticky;
    top: 100px;
  }
}

.split-content {
  width: 100%;
}

.hidden-country {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
}

.hidden-country.show-card {
  display: flex !important;
  animation: fadeUpIn 0.5s var(--ease) forwards;
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Force CSS specificity over html[data-theme="dark"] .service span to allow transparency */
html[data-theme="dark"] .service:not(.bg-white .service) span.countryCard__docs-prepared-under,
.countryCard__docs-prepared-under {
  color: rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="dark"] .service:not(.bg-white .service) span.countryCard__docs-prepared-under strong,
.countryCard__docs-prepared-under strong {
  display: block !important;
  width: 100% !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
}

.countryCard__docs-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.countryCard__docs-slogan {
  font-family: 'Avenir Next', 'Avenir', 'Nunito Sans', sans-serif !important;
  font-weight: bold !important;
  font-style: italic !important;
}

/* Removed obsolete unused class */

.countryCard__docs-company {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

#countries .service .h3 ,
.grid-countries-homepage .service .h3 {
  position: relative;
  z-index: 3;
}

/* =========================================================================
   NEW BANNER SECTION
   ========================================================================= */
/* =========================================================================
   FEATURES SECTION
   ========================================================================= */
.features-split { display: flex; gap: 8%; align-items: stretch; }
.features-split__image-col { flex: 0 0 48%; }
.features-tall-scroll {
  display: block;
  padding-top: 0vh;
  min-height: 150vh;
  padding-bottom: 20vh;
  padding-left: 20px;
}
.scrolling-text-block {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  max-width: 540px;
  margin-left: 0;
}
.features-badge {
  display: inline-block;
  border: 1px solid #718096;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  color: #4a5568;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.features-grid-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #1a202c;
}
.features-grid-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #4a5568;
}
.boundless-btn-primary {
  background-color: #2b3a6b;
  color: white;
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid #2b3a6b;
  transition: opacity 0.2s;
}
.boundless-btn-primary:hover {
  opacity: 0.9;
  color: white;
}
.boundless-btn-secondary {
  background-color: white;
  color: #2b3a6b;
  border: 1px solid #e2e8f0;
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.boundless-btn-secondary:hover {
  background-color: #f7fafc;
}
.features-split__image {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  width: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center 50%;
  height: 700px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.features-split__text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex: 0 0 42%;
}
.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.feature-item__icon {
  flex: 0 0 40px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  color: #111a3c;
}
.feature-item__icon svg {
  width: 40px;
  height: 40px;
}
.feature-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #111a3c;
  font-family: 'Avenir Next', 'Avenir', sans-serif;
}
.feature-item__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
@media (max-width: 900px) {
  .features-split {
    flex-direction: column;
    gap: 40px;
  }
  .features-split__image-col {
    width: 100%;
    flex: none;
  }
}

/* =========================================================================
   NEW BANNER SECTION - CAROUSEL
   ========================================================================= */
.banner--carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #ffffff;
    background-image: none;
    height: 853px;
}

.banner__slider-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.banner__slider-track {
  display: flex;
  height: 100%; /* Better top/bottom space, fully scaling */
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.banner__slide {
  flex: 0 0 auto; /* Strict aspect ratio respects width/height sizing */
  width: calc(100vw - 43px); /* Fill screen with 21.5px gap on edges */
  max-width: none; /* Let it stretch on all screens */
  height: 810px; /* Increased height */
  max-height: none; 
  aspect-ratio: auto; 
  margin: 0 15px; /* Gap */
  position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  transform: scale(0.95); /* Inactive scale */
  opacity: 0.6; /* Inactive opacity */
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #101a26;
  border-radius: 8px; /* Slightly rounder edges for premium look */
}

.banner__slide--wide {
  width: calc(100vw - 43px); /* Match the standard slide */
  max-width: none;
  height: 810px;
  max-height: none;
  aspect-ratio: auto;
}

.banner__slide.is-active {
  transform: scale(1);
  opacity: 1;
}

.banner__slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.banner__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner__slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(16, 26, 38, 0.95) 0%, rgba(16, 26, 38, 0.4) 60%, transparent 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner__slide.is-active .banner__slide-overlay {
  opacity: 1;
}

.banner__slide-content {
  position: relative;
  z-index: 2;
  padding: 0 10%; /* Center nicely inside the container width */
  width: 100%;
  max-width: 900px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin-top: -30px; /* Pull text block up so it's vertically centered ignoring dots below */
}

.banner__slide.is-active .banner__slide-content {
  opacity: 1;
  transform: translateY(0);
}

.banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.banner__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.banner__play-icon svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.banner__title {
  font-family: 'Avenir Next', 'Avenir', 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  /* Responsive typography to never overflow */
  line-height: 1.2;
  font-weight: 300;
  margin-bottom: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.5px;
  font-variant-ligatures: none;
}

.banner__desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 1.2rem; /* Reduced bottom gap to link */
  color: rgba(255, 255, 255, 0.85);
}

.banner__link {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.banner__link:hover {
  border-color: #ffffff;
}

.banner__controls {
  position: absolute;
  /* Bind controls closer to the bottom edge but perfectly visible */
  bottom: 30px; 
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
  gap: 24px;
  z-index: 10;
}

.banner__play-btn {
  background: none;
  border: 1px solid rgba(17, 26, 60, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111a3c;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.banner__play-btn:hover {
    border-color: #111a3c;
    background: rgba(17, 26, 60, 0.05);
}

.banner__play-btn svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.banner__dots {
  display: flex;
  gap: 16px;
  align-items: center;
}

.banner__dots .dot {
  width: 12px;
  /* Increased size */
  height: 12px;
  /* Increased size */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s, border 0.3s;
}

.banner__dots .dot.active {
    background: #000000;
    border: 2px solid #ffffff;
    transform: scale(1.3);
  }

  .banner__dots .dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .banner__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .banner {
    height: auto;
    min-height: 500px;
    padding: 80px 0 40px 0;
  }

  .banner__bg::after {
    background: linear-gradient(to right, rgba(16, 26, 38, 0.95) 0%, rgba(16, 26, 38, 0.8) 100%);
  }

  .banner__title {
    font-size: 1.8rem;
  }

  .banner__desc {
    font-size: 1rem;
  }

  .banner__controls {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}
/* Visa Card Styles (Services Page) */
.visaCard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  min-height: 440px;
  background: transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, box-shadow;
  /* Extra fixes for edge bleeding and jitter on PNGs/Webkit */
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  outline: 1px solid transparent; /* forces subpixel antialiasing */
}

.visaCard:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.visaCard__bg {
  position: absolute;
  /* extend slightly past edges to prevent transparent bleeding on transform */
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  max-width: none;
  min-height: 100%;
  object-fit: cover;
  border: none;
  background-color: transparent;
  transition: transform 0.8s var(--ease);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.visaCard:hover .visaCard__bg {
  transform: scale(1.05) translateZ(0);
}

.visaCard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.85) 100%);
  transition: background 0.5s var(--ease);
}

.visaCard:hover .visaCard__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.95) 100%);
}

.visaCard__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}

.visaCard__desc {
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0;
  font-weight: 400;
  color: #fff;
  max-width: 90%;
}

.visaCard__bottom {
  display: flex;
  flex-direction: column;
}

.visaCard__hoverContainer {
  height: 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.visaCard__hover {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.visaCard:hover .visaCard__hover {
  opacity: 1;
  transform: translateX(0);
}

.visaCard__hoverText {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.visaCard__hoverIcon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visaCard__line {
  height: 1px;
  background: rgba(255,255,255,0.4);
  width: 100%;
  margin-bottom: 24px;
  transition: background 0.4s var(--ease);
}

.visaCard:hover .visaCard__line {
  background: rgba(255,255,255,0.7);
}

.visaCard__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.visaCard__label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 6px;
}

.visaCard__title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -1px;
}

/* Make title smaller for long names */
.visaCard__title--long {
  font-size: 3rem;
}

.visaCard__title--verylong {
  font-size: 2.2rem;
}
/* Premium Service Cards (March 2026 Redesign) */
.serviceCardPremium {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  min-height: 380px;
  background: transparent;
  border: 1px solid transparent; 
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, box-shadow, border-color;
  isolation: isolate;
}

.serviceCardPremium__bg {
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  max-width: none;
  min-height: 100%;
  object-fit: cover;
  border: none;
  background-color: transparent;
  transition: transform 0.8s var(--ease);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  z-index: -1; 
}

.serviceCardPremium:hover .serviceCardPremium__bg {
  transform: scale(1.05) translateZ(0);
}

.serviceCardPremium__content {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
  box-sizing: border-box;
}

.serviceCardPremium__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom 5-column grid for Visa and Specific Services */
.grid--5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

@media (max-width: 1400px) {
  .grid--5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Document Card (Booklet Style - with photo background) */
.documentCard {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #111; /* Fallback */
  color: white;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1;
}

.documentCard::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0) 0%, rgba(7, 10, 15, 0.1) 55%, #11214a 65%, #11214a 100%);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.documentCard:hover::before {
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.05) 0%, rgba(7, 10, 15, 0.2) 55%, #0B1633 65%, #0B1633 100%);
}

.documentCard__bg {
  position: absolute;
  top: -2px; left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s ease;
}

.documentCard:hover .documentCard__bg {
  transform: scale(1.05);
}

.documentCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.documentCard__top {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.documentCard__info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.documentCard__eyebrow {
  font-family: inherit;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.documentCard__title {
  font-family: "Public Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.documentCard__prepared {
  font-family: inherit;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.documentCard__bottom {
  margin-top: auto;
  padding: 24px;
}

.documentCard__slogan {
  font-family: inherit;
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.documentCard__slogan sup {
  font-size: 0.6em;
}

/* Add grid--4 since it is missing */
.grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
}


/* Upscaled typography for wider homepage country cards */
.countryGrid .countryCard__docs-title,
.countryCard__docs-title {
  font-family: 'Public Sans', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 1.25rem !important;
  margin-bottom: 6px !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.countryGrid .countryCard__docs-subtitle {
  font-size: 0.65rem !important;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Responsive grid for the homepage countries */
.grid-countries-homepage {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 1024px) {
  .grid-countries-homepage {
    grid-template-columns: repeat(5, 240px); /* 5x1 grid with fixed 240px cards */
    justify-content: start;
  }
}

/* Adjust card appearance inside the homepage grid to be smaller like the reference */
.grid-countries-homepage .service {
  aspect-ratio: 1 / 1;
  min-height: auto;
  border-radius: 0;
}
.grid-countries-homepage .countryCard__docs-title {
  font-size: 1.15rem !important; /* Reduced from 1.35rem */
}
.grid-countries-homepage .countryCard__docs-subtitle {
  font-size: 0.55rem !important; /* Reduced from 0.65rem */
}
.grid-countries-homepage .countryCard__docs-slogan {
  font-size: 0.6rem !important; /* Reduce inline 0.70rem slogans */
}

/* ==========================================================================
   Countries Grid Homepage Responsive Splitting
   ========================================================================== */

/* Default (Mobile/Tablet) */
.countries-split-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}
.countries-split-left h2,
.bg-services .section__head h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
}
.countries-split-left {
  margin-bottom: 24px;
}

.countries-split-right {
  position: relative;
}

.countries-statue-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.56; /* Even taller aspect ratio to stretch 40px vertically */
  max-width: 600px; /* Reduced from 720px */
  max-height: 940px; /* Increased from 900px to allow stretching */
  overflow: hidden;
}

/* Darken the image */
.countries-statue-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

/* Blue centered box goes on top */
.countries-statue-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 91%;
  height: 93%;
  background-color: rgba(22, 60, 115, 0.75); /* Semi-transparent blue */
  pointer-events: none;
  z-index: 2;
}

/* Desktop */
@media (min-width: 1024px) {
  .countries-split-wrapper {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
  }
  .countries-split-left {
    flex: 0 0 auto;
    width: 100%; /* Expanded to allow 6 cards in a single row */
    max-width: 100%; /* Override .section__head max-width of 70ch */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-top: 10px;
  }
  .countries-split-left h2,
  .bg-services .section__head h2 {
    font-size: clamp(2rem, 2.5vw, 2.75rem);
    white-space: nowrap;
  }
  .countries-split-right {
    flex: 1 1 0%;
    min-width: 0;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    padding-top: 111px; /* Moved up by another 20px */
  }
  
  .countries-statue-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
}

/* ==========================================================================
   Service Card V2 (For /services page)
   ========================================================================== */
.service-card-v2 {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Subtle gray border */
  border-radius: 0; /* Square corners */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.service-card-v2__image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-card-v2__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-v2:hover .service-card-v2__image {
  transform: scale(1.05);
}

.service-card-v2__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-v2__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #2b2622; /* Dark brown-black matching screenshot */
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-card-v2__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #4a4a4a; /* Medium gray */
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card-v2__price {
  font-family: 'Inter', sans-serif;
  background-color: #f0f0f0; /* Light gray block */
  color: #4a4a4a;
  text-align: center;
  padding: 10px 16px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
  border: 1px solid transparent;
}

.service-card-v2__button {
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dceaf5; /* Footer color */
  color: #000000;
  padding: 12px 16px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  gap: 8px;
}

.service-card-v2:hover .service-card-v2__button {
  background-color: #2b2622;
  color: #ffffff;
}

.service-card-v2__button-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card-v2__button-icon svg {
  width: 12px;
  height: 12px;
}

.service-card-v2__meta {
  font-family: 'Inter', sans-serif;
  border-top: 1px solid rgba(0, 0, 0, 0.08); /* Small divider line */
  padding-top: 16px;
  font-size: 0.8rem;
  color: #4a4a4a;
}

.service-card-v2__meta-line {
  margin-bottom: 4px;
}

.service-card-v2__meta-line:last-child {
  margin-bottom: 0;
}

.service-card-v2__meta-label {
  font-weight: 600;
  color: #2b2622;
}

/* Make sure cards show up fine even on .bg-blue sections */
.bg-blue .service-card-v2 {
  background-color: #ffffff !important;
  color: #2b2622 !important;
}

.home-section-title-sync {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
}

.bg-blue .home-section-title-sync {
  font-weight: 400; /* Compensate for light text on dark background optical bleeding */
}
@media (min-width: 1024px) {
  .home-section-title-sync {
    font-size: clamp(2rem, 2.5vw, 2.75rem) !important;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Service Card V2 Blue Hover State
   ========================================================================== */
.service-card-v2 {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.service-card-v2__title,
.service-card-v2__desc,
.service-card-v2__price,
.service-card-v2__button,
.service-card-v2__button-icon,
.service-card-v2__meta,
.service-card-v2__meta-label {
  transition: all 0.3s ease;
}

.service-card-v2:hover {
  background-color: #111a3c;
  border-color: #111a3c;
  box-shadow: 0 12px 24px rgba(17, 26, 60, 0.15);
}

.service-card-v2:hover .service-card-v2__title,
.service-card-v2:hover .service-card-v2__desc,
.service-card-v2:hover .service-card-v2__meta,
.service-card-v2:hover .service-card-v2__meta-label {
  color: #ffffff;
}

.service-card-v2:hover .service-card-v2__price {
  background-color: #ffffff !important;
  color: #374151 !important;
  border-color: #ffffff !important;
}

.service-card-v2:hover .service-card-v2__button {
  background-color: #ffffff;
  color: #111a3c;
}

.service-card-v2:hover .service-card-v2__button-icon {
  background-color: #111a3c;
  color: #ffffff;
}

.service-card-v2:hover .service-card-v2__meta {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* Force overrides on blue backgrounds */
html body .bg-blue .service-card-v2:hover {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-4px);
}

html body .bg-blue .service-card-v2:hover .service-card-v2__title,
html body .bg-blue .service-card-v2:hover .service-card-v2__meta-label {
  color: #2b2622 !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__desc,
html body .bg-blue .service-card-v2:hover .service-card-v2__meta {
  color: #4a4a4a !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__price {
  background-color: #f0f0f0 !important;
  color: #4a4a4a !important;
  border-color: transparent !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__button {
  background-color: #dceaf5 !important;
  color: #000000 !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__button-icon {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* ==========================================================================
   Service Page Country Cards - Dark Gray Styling (#f3f4f6)
   ========================================================================== */
.bg-blue #countries .service,
.bg-blue .grid--5.countryGrid .service,
.bg-light #countries .grid-countries-homepage .service,
#countries .grid-countries-homepage .service,
.bg-blue #countries .service::before,
.bg-blue .grid--5.countryGrid .service::before,
.bg-light #countries .grid-countries-homepage .service::before,
#countries .grid-countries-homepage .service::before,
.bg-blue #countries .service .countryCard__overlay,
.bg-blue .grid--5.countryGrid .service .countryCard__overlay,
.bg-light #countries .grid-countries-homepage .service .countryCard__overlay,
#countries .grid-countries-homepage .service .countryCard__overlay,
.bg-blue #countries .service .countryCard__map,
.bg-blue .grid--5.countryGrid .service .countryCard__map,
.bg-light #countries .grid-countries-homepage .service .countryCard__map,
#countries .grid-countries-homepage .service .countryCard__map,
.bg-blue #countries .service .countryCard__map::before,
.bg-blue .grid--5.countryGrid .service .countryCard__map::before,
.bg-light #countries .grid-countries-homepage .service .countryCard__map::before,
#countries .grid-countries-homepage .service .countryCard__map::before {
  background: none !important;
  background-color: #f3f4f6 !important;
}

.bg-blue #countries .service,
.bg-blue .grid--5.countryGrid .service,
.bg-light #countries .grid-countries-homepage .service,
#countries .grid-countries-homepage .service {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}

.bg-blue #countries .service .countryCard__docs-title,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-title,
.bg-blue #countries .service .countryCard__docs-prepared-under strong,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-prepared-under strong,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-title,
#countries .grid-countries-homepage .service .countryCard__docs-title,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-prepared-under strong,
#countries .grid-countries-homepage .service .countryCard__docs-prepared-under strong {
  color: #374151 !important;
  transition: color 0.3s ease !important;
}

.bg-blue #countries .service .countryCard__docs-subtitle,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-subtitle,
.bg-blue #countries .service .countryCard__docs-prepared-under,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-prepared-under,
.bg-blue #countries .service .countryCard__docs-slogan,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-slogan,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-subtitle,
#countries .grid-countries-homepage .service .countryCard__docs-subtitle,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-prepared-under,
#countries .grid-countries-homepage .service .countryCard__docs-prepared-under,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-slogan,
#countries .grid-countries-homepage .service .countryCard__docs-slogan {
  color: rgba(55, 65, 81, 0.8) !important;
  transition: color 0.3s ease !important;
}

/* Hover State */
.bg-blue #countries .service:hover,
.bg-blue .grid--5.countryGrid .service:hover,
.bg-light #countries .grid-countries-homepage .service:hover,
#countries .grid-countries-homepage .service:hover {
  background-color: #ffffff !important; 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Specific Services 'View all' button styling to match country cards */
.countries-split-left .button--primary {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}

.countries-split-left .button--primary:hover {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.section--stats {
  background-color: #dceaf5;
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  max-width: 1440px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  padding: 20px 0;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 5.5rem;
  color: #3b3531;
  font-weight: 300;
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #3b3531;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .stats-grid {
    flex-direction: column;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-number {
    font-size: 4rem;
  }
}

/* ==========================================================================
   FOOTER OVERRIDE TO RESTORE BLUE
   ========================================================================== */
footer.footer.bg-blue {
  background-color: #f3f4f6 !important;
  color: #ffffff !important;
}

footer.footer.bg-blue a, 
footer.footer.bg-blue p, 
footer.footer.bg-blue div, 
footer.footer.bg-blue span {
  color: #ffffff !important;
}

footer.footer.bg-blue .muted,
footer.footer.bg-blue .footer__policy-link {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer.footer.bg-blue .footer__policy-link:hover {
  color: #ffffff !important;
}

/* --- Minimalist Header Styles --- */
.header--minimal {
  background: #ffffff !important;
  color: #000000;
  border-bottom: 1px solid #e5e5e5;
  padding: 0;
  background-color: #111a3c;
  color: #ffffff;
}

.service-card-v2:hover .service-card-v2__meta {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* Force overrides on blue backgrounds */
html body .bg-blue .service-card-v2:hover {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05) !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__title,
html body .bg-blue .service-card-v2:hover .service-card-v2__meta-label {
  color: #2b2622 !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__desc,
html body .bg-blue .service-card-v2:hover .service-card-v2__meta {
  color: #4a4a4a !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__price {
  background-color: #f0f0f0 !important;
  color: #4a4a4a !important;
  border-color: transparent !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__button {
  background-color: #dceaf5 !important;
  color: #000000 !important;
}

html body .bg-blue .service-card-v2:hover .service-card-v2__button-icon {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* ==========================================================================
   Service Page Country Cards - Dark Gray Styling (#f3f4f6)
   ========================================================================== */
.bg-blue #countries .service,
.bg-blue .grid--5.countryGrid .service,
.bg-light #countries .grid-countries-homepage .service,
#countries .grid-countries-homepage .service,
.bg-blue #countries .service::before,
.bg-blue .grid--5.countryGrid .service::before,
.bg-light #countries .grid-countries-homepage .service::before,
#countries .grid-countries-homepage .service::before,
.bg-blue #countries .service .countryCard__overlay,
.bg-blue .grid--5.countryGrid .service .countryCard__overlay,
.bg-light #countries .grid-countries-homepage .service .countryCard__overlay,
#countries .grid-countries-homepage .service .countryCard__overlay,
.bg-blue #countries .service .countryCard__map,
.bg-blue .grid--5.countryGrid .service .countryCard__map,
.bg-light #countries .grid-countries-homepage .service .countryCard__map,
#countries .grid-countries-homepage .service .countryCard__map,
.bg-blue #countries .service .countryCard__map::before,
.bg-blue .grid--5.countryGrid .service .countryCard__map::before,
.bg-light #countries .grid-countries-homepage .service .countryCard__map::before,
#countries .grid-countries-homepage .service .countryCard__map::before {
  background: none !important;
  background-color: #f3f4f6 !important;
}

.bg-blue #countries .service,
.bg-blue .grid--5.countryGrid .service,
.bg-light #countries .grid-countries-homepage .service,
#countries .grid-countries-homepage .service {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}

.bg-blue #countries .service .countryCard__docs-title,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-title,
.bg-blue #countries .service .countryCard__docs-prepared-under strong,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-prepared-under strong,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-title,
#countries .grid-countries-homepage .service .countryCard__docs-title,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-prepared-under strong,
#countries .grid-countries-homepage .service .countryCard__docs-prepared-under strong {
  color: #374151 !important;
  transition: color 0.3s ease !important;
}

.bg-blue #countries .service .countryCard__docs-subtitle,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-subtitle,
.bg-blue #countries .service .countryCard__docs-prepared-under,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-prepared-under,
.bg-blue #countries .service .countryCard__docs-slogan,
.bg-blue .grid--5.countryGrid .service .countryCard__docs-slogan,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-subtitle,
#countries .grid-countries-homepage .service .countryCard__docs-subtitle,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-prepared-under,
#countries .grid-countries-homepage .service .countryCard__docs-prepared-under,
.bg-light #countries .grid-countries-homepage .service .countryCard__docs-slogan,
#countries .grid-countries-homepage .service .countryCard__docs-slogan {
  color: rgba(55, 65, 81, 0.8) !important;
  transition: color 0.3s ease !important;
}

/* Hover State */
.bg-blue #countries .service:hover,
.bg-blue .grid--5.countryGrid .service:hover,
.bg-light #countries .grid-countries-homepage .service:hover,
#countries .grid-countries-homepage .service:hover {
  background-color: #ffffff !important; 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Specific Services 'View all' button styling to match country cards */
.countries-split-left .button--primary {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}

.countries-split-left .button--primary:hover {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.section--stats {
  background-color: #dceaf5;
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  max-width: 1440px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  padding: 20px 0;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 5.5rem;
  color: #3b3531;
  font-weight: 300;
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #3b3531;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .stats-grid {
    flex-direction: column;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-number {
    font-size: 4rem;
  }
}

/* ==========================================================================
   FOOTER OVERRIDE TO RESTORE BLUE
   ========================================================================== */
footer.footer.bg-blue {
  background-color: #f3f4f6 !important;
  color: #ffffff !important;
}

footer.footer.bg-blue a, 
footer.footer.bg-blue p, 
footer.footer.bg-blue div, 
footer.footer.bg-blue span {
  color: #ffffff !important;
}

footer.footer.bg-blue .muted,
footer.footer.bg-blue .footer__policy-link {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer.footer.bg-blue .footer__policy-link:hover {
  color: #ffffff !important;
}

/* --- Minimalist Header Styles --- */
.header--minimal {
  background: #ffffff !important;
  color: #000000;
  border-bottom: none;
  padding: 0;
}
html[data-theme="light"] .header--minimal {
  background: #ffffff !important;
}

.header__dark-bar {
  height: 30px;
  background-color: #eaf3fa;
  width: 100%;
  transition: background-color 0.2s ease;
}

.header__dark-bar:hover {
  background-color: #dceaf5;
}

.header__inner-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
  gap: 20px; /* Забезпечує захист від накладання */
}

.header__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__toggle--desktop {
  display: flex !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: #000000;
}

.brand--minimal .brand__name {
  color: #B30000 !important;
  
  font-weight: normal;
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1px;
}

.brand--minimal:hover .brand__name {
  color: #000000 !important;
}

.brand--minimal .brand__reg {
  font-weight: 400;
  font-size: 0.4em;
  top: -0.7em;
  letter-spacing: 0;
  margin-left: -2px;
}

.nav--minimal {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav--minimal .nav__panel {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav--minimal .nav__link {
  color: #333333 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 0;
  background: transparent !important;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.nav--minimal .nav__link::before {
  display: none !important;
}

.nav--minimal .nav__link:hover {
  color: #333333 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.nav--minimal .nav__dropdownPanel {
  top: 100%;
  margin-top: 15px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  background: #ffffff;
}

.nav--minimal .nav__dropdownPanel .nav__link {
  padding: 16px 24px;
  font-size: 12px;
  text-align: left;
}

.nav__langWrapper--minimal {
  margin-left: 10px;
}

.nav__langWrapper--minimal a {
  color: #000000 !important;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
  letter-spacing: 0.05em;
}

.nav__langWrapper--minimal a:hover {
  opacity: 1;
}

/* Mobile Responsiveness for Minimal Header */
@media (max-width: 1024px) {
  .header__inner-minimal {
    padding: 0 20px;
  }
  .nav--minimal .nav__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
  }
  .nav--minimal .nav__panel.is-active,
  .nav--minimal .nav__panel.is-open {
    display: flex !important;
  }
}

/* Minimal Search Styles */
.header-search--minimal {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

@media (max-width: 1024px) {
  .header-search--minimal {
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
  }
}

.header-search--minimal .header-search__input {
  width: 180px;
  height: 36px;
  padding: 0 16px 0 36px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  color: #000000;
  transition: all 0.3s ease;
}

.header-search--minimal .header-search__input:focus {
  outline: none;
  border-color: #36428c;
  background: #ffffff;
  width: 220px;
  box-shadow: 0 0 0 3px rgba(54, 66, 140, 0.1);
}

.header-search--minimal .header-search__button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: #777777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.header-search--minimal .header-search__button:hover {
  color: #36428c;
}


/* Ensure statistics section is visible and not hidden by reveal bugs */
.section--stats.reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
