﻿/* TakTek Delivery — SaaS marketing + shared UI | prefix: niv- / tk- */
:root {
  --niv-brand: #0f4c81;
  --niv-brand-dark: #0c3d68;
  --niv-brand-darker: #0a3154;
  --niv-brand-light: #e8f1f8;
  --niv-brand-soft: #9ebfd9;
  --niv-brand-rgb: 15, 76, 129;
  --niv-accent: #10ac84;
  --niv-accent-soft: rgba(16, 172, 132, 0.12);
  --niv-yellow: #0f4c81;
  --niv-yellow-hot: #1666a8;
  --niv-pink: #1666a8;
  --niv-mint: #d8f5ee;
  --niv-sky: #dbeafe;
  --niv-ink: #0f172a;
  --niv-panel: #1e293b;
  --niv-panel-2: #334155;
  --niv-cream: #f3f6fa;
  --niv-white: #ffffff;
  --niv-slate-900: #0f172a;
  --niv-slate-800: #1e293b;
  --niv-slate-700: #334155;
  --niv-slate-600: #475569;
  --niv-slate-500: #64748b;
  --niv-slate-400: #94a3b8;
  --niv-slate-300: #cbd5e1;
  --niv-slate-200: #e2e8f0;
  --niv-slate-100: #f1f5f9;
  --niv-amber: #f59e0b;
  --niv-red: #ef4444;
  --niv-blue: #1666a8;
  --niv-radius: 12px;
  --niv-radius-pill: 999px;
  --niv-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 76, 129, 0.08);
  --niv-shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(15, 76, 129, 0.1);
  --niv-shadow-xl: 0 12px 40px rgba(15, 23, 42, 0.12);
  --niv-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --niv-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --niv-font: 'Manrope', 'Noto Sans Arabic', system-ui, sans-serif;
  --niv-font-display: 'Manrope', 'Noto Sans Arabic', system-ui, sans-serif;
  --niv-page-max: 72rem;
  --niv-page-side: clamp(1.25rem, 6vw, 4rem);
}
html[lang="ku"], html[lang="ckb"] {
  --niv-font: 'Noto Sans Arabic', Tahoma, sans-serif;
  --niv-font-display: 'Noto Sans Arabic', Tahoma, sans-serif;
}
@media (min-width: 640px) {
  :root { --niv-page-side: clamp(1.5rem, 5.5vw, 4.5rem); }
}
@media (min-width: 1024px) {
  :root { --niv-page-side: clamp(2rem, 5vw, 5rem); }
}
@media (min-width: 1280px) {
  :root { --niv-page-side: 3.5rem; }
}
@media (min-width: 1536px) {
  :root { --niv-page-side: 4.5rem; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; max-width: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--niv-font);
  color: var(--niv-slate-800);
  background: var(--niv-cream);
  line-height: 1.6;
  overflow-x: clip;
}
body.niv-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; }
[dir="rtl"] { text-align: right; }

.container-custom {
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
  min-width: 0;
}

/* Landing: same rule — side space from width, not padding-inline */
.niv-page-bg > .niv-site-header {
  padding-inline: 0;
  padding-top: 0.75rem;
}
.niv-page-bg > .niv-site-header .niv-nav {
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  margin-inline: auto;
}
.niv-home-main {
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
  box-sizing: border-box;
}
.niv-home-main .container-custom,
.niv-home-main .niv-strip {
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.niv-page-bg {
  min-height: 100vh;
  background: var(--niv-cream);
  color: var(--niv-slate-800);
  overflow-x: clip;
}
.niv-page-bg--light {
  background: var(--niv-cream);
  color: var(--niv-slate-800);
}
.niv-page-bg--yellow {
  background: var(--niv-brand-light);
  color: var(--niv-ink);
}
.niv-page-bg:has(> .niv-site-header) { padding-top: 4.25rem; }
@media (max-width: 767px) {
  .niv-page-bg:has(> .niv-site-header) { padding-top: 3.85rem; }
}

.niv-site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 300;
  padding: 0; pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}
.niv-site-header > * { pointer-events: auto; }
.niv-nav {
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 767px) {
  .niv-nav { overflow: visible; }
  .niv-nav:has(.niv-mobile-menu.is-open) { background: transparent; }
}
.niv-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 4.75rem; padding: 0.45rem 0;
}
.niv-nav .niv-logo__img,
.niv-nav .niv-logo--xl .niv-logo__img,
.niv-nav .niv-logo__img--xl {
  height: 3.35rem;
  max-width: min(16.5rem, 58vw);
}
@media (min-width: 768px) {
  .niv-nav .niv-logo__img,
  .niv-nav .niv-logo--xl .niv-logo__img,
  .niv-nav .niv-logo__img--xl {
    height: 4.15rem;
    max-width: 20rem;
  }
}
.niv-nav__links { display: none; align-items: center; gap: 0.15rem; }
@media (min-width: 768px) { .niv-nav__links { display: flex; } }
.niv-nav__link {
  padding: 0.45rem 0.8rem; border-radius: 0.55rem;
  font-weight: 600; font-size: 0.9rem; color: var(--niv-slate-600);
  transition: color 0.2s, background 0.2s;
}
.niv-nav__link:hover, .niv-nav__link.is-active {
  color: var(--niv-brand); background: var(--niv-brand-light);
}
.niv-nav__actions { display: flex; align-items: center; gap: 0.45rem; }
.niv-nav__desk-auth { display: none; gap: 0.45rem; align-items: center; }
@media (min-width: 768px) { .niv-nav__desk-auth { display: inline-flex; } }

.niv-logo { display: inline-flex; align-items: center; gap: 0; text-decoration: none; line-height: 0; }
.niv-logo__img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 11.5rem;
  object-fit: contain;
}
.niv-logo--sm .niv-logo__img,
.niv-logo__img--sm { height: 1.7rem; max-width: 7.5rem; }
.niv-logo--md .niv-logo__img,
.niv-logo__img--md { height: 2.35rem; max-width: 11.5rem; }
.niv-logo--lg .niv-logo__img,
.niv-logo__img--lg { height: 2.85rem; max-width: 13.5rem; }
.niv-logo--xl .niv-logo__img,
.niv-logo__img--xl { height: 4.15rem; max-width: 20rem; }
.niv-logo__mark {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  display: block;
  border-radius: 0.55rem;
}
.niv-logo__text {
  font-family: var(--niv-font-display);
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em;
  color: var(--niv-ink);
}
.niv-logo__accent { color: var(--niv-brand); }
.niv-page-bg--light .niv-logo__text,
.niv-page-bg--yellow .niv-logo__text,
.niv-app-page .niv-logo__text { color: var(--niv-ink); }
.niv-page-bg--light .niv-logo__accent,
.niv-page-bg--yellow .niv-logo__accent,
.niv-app-page .niv-logo__accent { color: var(--niv-brand); }
.niv-page-bg--light .niv-nav { background: transparent; border: 0; }
.niv-page-bg--light .niv-nav__link { color: var(--niv-slate-600); }
.niv-page-bg--light .niv-nav__link:hover,
.niv-page-bg--light .niv-nav__link.is-active {
  color: var(--niv-brand); background: var(--niv-brand-light);
}

.niv-hamburger {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; width: 2.4rem; height: 2.4rem; border-radius: 0.55rem;
  border: 1px solid var(--niv-slate-200); background: #fff; cursor: pointer;
}
@media (min-width: 768px) { .niv-hamburger { display: none; } }
.niv-hamburger__bar { width: 1rem; height: 2px; background: var(--niv-ink); border-radius: 2px; }
.niv-page-bg--light .niv-hamburger { border-color: var(--niv-slate-200); background: #fff; }
.niv-page-bg--light .niv-hamburger__bar { background: var(--niv-ink); }
.niv-hamburger--light { border-color: var(--niv-slate-200); background: #fff; }
.niv-hamburger--light .niv-hamburger__bar { background: var(--niv-ink); }
.niv-mobile-menu {
  display: none; flex-direction: column; max-height: 0; opacity: 0; overflow: hidden;
  padding: 0;
  border-top: 0 solid transparent;
  background: #fff;
  transition: max-height 0.35s var(--niv-ease), opacity 0.25s ease, padding 0.25s ease, border-color 0.2s;
}
@media (max-width: 767px) {
  .niv-mobile-menu { display: flex; }
  .niv-mobile-menu.is-open {
    max-height: min(70vh, 28rem);
    opacity: 1;
    padding: 0.35rem 0 1rem;
    border-top: 1px solid var(--niv-slate-100);
  }
}
.niv-mobile-menu__link {
  display: block; padding: 0.85rem 0.35rem; font-weight: 650; color: var(--niv-slate-800);
  border-bottom: 1px solid var(--niv-slate-100); border-radius: 0.45rem;
}
.niv-mobile-menu__link:last-child { border-bottom: 0; }
.niv-mobile-menu__link:hover { background: var(--niv-brand-light); color: var(--niv-brand); }
.niv-page-bg--light .niv-mobile-menu__link { color: var(--niv-slate-800); border-color: var(--niv-slate-100); }
.niv-page-bg--light .niv-nav:has(.niv-mobile-menu.is-open) { background: transparent; }
.niv-app-page .niv-mobile-menu__link,
.niv-app-nav .niv-mobile-menu__link,
.niv-mobile-menu--app .niv-mobile-menu__link {
  color: var(--niv-slate-800);
  border-color: var(--niv-slate-100);
}
.niv-app-page .niv-mobile-menu__link:hover,
.niv-app-nav .niv-mobile-menu__link:hover,
.niv-mobile-menu--app .niv-mobile-menu__link:hover,
.niv-app-page .niv-mobile-menu__link.is-active,
.niv-app-nav .niv-mobile-menu__link.is-active {
  color: var(--niv-brand);
  background: var(--niv-brand-light);
}

.niv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.65rem 1.2rem; border-radius: 0.65rem; border: 1px solid transparent;
  font-weight: 700; font-family: 'Rubik', 'Noto Sans Arabic', var(--niv-font); cursor: pointer; font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s var(--niv-ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tk-app-body .fa-solid,
.tk-app-body .fas,
.tk-app-body .far,
.tk-app-body .fab,
.tk-shell .fa-solid,
.tk-shell .fas {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.tk-app-body .fas,
.tk-app-body .fa-solid,
.tk-shell .fas,
.tk-shell .fa-solid {
  font-weight: 900;
}
.niv-btn:hover { transform: translateY(-1px); }
.niv-btn--primary {
  background: var(--niv-brand);
  color: #fff;
  border-color: var(--niv-brand);
  box-shadow: 0 1px 2px rgba(15, 76, 129, 0.2);
}
.niv-btn--primary:hover { background: var(--niv-brand-dark); border-color: var(--niv-brand-dark); color: #fff; }
.niv-btn--white {
  background: #fff;
  color: var(--niv-ink);
  border-color: var(--niv-slate-200);
  box-shadow: var(--niv-shadow);
}
.niv-btn--ghost {
  background: transparent;
  color: var(--niv-slate-700);
  border-color: transparent;
}
.niv-btn--ghost:hover { background: var(--niv-slate-100); color: var(--niv-brand); }
.niv-btn--outline {
  background: #fff;
  color: var(--niv-brand);
  border-color: var(--niv-slate-200);
}
.niv-btn--outline:hover { border-color: var(--niv-brand-soft); background: var(--niv-brand-light); }
.niv-btn--secondary {
  background: #fff;
  color: var(--niv-brand);
  border-color: var(--niv-slate-200);
}
.niv-btn--secondary:hover { border-color: var(--niv-brand-soft); background: var(--niv-brand-light); }
.niv-btn--sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.niv-btn--lg { padding: 0.85rem 1.45rem; font-size: 1rem; }
.niv-btn--xl { padding: 0.9rem 1.55rem; font-size: 1rem; font-weight: 750; letter-spacing: -0.01em; }
.niv-btn--full { width: 100%; }

.niv-hero {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
  padding: 1.75rem 0 2.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.niv-hero > * { min-width: 0; max-width: 100%; }
@media (min-width: 640px) {
  .niv-hero { padding: 2.25rem 0 3.5rem; gap: 2.25rem; }
}
@media (min-width: 960px) {
  .niv-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    padding: 2.75rem 0 5rem;
  }
}
.niv-hero__brand {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.75rem;
}
.niv-hero__title {
  font-size: clamp(1.45rem, 5.2vw, 2.6rem); font-weight: 800; line-height: 1.18;
  letter-spacing: -0.03em; margin-bottom: 0.85rem;
  overflow-wrap: anywhere; word-break: break-word;
}
.niv-hero__sub {
  color: rgba(255,255,255,0.82); max-width: 34rem; margin-bottom: 1.35rem;
  overflow-wrap: anywhere;
}
.niv-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.niv-hero__cta .niv-btn { max-width: 100%; }
.niv-hero__feats { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; list-style: none; }
.niv-hero__feats li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.9);
}
.niv-hero__feats li::before {
  content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--niv-brand);
}

/* Code window + notification animation */
.niv-hero-stage { position: relative; min-width: 0; max-width: 100%; }
.niv-terminal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}
.niv-terminal__bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1rem; background: #161b22; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.niv-terminal__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.niv-terminal__dot--r { background: #ff5f56; }
.niv-terminal__dot--y { background: #ffbd2e; }
.niv-terminal__dot--g { background: #27c93f; }
.niv-terminal__title { margin-inline-start: 0.5rem; font-size: 0.75rem; color: #8b949e; font-weight: 600; }
.niv-terminal__body {
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  /* Standalone <pre class="niv-terminal__body"> on light panels needs its own dark surface */
  background: #0d1117;
  color: #f0f6fc;
  border: 1px solid #30363d;
  border-radius: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  max-width: 100%;
  white-space: pre;
}
.niv-terminal .niv-terminal__body {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.niv-terminal__body .k { color: #ff7b72; }
.niv-terminal__body .s { color: #79c0ff; }
.niv-terminal__body .v { color: #7ee787; }

.niv-notify-stack {
  position: absolute; inset-inline-end: 0; bottom: -1.25rem;
  width: min(100%, 17.5rem); display: grid; gap: 0.55rem; z-index: 2;
  max-width: calc(100% - 0.5rem);
}
@media (max-width: 640px) {
  .niv-notify-stack {
    position: relative; inset: auto; bottom: auto; width: 100%;
    margin-top: 0.85rem; max-width: 100%;
  }
  .niv-hero-stage { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .niv-hero-stage { padding-inline-end: 0.75rem; }
}
.niv-notify {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: start;
  background: rgba(255,255,255,0.96); color: var(--niv-ink);
  border-radius: 1rem; padding: 0.75rem 0.85rem;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  transform: translateY(12px) scale(0.96); opacity: 0;
  animation: ocNotifyIn 0.55s var(--niv-spring) forwards;
}
.niv-notify:nth-child(1) { animation-delay: 0.35s; }
.niv-notify:nth-child(2) { animation-delay: 1.1s; opacity: 0.55; transform: translateY(18px) scale(0.92); }
.niv-notify:nth-child(3) { animation-delay: 1.7s; opacity: 0.35; transform: translateY(24px) scale(0.88); }
.niv-notify__icon {
  width: 2.1rem; height: 2.1rem; border-radius: 0.55rem; background: var(--niv-brand);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.85rem;
}
.niv-notify__title { font-size: 0.78rem; font-weight: 800; margin-bottom: 0.15rem; }
.niv-notify__msg { font-size: 0.78rem; color: var(--niv-slate-600); }
.niv-notify__status {
  font-size: 0.68rem; font-weight: 700; color: var(--niv-brand-dark);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.niv-notify__spin {
  width: 0.7rem; height: 0.7rem; border: 2px solid var(--niv-brand-soft);
  border-top-color: var(--niv-brand-dark); border-radius: 50%;
  animation: ocSpin 0.7s linear infinite;
}
@keyframes ocNotifyIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ocSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .niv-notify, .niv-notify__spin { animation: none !important; opacity: 1; transform: none; }
}

.niv-section { padding: 3.5rem 0; overflow-x: clip; }
.niv-section--light { background: var(--niv-cream); color: var(--niv-slate-800); }
.niv-section__title {
  font-family: var(--niv-font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 0.5rem; text-transform: uppercase;
}
.niv-section__sub { color: var(--niv-slate-500); max-width: 38rem; margin-bottom: 1.75rem; }
.niv-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; min-width: 0; }
@media (min-width: 768px) { .niv-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.niv-card {
  background: #fff; border-radius: 0.85rem; padding: 1.35rem;
  border: 1px solid var(--niv-slate-200); box-shadow: var(--niv-shadow);
  min-width: 0; max-width: 100%; box-sizing: border-box;
  transition: transform 0.2s var(--niv-ease), box-shadow 0.2s, border-color 0.2s;
}
.niv-card:hover { transform: translateY(-2px); box-shadow: var(--niv-shadow-lg); border-color: var(--niv-brand-soft); }
.niv-card__price { font-size: 1.75rem; font-weight: 800; color: var(--niv-brand-dark); }
.niv-card__badge {
  display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 0.4rem;
  font-size: 0.68rem; font-weight: 750; letter-spacing: 0.02em;
  background: var(--niv-brand-light); color: var(--niv-brand-darker);
}
.niv-card__badge--soon { background: #fff7ed; color: #c2410c; }

.niv-app-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 50% 30% at 100% 0%, rgba(88,54,199,0.14), transparent 50%),
    radial-gradient(ellipse 40% 25% at 0% 10%, rgba(255,210,0,0.12), transparent 45%),
    var(--niv-cream);
}
.niv-app-nav { position: sticky; top: 0; z-index: 100; padding: 0.65rem 0.75rem 0; }
.niv-app-nav__inner {
  max-width: 88rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.5rem; padding: 0.3rem 0.55rem 0.3rem 1rem;
  background: rgba(255,255,255,0.96); border-radius: 1rem;
  border: 3px solid #0e0e0f; box-shadow: 5px 5px 0 #0e0e0f;
}
@media (max-width: 767px) {
  .niv-app-nav__inner { border-radius: 1.15rem; overflow: hidden; flex-wrap: wrap; }
  .niv-app-nav .niv-mobile-menu {
    flex: 1 0 100%;
    width: 100%;
    order: 20;
    box-sizing: border-box;
  }
  .niv-app-nav:has(.niv-mobile-menu.is-open) .niv-app-nav__inner {
    border-radius: 1.2rem;
    background: #fff;
  }
}
.niv-app-nav__links { display: none; gap: 0.2rem; }
@media (min-width: 768px) { .niv-app-nav__links { display: flex; } }
.niv-app-nav__link {
  padding: 0.45rem 0.85rem; border-radius: var(--niv-radius-pill);
  font-weight: 600; font-size: 0.85rem; color: var(--niv-slate-500);
}
.niv-app-nav__link.is-active, .niv-app-nav__link:hover {
  color: var(--niv-brand-darker); background: var(--niv-brand-light);
}
.niv-app-main { padding: 1.15rem 1rem 3rem; max-width: 88rem; margin: 0 auto; width: 100%; box-sizing: border-box; min-width: 0; }
.niv-app-header { margin-bottom: 1.25rem; }
.niv-app-header__title { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; color: var(--niv-ink); }
.niv-app-header__subtitle { color: var(--niv-slate-500); }

/* Notification bell */
.niv-notif { position: relative; }
.niv-notif__btn {
  position: relative;
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  border: 1px solid var(--niv-slate-200); background: #fff;
  color: var(--niv-slate-700); display: inline-grid; place-items: center;
  cursor: pointer;
}
.niv-notif__btn:hover { border-color: var(--niv-brand-soft); color: var(--niv-brand-darker); }
.niv-notif__badge {
  position: absolute; top: -0.2rem; inset-inline-end: -0.15rem;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.28rem;
  border-radius: 999px; background: #ea4335; color: #fff;
  font-size: 0.65rem; font-weight: 800; line-height: 1.15rem; text-align: center;
  border: 2px solid #fff;
}
.niv-notif__panel {
  position: absolute; top: calc(100% + 0.45rem); inset-inline-end: 0;
  width: min(22rem, calc(100vw - 1.5rem));
  background: #fff; border: 1px solid var(--niv-slate-200);
  border-radius: 1rem; box-shadow: 0 18px 40px rgba(11,20,26,0.14);
  z-index: 220; overflow: hidden;
}
.niv-notif__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--niv-slate-100);
}
.niv-notif__head strong { font-size: 0.9rem; color: var(--niv-ink); }
.niv-notif__markall {
  border: 0; background: transparent; color: var(--niv-brand-dark);
  font-size: 0.75rem; font-weight: 700; cursor: pointer; padding: 0;
}
.niv-notif__list { max-height: 22rem; overflow: auto; }
.niv-notif__empty {
  margin: 0; padding: 1.25rem 1rem; text-align: center;
  color: var(--niv-slate-500); font-size: 0.85rem;
}
.niv-notif__item {
  display: flex; gap: 0.65rem; align-items: flex-start; justify-content: space-between;
  padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--niv-slate-100);
}
.niv-notif__item.is-unread { background: #f0fdf4; }
.niv-notif__item-title { display: block; font-size: 0.86rem; color: var(--niv-ink); margin-bottom: 0.2rem; }
.niv-notif__item-body { margin: 0; font-size: 0.8rem; color: var(--niv-slate-600); line-height: 1.4; }
.niv-notif__item-meta {
  display: flex; gap: 0.75rem; align-items: center; margin-top: 0.4rem;
  font-size: 0.72rem; color: var(--niv-slate-400); font-weight: 600;
}
.niv-notif__item-link { color: var(--niv-brand-dark); font-weight: 700; }
.niv-notif__readbtn {
  flex-shrink: 0; border: 1px solid var(--niv-slate-200); background: #fff;
  border-radius: 999px; padding: 0.3rem 0.55rem; font-size: 0.68rem; font-weight: 700;
  color: var(--niv-slate-600); cursor: pointer; white-space: nowrap;
}
.niv-notif__readbtn:hover { border-color: var(--niv-brand); color: var(--niv-brand-darker); }
@media (max-width: 767px) {
  .niv-notif__panel { inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(-50%); }
}

.niv-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .niv-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.niv-stat-card {
  background: #fff; border-radius: 0.85rem; padding: 1rem;
  border: 1px solid var(--niv-slate-200); box-shadow: var(--niv-shadow);
  display: flex; gap: 0.75rem; align-items: center;
}
.niv-stat-card__label { font-size: 0.75rem; color: var(--niv-slate-500); font-weight: 700; }
.niv-stat-card__value { font-size: 1.25rem; font-weight: 800; color: var(--niv-ink); font-family: var(--niv-font-display); }

.niv-panel {
  background: #fff; border-radius: 0.85rem; padding: 1.25rem;
  border: 1px solid var(--niv-slate-200); box-shadow: var(--niv-shadow); margin-bottom: 1rem;
}
.niv-panel__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.75rem; }
.niv-field { margin-bottom: 1rem; }
.niv-field__label,
.niv-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
  color: var(--niv-slate-700);
}
.niv-input, .niv-select, .niv-textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 0.85rem;
  border: 1.5px solid var(--niv-slate-200); font: inherit; font-size: 0.95rem; background: #fff;
}
.niv-textarea { min-height: 7rem; resize: vertical; }
.niv-table-wrap { overflow-x: auto; border-radius: 1rem; border: 1px solid var(--niv-slate-200); }
.niv-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
.niv-table th {
  text-align: start; padding: 0.7rem 0.7rem; background: var(--niv-cream);
  font-size: 0.88rem; text-transform: none; letter-spacing: 0; color: var(--niv-slate-700); font-weight: 800;
}
.niv-table td { padding: 0.7rem 0.7rem; border-top: 1px solid var(--niv-slate-100); font-size: 0.95rem; }
.niv-badge {
  display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; background: var(--niv-slate-100); color: var(--niv-slate-600);
}
.niv-badge--ok { background: var(--niv-brand-light); color: var(--niv-brand-darker); }
.niv-badge--warn { background: #fff3cd; color: #92400e; }
.niv-badge--bad { background: #fde8e8; color: #9b1c1c; }
.niv-code {
  display: inline;
  background: #f4f0ff;
  color: #352077;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid #ddd6fe;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86em;
  font-weight: 650;
  overflow-x: auto;
  word-break: break-word;
}
p.niv-code,
pre.niv-code,
.niv-code:where(p, pre, div, blockquote) {
  display: block;
  background: #0d1117;
  color: #f0f6fc;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid #30363d;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
}
.niv-lang { position: relative; }
.niv-lang__btn {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.55rem;
  border-radius: 0.5rem; border: 1px solid var(--niv-slate-200); background: #fff;
  color: var(--niv-slate-700); cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700;
}
.niv-page-bg--light .niv-lang__btn,
.tk-site .niv-lang__btn { border-color: var(--niv-slate-200); color: var(--niv-slate-700); }
.niv-lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 0.35rem);
  background: #fff; color: var(--niv-ink); border-radius: 0.85rem; min-width: 11rem;
  box-shadow: var(--niv-shadow); display: none; max-height: 16rem; overflow: auto; z-index: 50;
}
.niv-lang__menu.is-open { display: block; }
.niv-lang__item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem;
  font-size: 0.85rem; font-weight: 600; color: var(--niv-slate-700);
}
.niv-lang__item:hover { background: var(--niv-brand-light); }
.niv-chat-log {
  background: #0b141a; color: #e9edef; border-radius: 1rem; padding: 1rem; min-height: 12rem;
  display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 0.85rem;
}
.niv-chat-bubble {
  max-width: 85%; padding: 0.65rem 0.85rem; border-radius: 0.85rem; font-size: 0.88rem;
}
.niv-chat-bubble--user { align-self: flex-end; background: var(--niv-brand); color: #fff; }
.niv-chat-bubble--bot { align-self: flex-start; background: #1f2c34; }

/* ===== TakTek auth (matches landing / dashboard / pricing) ===== */
.tk-auth-body,
.niv-auth-body {
  background: #f3f6fa;
  min-height: 100vh;
  font-family: 'Manrope', 'Noto Sans Arabic', system-ui, sans-serif;
}
.niv-auth-lang,
.tk-auth-lang {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 1.1rem;
  z-index: 210;
}
.tk-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: #f3f6fa;
}
@media (min-width: 1024px) {
  .tk-auth-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.tk-auth-brand {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(14, 165, 164, 0.35), transparent 55%),
    linear-gradient(155deg, #0b1f33 0%, #0f4c81 48%, #1666a8 100%);
  padding: 3rem 3.25rem;
}
.tk-auth-brand__orb {
  position: absolute;
  width: 20rem; height: 20rem;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.18);
  inset-inline-end: -5rem;
  bottom: -4rem;
  filter: blur(2px);
  animation: tkAuthOrb 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tkAuthOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 10px) scale(1.06); }
}
@media (min-width: 1024px) {
  .tk-auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
  }
}
.tk-auth-brand__content {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  margin: 0 auto;
  width: 100%;
}
.tk-auth-brand__logo {
  margin: 0 0 1.25rem;
  line-height: 0;
}
.tk-auth-brand__logo .niv-logo__img,
.tk-auth-brand__logo .niv-logo__img--xl {
  height: 4.25rem;
  max-width: min(20rem, 85%);
}
@media (min-width: 960px) {
  .tk-auth-brand__logo .niv-logo__img,
  .tk-auth-brand__logo .niv-logo__img--xl {
    height: 5.25rem;
    max-width: 24rem;
  }
}
.tk-auth-brand__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.tk-auth-brand__text {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
}
.tk-auth-brand__feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.tk-auth-brand__feats li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.tk-auth-brand__ico {
  width: 2.35rem; height: 2.35rem;
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #99f6e4;
}
.tk-auth-brand__ico svg { width: 1.15rem; height: 1.15rem; }

.tk-auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.25rem 1.25rem 2.5rem;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(15, 76, 129, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 100%, rgba(14, 165, 164, 0.08), transparent 50%),
    #f3f6fa;
}
@media (min-width: 1024px) {
  .tk-auth-form-side { padding: 3rem 2rem; }
}
.tk-auth-card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.85rem 1.6rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 76, 129, 0.1);
  animation: tkAuthRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tk-auth-card--wide { max-width: 28rem; }
@media (min-width: 640px) {
  .tk-auth-card { padding: 2.15rem 2.25rem; }
}
@keyframes tkAuthRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.tk-auth-card__header { text-align: center; margin-bottom: 1.5rem; }
.tk-auth-card__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.tk-auth-card__mark .niv-logo__img,
.tk-auth-card__mark .niv-logo--xl .niv-logo__img,
.tk-auth-card__mark .niv-logo--lg .niv-logo__img {
  height: 3.65rem;
  max-width: 17.5rem;
}
@media (min-width: 768px) {
  .tk-auth-card__mark .niv-logo__img,
  .tk-auth-card__mark .niv-logo--xl .niv-logo__img,
  .tk-auth-card__mark .niv-logo--lg .niv-logo__img {
    height: 4.25rem;
    max-width: 20rem;
  }
}
.tk-auth-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.tk-auth-card__sub {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}
.tk-auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #0f4c81;
  color: #fff;
  font-weight: 750;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.tk-auth-btn:hover { background: #0c3d68; }
.tk-auth-btn:active { transform: translateY(1px); }
.tk-auth-btn--ghost {
  width: auto;
  background: #fff;
  color: #0f4c81;
  border: 1px solid rgba(15, 76, 129, 0.22);
}
.tk-auth-btn--ghost:hover { background: #e8f1f8; }
.tk-auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 750;
}
.tk-auth-divider::before,
.tk-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.tk-auth-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: #64748b;
}
.tk-auth-footer a {
  color: #0f4c81;
  font-weight: 750;
  text-decoration: none;
}
.tk-auth-footer a:hover { text-decoration: underline; }

.tk-auth-wizard__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}
.tk-auth-wizard__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.tk-auth-wizard__dot {
  width: 1.85rem; height: 1.85rem;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}
.tk-auth-wizard__label {
  font-size: 0.7rem;
  font-weight: 750;
  color: #94a3b8;
}
.tk-auth-wizard__connector {
  width: 2.5rem; height: 2px;
  background: #e2e8f0;
  margin-bottom: 1.1rem;
}
.tk-auth-wizard__step-item.is-active .tk-auth-wizard__dot {
  background: #0f4c81;
  border-color: #0f4c81;
  color: #fff;
}
.tk-auth-wizard__step-item.is-active .tk-auth-wizard__label { color: #0f4c81; }
.tk-auth-wizard__step-item.is-done .tk-auth-wizard__dot {
  background: #0ea5a4;
  border-color: #0ea5a4;
  color: #fff;
}
.tk-auth-wizard__connector.is-done { background: #0ea5a4; }
.tk-auth-wizard__pane { display: none; animation: tkAuthRise 0.3s ease both; }
.tk-auth-wizard__pane.is-active { display: block; }
.tk-auth-wizard__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.tk-auth-wizard__actions .tk-auth-btn { flex: 1; }

.tk-auth-card .niv-field__label { color: #334155; font-weight: 750; }
.tk-auth-card .niv-input,
.tk-auth-card .niv-select {
  border-radius: 0.7rem;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.tk-auth-card .niv-input:focus,
.tk-auth-card .niv-select:focus {
  border-color: #0f4c81;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
  background: #fff;
}
.tk-auth-card .niv-google-btn {
  border-radius: 0.75rem;
  border-color: #e2e8f0;
}
.tk-auth-card .niv-google-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Legacy aliases so old auth markup still works if cached */
.niv-auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #f3f6fa; }
@media (min-width: 1024px) { .niv-auth-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.niv-auth-brand { display: none; }
.niv-auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 4.25rem 1.25rem 2.5rem; min-height: 100vh; background: #f3f6fa;
}
.niv-auth-card {
  width: 100%; max-width: 26rem; background: #fff;
  border-radius: 1.15rem; padding: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 76, 129, 0.1);
}

/* Native-style Google Identity button */
.niv-google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 0.5rem;
  background: #fff;
  color: #3c4043;
  font-family: 'Roboto', var(--niv-font), system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.niv-google-btn:hover {
  background: #f8f9fa;
  border-color: #d2d3d4;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.14);
}
.niv-google-btn:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}
.niv-google-btn:active { background: #f1f3f4; }
.niv-google-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}
.niv-google-btn__icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.niv-google-btn__icon svg { display: block; width: 100%; height: 100%; }
.niv-google-btn__text { line-height: 1; }
.niv-input-wrap { position: relative; display: flex; align-items: center; }
.niv-input-wrap__icon { position: absolute; inset-inline-start: 0.95rem; color: var(--niv-slate-400); display: flex; pointer-events: none; }
.niv-input-wrap__icon svg { width: 1.1rem; height: 1.1rem; }
.niv-input--icon { padding-inline-start: 2.65rem; }
.niv-field__error { color: var(--niv-red); font-size: 0.85rem; margin-bottom: 0.75rem; font-weight: 600; }

/* ===== Footer ===== */
.niv-footer {
  position: relative; overflow: hidden;
  background: #0f172a;
  color: #94a3b8;
  padding: 0 0 1.5rem;
  margin-top: 0;
  border-top: 0;
  border-radius: 0; box-shadow: none;
}
.niv-footer__glow { display: none; }
.niv-footer__top {
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  margin: 0 auto;
  padding: 2.25rem 0 0;
}
.niv-footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.55), rgba(16, 172, 132, 0.22));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.35rem 1.4rem;
  margin-bottom: 2rem;
}
.niv-footer__cta h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: #fff; letter-spacing: -0.02em;
}
.niv-footer__cta p { margin: 0; color: #cbd5e1; font-size: 0.92rem; }
.niv-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.niv-footer__cta .niv-btn--outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.25);
}
.niv-footer__cta .niv-btn--outline:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4);
}
.niv-footer a { color: #94a3b8; transition: color 0.2s; }
.niv-footer a:hover { color: #fff; }
.niv-footer .niv-logo__img,
.niv-footer .niv-logo--xl .niv-logo__img,
.niv-footer .niv-logo__img--xl {
  height: 3.65rem;
  max-width: 18rem;
}
@media (min-width: 768px) {
  .niv-footer .niv-logo__img,
  .niv-footer .niv-logo--xl .niv-logo__img,
  .niv-footer .niv-logo__img--xl {
    height: 4.35rem;
    max-width: 21rem;
  }
}
.niv-footer .niv-logo__text { color: #fff; }
.niv-footer .niv-logo__accent { color: #7dd3fc; }
.niv-footer__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 1.75rem;
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max); margin: 0 auto;
  padding-inline: 0; box-sizing: border-box;
}
@media (min-width: 640px) { .niv-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .niv-footer__grid { grid-template-columns: minmax(16rem, 1.5fr) repeat(3, minmax(9rem, 1fr)); gap: 1.75rem 2rem; }
}
.niv-footer__brand { max-width: 26rem; }
.niv-footer__brand p { margin-top: 0.85rem; font-size: 0.9rem; line-height: 1.65; color: #94a3b8; }
.niv-footer__pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.niv-footer__pills span {
  display: inline-flex; padding: 0.28rem 0.65rem; border-radius: 0.4rem; font-size: 0.72rem; font-weight: 650;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: #cbd5e1; box-shadow: none;
}
.niv-footer__heading { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; color: #fff; }
.niv-footer__links { list-style: none; display: grid; gap: 0.5rem; }
.niv-footer__links strong {
  display: block; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 0.35rem; color: #fff;
}
.niv-footer__links a { font-size: 0.9rem; font-weight: 550; }
.niv-footer__wa {
  display: inline-flex; margin-top: 0.35rem; padding: 0.4rem 0.85rem; border-radius: 0.5rem;
  background: rgba(16, 172, 132, 0.16);
  color: #6ee7b7 !important; font-weight: 700; font-size: 0.82rem;
  border: 1px solid rgba(16, 172, 132, 0.28); box-shadow: none;
}
.niv-footer__wa:hover { background: rgba(16, 172, 132, 0.28); color: #fff !important; }
.niv-footer__bottom {
  position: relative; z-index: 1;
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  margin: 2rem auto 0;
  padding: 1.15rem 0 0; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  font-size: 0.8rem; color: #64748b;
}
.niv-footer__bottom-note { color: #64748b; }

/* ===== Legal ===== */
.niv-legal-shell { padding: 1.35rem 1rem 3.5rem; max-width: 88rem !important; }
@media (min-width: 768px) { .niv-legal-shell { padding: 1.5rem 1.75rem 4rem; } }
.niv-legal-hero { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.35rem; }
@media (min-width: 900px) { .niv-legal-hero { grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.9fr); } }
.niv-legal-hero__title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: var(--niv-ink); margin: 0.35rem 0 0.5rem; line-height: 1.15; }
.niv-legal-hero__sub { max-width: 44rem; color: var(--niv-slate-500); font-weight: 500; }
.niv-legal-meta { margin-top: 0.75rem; font-size: 0.8rem; font-weight: 700; color: var(--niv-slate-400); }
.niv-chip {
  display: inline-flex; padding: 0.28rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 750;
  background: var(--niv-brand-light); color: var(--niv-brand-darker); margin-bottom: 0.5rem;
}
.niv-legal-toc {
  display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem;
}
.niv-legal-toc a {
  padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: #fff; border: 1px solid rgba(11,20,26,0.08); color: var(--niv-slate-600);
}
.niv-legal-toc a:hover { color: var(--niv-brand-dark); border-color: var(--niv-brand-soft); }
.niv-legal-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .niv-legal-grid { grid-template-columns: repeat(2, 1fr); } }
.niv-legal-card {
  border-radius: 1.35rem; border: 1px solid rgba(11,20,26,0.06); padding: 1.2rem 1.25rem 1.3rem;
  background: #fff; box-shadow: 0 10px 28px rgba(11,20,26,0.05);
}
.niv-legal-card h2 { margin: 0 0 0.65rem; font-size: 1.15rem; font-weight: 800; color: var(--niv-ink); }
.niv-legal-card p { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.65; color: var(--niv-slate-600); }
.niv-legal-card p:last-child { margin-bottom: 0; }
.niv-legal-card a { color: var(--niv-brand-dark); font-weight: 650; }
.niv-legal-card--mint { background: linear-gradient(165deg, #fff 35%, #f0fdf8); }
.niv-legal-card--sky { background: linear-gradient(165deg, #fff 35%, #eff9ff); }
.niv-legal-card--rose { background: linear-gradient(165deg, #fff 35%, #fff5f5); }
.niv-legal-card--mustard { background: linear-gradient(165deg, #fff 35%, #fffbeb); }
.niv-legal-card--violet { background: linear-gradient(165deg, #fff 35%, #f5f3ff); }
.niv-legal-bullets { margin: 0.5rem 0 0; padding-inline-start: 1.1rem; color: var(--niv-slate-600); font-size: 0.9rem; line-height: 1.55; }
.niv-legal-bullets li { margin-bottom: 0.35rem; }

/* ===== Docs ===== */
.niv-docs-page { --niv-docs-side: 15.5rem; }
.niv-docs-layout {
  max-width: 88rem; margin: 0 auto; padding: 1.25rem 1rem 3.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start;
}
@media (min-width: 980px) {
  .niv-docs-layout { grid-template-columns: var(--niv-docs-side) minmax(0, 1fr); gap: 2rem; padding-top: 1.75rem; }
}
.niv-docs-side { display: none; }
@media (min-width: 980px) {
  .niv-docs-side { display: block; position: sticky; top: 5.5rem; align-self: start; }
}
.niv-docs-side__inner {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1.25rem;
  padding: 1rem 0.85rem 1.1rem; box-shadow: 0 10px 28px rgba(11,20,26,0.04);
}
.niv-docs-side__label {
  margin: 0 0.55rem 0.55rem; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--niv-slate-500);
}
.niv-docs-side__nav { display: grid; gap: 0.15rem; margin-bottom: 1rem; }
.niv-docs-side__nav a {
  padding: 0.45rem 0.7rem; border-radius: 0.65rem; font-size: 0.84rem; font-weight: 650;
  color: var(--niv-slate-600); border-inline-start: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.niv-docs-side__nav a:hover { background: var(--niv-cream); color: var(--niv-ink); }
.niv-docs-side__nav a.is-active {
  background: var(--niv-brand-light); color: var(--niv-brand-darker);
  border-inline-start-color: var(--niv-brand);
}
.niv-docs-side__card {
  margin: 0 0.35rem; padding: 0.85rem 0.9rem; border-radius: 0.95rem;
  background: linear-gradient(165deg, #f0fdf8, #fff 70%); border: 1px solid rgba(37,211,102,0.25);
}
.niv-docs-side__card strong { display: block; font-size: 0.88rem; margin-bottom: 0.25rem; }
.niv-docs-side__card p { margin: 0 0 0.75rem; font-size: 0.78rem; color: var(--niv-slate-500); line-height: 1.45; }
.niv-btn--full { width: 100%; justify-content: center; }

.niv-docs-main { min-width: 0; }
.niv-docs-hero { margin-bottom: 1.35rem; }
.niv-docs-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.65rem); font-weight: 800;
  letter-spacing: -0.035em; color: var(--niv-ink); margin: 0.4rem 0 0.55rem; line-height: 1.12;
}
.niv-docs-hero__sub { color: var(--niv-slate-500); max-width: 40rem; font-size: 1.02rem; line-height: 1.6; margin: 0; }
.niv-docs-hero__sub code {
  font-size: 0.88em; background: var(--niv-slate-100); padding: 0.1rem 0.4rem; border-radius: 0.35rem;
}
.niv-docs-base {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin-top: 1.15rem; padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  background: #0b141a; color: #e9edef; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(11,20,26,0.18);
}
.niv-docs-base__label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.niv-docs-base__url { font-size: 0.85rem; font-weight: 650; color: #86efac; }
.niv-docs-copy {
  border: 0; border-radius: 999px; padding: 0.35rem 0.75rem; cursor: pointer;
  font: inherit; font-size: 0.75rem; font-weight: 750;
  background: var(--niv-brand); color: #0b141a;
  transition: transform 0.15s ease, background 0.15s ease;
}
.niv-docs-copy:hover { transform: translateY(-1px); }
.niv-docs-copy.is-copied { background: #fff; }

.niv-docs-steps {
  list-style: none; padding: 0; margin: 1.35rem 0 0;
  display: grid; grid-template-columns: 1fr; gap: 0.65rem;
}
@media (min-width: 720px) { .niv-docs-steps { grid-template-columns: repeat(3, 1fr); } }
.niv-docs-step {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1rem 1.05rem; border-radius: 1.15rem; background: #fff;
  border: 1px solid var(--niv-slate-200); box-shadow: 0 8px 22px rgba(11,20,26,0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.niv-docs-step:hover { transform: translateY(-2px); border-color: rgba(37,211,102,0.45); }
.niv-docs-step__num {
  width: 1.7rem; height: 1.7rem; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-docs-step strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.niv-docs-step p { margin: 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.45; }
.niv-docs-step code { font-size: 0.75rem; background: var(--niv-cream); padding: 0.05rem 0.3rem; border-radius: 0.25rem; }

.niv-docs-callouts {
  display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 1.5rem;
}
@media (min-width: 800px) { .niv-docs-callouts { grid-template-columns: repeat(3, 1fr); } }
.niv-docs-callout {
  padding: 0.95rem 1.05rem; border-radius: 1.05rem; background: #fff;
  border: 1px solid var(--niv-slate-200);
}
.niv-docs-callout--mint { background: linear-gradient(165deg, #fff 40%, #f0fdf8); }
.niv-docs-callout--sky { background: linear-gradient(165deg, #fff 40%, #eff9ff); }
.niv-docs-callout strong { display: block; font-size: 0.88rem; margin-bottom: 0.25rem; }
.niv-docs-callout p { margin: 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.5; }
.niv-docs-callout code { font-size: 0.75rem; background: var(--niv-slate-100); padding: 0.05rem 0.3rem; border-radius: 0.25rem; }
.niv-docs-callout a { color: var(--niv-brand-dark); font-weight: 700; }

.niv-docs-section {
  background: #fff; border-radius: 1.4rem; padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid rgba(11,20,26,0.06); box-shadow: 0 12px 30px rgba(11,20,26,0.045);
  margin-bottom: 1rem; scroll-margin-top: 5.5rem;
}
.niv-docs-section__head { margin-bottom: 1rem; }
.niv-docs-section__head h2 {
  margin: 0.35rem 0 0.4rem; font-size: 1.3rem; font-weight: 800; color: var(--niv-ink); letter-spacing: -0.02em;
}
.niv-docs-section__head p { margin: 0; color: var(--niv-slate-500); font-size: 0.92rem; line-height: 1.55; }
.niv-docs-section h3 { font-size: 0.95rem; font-weight: 750; margin: 1.15rem 0 0.55rem; color: var(--niv-slate-700); }

.niv-docs-endpoint {
  display: inline-flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem;
}
.niv-docs-method {
  display: inline-flex; padding: 0.2rem 0.5rem; border-radius: 0.4rem;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
  background: #dcfce7; color: #166534;
}
.niv-docs-method--get { background: #e0f2fe; color: #075985; }
.niv-docs-endpoint code { color: var(--niv-ink); font-weight: 650; }

.niv-docs-code {
  border-radius: 1rem; overflow: hidden; background: #0b141a; color: #e9edef;
  border: 1px solid rgba(255,255,255,0.06); margin: 0.5rem 0;
}
.niv-docs-code__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.85rem; background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.niv-docs-code__bar .niv-docs-copy {
  background: rgba(255,255,255,0.08); color: #fff; text-transform: none; letter-spacing: 0;
}
.niv-docs-code__bar .niv-docs-copy:hover { background: var(--niv-brand); color: #0b141a; }
.niv-docs-code pre {
  margin: 0; padding: 1rem 1.1rem; overflow-x: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.55;
}
.niv-docs-code code { background: none; padding: 0; color: inherit; font-size: inherit; }

.niv-docs-note {
  margin: 0.85rem 0 0; padding: 0.8rem 0.95rem; border-radius: 0.9rem;
  background: var(--niv-brand-light); color: var(--niv-brand-darker); font-size: 0.85rem; font-weight: 600; line-height: 1.5;
}
.niv-docs-hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--niv-slate-500); }
.niv-docs-req { color: #b45309; font-weight: 800; font-size: 0.78rem; }

.niv-docs-table-wrap {
  overflow-x: auto; border-radius: 1rem; border: 1px solid var(--niv-slate-200);
}
.niv-docs-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0; }
.niv-docs-table th, .niv-docs-table td {
  text-align: start; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--niv-slate-100); vertical-align: top;
}
.niv-docs-table tr:last-child td { border-bottom: 0; }
.niv-docs-table th {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--niv-slate-500); background: var(--niv-cream); font-weight: 800;
}
.niv-docs-table code {
  font-size: 0.78rem; background: var(--niv-slate-100); padding: 0.1rem 0.35rem; border-radius: 0.35rem;
}

.niv-docs-channels {
  display: grid; grid-template-columns: 1fr; gap: 0.65rem;
}
@media (min-width: 720px) { .niv-docs-channels { grid-template-columns: repeat(3, 1fr); } }
.niv-docs-channel {
  padding: 1.05rem 1.1rem; border-radius: 1.1rem; border: 1px solid var(--niv-slate-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.niv-docs-channel:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,94,84,0.08); }
.niv-docs-channel--wa { background: linear-gradient(180deg, #f0fdf8, #fff 55%); }
.niv-docs-channel--tg { background: linear-gradient(180deg, #f0f9ff, #fff 55%); }
.niv-docs-channel--sms { background: linear-gradient(180deg, #fffbeb, #fff 55%); }
.niv-docs-channel__badge {
  display: inline-flex; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.45rem; border-radius: 999px;
  background: var(--niv-brand-light); color: var(--niv-brand-dark); margin-bottom: 0.5rem;
}
.niv-docs-channel__badge--soon { background: #fef3c7; color: #92400e; }
.niv-docs-channel h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.niv-docs-channel p { margin: 0; font-size: 0.82rem; color: var(--niv-slate-500); line-height: 1.5; }
.niv-docs-channel code { font-size: 0.75rem; background: rgba(0,0,0,0.05); padding: 0.05rem 0.3rem; border-radius: 0.25rem; }

.niv-docs-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.niv-docs-rules li {
  padding: 0.75rem 0.95rem; border-radius: 0.9rem; background: var(--niv-cream);
  border: 1px solid var(--niv-slate-100); font-size: 0.88rem; color: var(--niv-slate-600); line-height: 1.5;
}
.niv-docs-rules strong { color: var(--niv-ink); }

.niv-docs-tabs__list {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem;
  padding: 0.3rem; background: var(--niv-cream); border-radius: 999px; width: fit-content; max-width: 100%;
}
.niv-docs-tabs__list button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; font-weight: 750;
  color: var(--niv-slate-500); transition: background 0.2s ease, color 0.2s ease;
}
.niv-docs-tabs__list button.is-active {
  background: #fff; color: var(--niv-brand-dark); box-shadow: 0 4px 12px rgba(11,20,26,0.08);
}
.niv-docs-tabs__panel[hidden] { display: none; }
.niv-docs-tabs__panel.is-active { display: block; animation: ocDocsTab 0.3s ease; }
@keyframes ocDocsTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.niv-docs-footer {
  margin-top: 1.5rem; padding: 1.5rem 1.35rem; border-radius: 1.4rem;
  background: linear-gradient(145deg, #0b141a 0%, #075e54 60%, #25d366 140%);
  color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem; align-items: center; box-shadow: 0 18px 40px rgba(7,94,84,0.22);
}
.niv-docs-footer strong { display: block; font-size: 1.15rem; margin-bottom: 0.25rem; }
.niv-docs-footer p { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.niv-docs-footer__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.niv-docs-footer .niv-btn--outline {
  border-color: rgba(255,255,255,0.35); color: #fff; background: transparent;
}
.niv-docs-footer .niv-btn--outline:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 979px) {
  .niv-docs-side { display: block; position: static; }
  .niv-docs-side__inner { padding: 0.85rem; }
  .niv-docs-side__nav {
    display: flex; flex-wrap: nowrap; gap: 0.35rem; overflow-x: auto;
    margin-bottom: 0; padding-bottom: 0.15rem; -webkit-overflow-scrolling: touch;
  }
  .niv-docs-side__nav a {
    white-space: nowrap; border-inline-start: 0; border-bottom: 2px solid transparent;
    border-radius: 0.55rem;
  }
  .niv-docs-side__nav a.is-active { border-bottom-color: var(--niv-brand); }
  .niv-docs-side__card { display: none; }
  .niv-docs-side__label { margin-bottom: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .niv-docs-tabs__panel.is-active, .niv-docs-step, .niv-docs-channel { animation: none; transition: none; }
}

/* ===== Home extras ===== */
.niv-strip {
  position: relative; z-index: 3;
  margin: 2.25rem auto 0;
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  padding-inline: 0;
  box-sizing: border-box;
}
.niv-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #fff;
  border-radius: 1.35rem;
  padding: 1.25rem;
  border: 3px solid #0e0e0f;
  box-shadow: 8px 8px 0 #0e0e0f;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .niv-strip__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 1.35rem;
  }
}
.niv-strip__step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}
.niv-strip__step > .niv-strip__num,
.niv-strip__step > span:first-child:not(.niv-strip__text) {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--niv-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
  border: 2px solid #0e0e0f;
}
/* Legacy markup: <strong>1</strong><span>long text</span> — number was mis-styled as the circle */
.niv-strip__step > strong:first-child {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--niv-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
  border: 2px solid #0e0e0f;
  font-size: 0.95rem;
}
.niv-strip__step > span:not(:first-child),
.niv-strip__step > .niv-strip__text,
.niv-strip__step > p {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: block !important;
  color: var(--niv-slate-700);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: start;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* .niv-steps styles live with TakTek landing block below */

.niv-section--dark {
  background: linear-gradient(165deg, #0b141a 0%, #352077 70%, #5836C7 100%);
  color: #fff;
}
.niv-card--dark {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
}
.niv-card--dark .niv-card__h { color: #fff; }
.niv-card__h { font-size: 1.05rem; font-weight: 800; margin: 0.75rem 0 0.45rem; color: var(--niv-ink); }
/* Reveal handled via .niv-reveal + IntersectionObserver (see below) */

/* ===== Dashboard polish ===== */
.niv-app-header--row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.niv-app-header__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.niv-stat-grid--full { max-width: none; }
.niv-stat-card--mint { background: linear-gradient(165deg, #fff, #f0fdf8); }
.niv-stat-card--sky { background: linear-gradient(165deg, #fff, #eff9ff); }
.niv-stat-card--wa { background: linear-gradient(165deg, #fff, #e8fff0); }
.niv-stat-card--tg { background: linear-gradient(165deg, #fff, #e8f6ff); }
.niv-stat-card__icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.85rem; background: var(--niv-brand-light); color: var(--niv-brand-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.niv-stat-card__icon svg { width: 1.2rem; height: 1.2rem; }
.niv-stat-card__meta { font-size: 0.72rem; color: var(--niv-slate-500); font-weight: 650; margin-top: 0.15rem; }
.niv-stat-card__value small { font-size: 0.75rem; font-weight: 700; color: var(--niv-slate-500); }
a.niv-stat-card { text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.niv-stat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(7,94,84,0.1); }

.niv-dash-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  align-items: flex-end; margin-bottom: 1.25rem;
}
.niv-dash-hero__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.niv-dash-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 0.65rem; }
.niv-dash-status__meta { font-size: 0.82rem; color: var(--niv-slate-500); font-weight: 600; }
.niv-dash-stats { margin-bottom: 1rem; }

.niv-dash-quick {
  display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 1.15rem;
}
@media (min-width: 700px) { .niv-dash-quick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .niv-dash-quick { grid-template-columns: repeat(4, 1fr); } }
.niv-dash-quick__card {
  padding: 1rem 1.1rem; border-radius: 1.15rem; background: #fff;
  border: 1px solid var(--niv-slate-200); box-shadow: 0 8px 22px rgba(11,20,26,0.04);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.niv-dash-quick__card:hover { transform: translateY(-2px); border-color: rgba(37,211,102,0.45); }
.niv-dash-quick__card strong { display: block; font-size: 0.92rem; margin-bottom: 0.25rem; color: var(--niv-ink); }
.niv-dash-quick__card p { margin: 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.45; }
.niv-dash-quick__card code { font-size: 0.72rem; background: var(--niv-cream); padding: 0.05rem 0.3rem; border-radius: 0.25rem; }

.niv-dash-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; margin-bottom: 1rem;
}
@media (min-width: 980px) {
  .niv-dash-grid { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr); }
  .niv-dash-col--side { position: sticky; top: 5.25rem; }
}
.niv-dash-col { display: grid; gap: 1rem; }

.niv-dash-progress {
  height: 0.35rem; border-radius: 999px; background: var(--niv-slate-100); overflow: hidden; margin-bottom: 1rem;
}
.niv-dash-progress__bar {
  height: 100%; border-radius: inherit; background: linear-gradient(90deg, #075e54, #25d366);
  transition: width 0.4s ease;
}
.niv-dash-test__fields {
  display: grid; grid-template-columns: 1fr; gap: 0 0.75rem;
}
@media (min-width: 700px) {
  .niv-dash-test__fields { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
}

.niv-dash-channels { display: grid; gap: 0.55rem; }
.niv-dash-channel {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; border-radius: 1rem; border: 1px solid var(--niv-slate-200);
}
.niv-dash-channel--wa { background: linear-gradient(165deg, #fff, #f0fdf8); }
.niv-dash-channel--tg { background: linear-gradient(165deg, #fff, #eff9ff); }
.niv-dash-channel--sms { background: linear-gradient(165deg, #fff, #fffbeb); }
.niv-dash-channel strong { display: block; font-size: 0.92rem; }
.niv-dash-channel p { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--niv-slate-500); }

.niv-dash-keybox {
  display: grid; gap: 0.45rem; padding: 0.9rem 1rem; margin-bottom: 0.85rem;
  border-radius: 1rem; background: #0b141a; color: #e9edef;
}
.niv-dash-keybox__label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.niv-dash-keybox__value {
  font-size: 0.78rem; word-break: break-all; color: #86efac; line-height: 1.4;
}
.niv-dash-keybox .niv-btn { justify-self: start; }
.niv-dash-keys { display: grid; gap: 0.45rem; }
.niv-dash-key {
  display: flex; justify-content: space-between; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.85rem; border-radius: 0.9rem; background: var(--niv-cream); border: 1px solid var(--niv-slate-100);
}
.niv-dash-key code { display: block; font-size: 0.78rem; color: var(--niv-ink); }
.niv-dash-key span { font-size: 0.72rem; color: var(--niv-slate-500); font-weight: 650; }
.niv-dash-side-tips { display: grid; gap: 0.55rem; }

.niv-dash-ch {
  display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; text-transform: lowercase; background: var(--niv-slate-100); color: var(--niv-slate-600);
}
.niv-dash-ch--whatsapp { background: #dcfce7; color: #166534; }
.niv-dash-ch--telegram { background: #e0f2fe; color: #075985; }
.niv-dash-phone { font-size: 0.8rem; background: transparent; }
.niv-dash-logs { margin-bottom: 1rem; }

.niv-dash-panels { margin-bottom: 1rem; }
.niv-panel__head-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.niv-panel__hint { font-size: 0.82rem; color: var(--niv-slate-500); margin-bottom: 0.75rem; }
.niv-channel-list { display: grid; gap: 0.65rem; }
.niv-channel-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.85rem; border-radius: 0.85rem; background: var(--niv-cream); }
.niv-key { font-size: 0.72rem; word-break: break-all; }
.niv-empty-cell { color: var(--niv-slate-500); text-align: center; padding: 1.5rem !important; }

@media (prefers-reduced-motion: reduce) {
  .niv-auth-card, .niv-reveal, .niv-auth-brand::after { animation: none !important; }
}

/* ===== Superadmin (UGCify-style filters / metrics) ===== */
.niv-stat-grid--admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.niv-stat-grid--admin .niv-stat-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.niv-stat-grid--admin a.niv-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 94, 84, 0.12);
}
.niv-admin-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.niv-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--niv-slate-200);
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px rgba(11, 20, 26, 0.04);
}
.niv-filter-bar--rich { align-items: end; }
.niv-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--niv-slate-600);
  padding-bottom: 0.45rem;
}
.niv-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--niv-slate-500);
  background: #fff;
  border: 1px solid var(--niv-slate-200);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.niv-live-pill__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--niv-brand);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  animation: niv-live-pulse 1.6s ease-out infinite;
}
@keyframes niv-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 0.45rem rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.niv-badge--ok { background: #dcfce7; color: #166534; }
.niv-badge--bad { background: #fee2e2; color: #991b1b; }
.niv-badge--slate { background: var(--niv-slate-100); color: var(--niv-slate-600); }
.niv-user-cell { display: flex; align-items: center; gap: 0.6rem; }
.niv-avatar {
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0;
}
.niv-table-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.niv-table-meta { font-size: 0.8rem; color: var(--niv-slate-500); margin-top: 0.75rem; }
.niv-empty { text-align: center; padding: 2rem 1rem; }
.niv-empty__title { font-weight: 700; color: var(--niv-slate-500); margin: 0; }
.niv-pager { display: flex; gap: 0.5rem; margin-top: 1rem; }
.niv-grid-2 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .niv-grid-2 { grid-template-columns: 1fr 1fr; } }
.niv-app-nav__links { flex-wrap: wrap; }
.niv-btn--full { width: 100%; }
.niv-btn--ghost {
  background: transparent; border: none; color: var(--niv-slate-600); font-weight: 700;
  padding: 0.45rem 0.7rem; border-radius: 0.7rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.niv-btn--ghost:hover { background: var(--niv-slate-100); color: var(--niv-brand-dark); }

/* Dashboard test OTP */
.niv-test-otp-panel { margin-bottom: 1.25rem; }
.niv-test-otp-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
  align-items: end;
}
@media (min-width: 720px) {
  .niv-test-otp-form {
    grid-template-columns: 1.4fr 0.9fr 0.9fr auto;
  }
  .niv-test-otp-actions { grid-column: 1 / -1; }
}
.niv-test-otp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.niv-test-otp-msg { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--niv-slate-500); }
.niv-test-otp-msg.is-ok { color: var(--niv-brand-dark); }
.niv-test-otp-msg.is-err { color: #b91c1c; }

/* Register wizard */
.niv-wizard__progress {
  display: flex; align-items: flex-start; justify-content: center;
  margin-bottom: 1.35rem; gap: 0.15rem;
}
.niv-wizard__step-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.niv-wizard__dot {
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  background: #fff; border: 2px solid var(--niv-slate-200); color: var(--niv-slate-500);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.niv-wizard__step-label { font-size: 0.7rem; font-weight: 700; color: var(--niv-slate-400); text-transform: uppercase; letter-spacing: 0.04em; }
.niv-wizard__connector {
  width: 2.25rem; height: 2px; background: var(--niv-slate-200);
  margin: 0 0.35rem; align-self: center; margin-bottom: 1.15rem; transition: background 0.2s;
}
.niv-wizard__step-item.is-active .niv-wizard__dot {
  background: var(--niv-brand); border-color: var(--niv-brand); color: #fff;
}
.niv-wizard__step-item.is-active .niv-wizard__step-label { color: var(--niv-brand-dark); }
.niv-wizard__step-item.is-done .niv-wizard__dot { background: var(--niv-brand-dark); border-color: var(--niv-brand-dark); color: #fff; }
.niv-wizard__connector.is-done { background: var(--niv-brand); }
.niv-wizard__step { display: none; animation: ocRise 0.3s ease both; }
.niv-wizard__step.is-active { display: block; }
.niv-wizard__actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.niv-wizard__actions .niv-btn--primary { flex: 1; }
.niv-checkbox { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.875rem; color: var(--niv-slate-600); cursor: pointer; }
.niv-checkbox input { margin-top: 0.2rem; }
.niv-checkbox a { color: var(--niv-brand-dark); font-weight: 700; }
.niv-field__hint { font-size: 0.78rem; color: var(--niv-slate-500); margin-top: 0.35rem; }
.niv-field__error { color: #b91c1c; font-size: 0.8rem; font-weight: 600; margin-top: 0.35rem; }

/* Preloader — slim top progress bar (page transitions) */
.taktek-preloader {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 10000;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.taktek-preloader.is-visible,
.taktek-preloader.is-boot {
  opacity: 1;
}
.taktek-preloader.is-hidden {
  display: none;
}
.taktek-preloader__track {
  position: relative;
  width: 100%;
  height: 3px;
  background: transparent;
  overflow: visible;
}
.taktek-preloader__bar {
  height: 100%;
  width: 0;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #0f4c81 0%, #1666a8 45%, #10ac84 100%);
  box-shadow: 0 0 10px rgba(16, 172, 132, 0.45);
  transition: width 0.35s ease;
}
.taktek-preloader.is-visible .taktek-preloader__bar,
.taktek-preloader.is-boot .taktek-preloader__bar {
  width: 72%;
  animation: taktek-preloader-advance 1.35s ease-out forwards;
}
.taktek-preloader.is-done .taktek-preloader__bar {
  width: 100% !important;
  animation: none;
  transition: width 0.22s ease;
}
.taktek-preloader__peg {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 80px;
  height: 100%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55));
  transform: translateX(0);
}
.taktek-preloader.is-visible .taktek-preloader__peg,
.taktek-preloader.is-boot .taktek-preloader__peg {
  opacity: 1;
  animation: taktek-preloader-peg 1s ease-in-out infinite;
}
@keyframes taktek-preloader-advance {
  0% { width: 0; }
  40% { width: 48%; }
  100% { width: 78%; }
}
@keyframes taktek-preloader-peg {
  0% { transform: translateX(-120vw); }
  100% { transform: translateX(0); }
}
[dir="rtl"] .taktek-preloader__bar,
.tk-rtl .taktek-preloader__bar {
  border-radius: 2px 0 0 2px;
}
@media (prefers-reduced-motion: reduce) {
  .taktek-preloader__bar,
  .taktek-preloader__peg {
    animation: none !important;
  }
  .taktek-preloader.is-visible .taktek-preloader__bar,
  .taktek-preloader.is-boot .taktek-preloader__bar {
    width: 60%;
  }
}

/* AI pricing plans */
.niv-ai-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .niv-ai-plans { grid-template-columns: repeat(3, 1fr); }
}
.niv-ai-plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--niv-slate-200);
  border-radius: 1.35rem;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 10px 28px rgba(11, 20, 26, 0.04);
}
.niv-ai-plan.is-featured {
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow: 0 16px 40px rgba(7, 94, 84, 0.12);
  background: linear-gradient(180deg, #f0fdf8, #fff 40%);
}
.niv-ai-plan__badge {
  display: inline-flex; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--niv-brand-dark); background: var(--niv-brand-light);
  border-radius: 999px; padding: 0.25rem 0.6rem; margin-bottom: 0.65rem;
}
.niv-ai-plan__name { font-size: 1.2rem; font-weight: 800; margin: 0 0 0.5rem; }
.niv-ai-plan__price { display: flex; align-items: baseline; gap: 0.25rem; }
.niv-ai-plan__price strong { font-size: 2rem; font-weight: 800; color: var(--niv-ink); }
.niv-ai-plan__price span { color: var(--niv-slate-500); font-weight: 600; }
.niv-ai-plan__iqd { font-size: 0.85rem; color: var(--niv-slate-500); margin: 0.25rem 0 1rem; }
.niv-ai-plan__list { list-style: none; padding: 0; margin: 0 0 1.15rem; display: grid; gap: 0.5rem; }
.niv-ai-plan__list li { font-size: 0.9rem; color: var(--niv-slate-600); padding-inline-start: 1.1rem; position: relative; }
.niv-ai-plan__list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0.45rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--niv-brand);
}

/* ===== Admin settings (polished) ===== */
.niv-settings-page .niv-app-main { padding-bottom: 6rem; }
.niv-settings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 960px) {
  .niv-settings__grid { grid-template-columns: 1fr 1fr; }
}
.niv-settings-card {
  background: #fff;
  border: 1px solid var(--niv-slate-200);
  border-radius: 1.35rem;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(11, 20, 26, 0.045);
  animation: ocRise 0.55s var(--niv-spring, ease) both;
}
.niv-settings-card--mint { background: linear-gradient(165deg, #fff 55%, #f0fdf8); }
.niv-settings-card--sky { background: linear-gradient(165deg, #fff 55%, #f0f9ff); }
.niv-settings-card--wa { background: linear-gradient(165deg, #fff 60%, #eafff2); }
.niv-settings-card--tg { background: linear-gradient(165deg, #fff 60%, #eef8ff); }
.niv-settings-card--ai { background: linear-gradient(165deg, #fff 50%, #f5f3ff); grid-column: 1 / -1; }
.niv-settings-card__head {
  display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.niv-settings-card__head > div { flex: 1; min-width: 10rem; }
.niv-settings-card__icon {
  width: 2.6rem; height: 2.6rem; border-radius: 0.9rem;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.niv-settings-card__icon svg { width: 1.25rem; height: 1.25rem; }
.niv-settings-card__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.2rem; color: var(--niv-ink); }
.niv-settings-card__sub { margin: 0; font-size: 0.82rem; color: var(--niv-slate-500); line-height: 1.45; }
.niv-settings-fields { display: grid; gap: 0.85rem; }
.niv-settings-fields--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .niv-settings-fields--2 { grid-template-columns: 1fr 1fr; } }
.niv-plan-editor {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--niv-slate-100);
}
.niv-plan-editor:last-of-type { border-bottom: 0; padding-bottom: 0; }
.niv-plan-editor__title {
  font-size: 0.82rem; font-weight: 800; color: var(--niv-ink);
  margin-bottom: 0.65rem; letter-spacing: 0.02em;
}

.niv-wa-pool { display: grid; gap: 0.85rem; }
.niv-wa-pool__list { display: grid; gap: 0.65rem; }
.niv-wa-key {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.85rem;
  padding: 0.85rem 1rem; border-radius: 1rem;
  background: rgba(255,255,255,0.92); border: 1px solid var(--niv-slate-200);
}
.niv-wa-key__top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.niv-wa-key__secret {
  font-size: 0.78rem; font-weight: 700; color: var(--niv-slate-500);
  letter-spacing: 0.02em;
}
.niv-wa-key__mask {
  display: none;
}
.niv-wa-key__meta { margin-top: 0.35rem; font-size: 0.75rem; color: var(--niv-slate-500); }
.niv-wa-key__side { display: grid; gap: 0.35rem; justify-items: end; flex-shrink: 0; }
.niv-wa-key__enable { font-size: 0.78rem; font-weight: 700; color: var(--niv-slate-600); display: inline-flex; align-items: center; gap: 0.35rem; }
.niv-wa-pool__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.65rem; }
@media (max-width: 560px) {
  .niv-wa-key { flex-direction: column; }
  .niv-wa-key__side { justify-items: start; width: 100%; flex-direction: row; display: flex; }
}

.niv-settings-price-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 520px) { .niv-settings-price-grid { grid-template-columns: repeat(3, 1fr); } }
.niv-price-tile {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0.85rem; border-radius: 1rem;
  background: rgba(255,255,255,0.85); border: 1px solid var(--niv-slate-200);
  cursor: text;
}
.niv-price-tile__ch {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  align-self: flex-start; padding: 0.2rem 0.5rem; border-radius: 999px;
}
.niv-price-tile__ch--wa { background: #dcfce7; color: #166534; }
.niv-price-tile__ch--tg { background: #e0f2fe; color: #075985; }
.niv-price-tile__ch--sms { background: #fef3c7; color: #92400e; }
.niv-price-tile .niv-input { font-size: 1.25rem; font-weight: 800; text-align: center; }
.niv-price-tile__unit { font-size: 0.75rem; color: var(--niv-slate-500); font-weight: 600; text-align: center; }

.niv-channel-toggles { display: grid; gap: 0.65rem; }
.niv-switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: 1rem;
  background: rgba(255,255,255,0.9); border: 1px solid var(--niv-slate-200);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.niv-switch-row.is-on { border-color: rgba(37, 211, 102, 0.45); background: #f0fdf8; }
.niv-switch-row__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.niv-switch-row__meta strong { font-size: 0.95rem; color: var(--niv-ink); }
.niv-switch-row__meta small { font-size: 0.78rem; color: var(--niv-slate-500); }
.niv-switch { position: relative; width: 2.75rem; height: 1.55rem; flex-shrink: 0; }
.niv-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.niv-switch__track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--niv-slate-200); transition: background 0.2s;
}
.niv-switch__track::after {
  content: ''; position: absolute; top: 0.18rem; inset-inline-start: 0.2rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 0.2s;
}
.niv-switch input:checked + .niv-switch__track { background: var(--niv-brand); }
.niv-switch input:checked + .niv-switch__track::after { transform: translateX(1.15rem); }
[dir="rtl"] .niv-switch input:checked + .niv-switch__track::after { transform: translateX(-1.15rem); }

.niv-settings-secret {
  display: grid; gap: 0.45rem; margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem; border-radius: 0.9rem; background: var(--niv-cream, #f7faf8);
  border: 1px dashed var(--niv-slate-200);
}
.niv-settings-secret__row {
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--niv-slate-500);
}
.niv-settings-secret__row code {
  font-size: 0.8rem; font-weight: 700; color: var(--niv-ink);
  background: #fff; padding: 0.15rem 0.45rem; border-radius: 0.4rem;
}

.niv-settings-ai-preview {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--niv-slate-100); align-items: end;
}
.niv-settings-ai-preview__label {
  display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--niv-slate-500); margin-bottom: 0.2rem;
}
.niv-settings-ai-preview strong { font-size: 1.15rem; color: var(--niv-ink); }
.niv-settings-ai-preview a {
  font-size: 0.85rem; font-weight: 700; color: var(--niv-brand-dark); text-decoration: none;
}
.niv-settings-ai-preview a:hover { text-decoration: underline; }

.niv-settings-savebar {
  position: sticky; bottom: 1rem; z-index: 40;
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--niv-slate-200); border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(7, 94, 84, 0.12);
}
.niv-settings-savebar__text { display: flex; flex-direction: column; gap: 0.15rem; }
.niv-settings-savebar__text strong { font-size: 0.95rem; color: var(--niv-ink); }
.niv-settings-savebar__text span { font-size: 0.82rem; color: var(--niv-slate-500); font-weight: 600; }

/* ===== Wallet (UGCify-style) ===== */
.niv-eyebrow {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--niv-brand-dark); margin: 0 0 0.35rem;
}
.niv-wallet-page {
  position: relative;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(37,211,102,0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 8%, rgba(83,189,235,0.1), transparent 50%),
    var(--niv-cream);
}
.niv-wallet-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem;
  align-items: flex-end; margin-bottom: 1.15rem;
}
.niv-wallet-hero__copy { max-width: 36rem; }
.niv-wallet-hero__meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.niv-wallet-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: #fff; border: 1px solid var(--niv-slate-200); color: var(--niv-slate-600);
}
.niv-wallet-pill--ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.niv-wallet-pill--warn { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.niv-wallet-balances { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.niv-wallet-balance {
  min-width: 11.5rem; padding: 1.05rem 1.2rem; border-radius: 1.25rem;
  background: linear-gradient(145deg, #075e54, #128c7e); color: #fff;
  box-shadow: 0 14px 32px rgba(7, 94, 84, 0.22);
}
.niv-wallet-balance--alt { background: linear-gradient(145deg, #0b141a, #1f3a45); }
.niv-wallet-balance__label {
  display: block; font-size: 0.72rem; opacity: 0.78; margin-bottom: 0.25rem;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
}
.niv-wallet-balance__value { font-size: 1.45rem; font-weight: 800; display: block; }
.niv-wallet-balance__value small { font-size: 0.7rem; font-weight: 600; opacity: 0.85; }
.niv-wallet-balance__hint {
  display: block; margin-top: 0.45rem; font-size: 0.72rem; opacity: 0.72; font-weight: 500;
}
.niv-wallet-summary { margin-bottom: 1rem; }
.niv-wallet-strip {
  display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 1.15rem;
}
@media (min-width: 800px) { .niv-wallet-strip { grid-template-columns: repeat(3, 1fr); } }
.niv-wallet-strip__item {
  padding: 0.9rem 1rem; border-radius: 1rem; background: rgba(255,255,255,0.88);
  border: 1px solid rgba(233,237,239,0.95); backdrop-filter: blur(6px);
}
.niv-wallet-strip__item strong {
  display: block; font-size: 0.86rem; color: var(--niv-ink); margin-bottom: 0.2rem;
}
.niv-wallet-strip__item span {
  display: block; font-size: 0.78rem; color: var(--niv-slate-500); line-height: 1.45;
}
.niv-wallet-layout {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.35rem;
  align-items: start;
}
@media (min-width: 980px) {
  .niv-wallet-layout { grid-template-columns: 1.2fr 0.9fr; gap: 1.1rem; }
}
.niv-wallet-side { display: grid; gap: 1rem; }
.niv-wallet-card {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1.4rem;
  padding: 1.3rem; box-shadow: 0 12px 30px rgba(11,20,26,0.045);
}
.niv-wallet-card--feature {
  background:
    linear-gradient(180deg, rgba(240,253,244,0.85), #fff 42%),
    #fff;
  border-color: #bbf7d0;
  box-shadow: 0 16px 36px rgba(7,94,84,0.08);
}
.niv-wallet-card--muted { background: linear-gradient(180deg, #f8fafc, #fff); }
.niv-wallet-card__head { display: flex; gap: 0.85rem; margin-bottom: 1rem; align-items: flex-start; }
.niv-wallet-card__icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.9rem; display: grid; place-items: center;
  background: #dcfce7; color: #166534; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.niv-wallet-card__icon--out { background: #eff6ff; color: #1d4ed8; }
.niv-wallet-card__title { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--niv-ink); }
.niv-wallet-card__hint { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.45; }
.niv-wallet-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem 0.75rem;
  margin-bottom: 1rem; padding: 0.9rem 1rem; border-radius: 1rem;
  background: #0b141a; color: #fff;
}
.niv-wallet-price__label {
  width: 100%; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  opacity: 0.7; font-weight: 700;
}
.niv-wallet-price strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.niv-wallet-price__sub { font-size: 0.78rem; opacity: 0.7; }
.niv-wallet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .niv-wallet-row { grid-template-columns: 1fr; } }
.niv-pay-method { display: flex; align-items: stretch; gap: 0.45rem; }
.niv-pay-method .niv-select { flex: 1; min-width: 0; }
.niv-pay-info {
  width: 2.55rem; flex-shrink: 0; display: inline-grid; place-items: center;
  border: 1px solid var(--niv-slate-200); border-radius: 0.75rem; background: #fff;
  color: var(--niv-brand-dark); cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.niv-pay-info:hover { background: #f0fdf8; border-color: #86efac; }
.niv-pay-info[hidden] { display: none !important; }
.niv-pay-instructions { text-align: left; font-size: 0.95rem; line-height: 1.55; color: var(--niv-ink); }
.niv-pay-instructions p { margin: 0 0 0.65rem; }
.niv-pay-instructions ul, .niv-pay-instructions ol { margin: 0 0 0.65rem; padding-left: 1.2rem; }
.niv-pay-instructions a { color: var(--niv-brand-dark); font-weight: 650; }
#paymentRefField[hidden] { display: none !important; }
.niv-wallet-ledger {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1.35rem;
  padding: 1.25rem; box-shadow: 0 10px 28px rgba(11,20,26,0.045);
  margin-bottom: 1.15rem;
}
.niv-wallet-ledger__head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  margin-bottom: 0.85rem; flex-wrap: wrap;
}
.niv-wallet-ledger__count {
  font-size: 0.75rem; font-weight: 700; color: var(--niv-slate-500);
  background: var(--niv-slate-100); padding: 0.25rem 0.55rem; border-radius: 999px;
}
.niv-wallet-ledger .is-pos { color: var(--niv-brand-dark); font-weight: 700; }
.niv-wallet-ledger .is-neg { color: #b91c1c; font-weight: 700; }
.niv-badge--sky { background: #e0f2fe; color: #075985; }
.niv-badge--warn { background: #fef3c7; color: #92400e; }

/* ===== Pricing page (UGCify-style) ===== */
.niv-legal-shell { padding-block: 2rem 3rem; }
.niv-pricing-tiers {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0 2rem;
}
@media (min-width: 900px) { .niv-pricing-tiers { grid-template-columns: repeat(3, 1fr); } }
.niv-price-card {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1.4rem;
  padding: 1.35rem 1.25rem; box-shadow: 0 12px 30px rgba(11,20,26,0.05);
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.niv-price-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(7,94,84,0.12); }
.niv-price-card--wa { background: linear-gradient(180deg, #f0fdf8, #fff 42%); }
.niv-price-card--tg { background: linear-gradient(180deg, #f0f9ff, #fff 42%); }
.niv-price-card--sms { background: linear-gradient(180deg, #fffbeb, #fff 42%); }
.niv-price-card__badge {
  align-self: flex-start; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 999px;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-price-card__badge--soon { background: #fef3c7; color: #92400e; }
.niv-price-card h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.niv-price-card > p { margin: 0; font-size: 0.88rem; color: var(--niv-slate-500); line-height: 1.55; }
.niv-price-card__rate {
  font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--niv-ink); letter-spacing: -0.03em;
}
.niv-price-card__rate small { font-size: 0.95rem; font-weight: 700; color: var(--niv-slate-500); }
.niv-price-card__usd { font-size: 0.8rem; font-weight: 650; color: var(--niv-slate-500); margin: -0.25rem 0 0 !important; }
.niv-legal-section { margin: 2rem 0; }
.niv-legal-section__head { margin-bottom: 1rem; }
.niv-legal-section__head h2 { margin: 0 0 0.35rem; font-size: 1.35rem; font-weight: 800; }
.niv-legal-section__head p { margin: 0; color: var(--niv-slate-500); }
.niv-pricing-rules {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem;
}
@media (min-width: 800px) { .niv-pricing-rules { grid-template-columns: 1fr 1fr; } }
.niv-pricing-example { display: grid; gap: 0.55rem; max-width: 36rem; }
.niv-pricing-example__row {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.92rem;
}
.niv-pricing-example__row.is-fee strong { color: #b91c1c; }
.niv-pricing-example__row.is-net {
  border-bottom: none; margin-top: 0.25rem; padding-top: 0.75rem;
  border-top: 2px solid rgba(7,94,84,0.15);
}
.niv-pricing-example__row.is-net strong { color: var(--niv-brand-dark); font-size: 1.1rem; }
.niv-pricing-compare {
  display: grid; grid-template-columns: 1fr; gap: 0.85rem;
}
@media (min-width: 700px) { .niv-pricing-compare { grid-template-columns: 1fr 1fr; } }
.niv-pricing-cta {
  margin-top: 2.5rem; border-radius: 1.5rem; overflow: hidden;
  background: linear-gradient(145deg, #0b141a 0%, #075e54 55%, #25d366 140%);
  color: #fff; box-shadow: 0 20px 50px rgba(7,94,84,0.25);
}
.niv-pricing-cta__inner { padding: 2rem 1.5rem; text-align: center; max-width: 40rem; margin: 0 auto; }
.niv-pricing-cta__inner h2 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.niv-pricing-cta__inner p { margin: 0 0 1.25rem; color: rgba(255,255,255,0.8); }
.niv-pricing-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ===== Home enrichment ===== */
.niv-why-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 1.5rem;
}
@media (min-width: 800px) { .niv-why-grid { grid-template-columns: 1fr 1fr; } }
.niv-why-card {
  padding: 1.25rem 1.2rem; border-radius: 1.25rem; background: #fff;
  border: 1px solid var(--niv-slate-200); box-shadow: 0 10px 26px rgba(11,20,26,0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.niv-why-card:hover { transform: translateY(-2px); border-color: rgba(37,211,102,0.45); }
.niv-why-card__num {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--niv-brand-dark); background: var(--niv-brand-light); padding: 0.2rem 0.5rem;
  border-radius: 999px; margin-bottom: 0.65rem;
}
.niv-why-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 800; }
.niv-why-card p { margin: 0; font-size: 0.88rem; color: var(--niv-slate-500); line-height: 1.55; }
.niv-split {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
}
@media (min-width: 900px) { .niv-split { grid-template-columns: 1.1fr 0.9fr; } }
.niv-checklist { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: 0.55rem; }
.niv-checklist li {
  position: relative; padding-inline-start: 1.4rem; font-size: 0.92rem; font-weight: 600; color: var(--niv-slate-600);
}
.niv-checklist li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0.4rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--niv-brand);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.2);
}
.niv-security-panel {
  background: #0b141a; color: #fff; border-radius: 1.35rem; padding: 1.35rem 1.25rem;
  box-shadow: 0 18px 40px rgba(11,20,26,0.25);
}
.niv-security-panel__row {
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem;
}
.niv-security-panel__row span { color: rgba(255,255,255,0.55); font-weight: 650; }
.niv-security-panel__row strong { font-weight: 700; word-break: break-all; }
.niv-security-panel .niv-btn { margin-top: 1rem; }
.niv-dev-links { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.niv-faq { display: grid; gap: 0.75rem; max-width: 48rem; margin-top: 1.25rem; }
.niv-faq__item {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1rem;
  padding: 0.85rem 1.1rem; box-shadow: 0 6px 18px rgba(11,20,26,0.03);
}
.niv-faq__item summary {
  cursor: pointer; font-weight: 800; color: var(--niv-ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.niv-faq__item summary::-webkit-details-marker { display: none; }
.niv-faq__item summary::after {
  content: '+'; font-size: 1.25rem; color: var(--niv-brand-dark); font-weight: 700;
}
.niv-faq__item[open] summary::after { content: '–'; }
.niv-faq__item p { margin: 0.65rem 0 0.15rem; color: var(--niv-slate-500); font-size: 0.9rem; line-height: 1.6; }

/* Scroll reveal polish */
.niv-reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.65s var(--niv-spring, ease), transform 0.65s var(--niv-spring, ease);
  transition-delay: var(--niv-delay, 0ms);
}
.niv-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .niv-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Agent studio ===== */
.niv-textarea--tall { min-height: 11rem; }
.niv-agent-import {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--niv-slate-100);
}
.niv-agent-import .niv-agent-flash { flex: 1 1 100%; margin-top: 0.35rem; }
.niv-agent-warn {
  margin-bottom: 1.15rem; padding: 1rem 1.15rem; border-radius: 1.1rem;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.niv-agent-warn strong { display: block; margin-bottom: 0.25rem; }
.niv-agent-warn p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.niv-agent-prompt summary em { font-style: normal; font-weight: 650; color: var(--niv-slate-500); font-size: 0.78rem; }
.niv-agent-rename__row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.35rem 0 0.35rem; }
.niv-agent-rename__row .niv-input { flex: 1; min-width: 12rem; }
.niv-agent-owner { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--niv-slate-500); }
.niv-agent-list__owner {
  display: block; font-size: 0.72rem; font-weight: 650; color: var(--niv-slate-500); margin-top: 0.15rem;
}
.niv-agent-hero__top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.niv-agent-back {
  font-size: 0.85rem; font-weight: 700; color: var(--niv-slate-500);
}
.niv-agent-back:hover { color: var(--niv-brand-dark); }
.niv-agent-hero__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.niv-agent-hero__main {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem; align-items: flex-end;
}
.niv-agent-hero__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.niv-agent-steps {
  list-style: none; padding: 0; margin: 0 0 1.15rem;
  display: grid; grid-template-columns: 1fr; gap: 0.65rem;
}
@media (min-width: 860px) { .niv-agent-steps { grid-template-columns: repeat(3, 1fr); } }
.niv-agent-step {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.95rem 1rem; border-radius: 1.1rem; background: #fff;
  border: 1px solid var(--niv-slate-200); box-shadow: 0 8px 22px rgba(11,20,26,0.04);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.niv-agent-step.is-active { border-color: rgba(37,211,102,0.55); transform: translateY(-1px); }
.niv-agent-step.is-done { border-color: rgba(7,94,84,0.25); background: linear-gradient(180deg, #f0fdf8, #fff 70%); }
.niv-agent-step__num {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 800;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-agent-step.is-done .niv-agent-step__num { background: #075e54; color: #fff; }
.niv-agent-step strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.niv-agent-step p { margin: 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.45; }

.niv-agent-tips {
  display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 1.15rem;
}
@media (min-width: 860px) { .niv-agent-tips { grid-template-columns: repeat(3, 1fr); } }
.niv-agent-tip {
  padding: 1rem 1.05rem; border-radius: 1.1rem; background: #fff;
  border: 1px solid var(--niv-slate-200);
}
.niv-agent-tip strong { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--niv-ink); }
.niv-agent-tip p { margin: 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.5; }
.niv-agent-tip code {
  font-size: 0.72rem; background: var(--niv-cream); padding: 0.1rem 0.35rem; border-radius: 0.3rem;
}

.niv-agent-prompt {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1.15rem;
  padding: 0.85rem 1.1rem; margin-bottom: 1.15rem;
  box-shadow: 0 8px 22px rgba(11,20,26,0.03);
}
.niv-agent-prompt summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 0.75rem; font-weight: 800; color: var(--niv-ink);
}
.niv-agent-prompt summary::-webkit-details-marker { display: none; }
.niv-agent-prompt__meta { font-size: 0.75rem; font-weight: 650; color: var(--niv-slate-500); }
.niv-agent-prompt__body {
  margin: 0.85rem 0 0; padding: 0.9rem 1rem; border-radius: 0.85rem;
  background: #0b141a; color: #d1d5db; font-size: 0.78rem; line-height: 1.55;
  max-height: 14rem; overflow: auto; white-space: pre-wrap; word-break: break-word;
}

.niv-agent-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start;
  width: 100%; max-width: 100%; min-width: 0;
}
@media (min-width: 980px) {
  .niv-agent-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .niv-agent-col--chat { position: sticky; top: 5.25rem; }
}
.niv-agent-grid--create {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .niv-agent-grid--create { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.niv-agent-col { display: grid; gap: 1rem; min-width: 0; }

.niv-agent-card {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1.35rem;
  padding: 1.25rem; box-shadow: 0 12px 30px rgba(11,20,26,0.045);
  min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden;
}
.niv-agent-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.75rem; margin-bottom: 1rem;
}
.niv-agent-card__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--niv-ink); }
.niv-agent-card__hint { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.45; }
.niv-agent-card__icon {
  width: 2.35rem; height: 2.35rem; border-radius: 0.85rem; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-agent-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.niv-agent-card__note { margin: 0; font-size: 0.75rem; color: var(--niv-slate-500); font-weight: 600; }

.niv-agent-flash {
  margin: 0.85rem 0 0; padding: 0.65rem 0.85rem; border-radius: 0.75rem;
  font-size: 0.85rem; font-weight: 650;
}
.niv-agent-flash.is-ok { background: #dcfce7; color: #166534; }
.niv-agent-flash.is-err { background: #fee2e2; color: #991b1b; }

.niv-agent-empty {
  text-align: center; padding: 1.5rem 1rem; border-radius: 1.1rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px dashed var(--niv-slate-200);
}
.niv-agent-empty__icon {
  width: 3rem; height: 3rem; margin: 0 auto 0.75rem; border-radius: 1rem;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-agent-empty strong { display: block; margin-bottom: 0.35rem; }
.niv-agent-empty p { margin: 0; font-size: 0.85rem; color: var(--niv-slate-500); }
.niv-agent-empty__list {
  list-style: none; padding: 0; margin: 0.85rem auto 0; max-width: 22rem;
  display: grid; gap: 0.35rem; text-align: start;
}
.niv-agent-empty__list li {
  font-size: 0.82rem; font-weight: 650; color: var(--niv-slate-600);
  padding: 0.45rem 0.7rem; border-radius: 0.65rem; background: #fff;
  border: 1px solid var(--niv-slate-100);
}

.niv-agent-kb__list { display: grid; gap: 0.65rem; }
.niv-agent-kb__item {
  padding: 0.9rem 1rem; border-radius: 1rem; border: 1px solid var(--niv-slate-200);
  background: linear-gradient(180deg, #fafafa, #fff);
  animation: ocKbIn 0.45s ease both;
  animation-delay: calc(var(--niv-i, 0) * 40ms);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.niv-agent-kb__item:hover { border-color: rgba(37,211,102,0.45); transform: translateY(-1px); }
@keyframes ocKbIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.niv-agent-kb__item-head {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline;
  margin-bottom: 0.35rem;
}
.niv-agent-kb__item-head strong { font-size: 0.92rem; }
.niv-agent-kb__item-head span { font-size: 0.72rem; color: var(--niv-slate-500); font-weight: 650; }
.niv-agent-kb__item p { margin: 0; font-size: 0.84rem; color: var(--niv-slate-500); line-height: 1.5; }

.niv-agent-list { display: grid; gap: 0.55rem; min-width: 0; }
.niv-agent-list__item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem;
  padding: 0.9rem 1rem; border-radius: 1rem; border: 1px solid var(--niv-slate-200);
  background: #fff; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0; max-width: 100%; overflow: hidden;
}
.niv-agent-list__item > div { min-width: 0; flex: 1; overflow: hidden; }
.niv-agent-list__item .niv-badge { flex-shrink: 0; }
.niv-agent-list__item:hover {
  border-color: rgba(37,211,102,0.5); transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(7,94,84,0.08);
}
.niv-agent-list__item strong {
  display: block; font-size: 0.95rem; color: var(--niv-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.niv-agent-list__item p {
  margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--niv-slate-500); line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  word-break: break-word; overflow-wrap: anywhere;
}

/* ===== Agents hub (create page) — full-width stacked cards ===== */
.niv-agents-hub .niv-app-main { max-width: 88rem; }
.niv-agents-hub__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.15rem; align-items: stretch;
  width: 100%; min-width: 0;
}
.niv-agents-hub__grid > .niv-dash-panel {
  width: 100%; max-width: none;
}
.niv-textarea--create { min-height: 8.5rem; max-height: 16rem; }
.niv-field__optional {
  font-size: 0.72rem; font-weight: 650; color: var(--niv-slate-500);
  text-transform: lowercase; letter-spacing: 0;
}
.niv-agents-hub__create-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.niv-agents-hub__items {
  display: grid; gap: 0.55rem; min-width: 0;
}
.niv-agents-hub__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem;
  align-items: center; padding: 0.85rem 0.95rem; border-radius: 1.05rem;
  border: 1px solid var(--niv-slate-200); background: linear-gradient(165deg, #fafafa, #fff);
  min-width: 0; max-width: 100%; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: ocKbIn 0.4s ease both; animation-delay: calc(var(--niv-i, 0) * 45ms);
}
.niv-agents-hub__item:hover {
  transform: translateY(-2px); border-color: rgba(37,211,102,0.5);
  box-shadow: 0 12px 26px rgba(7,94,84,0.1);
}
.niv-agents-hub__avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 0.85rem; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-agents-hub__meta { min-width: 0; overflow: hidden; }
.niv-agents-hub__title-row {
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.2rem;
}
.niv-agents-hub__title-row strong {
  font-size: 0.95rem; color: var(--niv-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.niv-agents-hub__meta p {
  margin: 0; font-size: 0.78rem; color: var(--niv-slate-500); line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  word-break: break-word; overflow-wrap: anywhere;
}
.niv-agents-hub__chev {
  color: var(--niv-brand-dark); font-weight: 800; opacity: 0.55; transition: opacity 0.2s ease, transform 0.2s ease;
}
.niv-agents-hub__item:hover .niv-agents-hub__chev { opacity: 1; transform: translateX(2px); }
.niv-agents-hub__actions {
  display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
}
.niv-agents-hub__actions .niv-agent-del {
  color: #b91c1c; font-weight: 750;
}
.niv-agents-hub__actions .niv-agent-del:hover { background: #fef2f2; }

/* SweetAlert — TakTek concept UI (logout-style confirms) */
.swal2-container.swal2-backdrop-show:not(.swal2-toast-shown) {
  background: rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.swal2-container.swal2-toast-shown,
.swal2-container.tk-toast-host,
.swal2-container:has(.swal2-toast) {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
  inset: auto auto 0.75rem 0.75rem !important;
  width: auto !important;
  height: auto !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  overflow: visible !important;
}
.swal2-container.swal2-toast-shown > .swal2-popup,
.swal2-container.tk-toast-host > .swal2-popup,
.swal2-container:has(.swal2-toast) > .swal2-popup {
  pointer-events: auto !important;
}
.swal2-popup,
.swal2-popup.niv-swal {
  width: min(24.5rem, calc(100vw - 1.5rem)) !important;
  padding: 1.65rem 1.5rem 1.4rem !important;
  border-radius: 1.65rem !important;
  background:
    radial-gradient(ellipse 75% 55% at 12% 0%, rgba(16, 172, 132, 0.16), transparent 58%),
    #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16) !important;
  font-family: var(--niv-font, 'Manrope', 'Noto Sans Arabic', system-ui, sans-serif) !important;
  color: #0f172a !important;
}
.swal2-popup.swal2-toast,
.swal2-popup.swal2-toast.tk-toast,
.swal2-popup.tk-toast {
  width: auto !important;
  max-width: min(22rem, calc(100vw - 1.5rem)) !important;
  min-height: 0 !important;
  padding: .45rem .85rem .45rem .65rem !important;
  border-radius: 4px !important;
  background: #598bff !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .45rem !important;
  grid-column: unset !important;
  color: #fff !important;
}
.swal2-popup.tk-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  text-align: start !important;
}
.swal2-popup.tk-toast .swal2-html-container,
.swal2-popup.swal2-toast .swal2-html-container {
  display: none !important;
}
.swal2-popup.tk-toast .swal2-icon,
.swal2-popup.swal2-toast .swal2-icon {
  width: 1.35rem !important;
  height: 1.35rem !important;
  margin: 0 !important;
  border-width: 0.15em !important;
  border-color: rgba(255,255,255,.85) !important;
  color: #fff !important;
  flex-shrink: 0;
  background: transparent !important;
}
.swal2-popup.tk-toast .swal2-icon .swal2-icon-content,
.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
  font-size: .8rem !important;
  color: #fff !important;
}
.swal2-popup.tk-toast .swal2-success-circular-line-left,
.swal2-popup.tk-toast .swal2-success-circular-line-right,
.swal2-popup.tk-toast .swal2-success-fix-tip {
  display: none !important;
}
.swal2-popup.tk-toast .swal2-timer-progress-bar-container,
.swal2-popup.swal2-toast .swal2-timer-progress-bar-container {
  display: none !important;
}

/* Bolt / Nebular-style selection toasts (add-order) */
.tk-bolt-toasts {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 10050;
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2rem));
}
.tk-bolt-toast {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .95rem .7rem .75rem;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.25;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.tk-bolt-toast.is-in {
  opacity: 0.96;
  transform: translateY(0);
}
.tk-bolt-toast.is-out {
  opacity: 0;
  transform: translateY(6px);
}
.tk-bolt-toast--info { background: #598bff; }
.tk-bolt-toast--success { background: #00d68f; }
.tk-bolt-toast--warning { background: #ffaa00; }
.tk-bolt-toast--danger { background: #ff3d71; }
.tk-bolt-toast__icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.95);
  flex-shrink: 0;
  position: relative;
}
.tk-bolt-toast--info .tk-bolt-toast__icon::after {
  content: "i";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: #fff;
}
.tk-bolt-toast__msg { flex: 1; min-width: 0; }

.swal2-title,
.niv-swal__title {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  font-family: inherit !important;
  margin: 0.15rem 0 0.35rem !important;
  padding: 0 !important;
}
.swal2-html-container,
.niv-swal__text {
  font-size: 0.95rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}
.swal2-icon {
  margin: 0.15rem auto 0.85rem !important;
  border-width: 0.2em !important;
  width: 4.25rem !important;
  height: 4.25rem !important;
}
.swal2-icon .swal2-icon-content {
  font-size: 2.35rem !important;
  font-weight: 500 !important;
}
.swal2-icon.swal2-success { border-color: #10ac84 !important; color: #10ac84 !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #10ac84 !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(16, 172, 132, 0.28) !important; }
.swal2-icon.swal2-error { border-color: #ef4444 !important; color: #ef4444 !important; }
.swal2-icon.swal2-warning { border-color: #f59e0b !important; color: #d97706 !important; }
.swal2-icon.swal2-info { border-color: #0f4c81 !important; color: #0f4c81 !important; }
.swal2-icon.swal2-question {
  border-color: #10ac84 !important;
  color: #10ac84 !important;
}
.swal2-actions,
.niv-swal__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  margin: 1.25rem 0 0 !important;
  width: 100% !important;
}
.swal2-styled,
.niv-swal__confirm,
.niv-swal__cancel {
  margin: 0 !important;
  min-width: 7.5rem !important;
  padding: 0.72rem 1.35rem !important;
  border-radius: 999px !important;
  font-weight: 750 !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  box-shadow: none !important;
  transition: background 0.2s, border-color 0.2s, filter 0.2s, transform 0.15s !important;
}
.swal2-styled:active { transform: scale(0.98); }
.swal2-confirm,
.niv-swal__confirm {
  background: #10ac84 !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(16, 172, 132, 0.28) !important;
}
.swal2-confirm:hover,
.niv-swal__confirm:hover {
  background: #0d9472 !important;
  filter: none !important;
  color: #fff !important;
}
.swal2-cancel,
.niv-swal__cancel {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1.5px solid #e2e8f0 !important;
}
.swal2-cancel:hover,
.niv-swal__cancel:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}
/* Destructive confirm still keeps TakTek shape; tinted confirm */
.swal2-popup.tk-swal--danger .swal2-confirm,
.swal2-popup.tk-swal--danger .niv-swal__confirm {
  background: #ef4444 !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.25) !important;
}
.swal2-popup.tk-swal--danger .swal2-confirm:hover {
  background: #dc2626 !important;
}
.swal2-input,
.swal2-textarea,
.swal2-select {
  border-radius: 0.75rem !important;
  border: 1.5px solid #e2e8f0 !important;
  font-family: inherit !important;
  box-shadow: none !important;
}
/* TakTekCombo must never wrap SweetAlert's internal <select> */
.swal2-container .tk-combo-host,
.swal2-container .tk-combo,
.swal2-popup .tk-combo-host,
.swal2-popup .tk-combo {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
.swal2-input:focus,
.swal2-textarea:focus {
  border-color: #10ac84 !important;
  box-shadow: 0 0 0 3px rgba(16, 172, 132, 0.15) !important;
}
.swal2-timer-progress-bar { background: rgba(16, 172, 132, 0.55) !important; }
@media (max-width: 480px) {
  .swal2-actions,
  .niv-swal__actions {
    flex-direction: column-reverse !important;
  }
  .swal2-styled,
  .niv-swal__confirm,
  .niv-swal__cancel {
    width: 100% !important;
    min-width: 0 !important;
  }
}

.niv-agent-chat .niv-chat-log {
  min-height: 18rem; max-height: min(52vh, 28rem); overflow-y: auto;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(37,211,102,0.12), transparent 55%),
    #0b141a;
  scrollbar-width: thin;
}
.niv-chat-welcome { padding: 0.35rem 0.15rem 0.5rem; }
.niv-chat-welcome strong {
  display: block; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 0.65rem;
}
.niv-chat-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.niv-chat-chip {
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  color: #e9edef; border-radius: 999px; padding: 0.4rem 0.75rem;
  font: inherit; font-size: 0.78rem; font-weight: 650; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.niv-chat-chip:hover {
  background: rgba(37,211,102,0.18); border-color: rgba(37,211,102,0.45);
  transform: translateY(-1px);
}
.niv-chat-bubble.is-in {
  animation: ocBubbleIn 0.35s ease both;
}
@keyframes ocBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.niv-chat-source {
  margin-top: 0.45rem; font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,0.45); letter-spacing: 0.02em;
}
.niv-chat-typing {
  display: inline-flex; gap: 0.28rem; align-items: center; padding: 0.85rem 1rem;
}
.niv-chat-typing span {
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: rgba(255,255,255,0.55);
  animation: ocDot 1s ease infinite;
}
.niv-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.niv-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ocDot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.niv-chat-compose {
  display: flex; gap: 0.5rem; align-items: stretch;
}
.niv-chat-compose .niv-input {
  flex: 1; background: #f8fafc;
}
.niv-chat-compose .niv-input:focus {
  outline: none; border-color: var(--niv-brand); box-shadow: 0 0 0 3px rgba(37,211,102,0.18);
}

@media (prefers-reduced-motion: reduce) {
  .niv-agent-kb__item, .niv-chat-bubble.is-in, .niv-chat-typing span { animation: none; }
}

/* ===== Dual product paths (landing / pricing) ===== */
.niv-path-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem;
}
@media (min-width: 800px) { .niv-path-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; } }
.niv-path-card {
  padding: 1.4rem 1.3rem; border-radius: 1.35rem; background: #fff;
  border: 1px solid var(--niv-slate-200); box-shadow: 0 12px 32px rgba(11,20,26,0.05);
  display: flex; flex-direction: column; gap: 0.65rem;
}
.niv-path-card--alt {
  background: linear-gradient(165deg, #f0fdf4 0%, #fff 55%);
  border-color: rgba(37,211,102,0.35);
}
.niv-path-card__tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--niv-brand-dark); background: var(--niv-brand-light);
  padding: 0.22rem 0.55rem; border-radius: 999px;
}
.niv-path-card h3 { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.niv-path-card > p { margin: 0; font-size: 0.9rem; color: var(--niv-slate-500); line-height: 1.55; }
.niv-path-card__price { font-size: 1.05rem; color: var(--niv-slate-700); }
.niv-path-card__price strong { font-size: 1.45rem; color: #0b141a; font-weight: 800; }
.niv-path-card__price span { color: var(--niv-slate-500); font-size: 0.92rem; }
.niv-path-card__list {
  list-style: none; padding: 0; margin: 0.15rem 0 0; display: grid; gap: 0.4rem;
  font-size: 0.86rem; color: var(--niv-slate-600);
}
.niv-path-card__list li::before {
  content: '✓'; color: var(--niv-brand-dark); font-weight: 800; margin-inline-end: 0.4rem;
}
.niv-path-card__cta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.35rem; }

/* ===== My numbers + connect (custom WA) ===== */
.niv-cn-layout {
  display: grid; grid-template-columns: 1fr; gap: 1.15rem; align-items: start;
}
@media (min-width: 960px) {
  .niv-cn-layout { grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.4fr); gap: 1.35rem; }
}
.niv-cn-hero {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: flex-start; margin-bottom: 1.35rem;
}
.niv-cn-price-chip {
  background: #0b141a; color: #fff; border-radius: 1.1rem; padding: 0.9rem 1.1rem;
  min-width: 10rem; text-align: center; box-shadow: 0 12px 28px rgba(11,20,26,0.18);
  position: relative; overflow: hidden;
}
.niv-cn-price-chip--pulse::after {
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(37,211,102,0.35), transparent 55%);
  animation: ocCnGlow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ocCnGlow {
  0%, 100% { opacity: 0.45; transform: translate(0,0); }
  50% { opacity: 0.9; transform: translate(8%, 6%); }
}
.niv-cn-price-chip__label {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 0.25rem; position: relative;
}
.niv-cn-price-chip strong { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.1; position: relative; }
.niv-cn-price-chip > span { font-size: 0.82rem; color: rgba(255,255,255,0.75); position: relative; }

.niv-cn-ico {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.7rem;
  background: var(--niv-brand-light); color: var(--niv-brand-dark); flex-shrink: 0;
}
.niv-cn-ico svg { width: 1.05rem; height: 1.05rem; }
.niv-cn-ico--sm { width: 1.55rem; height: 1.55rem; border-radius: 0.55rem; }
.niv-cn-ico--sm svg { width: 0.9rem; height: 0.9rem; }
.niv-cn-ico--lg { width: 2.4rem; height: 2.4rem; border-radius: 0.85rem; }
.niv-cn-ico--lg svg { width: 1.2rem; height: 1.2rem; }

.niv-cn-sidebar { display: grid; gap: 1rem; }
.niv-cn-wizard, .niv-cn-tips {
  background: #fff; border: 1px solid var(--niv-slate-200); border-radius: 1.25rem;
  padding: 1.15rem 1.1rem; box-shadow: 0 10px 26px rgba(11,20,26,0.04);
}
.niv-cn-wizard__title {
  display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem;
  font-size: 1rem; font-weight: 800;
}
.niv-cn-wizard__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.niv-cn-wizard__steps li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.65rem 0.55rem; border-radius: 0.9rem;
  border: 1px solid transparent; transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.niv-cn-wizard__steps li.is-active {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-color: rgba(37,211,102,0.35);
  transform: translateX(2px);
}
.niv-cn-wizard__num {
  flex-shrink: 0; width: 1.7rem; height: 1.7rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 800;
  background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-cn-wizard__steps li.is-active .niv-cn-wizard__num {
  background: var(--niv-brand); color: #fff;
  box-shadow: 0 0 0 4px rgba(37,211,102,0.2);
}
.niv-cn-wizard__steps strong { display: block; font-size: 0.88rem; margin-bottom: 0.12rem; }
.niv-cn-wizard__steps p { margin: 0; font-size: 0.78rem; color: var(--niv-slate-500); line-height: 1.4; }

.niv-cn-tips h3 {
  display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.65rem;
  font-size: 0.92rem; font-weight: 800;
}
.niv-cn-tips ul { margin: 0; padding: 0 0 0 1.05rem; display: grid; gap: 0.4rem; }
.niv-cn-tips li { font-size: 0.82rem; color: var(--niv-slate-600); line-height: 1.45; }

.niv-cn-main { display: grid; gap: 1.1rem; min-width: 0; }
.niv-cn-add__head { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.niv-cn-add__hint { margin: 0.25rem 0 0; font-size: 0.86rem; color: var(--niv-slate-500); line-height: 1.45; }
.niv-cn-add__form { display: grid; gap: 0.95rem; }
@media (min-width: 720px) {
  .niv-cn-add__form { grid-template-columns: 1fr 1.35fr; align-items: end; }
  .niv-cn-add__btn { grid-column: 1 / -1; justify-self: start; }
}
.niv-cn-add__btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.niv-cn-phone-wrap { position: relative; }
.niv-cn-phone-wrap__ico {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  width: 1.1rem; height: 1.1rem; color: var(--niv-slate-400); pointer-events: none;
}
.niv-cn-phone-wrap__ico svg { width: 100%; height: 100%; }
.niv-cn-phone-wrap .niv-input { padding-left: 2.35rem; }

.niv-cn-table-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem;
}
.niv-cn-count {
  font-size: 0.75rem; font-weight: 700; color: var(--niv-brand-dark);
  background: var(--niv-brand-light); padding: 0.25rem 0.6rem; border-radius: 999px;
}
.niv-cn-empty {
  text-align: center; padding: 2rem 1rem; color: var(--niv-slate-500);
}
.niv-cn-empty__icon {
  width: 3.2rem; height: 3.2rem; margin: 0 auto 0.75rem; color: var(--niv-brand-dark);
  background: var(--niv-brand-light); border-radius: 1rem; display: grid; place-items: center;
  animation: ocCnFloat 2.8s ease-in-out infinite;
}
.niv-cn-empty__icon svg { width: 1.6rem; height: 1.6rem; }
@keyframes ocCnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.niv-cn-mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.niv-cn-table .niv-cn-row { transition: background 0.2s ease; }
.niv-cn-table .niv-cn-row:hover { background: #f8fafc; }
.niv-cn-row__label { font-size: 0.92rem; }
.niv-cn-meta-cell { font-size: 0.82rem; color: var(--niv-slate-500); white-space: nowrap; }
.niv-cn-actions-cell {
  white-space: nowrap; display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end;
}
.niv-cn-pay-menu { position: relative; display: inline-block; }
.niv-cn-pay-menu > summary {
  list-style: none; cursor: pointer;
}
.niv-cn-pay-menu > summary::-webkit-details-marker { display: none; }
.niv-cn-pay-menu__panel {
  position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 20;
  min-width: 11.5rem; padding: 0.55rem; border-radius: 0.9rem;
  background: #fff; border: 1px solid var(--niv-slate-200);
  box-shadow: 0 16px 40px rgba(11,20,26,0.12);
  display: grid; gap: 0.35rem;
  animation: ocCnMenuIn 0.18s ease both;
}
@keyframes ocCnMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Connect page */
.niv-cn-connect-hero {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: flex-start; margin-bottom: 1.25rem;
}
.niv-cn-back {
  display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.82rem;
  font-weight: 700; color: var(--niv-brand-dark); text-decoration: none; margin-bottom: 0.45rem;
}
.niv-cn-back:hover { text-decoration: underline; }
.niv-cn-live {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem;
  border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  border: 1px solid var(--niv-slate-200); background: #fff;
}
.niv-cn-live.is-wait { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
.niv-cn-live.is-on { color: #14532d; background: #f0fdf4; border-color: #86efac; }
.niv-cn-live__dot {
  width: 0.55rem; height: 0.55rem; border-radius: 999px; background: currentColor;
  box-shadow: 0 0 0 0 currentColor; animation: ocCnPulse 1.6s ease-out infinite;
}
.niv-cn-live.is-on .niv-cn-live__dot { animation: none; }
@keyframes ocCnPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.niv-cn-connect-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.15rem; align-items: stretch;
}
@media (min-width: 900px) {
  .niv-cn-connect-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.niv-cn-connect-status .niv-panel__title,
.niv-cn-qr-panel .niv-panel__title {
  display: flex; align-items: center; gap: 0.5rem;
}
.niv-cn-status-block {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.95rem 1rem; border-radius: 1rem; margin-bottom: 1rem;
}
.niv-cn-status-block.is-pending { background: #fffbeb; border: 1px solid #fde68a; }
.niv-cn-status-block.is-ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.niv-cn-status-block strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.niv-cn-status-block p { margin: 0; font-size: 0.84rem; color: var(--niv-slate-600); line-height: 1.45; }
.niv-cn-status-block__icon {
  width: 2.4rem; height: 2.4rem; border-radius: 0.85rem; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: #fff; color: var(--niv-brand-dark); border: 1px solid rgba(37,211,102,0.35);
}
.niv-cn-status-block__icon--pulse {
  animation: ocCnFloat 2.2s ease-in-out infinite;
}
.niv-cn-status-block__icon--pulse svg { width: 1.2rem; height: 1.2rem; }

.niv-cn-facts {
  display: grid; gap: 0.45rem; margin: 0 0 1.1rem; padding: 0.75rem 0.9rem;
  background: #f8fafc; border-radius: 0.9rem; border: 1px solid var(--niv-slate-100);
}
.niv-cn-facts > div { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.86rem; }
.niv-cn-facts dt { color: var(--niv-slate-500); margin: 0; }
.niv-cn-facts dd { margin: 0; font-weight: 700; color: #0b141a; }

.niv-cn-howto { list-style: none; padding: 0; margin: 0 0 1.15rem; display: grid; gap: 0.65rem; }
.niv-cn-howto li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.55rem 0.35rem; border-bottom: 1px dashed var(--niv-slate-100);
}
.niv-cn-howto li:last-child { border-bottom: 0; }
.niv-cn-howto__ico {
  width: 2rem; height: 2rem; border-radius: 0.7rem; flex-shrink: 0;
  display: grid; place-items: center; background: var(--niv-brand-light); color: var(--niv-brand-dark);
}
.niv-cn-howto__ico svg { width: 1rem; height: 1rem; }
.niv-cn-howto strong { display: block; font-size: 0.88rem; }
.niv-cn-howto p { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--niv-slate-500); line-height: 1.4; }
.niv-cn-connect-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.niv-cn-qr-panel { text-align: center; display: flex; flex-direction: column; }
.niv-cn-qr-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 22rem; padding: 0.5rem 0 0.25rem;
}
.niv-cn-qr-frame {
  position: relative; padding: 1rem; border-radius: 1.25rem;
  background: linear-gradient(160deg, #f0fdf4 0%, #fff 55%);
  border: 1px solid rgba(37,211,102,0.3);
  box-shadow: 0 18px 40px rgba(7,94,84,0.1);
  animation: ocCnQrIn 0.55s var(--niv-spring, cubic-bezier(0.22,1,0.36,1)) both;
}
@keyframes ocCnQrIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
.niv-cn-qr-frame img {
  display: block; width: min(100%, 280px); height: auto; border-radius: 0.75rem;
  background: #fff;
}
.niv-cn-qr-frame__corner {
  position: absolute; width: 1.15rem; height: 1.15rem; border-color: var(--niv-brand);
  border-style: solid; border-width: 0;
}
.niv-cn-qr-frame__corner--tl { top: 0.45rem; left: 0.45rem; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.niv-cn-qr-frame__corner--tr { top: 0.45rem; right: 0.45rem; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.niv-cn-qr-frame__corner--bl { bottom: 0.45rem; left: 0.45rem; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.niv-cn-qr-frame__corner--br { bottom: 0.45rem; right: 0.45rem; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

.niv-cn-qr-hint {
  margin: 1rem 0 0; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; color: var(--niv-slate-500);
}
.niv-cn-qr-hint__spin {
  width: 0.85rem; height: 0.85rem; border-radius: 999px;
  border: 2px solid rgba(37,211,102,0.25); border-top-color: var(--niv-brand);
  animation: ocSpin 0.8s linear infinite;
}
.niv-cn-qr-loading { display: grid; gap: 0.75rem; justify-items: center; color: var(--niv-slate-500); }
.niv-cn-qr-skeleton {
  width: 220px; height: 220px; border-radius: 1rem;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%; animation: ocCnShimmer 1.2s linear infinite;
}
@keyframes ocCnShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.niv-cn-qr-done { display: grid; gap: 0.85rem; justify-items: center; max-width: 18rem; margin: 0 auto; }
.niv-cn-qr-done__check {
  width: 3.5rem; height: 3.5rem; border-radius: 999px; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--niv-brand);
  box-shadow: 0 12px 28px rgba(37,211,102,0.35);
  animation: ocCnQrIn 0.5s ease both;
}
.niv-cn-qr-done p { margin: 0; color: var(--niv-slate-600); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .niv-cn-price-chip--pulse::after,
  .niv-cn-empty__icon,
  .niv-cn-status-block__icon--pulse,
  .niv-cn-live__dot,
  .niv-cn-qr-hint__spin,
  .niv-cn-qr-skeleton,
  .niv-cn-qr-frame { animation: none !important; }
}

/* ── Country / phone picker ── */
.niv-phone {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  direction: ltr;
}
.niv-phone__code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  border: 1px solid var(--niv-slate-300);
  background: var(--niv-white);
  border-radius: 12px;
  padding: 0 0.75rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--niv-ink);
  min-height: 2.75rem;
}
.niv-phone__code:hover { border-color: var(--niv-brand); }
.niv-phone__flag { border-radius: 2px; object-fit: cover; }
.niv-phone__dial { font-size: 0.95rem; }
.niv-phone__chev { font-size: 0.7rem; opacity: 0.55; }
.niv-phone__national { flex: 1 1 auto; min-width: 0; }
.niv-country-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(11,20,26,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem;
}
.niv-country-modal[hidden] { display: none !important; }
@media (min-width: 640px) {
  .niv-country-modal { align-items: center; }
}
.niv-country-modal__panel {
  width: min(28rem, 100%);
  max-height: min(85vh, 36rem);
  background: var(--niv-white);
  border-radius: 18px;
  box-shadow: var(--niv-shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.niv-country-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.1rem 0.5rem;
  font-weight: 800;
}
.niv-country-modal__close {
  border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; line-height: 1;
  color: var(--niv-slate-600);
}
.niv-country-modal__search { margin: 0.5rem 1rem; width: auto; }
.niv-country-modal__list {
  overflow: auto; padding: 0.35rem 0.5rem 1rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.niv-country-modal__item {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 0.65rem; align-items: center;
  border: 0; background: transparent; text-align: left; padding: 0.65rem 0.75rem;
  border-radius: 12px; cursor: pointer; font: inherit;
}
.niv-country-modal__item:hover { background: var(--niv-slate-100); }
.niv-country-modal__name { font-weight: 650; color: var(--niv-ink); }
.niv-country-modal__dial { font-weight: 700; color: var(--niv-slate-600); }

/* ═══════════════════════════════════════════════════════════
   TakTek landing — modern SaaS (matches user-dashboard)
   ═══════════════════════════════════════════════════════════ */
.tk-site { background: var(--niv-cream); color: var(--niv-slate-800); }

.niv-mw-hero {
  position: relative; overflow: hidden;
  min-height: 0;
  padding: 1.75rem 0 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(22, 102, 168, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(16, 172, 132, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
  color: var(--niv-ink);
  text-align: start;
}
.niv-mw-hero__art { display: none; }
.niv-mw-hero__inner {
  position: relative; z-index: 1;
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: var(--niv-page-max);
  margin: 0 auto;
  padding: 1.5rem 0 0;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  animation: nivMwRise 0.7s var(--niv-spring) both;
}
@media (min-width: 960px) {
  .niv-mw-hero__inner {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 2rem;
    min-height: 0;
    align-items: center;
    padding-bottom: 0.75rem;
  }
}
.niv-mw-hero__copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.95rem;
  max-width: 34rem;
  text-align: start;
}
@keyframes nivMwRise {
  from { opacity: 0; transform: translateY(0.85rem); }
  to { opacity: 1; transform: translateY(0); }
}
.niv-mw-hero__brand {
  margin: 0;
  line-height: 0;
}
.niv-mw-hero__brand .niv-logo__img,
.niv-mw-hero__brand .niv-logo__img--xl {
  height: clamp(2.75rem, 6vw, 3.75rem);
  max-width: min(16rem, 70vw);
}
.niv-mw-hero__eyebrow { display: none; }
.niv-mw-hero__title {
  font-family: var(--niv-font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 650; line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0; color: var(--niv-slate-700);
  text-transform: none; text-shadow: none;
}
.niv-mw-hero__title em,
.niv-mw-hero__title .niv-mw-accent {
  font-style: normal; color: var(--niv-brand);
  -webkit-text-stroke: 0; paint-order: normal;
}
.niv-mw-hero__sub {
  max-width: 32rem; margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--niv-slate-500); line-height: 1.65;
  text-align: start;
  unicode-bidi: plaintext;
}
.niv-mw-hero__cta {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.65rem;
  margin-top: 0.15rem;
}
.niv-mw-hero__feats {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem;
  list-style: none; margin: 0.35rem 0 0; padding: 0;
}
.niv-mw-hero__feats li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.86rem; font-weight: 600; color: var(--niv-slate-600);
}
.niv-mw-hero__feats li::before {
  content: ''; width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--niv-accent); flex-shrink: 0;
}
.niv-mw-hero__visual {
  position: relative;
  width: 100%;
  min-width: 0;
  padding-bottom: 2.25rem;
}
@media (min-width: 960px) {
  .niv-mw-hero__visual {
    align-self: stretch;
    padding-bottom: 0.5rem;
  }
}
@media (max-width: 959px) {
  .niv-mw-hero {
    padding-bottom: 0;
  }
  .niv-mw-hero__inner {
    padding-bottom: 0;
  }
  .niv-mw-hero__visual {
    padding-bottom: 0;
  }
}

/* Hero stage — mirrors user-dashboard tk-shell + bolt orders */
.tk-hero-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  transform: scale(1.02);
  transform-origin: center bottom;
}
@media (min-width: 960px) {
  .tk-hero-stage {
    transform: scale(1.05);
    transform-origin: inline-end center;
  }
}
.tk-hero-stage__glow {
  position: absolute;
  inset: -6% -5% -3% -5%;
  background:
    radial-gradient(ellipse 45% 50% at 15% 25%, rgba(16, 172, 132, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 55% at 90% 15%, rgba(15, 76, 129, 0.16), transparent 55%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
  animation: tkHeroGlow 8s ease-in-out infinite;
}
@keyframes tkHeroGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.tk-dash-frame {
  position: relative;
  z-index: 1;
  background: #f3f6fa;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  box-shadow: 0 22px 56px rgba(15, 76, 129, 0.16);
  overflow: hidden;
  animation: nivMwRise 0.8s var(--niv-spring) 0.08s both, tkHeroFloat 6.5s ease-in-out 1s infinite;
}
.tk-dash-frame--app { background: #f3f6fa; }
@keyframes tkHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.tk-dash-frame__chrome {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.tk-dash-frame__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.tk-dash-frame__dot--r { background: #f87171; }
.tk-dash-frame__dot--y { background: #fbbf24; }
.tk-dash-frame__dot--g { background: #34d399; }
.tk-dash-frame__title {
  margin-inline-start: 0.4rem;
  font-size: 0.72rem; font-weight: 700; color: #64748b;
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tk-dash-frame__live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 750; color: #047857;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.tk-dash-frame__live-dot {
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #10ac84;
  box-shadow: 0 0 0 0 rgba(16, 172, 132, 0.65);
  animation: tkLivePulse 1.6s ease-out infinite;
}
@keyframes tkLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 172, 132, 0.6); }
  70% { box-shadow: 0 0 0 0.4rem rgba(16, 172, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 172, 132, 0); }
}

.tk-hero-shell {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  min-height: 24rem;
  background: #f3f6fa;
}
@media (min-width: 640px) {
  .tk-hero-shell { grid-template-columns: 13rem 1fr; min-height: 27rem; }
}
@media (min-width: 1100px) {
  .tk-hero-shell { min-height: 29rem; }
}

.tk-hero-side {
  background: #f8fafb;
  border-inline-end: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tk-hero-side__brand {
  padding: 0.85rem 0.75rem 0.7rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  line-height: 0;
}
.tk-hero-side__brand .niv-logo__img,
.tk-hero-side__brand .niv-logo__img--sm {
  height: 1.55rem;
  max-width: 7rem;
}
.tk-hero-side__sec {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(15, 23, 42, 0.45);
  padding: 0.65rem 0.7rem 0.25rem;
}
.tk-hero-nav {
  display: flex; align-items: center; gap: 0.45rem;
  margin: 0 0.35rem;
  padding: 0.38rem 0.4rem;
  border-radius: 12px;
  font-size: 0.72rem; font-weight: 700; color: #0f172a;
  min-height: 2.35rem;
  transition: background 0.15s ease, box-shadow 0.2s ease;
}
.tk-hero-nav.is-active {
  background: rgba(16, 172, 132, 0.12);
  box-shadow: inset 3px 0 0 #10ac84;
}
html[dir="rtl"] .tk-hero-nav.is-active {
  box-shadow: inset -3px 0 0 #10ac84;
}
.tk-hero-nav.is-flash {
  background: rgba(245, 158, 11, 0.14);
  animation: tkNavFlash 0.65s ease;
}
@keyframes tkNavFlash {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.tk-hero-nav__ico {
  width: 1.7rem; height: 1.7rem; border-radius: 0.55rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tk-hero-nav__ico svg { width: 0.95rem; height: 0.95rem; }
.tk-hero-nav.is-active .tk-hero-nav__ico {
  box-shadow: 0 0 0 2px rgba(16, 172, 132, 0.25);
}
.tk-hero-nav__label {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-hero-nav__badge {
  min-width: 1.2rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 0.62rem; font-weight: 800; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}

.tk-hero-main {
  min-width: 0;
  display: flex; flex-direction: column;
  background: #f3f6fa;
}
.tk-hero-topbar {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.tk-hero-topbar__menu {
  width: 2rem; height: 2rem; border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #0f172a; background: #fff;
}
.tk-hero-topbar__title {
  font-size: 0.95rem; font-weight: 800; color: #0f172a; line-height: 1.2;
}
.tk-hero-topbar__sub {
  font-size: 0.68rem; color: #64748b; font-weight: 600;
}
.tk-hero-topbar__actions {
  margin-inline-start: auto;
  display: flex; gap: 0.35rem;
}
.tk-hero-btn {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.68rem; font-weight: 750;
  padding: 0.35rem 0.55rem; border-radius: 0.5rem;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.12); color: #334155;
}
.tk-hero-btn svg { width: 0.8rem; height: 0.8rem; }
.tk-hero-btn--primary {
  background: #0f4c81; border-color: transparent; color: #fff;
}

.tk-hero-filters {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.55rem 0.75rem 0.35rem;
}
.tk-hero-filters__chip {
  font-size: 0.65rem; font-weight: 700; color: #64748b;
  background: #fff; border: 1px solid #e2e8f0;
  padding: 0.28rem 0.5rem; border-radius: 0.4rem;
}
.tk-hero-filters__chip--go {
  background: rgba(16, 172, 132, 0.12); border-color: transparent; color: #047857;
}

.tk-hero-table-wrap {
  margin: 0.35rem 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.tk-hero-orders {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.58rem;
  text-align: center;
}
.tk-hero-orders th,
.tk-hero-orders td {
  border: 1px solid #dbe3ee;
  padding: 0.28rem 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-hero-orders thead th {
  background: #f1f5f9;
  font-weight: 800;
  color: #0b2f4d;
  position: sticky; top: 0; z-index: 1;
  font-size: 0.55rem;
}
.tk-hero-orders .tk-receipt-cell { font-weight: 800; color: #0f4c81; }
.tk-hero-orders .tk-type--cash {
  background-color: #92ff92 !important;
  font-weight: 800;
}
.tk-hero-orders .tk-type--credit {
  background-color: #e3e3e3 !important;
}
.tk-hero-orders tbody tr.rowofitem.tk-st--wait { background-color: #fff8e8; }
.tk-hero-orders tbody tr.rowofitem.tk-st--proc { background-color: #eef3ff; }
.tk-hero-orders tbody tr.rowofitem.tk-st--ok { background-color: #eefaf0; }
.tk-hero-orders tbody tr.rowofitem.tk-st--back { background-color: #ffecec; }
.tk-hero-orders tbody tr.rowofitem.tk-st--done { background-color: #e8faf6; }
.tk-hero-orders tbody tr.rowofitem.tk-st--hold { background-color: #ffe8f8; }
.tk-hero-orders tbody tr.is-pulse {
  outline: 2px solid rgba(16, 172, 132, 0.35);
  outline-offset: -2px;
  animation: tkHeroRowPulse 2.2s ease-in-out infinite;
}
.tk-hero-orders tbody tr.is-status-shift {
  animation: tkRowShift 0.65s ease;
}
@keyframes tkHeroRowPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 0 0 999px rgba(16, 172, 132, 0.06); }
}
@keyframes tkRowShift {
  0% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

.tk-hero-orders .tk-status-cell {
  font-weight: 800;
  color: #111;
}
.tk-hero-orders .tk-status-cell.tk-st--wait { background-color: #ffe3a6 !important; color: #111 !important; }
.tk-hero-orders .tk-status-cell.tk-st--proc { background-color: #2563eb !important; color: #fff !important; }
.tk-hero-orders .tk-status-cell.tk-st--ok { background-color: green !important; color: #fff !important; }
.tk-hero-orders .tk-status-cell.tk-st--back { background-color: red !important; color: #fff !important; }
.tk-hero-orders .tk-status-cell.tk-st--done { background-color: #00C5A5 !important; color: #fff !important; }
.tk-hero-orders .tk-status-cell.tk-st--hold { background-color: #ff00b7 !important; color: #fff !important; }
.tk-hero-orders .tk-status-cell.is-alive {
  animation: tkStatusBreath 3.2s ease-in-out infinite;
}
.tk-hero-orders .tk-status-cell.is-pop {
  animation: tkStatusPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tkStatusBreath {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.06); transform: scale(1.02); }
}
@keyframes tkStatusPop {
  0% { transform: scale(0.85); filter: brightness(1.2); }
  55% { transform: scale(1.1); }
  100% { transform: scale(1); filter: brightness(1); }
}

@media (max-width: 640px) {
  .tk-hero-side { display: none; }
  .tk-hero-shell { grid-template-columns: 1fr; min-height: 18rem; }
  .tk-hero-stage { transform: none; }
  .tk-hero-topbar__sub { display: none; }
}

.tk-toast-stack {
  position: absolute;
  inset-inline-start: 0.65rem;
  bottom: -0.35rem;
  width: min(100%, 18rem);
  display: grid; gap: 0.5rem;
  z-index: 3;
}
@media (max-width: 639px) {
  .tk-toast-stack {
    position: relative; inset: auto; width: 100%;
    margin-top: 0.55rem; bottom: auto;
  }
  .niv-mw-hero__visual { padding-bottom: 0; }
  .niv-mw-hero { padding-bottom: 0; }
  .tk-hero-stage { margin-bottom: 0; }
}
@media (min-width: 960px) {
  .tk-toast-stack { inset-inline-start: -0.45rem; bottom: 0.5rem; }
}
.tk-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  animation: tkToastIn 0.55s var(--niv-spring) forwards;
}
.tk-toast:nth-child(1) { animation-delay: 0.35s; }
.tk-toast:nth-child(2) { animation-delay: 1.05s; }
.tk-toast:nth-child(3) { animation-delay: 1.65s; }
.tk-toast--primary {
  border-color: rgba(16, 172, 132, 0.28);
  background: linear-gradient(135deg, #f0fdfa, #fff);
}
.tk-toast__ico {
  width: 2rem; height: 2rem; border-radius: 0.55rem;
  display: grid; place-items: center;
}
.tk-toast__ico svg { width: 1rem; height: 1rem; }
.tk-toast__ico--amber { background: #ffe3a6; color: #92400e; }
.tk-toast__ico--green { background: green; color: #fff; }
.tk-toast__ico--blue { background: #2563eb; color: #fff; }
.tk-toast__ico--rose { background: red; color: #fff; }
.tk-toast__ico--pink { background: #ff00b7; color: #fff; }
.tk-toast__title { font-size: 0.78rem; font-weight: 800; color: #0f172a; margin-bottom: 0.1rem; }
.tk-toast__msg { font-size: 0.72rem; color: #64748b; line-height: 1.35; }
.tk-toast__status {
  font-size: 0.66rem; font-weight: 800; color: #0f4c81;
  display: inline-flex; align-items: center; gap: 0.28rem; white-space: nowrap;
}
.tk-toast__status--ok { color: green; }
.tk-toast__status--done { color: #00C5A5; }
.tk-toast__status--flash { animation: tkStatusPop 0.5s ease; }
.tk-toast__spin {
  width: 0.7rem; height: 0.7rem;
  border: 2px solid rgba(15, 76, 129, 0.2);
  border-top-color: #0f4c81;
  border-radius: 50%;
  animation: tkSpin 0.7s linear infinite;
}
@keyframes tkToastIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tkSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .tk-dash-frame,
  .tk-hero-stage__glow,
  .tk-dash-frame__live-dot,
  .tk-hero-orders tbody tr.is-pulse,
  .tk-hero-orders .tk-status-cell.is-alive,
  .tk-toast {
    animation: none !important;
  }
  .tk-hero-stage { transform: none; }
}

.tk-about-cards {
  display: grid; gap: 0.75rem;
  padding: 1.35rem;
  height: 100%;
  box-sizing: border-box;
}
.tk-about-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--niv-slate-100);
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  box-shadow: var(--niv-shadow);
  animation: nivMwRise 0.7s var(--niv-spring) both;
}
.tk-about-card:nth-child(2) { animation-delay: 0.1s; }
.tk-about-card:nth-child(3) { animation-delay: 0.2s; }
.tk-about-card strong { display: block; font-size: 0.92rem; color: var(--niv-ink); }
.tk-about-card p { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--niv-slate-500); }
.tk-about-card__ico {
  width: 2.25rem; height: 2.25rem; border-radius: 0.55rem;
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.tk-about-card__ico--green { background: rgba(16, 185, 129, 0.16); color: #047857; }
.tk-about-card__ico--orange { background: rgba(249, 115, 22, 0.16); color: #c2410c; }
.tk-about-card__ico--blue { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }

.niv-mw-marquee {
  background: #0f4c81; color: #fff;
  border-block: 0;
  overflow: hidden; white-space: nowrap;
  font-family: var(--niv-font);
  font-weight: 700; font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  text-transform: none; letter-spacing: 0;
  padding: 1.45rem 0;
  line-height: 1.35;
}
.niv-mw-marquee__track {
  display: inline-flex; gap: 2rem; align-items: center;
  animation: nivMwMarquee 34s linear infinite;
  padding-inline: 1rem;
}
[dir="rtl"] .niv-mw-marquee__track { animation-name: nivMwMarqueeRtl; }
@keyframes nivMwMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes nivMwMarqueeRtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.niv-mw-marquee__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: 0; flex-shrink: 0;
}

.niv-mw-band { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.niv-mw-band--yellow {
  background: linear-gradient(180deg, #fff 0%, #f3f6fa 100%);
  color: var(--niv-ink);
}
.niv-mw-band--purple {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(22, 102, 168, 0.22), transparent 55%),
    linear-gradient(160deg, #0f4c81 0%, #0c3d68 55%, #0a3154 100%);
  color: #fff;
}
.niv-mw-band--cream { background: var(--niv-cream); color: var(--niv-ink); }
.niv-mw-band--white { background: #fff; color: var(--niv-ink); }

.niv-mw-about {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 960px) {
  .niv-mw-about { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}
.niv-mw-about__box {
  background: transparent; color: inherit;
  border: 0; box-shadow: none;
  border-radius: 0; padding: 0;
  transform: none;
}
.niv-mw-about__box h2 {
  font-family: var(--niv-font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  text-transform: none; margin: 0 0 1rem;
  transform: none; display: block;
  letter-spacing: -0.03em; color: var(--niv-ink);
}
.niv-mw-about__box p {
  margin: 0 0 0.85rem; font-size: 1.02rem; line-height: 1.7;
  color: var(--niv-slate-600);
}
.niv-mw-about__managed {
  margin: 0 0 1rem; font-size: 1.05rem;
  color: var(--niv-ink) !important;
}
.niv-mw-about__art {
  display: block;
  border-radius: 1rem;
  min-height: 14rem;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(22, 102, 168, 0.1), transparent 55%),
    linear-gradient(160deg, #fff 0%, #f3f6fa 100%);
  border: 1px solid var(--niv-slate-200);
  box-shadow: var(--niv-shadow);
  position: relative;
  overflow: hidden;
}
@media (min-width: 960px) { .niv-mw-about__art { min-height: 16rem; } }
.niv-mw-about__art img { display: none; }

.niv-mw-kicker {
  display: inline-block;
  color: var(--niv-brand);
  font-weight: 750; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.niv-mw-howto__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.niv-mw-howto__head .niv-mw-kicker { color: #9ec5e8; }
.niv-mw-howto__head h2 {
  font-family: var(--niv-font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  text-transform: none; margin: 0; color: #fff;
  letter-spacing: -0.03em;
}

/* How-it-works: white cards on brand band (readable contrast) */
.tk-howto {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 768px) {
  .tk-howto {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .tk-howto::before {
    content: '';
    position: absolute;
    top: 2.15rem;
    inset-inline: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    pointer-events: none;
  }
}
.tk-howto__card {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--niv-ink);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 16px 40px rgba(8, 30, 55, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  transition: transform 0.3s var(--niv-ease), box-shadow 0.3s;
}
.tk-howto__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(8, 30, 55, 0.28);
}
.tk-howto__num {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.65rem;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  background: var(--niv-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.28);
}
.tk-howto__icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.65rem;
  display: grid; place-items: center;
  background: var(--niv-brand-light);
  color: var(--niv-brand);
}
.tk-howto__icon svg { width: 1.15rem; height: 1.15rem; }
.tk-howto__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tk-howto__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.tk-howto__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  font-weight: 500;
}

.tk-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 768px) {
  .tk-stat-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.tk-stat {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, background 0.25s;
}
.tk-stat:hover { transform: translateY(-2px); background: rgba(255,255,255,0.14); }
.tk-stat__val {
  display: block;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.tk-stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 550;
  color: #c7dff3;
  line-height: 1.35;
}

/* Keep old selectors safe if used elsewhere */
.niv-steps {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  background: transparent; border: 0; box-shadow: none; padding: 0; color: inherit;
}
@media (min-width: 768px) { .niv-steps { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; } }
.niv-steps__item {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 0.9rem;
  padding: 1.35rem 1.25rem;
  display: flex; gap: 0.9rem; align-items: flex-start;
  box-shadow: 0 14px 36px rgba(8, 30, 55, 0.2);
  transition: transform 0.25s var(--niv-ease);
}
.niv-steps__item:hover { transform: translateY(-3px); }
.niv-steps__num {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 0.55rem;
  background: var(--niv-brand); color: #fff; border: 0; box-shadow: none;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem;
}
.niv-steps__title {
  font-size: 1.05rem; font-weight: 750; margin: 0 0 0.35rem; color: #0f172a;
  text-transform: none;
}
.niv-steps__text { margin: 0; color: #475569; font-size: 0.92rem; line-height: 1.55; font-weight: 500; }

.niv-mw-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem); text-align: center;
}
@media (min-width: 768px) { .niv-mw-stats { grid-template-columns: repeat(4, 1fr); } }
.niv-mw-stats strong,
.niv-mw-stats .niv-mw-stat-val {
  display: block; font-family: var(--niv-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem); color: #fff; line-height: 1.1;
  font-weight: 800;
}
.niv-mw-stats span { font-size: 0.85rem; color: #c7dff3; font-weight: 550; }

.tk-feature-card {
  background: #fff;
  border: 1px solid var(--niv-slate-200);
  border-radius: 0.9rem;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--niv-shadow);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tk-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--niv-shadow-lg);
  border-color: var(--niv-brand-soft);
}
.tk-feature-card__icon {
  width: 2.35rem; height: 2.35rem; border-radius: 0.55rem;
  display: grid; place-items: center;
  background: var(--niv-brand-light); color: var(--niv-brand);
  margin-bottom: 0.9rem; font-weight: 800; font-size: 0.85rem;
}
.tk-feature-card h3 {
  margin: 0 0 0.45rem; font-size: 1.05rem; font-weight: 750; color: var(--niv-ink);
}
.tk-feature-card p {
  margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--niv-slate-500);
}

.tk-page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 55% 60% at 90% 0%, rgba(22, 102, 168, 0.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--niv-cream) 100%);
  text-align: center;
}
.tk-page-hero__inner {
  width: min(var(--niv-page-max), calc(100% - (2 * var(--niv-page-side))));
  max-width: 42rem;
  margin: 0 auto;
}
.tk-page-hero__kicker {
  display: inline-block;
  color: var(--niv-brand);
  font-weight: 750; font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.tk-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 0.75rem; color: var(--niv-ink);
}
.tk-page-hero p {
  margin: 0 auto; color: var(--niv-slate-500); line-height: 1.65;
  font-size: 1.02rem;
}

.tk-faq-item {
  background: #fff;
  border: 1px solid var(--niv-slate-200);
  border-radius: 0.75rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.65rem;
  box-shadow: none;
}
.tk-faq-item h3 {
  margin: 0 0 0.35rem; font-size: 1rem; font-weight: 750; color: var(--niv-ink);
}
.tk-faq-item p { margin: 0; color: var(--niv-slate-500); line-height: 1.6; font-size: 0.95rem; }

.tk-cta-band {
  text-align: center;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(15, 76, 129, 0.08), transparent 60%),
    #fff;
  border-top: 1px solid var(--niv-slate-100);
}
.tk-cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--niv-ink);
}
.tk-cta-band p { margin: 0 0 1.25rem; color: var(--niv-slate-500); }

.tk-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}
.tk-section-head h2 {
  margin: 0.35rem 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--niv-ink);
}
.tk-section-head p {
  margin: 0;
  color: var(--niv-slate-500);
}

.tk-site .niv-mw-band--purple {
  position: relative;
  overflow: hidden;
}
.tk-site .niv-mw-band--purple::before,
.tk-site .niv-mw-band--purple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.45;
}
.tk-site .niv-mw-band--purple::before {
  width: 18rem; height: 18rem;
  background: #10ac84;
  top: -6rem; inset-inline-start: -4rem;
  animation: tkBlob 12s ease-in-out infinite;
}
.tk-site .niv-mw-band--purple::after {
  width: 22rem; height: 22rem;
  background: #38bdf8;
  bottom: -8rem; inset-inline-end: -6rem;
  animation: tkBlob 14s ease-in-out infinite reverse;
}
@keyframes tkBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.08); }
}
.tk-site .niv-mw-band--purple > .container-custom { position: relative; z-index: 1; }

.niv-mw-tip {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--niv-brand-light); border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 0.75rem; padding: 0.9rem 1rem; margin-top: 1rem;
  font-size: 0.9rem; font-weight: 550; color: var(--niv-slate-700);
}
.niv-mw-tip strong { color: var(--niv-brand-dark); }
.niv-mw-tip span { display: none; }

.niv-backtop {
  position: fixed; bottom: 1.15rem; inset-inline-end: 1.15rem; z-index: 90;
  width: 2.75rem; height: 2.75rem; border-radius: 0.65rem;
  background: var(--niv-brand); color: #fff;
  border: 0; box-shadow: var(--niv-shadow);
  display: grid; place-items: center; font-weight: 800; text-decoration: none;
  transition: transform 0.2s var(--niv-ease), background 0.2s;
}
.niv-backtop:hover { transform: translateY(-2px); background: var(--niv-brand-dark); }
.niv-input:focus, .niv-select:focus, .niv-textarea:focus {
  outline: none; border-color: var(--niv-brand);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}
.niv-stat-card--mint { background: linear-gradient(165deg, #fff, #e6fffa); }
.niv-stat-card--sky { background: linear-gradient(165deg, #fff, #e8f4ff); }
.niv-stat-card--wa { background: linear-gradient(165deg, #fff, #f0fdf4); }
a.niv-stat-card:hover { transform: translateY(-2px); box-shadow: var(--niv-shadow-lg); }

@media (max-width: 767px) {
  .tk-howto::before { display: none; }
  .tk-howto__card { padding: 1.15rem 1.05rem; }
  .tk-stat { padding: 0.95rem 0.55rem; }
  .niv-mw-hero__inner { gap: 1.25rem; padding-bottom: 0; }
  .niv-mw-hero { min-height: auto; padding: 1.25rem 0 0; }
  .tk-feature-card { padding: 1.15rem 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .niv-mw-marquee__track, .niv-mw-hero__inner, .niv-mw-hero__visual, .niv-card, .niv-steps__item,
  .tk-toast, .tk-dash-table__row.is-pulse, .tk-toast__spin, .tk-about-card,
  .tk-site .niv-mw-band--purple::before, .tk-site .niv-mw-band--purple::after {
    animation: none !important; transition: none !important;
  }
  .tk-toast { opacity: 1; transform: none; }
}

/* ── TakTek sidebar app shell ── */
:root {
  --tk-sidebar-w: 280px;
  --tk-brand: #0f4c81;
  --tk-brand-2: #1666a8;
  --tk-surface: #f3f6fa;
}
.tk-app-body { background: var(--tk-surface); }
.tk-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.tk-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--tk-sidebar-w);
  background: #f8fafb;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transform: translateX(0);
  transition: transform .2s ease, width .2s ease;
  border-inline-end: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.02);
}
/* LTR: sidebar left · RTL/Arabic: sidebar right */
.tk-app-body.tk-ltr .tk-sidebar,
html[dir="ltr"] .tk-sidebar {
  left: 0;
  right: auto;
}
.tk-app-body.tk-rtl .tk-sidebar,
html[dir="rtl"] .tk-sidebar {
  right: 0;
  left: auto;
}
.tk-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.1rem 1rem .9rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.tk-sidebar__brand .niv-logo__text { color: #0f172a; }
.tk-sidebar__brand .niv-logo__accent { color: #0f4c81; }
.tk-sidebar__brand .niv-logo__img { height: 2.15rem; max-width: 9.75rem; }
.tk-sidebar__lang {
  padding: 0.35rem 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}
.tk-sidebar__lang .tk-lang-switch {
  width: 100%;
  justify-content: stretch;
}
.tk-sidebar__lang .tk-lang-switch a {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.35rem 0.4rem;
}
.tk-sidebar__collapse {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
  border-radius: 10px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}
.tk-sidebar__nav {
  flex: 1;
  overflow: auto;
  padding: .85rem .7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.tk-sidebar__section { display: flex; flex-direction: column; gap: 2px; }
/* Hide empty sections / orphan dividers when ACL hides all links */
.tk-sidebar__section:not(:has(.tk-sidebar__link)) { display: none; }
.tk-sidebar__divider:has(+ .tk-sidebar__section:not(:has(.tk-sidebar__link))),
.tk-sidebar__section:not(:has(.tk-sidebar__link)) + .tk-sidebar__divider { display: none; }
.tk-sidebar__actor {
  margin: 0 .7rem .35rem;
  padding: .45rem .65rem;
  font-size: .78rem;
  color: #334155;
  background: #eef6fc;
  border: 1px solid #d0e4f5;
  border-radius: 10px;
  line-height: 1.35;
}
.tk-sidebar__actor strong { color: #0f4c81; font-weight: 800; }
.tk-sidebar__actor-exit {
  display: block;
  margin-top: .2rem;
  color: #0f4c81;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tk-sidebar__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  width: 100%;
  margin: .2rem 0 .15rem;
  padding: .4rem .45rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: start;
}
.tk-sidebar__section-head:hover {
  background: rgba(15, 76, 129, 0.06);
}
.tk-sidebar__section-title {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
  margin: 0;
}
.tk-sidebar__section-chev {
  width: 16px;
  height: 16px;
  color: rgba(15, 23, 42, 0.35);
  display: inline-flex;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.tk-sidebar__section-chev svg { width: 14px; height: 14px; }
.tk-sidebar__section.is-collapsed .tk-sidebar__section-chev {
  transform: rotate(-90deg);
}
html[dir="rtl"] .tk-sidebar__section.is-collapsed .tk-sidebar__section-chev {
  transform: rotate(90deg);
}
.tk-sidebar__section-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tk-sidebar__section.is-collapsed .tk-sidebar__section-body {
  display: none;
}
.tk-sidebar__divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: .75rem .35rem;
}
.tk-sidebar__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #0f172a;
  text-decoration: none;
  padding: .5rem .55rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: .9rem;
  min-height: 48px;
  transition: background .15s ease;
}
.tk-sidebar__link:hover { background: rgba(16, 172, 132, 0.06); color: #0f172a; }
.tk-sidebar__link.is-active {
  background: rgba(16, 172, 132, 0.12);
  color: #0f172a;
  box-shadow: inset 3px 0 0 #10ac84;
}
html[dir="rtl"] .tk-sidebar__link.is-active {
  box-shadow: inset -3px 0 0 #10ac84;
}
.tk-sidebar__link.is-active .tk-sidebar__chev { color: #10ac84; opacity: 1; }
.tk-sidebar__icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tk-sidebar__icon svg { width: 18px; height: 18px; stroke-linecap: round; stroke-linejoin: round; }
/* Colorful icon tones (restored) */
.tk-sidebar__icon--brand { background: rgba(15, 76, 129, 0.12); color: #0f4c81; }
.tk-sidebar__icon--teal { background: rgba(81, 200, 194, 0.2); color: #0f766e; }
.tk-sidebar__icon--green { background: rgba(16, 185, 129, 0.18); color: #047857; }
.tk-sidebar__icon--emerald { background: rgba(52, 211, 153, 0.2); color: #059669; }
.tk-sidebar__icon--blue { background: rgba(59, 130, 246, 0.16); color: #1d4ed8; }
.tk-sidebar__icon--indigo { background: rgba(99, 102, 241, 0.16); color: #4338ca; }
.tk-sidebar__icon--violet { background: rgba(139, 92, 246, 0.16); color: #6d28d9; }
.tk-sidebar__icon--orange { background: rgba(249, 115, 22, 0.18); color: #c2410c; }
.tk-sidebar__icon--amber { background: rgba(245, 158, 11, 0.2); color: #b45309; }
.tk-sidebar__icon--cyan { background: rgba(34, 211, 238, 0.18); color: #0e7490; }
.tk-sidebar__icon--pink { background: rgba(236, 72, 153, 0.16); color: #be185d; }
.tk-sidebar__icon--rose { background: rgba(244, 63, 94, 0.16); color: #e11d48; }
.tk-sidebar__icon--slate { background: rgba(100, 116, 139, 0.16); color: #334155; }
.tk-sidebar__link.is-active .tk-sidebar__icon {
  box-shadow: 0 0 0 2px rgba(16, 172, 132, 0.25);
}
.tk-sidebar__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}
.tk-sidebar__badge {
  min-width: 1.45rem;
  height: 1.35rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: #64748b;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.tk-sidebar__badge[data-empty="1"] {
  background: #cbd5e1;
  color: #64748b;
  opacity: 1;
  box-shadow: none;
}
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--brand { background: #0f4c81; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--teal { background: #0f766e; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--green { background: #047857; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--emerald { background: #059669; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--blue { background: #1d4ed8; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--indigo { background: #4338ca; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--violet { background: #6d28d9; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--orange { background: #c2410c; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--amber { background: #b45309; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--cyan { background: #0e7490; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--pink { background: #be185d; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--rose { background: #e11d48; }
.tk-sidebar__badge:not([data-empty="1"]).tk-sidebar__badge--slate { background: #475569; }
.tk-sidebar__badge:empty { display: none; }
.tk-sidebar__chev {
  width: 16px;
  height: 16px;
  color: rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
  display: inline-flex;
}
.tk-sidebar__chev svg { width: 16px; height: 16px; }
html[dir="rtl"] .tk-sidebar__chev { transform: scaleX(-1); }
.tk-sidebar__foot {
  padding: .75rem .7rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}
.tk-sidebar__logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, #fff5f5 0%, #ffe4e6 100%);
  color: #b91c1c;
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  padding: .55rem .7rem;
  border-radius: 14px;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.06);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.tk-sidebar__logout:hover {
  background: linear-gradient(180deg, #fecaca 0%, #fda4af 100%);
  border-color: rgba(185, 28, 28, 0.45);
  color: #991b1b;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.12);
}
.tk-sidebar__logout:active {
  transform: translateY(1px);
}
.tk-main {
  flex: 1;
  min-width: 0;
  padding: 1rem 0.75rem 2.25rem;
  transition: margin .2s ease;
}
.tk-app-body.tk-ltr .tk-main,
html[dir="ltr"] .tk-main {
  margin-left: var(--tk-sidebar-w);
  margin-right: 0;
}
.tk-app-body.tk-rtl .tk-main,
html[dir="rtl"] .tk-main {
  margin-right: var(--tk-sidebar-w);
  margin-left: 0;
}

/* Desktop icon-rail collapse */
@media (min-width: 981px) {
  .tk-app-body.tk-sidebar-collapsed {
    --tk-sidebar-w: 72px;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__brand {
    justify-content: center;
    padding: .85rem .45rem;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__brand .niv-logo__text {
    display: none;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__brand .niv-logo {
    display: none;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__collapse {
    width: 2.25rem;
    height: 2.25rem;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__nav {
    padding: .55rem .4rem 1rem;
    align-items: stretch;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__section-title,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__section-head,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__section-chev,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__label,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__chev,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__divider,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__actor,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__lang {
    display: none !important;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__section.is-collapsed .tk-sidebar__section-body {
    display: flex !important;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__link,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__logout {
    justify-content: center;
    padding: .45rem;
    gap: 0;
    position: relative;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: .62rem;
    padding: 0 .25rem;
    border-width: 1px;
    z-index: 1;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__foot {
    padding: .55rem .4rem .85rem;
  }
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__logout {
    min-height: 44px;
    padding: .4rem;
  }
}
.tk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.tk-topbar--compact {
  margin-bottom: 0.35rem;
  gap: 0.65rem;
}
.tk-topbar--compact .niv-app-header__subtitle {
  font-size: 0.8rem;
  line-height: 1.25;
  opacity: 0.88;
}
.tk-main > form.tk-bolt-list-card {
  margin-top: 0;
  margin-bottom: 0.65rem;
}
.tk-topbar__menu {
  display: none;
  background: #fff;
  border: 1px solid #d6dee8;
  border-radius: 10px;
  padding: .45rem .7rem;
  font-weight: 700;
  cursor: pointer;
}
.tk-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 35;
}
.tk-print-only { display: none; }

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .tk-sidebar, .tk-topbar, .tk-no-print, .taktek-preloader, .tk-lang-switch,
  .tk-sidebar-backdrop, .niv-stat-grid, #tkPager, #tkSearchForm,
  .tk-ai, .tk-ai-fab, .tk-ai-panel {
    display: none !important;
    visibility: hidden !important;
  }

  .tk-shell, .tk-main {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .tk-print-only[hidden] { display: none !important; }
  .tk-print-only:not([hidden]) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tk-bolt-print {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tk-inv {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tk-inv__brandbar {
    display: none !important;
  }

  .tk-inv__head {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 0 0 !important;
    padding: 8mm 6mm 7mm !important;
    box-sizing: border-box !important;
    page-break-after: avoid;
    break-after: avoid;
    grid-template-columns: 28mm 1fr 48mm !important;
    align-items: center !important;
  }
  .tk-inv__logo-frame {
    width: 26mm !important;
    height: 26mm !important;
    border-radius: 4mm !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .tk-inv__body {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 0 10mm 10mm !important;
    margin: 0 !important;
  }

  .tk-inv__sheet-footer {
    margin-top: 5mm;
    padding-top: 10mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .tk-bolt-print,
  .tk-inv,
  .tk-inv__table th,
  .tk-inv__table td {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .tk-inv__table {
    page-break-inside: auto;
    break-inside: auto;
    width: 100% !important;
    margin-bottom: 4mm !important;
  }
  .tk-inv__table thead {
    display: table-header-group !important;
  }
  .tk-inv__table tfoot {
    display: table-footer-group !important;
  }
  .tk-inv__table tbody tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .tk-inv__table td,
  .tk-inv__table th {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .tk-inv__totals,
  .tk-inv__ack,
  .tk-inv__signs,
  .tk-inv__footer-msg,
  .tk-inv__footer-logo {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* Professional modern A4 invoice */
.tk-bolt-print {
  direction: rtl;
  color: #0f172a;
  font-family: "Neo Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
.tk-inv {
  width: 100%;
  margin: 0 auto;
  color: #0f172a;
  box-sizing: border-box;
}
.tk-inv__brandbar {
  display: none !important;
}
.tk-inv__head {
  display: grid;
  grid-template-columns: 118px 1fr 210px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 2px 12px;
  border-bottom: 1.5px solid #cbd5e1;
}
.tk-inv__logo { text-align: center; }
.tk-inv__logo-frame {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border: 1.5px solid #d6dee8;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f4f7fb);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}
.tk-inv__logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.tk-inv__logo-fallback {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f4c81, #1666a8);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .4px;
}
.tk-inv__company { text-align: right; padding-top: 2px; }
.tk-inv__name {
  font-size: 22px;
  font-weight: 800;
  color: #0b2f4d;
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.tk-inv__phone {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  direction: ltr;
  unicode-bidi: embed;
  text-align: right;
}
.tk-inv__addr {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.45;
}
.tk-inv__doc { text-align: right; }
.tk-inv__badge {
  text-align: center;
  padding: 8px 12px;
  background: #0f4c81;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.tk-inv__meta {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #f8fafc;
}
.tk-inv__meta > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.tk-inv__meta > div:last-child { border-bottom: 0; }
.tk-inv__meta span { color: #64748b; font-weight: 600; }
.tk-inv__meta b {
  color: #0b2f4d;
  font-weight: 800;
  text-align: left;
  direction: ltr;
  unicode-bidi: embed;
}

.tk-inv__table,
.tk-inv__totals {
  width: 100%;
  border-collapse: collapse;
  direction: rtl;
  text-align: center;
  margin-bottom: 10px;
  table-layout: auto;
}
.tk-inv__table th,
.tk-inv__table td,
.tk-inv__totals th,
.tk-inv__totals td {
  border: 1px solid #cbd5e1;
  padding: 6px 5px;
  vertical-align: middle;
}
.tk-inv__table thead th {
  background: #0f4c81 !important;
  color: #fff !important;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .01em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.tk-inv__table tbody td {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
}
.tk-inv__table tbody tr:nth-child(even) td { background: #f8fafc; }
.tk-inv__totals thead th {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 10.5px;
  font-weight: 800;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.tk-inv__totals td {
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 6px;
}
.tk-inv__note {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #9f1239;
  text-align: right !important;
  padding-inline: 8px !important;
}
.tk-inv__total-label { background: #f1f5f9; }

.tk-inv__ack,
.tk-inv__signs { display: none !important; }
.tk-inv__ack-off {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0 10px;
  background: #fff;
}
.tk-inv__ack > div {
  padding: 10px 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  border-left: 1px solid #cbd5e1;
  background: #f8fafc;
}
.tk-inv__ack > div:last-child { border-left: 0; }
.tk-inv__phone:empty,
.tk-inv__addr:empty { display: none; }
.tk-inv__powered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #94a3b8;
}
.tk-inv__footer-msg {
  text-align: center;
  font-size: 11.5px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
  font-weight: 700;
}
.tk-inv__footer-logo { text-align: center; margin: 0; }
.tk-inv__footer-logo[hidden] { display: none !important; }
.tk-inv__footer-logo img {
  max-height: 40px;
  max-width: 150px;
  object-fit: contain;
}
.tk-inv__signs {
  display: none !important;
}
.tk-inv__sign { text-align: center; }
.tk-inv__sign-line {
  height: 1px;
  background: #334155;
  margin: 0 auto 10px;
  width: 68%;
}
.tk-inv__sign-label {
  font-size: 13px;
  font-weight: 800;
  color: #0b2f4d;
}

.tk-bolt-print .cell-price { background: #ffc1f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .cell-price-client { background: #f012be !important; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .cell-ship { background: #fd7e14 !important; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .cell-white { background: #fff !important; }
.tk-bolt-print .st-wait { background: #ffe3a6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .st-hold { background: #ccc1ff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .st-ok { background: #c1ffc9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .st-back { background: #ff4d4d !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .st-back-client { background: #ff0051 !important; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .st-back-co { background: #ac8692 !important; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .st-done { background: #c1fff2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-bolt-print .qr {
  width: 36px;
  height: 36px;
  display: block;
  margin: 3px auto 0;
}

/* TakTek searchable combo — body-portaled panel, fully opaque */
.tk-order-filters .niv-field,
.niv-panel .niv-field { overflow: visible; position: relative; z-index: auto; }
.tk-order-filters, .niv-panel { overflow: visible; }
.tk-combo-host {
  position: relative;
  width: 100%;
  min-width: 0;
}
select.tk-combo-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.tk-combo {
  position: relative;
  width: 100%;
  outline: none;
  z-index: 1;
}
.tk-combo.is-open { z-index: 5; }
.tk-combo__btn {
  width: 100%;
  text-align: start;
  min-height: 2.5rem;
  padding: .45rem .7rem;
  border: 1.5px solid #c9d4e2;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: #0b2f4d;
  box-shadow: none;
}
.tk-combo.is-open .tk-combo__btn,
.tk-combo.is-focused .tk-combo__btn,
.tk-combo:focus .tk-combo__btn {
  border-color: #0f4c81;
  box-shadow: 0 0 0 3px rgba(15,76,129,.18);
}
.tk-combo.is-focused .tk-combo__btn,
.tk-combo:focus .tk-combo__btn {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.22);
}
.tk-combo__panel {
  box-sizing: border-box;
  background: #ffffff !important;
  opacity: 1 !important;
  border: 1.5px solid #94a3b8;
  border-radius: 12px;
  padding: .55rem;
  box-shadow: 0 16px 40px rgba(15,40,70,.28);
  max-height: 18rem;
  display: none;
  flex-direction: column;
  gap: .45rem;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tk-combo__panel[hidden] { display: none !important; }
.tk-combo__panel:not([hidden]) { display: flex !important; }
.tk-combo__search {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.35rem;
  padding: .45rem .6rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  background: #fff !important;
  opacity: 1 !important;
  color: #0b2f4d;
  margin: 0;
}
.tk-combo__search:focus {
  outline: none;
  border-color: #0f4c81;
  box-shadow: 0 0 0 3px rgba(15,76,129,.15);
}
.tk-combo__list {
  overflow: auto;
  max-height: 13rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: #fff;
}
.tk-combo__option {
  border: 0;
  background: #fff;
  text-align: start;
  padding: .55rem .65rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  color: #0b2f4d;
}
.tk-combo__option:hover,
.tk-combo__option.is-active { background: #e8f2fb; }
.tk-combo__option.is-hilite {
  background: #dbeafe !important;
  box-shadow: inset 0 0 0 2px #0f4c81;
}
.tk-combo__option-main { font-weight: 700; font-size: .92rem; }
.tk-combo__option-sub { font-size: .78rem; color: #64748b; font-weight: 600; direction: ltr; unicode-bidi: embed; text-align: start; }
.tk-combo__empty { padding: .65rem; opacity: 1; color: #64748b; font-size: .9rem; background: #f8fafc; border-radius: 8px; }


.tk-zones-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 900px) { .tk-zones-split { grid-template-columns: 1fr; } }
.tk-zone-row.is-active { outline: 2px solid var(--tk-brand, #0f4c81); background: #eef6fc; }
.tk-app-body.tk-rtl, [dir="rtl"] .tk-shell { direction: rtl; }
.tk-app-body.tk-ltr, [dir="ltr"] .tk-shell { direction: ltr; }
.tk-lang-switch { display: inline-flex; gap: .35rem; }
.tk-lang-switch a {
  padding: .25rem .55rem; border-radius: 8px; border: 1px solid #c9d4e2;
  text-decoration: none; color: inherit; font-size: .85rem; font-weight: 600;
}
.tk-lang-switch a.is-active { background: #0f4c81; color: #fff; border-color: #0f4c81; }


@media (max-width: 980px) {
  .tk-app-body.tk-ltr .tk-sidebar,
  html[dir="ltr"] .tk-sidebar { transform: translateX(-110%); }
  .tk-app-body.tk-rtl .tk-sidebar,
  html[dir="rtl"] .tk-sidebar { transform: translateX(110%); }
  .tk-app-body.tk-sidebar-open .tk-sidebar { transform: translateX(0); }
  .tk-main { margin: 0 !important; }
  .tk-topbar__menu { display: inline-flex; }
}
/* Batch orders — same card chrome as add-order */
.tk-batch-card {
  margin-bottom: 1.25rem;
}
.tk-batch-card .tk-batch-grid-wrap {
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.tk-batch-head__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: stretch;
}
.tk-batch-head__lbl {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tk-batch-head__shortcuts {
  justify-content: center;
  text-align: center;
}
.tk-batch-kbd-hint {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.35;
}
.tk-batch-count-input {
  max-width: 5rem;
  min-height: 34px !important;
  padding: 0.35rem 0.5rem !important;
  font-size: 0.88rem !important;
}
.tk-batch-head__date .tk-add-input {
  max-width: 11rem;
  min-height: 34px !important;
}
.tk-batch-head {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tk-batch-head__item--full {
  grid-column: 1 / -1;
}
.tk-batch-head__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.tk-batch-head__actions .tk-bolt-btn {
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
}
.tk-batch-head__actions kbd {
  font-size: 0.62rem;
  opacity: 0.72;
  margin-inline-start: 0.2rem;
  font-weight: 700;
  font-family: inherit;
}
.tk-batch-global-row td {
  background: #0f4c81 !important;
  border-top: 2px solid #0c3d68 !important;
  border-bottom: 2px solid #0c3d68 !important;
  border-color: #1565a8 !important;
  padding: 4px 2px !important;
  color: #e8f3fc;
}
.tk-batch-global-badge {
  display: inline-block;
  min-width: 50px;
  padding: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.tk-batch-global-hint {
  font-size: 10px;
  font-weight: 700;
  color: #dbeafe;
  opacity: 0.95;
}
.tk-batch-global-row .tk-combo__btn {
  border-color: #93c5fd !important;
  background: #fff !important;
  color: #0b2f4d !important;
}

/* Bolt batch parity: compact horizontal grid (paddings/margins/sizes) */
.tk-batch-grid,
.tk-batch-grid-wrap {
  padding: 0 !important;
  overflow: hidden;
}
.tk-batch-scroll {
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}
.tk-batch-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  background: #fff;
  margin: 0;
}
.tk-batch-table thead th {
  background: #0f4c81;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 3px;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  border: none;
  height: 28px;
  line-height: 1.1;
  vertical-align: middle;
}
.tk-batch-table tbody td {
  padding: 2px;
  margin: 0;
  border-top: 1px solid #e5e7eb;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  background: #fff;
  overflow: hidden;
  max-width: 125px;
}
.tk-batch-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.tk-col-idx {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
}
.tk-col-std {
  width: 97px;
  min-width: 97px;
  max-width: 97px;
}
.tk-col-phone {
  width: 125px;
  min-width: 125px;
  max-width: 125px;
}
.tk-col-del {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  text-align: center;
}
.tk-batch-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #be123c;
  cursor: pointer;
  box-shadow: none;
}
.tk-batch-del:hover {
  background: #be123c;
  border-color: #be123c;
  color: #fff;
}
.tk-batch-del:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(190, 18, 60, 0.25);
}
.tk-batch-rownum {
  display: inline-block;
  width: 50px;
  box-sizing: border-box;
  background: #0b2f4d;
  color: #fff;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin: 0 2px 0 0;
}
.tk-batch-input {
  box-sizing: border-box;
  display: inline-block;
  width: 97px !important;
  max-width: 97px !important;
  min-width: 97px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 2px !important;
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 700;
  text-align: center;
  border: 1px solid #c9d4e2;
  border-radius: 5px;
  background: #fff;
  color: #0b2f4d;
  font-family: inherit;
}
.tk-batch-input--phone {
  width: 110px !important;
  max-width: 110px !important;
  min-width: 110px !important;
}
.tk-batch-input--driver {
  background: #f0f2ff !important;
  color: #08114a !important;
  border-color: #eaeaea !important;
}
.tk-batch-input--ship {
  background: #e2fff5 !important;
  color: #04591e !important;
  border-color: #ececec !important;
}
.tk-batch-input:focus {
  outline: none;
  border-color: #0f4c81;
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.18);
}
.tk-batch-combo {
  width: 97px;
  max-width: 97px;
  min-width: 0;
  display: block;
  margin: 0 auto;
  vertical-align: middle;
  overflow: hidden;
}
.tk-batch-card .tk-batch-combo .tk-combo,
.tk-batch-table .tk-combo {
  width: 100%;
  max-width: 97px;
  min-width: 0;
  z-index: 1;
}
.tk-batch-card .tk-batch-combo .tk-combo__btn,
.tk-batch-table .tk-combo__btn {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 97px !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 18px 0 4px !important;
  font-size: 10px !important;
  font-weight: 700;
  border-radius: 5px;
  line-height: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  position: relative;
}
.tk-batch-card .tk-batch-combo .tk-combo__btn::after,
.tk-batch-table .tk-combo__btn::after {
  content: '';
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  margin-top: -3px;
  border: 4px solid transparent;
  border-top-color: #64748b;
  pointer-events: none;
}
.tk-batch-card .tk-combo.is-focused .tk-combo__btn,
.tk-batch-card .tk-combo:focus .tk-combo__btn,
.tk-batch-card .tk-combo.is-open .tk-combo__btn,
.tk-batch-table .tk-combo.is-focused .tk-combo__btn,
.tk-batch-table .tk-combo:focus .tk-combo__btn,
.tk-batch-table .tk-combo.is-open .tk-combo__btn {
  border-color: #0f4c81;
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.18);
}
.tk-combo__option--clear {
  color: #be123c !important;
  font-weight: 800 !important;
  border-bottom: 1px dashed #fecaca;
  margin-bottom: 0.25rem;
}
.tk-order-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

/* ——— Add-order page (Bolt layout parity, TakTek colors) ——— */
.tk-add-card {
  background: #fff;
  border: 2px solid #0e0e0f;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #0e0e0f;
  overflow: visible;
  margin-bottom: 1.25rem;
}
.tk-add-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  align-items: center;
  background: #0b2f4d;
  color: #fff;
  padding: 10px 14px;
  font-size: .92rem;
  font-weight: 700;
  text-align: right;
}
.tk-add-head__date .tk-add-input {
  background: #fff;
  color: #0b2f4d;
  height: 32px;
  min-height: 32px;
  font-size: .85rem;
}
.tk-add-body {
  padding: 12px 14px 16px;
}
.tk-add-row {
  display: grid;
  gap: 10px 12px;
  margin-bottom: 12px;
  align-items: end;
}
.tk-add-row--r1 {
  grid-template-columns: 1.1fr 1.6fr 1.1fr 1.1fr 1.6fr;
}
.tk-add-row--r2 {
  grid-template-columns: 1.2fr 1.2fr 1.4fr .7fr .7fr .7fr .7fr 1.2fr;
}
.tk-add-row--r3 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.tk-add-row--totals {
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr;
  margin-bottom: 0;
}
.tk-add-field {
  min-width: 0;
  margin: 0;
  overflow: visible;
  position: relative;
  z-index: auto;
}
.tk-add-label {
  display: block;
  float: none;
  text-align: right;
  font-size: .78rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-add-input,
.tk-add-select {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 8px;
  margin: 0;
  border: 1px solid #c9d4e2;
  border-radius: 6px;
  background: #fff;
  color: #0b2f4d;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
}
.tk-add-input--bold { font-weight: 800; }
.tk-add-input:focus,
.tk-add-select:focus {
  outline: none;
  border-color: #0f4c81;
  box-shadow: 0 0 0 2px rgba(15, 76, 129, .16);
}
.tk-add-select {
  padding-right: 5px !important;
  padding-left: 5px !important;
  font-weight: 800;
}
.tk-add-select--cash {
  background: #ffecca !important;
}
.tk-add-select--paid {
  background: #cafbff !important;
}
.tk-add-input--driver {
  background: #f0f2ff !important;
  color: #08114a !important;
  border-color: #eaeaea !important;
}
.tk-add-input--ship {
  background: #e2fff5 !important;
  color: #04591e !important;
  border-color: #ececec !important;
}
.tk-add-input--extra {
  background: #ffe6f1 !important;
  color: #cc0024 !important;
  border-color: #eaeaea !important;
}
.tk-add-combo { width: 100%; }
.tk-add-card .tk-combo,
.tk-add-card .tk-combo__btn {
  width: 100%;
}
.tk-add-card .tk-combo__btn {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 6px;
  padding: 0 8px !important;
  font-size: .86rem !important;
  font-weight: 700;
  line-height: 34px;
}
.tk-add-hr {
  border: 0;
  border-top: 4px dashed #cbd5e1;
  width: 95%;
  margin: 18px auto;
}
.tk-add-total {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  background: #fff !important;
  color: #0b2f4d;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
}
.tk-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 2px;
}
.tk-add-btn-save {
  min-width: 200px;
  background: #0b2f4d !important;
  border-color: #0f4c81 !important;
  color: #fff !important;
}
.tk-add-btn-cancel {
  min-width: 200px;
  background: #d60049 !important;
  border-color: #ea3297 !important;
  color: #fff !important;
}
.tk-add-recent__title {
  padding: 12px 16px 4px;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 800;
  opacity: .35;
  margin: 0;
}
.tk-add-recent__wrap {
  overflow-x: auto;
  padding: 8px 12px 14px;
}
.tk-add-recent__table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  text-align: center;
  font-size: .82rem;
}
.tk-add-recent__table th,
.tk-add-recent__table td {
  border: 1px solid #dbe3ee;
  padding: 7px 6px;
  white-space: nowrap;
}
.tk-add-recent__table th {
  background: #f1f5f9;
  font-weight: 800;
  color: #0b2f4d;
}
.tk-add-recent__table .tk-cash {
  background: #92ff92;
  font-weight: 800;
}
.tk-add-recent__table .tk-credit {
  background: #e3e3e3;
}
@media (max-width: 1100px) {
  .tk-add-row--r1,
  .tk-add-row--r2,
  .tk-add-row--r3,
  .tk-add-row--totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tk-add-head {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .tk-add-row--r1,
  .tk-add-row--r2,
  .tk-add-row--r3,
  .tk-add-row--totals,
  .tk-add-head {
    grid-template-columns: 1fr;
  }
  .tk-add-actions { justify-content: stretch; }
  .tk-add-btn-save,
  .tk-add-btn-cancel { width: 100%; min-width: 0; }
}

/* ── Bolt-parity order list pages ── */
.niv-panel.tk-bolt-list-card {
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 0.75rem;
  border-color: #dbe3ee;
  box-shadow: 0 1px 4px rgba(15, 76, 129, 0.06);
  overflow: visible;
  max-height: none;
}
.tk-bolt-list-card {
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 0.75rem;
}
.tk-bolt-filters {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem 0.45rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  overflow: visible;
}
.tk-bolt-filters__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.32rem 0.38rem;
  align-items: end;
}
.tk-bolt-filters__row--primary {
  grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
}
.tk-bolt-filters__row--top {
  display: block;
  width: 100%;
}
.tk-bolt-filters__primary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
  gap: 0.32rem 0.42rem;
  align-items: end;
  min-width: 0;
}
.tk-bolt-filters__primary-grid--orders {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr));
}
.tk-bolt-filters__field--grow {
  min-width: 0;
}
.tk-bolt-filters__multi {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tk-bolt-filters__multi .niv-input {
  width: 100%;
  min-height: 2.05rem;
}
.tk-bolt-filters__row--selects {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.38rem 0.45rem;
  width: 100%;
}
.tk-bolt-filters__row--selects > .niv-field {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}
.tk-bolt-filters__row--selects > .tk-bolt-filters__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.4rem;
  margin-inline-start: 0;
  padding-bottom: 0.02rem;
}
.tk-bolt-filters .niv-field .niv-input,
.tk-bolt-filters .niv-field .niv-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.tk-bolt-filters__row--full { grid-template-columns: 1fr; }
.tk-bolt-filters .niv-field {
  margin-bottom: 0;
  min-width: 0;
}
.tk-bolt-filters .niv-label {
  display: block;
  margin: 0 0 0.18rem;
  font-family: 'Rubik', 'Noto Sans Arabic', var(--niv-font);
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.tk-bolt-filters .niv-input,
.tk-bolt-filters .niv-select,
.tk-bolt-actions .niv-input,
.tk-bolt-actions .niv-select {
  min-height: 2.05rem;
  height: 2.05rem;
  padding: 0.28rem 0.48rem;
  border-radius: 0.42rem;
  border: 1px solid #d6dee8;
  font-family: 'Rubik', 'Noto Sans Arabic', var(--niv-font);
  font-size: 0.84rem;
  font-weight: 600;
  background: #fff;
  box-shadow: none;
  line-height: 1.25;
}
.tk-bolt-filters .niv-select {
  padding-inline: 0.4rem;
}
.tk-bolt-filters .niv-input[type="date"] {
  font-size: 0.78rem;
  padding-inline: 0.35rem;
}
.tk-bolt-filters .niv-input:focus,
.tk-bolt-filters .niv-select:focus,
.tk-bolt-actions .niv-input:focus,
.tk-bolt-actions .niv-select:focus {
  border-color: #0f4c81;
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.12);
  outline: none;
}
.tk-bolt-filters .niv-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.78rem;
}
.tk-bolt-filters__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding-top: 0.3rem;
  margin-top: 0;
  border-top: 1px dashed #e2e8f0;
}
.tk-bolt-filters__row--selects + .tk-bolt-filters__toolbar {
  display: none;
}
.tk-bolt-filters__actions {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  width: auto;
}
.tk-bolt-filters__actions .niv-btn,
.tk-bolt-filters__toolbar .niv-btn {
  min-height: 2.05rem;
  padding: 0.28rem 0.85rem;
  border-radius: 0.42rem;
  font-size: 0.82rem;
  width: auto;
  min-width: 5.75rem;
}
.tk-bolt-filters__toolbar .tk-bolt-btn--search {
  min-height: 2.05rem;
  padding: 0.26rem 0.9rem;
  font-size: 0.82rem;
}
.tk-bolt-btn--clear {
  --tk-btn-fg: #475569;
  --tk-btn-border: #cbd5e1;
  --tk-btn-soft: #f1f5f9;
  --tk-btn-ico-bg: #e2e8f0;
  --tk-btn-ico-fg: #475569;
  --tk-btn-shadow: rgba(71, 85, 105, 0.14);
}
.tk-bolt-btn--search-solid {
  --tk-btn-fg: #fff;
  --tk-btn-border: #0a3559;
  --tk-btn-soft: #0f4c81;
  --tk-btn-ico-bg: rgba(255, 255, 255, 0.22);
  --tk-btn-ico-fg: #fff;
  --tk-btn-shadow: rgba(15, 76, 129, 0.35);
  background: linear-gradient(165deg, #1565a8 0%, #0f4c81 55%, #0c3d68 100%);
  color: #fff;
  border-color: #0a3559;
  min-height: 2.35rem;
  padding-inline: 1.05rem;
  font-weight: 700;
}
.tk-bolt-btn--search-solid:hover {
  color: #fff;
  background: linear-gradient(165deg, #1870b8 0%, #105a8f 55%, #0d4575 100%);
  border-color: #083049;
}
.tk-bolt-btn--search-solid:hover .tk-bolt-btn__ico {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.tk-bolt-btn--clear-solid {
  --tk-btn-fg: #fff;
  --tk-btn-border: #9a3412;
  --tk-btn-soft: #c2410c;
  --tk-btn-ico-bg: rgba(255, 255, 255, 0.22);
  --tk-btn-ico-fg: #fff;
  --tk-btn-shadow: rgba(194, 65, 12, 0.32);
  background: linear-gradient(165deg, #ea580c 0%, #c2410c 55%, #9a3412 100%);
  color: #fff;
  border-color: #9a3412;
  min-height: 2.35rem;
  padding-inline: 1.05rem;
  font-weight: 700;
}
.tk-bolt-btn--clear-solid:hover {
  color: #fff;
  background: linear-gradient(165deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
  border-color: #7c2d12;
}
.tk-bolt-btn--clear-solid:hover .tk-bolt-btn__ico {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.tk-bolt-filters__actions .tk-bolt-btn--search-solid,
.tk-bolt-filters__actions .tk-bolt-btn--clear-solid,
.tk-bolt-filters__toolbar .tk-bolt-btn--search-solid,
.tk-bolt-filters__toolbar .tk-bolt-btn--clear-solid {
  min-width: 6.25rem;
}
.tk-bolt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  align-items: end;
  margin-top: 0.45rem;
  padding: 0.38rem 0.45rem;
  background: #e8f3fc;
  border: 1px solid #c5daf0;
  border-radius: 0.55rem;
}
.tk-bolt-actions__status,
.tk-bolt-actions__driver {
  flex: 0 1 11rem;
  min-width: 8rem;
}
.tk-bolt-actions .niv-label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: #334155;
}
.tk-bolt-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-start;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.tk-bolt-actions__btns .niv-btn {
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.tk-bolt-actions__btns .tk-bolt-btn {
  min-height: 2.35rem;
  padding: 0.4rem 0.78rem;
  font-size: 0.84rem;
}
.tk-bolt-actions__btns .tk-bolt-btn__ico {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.76rem;
}

.tk-bolt-filters__actions .niv-btn--primary,
.niv-btn--dark {
  background: #0f4c81;
  color: #fff;
  border: 1px solid #0d3f6c;
  box-shadow: none;
}
.tk-bolt-filters__actions .niv-btn--primary:hover,
.niv-btn--dark:hover {
  background: #0c3d68;
  color: #fff;
  border-color: #0a3559;
}

/* Order list toolbar — tinted outline chips (all order pages) */
.tk-bolt-btn {
  font-family: 'Rubik', 'Noto Sans Arabic', var(--niv-font);
  --tk-btn-fg: #0f4c81;
  --tk-btn-bg: #fff;
  --tk-btn-border: #cbd5e1;
  --tk-btn-soft: #f1f5f9;
  --tk-btn-ico-bg: #e2e8f0;
  --tk-btn-ico-fg: #475569;
  --tk-btn-shadow: rgba(15, 76, 129, 0.12);
  background: var(--tk-btn-bg);
  color: var(--tk-btn-fg);
  border: 1px solid var(--tk-btn-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.22s ease;
}
.tk-bolt-btn__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  flex-shrink: 0;
  background: var(--tk-btn-ico-bg);
  color: var(--tk-btn-ico-fg);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.tk-bolt-btn__ico .fas,
.tk-bolt-btn__ico .fa-solid {
  font-size: 0.78rem;
  pointer-events: none;
}
.tk-bolt-btn__label {
  line-height: 1.2;
  white-space: nowrap;
}
.tk-bolt-btn:hover {
  transform: translateY(-2px);
  background: var(--tk-btn-soft);
  border-color: var(--tk-btn-fg);
  box-shadow: 0 6px 16px var(--tk-btn-shadow), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.tk-bolt-btn:hover .tk-bolt-btn__ico {
  background: var(--tk-btn-fg);
  color: #fff;
  transform: scale(1.06);
}
.tk-bolt-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.tk-bolt-btn:focus-visible {
  outline: 2px solid var(--tk-btn-fg);
  outline-offset: 2px;
}

.tk-bolt-btn--status {
  --tk-btn-fg: #b45309;
  --tk-btn-border: #fcd34d;
  --tk-btn-soft: #fffbeb;
  --tk-btn-ico-bg: #fef3c7;
  --tk-btn-ico-fg: #b45309;
  --tk-btn-shadow: rgba(180, 83, 9, 0.18);
}
.tk-bolt-btn--driver {
  --tk-btn-fg: #4338ca;
  --tk-btn-border: #a5b4fc;
  --tk-btn-soft: #eef2ff;
  --tk-btn-ico-bg: #e0e7ff;
  --tk-btn-ico-fg: #4338ca;
  --tk-btn-shadow: rgba(67, 56, 202, 0.2);
}
.tk-bolt-btn--columns {
  --tk-btn-fg: #0f4c81;
  --tk-btn-border: #93c5fd;
  --tk-btn-soft: #e8f3fc;
  --tk-btn-ico-bg: #dbeafe;
  --tk-btn-ico-fg: #0f4c81;
  --tk-btn-shadow: rgba(15, 76, 129, 0.16);
}
.tk-bolt-btn--print {
  --tk-btn-fg: #1e40af;
  --tk-btn-border: #93c5fd;
  --tk-btn-soft: #eff6ff;
  --tk-btn-ico-bg: #dbeafe;
  --tk-btn-ico-fg: #1d4ed8;
  --tk-btn-shadow: rgba(30, 64, 175, 0.18);
}
.tk-bolt-btn--print-client {
  --tk-btn-fg: #0e7490;
  --tk-btn-border: #67e8f9;
  --tk-btn-soft: #ecfeff;
  --tk-btn-ico-bg: #cffafe;
  --tk-btn-ico-fg: #0e7490;
  --tk-btn-shadow: rgba(14, 116, 144, 0.2);
}
.tk-bolt-btn--print-driver {
  --tk-btn-fg: #7c3aed;
  --tk-btn-border: #c4b5fd;
  --tk-btn-soft: #f5f3ff;
  --tk-btn-ico-bg: #ede9fe;
  --tk-btn-ico-fg: #6d28d9;
  --tk-btn-shadow: rgba(124, 58, 237, 0.2);
}
.tk-bolt-btn--print-dispatch {
  --tk-btn-fg: #0369a1;
  --tk-btn-border: #7dd3fc;
  --tk-btn-soft: #f0f9ff;
  --tk-btn-ico-bg: #e0f2fe;
  --tk-btn-ico-fg: #0284c7;
  --tk-btn-shadow: rgba(3, 105, 161, 0.2);
}
.tk-bolt-btn--print-ret-co {
  --tk-btn-fg: #be123c;
  --tk-btn-border: #fda4af;
  --tk-btn-soft: #fff1f2;
  --tk-btn-ico-bg: #ffe4e6;
  --tk-btn-ico-fg: #be123c;
  --tk-btn-shadow: rgba(190, 18, 60, 0.18);
}
.tk-bolt-btn--print-ret-cl {
  --tk-btn-fg: #c2410c;
  --tk-btn-border: #fdba74;
  --tk-btn-soft: #fff7ed;
  --tk-btn-ico-bg: #ffedd5;
  --tk-btn-ico-fg: #c2410c;
  --tk-btn-shadow: rgba(194, 65, 12, 0.18);
}
.tk-bolt-btn--settle-client {
  --tk-btn-fg: #047857;
  --tk-btn-border: #6ee7b7;
  --tk-btn-soft: #ecfdf5;
  --tk-btn-ico-bg: #d1fae5;
  --tk-btn-ico-fg: #047857;
  --tk-btn-shadow: rgba(4, 120, 87, 0.22);
}
.tk-bolt-btn--settle-driver {
  --tk-btn-fg: #0f766e;
  --tk-btn-border: #5eead4;
  --tk-btn-soft: #f0fdfa;
  --tk-btn-ico-bg: #ccfbf1;
  --tk-btn-ico-fg: #0f766e;
  --tk-btn-shadow: rgba(15, 118, 110, 0.22);
}
.tk-bolt-filters__actions .tk-bolt-btn--search {
  --tk-btn-fg: #0f4c81;
  --tk-btn-border: #0f4c81;
  --tk-btn-soft: #0f4c81;
  --tk-btn-ico-bg: rgba(255, 255, 255, 0.2);
  --tk-btn-ico-fg: #fff;
  --tk-btn-shadow: rgba(15, 76, 129, 0.35);
  background: linear-gradient(165deg, #1565a8 0%, #0f4c81 55%, #0c3d68 100%);
  color: #fff;
  border-color: #0a3559;
  min-height: 2.35rem;
  padding-inline: 1rem;
}
.tk-bolt-filters__actions .tk-bolt-btn--search:hover {
  color: #fff;
  background: linear-gradient(165deg, #1870b8 0%, #105a8f 55%, #0d4575 100%);
  border-color: #083049;
}
.tk-bolt-filters__actions .tk-bolt-btn--search:hover .tk-bolt-btn__ico {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.tk-bolt-sums { margin: 0.45rem 0; }
.tk-bolt-sums__table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
  border: 1px solid #d6dee8;
  border-radius: 0.65rem;
  overflow: hidden;
}
.tk-bolt-sums__table td {
  padding: 0.45rem 0.3rem;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  color: #334155;
}
.tk-bolt-sums__table strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.tk-bolt-table-wrap--loading-host {
  position: relative;
  min-height: 14rem;
}
.tk-bolt-table-wrap--loading-host.is-loading .tk-bolt-orders {
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}
.tk-table-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
}
.tk-table-loading[hidden] {
  display: none !important;
}
.tk-table-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid #dbeafe;
  border-top-color: #0f4c81;
  animation: tk-table-spin 0.75s linear infinite;
}
.tk-table-loading__text {
  font-family: 'Rubik', 'Noto Sans Arabic', var(--niv-font);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f4c81;
}
@keyframes tk-table-spin {
  to { transform: rotate(360deg); }
}

.tk-bolt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tk-bolt-orders {
  width: 100%;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 650;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
}
.tk-bolt-orders th,
.tk-bolt-orders td {
  padding: 0.42rem 0.35rem;
  vertical-align: middle;
  border: 1px solid #dee2e6;
  line-height: 1.45;
}
.tk-bolt-orders th {
  white-space: nowrap;
}
.tk-bolt-orders td {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  max-width: none;
}
.tk-bolt-orders th[data-col="actions"],
.tk-bolt-orders td[data-col="actions"],
.tk-bolt-orders td.tk-dir-col-actions {
  width: auto;
  min-width: 12.5rem;
  max-width: none;
  padding: 0.4rem 0.5rem;
  white-space: normal;
}
.tk-bolt-orders thead th {
  background: #0f4c81;
  color: #fff;
  font-weight: 750;
  font-size: 0.88rem;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.62rem 0.4rem;
  line-height: 1.5;
}
.tk-bolt-orders tbody td {
  font-size: 0.82rem;
  color: #0f172a;
}
.tk-bolt-orders tbody tr.tk-page-hidden {
  display: none !important;
}
/* Directory / data tables — zebra + row hover */
.tk-dir-page .tk-bolt-orders tbody tr:not(.tk-table-empty-row):nth-child(even) {
  background-color: #f4f8fc;
}
.tk-dir-page .tk-bolt-orders tbody tr:not(.tk-table-empty-row):hover {
  background-color: #e8f2fb !important;
}
/* Orders — keep status row colors; subtle hover + taller headers only */
.tk-bolt-orders tbody tr.rowofitem {
  transition: box-shadow 0.15s ease;
}
.tk-bolt-orders tbody tr.rowofitem:hover {
  box-shadow: inset 0 0 0 9999px rgba(15, 76, 129, 0.07);
}
.tk-table-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 0.25rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #334155;
}
.tk-table-pager__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.tk-table-pager__size {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  margin: 0;
}
.tk-table-pager__select {
  width: auto !important;
  min-width: 4.25rem;
  display: inline-block !important;
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.82rem;
}
.tk-table-pager__num {
  font-weight: 750;
  min-width: 3.5rem;
  text-align: center;
  color: #0f4c81;
}
.tk-bolt-orders input[type="checkbox"],
.tk-bolt-orders #tkCheckAll,
.tk-bolt-orders .tk-row-check {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  accent-color: #0f4c81;
  cursor: pointer;
  vertical-align: middle;
}
.tk-bolt-orders th[data-col="check"],
.tk-bolt-orders td[data-col="check"] {
  width: 2.4rem;
  min-width: 2.4rem;
  padding: 0.45rem 0.35rem;
}
.tk-bolt-orders tbody tr.rowofitem { background-color: #fff; }
.tk-bolt-orders tbody tr.rowofitemreturned { background-color: #ffb8b8 !important; }
.tk-bolt-orders tbody tr.rowofitemreturneddeliver { background-color: #deffde !important; }
.tk-bolt-orders tbody tr.rowofitemreturnedrecieved { background-color: #c0b8ff !important; }
.tk-bolt-orders tbody tr.rowofitemreturnednotrecieved { background-color: #ffdab8 !important; }
/* Soft row tint by status (Bolt-inspired, behind cell colors) */
.tk-bolt-orders tbody tr.rowofitem.tk-st--wait { background-color: #fff8e8; }
.tk-bolt-orders tbody tr.rowofitem.tk-st--proc { background-color: #eef3ff; }
.tk-bolt-orders tbody tr.rowofitem.tk-st--ok { background-color: #eefaf0; }
.tk-bolt-orders tbody tr.rowofitem.tk-st--back { background-color: #ffecec; }
.tk-bolt-orders tbody tr.rowofitem.tk-st--back-client { background-color: #ffe6ee; }
.tk-bolt-orders tbody tr.rowofitem.tk-st--back-company { background-color: #f3ecee; }
.tk-bolt-orders tbody tr.rowofitem.tk-st--done { background-color: #e8faf6; }
.tk-bolt-orders tbody tr.rowofitem.tk-st--hold { background-color: #ffe8f8; }
.tk-bolt-orders .tk-type--cash {
  background-color: #92ff92 !important;
  font-weight: 800;
}
.tk-bolt-orders .tk-type--credit {
  background-color: #e3e3e3 !important;
}
.tk-bolt-orders .tk-status-cell {
  font-weight: 800;
  color: #111;
}
.tk-bolt-orders .tk-status-cell.tk-st--wait {
  background-color: #ffe3a6 !important;
  color: #111 !important;
}
.tk-bolt-orders .tk-status-cell.tk-st--proc {
  background-color: blue !important;
  color: #fff !important;
}
.tk-bolt-orders .tk-status-cell.tk-st--ok {
  background-color: green !important;
  color: #fff !important;
}
.tk-bolt-orders .tk-status-cell.tk-st--back {
  background-color: red !important;
  color: #fff !important;
}
.tk-bolt-orders .tk-status-cell.tk-st--back-client {
  background-color: #ff0051 !important;
  color: #fff !important;
}
.tk-bolt-orders .tk-status-cell.tk-st--back-company {
  background-color: #ac8692 !important;
  color: #fff !important;
}
.tk-bolt-orders .tk-status-cell.tk-st--done {
  background-color: #00C5A5 !important;
  color: #fff !important;
}
.tk-bolt-orders .tk-status-cell.tk-st--hold {
  background-color: #ff00b7 !important;
  color: #fff !important;
}
.tk-receipt-cell { font-weight: 800; }
.tk-bolt-row-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
  align-items: center;
  white-space: normal;
  width: auto;
  max-width: none;
}
.tk-btn-edit,
.tk-btn-del,
.tk-row-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 0.65rem;
  font-family: var(--niv-font, "Neo Sans Arabic", sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}
.tk-row-act .fas {
  font-size: 0.86rem;
  flex-shrink: 0;
}
.tk-row-act__txt {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.tk-row-act:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.tk-row-act:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}
.tk-btn-edit {
  background: #e8f1f8;
  color: #0f4c81;
  border-color: rgba(15, 76, 129, 0.22);
}
.tk-btn-edit:hover {
  background: #0f4c81;
  color: #fff;
  border-color: #0f4c81;
}
.tk-btn-del {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.28);
}
.tk-btn-del:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.tk-row-act:disabled,
.tk-row-act.is-disabled,
.tk-btn-edit:disabled,
.tk-btn-edit.is-disabled,
.tk-btn-del:disabled,
.tk-btn-del.is-disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  border-color: #d1d5db !important;
  opacity: 0.55;
  filter: grayscale(1);
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}
.tk-row-act:disabled:hover,
.tk-row-act.is-disabled:hover,
.tk-btn-edit:disabled:hover,
.tk-btn-edit.is-disabled:hover,
.tk-btn-del:disabled:hover,
.tk-btn-del.is-disabled:hover {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  transform: none !important;
  box-shadow: none !important;
}
.tk-btn-roles {
  background: #4a4aa8 !important;
  border: 1px solid #4a4aa8 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: .2rem .45rem !important;
  border-radius: 4px !important;
  cursor: pointer;
}
.tk-staff-table .tk-staff-roles {
  max-width: 28rem;
  white-space: normal;
}
.tk-role-badge {
  display: inline-block;
  margin: .1rem .15rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #e8f2fb;
  color: #0f4c81;
  font-size: .72rem;
  font-weight: 700;
}
.tk-muted { color: #94a3b8; font-size: .85rem; }
.tk-modal[hidden] { display: none !important; }
.tk-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.tk-modal__card {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  border: 1px solid #e2e8f0;
}
.tk-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}
.tk-modal__head h2 { margin: 0; font-size: 1.15rem; }
.tk-modal__x {
  border: 0;
  background: #f1f5f9;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.tk-modal__body { padding: 1rem 1.1rem 1.15rem; }
.tk-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.tk-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid #e2e8f0;
}
.tk-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .4rem;
  max-height: 16rem;
  overflow: auto;
  padding: .55rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.tk-role-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .86rem;
  font-weight: 600;
  padding: .25rem .2rem;
}
.tk-perm-modal .kw-wizard__body {
  max-height: min(72vh, 42rem);
  overflow: auto;
}
.tk-perm-pages {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tk-perm-group__title {
  margin: 0 0 .65rem;
  font-size: .95rem;
  font-weight: 800;
  color: #334155;
}
.tk-perm-page {
  padding: .75rem .85rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  margin-bottom: .55rem;
}
.tk-perm-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.tk-perm-page__title {
  font-weight: 700;
  font-size: .92rem;
  color: #0f172a;
}
.tk-perm-page__tools {
  display: flex;
  gap: .35rem;
}
.tk-perm-page__hint {
  margin: .25rem 0 .5rem;
  font-size: .78rem;
  color: #64748b;
}
.tk-perm-form-note {
  margin: 0;
  font-size: .88rem;
}
.tk-perm-form-heading {
  margin: 0 0 .35rem;
  font-size: .95rem;
  font-weight: 800;
}
.tk-perm-form-block {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid #e2e8f0;
}
.tk-perm-table-hints {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .35rem;
}
.tk-role-badge--soft {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}
@media (max-width: 700px) {
  .tk-modal__grid { grid-template-columns: 1fr; }
  .tk-topbar { flex-wrap: wrap; }
}

@media print {
  .tk-bolt-orders tbody tr.rowofitemreturned { background-color: #ffb8b8 !important; }
  .tk-bolt-orders tbody tr.rowofitemreturneddeliver { background-color: #deffde !important; }
  .tk-bolt-orders tbody tr.rowofitemreturnedrecieved { background-color: #c0b8ff !important; }
  .tk-bolt-orders tbody tr.rowofitemreturnednotrecieved { background-color: #ffdab8 !important; }
  .tk-bolt-orders .tk-status-cell.tk-st--wait { background-color: #ffe3a6 !important; }
  .tk-bolt-orders .tk-status-cell.tk-st--ok { background-color: green !important; color: #fff !important; }
  .tk-bolt-orders .tk-status-cell.tk-st--back { background-color: red !important; color: #fff !important; }
}
@media (max-width: 1100px) {
  .tk-bolt-filters__row:not(.tk-bolt-filters__row--selects):not(.tk-bolt-filters__row--top),
  .tk-bolt-filters__row--primary {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  }
  .tk-bolt-filters__row--selects {
    flex-wrap: wrap;
  }
  .tk-bolt-filters__row--selects > .niv-field {
    flex: 1 1 calc(33.333% - 0.45rem);
    min-width: 8.5rem;
  }
  .tk-bolt-filters__row--selects > .tk-bolt-filters__actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  .tk-bolt-actions__status,
  .tk-bolt-actions__driver { flex: 1 1 calc(50% - 0.4rem); }
  .tk-bolt-actions__btns { flex: 1 1 100%; }
}
@media (max-width: 700px) {
  .tk-bolt-filters__row:not(.tk-bolt-filters__row--selects):not(.tk-bolt-filters__row--top),
  .tk-bolt-filters__row--primary {
    grid-template-columns: 1fr 1fr;
  }
  .tk-bolt-filters__primary-grid--orders {
    grid-template-columns: 1fr 1fr;
  }
  .tk-bolt-filters__row--selects > .tk-bolt-filters__actions {
    flex: 1 1 100%;
    margin-inline-start: 0;
    justify-content: stretch;
  }
  .tk-bolt-filters__row--selects > .tk-bolt-filters__actions .tk-bolt-btn {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
  }
  .tk-bolt-filters__toolbar .tk-bolt-btn--search { width: 100%; justify-content: center; }
  .tk-bolt-actions__status,
  .tk-bolt-actions__driver { flex: 1 1 100%; }
  .tk-bolt-filters__actions .niv-btn { width: 100%; }
}



/* ── Directory admin lists (KiwCard-style) ── */
.tk-table-empty-cell {
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
}
.tk-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.75rem 1.75rem;
  min-height: 12rem;
}
.tk-table-empty__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #eff6ff 0%, #e0f2fe 100%);
  color: #0f4c81;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.1);
}
.tk-table-empty__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}
.tk-table-empty__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.01em;
}
tr.tk-table-empty-row:hover td {
  background: #fff !important;
}

.tk-dir-page .tk-dir-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
}
.tk-dir-page .tk-dir-filter-count {
  min-height: 2.05rem;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  border-radius: 10px;
  background: #f1f5f9;
  font-weight: 800;
  color: #0f4c81;
  font-size: 0.88rem;
}
.tk-dir-page .tk-bolt-filters__row--primary,
.tk-dir-page .tk-bolt-filters__row--dir {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.38rem 0.55rem;
  width: 100%;
}
.tk-dir-page .tk-bolt-filters__row--primary .tk-dir-quick-field {
  flex: 1 1 14rem;
  min-width: 0;
}
.tk-dir-page .tk-bolt-filters__row--primary .tk-dir-count-field {
  flex: 0 0 6.25rem;
  min-width: 5.5rem;
}
.tk-dir-page .tk-bolt-filters__row--primary > .niv-field:not(.tk-dir-quick-field):not(.tk-dir-count-field) {
  flex: 0 1 9.5rem;
  min-width: 7rem;
}
.tk-dir-page .tk-bolt-filters__actions--dir,
.tk-dir-page .tk-bolt-filters__row--primary .tk-bolt-filters__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  margin-inline-start: auto;
}
.tk-dir-page .tk-bolt-filters__actions--dir .tk-bolt-btn,
.tk-dir-page .tk-bolt-filters__row--primary .tk-bolt-filters__actions .tk-bolt-btn {
  min-height: 2.05rem;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}
.tk-dir-page .tk-bolt-filters__toolbar:empty {
  display: none;
}
.tk-dir-page [data-tk-dir-filter-form] .tk-bolt-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.38rem 0.55rem;
  width: 100%;
}
.tk-dir-page [data-tk-dir-filter-form] .tk-bolt-filters__row .niv-field {
  flex: 1 1 11rem;
  min-width: 0;
}
.tk-dir-page [data-tk-dir-filter-form] .tk-bolt-filters__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: 100%;
  padding-top: 0.15rem;
}
.tk-dir-page [data-tk-dir-filter-form] .tk-bolt-filters__toolbar .tk-bolt-btn {
  min-height: 2.05rem;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}
.tk-dir-subzones-cell {
  white-space: normal !important;
  text-align: start !important;
  max-width: 44rem;
  min-width: 18rem;
  vertical-align: top !important;
  padding: 0.35rem 0.4rem !important;
}
.tk-subzone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
}
.tk-subzone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.22rem 0.35rem 0.22rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.25;
}
.tk-subzone-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22rem;
}
.tk-subzone-chip {
  padding: 0.28rem 0.45rem 0.28rem 0.55rem;
  font-size: 0.76rem;
}
.tk-btn-silfa {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}
.tk-btn-silfa:hover {
  background: #7c3aed;
  color: #fff;
  border-color: #6d28d9;
}
.tk-btn-roles {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}
.tk-btn-roles:hover {
  background: #bae6fd;
  color: #0c4a6e;
}
.tk-btn-repay {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #5eead4;
}
.tk-btn-repay:hover {
  background: #0d9488;
  color: #fff;
  border-color: #0f766e;
}
.tk-exp-pick-list {
  display: grid;
  gap: 0.35rem;
  max-height: min(42vh, 280px);
  overflow: auto;
  padding: 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.tk-exp-pick-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #0f172a;
}
.tk-subzone-chip__unlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.tk-subzone-chip__unlink .fas {
  font-size: 0.62rem;
}
.tk-subzone-chip__unlink:hover {
  background: #fecaca;
  color: #991b1b;
}
.tk-dir-subzone-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.tk-dir-page .tk-row-act {
  min-height: 1.95rem;
  padding: 0.32rem 0.58rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
}
.tk-bolt-row-actions {
  gap: 0.35rem;
}
.tk-dir-page .tk-dir-export-bar .niv-btn {
  min-height: 2.05rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 750;
}
.tk-dir-export-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tk-dir-role-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.tk-dir-form .tk-role-grid {
  max-height: min(42vh, 320px);
  overflow: auto;
}
.tk-modal--kw .tk-modal__card {
  width: min(720px, 96vw);
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 64px rgba(15, 76, 129, 0.18);
  overflow: hidden;
}
.tk-modal--kw .tk-modal__head {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.15rem;
}
.tk-modal--kw .tk-modal__head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f4c81;
  font-weight: 800;
}
.tk-modal--kw .tk-modal__foot {
  border-top: 1px solid #e2e8f0;
  padding: 0.85rem 1.15rem;
  gap: 0.5rem;
}
.tk-modal--kw .tk-modal__foot .niv-btn {
  min-height: 2.35rem;
  font-weight: 700;
}

/* ── TakTek setup tour wizard ── */
.tk-tour {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s ease;
}
.tk-tour.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.tk-tour__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 44, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: tkTourFade .35s ease;
}
/* Step mode: hole draws the dim — keep backdrop only for click catch */
.tk-tour:not(.is-welcome) .tk-tour__backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tk-tour__hole {
  position: fixed;
  border-radius: 16px;
  box-shadow:
    0 0 0 9999px rgba(7, 24, 44, 0.58),
    0 0 0 4px #16a3a4,
    0 0 0 8px rgba(22, 163, 164, 0.25),
    0 18px 40px rgba(15, 76, 129, 0.22);
  background: transparent;
  pointer-events: none;
  transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1);
  z-index: 1;
  display: none;
}
.tk-tour__pulse {
  position: fixed;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #16a3a4;
  box-shadow: 0 0 0 0 rgba(22, 163, 164, 0.45);
  animation: tkTourPulse 1.6s ease-out infinite;
  pointer-events: none;
  z-index: 2;
  display: none;
}
.tk-tour__card {
  position: fixed;
  z-index: 5;
  width: min(340px, calc(100vw - 28px));
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 1rem 1.05rem .95rem;
  border: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow: 0 20px 48px rgba(8, 30, 55, 0.28);
  transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1);
  display: none;
}
.tk-tour.is-visible:not(.is-welcome) .tk-tour__card {
  display: block;
}
.tk-tour__card.is-pop {
  animation: tkTourPop .4s cubic-bezier(.2,.9,.2,1);
}
.tk-tour__progress {
  display: flex;
  gap: 5px;
  margin-bottom: .7rem;
  flex-wrap: nowrap;
}
.tk-tour__progress i {
  flex: 1;
  height: 4px;
  min-width: 0;
  border-radius: 99px;
  background: #e2eaf2;
  display: block;
  transition: background .25s ease, transform .25s ease;
}
.tk-tour__progress i.is-done { background: #7eb8c0; }
.tk-tour__progress i.is-on {
  background: linear-gradient(90deg, #0f4c81, #16a3a4);
  transform: scaleY(1.35);
}
.tk-tour__stepnum {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: #1666a8;
  margin-bottom: .2rem;
}
.tk-tour__title {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: "Noto Sans Arabic", Manrope, sans-serif;
  line-height: 1.35;
  color: #0b2f4d;
}
.tk-tour__body {
  margin: 0 0 .95rem;
  font-size: .88rem;
  line-height: 1.7;
  color: #475569;
}
.tk-tour__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
  align-items: center;
}
.tk-tour__btn {
  border: 0;
  border-radius: 10px;
  padding: .52rem .88rem;
  font-weight: 700;
  font-size: .84rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.tk-tour__btn:active { transform: scale(.97); }
.tk-tour__btn:disabled { opacity: .4; cursor: default; }
.tk-tour__btn--primary {
  background: linear-gradient(135deg, #0f4c81, #1666a8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.25);
}
.tk-tour__btn--primary:hover { filter: brightness(1.05); }
.tk-tour__btn--go {
  background: #e7f5f5;
  color: #0f4c81;
}
.tk-tour__btn--ghost {
  background: transparent;
  color: #64748b;
}
.tk-tour__btn--ghost:hover { background: #f1f5f9; color: #334155; }

/* Welcome: only when .is-welcome — never stack with step card */
.tk-tour__welcome {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none !important;
  place-items: center;
  padding: 1.25rem;
  pointer-events: none;
}
.tk-tour.is-welcome .tk-tour__welcome {
  display: grid !important;
  pointer-events: auto;
}
.tk-tour.is-welcome .tk-tour__card,
.tk-tour.is-welcome .tk-tour__hole,
.tk-tour.is-welcome .tk-tour__pulse {
  display: none !important;
}
.tk-tour.is-welcome .tk-tour__backdrop {
  background: rgba(7, 24, 44, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tk-tour__welcome-card {
  width: min(400px, 100%);
  background: linear-gradient(165deg, #0b2f4d 0%, #0f4c81 52%, #145a96 100%);
  color: #fff;
  border-radius: 20px;
  padding: 1.45rem 1.35rem 1.25rem;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
  animation: tkTourPop .48s cubic-bezier(.2,.9,.2,1);
  position: relative;
  overflow: hidden;
}
.tk-tour__welcome-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(22, 163, 164, 0.22);
  top: -50px;
  inset-inline-end: -36px;
  animation: tkTourFloat 4s ease-in-out infinite;
  pointer-events: none;
}
.tk-tour__welcome-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: .26rem .68rem;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .75rem;
  position: relative;
}
.tk-tour__welcome-card h2 {
  margin: 0 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
  position: relative;
}
.tk-tour__welcome-card > p {
  margin: 0 0 .85rem;
  opacity: .92;
  line-height: 1.65;
  font-size: .92rem;
  position: relative;
}
.tk-tour__welcome-list {
  margin: 0 0 1.15rem;
  padding-inline-start: 1.15rem;
  line-height: 1.8;
  position: relative;
  font-size: .9rem;
}
.tk-tour__welcome-list li { margin: .15rem 0; }
.tk-tour__welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.tk-tour__welcome-actions .tk-tour__btn--ghost {
  color: rgba(255, 255, 255, 0.88);
}
.tk-tour__welcome-actions .tk-tour__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.tk-tour__welcome-actions .tk-tour__btn--never {
  margin-inline-end: auto;
  font-size: .82rem;
  opacity: .9;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  padding-inline: .35rem;
}
.tk-tour__welcome-actions .tk-tour__btn--never:hover {
  background: transparent;
  opacity: 1;
}
.tk-tour__actions .tk-tour__btn--never {
  font-size: .78rem;
  margin-inline-end: auto;
  opacity: .75;
  text-decoration: underline;
  text-underline-offset: 2px;
  border: 0;
  background: transparent;
  padding-inline: .25rem;
}
.tk-tour__actions .tk-tour__btn--never:hover {
  opacity: 1;
  background: transparent;
  color: #334155;
}
.tk-tour__welcome-actions .tk-tour__btn--primary {
  background: #16a3a4;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.tk-tour-target {
  position: relative;
  z-index: 12001 !important;
}
.tk-tour-launch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
@keyframes tkTourFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tkTourPop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes tkTourPulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 164, 0.5); transform: scale(1); }
  70% { box-shadow: 0 0 0 14px rgba(22, 163, 164, 0); transform: scale(1.12); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 164, 0); transform: scale(1); }
}
@keyframes tkTourFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@media (max-width: 700px) {
  .tk-tour__card {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none;
    bottom: 14px;
    top: auto !important;
  }
  .tk-tour__pulse { display: none !important; }
}

/* ── TakTek company dashboard (Saidaly-inspired) ── */
.tk-dash {
  --dash-primary: #10ac84;
  --dash-primary-dark: #0f766e;
  --dash-brand: #0f4c81;
  --dash-bg: #f1f5f9;
}
.tk-dash-topbar { margin-bottom: .35rem; }
.tk-dash-page { direction: rtl; padding-bottom: 1.5rem; }
.tk-fade-up {
  animation: tkDashFadeUp .55s ease both;
}
@keyframes tkDashFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tkDashPulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}
.tk-dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-inline-start: 4px solid var(--dash-primary);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.tk-dash-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dash-brand);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.tk-dash-title__icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--dash-primary);
  display: inline-flex;
}
.tk-dash-title__icon svg { width: 100%; height: 100%; }
.tk-dash-hero__meta {
  margin: 4px 0 0;
  font-size: .75rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tk-dash-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(16, 172, 132, 0.12);
  color: var(--dash-primary-dark);
}
.tk-dash-pill--trial {
  background: rgba(14, 165, 164, 0.16);
  color: #0f4c81;
}
.tk-dash-trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  padding: 0.95rem 1.15rem;
  margin: 0 0 1.15rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(14, 165, 164, 0.28);
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.95), rgba(224, 242, 254, 0.9));
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.06);
}
.tk-dash-trial__badge {
  flex-shrink: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #0f4c81;
  color: #fff;
}
.tk-dash-trial__body {
  flex: 1 1 12rem;
  min-width: 0;
}
.tk-dash-trial__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0b1f33;
  margin: 0 0 0.15rem;
}
.tk-dash-trial__meta {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.45;
}
.tk-dash-trial__meta time { font-weight: 750; color: #0f4c81; }
.tk-dash-trial__cta {
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .tk-dash-trial__cta { width: 100%; justify-content: center; }
}
.tk-dash-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.tk-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: .8125rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.tk-dash-btn svg { width: 1rem; height: 1rem; }
.tk-dash-btn--primary {
  color: #fff;
  background: var(--dash-primary);
  box-shadow: 0 2px 8px rgba(16, 172, 132, 0.25);
}
.tk-dash-btn--primary:hover {
  background: #0d9668;
  color: #fff;
  transform: translateY(-1px);
}
.tk-dash-btn--ghost {
  background: #f1f5f9;
  color: var(--dash-brand);
}
.tk-dash-btn--ghost:hover { background: #e2e8f0; }
.tk-dash-btn--sm { padding: 5px 10px; font-size: .78rem; }
.tk-dash-link {
  font-size: .84rem;
  font-weight: 700;
  color: var(--dash-primary-dark);
  text-decoration: none;
}
.tk-dash-link:hover { text-decoration: underline; }

.tk-dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.tk-dash-kpi {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tk-dash-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 172, 132, 0.1);
}
.tk-dash-kpi__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tk-dash-kpi__icon svg { width: 1.15rem; height: 1.15rem; }
.tk-dash-kpi__icon--teal { background: rgba(16, 172, 132, 0.12); color: #10ac84; }
.tk-dash-kpi__icon--blue { background: rgba(15, 76, 129, 0.12); color: #0f4c81; }
.tk-dash-kpi__icon--orange { background: rgba(249, 115, 22, 0.12); color: #ea580c; }
.tk-dash-kpi__icon--violet { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.tk-dash-kpi__icon--cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.tk-dash-kpi__icon--green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.tk-dash-kpi__value {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.tk-dash-kpi__value small {
  font-size: .72rem;
  font-weight: 600;
  margin-inline-start: 4px;
  color: #64748b;
}
.tk-dash-kpi__label {
  font-size: .82rem;
  color: #64748b;
  margin-top: 3px;
}

.tk-dash-alert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.tk-dash-pool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease;
  background: #fff;
}
.tk-dash-pool:hover { transform: scale(1.02); }
.tk-dash-pool strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}
.tk-dash-pool span { font-size: .8rem; color: #64748b; }
.tk-dash-pool__ico {
  width: 2rem;
  height: 2rem;
  display: flex;
  flex-shrink: 0;
}
.tk-dash-pool__ico svg { width: 100%; height: 100%; }
.tk-dash-pool--wait {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), #fff);
  border-color: rgba(245, 158, 11, 0.28);
}
.tk-dash-pool--wait strong, .tk-dash-pool--wait .tk-dash-pool__ico { color: #b45309; }
.tk-dash-pool--ok {
  background: linear-gradient(135deg, rgba(16, 172, 132, 0.12), #fff);
  border-color: rgba(16, 172, 132, 0.25);
}
.tk-dash-pool--ok strong, .tk-dash-pool--ok .tk-dash-pool__ico { color: #0f766e; }
.tk-dash-pool--back {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), #fff);
  border-color: rgba(239, 68, 68, 0.25);
}
.tk-dash-pool--back strong, .tk-dash-pool--back .tk-dash-pool__ico { color: #b91c1c; }
.tk-dash-pool--add {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), #fff);
  border-color: rgba(15, 76, 129, 0.22);
}
.tk-dash-pool--add strong, .tk-dash-pool--add .tk-dash-pool__ico { color: #0f4c81; }
.tk-pulse-border { animation: tkDashPulseBorder 2.2s ease infinite; }

.tk-dash-section { margin-bottom: 16px; }
.tk-dash-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tk-dash-section__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dash-brand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tk-dash-section__head h2 span {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--dash-primary);
  display: inline-flex;
}
.tk-dash-section__head h2 svg { width: 100%; height: 100%; }
.tk-dash-section__actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.tk-dash-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.tk-dash-status {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tk-dash-status:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.tk-dash-status__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.tk-dash-status__icon svg { width: 1.15rem; height: 1.15rem; }
.tk-dash-status__count {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.tk-dash-status__label {
  font-size: .8rem;
  color: #64748b;
  margin: 4px 0 8px;
}
.tk-dash-status__bar {
  height: 5px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.tk-dash-status__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .8s ease;
}
.tk-dash-status small {
  font-size: .72rem;
  color: #94a3b8;
  font-weight: 600;
}

.tk-dash-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.tk-dash-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.tk-dash-card--table { padding: 0; overflow: hidden; }
.tk-dash-card__title {
  margin: 0 0 12px;
  font-size: .98rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tk-dash-card__title span {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--dash-primary);
  display: inline-flex;
}
.tk-dash-card__title svg { width: 100%; height: 100%; }

.tk-dash-user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tk-dash-user-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--dash-bg);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
.tk-dash-user-stat:hover { background: rgba(16, 172, 132, 0.1); }
.tk-dash-user-stat > svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--dash-primary);
  flex-shrink: 0;
}
.tk-dash-user-stat strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
}
.tk-dash-user-stat span {
  font-size: .72rem;
  color: #64748b;
}

.tk-dash-fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tk-dash-fin {
  background: var(--dash-bg);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color .15s, transform .15s;
}
.tk-dash-fin:hover {
  border-color: rgba(16, 172, 132, 0.35);
  transform: translateY(-2px);
}
.tk-dash-fin span {
  display: block;
  font-size: .75rem;
  color: #64748b;
  margin-bottom: 4px;
}
.tk-dash-fin strong {
  font-size: 1rem;
  color: var(--dash-brand);
}

.tk-dash-table th {
  font-size: .78rem;
  color: #64748b;
}
.tk-dash-table-row { cursor: pointer; transition: background .15s; }
.tk-dash-table-row:hover { background: rgba(16, 172, 132, 0.06); }
.tk-dash-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(15, 76, 129, 0.1);
  color: #0f4c81;
}
.tk-dash-empty {
  text-align: center;
  opacity: .7;
  padding: 1.5rem !important;
}

@media (max-width: 900px) {
  .tk-dash-grid-2 { grid-template-columns: 1fr; }
  .tk-dash-user-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tk-dash-fin-grid { grid-template-columns: 1fr; }
}

/* Order list column visibility */
.tk-col-hidden { display: none !important; }
.tk-col-picker { text-align: right; }
.tk-col-picker__section { margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid #e2e8f0; }
.tk-col-picker__section:last-child { border-bottom: 0; margin-bottom: 0; }
.tk-col-picker__h { margin: 0 0 .6rem; font-size: .95rem; font-weight: 700; color: #0f4c81; }
.tk-col-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .45rem .75rem; }
.tk-col-picker__item { display: flex; align-items: center; gap: .4rem; font-size: .86rem; margin: 0; cursor: pointer; }
.tk-col-picker__item.is-locked { opacity: .65; cursor: default; }
.tk-col-picker-swal { direction: rtl; }

/* ── TakTek AI floating support chat ── */
.tk-ai {
  position: fixed;
  z-index: 1200;
  inset-inline-end: 1.15rem;
  bottom: 1.15rem;
  font-family: var(--niv-font, 'Manrope', 'Noto Sans Arabic', system-ui, sans-serif);
}
.tk-ai-fab {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 1.15rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #0f4c81 0%, #1666a8 55%, #10ac84 140%);
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tk-ai-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 34px rgba(15, 76, 129, 0.4);
}
.tk-ai.is-open .tk-ai-fab {
  background: #0f4c81;
}
.tk-ai-fab__pulse {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(16, 172, 132, 0.45);
  animation: tkAiPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes tkAiPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
.tk-ai-fab__icon { display: grid; place-items: center; line-height: 0; }
.tk-ai-fab__label {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #10ac84;
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.38rem;
  box-shadow: 0 4px 10px rgba(16, 172, 132, 0.35);
}
.tk-ai-panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(3.6rem + 0.75rem);
  width: min(24.5rem, calc(100vw - 1.5rem));
  height: min(34rem, calc(100vh - 6.5rem));
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(16, 172, 132, 0.14), transparent 55%),
    #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.35rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}
.tk-ai-panel[hidden] { display: none !important; }
.tk-ai-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(120deg, #0f4c81, #1666a8);
  color: #fff;
}
.tk-ai-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.tk-ai-panel__avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}
.tk-ai-panel__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tk-ai-panel__sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  font-weight: 500;
  margin-top: 0.1rem;
}
.tk-ai-panel__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.tk-ai-panel__close:hover { background: rgba(255, 255, 255, 0.24); }
.tk-ai-panel__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}
.tk-ai-msg { display: flex; flex-direction: column; max-width: 92%; }
.tk-ai-msg--user { align-self: flex-end; align-items: flex-end; }
.tk-ai-msg--bot { align-self: flex-start; align-items: flex-start; }
.tk-ai-msg__bubble {
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 500;
  color: #0f172a;
}
.tk-ai-msg--user .tk-ai-msg__bubble {
  background: #0f4c81;
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}
[dir="rtl"] .tk-ai-msg--user .tk-ai-msg__bubble,
.tk-rtl .tk-ai-msg--user .tk-ai-msg__bubble {
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 0.35rem;
}
.tk-ai-msg--bot .tk-ai-msg__bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 0.35rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
[dir="rtl"] .tk-ai-msg--bot .tk-ai-msg__bubble,
.tk-rtl .tk-ai-msg--bot .tk-ai-msg__bubble {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 0.35rem;
}
.tk-ai-msg__bubble p { margin: 0 0 0.4rem; }
.tk-ai-msg__bubble p:last-child { margin-bottom: 0; }
.tk-ai-msg__li { margin: 0.15rem 0; }
.tk-ai-msg__meta {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  padding-inline: 0.25rem;
}
.tk-ai-msg--thinking .tk-ai-msg__bubble {
  color: #64748b;
  font-style: italic;
}
.tk-ai-panel__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.75rem 0.55rem;
}
.tk-ai-hint {
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  color: #0f4c81;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.tk-ai-hint:hover {
  background: #e8f4ff;
  border-color: #93c5e8;
}
.tk-ai-panel__form {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border-top: 1px solid #eef2f7;
  background: #fff;
}
.tk-ai-panel__input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  color: #0f172a;
  background: #f8fafc;
}
.tk-ai-panel__input:focus {
  outline: none;
  border-color: #10ac84;
  box-shadow: 0 0 0 3px rgba(16, 172, 132, 0.15);
  background: #fff;
}
.tk-ai-panel__send {
  border: 0;
  border-radius: 999px;
  padding: 0 1.05rem;
  font: inherit;
  font-weight: 750;
  font-size: 0.86rem;
  color: #fff;
  background: #10ac84;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 172, 132, 0.28);
  white-space: nowrap;
}
.tk-ai-panel__send:hover { background: #0d9472; }
@media (max-width: 480px) {
  .tk-ai {
    inset-inline-end: 0.75rem;
    bottom: 0.85rem;
  }
  .tk-ai-panel {
    width: calc(100vw - 1.2rem);
    height: min(70vh, 32rem);
  }
}

/* —— Wallet / Invoice / Plans studio —— */
.tk-wallet-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.tk-wallet-hero__card {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(135deg, #0f4c81 0%, #1a6bb0 55%, #0d3a63 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.22);
}
.tk-wallet-hero__card--usd {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #0f766e 100%);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.2);
}
.tk-wallet-hero__label { display: block; font-size: 0.78rem; opacity: 0.85; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tk-wallet-hero__value { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-top: 0.35rem; font-family: var(--niv-font-display); }
.tk-wallet-hero__unit { font-size: 0.8rem; opacity: 0.75; }
.tk-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
}
.tk-wallet-panel {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.04);
}
.tk-wallet-panel__title { margin: 0 0 0.85rem; font-size: 1.05rem; font-weight: 800; color: #0f4c81; }
.tk-wallet-panel__hint { margin: 0 0 0.85rem; color: #64748b; font-size: 0.88rem; }

.tk-invoice-studio {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
}
.tk-invoice-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f4c81;
}
.tk-help-editor {
  min-height: 10rem;
  background: #fff;
  border-radius: 0.65rem;
  direction: rtl;
}
.tk-help-editor .ql-toolbar.ql-snow {
  border-radius: 0.65rem 0.65rem 0 0;
  border-color: rgba(15, 76, 129, 0.18);
}
.tk-help-editor .ql-container.ql-snow {
  border-radius: 0 0 0.65rem 0.65rem;
  border-color: rgba(15, 76, 129, 0.18);
  min-height: 9rem;
  font-family: inherit;
}
.tk-invoice-studio__brand,
.tk-invoice-studio__details {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.35rem;
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 10px 28px rgba(15, 40, 70, 0.05);
}
.tk-invoice-uploads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.tk-logo-drop {
  border: 1.5px dashed rgba(15, 76, 129, 0.28);
  border-radius: 0.9rem;
  padding: 1rem;
  cursor: pointer;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  transition: border-color 0.15s, background 0.15s;
}
.tk-logo-drop:hover,
.tk-logo-drop.is-drag {
  border-color: #0f4c81;
  background: #eef6fc;
}
.tk-logo-drop__title { margin: 0; font-weight: 800; color: #0f4c81; font-size: 0.95rem; }
.tk-logo-drop__hint { margin: 0.25rem 0 0.75rem; font-size: 0.78rem; color: #64748b; }
.tk-logo-drop__preview {
  min-height: 5.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: rgba(15, 76, 129, 0.04);
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}
.tk-logo-drop__preview img { max-height: 4.5rem; max-width: 100%; object-fit: contain; }
.tk-invoice-phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.tk-billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.tk-billing-toggle__btn {
  border: 0;
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: 9px;
  font: inherit;
  font-weight: 750;
  font-size: 0.84rem;
  color: #64748b;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.tk-billing-toggle__btn:hover { color: #0f4c81; }
.tk-billing-toggle__btn.is-active {
  background: #0f4c81;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.22);
}
.tk-billing-toggle__btn:active { transform: scale(0.97); }

.tk-plans-page .tk-plans-status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.tk-plans-status__plan {
  font-size: 0.95rem !important;
  line-height: 1.35;
}
.tk-plans-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.tk-plans-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  align-items: stretch;
}
.tk-plan-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.2rem 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tk-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.12);
  border-color: rgba(15, 76, 129, 0.22);
}
.tk-plan-card__glow {
  position: absolute;
  inset-inline-end: -30%;
  top: -40%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.1), transparent 70%);
  pointer-events: none;
  animation: tkPlanGlow 6s ease-in-out infinite alternate;
}
.tk-plan-card--best .tk-plan-card__glow {
  background: radial-gradient(circle, rgba(16, 172, 132, 0.16), transparent 70%);
}
.tk-plan-card--mobile .tk-plan-card__glow {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14), transparent 70%);
}
.tk-plan-card--enterprise .tk-plan-card__glow {
  background: radial-gradient(circle, rgba(15, 76, 129, 0.16), transparent 70%);
}
@keyframes tkPlanGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-8%, 10%) scale(1.12); opacity: 1; }
}
.tk-plan-card.is-best {
  border-color: #10ac84;
  border-inline-start: 4px solid #10ac84;
  box-shadow: 0 10px 26px rgba(16, 172, 132, 0.14);
}
.tk-plan-card--enterprise {
  border-inline-start: 4px solid #0f4c81;
}
.tk-plan-card--mobile {
  border-inline-start: 4px solid #0891b2;
}
.tk-plan-card--starter {
  border-inline-start: 4px solid #94a3b8;
}
.tk-plan-card__badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  background: #10ac84;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  animation: tkPlanBadge 2.4s ease-in-out infinite;
  z-index: 1;
}
@keyframes tkPlanBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.tk-plan-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(15, 76, 129, 0.1);
  color: #0f4c81;
}
.tk-plan-card__icon svg { width: 1.2rem; height: 1.2rem; }
.tk-plan-card--best .tk-plan-card__icon {
  background: rgba(16, 172, 132, 0.14);
  color: #0f766e;
}
.tk-plan-card--mobile .tk-plan-card__icon {
  background: rgba(6, 182, 212, 0.14);
  color: #0891b2;
}
.tk-plan-card--enterprise .tk-plan-card__icon {
  background: rgba(15, 76, 129, 0.14);
  color: #0f4c81;
}
.tk-plan-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f4c81;
  font-family: var(--niv-font-display);
}
.tk-plan-card__price {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--niv-font-display);
  letter-spacing: -0.02em;
}
.tk-plan-card__price .js-price-iqd {
  display: inline-block;
  transition: transform .28s ease, opacity .28s ease;
}
.tk-plan-card__price .js-price-iqd.is-flip {
  animation: tkPriceFlip .32s ease;
}
@keyframes tkPriceFlip {
  0% { opacity: 0.35; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.tk-plan-card__price small {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  margin-inline-start: 0.2rem;
}
.tk-plan-card__save {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: #0f766e;
  font-weight: 750;
}
.tk-plan-card__desc {
  margin: 0.7rem 0 0.85rem;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  min-height: 2.7em;
}
.tk-plan-card__feats {
  list-style: none;
  margin: 0 0 1.05rem;
  padding: 0;
  font-size: 0.84rem;
  color: #334155;
  flex: 1;
}
.tk-plan-card__feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.35rem 0;
  line-height: 1.35;
}
.tk-plan-card__check {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #10ac84;
  display: inline-flex;
}
.tk-plan-card__check svg { width: 100%; height: 100%; }
.tk-plan-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
}
.tk-plan-card__actions .tk-dash-btn {
  justify-content: center;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .tk-plan-card,
  .tk-plan-card__glow,
  .tk-plan-card__badge,
  .tk-plan-card__price .js-price-iqd.is-flip {
    animation: none !important;
    transition: none !important;
  }
  .tk-plan-card:hover { transform: none; }
}

/* Plans expired / trial banners */
.tk-plans-expired,
.tk-plans-trial {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border-radius: 0.9rem;
  margin: 0 0 1.1rem;
  border: 1px solid transparent;
}
.tk-plans-expired {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fdba74;
  color: #9a3412;
}
.tk-plans-expired strong { display: block; margin-bottom: 0.2rem; }
.tk-plans-expired p { margin: 0; font-size: 0.9rem; line-height: 1.45; opacity: 0.92; }
.tk-plans-expired__ico {
  width: 1.35rem; height: 1.35rem; flex-shrink: 0; margin-top: 0.1rem;
  display: inline-flex; color: #ea580c;
}
.tk-plans-expired__ico svg { width: 100%; height: 100%; }
.tk-plans-trial {
  background: linear-gradient(135deg, #ecfeff, #e0f2fe);
  border-color: #7dd3fc;
  color: #0c4a6e;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Public /pricing — animated visitor page */
.tk-pricing-page {
  --tk-price-ink: #0b1f33;
  --tk-price-brand: #0f4c81;
  --tk-price-accent: #0ea5a4;
  overflow-x: hidden;
}
.tk-pricing-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.75rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(14, 165, 164, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 70% at 90% 10%, rgba(15, 76, 129, 0.14), transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 55%, #f8fafc 100%);
}
.tk-pricing-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  animation: tkPricingFloat 9s ease-in-out infinite;
}
.tk-pricing-hero__orb--a {
  width: 16rem; height: 16rem;
  background: rgba(14, 165, 164, 0.35);
  top: -2rem; inset-inline-start: -3rem;
}
.tk-pricing-hero__orb--b {
  width: 14rem; height: 14rem;
  background: rgba(15, 76, 129, 0.28);
  bottom: 0; inset-inline-end: -2rem;
  animation-delay: -3s;
}
@keyframes tkPricingFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 18px, 0) scale(1.06); }
}
.tk-pricing-hero__inner {
  position: relative;
  z-index: 1;
  width: min(44rem, calc(100% - 2.5rem));
  margin: 0 auto;
}
.tk-pricing-hero__brand {
  margin: 0 auto 1rem;
  line-height: 0;
  display: flex;
  justify-content: center;
}
.tk-pricing-hero__brand .niv-logo__img,
.tk-pricing-hero__brand .niv-logo__img--xl {
  height: clamp(2.75rem, 5.5vw, 3.5rem);
  max-width: min(15rem, 72vw);
}
.tk-pricing-hero__brand::after { display: none; }
@keyframes tkPricingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.75; }
}
.tk-pricing-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 750;
  color: #1e3a5f;
  letter-spacing: -0.02em;
}
.tk-pricing-hero__lead {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  color: #475569;
  line-height: 1.7;
  font-size: 1.02rem;
}
.tk-pricing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.tk-pricing-anim {
  animation: tkPricingRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tkPricingRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.tk-pricing-section {
  padding: 1.5rem 0 3.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}
.tk-pricing-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 2rem;
}
@media (max-width: 1100px) {
  .tk-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tk-pricing-grid { grid-template-columns: 1fr; }
}
.tk-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  padding: 1.35rem 1.2rem 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.tk-pricing-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}
.tk-pricing-card--best::before { background: linear-gradient(90deg, #0ea5a4, #0f4c81); }
.tk-pricing-card--mobile::before { background: linear-gradient(90deg, #2563eb, #0ea5a4); }
.tk-pricing-card--enterprise::before { background: linear-gradient(90deg, #0f172a, #334155); }
.tk-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 76, 129, 0.12);
  border-color: #cbd5e1;
}
.tk-pricing-card.is-best {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 42%);
}
.tk-pricing-card__badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  background: #0f4c81;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  animation: tkPricingPulse 2.8s ease-in-out infinite;
}
.tk-pricing-card__name {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tk-price-ink);
}
.tk-pricing-card__price {
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tk-price-brand);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.tk-pricing-card__price small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.tk-pricing-card__year {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #0f766e;
  font-weight: 650;
}
.tk-pricing-card__desc {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #64748b;
  min-height: 2.6em;
}
.tk-pricing-card__feats {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  flex: 1;
}
.tk-pricing-card__feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.38rem 0;
  font-size: 0.86rem;
  line-height: 1.35;
}
.tk-pricing-card__feats li span {
  width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.1rem;
  display: inline-flex;
}
.tk-pricing-card__feats li span svg { width: 100%; height: 100%; }
.tk-pricing-card__feats li.is-on { color: #0f172a; }
.tk-pricing-card__feats li.is-on span { color: #0ea5a4; }
.tk-pricing-card__feats li.is-off { color: #94a3b8; text-decoration: line-through; }
.tk-pricing-card__feats li.is-off span { color: #cbd5e1; }
.tk-pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--tk-price-brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.tk-pricing-card__cta:hover {
  background: #0a3a63;
  transform: translateY(-1px);
}
.tk-pricing-card--best .tk-pricing-card__cta {
  background: linear-gradient(135deg, #0ea5a4, #0f4c81);
}
.tk-pricing-what {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.tk-pricing-what h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tk-price-ink);
}
.tk-pricing-what ul {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: #475569;
  line-height: 1.75;
}
[dir="ltr"] .tk-pricing-what ul { padding: 0 0 0 1.1rem; }
.tk-pricing-note {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(14, 165, 164, 0.1), rgba(15, 76, 129, 0.08));
  border: 1px solid rgba(14, 165, 164, 0.25);
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) {
  .tk-pricing-anim,
  .tk-pricing-hero__orb,
  .tk-pricing-hero__brand::after,
  .tk-pricing-card__badge {
    animation: none !important;
  }
  .tk-pricing-card:hover { transform: none; }
}

