*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], header[id] { scroll-margin-top: 92px; }

:root {
  --bk-font-body: 'Inter', system-ui, sans-serif;
  --bk-font-display: 'Manrope', sans-serif;
}

html[lang="fa"] {
  --bk-font-body: 'Vazir', system-ui, sans-serif;
  --bk-font-display: 'Vazir', system-ui, sans-serif;
}

html[lang="ar"] {
  --bk-font-body: 'Noto Sans Arabic', system-ui, sans-serif;
  --bk-font-display: 'Noto Sans Arabic', system-ui, sans-serif;
}

body {
  margin: 0;
  font-family: var(--bk-font-body);
  color: #0B2A4A;
  background: #F4F6FA;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
html[lang="fa"] input,
html[lang="fa"] select,
html[lang="fa"] textarea,
html[lang="fa"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea,
html[lang="ar"] button {
  font-family: var(--bk-font-body);
}
a { color: #1F5AFF; text-decoration: none; }
a:hover { color: #1747D6; }
::selection { background: #D8E4FF; }
h1, h2, h3, h4 {
  font-family: var(--bk-font-display);
  margin: 0;
  letter-spacing: -0.02em;
}
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  letter-spacing: 0;
}
html[lang="fa"] [style*="Manrope"],
html[lang="fa"] [style*="manrope"],
html[lang="ar"] [style*="Manrope"],
html[lang="ar"] [style*="manrope"] {
  font-family: var(--bk-font-body) !important;
  letter-spacing: 0 !important;
}
.bk-font-display { font-family: var(--bk-font-display); }
input, select, button, textarea { font-family: inherit; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D6DEEA; border-radius: 8px; border: 2px solid #F4F6FA; }

@keyframes dashmove { to { stroke-dashoffset: -400; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.bk-app { min-height: 100vh; min-height: 100dvh; background: linear-gradient(180deg, #F7F9FE, #F4F6FA); }
.bk-pad { padding-left: 24px; padding-right: 24px; }

/* Brand */
.bk-brand-logo img { max-height: 100%; display: block; }

/* App header (calculator, tracking, orders, etc.) */
.bk-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px 8px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.bk-app-header-logo { flex-shrink: 0; display: flex; align-items: center; }
.bk-app-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
}
.bk-app-nav a {
  color: #3A4A63;
  text-decoration: none;
  white-space: nowrap;
}
.bk-app-nav a.is-active { color: #1F5AFF; font-weight: 700; }
.bk-app-header .bk-mobile-toggle { display: none; }
.bk-app-header-link {
  font-size: 14px;
  font-weight: 600;
  color: #3A4A63;
  text-decoration: none;
  padding: 9px 8px;
}
.bk-app-header-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3B82FF, #1F5AFF);
  border-radius: 12px;
  padding: 11px 20px;
  text-decoration: none;
  box-shadow: 0 12px 24px -10px rgba(31, 90, 255, 0.85);
  white-space: nowrap;
}
.bk-home-menu-btn { display: none; }

/* Marketing header (home-style nav on all public pages) */
.bk-home-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 239, 246, 0.9);
  box-shadow: 0 10px 30px -22px rgba(15, 42, 80, 0.22);
  overflow: visible;
}
.bk-home-header-inner { overflow: visible; }
.bk-header-notif { display: none; flex-shrink: 0; }
@media (min-width: 721px) {
  .bk-header-notif { display: block; }
  .bk-customer-dash-page .bk-dash-header-end > .bk-notif-wrap { display: none; }
}
.bk-home-header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.bk-marketing-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
  color: #3A4A63;
}
.bk-marketing-nav a {
  text-decoration: none;
  white-space: nowrap;
}
.bk-header-cta-sm {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3B82FF, #1F5AFF);
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(31, 90, 255, 0.85);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.bk-customer-dash-page .bk-home-menu-btn,
.bk-admin-shell .bk-home-menu-btn {
  display: none !important;
}

/* Legacy alias — keep app-header styles for any old references */
.bk-home-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px 12px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.bk-customer-dash-page .bk-shell.bk-pad {
  padding-top: 8px;
}

.bk-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.bk-header-auth-link {
  font-size: 14px;
  font-weight: 600;
  color: #1F5AFF;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #D8E4FF;
  background: transparent;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bk-header-auth-link:hover {
  background: #EEF3FF;
  border-color: #B8CCFF;
  color: #1747D6;
}
.bk-logout-form { margin: 0; }
.bk-logout-btn {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
.bk-logout-form--header .bk-logout-btn {
  font-size: 14px;
  font-weight: 600;
  color: #5C6B82;
  padding: 10px 18px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #E3E9F2;
  background: #fff;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bk-logout-form--header .bk-logout-btn:hover {
  background: #F8FAFD;
  border-color: #D5DEEA;
  color: #3A4A63;
}
.bk-logout-form--sidebar .bk-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #C8D6EC;
  font-size: 13px;
  font-weight: 600;
  text-align: start;
}
.bk-logout-form--sidebar .bk-logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.bk-logout-form--profile .bk-logout-btn,
.bk-logout-form--block .bk-logout-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #F0D4D0;
  background: #FFF7F6;
  color: #C0392B;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
}
.bk-logout-form--profile .bk-logout-btn:hover,
.bk-logout-form--block .bk-logout-btn:hover {
  background: #FFEDEB;
  border-color: #E8B4AE;
}
.bk-logout-form--block { margin-top: 8px; }
.bk-header-logout { display: none; flex-shrink: 0; }
@media (min-width: 721px) {
  .bk-header-logout { display: block; }
}
.bk-header-auth-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3B82FF, #1F5AFF);
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(31, 90, 255, 0.85);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.bk-lang-switcher--inline {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #EEF3FF;
  border-radius: 12px;
  width: 100%;
}
.bk-lang-switcher--inline a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  padding: 10px 8px;
  text-decoration: none;
  color: #5C6B82;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bk-lang-switcher--inline a.is-active {
  background: #1F5AFF;
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(31, 90, 255, 0.9);
}

.bk-lang-switcher--dropdown {
  position: relative;
}
.bk-lang-switcher--dropdown summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #EEF3FF;
  border: 1px solid #D8E4FF;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0B2A4A;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}
.bk-lang-switcher--dropdown summary::-webkit-details-marker { display: none; }
.bk-lang-switcher--dropdown[open] summary {
  background: #E4ECFF;
  border-color: #B8CCFF;
}
.bk-lang-switcher--dropdown[open] .bk-lang-chevron { transform: rotate(180deg); }
.bk-lang-chevron { transition: transform 0.2s ease; flex-shrink: 0; opacity: 0.7; }
.bk-lang-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 108px;
  background: #fff;
  border: 1px solid #EAEFF6;
  border-radius: 14px;
  box-shadow: 0 16px 40px -24px rgba(15, 42, 80, 0.35);
  z-index: 120;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bk-lang-switcher-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #3A4A63;
  text-decoration: none;
  text-align: center;
}
.bk-lang-switcher-menu a:hover { background: #F4F7FC; color: #1F5AFF; }
.bk-lang-switcher-menu a.is-active {
  background: #1F5AFF;
  color: #fff;
}

/* Tracking page */
.bk-track-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}
.bk-track-layout.bk-2col {
  align-items: start;
}
.bk-track-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  align-self: start;
}
@media (min-width: 961px) {
  .bk-track-summary {
    position: sticky;
    top: 80px;
  }
  .bk-shell .bk-track-summary {
    top: 16px;
  }
}
.bk-track-timeline {
  min-width: 0;
}
.bk-track-timeline-list {
  overflow: hidden;
}
.bk-track-timeline-item {
  position: relative;
  z-index: 1;
}
.bk-track-timeline-item:last-child {
  margin-bottom: 0 !important;
}

/* Grids */
.bk-2col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.bk-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bk-cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bk-cards5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bk-shell { display: grid; grid-template-columns: 250px 1fr; gap: 22px; max-width: 1300px; margin: 0 auto; padding: 12px 20px 50px; }

/* Dashboard header + notifications */
.bk-dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 40;
  flex-wrap: wrap;
}
.bk-dash-header-start {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.bk-dash-header-text { min-width: 0; flex: 1; }
.bk-dash-header-text h1 {
  font-family: var(--bk-font-display);
  font-size: 26px;
  font-weight: 800;
  color: #0B2A4A;
  margin: 0;
  line-height: 1.2;
}
.bk-dash-header-text p {
  font-size: 14px;
  color: #7A879B;
  margin: 4px 0 0;
  line-height: 1.45;
}
.bk-dash-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.bk-panel-search-row { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.bk-panel-search {
  display: flex; align-items: center; gap: 8px; width: min(360px, 100%);
  background: #fff; border: 1px solid #EAEFF6; border-radius: 12px; padding: 8px 14px;
}
.bk-panel-search-icon { flex-shrink: 0; color: #8391A5; }
.bk-panel-search-input {
  flex: 1; border: none; outline: none; font-size: 13.5px; color: #0B2A4A; background: transparent; min-width: 0;
}
.bk-panel-search-clear {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #EEF1F6; color: #5C6B82;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; line-height: 1;
}
.bk-dash-header-actions { display: flex; align-items: center; gap: 10px; }
.bk-dash-header-btn {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1F5AFF;
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bk-notif-wrap { position: relative; }
.bk-notif-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(178deg, #0C3160 0%, #0A2444 58%, #081C36 100%);
  color: #CBDAF2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(8, 24, 54, 0.7);
  flex-shrink: 0;
}
.bk-notif-dot {
  position: absolute;
  top: 9px;
  inset-inline-end: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5C5C;
  border: 2px solid #0A2444;
}
.bk-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  background: #fff;
  border: 1px solid #EAEFF6;
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(15,42,80,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bk-notif-panel[hidden] { display: none !important; }
.bk-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #EEF1F6;
}
.bk-notif-head-title {
  font-family: var(--bk-font-display);
  font-weight: 800;
  font-size: 16px;
  color: #0B2A4A;
}
.bk-notif-mark-all {
  font-size: 12.5px;
  font-weight: 600;
  color: #1F5AFF;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.bk-notif-list {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bk-notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #F3F6FA;
  transition: background .12s;
}
.bk-notif-item:hover { background: #F8FAFD; }
.bk-notif-item.is-unread { background: #F5F8FF; }
.bk-notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  margin-top: 7px;
  flex-shrink: 0;
}
.bk-notif-item.is-unread .bk-notif-item-dot { background: #1F5AFF; }
.bk-notif-item-body { min-width: 0; flex: 1; }
.bk-notif-item-text {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  font-weight: 500;
}
.bk-notif-item.is-unread .bk-notif-item-text { font-weight: 700; color: #0B2A4A; }
.bk-notif-item-time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9AA7BC;
}
.bk-notif-empty {
  padding: 28px 18px;
  text-align: center;
  color: #8391A5;
  font-size: 14px;
}

.bk-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }

/* Cards & buttons */
.bk-card { background: #fff; border: 1px solid #EAEFF6; border-radius: 18px; box-shadow: 0 14px 34px -28px rgba(15, 42, 80, 0.4); }
.bk-btn-primary {
  font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3B82FF, #1F5AFF);
  border: none; border-radius: 14px; padding: 16px 26px; cursor: pointer;
  box-shadow: 0 18px 34px -14px rgba(31, 90, 255, 0.9); display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; -webkit-tap-highlight-color: transparent;
}
.bk-btn-primary:hover { transform: translateY(-2px); }
.bk-btn-outline {
  font-size: 15px; font-weight: 600; color: #0B2A4A; background: #fff; border: 1px solid #E3E9F2;
  border-radius: 14px; padding: 16px 24px; cursor: pointer; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.bk-btn-outline:hover {
  border-color: #C5D4F0;
  box-shadow: 0 10px 24px -16px rgba(15, 42, 80, 0.18);
  transform: translateY(-1px);
}
[dir="rtl"] .bk-icon-arrow { transform: scaleX(-1); }
.bk-icon-arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.bk-hero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}
.bk-hero-cta .bk-btn-primary,
.bk-hero-cta .bk-btn-outline {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
}
.bk-hero-cta-primary { box-shadow: 0 14px 28px -12px rgba(31, 90, 255, 0.85); }
[dir="rtl"] .bk-hero-sub { max-width: none; }
.bk-badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; display: inline-block; white-space: nowrap; }

/* Dashboard order cards */
.bk-order-meta {
  display: contents;
}
.bk-order-price {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  text-align: end;
}

.bk-stat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px 20px;
  min-height: 118px;
  background: #fff;
  border: 1px solid #EAEFF6;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.bk-stat-card-body {
  min-width: 0;
  align-self: start;
}
.bk-stat-card-label {
  font-size: 13px;
  color: #7A879B;
  line-height: 1.4;
}
.bk-stat-card-value {
  font-family: var(--bk-font-display);
  font-weight: 800;
  font-size: clamp(22px, 6vw, 30px);
  margin: 8px 0 4px;
  color: #1F5AFF;
  line-height: 1.1;
  word-break: break-word;
}
html[lang="fa"] .bk-stat-card-value,
html[lang="ar"] .bk-stat-card-value {
  font-variant-numeric: tabular-nums;
}
.bk-stat-card-sub {
  font-size: 12px;
  color: #9AA7BC;
  line-height: 1.4;
}
.bk-stat-card-deco {
  flex-shrink: 0;
  align-self: end;
  pointer-events: none;
}
.bk-stat-card-deco img {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
}
.bk-stat-card-deco--icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(150deg, #FFF3D6, #F8D98A);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -12px rgba(200, 145, 42, 0.6);
}
.bk-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -24px rgba(15, 42, 80, 0.35);
  border-color: #CFE0FF !important;
}
.bk-stat-card:active {
  transform: translateY(0);
}

.bk-order-link,
.bk-order-link-row {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.bk-order-link:hover,
.bk-order-link-row:hover {
  border-color: #CFE0FF !important;
  box-shadow: 0 10px 28px -22px rgba(31, 90, 255, 0.35);
  background: #FAFCFF;
}
.bk-order-link-row {
  text-decoration: none;
  color: inherit;
  display: grid;
}

/* Mobile menu */
.bk-mobile-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #E3E9F2;
  background: #fff; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 8px 20px -14px rgba(15,42,80,0.35);
}
.bk-mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(11, 42, 74, 0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.bk-mobile-nav.is-open { display: block; }
.bk-mobile-nav-panel {
  position: absolute; top: 0; bottom: 0; width: min(320px, 88vw); background: #fff;
  padding: 24px 20px; padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  overflow-y: auto; box-shadow: 0 20px 60px rgba(15, 42, 80, 0.25);
}
[dir="ltr"] .bk-mobile-nav-panel { right: 0; border-radius: 20px 0 0 20px; }
[dir="rtl"] .bk-mobile-nav-panel { left: 0; border-radius: 0 20px 20px 0; }
.bk-mobile-nav a {
  display: block; padding: 14px 12px; font-size: 15px; font-weight: 600; color: #0B2A4A;
  border-radius: 12px; margin-bottom: 4px; min-height: 48px;
}
.bk-mobile-nav a:hover, .bk-mobile-nav a:active { background: #EEF3FF; }
.bk-mobile-nav a.active { background: #EEF3FF; color: #1F5AFF; font-weight: 700; }

/* Customer / admin sidebar mobile */
.bk-side-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 42, 74, 0.45);
  -webkit-tap-highlight-color: transparent;
}
.bk-side-overlay.is-visible { display: block; }
.bk-dash-sidebar-toggle { display: none; }
body.bk-drawer-open { overflow: hidden; touch-action: none; }

.bk-customer-side,
.bk-admin-side.bk-side {
  position: sticky;
  top: 80px;
  height: fit-content;
}

/* Sticky estimate */
.bk-live-estimate { position: sticky; top: 80px; }
.bk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Dashboard data tables */
.bk-orders-grid {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(110px, 1.3fr) minmax(130px, 1.3fr) minmax(52px, 0.7fr) minmax(52px, 0.7fr) minmax(64px, 0.8fr) minmax(88px, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 12px;
}
.bk-invoices-grid {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(96px, 1fr) minmax(96px, 1fr) minmax(72px, 0.8fr) minmax(88px, 0.9fr) minmax(72px, 0.7fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 12px;
}
.bk-data-table-head {
  font-size: 12px;
  font-weight: 600;
  color: #9AA7BC;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 12px;
}
.bk-data-table-row {
  border-top: 1px solid #F0F2F7;
  font-size: 13.5px;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.bk-status-row--pending_review { background: #FFFBF0; border-color: #F5E6C8 !important; }
.bk-status-row--submitted { background: #F7FAFF; border-color: #D6E4FF !important; }
.bk-status-row--at_warehouse { background: #F3FBF6; border-color: #C8E6D3 !important; }
.bk-status-row--in_transit { background: #F0F5FF; border-color: #C9D8FF !important; }
.bk-status-row--inspection { background: #FFF8EE; border-color: #F0D4A8 !important; }
.bk-status-row--customs { background: #FFF8EE; border-color: #F0D4A8 !important; }
.bk-status-row--delivered { background: #F5F7FA; border-color: #E4E9F1 !important; }
.bk-status-row--cancelled { background: #FEF2F2; border-color: #F5C6C6 !important; }
.bk-data-table-row.bk-status-row--pending_review,
.bk-data-table-row.bk-status-row--submitted,
.bk-data-table-row.bk-status-row--at_warehouse,
.bk-data-table-row.bk-status-row--in_transit,
.bk-data-table-row.bk-status-row--inspection,
.bk-data-table-row.bk-status-row--customs,
.bk-data-table-row.bk-status-row--delivered,
.bk-data-table-row.bk-status-row--cancelled {
  border-radius: 12px;
  margin: 4px 0;
  border-top: 1px solid;
}
.bk-order-row[class*="bk-status-row--"]:hover,
.bk-data-table-row[class*="bk-status-row--"]:hover,
a[class*="bk-status-row--"]:hover {
  filter: brightness(0.98);
}
.bk-data-table-row .bk-data-cell--order { font-weight: 700; }
.bk-data-table-row .bk-data-cell:not(.bk-data-cell--order):not(.bk-data-cell--status):not(.bk-data-cell--action) { color: #5C6B82; }
.bk-data-table-row .bk-data-cell[data-label]:nth-child(5) { color: #8391A5; }
.bk-data-table-row .bk-data-cell--value { font-weight: 700; color: #0B2A4A; }
.bk-data-table-row .bk-data-cell--event { color: #8391A5; font-size: 12.5px; white-space: nowrap; }
.bk-order-last-event { display: block; font-size: 11.5px; color: #9AA7BC; margin-top: 4px; white-space: nowrap; }
.bk-data-table-row .bk-data-cell--action {
  font-size: 13px;
  color: #1F5AFF;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
}

@media (max-width: 960px) {
  .bk-data-table.bk-orders-table,
  .bk-data-table.bk-invoices-table { overflow-x: visible; padding-left: 12px !important; padding-right: 12px !important; }
  .bk-data-table-head { display: none !important; }
  .bk-orders-grid.bk-data-table-row,
  .bk-invoices-grid.bk-data-table-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "order status"
      "product product"
      "route route"
      "mode date"
      "value value"
      "action action";
    gap: 8px 12px !important;
    padding: 16px 8px !important;
  }
  .bk-invoices-grid.bk-data-table-row {
    grid-template-areas:
      "order status"
      "product product"
      "route route"
      "value value"
      "action action";
  }
  .bk-orders-grid.bk-data-table-row .bk-data-cell--order,
  .bk-invoices-grid.bk-data-table-row .bk-data-cell--order { grid-area: order; font-size: 15px; }
  .bk-orders-grid.bk-data-table-row .bk-data-cell--status,
  .bk-invoices-grid.bk-data-table-row .bk-data-cell--status { grid-area: status; justify-self: end; align-self: start; }
  .bk-orders-grid.bk-data-table-row .bk-data-cell:nth-child(2),
  .bk-invoices-grid.bk-data-table-row .bk-data-cell:nth-child(2) { grid-area: product; }
  .bk-orders-grid.bk-data-table-row .bk-data-cell:nth-child(3) { grid-area: route; }
  .bk-invoices-grid.bk-data-table-row .bk-data-cell:nth-child(3) { grid-area: route; color: #8391A5 !important; }
  .bk-orders-grid.bk-data-table-row .bk-data-cell:nth-child(4) { grid-area: mode; }
  .bk-orders-grid.bk-data-table-row .bk-data-cell:nth-child(5) { grid-area: date; justify-self: end; text-align: end; color: #8391A5 !important; }
  .bk-orders-grid.bk-data-table-row .bk-data-cell--value,
  .bk-invoices-grid.bk-data-table-row .bk-data-cell--value { grid-area: value; font-size: 15px; }
  .bk-data-table-row .bk-data-cell--action { grid-area: action; text-align: start !important; margin-top: 4px; }
  .bk-data-table-row .bk-data-cell[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #9AA7BC;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
  }
  .bk-orders-page-head { flex-direction: column !important; align-items: stretch !important; }
  .bk-orders-new-btn { display: block; width: 100%; text-align: center; padding-top: 14px !important; padding-bottom: 14px !important; }
}

/* PWA / mobile bottom bar */
.bk-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #E6EEF9;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around; gap: 2px;
  box-shadow: 0 -10px 30px -20px rgba(15,42,80,0.35);
}
.bk-bottom-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: #7A879B; padding: 8px 2px; border-radius: 12px;
  min-height: 52px; -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.bk-bottom-bar a.active { color: #1F5AFF; background: #EEF3FF; }
.bk-bottom-bar svg { width: 22px; height: 22px; flex-shrink: 0; }

/* PWA install banner */
.bk-install-banner {
  display: none; position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 58; background: #0B2A4A; color: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 18px 40px -16px rgba(11,42,74,0.55); align-items: center; gap: 12px;
}
.bk-install-banner.is-visible { display: flex; }
.bk-install-banner p { margin: 0; font-size: 13px; line-height: 1.4; flex: 1; }
.bk-install-banner button {
  border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.bk-install-yes { background: #1F5AFF; color: #fff; }
.bk-install-no { background: rgba(255,255,255,0.12); color: #fff; }

/* Flash message modal */
.bk-flash-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.bk-flash-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.bk-flash-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 74, 0.45);
  backdrop-filter: blur(3px);
}
.bk-flash-modal__card {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px -20px rgba(11, 42, 74, 0.45);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform .22s ease;
}
.bk-flash-modal.is-visible .bk-flash-modal__card {
  transform: translateY(0) scale(1);
}
.bk-flash-modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.bk-flash-modal__card--success .bk-flash-modal__icon { background: #EAF6EE; color: #1E8E4E; }
.bk-flash-modal__card--info .bk-flash-modal__icon { background: #EEF3FF; color: #1F5AFF; }
.bk-flash-modal__card--error .bk-flash-modal__icon { background: #FFF4F4; color: #C53030; }
.bk-flash-modal__title {
  font-family: var(--bk-font-display, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #0B2A4A;
  margin-bottom: 8px;
}
.bk-flash-modal__text p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #5C6B82;
}
.bk-flash-modal__text p:last-child { margin-bottom: 0; }
.bk-flash-modal__btn {
  margin-top: 18px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: #1F5AFF;
  box-shadow: 0 12px 24px -12px rgba(31, 90, 255, 0.85);
}
.bk-flash-modal__card--error .bk-flash-modal__btn { background: #C53030; box-shadow: 0 12px 24px -12px rgba(197, 48, 48, 0.55); }
.bk-flash-modal__card--success .bk-flash-modal__btn { background: #1E8E4E; box-shadow: 0 12px 24px -12px rgba(30, 142, 78, 0.55); }
body.bk-flash-open { overflow: hidden; }

/* Display mode standalone polish */
@media (display-mode: standalone), (display-mode: fullscreen) {
  .bk-app-header { padding-top: max(10px, env(safe-area-inset-top)); }
  .bk-home-header { padding-top: max(8px, env(safe-area-inset-top)); }
  .bk-home-header-inner { padding-top: max(12px, env(safe-area-inset-top)); }
  .bk-app.has-bottom-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Responsive — tablet */
@media (max-width: 960px) {
  .bk-marketing-nav { display: none !important; }
  .bk-shell { grid-template-columns: 1fr !important; padding-left: 16px !important; padding-right: 16px !important; }
  .bk-side {
    position: fixed !important; top: 0 !important; bottom: 0 !important; left: 0 !important; right: auto !important;
    width: min(280px, 85vw) !important;
    height: 100dvh !important; z-index: 101; transform: translateX(-110%); transition: transform 0.28s ease;
    border-radius: 0 20px 20px 0 !important; overflow-y: auto; overflow-x: hidden;
    padding-top: max(18px, env(safe-area-inset-top)) !important;
    padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
  }
  [dir="rtl"] .bk-side {
    left: auto !important; right: 0 !important;
    transform: translateX(110%); border-radius: 20px 0 0 20px !important;
  }
  .bk-side.is-open { transform: translateX(0) !important; }
  .bk-dash-sidebar-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: #1F5AFF; background: #EEF3FF; border: none;
    border-radius: 12px; padding: 12px 16px; cursor: pointer; min-height: 48px;
    box-shadow: 0 4px 14px -6px rgba(31, 90, 255, 0.35);
    flex-shrink: 0;
  }
  .bk-dash-header-start .bk-dash-sidebar-toggle {
    margin-bottom: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .bk-admin-shell > main > .bk-dash-sidebar-toggle { margin-bottom: 16px; }
  body:has(.bk-customer-dash-page) {
    padding-top: 0;
  }
  .bk-customer-dash-page .bk-shell.bk-pad {
    padding-top: 0 !important;
  }
  .bk-customer-dash-page .bk-shell main .bk-dash-header {
    position: sticky;
    top: 0;
    z-index: 92;
    margin: 0 -16px 16px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 16px 12px;
    background: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(234, 239, 246, 0.9);
    box-shadow: 0 10px 30px -22px rgba(15, 42, 80, 0.22);
  }
  .bk-customer-dash-page .bk-shell main {
    overflow-x: visible;
  }
  .bk-2col { grid-template-columns: 1fr !important; gap: 24px !important; }
  .bk-track-layout { grid-template-columns: 1fr !important; }
  .bk-dash-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px 14px;
  }
  .bk-dash-header-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
  .bk-dash-header-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .bk-track-summary { position: static !important; top: auto !important; }
  .bk-cards3, .bk-cards4 { grid-template-columns: repeat(2, 1fr) !important; }
  .bk-cards5 { grid-template-columns: repeat(3, 1fr) !important; }
  .bk-foot { grid-template-columns: 1fr 1fr !important; }
  .bk-hero-h1 { font-size: 42px !important; }
  .bk-h2 { font-size: 30px !important; }
  .bk-order-wizard { grid-template-columns: 1fr !important; }
  .bk-order-wizard-main { min-width: 0 !important; max-width: 100% !important; padding-bottom: 24px; }
  .bk-live-estimate {
    position: sticky;
    top: 72px;
    border-radius: 20px !important;
    box-shadow: 0 12px 34px -20px rgba(15, 42, 80, 0.2);
  }
  .bk-order-wizard-main { padding-bottom: 24px; }
  .bk-admin-shell { grid-template-columns: 1fr !important; padding-left: 16px !important; padding-right: 16px !important; }
  .bk-admin-side {
    position: fixed !important; top: 0; bottom: 0; left: 0; right: auto;
    width: min(260px, 85vw); z-index: 101;
    transform: translateX(-110%); transition: transform 0.28s ease;
    height: 100dvh !important; overflow-y: auto;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    border-radius: 0 20px 20px 0 !important;
  }
  [dir="rtl"] .bk-admin-side {
    left: auto; right: 0;
    transform: translateX(110%); border-radius: 20px 0 0 20px !important;
  }
  .bk-admin-side.is-open { transform: translateX(0) !important; }
  .bk-home-header-inner { flex-wrap: wrap; gap: 12px !important; }
  .bk-home-header-inner .bk-header-actions { margin-inline-start: auto; }
}

/* Responsive — mobile / web app */
@media (max-width: 720px) {
  header .bk-brand-logo img, .bk-home-header .bk-brand-logo img { height: 40px !important; max-width: 130px !important; }
  .bk-foot .bk-brand-logo img { height: 52px !important; max-width: 160px !important; }
  .bk-mobile-toggle, .bk-home-menu-btn { display: inline-flex; }
  .bk-app-header .bk-mobile-toggle { display: inline-flex; }
  .bk-app-nav { display: none; }
  .bk-app-header {
    padding: 10px 16px 6px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .bk-app.has-bottom-bar .bk-app-header .bk-header-actions {
    display: none !important;
  }
  .bk-app.has-bottom-bar .bk-app-header-logo {
    margin-inline: auto;
  }
  .bk-home-header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 10px !important;
  }
  .bk-home-header-inner .bk-home-menu-btn { order: unset; }
  .bk-home-header-inner .bk-brand-logo { justify-self: center; margin: 0 !important; }
  .bk-home-header-inner .bk-header-actions { justify-self: end; align-items: center; }
  .bk-home-header-inner .bk-header-actions .bk-lang-switcher--dropdown,
  .bk-app-header .bk-header-actions .bk-lang-switcher--dropdown {
    display: none;
  }
  .bk-marketing-nav { display: none !important; }
  .bk-bottom-bar { display: flex; }
  .bk-app.has-bottom-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bk-shell.bk-pad,
  .bk-admin-shell.bk-pad {
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }
  .bk-app.has-bottom-bar .bk-shell.bk-pad,
  .bk-app.has-bottom-bar .bk-admin-shell.bk-pad {
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
  }
  .bk-app.has-bottom-bar .bk-shell main,
  .bk-app.has-bottom-bar .bk-admin-shell > main {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .bk-shell main,
  .bk-admin-shell > main {
    min-width: 0;
    overflow-x: hidden;
  }
  .bk-shell main h1,
  .bk-admin-shell main h1 {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  .bk-shell main > div[style*="justify-content:space-between"],
  .bk-admin-shell main > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .bk-shell main > div[style*="justify-content:space-between"] > a,
  .bk-admin-shell main > div[style*="justify-content:space-between"] > a,
  .bk-shell main > div[style*="justify-content:space-between"] > button,
  .bk-admin-shell main > div[style*="justify-content:space-between"] > button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .bk-shell main form[style*="grid-template-columns"],
  .bk-admin-shell main form[style*="grid-template-columns"],
  .bk-shell main > form[style*="grid-template-columns"],
  .bk-admin-shell > main > form[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .bk-shell main > div[style*="grid-template-columns:repeat"],
  .bk-admin-shell main > div[style*="grid-template-columns:repeat"],
  .bk-shell main > div[style*="grid-template-columns: 1fr 1fr"],
  .bk-admin-shell main > div[style*="grid-template-columns: 1fr 1fr"],
  .bk-shell main > div[style*="grid-template-columns:1fr 1fr"],
  .bk-admin-shell main > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .bk-shell main [style*="linear-gradient"][style*="justify-content:space-between"],
  .bk-admin-shell main [style*="linear-gradient"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .bk-2col[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .bk-pad { padding-left: 16px !important; padding-right: 16px !important; }
  .bk-cards3, .bk-cards4, .bk-cards5 { grid-template-columns: 1fr !important; }
  .bk-foot { grid-template-columns: 1fr !important; gap: 22px !important; }
  .bk-hero-h1 { font-size: 32px !important; line-height: 1.1 !important; }
  .bk-hero-visual { height: 240px !important; }
  .bk-h2 { font-size: 24px !important; }
  .bk-hide-sm { display: none !important; }
  .bk-stack-sm { flex-direction: column !important; align-items: stretch !important; }
  .bk-banner-img { display: none !important; }
  .bk-dash-search-row { justify-content: stretch !important; }
  .bk-dash-search { width: 100% !important; }
  .bk-panel-search-row { justify-content: stretch !important; }
  .bk-panel-search { width: 100% !important; }
  .bk-order-row {
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    grid-template-areas:
      "icon main"
      "icon route"
      "meta meta" !important;
    gap: 8px 12px !important;
    align-items: start !important;
  }
  .bk-order-icon { grid-area: icon; }
  .bk-order-main { grid-area: main; min-width: 0; }
  .bk-order-route {
    grid-area: route;
    grid-column: auto !important;
    font-size: 12px !important;
    line-height: 1.45;
  }
  .bk-order-meta {
    grid-area: meta;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid #F0F2F7;
    margin-top: 2px;
  }
  .bk-order-price { text-align: end; flex-shrink: 0; }
  .bk-track-shipment-btn { margin-bottom: 4px; }
  .bk-track-page h1 { font-size: 24px !important; margin-bottom: 12px !important; }
  .bk-track-page { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  .bk-track-layout { gap: 16px !important; }
  .bk-track-summary { position: static !important; top: auto !important; }
  .bk-track-status-card,
  .bk-track-qr-card,
  .bk-track-timeline { padding: 18px !important; }
  .bk-track-qr-card { flex-direction: column !important; align-items: flex-start !important; }
  .bk-track-qr-card img[alt="QR"] { width: 88px !important; height: 88px !important; }
  .bk-track-timeline-list {
    margin-left: 10px !important;
    padding-left: 22px !important;
  }
  .bk-track-dot { left: -28px !important; }
  .bk-track-timeline-item { padding: 12px 14px !important; margin-bottom: 12px !important; }
  .bk-track-timeline-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .bk-track-timeline-head span:last-child { white-space: normal !important; }
  .bk-track-search { margin-bottom: 18px !important; }
  .bk-track-search button { width: 100%; min-height: 48px; }
  .bk-header-actions { gap: 8px !important; }
  .bk-header-actions > .bk-app-header-cta,
  .bk-header-actions > .bk-app-header-link,
  .bk-header-actions > .bk-header-cta-sm,
  .bk-header-actions > .bk-header-auth-link,
  .bk-header-actions > .bk-header-auth-cta,
  .bk-header-actions > a[href*="login"],
  .bk-header-actions > a[href*="register"],
  .bk-header-actions > a[href*="dashboard"] {
    padding: 10px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  .bk-header-actions > .bk-header-auth-link {
    padding: 9px 14px !important;
  }
  .bk-cta-row { flex-direction: column !important; align-items: stretch !important; }
  .bk-cta-row .bk-btn-primary, .bk-cta-row .bk-btn-outline { width: 100%; justify-content: center; }
  .bk-table-wrap > div[style*="grid-template-columns"], .bk-table-wrap table { min-width: 560px; }
  .bk-stepper { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .bk-stepper-inner { min-width: 520px; }
  .bk-calc-grid { grid-template-columns: 1fr !important; }
  .bk-shipping-pills { flex-wrap: wrap !important; }
  .bk-shipping-pills button { flex: 1 1 calc(50% - 4px) !important; min-width: 0 !important; }
  .bk-home-header-inner { padding-top: 10px !important; }
  .bk-contact-grid { grid-template-columns: 1fr !important; }
  iframe { max-width: 100%; }
  /* Avoid iOS zoom on focus */
  input, select, textarea { font-size: 16px !important; }
  /* Order wizard mobile */
  .bk-wizard-page .bk-wizard-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }
  .bk-wizard-page h1 { font-size: 24px !important; }
  .bk-wizard-fields {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }
  .bk-wizard-field-full { grid-column: auto !important; }
  .bk-wizard-page .bk-cards3 { grid-template-columns: 1fr !important; }
  .bk-wizard-page .bk-stepper { padding: 14px 12px !important; }
  .bk-wizard-page .bk-stepper > div > a > div:last-child,
  .bk-wizard-page .bk-stepper > div > div > div:last-child {
    display: none;
  }
  .bk-wizard-actions {
    position: sticky;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 51;
    margin-top: 20px !important;
    padding: 12px 0 8px;
    background: linear-gradient(180deg, rgba(244, 246, 250, 0), rgba(244, 246, 250, 0.92) 28%, #F4F6FA 100%);
  }
  .bk-wizard-actions a,
  .bk-wizard-actions button {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
  .bk-estimate-toggle {
    display: none;
  }
  .bk-wizard-page .bk-live-estimate {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    top: auto !important;
    z-index: 52;
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 -8px 32px -8px rgba(15, 42, 80, 0.28);
    overflow: hidden;
    max-height: none;
  }
  .bk-wizard-page .bk-estimate-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: linear-gradient(135deg, #0B2A4A, #0B3AB0);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    min-height: 52px;
  }
  .bk-wizard-page .bk-estimate-toggle-label {
    font-size: 14px;
    font-weight: 600;
  }
  .bk-wizard-page .bk-estimate-toggle-total {
    font-family: var(--bk-font-display);
    font-weight: 800;
    font-size: 18px;
    margin-inline-start: auto;
  }
  .bk-wizard-page .bk-estimate-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .bk-wizard-page .bk-live-estimate.is-expanded .bk-estimate-chevron {
    transform: rotate(180deg);
  }
  .bk-wizard-page .bk-estimate-title,
  .bk-wizard-page .bk-live-estimate > .bk-estimate-body > div[style*="Grand Total"] {
    /* title hidden on mobile collapsed */
  }
  .bk-wizard-page .bk-estimate-title { display: none; }
  .bk-wizard-page .bk-estimate-body {
    display: none;
    padding: 0 16px 14px;
    max-height: 38vh;
    overflow-y: auto;
    background: #fff;
  }
  .bk-wizard-page .bk-live-estimate.is-expanded .bk-estimate-body {
    display: block;
  }
  .bk-wizard-page .bk-live-estimate.is-expanded {
    max-height: min(52vh, calc(100dvh - 140px - env(safe-area-inset-bottom)));
    overflow-y: auto;
  }
  .bk-wizard-page .bk-live-estimate.is-expanded .bk-estimate-toggle {
    border-radius: 0;
  }
}

@media (max-width: 400px) {
  .bk-hero-h1 { font-size: 26px !important; }
  .bk-bottom-bar a { font-size: 9px; padding: 6px 1px; }
  .bk-bottom-bar svg { width: 20px; height: 20px; }
  .bk-install-banner { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

footer.bk-foot {
  margin-bottom: 24px;
}
@media (max-width: 720px) {
  footer.bk-foot {
    margin-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    padding-bottom: 24px;
  }
  .bk-app.has-bottom-bar footer.bk-foot {
    margin-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }
}

/* Contact map on mobile */
@media (max-width: 720px) {
  .bk-contact-map { min-height: 280px !important; width: 100%; border-radius: 16px; overflow: hidden; }
  .bk-contact-map iframe { min-height: 280px !important; }
}

/* Marketing / home page */
.bk-marketing-page .bk-marketing-wrap {
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

/* Service cards — logical positioning for RTL */
.bk-marketing-page .bk-service-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  min-height: 186px;
  background: #fff;
  border: 1px solid #EAEFF6;
  border-radius: 20px;
  box-shadow: 0 14px 34px -28px rgba(15,42,80,0.5);
}
.bk-marketing-page .bk-service-card-body {
  padding-inline-end: 148px;
}
.bk-marketing-page .bk-service-card-title {
  font-family: var(--bk-font-display);
  font-weight: 700;
  font-size: 17px;
  color: #0B2A4A;
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}
.bk-marketing-page .bk-service-card-desc {
  font-family: var(--bk-font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: #6B7A90;
}
html[lang="fa"] .bk-marketing-page .bk-service-card-title,
html[lang="ar"] .bk-marketing-page .bk-service-card-title {
  letter-spacing: 0;
  font-weight: 700;
}
html[lang="fa"] .bk-marketing-page .bk-service-card-desc,
html[lang="ar"] .bk-marketing-page .bk-service-card-desc {
  line-height: 1.85;
}
.bk-marketing-page .bk-service-card-img {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  width: 132px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px -16px rgba(15,42,80,0.45);
  border: 1px solid #EEF1F8;
}
.bk-marketing-page .bk-service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bk-marketing-page .bk-services-intro {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}
.bk-marketing-page .bk-clickable-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bk-marketing-page .bk-clickable-card:hover {
  transform: translateY(-2px);
  border-color: #D6E4FF !important;
  box-shadow: 0 18px 40px -24px rgba(31,90,255,0.35) !important;
}
.bk-marketing-page .bk-clickable-card:focus-visible {
  outline: 2px solid #1F5AFF;
  outline-offset: 3px;
}

.bk-card-detail-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 56px;
}
.bk-card-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #5C6B82;
  text-decoration: none;
  margin-bottom: 24px;
}
.bk-card-detail-back:hover { color: #1F5AFF; }
[dir="rtl"] .bk-card-detail-back svg { transform: scaleX(-1); }
.bk-card-detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid #EAEFF6;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px -30px rgba(15,42,80,0.35);
  margin-bottom: 28px;
}
.bk-card-detail-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F5AFF;
  margin-bottom: 10px;
}
.bk-card-detail-title {
  font-size: 34px;
  font-weight: 800;
  color: #0B2A4A;
  line-height: 1.12;
  margin: 0 0 12px;
}
.bk-card-detail-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #5C6B82;
  margin: 0;
}
.bk-card-detail-badge {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #EEF3FF;
  color: #2F6FDB;
  font-size: 13px;
  font-weight: 600;
}
.bk-card-detail-hero-media {
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid #EEF1F8;
}
.bk-card-detail-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.bk-card-detail-body,
.bk-card-detail-features,
.bk-card-detail-video,
.bk-card-detail-gallery {
  background: #fff;
  border: 1px solid #EAEFF6;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}
.bk-card-detail-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0B2A4A;
  margin: 0 0 16px;
}
.bk-card-detail-prose {
  font-size: 16px;
  line-height: 1.8;
  color: #5C6B82;
}
.bk-card-detail-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bk-card-detail-feature-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: #F8FAFD;
  border: 1px solid #EAEFF6;
  font-size: 14px;
  font-weight: 600;
  color: #0B2A4A;
}
.bk-card-detail-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #0B2A4A;
}
.bk-card-detail-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bk-card-detail-video-file {
  width: 100%;
  border-radius: 16px;
  background: #000;
}
.bk-card-detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bk-card-detail-gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #EAEFF6;
}
.bk-card-detail-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.bk-card-detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(120deg, #EEF3FF 0%, #F8FAFD 100%);
  border: 1px solid #DCE9FF;
}
.bk-card-detail-cta-title {
  font-size: 22px;
  font-weight: 800;
  color: #0B2A4A;
  margin: 0 0 6px;
}
.bk-card-detail-cta-sub {
  margin: 0;
  color: #5C6B82;
  font-size: 14px;
}
.bk-card-detail-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Public tool pages — spacing below marketing header */
.bk-page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}
.bk-page-shell--narrow { max-width: 1000px; }
.bk-page-shell--medium { max-width: 920px; }
.bk-page-intro {
  margin-bottom: 28px;
  max-width: 720px;
}
.bk-page-intro__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F5AFF;
  margin-bottom: 10px;
}
.bk-page-intro__title {
  font-family: var(--bk-font-display);
  font-size: 34px;
  font-weight: 800;
  color: #0B2A4A;
  line-height: 1.12;
  margin: 0 0 10px;
}
html[lang="fa"] .bk-page-intro__title,
html[lang="ar"] .bk-page-intro__title {
  letter-spacing: 0;
}
.bk-page-intro__subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: #6B7A90;
  margin: 0;
  max-width: 640px;
}
.bk-tool-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .bk-card-detail-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .bk-card-detail-title { font-size: 28px; }
  .bk-card-detail-feature-grid,
  .bk-card-detail-gallery-grid {
    grid-template-columns: 1fr;
  }
  .bk-card-detail-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .bk-page-shell {
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 48px;
  }
  .bk-page-intro__title {
    font-size: 28px;
  }
  .bk-page-intro {
    margin-bottom: 22px;
  }
}

@media (max-width: 720px) {
  .bk-marketing-page .bk-marketing-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
  }
  .bk-marketing-page section {
    margin-top: 40px !important;
    margin-bottom: 36px !important;
  }
  .bk-marketing-page .bk-hero {
    padding-top: 24px !important;
    padding-bottom: 12px !important;
  }
  .bk-marketing-page .bk-hero-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 10px;
  }
  .bk-marketing-page .bk-hero-cta .bk-btn-primary,
  .bk-marketing-page .bk-hero-cta .bk-btn-outline {
    padding: 13px 10px;
    font-size: 13px;
    min-height: 44px;
  }
  .bk-marketing-page .bk-hero-sub {
    font-size: 15.5px !important;
    margin-bottom: 22px !important;
  }
  .bk-marketing-page .bk-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
    margin-top: 28px !important;
  }
  .bk-marketing-page .bk-hero-stats > div {
    min-width: 0;
  }
  .bk-marketing-page .bk-trusted-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 18px 16px !important;
  }
  .bk-marketing-page .bk-trusted-logos {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px !important;
    width: 100%;
  }
  .bk-marketing-page .bk-trusted-logos > span {
    font-size: 13px !important;
    min-width: 0;
  }
  .bk-marketing-page .bk-service-card {
    min-height: 0 !important;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .bk-marketing-page .bk-service-card-body {
    padding-inline-end: 0 !important;
  }
  .bk-marketing-page .bk-service-card-body > div {
    max-width: 100% !important;
  }
  .bk-marketing-page .bk-service-card-img {
    position: static !important;
    width: 100% !important;
    height: 140px !important;
    order: 3;
  }
  .bk-marketing-page .bk-how-steps {
    flex-direction: column !important;
    gap: 28px !important;
  }
  .bk-marketing-page .bk-how-step {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .bk-marketing-page .bk-how-step > div:last-child > div:last-child {
    max-width: none !important;
  }
  .bk-marketing-page .bk-stats-banner {
    padding: 20px 16px !important;
    margin-bottom: 28px !important;
  }
  .bk-marketing-page .bk-stats-banner-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
  }
  .bk-marketing-page .bk-stats-banner-item {
    min-width: 0;
  }
  .bk-marketing-page .bk-stats-banner-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .bk-marketing-page .bk-cta-row {
    padding: 28px 20px !important;
  }
  .bk-marketing-page .bk-cta-row h2 {
    font-size: 24px !important;
  }
  .bk-marketing-page .bk-marketing-foot {
    margin-bottom: 16px !important;
  }
  .bk-header-cta-sm {
    padding: 10px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .bk-header-cta-sm {
    padding: 9px 10px !important;
    font-size: 11px !important;
  }
}

/* Order wizard — desktop estimate */
.bk-estimate-toggle { display: none; }
.bk-estimate-body { display: block; }

/* Auth pages */
.bk-auth-page .bk-install-banner { display: none !important; }
.bk-auth-page { padding-bottom: 0 !important; }
.bk-auth-topbar { display: none !important; }
.bk-header-auth-link.is-active {
  color: #1F5AFF;
  background: #EEF3FF;
  border-color: #1F5AFF;
  box-shadow: none;
}
.bk-header-auth-cta.is-active {
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(31, 90, 255, 0.85);
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: -2px;
}
.bk-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3A4A63;
  text-decoration: none;
  padding: 8px 4px;
  min-height: 44px;
}
.bk-auth-back svg { flex-shrink: 0; }
[dir="rtl"] .bk-auth-back svg { transform: scaleX(-1); }

@media (min-width: 961px) {
  .bk-auth-page .bk-home-header + .bk-pad,
  .bk-auth-page .bk-home-header ~ .bk-auth-topbar + .bk-pad {
    min-height: calc(100vh - 88px);
  }
}

@media (max-width: 720px) {
  body:has(.bk-auth-page) {
    padding-top: 0;
  }
  .bk-app.bk-auth-page.has-bottom-bar > .bk-pad,
  .bk-app.bk-auth-page.has-bottom-bar .bk-pad:first-of-type {
    padding-bottom: 24px !important;
  }
}

