﻿/* NIV2FA × MuchWOW home-three — purple + yellow punch | prefix: niv- */
:root {
  --niv-brand: #5836C7;
  --niv-brand-dark: #462b9f;
  --niv-brand-darker: #352077;
  --niv-brand-light: #eeebf9;
  --niv-brand-soft: #bcafe9;
  --niv-brand-rgb: 88, 54, 199;
  --niv-yellow: #FFD200;
  --niv-yellow-hot: #ffdb33;
  --niv-pink: #FFA2E6;
  --niv-mint: #A2FFEE;
  --niv-sky: #9cd0fa;
  --niv-ink: #0e0e0f;
  --niv-panel: #1c1c1e;
  --niv-panel-2: #29292e;
  --niv-cream: #f6f6f6;
  --niv-white: #ffffff;
  --niv-slate-900: #0e0e0f;
  --niv-slate-800: #1c1c1e;
  --niv-slate-700: #29292e;
  --niv-slate-600: #37373d;
  --niv-slate-500: #45454c;
  --niv-slate-400: #6a6a70;
  --niv-slate-300: #8f8f94;
  --niv-slate-200: #dadadb;
  --niv-slate-100: #ececed;
  --niv-amber: #FFD200;
  --niv-red: #ea4335;
  --niv-blue: #078af3;
  --niv-radius: 16px;
  --niv-radius-pill: 999px;
  --niv-shadow: 6px 6px 0 #0e0e0f;
  --niv-shadow-lg: 10px 10px 0 #0e0e0f;
  --niv-shadow-xl: 14px 14px 0 #0e0e0f;
  --niv-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --niv-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --niv-font: 'Manrope', 'Noto Sans Arabic', system-ui, sans-serif;
  --niv-font-display: 'Syne', 'Manrope', 'Noto Sans Arabic', sans-serif;
  --niv-page-max: 72rem;
  --niv-page-side: clamp(1.25rem, 6vw, 4rem);
}
@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-brand);
  color: #fff;
  overflow-x: clip;
}
.niv-page-bg--light {
  background: var(--niv-cream);
  color: var(--niv-slate-800);
}
.niv-page-bg--yellow {
  background: var(--niv-yellow);
  color: var(--niv-ink);
}
.niv-page-bg:has(> .niv-site-header) { padding-top: 4.75rem; }
@media (max-width: 767px) {
  .niv-page-bg:has(> .niv-site-header) { padding-top: 4.25rem; }
}

.niv-site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 300;
  padding: 0.75rem 0 0; pointer-events: none;
}
.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: rgba(121, 94, 210, 0.38);
  backdrop-filter: blur(18px) saturate(1.25);
  border: 3px solid #0e0e0f;
  border-radius: 1.15rem;
  box-shadow: 6px 6px 0 #0e0e0f;
}
@media (max-width: 767px) {
  .niv-nav {
    border-radius: 1rem;
    overflow: hidden;
  }
  .niv-nav:has(.niv-mobile-menu.is-open) {
    border-radius: 1rem;
    background: rgba(88, 54, 199, 0.96);
  }
}
.niv-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 3.6rem; padding: 0.35rem 0.55rem 0.35rem 1rem;
}
.niv-nav__links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .niv-nav__links { display: flex; } }
.niv-nav__link {
  padding: 0.45rem 0.85rem; border-radius: var(--niv-radius-pill);
  font-weight: 600; font-size: 0.9rem; color: rgba(255,255,255,0.78);
}
.niv-nav__link:hover, .niv-nav__link.is-active { color: #fff; background: rgba(255,210,0,0.24); }
.niv-nav__actions { display: flex; align-items: center; gap: 0.4rem; }
.niv-nav__desk-auth { display: none; gap: 0.4rem; align-items: center; }
@media (min-width: 768px) { .niv-nav__desk-auth { display: inline-flex; } }

.niv-logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.niv-logo__mark {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  display: block;
  border-radius: 0.55rem;
}
.niv-logo__text { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: #fff; }
.niv-logo__accent { color: var(--niv-yellow); }
.niv-logo__text { font-family: var(--niv-font-display); }
.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: rgba(255,255,255,0.94);
  border-color: rgba(11,20,26,0.06);
}
.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-dark); 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: 999px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); cursor: pointer;
}
@media (min-width: 768px) { .niv-hamburger { display: none; } }
.niv-hamburger__bar { width: 1rem; height: 2px; background: #fff; 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 0.85rem; transition: max-height 0.35s var(--niv-ease), opacity 0.25s ease, padding 0.25s ease;
}
@media (max-width: 767px) {
  .niv-mobile-menu { display: flex; }
  .niv-mobile-menu.is-open {
    max-height: min(70vh, 28rem);
    opacity: 1;
    padding: 0.25rem 0.85rem 1rem;
  }
}
.niv-mobile-menu__link {
  display: block; padding: 0.85rem 0.65rem; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0.65rem;
}
.niv-mobile-menu__link:last-child { border-bottom: 0; }
.niv-mobile-menu__link:hover { background: rgba(255,210,0,0.18); }
.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: rgba(255,255,255,0.98);
}
/* App / admin / dashboard: light shell — dark menu text (landing keeps white on dark) */
.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-darker);
  background: var(--niv-brand-light);
}

.niv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.25rem; border-radius: 0.85rem; border: none;
  font-weight: 800; font-family: inherit; cursor: pointer; font-size: 0.92rem;
  transition: transform 0.25s var(--niv-spring), background 0.2s, filter 0.2s;
}
.niv-btn:hover { transform: rotate(-2deg) translateY(-2px); }
.niv-btn--primary {
  background: linear-gradient(135deg, var(--niv-yellow) 0%, var(--niv-pink) 100%);
  color: var(--niv-ink);
  border: 3px solid #0e0e0f;
  box-shadow: var(--niv-shadow);
}
.niv-btn--primary:hover { filter: brightness(1.05); }
.niv-btn--white {
  background: #fff;
  color: var(--niv-ink);
  border: 3px solid #0e0e0f;
  box-shadow: var(--niv-shadow);
}
.niv-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
}
.niv-btn--outline {
  background: #fff;
  color: var(--niv-brand-darker);
  border: 3px solid #0e0e0f;
  box-shadow: 4px 4px 0 #0e0e0f;
}
.niv-btn--secondary {
  background: linear-gradient(135deg, var(--niv-mint) 0%, var(--niv-sky) 100%);
  color: var(--niv-ink);
  border: 3px solid #0e0e0f;
  box-shadow: var(--niv-shadow);
}
.niv-btn--sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.niv-btn--lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.niv-btn--xl { padding: 1rem 1.85rem; font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.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: 1.15rem; padding: 1.35rem;
  border: 3px solid #0e0e0f; box-shadow: 6px 6px 0 #0e0e0f;
  min-width: 0; max-width: 100%; box-sizing: border-box;
  transition: transform 0.25s var(--niv-spring);
}
.niv-card:hover { transform: rotate(-1deg) translateY(-3px); }
.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: 999px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  background: var(--niv-brand-light); color: var(--niv-brand-darker);
}
.niv-card__badge--soon { background: #fff3cd; color: #92400e; }

.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: 1rem; padding: 1rem;
  border: 3px solid #0e0e0f; box-shadow: 4px 4px 0 #0e0e0f;
  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: 1.15rem; padding: 1.25rem;
  border: 3px solid #0e0e0f; box-shadow: 6px 6px 0 #0e0e0f; 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 { display: block; font-size: 0.8rem; font-weight: 700; 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; 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.85rem; background: #fff; }
.niv-table th {
  text-align: start; padding: 0.7rem 0.9rem; background: var(--niv-cream);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--niv-slate-500);
}
.niv-table td { padding: 0.75rem 0.9rem; border-top: 1px solid var(--niv-slate-100); }
.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: 999px; border: 1px solid rgba(255,255,255,0.2); background: transparent;
  color: inherit; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700;
}
.niv-page-bg--light .niv-lang__btn { border-color: var(--niv-slate-200); }
.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: #0b141a; }
.niv-chat-bubble--bot { align-self: flex-start; background: #1f2c34; }

/* ===== Auth split (UGCify-like) ===== */
.niv-auth-body { background: var(--niv-cream); min-height: 100vh; }
.niv-auth-lang { position: absolute; top: 1.15rem; inset-inline-end: 1.15rem; z-index: 210; }
.niv-auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--niv-cream); }
@media (min-width: 1024px) { .niv-auth-page { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.niv-auth-brand {
  display: none; position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,210,0,0.35), transparent 42%),
    linear-gradient(155deg, #120b28 0%, #352077 42%, #5836C7 100%);
  padding: 3rem 3.5rem;
}
.niv-auth-brand::after {
  content: ''; position: absolute; width: 18rem; height: 18rem;
  border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
  background: rgba(255,162,230,0.35); right: -4rem; bottom: -3rem;
  animation: ocBlob 10s ease-in-out infinite; pointer-events: none;
}
@keyframes ocBlob {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(-12px,10px) rotate(8deg); }
}
@media (min-width: 1024px) {
  .niv-auth-brand { display: flex; flex-direction: column; justify-content: center; position: sticky; top: 0; height: 100vh; }
}
.niv-auth-brand__content { position: relative; z-index: 1; max-width: 26rem; margin: 0 auto; width: 100%; }
.niv-auth-brand .niv-logo__text { color: #fff; }
.niv-auth-brand .niv-logo__accent { color: var(--niv-yellow); }
.niv-auth-brand__title {
  font-family: var(--niv-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2;
  margin: 1.5rem 0 1rem; letter-spacing: -0.02em; text-transform: uppercase;
}
.niv-auth-brand__text { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.7; margin-bottom: 2rem; }
.niv-auth-brand__features { display: flex; flex-direction: column; gap: 0.875rem; }
.niv-auth-brand__feat { display: flex; align-items: center; gap: 0.875rem; font-size: 0.9rem; font-weight: 500; }
.niv-auth-brand__feat-icon {
  width: 2.35rem; height: 2.35rem; border-radius: 999px; background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.niv-auth-brand__feat-icon svg { width: 1.125rem; height: 1.125rem; }
.niv-auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 4.5rem 1.25rem 2.5rem; min-height: 100vh;
  background: radial-gradient(ellipse 50% 40% at 100% 0%, rgba(88,54,199,0.16), transparent 50%), var(--niv-cream);
}
@media (min-width: 1024px) { .niv-auth-form-side { padding: 3rem 2rem; } }
.niv-auth-card {
  width: 100%; max-width: 26rem; background: #fff;
  border-radius: 1.35rem; padding: 2rem;
  box-shadow: 8px 8px 0 #0e0e0f; border: 3px solid #0e0e0f;
  animation: ocRise 0.7s var(--niv-spring) both;
}
@media (min-width: 640px) { .niv-auth-card { padding: 2.25rem 2.5rem; } }
@keyframes ocRise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.niv-auth-card__header { text-align: center; margin-bottom: 1.75rem; }
.niv-auth-card__logo { display: flex; justify-content: center; margin-bottom: 1rem; }
.niv-auth-card__logo .niv-logo__text { color: var(--niv-ink); }
.niv-auth-card__title { font-size: 1.5rem; font-weight: 800; color: var(--niv-slate-900); margin-bottom: 0.375rem; letter-spacing: -0.02em; }
.niv-auth-card__subtitle { font-size: 0.875rem; color: var(--niv-slate-500); }
.niv-auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--niv-slate-500); }
.niv-auth-footer a { color: var(--niv-brand-dark); font-weight: 700; }
.niv-auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--niv-slate-400); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.niv-auth-divider::before, .niv-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--niv-slate-200); }

/* 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 (same light style on home + inner pages) ===== */
.niv-footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(88,54,199,0.12), transparent 50%),
    radial-gradient(ellipse 45% 50% at 100% 100%, rgba(255,210,0,0.14), transparent 48%),
    linear-gradient(180deg, #fff 0%, #f6f6f6 55%, #eeebf9 100%);
  color: var(--niv-slate-600); padding: 2.75rem 0 1.5rem;
  border-radius: 2rem 2rem 0 0; margin-top: 2rem;
  border-top: 3px solid #0e0e0f; box-shadow: 0 -8px 0 rgba(14,14,15,0.06);
}
.niv-footer__glow {
  position: absolute; inset: auto auto -20% 20%; width: 28rem; height: 14rem;
  background: radial-gradient(circle, rgba(255,162,230,0.22), transparent 70%); pointer-events: none;
}
.niv-footer a { color: var(--niv-slate-600); transition: color 0.2s, transform 0.25s var(--niv-spring); }
.niv-footer a:hover { color: var(--niv-brand-dark); }
.niv-footer .niv-logo__text { color: var(--niv-ink); }
.niv-footer .niv-logo__accent { color: var(--niv-brand-dark); }
.niv-footer__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  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.5rem 1.75rem; }
}
.niv-footer__brand { max-width: 26rem; }
.niv-footer__brand p { margin-top: 0.85rem; font-size: 0.9rem; line-height: 1.65; }
.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.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 750;
  background: var(--niv-yellow); border: 2px solid #0e0e0f; color: var(--niv-ink); box-shadow: 2px 2px 0 #0e0e0f;
}
.niv-footer__heading { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--niv-ink); }
.niv-footer__links { list-style: none; display: grid; gap: 0.45rem; }
.niv-footer__links a { font-size: 0.9rem; font-weight: 600; }
.niv-footer__wa {
  display: inline-flex; margin-top: 0.85rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--niv-yellow), var(--niv-pink));
  color: #0e0e0f !important; font-weight: 800; font-size: 0.8rem;
  border: 2px solid #0e0e0f; box-shadow: 3px 3px 0 #0e0e0f;
}
.niv-footer__bottom {
  position: relative; z-index: 1; max-width: min(88rem, 100%); margin: 1.75rem auto 0;
  padding: 1rem 1rem 0; border-top: 1px solid rgba(11,20,26,0.06);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  font-size: 0.8rem; color: var(--niv-slate-500);
}

/* ===== 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;
}

/* Responsive 3-step card (home howto) */
.niv-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  background: #fff;
  color: #0e0e0f;
  border: 3px solid #0e0e0f;
  border-radius: 1.35rem;
  box-shadow: 10px 10px 0 #0e0e0f;
  padding: 1.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .niv-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .niv-steps__item {
    border-inline-end: 2px solid #ececed;
    border-radius: 0;
    padding: 1.35rem 1.15rem;
  }
  .niv-steps__item:last-child { border-inline-end: 0; }
}
.niv-steps__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .niv-steps__item { align-items: center; text-align: center; }
}
.niv-steps__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--niv-brand);
  color: #fff;
  border: 3px solid #0e0e0f;
  box-shadow: 3px 3px 0 #0e0e0f;
  display: grid;
  place-items: center;
  font-family: var(--niv-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.niv-steps__body {
  min-width: 0;
  width: 100%;
}
.niv-steps__title {
  margin: 0 0 0.35rem;
  font-family: var(--niv-font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #0e0e0f;
  line-height: 1.25;
}
.niv-steps__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--niv-slate-600);
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 639px) {
  .niv-steps__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f9f9fa;
    border-radius: 1rem;
    border: 2px solid #0e0e0f;
  }
  .niv-steps__title { font-size: 0.95rem; }
  .niv-steps__text { font-size: 0.85rem; }
}

.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); }
.niv-reveal { animation: ocRise 0.75s var(--niv-spring) both; animation-delay: var(--niv-delay, 0ms); }

/* ===== 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 */
.niv-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.niv-preloader.is-visible, .niv-preloader.is-boot { opacity: 1; pointer-events: auto; }
.niv-preloader.is-hidden { display: none; }
.niv-preloader__card {
  text-align: center; padding: 1.75rem 2rem;
  background: #fff; border-radius: 1.5rem;
  border: 1px solid var(--niv-slate-200);
  box-shadow: 0 20px 50px rgba(7, 94, 84, 0.12);
  min-width: min(18rem, 88vw);
}
.niv-preloader__mark {
  width: 3rem; height: 3rem; margin: 0 auto 0.85rem; border-radius: 0.9rem;
  background: linear-gradient(145deg, var(--niv-brand), var(--niv-brand-dark));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem;
  animation: niv-preloader-pulse 1.4s ease-in-out infinite;
}
.niv-preloader__word { display: flex; justify-content: center; gap: 0.08rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.niv-preloader__word span { display: inline-block; animation: ocRise 0.55s ease both; color: var(--niv-ink); }
.niv-preloader__word span:nth-child(1) { animation-delay: 0.05s; color: var(--niv-brand); }
.niv-preloader__word span:nth-child(2) { animation-delay: 0.1s; color: var(--niv-brand); }
.niv-preloader__word span:nth-child(3) { animation-delay: 0.15s; color: var(--niv-brand); }
.niv-preloader__word span:nth-child(4) { animation-delay: 0.2s; }
.niv-preloader__word span:nth-child(5) { animation-delay: 0.25s; }
.niv-preloader__word span:nth-child(6) { animation-delay: 0.3s; }
.niv-preloader__word span:nth-child(7) { animation-delay: 0.35s; }
.niv-preloader__bar {
  height: 0.35rem; border-radius: 999px; background: var(--niv-slate-100);
  margin: 1rem 0 0.75rem; overflow: hidden;
}
.niv-preloader__bar i {
  display: block; height: 100%; width: 40%; border-radius: inherit;
  background: linear-gradient(90deg, var(--niv-brand), var(--niv-brand-dark));
  animation: niv-preloader-bar 1.1s ease-in-out infinite;
}
.niv-preloader__hint { margin: 0; font-size: 0.85rem; color: var(--niv-slate-500); font-weight: 600; }
body.niv-loading { overflow: hidden; }
@keyframes niv-preloader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes niv-preloader-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
  .niv-preloader__mark, .niv-preloader__word span, .niv-preloader__bar i { animation: none !important; }
}

/* 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 — modals keep dim/blur; toasts never dim the page */
.swal2-container.swal2-backdrop-show:not(.swal2-toast-shown) {
  background: rgba(11, 20, 26, 0.45) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.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;
  /* Shrink host so it cannot paint a full-screen veil under the sidebar */
  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(26rem, calc(100vw - 1.5rem)) !important;
  padding: 1.55rem 1.45rem 1.35rem !important;
  border-radius: 1.85rem !important;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(37,211,102,0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(7,94,84,0.08), transparent 50%),
    rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(255,255,255,0.9) !important;
  box-shadow: 0 22px 56px rgba(11,20,26,0.18) !important;
  font-family: "Outfit", "Rubik", system-ui, sans-serif !important;
}
/* Slim toast (fallback if Swal toast still used) */
.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.22rem !important;
  font-weight: 800 !important;
  color: var(--niv-ink, #0b141a) !important;
  letter-spacing: -0.02em;
  font-family: inherit !important;
}
.swal2-html-container,
.niv-swal__text {
  font-size: 0.92rem !important;
  color: var(--niv-slate-500, #64748b) !important;
  font-weight: 500 !important;
  font-family: inherit !important;
}
.swal2-icon { margin: 0.35rem auto 0.9rem !important; border-width: 3px !important; }
.swal2-icon.swal2-success { border-color: #128c7e !important; color: #128c7e !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #128c7e !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(18,140,126,0.35) !important; }
.swal2-icon.swal2-error { border-color: #dc2626 !important; color: #dc2626 !important; }
.swal2-icon.swal2-warning { border-color: #d97706 !important; color: #b45309 !important; }
.swal2-icon.swal2-question { border-color: #25d366 !important; color: #075e54 !important; }
.swal2-actions,
.niv-swal__actions {
  gap: 0.55rem !important;
  margin-top: 1.15rem !important;
}
.swal2-styled,
.niv-swal__confirm,
.niv-swal__cancel {
  margin: 0 !important;
  padding: 0.65rem 1.15rem !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
  box-shadow: none !important;
}
.swal2-confirm,
.niv-swal__confirm {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: #0b141a !important;
  border: 0 !important;
}
.swal2-confirm:hover { filter: brightness(1.05); }
.swal2-cancel,
.niv-swal__cancel {
  background: #fff !important;
  color: var(--niv-slate-600, #475569) !important;
  border: 1.5px solid var(--niv-slate-200, #e2e8f0) !important;
}
.swal2-cancel:hover { background: var(--niv-cream, #f8fafc) !important; }
.swal2-timer-progress-bar { background: rgba(37,211,102,0.55) !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); }

/* ═══════════════════════════════════════════════════════════
   MuchWOW home-three spicy landing + motion
   ═══════════════════════════════════════════════════════════ */
.niv-mw-hero {
  position: relative; overflow: hidden;
  min-height: clamp(34rem, 88vh, 52rem);
  padding: 6.5rem 0 4rem;
  background: var(--niv-brand);
  color: #fff;
  text-align: center;
}
.niv-mw-hero__art {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  pointer-events: none; opacity: 0.95; z-index: 0;
}
.niv-mw-hero__art img { width: 100%; height: auto; display: block; }
.niv-mw-hero__inner {
  position: relative; z-index: 1;
  max-width: 44rem; margin: 0 auto;
  padding: 0 var(--niv-page-side);
  display: flex; flex-direction: column; align-items: center; gap: 1.35rem;
  animation: nivMwRise 0.85s var(--niv-spring) both;
}
@keyframes nivMwRise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}
.niv-mw-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(255,210,0,0.2); border: 2px solid #0e0e0f;
  color: var(--niv-yellow); font-weight: 800; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 #0e0e0f;
}
.niv-mw-hero__title {
  font-family: var(--niv-font-display);
  font-size: clamp(2.1rem, 7vw, 4.25rem);
  font-weight: 800; line-height: 0.98;
  text-transform: uppercase; letter-spacing: -0.02em;
  margin: 0; color: #fff;
  text-shadow: 3px 3px 0 rgba(14,14,15,0.35);
}
.niv-mw-hero__title em,
.niv-mw-hero__title .niv-mw-accent {
  font-style: normal; color: var(--niv-yellow);
  -webkit-text-stroke: 1.5px #0e0e0f;
  paint-order: stroke fill;
}
.niv-mw-hero__sub {
  max-width: 32rem; margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  color: rgba(255,255,255,0.88); line-height: 1.65;
}
.niv-mw-hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin-top: 0.35rem;
}
.niv-mw-marquee {
  background: #fff; color: #0e0e0f;
  border-block: 3px solid #0e0e0f;
  overflow: hidden; white-space: nowrap;
  font-family: var(--niv-font-display);
  font-weight: 800; font-size: clamp(1.15rem, 3vw, 1.85rem);
  text-transform: uppercase; letter-spacing: 0.02em;
  padding: 1.1rem 0;
}
.niv-mw-marquee__track {
  display: inline-flex; gap: 2rem; align-items: center;
  animation: nivMwMarquee 28s 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.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--niv-brand); border: 2px solid #0e0e0f; flex-shrink: 0;
}
.niv-mw-band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.niv-mw-band--yellow { background: var(--niv-yellow); color: #0e0e0f; }
.niv-mw-band--purple { background: var(--niv-brand); color: #fff; }
.niv-mw-band--cream { background: var(--niv-cream); color: #0e0e0f; }
.niv-mw-about {
  display: grid; gap: 1.75rem; align-items: center;
}
@media (min-width: 960px) {
  .niv-mw-about { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
}
.niv-mw-about__box {
  background: var(--niv-brand); color: #fff;
  border: 3px solid #0e0e0f; box-shadow: 12px 12px 0 #0e0e0f;
  border-radius: 1.15rem; padding: clamp(1.35rem, 3vw, 2.25rem);
  transform: rotate(-1deg);
}
.niv-mw-about__box h2 {
  font-family: var(--niv-font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-transform: uppercase; margin: 0 0 1rem;
  transform: rotate(-1deg); display: inline-block;
}
.niv-mw-about__box p { margin: 0 0 0.85rem; font-size: 1.02rem; line-height: 1.7; color: rgba(255,255,255,0.92); }
.niv-mw-about__art { display: none; text-align: center; }
@media (min-width: 960px) { .niv-mw-about__art { display: block; } }
.niv-mw-about__art img { max-width: 22rem; margin-inline: auto; filter: drop-shadow(8px 8px 0 rgba(14,14,15,0.25)); }
.niv-mw-howto__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.niv-mw-howto__head .niv-mw-kicker {
  display: block; color: var(--niv-yellow); font-weight: 800; font-size: 1.05rem; margin-bottom: 0.4rem;
}
.niv-mw-howto__head h2 {
  font-family: var(--niv-font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  text-transform: uppercase; margin: 0; color: #fff;
}
.niv-mw-steps {
  display: grid; gap: 2.25rem 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .niv-mw-steps { grid-template-columns: repeat(3, 1fr); } }
.niv-mw-step {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 1.35rem;
  padding: 2.75rem 1.25rem 1.75rem;
  text-align: center;
  transition: transform 0.3s var(--niv-spring);
}
.niv-mw-step:hover { transform: translateY(-6px) rotate(-1deg); }
.niv-mw-step__num {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #fff; color: #0e0e0f; border: 3px solid #0e0e0f;
  display: grid; place-items: center;
  font-family: var(--niv-font-display); font-weight: 800; font-size: 1.25rem;
  box-shadow: 3px 3px 0 #0e0e0f;
}
.niv-mw-step__img { height: 6.5rem; margin: 0.5rem auto 1rem; display: block; }
.niv-mw-step h3 {
  font-family: var(--niv-font-display);
  font-size: 1.2rem; text-transform: uppercase; margin: 0 0 0.5rem; color: #fff;
}
.niv-mw-step p { margin: 0; color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 1.55; }
.niv-mw-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center;
}
@media (min-width: 768px) { .niv-mw-stats { grid-template-columns: repeat(4, 1fr); } }
.niv-mw-stats strong {
  display: block; font-family: var(--niv-font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--niv-yellow); line-height: 1;
}
.niv-mw-stats span { font-size: 0.9rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.niv-mw-cta-box {
  background: #795ed2; color: #fff;
  border: 3px solid #0e0e0f; box-shadow: 12px 12px 0 #0e0e0f;
  border-radius: 1.15rem; padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center; max-width: 36rem; margin: 0 auto;
}
.niv-mw-cta-box h2 {
  font-family: var(--niv-font-display);
  text-transform: uppercase; margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.niv-mw-cta-box p { margin: 0 0 1.25rem; color: rgba(255,255,255,0.9); }
.niv-mw-faq details {
  background: #fff; border: 3px solid #0e0e0f; box-shadow: 4px 4px 0 #0e0e0f;
  border-radius: 0.95rem; padding: 1rem 1.15rem; margin-bottom: 0.85rem;
}
.niv-mw-faq summary {
  font-family: var(--niv-font-display); font-weight: 800;
  text-transform: uppercase; cursor: pointer; list-style: none;
}
.niv-mw-faq summary::-webkit-details-marker { display: none; }
.niv-mw-faq details[open] summary { color: var(--niv-brand); margin-bottom: 0.55rem; }
.niv-mw-faq p { margin: 0; color: var(--niv-slate-600); line-height: 1.6; }
.niv-mw-tip {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: rgba(255,210,0,0.2); border: 2px dashed #0e0e0f;
  border-radius: 0.85rem; padding: 0.85rem 1rem; margin-top: 1rem;
  font-size: 0.9rem; font-weight: 650; color: #0e0e0f;
}
.niv-mw-tip strong { color: var(--niv-brand-darker); }
.niv-backtop {
  position: fixed; bottom: 1.15rem; inset-inline-end: 1.15rem; z-index: 90;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--niv-yellow); color: #0e0e0f;
  border: 3px solid #0e0e0f; box-shadow: 4px 4px 0 #0e0e0f;
  display: grid; place-items: center; font-weight: 900; text-decoration: none;
  transition: transform 0.25s var(--niv-spring);
}
.niv-backtop:hover { transform: rotate(-8deg) scale(1.06); }
.niv-input:focus, .niv-select:focus, .niv-textarea:focus {
  outline: none; border-color: var(--niv-brand);
  box-shadow: 0 0 0 3px rgba(88,54,199,0.22);
}
.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, #fff6cc); }
a.niv-stat-card:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: 6px 6px 0 #0e0e0f; }
@media (prefers-reduced-motion: reduce) {
  .niv-mw-marquee__track, .niv-mw-hero__inner, .niv-card, .niv-mw-step { animation: none !important; transition: none !important; }
}

/* ── 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__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; }
.tk-sidebar__section-title {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.4);
  margin: .35rem .35rem .45rem;
}
.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.1);
  color: #0f172a;
}
.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; }
.tk-sidebar__icon--teal { background: rgba(81, 200, 194, 0.16); color: #0f766e; }
.tk-sidebar__icon--green { background: rgba(16, 185, 129, 0.16); color: #047857; }
.tk-sidebar__icon--emerald { background: rgba(52, 211, 153, 0.18); color: #059669; }
.tk-sidebar__icon--blue { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.tk-sidebar__icon--indigo { background: rgba(99, 102, 241, 0.15); color: #4338ca; }
.tk-sidebar__icon--violet { background: rgba(139, 92, 246, 0.15); color: #6d28d9; }
.tk-sidebar__icon--orange { background: rgba(249, 115, 22, 0.16); color: #c2410c; }
.tk-sidebar__icon--amber { background: rgba(245, 158, 11, 0.18); color: #b45309; }
.tk-sidebar__icon--cyan { background: rgba(34, 211, 238, 0.16); color: #0e7490; }
.tk-sidebar__icon--pink { background: rgba(236, 72, 153, 0.14); color: #be185d; }
.tk-sidebar__icon--rose { background: rgba(244, 63, 94, 0.14); color: #e11d48; }
.tk-sidebar__icon--slate { background: rgba(100, 116, 139, 0.14); color: #334155; }
.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: #ef4444;
  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:empty,
.tk-sidebar__badge[data-empty="1"] { 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: 1.25rem 1.25rem 2.5rem;
  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__label,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__chev,
  .tk-app-body.tk-sidebar-collapsed .tk-sidebar__divider {
    display: none !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__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 {
  /* Paper edge clearance — browsers may ignore this if Margins=None */
  @page {
    size: A4 portrait;
    margin: 16mm 14mm 18mm 14mm;
  }

  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .tk-sidebar, .tk-topbar, .tk-no-print, .niv-preloader, .tk-lang-switch,
  .tk-sidebar-backdrop, .niv-stat-grid, #tkPager, #tkSearchForm {
    display: none !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: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* Safe inset even when print dialog Margins = None / PDF driver ignores @page */
    padding: 10mm 12mm 12mm 12mm !important;
    margin: 0 !important;
  }

  .tk-bolt-print {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tk-bolt-print,
  .tk-inv,
  .tk-inv__table th,
  .tk-inv__table td {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Multi-page: repeat header row, never split a data row across pages */
  .tk-inv__table {
    page-break-inside: auto;
    break-inside: auto;
    width: 100% !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__head {
    page-break-after: avoid;
    break-after: avoid;
  }
  .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;
  }
  .tk-inv__brandbar {
    page-break-after: avoid;
  }
}

/* Professional modern A4 invoice */
.tk-bolt-print {
  direction: rtl;
  color: #0f172a;
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
.tk-inv {
  width: 100%;
  margin: 0 auto;
  color: #0f172a;
  box-sizing: border-box;
}
.tk-inv__brandbar {
  height: 5px;
  background: linear-gradient(90deg, #0b2f4d, #0f4c81 40%, #38bdf8);
  border-radius: 999px;
  margin-bottom: 12px;
}
.tk-inv__head {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  padding: 4px 2px 12px;
  border-bottom: 1.5px solid #cbd5e1;
}
.tk-inv__logo { text-align: center; }
.tk-inv__logo img {
  width: 92px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}
.tk-inv__logo-fallback {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 16px;
  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 {
  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__footer-msg {
  text-align: center;
  font-size: 11.5px;
  color: #475569;
  margin: 8px 0 10px;
  line-height: 1.5;
}
.tk-inv__footer-logo { text-align: center; margin-bottom: 8px; }
.tk-inv__footer-logo img {
  max-height: 40px;
  max-width: 150px;
  object-fit: contain;
}
.tk-inv__signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 34px;
  padding-top: 8px;
  direction: rtl;
}
.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 {
  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; }
}
.tk-batch-toolbar {
  margin-bottom: 1rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: end;
}

/* Bolt batch parity: compact horizontal grid (paddings/margins/sizes) */
.tk-batch-grid {
  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;
}
.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;
  display: inline-block;
  vertical-align: middle;
}
.tk-batch-grid .tk-combo {
  width: 97px;
  z-index: 1;
}
.tk-batch-grid .tk-combo__btn {
  box-sizing: border-box;
  width: 97px !important;
  max-width: 97px !important;
  min-width: 97px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 4px !important;
  font-size: 11px !important;
  font-weight: 700;
  border-radius: 5px;
  line-height: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-batch-grid .tk-combo.is-focused .tk-combo__btn,
.tk-batch-grid .tk-combo:focus .tk-combo__btn,
.tk-batch-grid .tk-combo.is-open .tk-combo__btn {
  border-color: #0f4c81;
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.18);
}
.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 ── */
.tk-bolt-list-card { padding: 1rem 1.1rem 1.15rem; }
.tk-bolt-filters { display: flex; flex-direction: column; gap: .75rem; }
.tk-bolt-filters__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .65rem .75rem;
  align-items: end;
}
.tk-bolt-filters__row--full { grid-template-columns: 1fr; }
.tk-bolt-filters__actions { display: flex; align-items: end; gap: .4rem; }
.tk-bolt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
  margin-top: 1rem;
  padding: .75rem .9rem;
  background: #cbe8ff;
  border-radius: 15px;
}
.tk-bolt-actions__btns { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-start; }
.niv-btn--dark {
  background: #1f2937;
  color: #fff;
  border: 1px solid #111827;
}
.niv-btn--dark:hover { background: #111827; color: #fff; }
.tk-bolt-sums { margin: .85rem 0; }
.tk-bolt-sums__table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #fff;
  border: 1px solid #d6dee8;
  border-radius: 12px;
  overflow: hidden;
}
.tk-bolt-sums__table td {
  padding: .65rem .5rem;
  border: 1px solid #e2e8f0;
  font-size: .9rem;
}
.tk-bolt-sums__table strong { font-size: 1rem; font-weight: 900; }
.tk-bolt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tk-bolt-orders {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
}
.tk-bolt-orders th,
.tk-bolt-orders td {
  padding: .25rem;
  vertical-align: middle;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}
.tk-bolt-orders thead th {
  background: #0f4c81;
  color: #fff;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 1;
}
.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: flex;
  gap: .25rem;
  justify-content: center;
  white-space: nowrap;
}
.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;
}
@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 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-bolt-actions { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tk-bolt-filters__row { grid-template-columns: 1fr 1fr; }
}


