:root {
  --bg: #080b18;
  --card: #121833;
  --card-2: #0f1430;
  --ink: #ecf0ff;
  --muted: #aeb7db;
  --primary: #6e67ff;
  --primary-2: #18c2ff;
  --line: #29315a;
}

* {
  box-sizing: border-box;
}

body,
input,
button,
textarea,
select {
  font-family: "Manrope", sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #2b2a68 0%, transparent 38%),
    radial-gradient(circle at 90% 20%, #10396d 0%, transparent 36%),
    radial-gradient(circle at 40% 90%, #211a50 0%, transparent 34%),
    var(--bg);
}

.container {
  max-width: 1160px;
}

.topline {
  border-bottom: 1px solid #25315f;
  background: #060a1b;
}

.topline-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  color: #9aa8dd;
  font-size: 0.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 34, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(95, 115, 187, 0.35);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  text-decoration: none;
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: #dbe3ff;
  font-weight: 700;
}

.btn-nav,
.btn-nav-ghost {
  border-radius: 12px;
  padding: 0.62rem 1rem;
  font-size: 0.92rem;
}

.btn-nav {
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
  color: #fff !important;
}

.btn-nav-ghost {
  margin: 0;
  border: 1px solid #475288;
  color: #d8deff !important;
  background: #141c3f !important;
}

.nav-inline-form {
  margin: 0;
}

.page-content {
  padding-top: 2.3rem;
  padding-bottom: 4rem;
}

.hero-v3 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  padding: 1.2rem;
  border: 1px solid #2d386e;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24, 31, 63, 0.94), rgba(10, 14, 35, 0.95));
  box-shadow: 0 22px 60px rgba(2, 4, 16, 0.45);
}

.three-scene {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.scene-layer {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0.4px);
}

.scene-layer-a {
  width: 360px;
  height: 360px;
  right: -40px;
  top: -80px;
  background: radial-gradient(circle, rgba(115, 112, 255, 0.72), rgba(45, 58, 140, 0.05));
  animation: layerFloat 8s ease-in-out infinite;
}

.scene-layer-b {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(24, 194, 255, 0.62), rgba(24, 194, 255, 0.02));
  animation: layerFloat 10s ease-in-out infinite reverse;
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 140, 228, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 140, 228, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 92%);
  pointer-events: none;
}

.hero-v3-copy,
.hero-v3-panel {
  position: relative;
  z-index: 1;
}

.hero-v3-copy h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #f7f9ff;
}

.hero-v3-copy p {
  color: #b8c1e7;
}

.hero-badges {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-badges span {
  background: rgba(108, 120, 204, 0.18);
  border: 1px solid rgba(130, 152, 255, 0.35);
  color: #dde4ff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-v3-panel {
  display: grid;
  gap: 0.75rem;
}

.hero-v3-panel article {
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(132, 146, 238, 0.26);
  background: linear-gradient(140deg, rgba(106, 103, 255, 0.17), rgba(17, 194, 255, 0.08));
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.tilt-card:hover {
  border-color: rgba(152, 167, 255, 0.65);
  box-shadow: 0 26px 44px rgba(2, 6, 18, 0.58);
}

.hero-v3-panel p,
.hero-v3-panel small {
  margin: 0;
  color: #c4cdf3;
}

.hero-v3-panel h3 {
  margin: 0.35rem 0 0.25rem;
  color: #fff;
}

.brand-strip {
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #2a345f;
  background: rgba(14, 20, 45, 0.88);
}

.brand-strip p {
  margin: 0 0 0.55rem;
  color: #9facdd;
  font-weight: 700;
}

.brand-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-strip span {
  border: 1px solid #334071;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  color: #e4eaff;
  font-size: 0.84rem;
}

.section-title {
  margin-bottom: 0.8rem;
}

.section-title h2 {
  margin: 0.2rem 0 0;
}

.deep-features {
  margin-top: 1.3rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #2c3869;
  background: rgba(12, 18, 42, 0.92);
}

.deep-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 0.9rem;
}

.deep-features-grid article {
  border-radius: 14px;
  border: 1px solid #2e3a68;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.deep-features-grid h4 {
  margin: 0 0 0.3rem;
  color: #f5f7ff;
}

.deep-features-grid p {
  margin: 0;
  color: #aab4df;
}

.split-showcase {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.split-copy,
.split-cards article {
  border-radius: 16px;
  border: 1px solid #2f3b6f;
  background: rgba(16, 23, 50, 0.9);
  padding: 1rem;
}

.split-copy ul {
  margin: 0.7rem 0 0;
}

.split-copy li {
  color: #b4bfe8;
  margin-bottom: 0.35rem;
}

.split-cards {
  display: grid;
  gap: 0.7rem;
}

.split-cards strong {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
}

.split-cards h4 {
  margin: 0.6rem 0 0.3rem;
}

.split-cards p {
  margin: 0;
  color: #a9b4dd;
}

.testimonials {
  margin-top: 1.35rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 0.9rem;
}

.testimonials-grid article {
  border-radius: 16px;
  border: 1px solid #2f3c6f;
  background: rgba(16, 22, 50, 0.9);
  padding: 1rem;
}

.testimonials-grid p {
  margin: 0 0 0.7rem;
  color: #c1caee;
}

.testimonials-grid strong {
  color: #f6f8ff;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 68vh;
}

.hero-copy {
  animation: fadeUp 0.7s ease both;
}

.kicker {
  color: #8fa0ff;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.hero h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-sub {
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.cta-main {
  border-radius: 13px !important;
  border: 0 !important;
  background: linear-gradient(130deg, var(--primary), var(--primary-2)) !important;
  color: #fff !important;
}

.hero-visual {
  animation: fadeUp 0.95s ease both;
  position: relative;
  min-height: 380px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
  animation: float 5.8s ease-in-out infinite;
}

.orb-a {
  width: 240px;
  height: 240px;
  right: 1rem;
  top: 0;
  background: linear-gradient(130deg, #8b88ff, #5e57ff);
}

.orb-b {
  width: 170px;
  height: 170px;
  left: 2rem;
  bottom: 2rem;
  background: linear-gradient(130deg, #84ceff, #4f89ff);
  animation-delay: 0.5s;
}

.orb-c {
  width: 90px;
  height: 90px;
  left: 0;
  top: 4rem;
  background: #d2b4ff;
  animation-delay: 1s;
}

.glass-card {
  position: absolute;
  right: 2.5rem;
  bottom: 1.2rem;
  width: 250px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(52, 55, 142, 0.15);
}

.glass-card h4 {
  margin-bottom: 0.2rem;
}

.glass-card p {
  margin-bottom: 0.2rem;
  color: #59607f;
}

.glass-card strong {
  color: #4f4adb;
  font-size: 1.5rem;
}

.stats-row {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem;
}

.stats-row article,
.service-grid article,
.recent-sales {
  animation: fadeUp 0.9s ease both;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid #e7e9ff;
  box-shadow: 0 14px 30px rgba(56, 64, 146, 0.08);
}

.stats-row article {
  text-align: center;
  padding: 1rem 0.75rem;
}

.stats-row h3 {
  margin: 0;
  color: #f4f6ff;
}

.stats-row p {
  margin: 0.4rem 0 0;
  color: #aeb8dd;
}

.service-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 1rem;
}

.service-grid article {
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 34px rgba(61, 66, 162, 0.13);
}

.service-grid h4 {
  margin: 0 0 0.45rem;
}

.service-grid p {
  margin: 0;
  color: #aab4df;
  font-size: 0.95rem;
}

.recent-sales {
  margin-top: 1.3rem;
  padding: 1rem;
}

.about-block {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.about-block > div,
.about-card,
.process-grid article,
.price-card,
.faq-grid details,
.cta-band,
.site-footer {
  background: var(--card-2);
  border: 1px solid #2d3969;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(3, 6, 18, 0.42);
}

.about-block > div,
.about-card {
  padding: 1rem;
}

.about-meters {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.about-meters article {
  flex: 1;
  border-radius: 14px;
  background: #141c40;
  padding: 0.8rem;
}

.about-meters strong {
  font-size: 1.6rem;
  color: #4e46de;
  display: block;
}

.about-meters span {
  color: #b3bde3;
  font-size: 0.92rem;
}

.about-card h4 {
  margin-bottom: 0.8rem;
}

.about-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.about-card li {
  color: #b4bee4;
  margin-bottom: 0.5rem;
}

.process-section {
  margin-top: 1.4rem;
}

.process-section h2 {
  margin-bottom: 0.75rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.process-grid article {
  padding: 1rem;
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.6rem;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
}

.process-grid h4 {
  margin: 0 0 0.4rem;
}

.process-grid p {
  margin: 0;
  color: #b3bde3;
  font-size: 0.93rem;
}

.pricing-section {
  margin-top: 1.4rem;
}

.pricing-section h2 {
  margin-bottom: 0.7rem;
}

.billing-switch {
  width: fit-content;
  display: flex;
  gap: 0.5rem;
  border: 1px solid #374679;
  background: #131a3b;
  border-radius: 999px;
  padding: 0.24rem;
}

.billing-btn {
  border: 0;
  margin: 0;
  color: #c4cbed;
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
}

.billing-btn.is-active {
  color: #fff;
  background: linear-gradient(130deg, var(--primary), var(--primary-2));
}

.pricing-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 1rem;
}

.price-card {
  padding: 1rem;
}

.plan-name {
  margin: 0;
  color: #c8d0f3;
  font-weight: 700;
}

.plan-price {
  margin: 0.45rem 0 0.2rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.plan-cycle {
  color: #a6b0d8;
  margin: 0 0 0.75rem;
}

.price-card ul {
  margin-bottom: 1rem;
}

.faq-section {
  margin-top: 1.4rem;
}

.faq-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 1rem;
}

.faq-grid details {
  padding: 0.8rem 0.9rem;
}

.faq-grid summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-grid p {
  color: #b4bee3;
  margin: 0.65rem 0 0;
}

.cta-band {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.4rem 1rem;
}

.cta-band h3 {
  margin-bottom: 0.45rem;
}

.cta-band p {
  color: #bac4e8;
}

.cta-band div {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 1.4rem;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 1rem;
}

.site-footer h4,
.site-footer strong {
  margin: 0 0 0.4rem;
}

.site-footer p {
  margin: 0.22rem 0;
  color: #bac4e9;
}

.site-footer a {
  color: #b8c6ff;
  text-decoration: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.section-head h3 {
  margin: 0;
}

.link-more {
  color: #b7c5ff;
  text-decoration: none;
  font-weight: 700;
}

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-head h2 {
  margin: 0.2rem 0 0.45rem;
}

.app-head p {
  margin: 0;
  color: #b1bcdf;
}

.app-head-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.kpi-grid article {
  background: var(--card);
  border: 1px solid #e7e9ff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(56, 64, 146, 0.08);
}

.kpi-grid p {
  margin: 0 0 0.35rem;
  color: #b2bde1;
}

.kpi-grid h3 {
  margin: 0;
  color: #f3f6ff;
}

.data-card {
  background: var(--card);
  border: 1px solid #e7e9ff;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(56, 64, 146, 0.08);
  padding: 1rem;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.modern-form p {
  margin-bottom: 0.75rem;
}

.modern-form label {
  font-weight: 700;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  border-radius: 12px;
  border-color: #3a477f;
  background: #11193b;
  color: #eef2ff;
}

.modern-form button {
  width: 100%;
  margin-top: 0.5rem;
}

.current-plan {
  margin-bottom: 1rem;
  color: #c0caec;
}

table {
  margin: 0;
  font-size: 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  background: #11193a;
}

body.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: Inter, Manrope, sans-serif;
  color: #002048;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(44,134,224,.14), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(18,179,161,.12), transparent 50%),
    #f4f7fb;
}

.auth-wrap {
  width: min(440px, 92vw);
}

.auth-card {
  max-width: 460px;
  margin: 6vh auto;
  border-radius: 20px;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e2e8f2;
  box-shadow: 0 12px 30px -12px rgba(6,20,45,.18);
  color: #002048;
}

.auth-card h2 {
  margin-top: 0.2rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
}

.auth-card p {
  color: #5b6b85;
}

.auth-card form {
  margin-bottom: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes layerFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

  .deep-features-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .split-showcase {
    grid-template-columns: 1fr;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 300px;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

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

  .about-block {
    grid-template-columns: 1fr;
  }

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

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

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .app-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

@media (max-width: 640px) {
  .topline-wrap {
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .stats-row,
  .deep-features-grid,
  .service-grid,
  .process-grid,
  .pricing-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .about-meters {
    flex-direction: column;
  }
}

/* Reference-style landing redesign */
.nav-shell {
  margin-top: 0.7rem;
  border-radius: 14px;
  border: 1px solid #1a1f35;
  background: rgba(15, 18, 25, 0.88);
  padding: 0.8rem 1rem;
}

.site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  font-size: 2rem;
  color: #14b9ff;
}

.site-nav {
  gap: 1.5rem;
}

.site-nav > a:not(.btn-nav):not(.btn-nav-ghost) {
  color: #c2c8d9;
  font-size: 0.98rem;
}

.btn-nav {
  min-width: 110px;
  text-align: center;
  border-radius: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #12a9ff, #30d3ff);
  color: #0a0e19 !important;
}

.btn-nav-ghost {
  min-width: 56px;
  text-align: center;
  border-radius: 10px;
  border-color: #30374f;
  background: #202532 !important;
  color: #d7dcec !important;
}
.btn-nav-ghost.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  line-height: 0;
}
.btn-nav-ghost.btn-install svg {
  display: block;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
}

.ref-hero {
  margin-top: 1rem;
  border-radius: 20px;
  border: 1px solid #161b2f;
  background:
    radial-gradient(circle at 50% 18%, rgba(21, 164, 255, 0.28) 0%, rgba(5, 8, 16, 0) 35%),
    radial-gradient(circle at 50% 80%, rgba(20, 160, 255, 0.22) 0%, rgba(8, 11, 20, 0) 40%),
    #06080f;
  padding: 4rem 1.2rem 3.5rem;
  text-align: center;
}

.ref-badge {
  display: inline-block;
  margin: 0;
  border: 1px solid #1d3f60;
  background: rgba(20, 30, 48, 0.78);
  color: #5cbdf5;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.ref-hero h1 {
  margin: 1rem auto 0.9rem;
  max-width: 900px;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f5f7ff;
}

.ref-hero h1 span {
  background: linear-gradient(92deg, #16b4ff 0%, #7b8dff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ref-sub {
  margin: 0 auto;
  max-width: 760px;
  color: #aeb6cc;
  font-size: 1.1rem;
}

.ref-actions {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.ref-btn-main,
.ref-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.82rem 1.1rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.ref-btn-main {
  background: linear-gradient(135deg, #11a5ff, #22d2ff);
  color: #04101b;
}

.ref-btn-ghost {
  background: #171e2b;
  color: #dae1f4;
  border: 1px solid #2b3447;
}

.ref-features {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.8rem;
}

.ref-features article {
  background: #0c101b;
  border: 1px solid #1f2538;
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
}

.ref-features h3 {
  margin: 0;
  color: #39c9ff;
}

.ref-features p {
  margin: 0.35rem 0 0;
  color: #a7afc7;
  font-size: 0.88rem;
}

.ref-pricing-wrap {
  margin-top: 1.3rem;
  border: 1px solid #161c30;
  border-radius: 18px;
  background: #070a12;
  padding: 1rem;
}

.ref-pricing-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 1rem;
}

.ref-plan {
  position: relative;
  border-radius: 16px;
  border: 1px solid #2b2f3c;
  background: linear-gradient(160deg, #101214, #0a0c10);
  padding: 1.2rem;
}

.ref-plan.is-featured {
  border-color: #17adff;
  box-shadow: 0 0 0 1px rgba(23, 173, 255, 0.35), 0 0 40px rgba(23, 173, 255, 0.22);
  background: linear-gradient(170deg, #081521, #081018);
}

.popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  font-size: 0.75rem;
  color: #00101a;
  background: #1ec8ff;
  font-weight: 800;
}

.ref-plan h4 {
  margin: 0;
  font-size: 2rem;
}

.plan-caption {
  margin: 0.35rem 0 0.6rem;
  color: #a0a8bf;
}

.ref-plan .plan-price {
  margin: 0.2rem 0;
  color: #f4f7ff;
}

.ref-plan .plan-cycle {
  color: #a0a8bf;
  margin-bottom: 0.7rem;
}

.ref-plan-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: #dfe6f8;
  background: #2a2d33;
}

.ref-plan.is-featured .ref-plan-btn {
  color: #00101a;
  background: linear-gradient(135deg, #15abff, #2ad8ff);
}

.ref-plan ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.ref-plan li {
  color: #ced5e8;
  margin-bottom: 0.48rem;
}

.ref-cta {
  margin-top: 1.3rem;
  border-radius: 0;
  border: 1px solid #282e50;
  background: linear-gradient(90deg, #24396f, #351a59);
  text-align: center;
  padding: 2.5rem 1rem;
}

.ref-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.ref-cta p {
  margin: 0.6rem auto 1rem;
  max-width: 760px;
  color: #c4cae0;
}

.ref-cta-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto;
  max-width: 650px;
}

.ref-cta-form input {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #5d6898;
  background: rgba(39, 52, 92, 0.65);
  color: #edf1ff;
  height: 54px;
}

.ref-cta-form button {
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea6ff, #26d0ff);
  color: #02121c;
  font-weight: 800;
  min-width: 160px;
}

.ref-cta-bullets {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #c6cde5;
}

.ref-footer {
  margin-top: 0;
  border: 1px solid #111625;
  background: #05070c;
  padding: 2rem 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1.2rem;
}

.ref-footer h4,
.ref-footer strong {
  margin: 0 0 0.5rem;
}

.ref-footer p {
  margin: 0.3rem 0;
  color: #a5adc6;
}

.ref-footer a {
  color: #cdd4ea;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 0.7rem;
  }

  .ref-pricing-grid,
  .ref-features,
  .ref-footer {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-shell {
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
  }

  .site-nav > a:not(.btn-nav):not(.btn-nav-ghost) {
    font-size: 0.88rem;
  }

  .ref-pricing-grid,
  .ref-features,
  .ref-footer {
    grid-template-columns: 1fr;
  }

  .ref-cta-form {
    flex-direction: column;
  }
}

/* ========== Landing (reference) ========== */
.brand-logo img { display: block; height: 36px; width: auto; }
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}
.lp-badge {
  display: inline-flex;
  border: 1px solid rgba(0,163,255,.35);
  background: rgba(0,163,255,.1);
  color: #66c4ff;
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .75rem;
  font-weight: 600;
}
.lp-hero-copy h1 {
  margin: 1rem 0 .9rem;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
}
.lp-hero-copy h1 span {
  background: linear-gradient(90deg, #00a3ff, #6b8cff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-sub { color: #8892a8; font-size: 1.05rem; line-height: 1.65; max-width: 34rem; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; align-items: center; }
.lp-actions.center { justify-content: center; }
.lp-btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #00a3ff; color: #fff !important; text-decoration: none;
  border-radius: 999px; padding: .85rem 1.4rem; font-weight: 700;
  box-shadow: 0 0 28px rgba(0,163,255,.35); border: 0; cursor: pointer;
}
.lp-btn-primary:hover { background: #33b5ff; }
.lp-btn-outline {
  display: inline-flex; border: 1px solid rgba(255,255,255,.2); color: #fff !important;
  text-decoration: none; border-radius: 999px; padding: .85rem 1.4rem; font-weight: 700;
  background: transparent;
}
.lp-btn-outline:hover { background: rgba(255,255,255,.06); }
.lp-link { color: #8892a8; text-decoration: none; font-weight: 600; }
.lp-link:hover { color: #fff; }
.lp-hero-visual { position: relative; display: flex; justify-content: center; }
.lp-hero-glow {
  position: absolute; inset: -10% -5%;
  background: radial-gradient(circle, rgba(0,163,255,.25), transparent 65%);
  filter: blur(40px); z-index: 0;
}
.lp-hero-img {
  position: relative; z-index: 1; width: min(100%, 620px); height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
  animation: lpFloat 6s ease-in-out infinite;
}
@keyframes lpFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.lp-section { padding: 4.5rem 0 1rem; }
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.lp-section-head.left { text-align: left; margin-left: 0; }
.lp-kicker {
  color: #00a3ff; font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .6rem;
}
.lp-section-head h2 { margin: 0 0 .6rem; color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.lp-section-head p { color: #8892a8; margin: 0; }
.lp-feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem;
}
.lp-feature {
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  background: rgba(255,255,255,.03); padding: 1.25rem 1.2rem;
  transition: transform .25s ease, border-color .25s ease;
}
.lp-feature:hover { transform: translateY(-4px); border-color: rgba(0,163,255,.35); }
.lp-feature-icon {
  display: inline-flex; width: 2.5rem; height: 2.5rem; border-radius: 12px;
  align-items: center; justify-content: center; font-size: 1.1rem;
  background: rgba(0,163,255,.12); margin-bottom: .7rem;
}
.lp-feature h3 { margin: 0 0 .4rem; color: #fff; font-size: 1.05rem; }
.lp-feature p { margin: 0; color: #8892a8; font-size: .9rem; line-height: 1.5; }
.tone-green .lp-feature-icon { background: rgba(52,211,153,.12); }
.tone-purple .lp-feature-icon { background: rgba(167,139,250,.12); }
.tone-orange .lp-feature-icon { background: rgba(251,146,60,.12); }
.tone-cyan .lp-feature-icon { background: rgba(34,211,238,.12); }
.tone-pink .lp-feature-icon { background: rgba(244,114,182,.12); }
.lp-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  margin: 3rem 0; padding: 1.5rem; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(0,163,255,.05);
  text-align: center;
}
.lp-stats strong { display: block; font-size: 1.8rem; color: #00a3ff; }
.lp-stats span { color: #8892a8; font-size: .85rem; }
.lp-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem; }
.lp-plan {
  position: relative; border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  background: rgba(255,255,255,.03); padding: 1.5rem 1.35rem;
}
.lp-plan.is-featured {
  border-color: rgba(0,163,255,.4);
  background: linear-gradient(180deg, rgba(0,163,255,.12), transparent);
  box-shadow: 0 0 40px rgba(0,163,255,.12);
}
.lp-popular {
  position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
  background: #00a3ff; color: #fff; font-size: .7rem; font-weight: 800;
  border-radius: 999px; padding: .2rem .7rem;
}
.lp-plan h3 { margin: .2rem 0; color: #fff; }
.lp-plan-desc { color: #8892a8; font-size: .85rem; margin: 0 0 .8rem; }
.lp-plan .plan-price { color: #fff; font-size: 1.8rem; font-weight: 800; margin: 0; }
.lp-plan .plan-cycle { color: #8892a8; font-size: .85rem; margin: .2rem 0 1rem; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.lp-plan li {
  color: #c5cdd9; font-size: .9rem; padding: .35rem 0 .35rem 1.3rem;
  position: relative;
}
.lp-plan li::before {
  content: "?"; position: absolute; left: 0; color: #00a3ff; font-weight: 800;
}
.lp-plan-btn {
  display: block; text-align: center; text-decoration: none; border-radius: 12px;
  padding: .75rem; font-weight: 700; color: #fff !important;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.lp-plan.is-featured .lp-plan-btn { background: #00a3ff; border-color: transparent; }
.lp-integration-row {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.lp-integration-row span {
  border: 1px solid rgba(255,255,255,.1); border-radius: 999px;
  padding: .55rem 1.1rem; color: #d1d9e6; font-weight: 600; background: rgba(255,255,255,.03);
}
.lp-faq-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
.lp-faq-list details {
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  background: rgba(255,255,255,.03); margin-bottom: .7rem; overflow: hidden;
}
.lp-faq-list summary {
  cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; color: #fff; list-style: none;
}
.lp-faq-list details p { margin: 0; padding: 0 1.1rem 1rem; color: #8892a8; font-size: .92rem; }
.lp-faq-cta {
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  background: rgba(0,163,255,.08); padding: 1.8rem; min-height: 220px;
}
.lp-faq-cta h3 { color: #fff; margin-top: 0; }
.lp-faq-cta p { color: #8892a8; }
.lp-cta {
  margin: 3.5rem 0 2rem; text-align: center; padding: 2.5rem 1.5rem;
  border-radius: 22px; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 50% 0%, rgba(0,163,255,.18), transparent 60%), rgba(255,255,255,.03);
}
.lp-cta h2 { color: #fff; margin: 0 0 .6rem; }
.lp-cta p { color: #8892a8; margin: 0 0 1.3rem; }
.lp-footer {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem;
  padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255,255,255,.06); margin-top: 2rem;
}
.lp-footer-brand p { color: #8892a8; font-size: .9rem; max-width: 260px; }
.lp-footer strong { display: block; color: #fff; margin-bottom: .7rem; }
.lp-footer a { display: block; color: #8892a8; text-decoration: none; margin: .35rem 0; font-size: .9rem; }
.lp-footer a:hover { color: #fff; }

/* Auth (light ? matches landing / cabinet) */
body.auth-body {
  min-height: 100vh; display: grid; place-items: center;
  margin: 0;
  font-family: Inter, Manrope, sans-serif;
  color: #002048 !important;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(44,134,224,.14), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(18,179,161,.12), transparent 50%),
    #f4f7fb !important;
}
.auth-wrap { width: min(440px, 92vw); }
.auth-card {
  border: 1px solid #e2e8f2; border-radius: 20px;
  background: #fff; padding: 2rem; color: #002048;
  box-shadow: 0 12px 30px -12px rgba(6,20,45,.18);
}
.auth-logo { margin-bottom: 1rem; display: block; height: 36px; width: auto; }
.auth-card .kicker {
  color: #12b3a1; font-size: .72rem; letter-spacing: .14em; font-weight: 700;
  font-family: "Space Grotesk", Manrope, sans-serif; margin: 0;
}
.auth-card h2 {
  margin: .35rem 0 .4rem; color: #002048; font-size: 1.7rem;
  font-family: "Space Grotesk", Manrope, sans-serif; letter-spacing: -.01em;
}
.auth-card > p { color: #5b6b85; margin: 0 0 1rem; line-height: 1.45; }
.auth-form label {
  display: block; margin: .85rem 0 .35rem; color: #5b6b85;
  font-size: .88rem; font-weight: 600;
}
.auth-form input {
  width: 100%; box-sizing: border-box; border-radius: 12px;
  border: 1px solid #e2e8f2; background: #f8fafc; color: #002048;
  padding: .75rem .9rem; font: inherit;
}
.auth-form input:focus {
  outline: none; border-color: #2c86e0;
  box-shadow: 0 0 0 3px rgba(44,134,224,.15);
}
.auth-form .errorlist { color: #b91c1c; list-style: none; padding: 0; margin: .5rem 0 0; font-size: .85rem; }
.auth-submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 1.25rem; border: 0; cursor: pointer;
  border-radius: 12px; padding: .75rem 1rem; font: inherit; font-weight: 700;
  color: #fff;
  background: linear-gradient(100deg, #2c86e0 0%, #12b3a1 55%, #3fd07a 100%);
  box-shadow: 0 10px 24px -8px rgba(18,179,161,.55);
}
.auth-submit:hover { filter: brightness(1.03); }
.auth-hint { margin-top: 1rem; font-size: .85rem; color: #5b6b85; }
.auth-hint strong { color: #002048; }
.auth-hint code { font-size: .8rem; word-break: break-all; }
.auth-errors { list-style: none; padding: .75rem 1rem; margin: 0 0 1rem; background: #fef2f2; color: #b91c1c; border-radius: 10px; font-size: .9rem; }
.auth-errors li + li { margin-top: .35rem; }
.auth-back {
  display: inline-block; margin-top: .75rem; color: #2c86e0;
  text-decoration: none; font-size: .9rem; font-weight: 600;
}
.auth-back:hover { color: #12b3a1; }

/* ========== Cabinet / Personal dashboard (light, matches landing) ========== */
.cabinet-body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(44,134,224,.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(18,179,161,.1), transparent 50%),
    #f4f7fb;
  color: #002048;
  font-family: Inter, Manrope, sans-serif;
  overflow-x: hidden;
}
.cabinet-splash {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}
.cabinet-splash.is-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.cabinet-splash-stage {
  position: relative;
  width: min(560px, 82vw);
  height: auto;
  min-height: 112px;
  display: grid; place-items: center;
}
.cabinet-splash-logo-clip {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  clip-path: inset(0 100% 0 0);
  animation: cab-splash-reveal .55s cubic-bezier(.22,.75,.28,1) forwards;
}
.cabinet-splash-logo {
  width: min(520px, 78vw);
  max-width: 896px;
  height: auto;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.cabinet-splash-beam {
  position: absolute; top: -18%; bottom: -18%;
  width: 72px; margin-left: -36px; left: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(18,179,161,.08) 28%,
    rgba(44,134,224,.55) 52%,
    rgba(18,179,161,.2) 68%,
    transparent 100%);
  animation: cab-splash-beam .55s cubic-bezier(.22,.75,.28,1) forwards;
}
.cabinet-splash-beam::after {
  content: "";
  position: absolute; top: 8%; bottom: 8%; left: 48%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(6,48,94,.55), transparent);
  box-shadow: 0 0 10px rgba(44,134,224,.35);
}
@keyframes cab-splash-reveal {
  0% { clip-path: inset(0 100% 0 0); opacity: .35; }
  55% { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes cab-splash-beam {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Skeleton loading (shimmer) */
.sk {
  display: block;
  border-radius: 14px;
  background: linear-gradient(90deg, #e8ecf3 0%, #f4f6fa 42%, #e8ecf3 84%);
  background-size: 220% 100%;
  animation: cab-skel-shimmer 1.15s ease-in-out infinite;
}
@keyframes cab-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.cab-skel {
  display: none;
  gap: .75rem;
  padding: 0;
  margin: 0;
}
html.cabinet-booting .cabinet-content {
  display: none !important;
}
html.cabinet-booting .cab-skel {
  display: grid;
  opacity: 1;
  visibility: visible;
}
html.cabinet-ready .cab-skel {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
html.cabinet-ready .cabinet-content {
  display: block;
}
.cab-skel-banner { height: 72px; border-radius: 14px; }
.cab-skel-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.cab-skel-chips .sk { height: 28px; width: 64px; border-radius: 10px; flex: 0 0 auto; }
.cab-skel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.cab-skel-cards .sk { height: 88px; border-radius: 14px; min-height: 0; aspect-ratio: auto; }
.cab-inline-skel { display: grid; gap: .75rem; }
.cab-inline-skel--chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.cab-inline-skel--mix .sk { height: 44px; border-radius: 12px; }
.cab-inline-skel--stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .65rem;
}
.cab-inline-skel--stats .sk { height: 92px; border-radius: 14px; }
.cab-inline-skel--tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.cab-inline-skel--tiles .sk { height: 108px; border-radius: 14px; }
.cab-inline-skel--chart .sk { height: 180px; border-radius: 16px; }
.cab-inline-skel--lines { display: grid; gap: .45rem; }
.cab-inline-skel--lines .sk { height: 14px; border-radius: 8px; }
.cab-inline-skel--lines .sk:nth-child(2) { width: 78%; }
.cab-inline-skel--lines .sk:nth-child(3) { width: 62%; }
.cab-reveal-item {
  animation: cab-item-in .45s cubic-bezier(.22,.8,.28,1) both;
}
@keyframes cab-item-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.is-loading-skel { position: relative; min-height: 72px; }
@media (prefers-reduced-motion: reduce) {
  .sk, .cab-reveal-item { animation: none !important; }
  .cabinet-splash-logo-clip,
  .cabinet-splash-beam { animation-duration: .01ms; animation-delay: 0s; }
  .cabinet-splash-logo-clip { clip-path: none; opacity: 1; }
  .cabinet-splash-beam { display: none; }
}
.cabinet-app { min-height: 100vh; }
.cabinet-sidebar-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(6,20,45,.4); backdrop-filter: blur(2px);
}
.cabinet-sidebar-backdrop[hidden] { display: none !important; }
.cabinet-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(232px, 86vw);
  z-index: 50;
  border-right: 1px solid #e2e8f2;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  padding: 1.15rem .9rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .22s ease;
}
.cabinet-side-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: 1rem;
}
.cabinet-side-close {
  display: none; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: #f1f5f9; color: #64748b; cursor: pointer;
  place-items: center; padding: 0;
}
.cabinet-brand { display: inline-flex; padding: 0 .35rem; margin-bottom: 0; }
.cabinet-brand img { height: 28px; width: auto; }
.cabinet-nav { display: grid; gap: .2rem; }
.cabinet-nav a {
  display: flex; align-items: center; gap: .65rem; text-decoration: none;
  color: #5b6b85; padding: .65rem .75rem; border-radius: 12px; font-weight: 600; font-size: .92rem;
}
.cabinet-nav .nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #c5d0e0; flex-shrink: 0;
}
.cabinet-nav a:hover { background: #eef3fa; color: #002048; }
.cabinet-nav a.is-active {
  background: linear-gradient(100deg, rgba(44,134,224,.12), rgba(18,179,161,.1));
  color: #06305e;
}
.cabinet-nav a.is-active .nav-dot {
  background: linear-gradient(100deg, #2c86e0, #12b3a1);
}
.cabinet-side-foot { margin-top: auto; display: grid; gap: .45rem; padding: .9rem .35rem 0; border-top: 1px solid #e2e8f2; }
.cabinet-side-foot a, .cabinet-side-foot button {
  color: #5b6b85; background: transparent; border: 0; text-align: left;
  text-decoration: none; cursor: pointer; font: inherit; padding: .35rem 0; font-weight: 600;
}
.cabinet-side-foot a:hover, .cabinet-side-foot button:hover { color: #002048; }
.cabinet-main {
  margin-left: 232px;
  padding: 1.4rem clamp(.9rem, 2.5vw, 1.75rem) 2.5rem;
  min-height: 100vh;
  min-width: 0;
}
.cabinet-topbar {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: .85rem; flex-wrap: wrap;
}
.cabinet-topbar-left {
  display: flex; align-items: flex-start; gap: .75rem; min-width: 0;
}
.cabinet-menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #e2e8f2;
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0; flex-shrink: 0; margin-top: .15rem;
}
.cabinet-menu-btn span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: #06305e;
}
.cabinet-flash {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.cabinet-flash-item {
  padding: .7rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
}
.cabinet-flash-error, .cabinet-flash-warning {
  background: #fff7ed;
  color: #9a3412;
}
.cabinet-flash-success, .cabinet-flash-info {
  background: #ecfdf5;
  color: #065f46;
}
.cabinet-kicker {
  margin: 0; color: #12b3a1; font-size: .72rem; letter-spacing: .14em; font-weight: 700;
  font-family: "Space Grotesk", Manrope, sans-serif;
}
.cabinet-topbar h1 {
  margin: .3rem 0 0; color: #002048; font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-family: "Space Grotesk", Manrope, sans-serif; letter-spacing: -.01em;
  word-break: break-word;
}
.cabinet-top-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.cabinet-user {
  border: 1px solid #e2e8f2; border-radius: 12px;
  padding: .45rem .85rem; color: #5b6b85; font-size: .85rem; background: #fff;
  max-width: min(220px, 50vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cabinet-link-btn {
  border-radius: 12px;
  background: linear-gradient(100deg, #2c86e0 0%, #12b3a1 55%, #3fd07a 100%);
  color: #fff !important;
  text-decoration: none; padding: .5rem 1rem; font-weight: 700; font-size: .85rem;
  box-shadow: 0 8px 20px -10px rgba(18,179,161,.55);
}
.cabinet-kpi {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .9rem;
  margin-top: 0; margin-bottom: 1rem;
}
.cabinet-kpi article {
  border: 1px solid #e2e8f2; border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(6,20,45,.05);
  padding: 1rem 1.1rem;
}
.cabinet-kpi p { margin: 0; color: #8b97ab; font-size: .82rem; font-weight: 600; }
.cabinet-kpi h2 {
  margin: .4rem 0 .15rem; color: #002048; font-size: 1.45rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}
.cabinet-kpi h2.is-profit { color: #16a34a; }
.cabinet-kpi small { color: #2c86e0; font-size: .78rem; font-weight: 600; }
.cabinet-kpi small a { color: #12b3a1; text-decoration: none; }
.kpi-pl-tag {
  color: #2c86e0;
  font-weight: 700;
  text-transform: capitalize;
}
.price-list-toolbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.price-list-toolbar #price-list-period-hint {
  color: #8b97ab;
  font-size: .8rem;
  font-weight: 600;
}
.price-list-mix {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  margin: .35rem 0 .85rem;
}
.price-list-mix span {
  color: #5b6b85;
  font-size: .82rem;
  font-weight: 600;
}
.price-list-mix strong {
  color: #002048;
  text-transform: capitalize;
}
.price-list-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
  margin-top: .75rem;
}
.price-list-stat {
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  background: #f8fafc;
  padding: .95rem 1rem;
}
.price-list-stat.is-total {
  background: #eef6ff;
  border-color: #cfe0f5;
}
.price-list-stat h4 {
  margin: 0 0 .65rem;
  color: #002048;
  font-size: 1rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
  text-transform: capitalize;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
}
.price-list-stat h4 em {
  font-style: normal;
  color: #2c86e0;
  font-size: .85rem;
  font-weight: 700;
}
.price-list-stat dl {
  margin: 0;
  display: grid;
  gap: .45rem;
}
.price-list-stat dl div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: baseline;
}
.price-list-stat dt {
  margin: 0;
  color: #8b97ab;
  font-size: .78rem;
  font-weight: 600;
}
.price-list-stat dd {
  margin: 0;
  color: #002048;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: .92rem;
}
.price-list-stat dd.is-profit { color: #16a34a; }
.cabinet-signals-preview {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem;
}
.signal-chip {
  border: 1px solid #e2e8f2; border-radius: 14px; background: #fff;
  padding: .85rem 1rem; display: grid; gap: .25rem;
}
.signal-chip strong { color: #002048; font-size: .9rem; }
.signal-chip span { color: #5b6b85; font-size: .8rem; }
.signal-chip.signal-danger { border-color: #fecaca; background: #fff7f7; }
.signal-chip.signal-warn { border-color: #fde68a; background: #fffbeb; }
.cabinet-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cabinet-charts--stack { grid-template-columns: 1fr; }
.cabinet-card {
  border: 1px solid #e2e8f2; border-radius: 18px;
  background: #fff; padding: 1.1rem 1.15rem; margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(6,20,45,.04);
}
.cabinet-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap;
}
.cabinet-card-head h3 {
  margin: 0; color: #002048; font-size: 1.05rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
}
.cabinet-card-head span { color: #8b97ab; font-size: .8rem; font-weight: 600; }
.cabinet-hint { margin: 0 0 1rem; color: #5b6b85; font-size: .9rem; line-height: 1.45; }
.cabinet-empty { color: #8b97ab; margin: .5rem 0; }
.cabinet-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.cabinet-card table {
  width: 100%; border-collapse: collapse;
  background: #fff !important;
  border-radius: 12px;
  overflow: hidden;
}
.cabinet-card th, .cabinet-card td {
  text-align: left; padding: .7rem .45rem; border-bottom: 1px solid #eef2f8;
  font-size: .88rem; background: #fff !important;
}
.cabinet-card th { color: #8b97ab !important; font-weight: 700; background: #f8fafc !important; }
.cabinet-card td { color: #06305e !important; }
.cabinet-card tr.is-low td { color: #c2410c !important; }
.cabinet-card tbody tr:hover td { background: #f4f8fc !important; }
.text-profit { color: #059669 !important; font-weight: 700; }
.cabinet-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.cabinet-products { display: grid; gap: 1rem; }
.products-panel { padding: 1rem 1.1rem 1.2rem; }
.products-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  align-items: center; margin-bottom: .85rem;
}
.products-toolbar-left, .products-toolbar-right {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.products-toolbar-left {
  flex: 1 1 auto;
  min-width: min(320px, 100%);
}
.products-search {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid #e2e8f2; border-radius: 10px; background: #f8fafc;
  padding: .4rem .75rem; color: #8b97ab;
  flex: 1 1 280px;
  min-width: min(280px, 100%);
  max-width: 100%;
}
.products-search input {
  border: 0; background: transparent; outline: none; width: 100%;
  font: inherit; color: #002048;
}
.products-total { color: #5b6b85; font-size: .88rem; font-weight: 600; }
.products-total strong { color: #002048; font-weight: 800; }
.btn-soft {
  border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700;
  padding: .55rem 1rem; color: #fff;
  background: linear-gradient(100deg, #16a34a, #22c55e);
  box-shadow: 0 8px 18px -10px rgba(22,163,74,.55);
  display: inline-flex; align-items: center; gap: .35rem;
}
.btn-soft:hover { filter: brightness(1.04); }
.products-toolbar-right .btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 40px; padding: 0 .9rem; border-radius: 10px;
  border: 1px solid #d7e0ee; background: #fff; color: #06305e;
  font-weight: 600; cursor: pointer; font-size: .85rem;
}
.products-toolbar-right .btn-ghost:hover { background: #f4f8fc; }
.product-import-dialog { max-width: 760px; width: min(760px, 96vw); }
.product-import-body { display: grid; gap: 1rem; }
.pi-step {
  border: 1px solid #e2e8f2; border-radius: 14px; padding: .9rem 1rem;
  background: #fafbfd;
}
.pi-step h4 { margin: 0 0 .65rem; font-size: .95rem; color: #06305e; }
.pi-step-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; margin-bottom: .35rem;
}
.pi-step-head h4 { margin: 0; }
.pi-step-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.pi-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .45rem .75rem;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding-right: .2rem;
}
.pi-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.pi-file-row .btn-save {
  border: 0;
  cursor: pointer;
}
.pi-field {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem; border-radius: 10px; background: #fff;
  border: 1px solid #e2e8f2; font-size: .84rem; color: #06305e; cursor: pointer;
  user-select: none;
}
.pi-field:hover { border-color: #b8c9e0; }
.pi-field input { width: 16px; height: 16px; accent-color: #12b3a1; }
.pi-field.is-group-title {
  grid-column: 1 / -1; border: 0; background: transparent; padding: .35rem 0 0;
  font-weight: 700; font-size: .78rem; color: #8b97ab; cursor: default;
}
.pi-file-btn { cursor: pointer; margin: 0; }
.pi-file-name { color: #8b97ab; font-size: .82rem; }
.pi-preview-table-wrap { max-height: 260px; margin-top: .4rem; }
.pi-preview-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.pi-preview-table th, .pi-preview-table td {
  padding: .4rem .5rem; border-bottom: 1px solid #e8edf5; text-align: left; white-space: nowrap;
}
.pi-preview-table th { color: #8b97ab; font-weight: 600; position: sticky; top: 0; background: #fff; }
.pi-preview-meta { color: #8b97ab; font-size: .8rem; }
.pi-status {
  padding: .75rem .9rem; border-radius: 12px; font-size: .88rem;
  background: #eef9f6; color: #0b6b5c; border: 1px solid #b7e8dc;
}
.pi-status.is-error { background: #fff1f1; color: #b42318; border-color: #f5c2c0; }
.pi-status.is-warn { background: #fff8eb; color: #9a6700; border-color: #f0d9a8; }
.products-table-wrap {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  overflow: hidden;
}
.products-mgmt-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff !important;
}
.products-mgmt-table th, .products-mgmt-table td {
  text-align: left; padding: .8rem .85rem;
  border-bottom: 1px solid #eef2f8 !important;
  background: #fff !important; color: #002048 !important; font-size: .9rem;
  vertical-align: middle;
}
.products-mgmt-table thead th {
  color: #002048 !important; font-weight: 700; font-size: .88rem;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f2 !important;
}
.products-mgmt-table thead th:not(:first-child):not(.col-actions),
.products-mgmt-table tbody td:not(:first-child):not(.col-actions) {
  text-align: center;
  border-left: 1px solid #eef2f8;
}
.products-mgmt-table tbody tr:nth-child(even) td { background: #f6f8fb !important; }
.products-mgmt-table tbody tr:hover td { background: #eef5ff !important; }
.products-mgmt-table tbody tr.is-clickable { cursor: pointer; }
.products-mgmt-table tbody tr.is-low-stock td:first-child {
  box-shadow: inset 3px 0 0 #f59e0b;
}
.products-mgmt-table .col-name { min-width: 240px; text-align: left !important; }
.products-mgmt-table .col-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.products-mgmt-table .col-actions {
  width: 48px; text-align: right !important; border-left: 0 !important;
  padding-right: .65rem;
}
.product-cell { display: flex; align-items: center; gap: .75rem; }
.product-thumb {
  width: 42px; height: 42px; border-radius: 10px; overflow: hidden;
  background: #e8eef7; display: grid; place-items: center; flex-shrink: 0;
  color: #64748b; font-weight: 700; border: 1px solid #e2e8f2;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-meta strong {
  display: block; color: #002048; font-size: .92rem; font-weight: 700;
  letter-spacing: .01em;
}
.product-meta small { color: #8b97ab; font-size: .76rem; }
.meta-sep { opacity: .55; margin: 0 .15rem; }
.fav-mark { color: #f59e0b; margin-right: .15rem; font-size: .85em; }
.price-unit, .stock-unit {
  color: #94a3b8; font-size: .72rem; font-weight: 600; margin-left: .2rem;
}
.products-mgmt-table .is-pos { color: #16a34a !important; }
.products-mgmt-table .is-neg { color: #ea580c !important; }
.products-mgmt-table .is-stock-pos { color: #16a34a !important; font-weight: 700; }
.products-mgmt-table .is-stock-neg { color: #ea580c !important; font-weight: 700; }
.products-mgmt-table .is-stock-low { color: #d97706 !important; font-weight: 700; }
.products-mgmt-table .is-stock-zero { color: #64748b !important; font-weight: 700; }
.stock-warn {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; margin-left: .25rem;
  border-radius: 50%; background: #fef3c7; color: #b45309;
  font-size: .7rem; font-weight: 800; vertical-align: middle;
}
.row-edit-btn {
  width: 34px; height: 34px; border: 1px solid #e2e8f2; border-radius: 8px;
  background: #fff; color: #2c86e0; cursor: pointer;
  display: inline-grid; place-items: center; padding: 0;
}
.row-edit-btn:hover { background: #eff6ff; border-color: #bfdbfe; }
.muted { color: #94a3b8; }
.cabinet-empty { text-align: center !important; color: #8b97ab !important; padding: 2rem 1rem !important; }

.product-modal[hidden] { display: none !important; }
.product-modal {
  position: fixed; inset: 0; z-index: 5000;
  display: grid; place-items: center; padding: .75rem;
  overflow: auto;
}
.product-modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,20,45,.5);
  backdrop-filter: blur(2px);
}
.product-modal-dialog {
  position: relative; z-index: 1; width: min(880px, 96vw);
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; border: 1px solid #e2e8f2;
  box-shadow: 0 30px 60px -20px rgba(6,20,45,.35);
  margin: auto;
}
.product-modal-head {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .85rem 1.1rem; border-bottom: 1px solid #eef2f8; flex-shrink: 0;
}
.product-modal-head h3 {
  margin: 0; color: #002048; font-family: "Space Grotesk", Manrope, sans-serif; font-size: 1.1rem;
}
.product-modal-head p { margin: .15rem 0 0; color: #8b97ab; font-size: .8rem; }
.modal-close {
  border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 8px;
  display: inline-grid; place-items: center; cursor: pointer; color: #64748b; flex-shrink: 0;
}
.modal-close:hover { background: #e2e8f0; color: #0f172a; }
.product-modal-form {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.product-modal-form > .form-error-box {
  margin: .75rem 1.1rem 0;
  flex-shrink: 0;
}
.product-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: .85rem 1.1rem;
  scrollbar-gutter: stable;
}
.product-modal-body::-webkit-scrollbar {
  width: 8px;
}
.product-modal-body::-webkit-scrollbar-thumb {
  background: #c5d0e0; border-radius: 999px;
}
.product-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.product-modal-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: .9rem;
  align-items: start;
}
.product-modal-fields { display: grid; gap: .5rem; }
.product-modal-fields > label {
  display: flex; flex-direction: column; gap: .2rem;
  color: #5b6b85; font-size: .78rem; font-weight: 600;
}
.field-label {
  display: inline-flex; align-items: center; gap: .25rem;
  color: #5b6b85; font-size: .78rem; font-weight: 600; line-height: 1.2;
}
.field-label .req,
.barcode-block-head .req { color: #ef4444; font-weight: 800; }
.product-modal-fields input,
.product-modal-fields select {
  width: 100%; box-sizing: border-box; border: 1px solid #e2e8f2; border-radius: 8px;
  background: #f8fafc; color: #002048; padding: .45rem .65rem; font: inherit; font-size: .9rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.field-row--name { align-items: end; grid-template-columns: 1fr auto; }
.check-fav {
  display: inline-flex !important; align-items: center; gap: .4rem;
  grid-template-columns: none !important; white-space: nowrap; padding-bottom: .35rem;
  font-size: .8rem !important;
}
.check-fav input { width: auto; } {
  -moz-appearance: textfield;
  appearance: textfield;
}
.product-modal-fields input[type="number"]::-webkit-outer-spin-button,
.product-modal-fields input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.barcode-block { display: grid; gap: .35rem; }
.barcode-block-head {
  display: flex; justify-content: space-between; align-items: center;
}
.barcode-list {
  display: grid; gap: .4rem;
}
.barcode-row {
  display: grid; grid-template-columns: auto 1fr auto auto auto; gap: .35rem; align-items: center;
}
.barcode-row .barcode-label {
  font-size: .72rem; color: #8b97ab; white-space: nowrap;
}
.barcode-row input {
  width: 100%; box-sizing: border-box; border: 1px solid #e2e8f2; border-radius: 8px;
  background: #f8fafc; color: #002048; padding: .45rem .65rem; font: inherit; font-size: .9rem;
}
.btn-icon {
  width: 34px; height: 34px; border: 1px solid #e2e8f2; border-radius: 8px; background: #fff;
  cursor: pointer; color: #475569; display: inline-grid; place-items: center; padding: 0;
}
.btn-icon:hover { background: #f8fafc; color: #0f172a; }
.btn-icon.danger { color: #dc2626; }
.btn-icon.danger:hover { background: #fef2f2; }
.btn-icon:disabled { opacity: .35; cursor: not-allowed; }
.link-btn {
  border: 0; background: transparent; color: #2c86e0; font: inherit; font-weight: 700;
  cursor: pointer; justify-self: start; padding: 0; font-size: .85rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.link-btn:hover { color: #1d4ed8; }
.media-ico {
  color: #7c3aed; display: inline-grid; place-items: center;
}
.product-modal-media {
  border: 1px solid #e2e8f2; border-radius: 12px; padding: .75rem; background: #f8fafc;
  display: grid; gap: .5rem; align-content: start;
  max-height: 100%;
  min-height: 0;
}
.media-scroll {
  display: grid; gap: .5rem;
}
.media-head {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem .5rem; align-items: start;
}
.media-head strong { color: #002048; font-size: .9rem; }
.media-head span { color: #8b97ab; font-size: .72rem; grid-column: 1; }
.media-head em {
  font-style: normal; font-size: .72rem; font-weight: 700; color: #64748b;
  background: #eef2f7; border-radius: 999px; padding: .15rem .45rem;
}
.media-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem;
}
.media-gallery:empty { display: none; }
.media-thumb {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  border: 1px solid #e2e8f2; background: #fff;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .rm {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  border: 0; border-radius: 6px; background: rgba(15,23,42,.65); color: #fff;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.media-thumb .rm:hover { background: rgba(185,28,28,.9); }
.media-thumb.is-primary { outline: 2px solid #2c86e0; }
.media-drop {
  height: 120px; border: 1.5px dashed #c7d2e5; border-radius: 12px;
  background: #fff; display: grid; place-items: center; cursor: pointer; overflow: hidden;
}
.media-drop[hidden] { display: none !important; }
.media-drop-placeholder { text-align: center; color: #64748b; display: grid; gap: .2rem; justify-items: center; }
.media-drop-placeholder strong { font-size: .85rem; }
.media-drop-placeholder small { font-size: .72rem; }
#f_brand_new:not([hidden]),
#f_category_new:not([hidden]) {
  margin-top: .35rem;
  width: 100%; box-sizing: border-box; border: 1px solid #e2e8f2; border-radius: 8px;
  background: #f8fafc; color: #002048; padding: .45rem .65rem; font: inherit; font-size: .9rem;
}
.product-modal-foot {
  display: flex; justify-content: flex-end; gap: .5rem;
  margin: 0; padding: .75rem 1.1rem;
  border-top: 1px solid #eef2f8;
  background: #fff;
  flex-shrink: 0;
  position: sticky; bottom: 0;
}
.btn-ghost {
  border: 1px solid #e2e8f2; background: #fff; color: #06305e; border-radius: 8px;
  padding: .5rem .9rem; font: inherit; font-weight: 700; cursor: pointer;
}
.btn-save {
  border: 0; border-radius: 8px; padding: .5rem 1rem; font: inherit; font-weight: 700;
  cursor: pointer; color: #fff; background: #16a34a;
  box-shadow: 0 8px 18px -10px rgba(22,163,74,.5);
}
.form-error-box {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 8px; padding: .5rem .7rem; margin-bottom: .55rem; font-size: .82rem;
}
.form-error-box p { margin: .1rem 0; }
@media (max-width: 860px) {
  .product-modal-grid { grid-template-columns: 1fr; }
  .field-row, .field-row--name { grid-template-columns: 1fr; }
  .media-drop, .media-drop img { height: 120px; }
  .product-modal-dialog {
    width: min(100vw - .75rem, 880px);
    max-height: calc(100vh - .75rem);
    border-radius: 14px;
  }
  .product-modal { padding: .4rem; align-items: end; }
}

.products-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff !important;
  border-radius: 12px;
  overflow: hidden;
}
.products-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: #fff !important;
  color: #002048 !important;
  font-weight: 700;
  font-size: .9rem;
  text-align: left;
  padding: .95rem .85rem;
  border-bottom: 0;
  box-shadow: 0 6px 14px -10px rgba(6,20,45,.35);
}
.products-table thead th:not(:first-child),
.products-table tbody td:not(:first-child) {
  text-align: center;
}
.products-table tbody td {
  padding: .85rem .85rem;
  border-bottom: 0 !important;
  font-size: .92rem;
  color: #002048 !important;
  background: #fff !important;
}
.products-table tbody tr:nth-child(even) td {
  background: #f3f5f8 !important;
}
.products-table tbody tr:hover td {
  background: #eaf2fb !important;
}
.products-table .col-name {
  font-weight: 600;
  letter-spacing: .01em;
  text-align: left !important;
}
.products-table .col-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.products-table .is-pos { color: #16a34a !important; }
.products-table .is-neg { color: #ea580c !important; }
.products-table .is-stock-pos { color: #16a34a !important; }
.products-table .is-stock-neg { color: #ea580c !important; }
.products-table .is-stock-zero { color: #64748b !important; }
.cabinet-form--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .35rem 1rem;
  align-items: end;
}
.cabinet-form--grid button { grid-column: 1 / -1; justify-self: start; }
.cabinet-form p { margin: 0 0 .8rem; }
.cabinet-form label { display: block; color: #5b6b85; font-size: .85rem; margin-bottom: .3rem; font-weight: 600; }
.cabinet-form input, .cabinet-form select, .cabinet-form textarea {
  width: 100%; border-radius: 10px; border: 1px solid #e2e8f2;
  background: #f8fafc; color: #002048; padding: .65rem .8rem; font: inherit;
}
.cabinet-report-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.cabinet-report-list li {
  padding: .7rem 0; border-bottom: 1px solid #eef2f8;
  color: #5b6b85; display: flex; justify-content: space-between;
}
.cabinet-report-list strong { color: #002048; }
.period-toggle {
  display: inline-flex; gap: .25rem; padding: .2rem;
  background: #f0f4fa; border-radius: 12px; border: 1px solid #e2e8f2;
}
.period-toggle button {
  border: 0; background: transparent; color: #5b6b85; font: inherit; font-weight: 700;
  font-size: .8rem; padding: .45rem .75rem; border-radius: 10px; cursor: pointer;
}
.period-toggle button.active {
  background: #fff; color: #002048; box-shadow: 0 1px 3px rgba(6,20,45,.08);
}
.period-toggle--wrap {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(100%, 640px);
}

/* Sotuv statistikasi ? sana oralig'i kalendari */
.sales-date-picker {
  position: relative;
  z-index: 30;
}
.cabinet-card:has(.sales-date-picker) {
  overflow: visible;
}
.sales-date-trigger {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid #e2e8f2;
  background: #f0f4fa;
  color: #06305e;
  font: inherit;
  font-weight: 700;
  font-size: .82rem;
  padding: .5rem .85rem;
  border-radius: 12px;
  cursor: pointer;
  max-width: min(100%, 340px);
}
.sales-date-trigger svg { flex: 0 0 auto; color: #2c86e0; }
.sales-date-trigger span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sales-date-picker.is-open .sales-date-trigger {
  background: #fff;
  border-color: #2c86e0;
  box-shadow: 0 0 0 3px rgba(44, 134, 224, 0.15);
}
.sales-calendar {
  position: fixed;
  z-index: 4000;
  width: min(320px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(6, 20, 45, 0.35);
  overflow: hidden;
}
.sales-calendar-banner {
  background: #3d4a5c;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: .7rem .9rem;
  letter-spacing: .01em;
}
.sales-calendar-nav {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: .35rem;
  padding: .65rem .7rem .35rem;
}
.sales-cal-nav-btn {
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: #f0f4fa; color: #06305e;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.sales-cal-nav-btn:hover { background: #e2e8f2; }
.sales-cal-selects {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: .35rem;
}
.sales-cal-selects select {
  width: 100%;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #f8fafc;
  color: #002048;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  padding: .4rem .45rem;
  cursor: pointer;
}
.sales-calendar-weekdays,
.sales-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0 .55rem;
}
.sales-calendar-weekdays {
  margin-top: .25rem;
  padding-bottom: .2rem;
}
.sales-calendar-weekdays span {
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: #8b97ab;
  padding: .25rem 0;
  text-transform: uppercase;
}
.sales-calendar-grid { padding-bottom: .35rem; }
.sales-cal-day {
  position: relative;
  border: 0;
  background: transparent;
  color: #06305e;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  height: 38px;
  cursor: pointer;
  z-index: 1;
  border-radius: 0;
}
.sales-cal-day:hover:not(.is-start):not(.is-end) {
  background: rgba(44, 134, 224, 0.08);
  border-radius: 999px;
}
.sales-cal-day.is-outside { color: #b7c0d0; font-weight: 500; }
.sales-cal-day.is-in-range {
  background: rgba(44, 134, 224, 0.16);
  box-shadow: inset 0 2px 0 #2c86e0, inset 0 -2px 0 #2c86e0;
  border-radius: 0;
}
.sales-cal-day.is-start,
.sales-cal-day.is-end {
  color: #fff !important;
  font-weight: 700;
}
.sales-cal-day.is-start {
  background: linear-gradient(90deg, transparent 50%, rgba(44, 134, 224, 0.16) 50%);
  box-shadow: none;
  border-radius: 0;
}
.sales-cal-day.is-end {
  background: linear-gradient(90deg, rgba(44, 134, 224, 0.16) 50%, transparent 50%);
  box-shadow: none;
  border-radius: 0;
}
.sales-cal-day.is-start.is-end,
.sales-cal-day.is-single {
  background: transparent !important;
  box-shadow: none !important;
}
.sales-cal-day.is-start::after,
.sales-cal-day.is-end::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 999px;
  background: #2c86e0;
  z-index: -1;
  pointer-events: none;
}
.sales-cal-day.is-today:not(.is-start):not(.is-end) {
  color: #2c86e0;
  font-weight: 800;
}
.sales-calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  padding: .65rem .75rem .85rem;
  border-top: 1px solid #eef2f8;
}
.sales-calendar-hint {
  margin: 0;
  padding: .15rem .85rem .45rem;
  color: #8b97ab;
  font-size: .72rem;
  line-height: 1.35;
}
.sales-cal-btn {
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  padding: .65rem .75rem;
  cursor: pointer;
}
.sales-cal-btn--ghost {
  border: 1px solid #d7deea;
  background: #fff;
  color: #06305e;
}
.sales-cal-btn--primary {
  border: 0;
  background: #2c86e0;
  color: #fff;
}
.sales-cal-btn--primary:hover { background: #1f74c9; }

.cabinet-select-wrap { display: inline-flex; }
.cabinet-select {
  border: 1px solid #e2e8f2; border-radius: 10px; background: #f8fafc;
  color: #06305e; font: inherit; font-weight: 700; font-size: .8rem;
  padding: .45rem .7rem; cursor: pointer;
}
.signal-min { color: #8b97ab; font-size: .85em; }
.product-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  max-height: 420px;
  overflow: auto;
  padding-right: .2rem;
}
.product-tile-grid--full { max-height: none; }

/* Top tovar: bitta qator = bitta mahsulot, bir xil dizayn */
.tops-list,
#tops-products-grid.tops-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: 100%;
  max-height: none;
}
.tops-row {
  display: grid;
  grid-template-columns: 2.1rem 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background: #f8fafc;
}
.tops-row-rank {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #64748b;
  text-align: center;
}
.tops-row-media {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tops-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tops-row-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #1f7aef, #12b3a1);
}
.tops-row-name {
  min-width: 0;
  color: #002048;
  font-weight: 700;
  font-size: .92rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tops-row-metrics {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.tops-row-metric {
  display: grid;
  gap: .1rem;
  text-align: right;
  min-width: 5.5rem;
}
.tops-row-metric em {
  font-style: normal;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8b97ab;
}
.tops-row-metric strong {
  font-size: .88rem;
  font-weight: 700;
  color: #06305e;
  font-variant-numeric: tabular-nums;
}
.tops-row-metric--rev {
  min-width: 7.5rem;
}
.tops-row-metric--rev strong {
  color: #0b6b5c;
}
@media (max-width: 720px) {
  .tops-row {
    grid-template-columns: 1.8rem 2.5rem minmax(0, 1fr);
    gap: .4rem .65rem;
  }
  .tops-row-rank,
  .tops-row-media {
    grid-row: 1 / span 2;
    align-self: center;
  }
  .tops-row-name {
    white-space: normal;
  }
  .tops-row-metrics {
    grid-column: 3;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
  }
  .tops-row-metric {
    text-align: left;
    min-width: 0;
  }
  .tops-row-metric--rev {
    text-align: right;
    min-width: 0;
  }
}

.product-tile {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .75rem;
  align-items: center;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  background: #f8fafc;
  padding: .65rem .75rem;
}
.product-tile.is-low { border-color: #fecaca; background: #fff7f7; }
.product-tile-media {
  position: relative;
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  background: #e8eef7; display: grid; place-items: center;
}
.product-tile-rank {
  position: absolute; top: 4px; left: 4px; z-index: 1;
  min-width: 1.35rem; padding: .1rem .28rem; border-radius: 6px;
  background: rgba(0, 32, 72, .82); color: #fff;
  font-size: .65rem; font-weight: 700; line-height: 1.2;
  font-family: "Space Grotesk", Manrope, sans-serif; text-align: center;
}
.product-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-tile-rev { margin: 0 0 .35rem; color: #5b6b85; font-size: .8rem; }
.product-tile-rev strong { color: #0b6b5c; }
.tops-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.tops-products-panel .cabinet-card-head {
  align-items: flex-start;
  gap: .75rem;
}
.product-tile-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: "Space Grotesk", Manrope, sans-serif; font-weight: 700;
  font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, var(--tile-accent, #2c86e0), #12b3a1);
}
.product-tile-body h4 {
  margin: 0 0 .2rem; color: #002048; font-size: .92rem;
  font-family: "Space Grotesk", Manrope, sans-serif; line-height: 1.25;
}
.product-tile-stock { margin: 0 0 .45rem; color: #5b6b85; font-size: .8rem; }
.product-tile-stock strong { color: #06305e; }
.product-tile-prices {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem;
}
.product-tile-prices span {
  display: grid; gap: .1rem; font-size: .82rem; font-weight: 700; color: #002048;
}
.product-tile-prices em {
  font-style: normal; font-size: .68rem; font-weight: 700;
  color: #8b97ab; letter-spacing: .04em; text-transform: uppercase;
}
.abc-matrix {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem;
}
.abc-cell {
  border: 1px solid #e2e8f2; border-radius: 14px; background: #f8fafc;
  padding: .85rem .9rem; display: grid; gap: .2rem;
}
.abc-cell strong {
  color: #2c86e0; font-family: "Space Grotesk", Manrope, sans-serif; font-size: .95rem;
}
.abc-cell b { color: #002048; font-size: 1.35rem; font-family: "Space Grotesk", Manrope, sans-serif; }
.abc-cell span { color: #8b97ab; font-size: .75rem; }
.badge-abc, .badge-xyz {
  display: inline-flex; min-width: 1.6rem; justify-content: center;
  padding: .15rem .4rem; border-radius: 8px; font-weight: 800; font-size: .78rem;
}
.badge-A { background: #dbeafe; color: #1d4ed8; }
.badge-B { background: #d1fae5; color: #047857; }
.badge-C { background: #f3f4f6; color: #4b5563; }
.badge-X { background: #ccfbf1; color: #0f766e; }
.badge-Y { background: #fef3c7; color: #b45309; }
.badge-Z { background: #fee2e2; color: #b91c1c; }
.signals-list { display: grid; gap: .75rem; }
.signal-card {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  border: 1px solid #e2e8f2; border-radius: 14px; padding: 1rem 1.1rem; background: #f8fafc;
}
.signal-card h4 { margin: 0 0 .25rem; color: #002048; font-size: .98rem; }
.signal-card p { margin: 0; color: #5b6b85; font-size: .88rem; }
.signal-card.signal-danger { border-color: #fecaca; background: #fff7f7; }
.signal-card.signal-warn { border-color: #fde68a; background: #fffbeb; }
.signal-channels { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.ch-badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  padding: .35rem .55rem; border-radius: 8px; border: 1px solid #e2e8f2; background: #fff; color: #06305e;
}
.ch-sms { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.ch-email { border-color: #a7f3d0; color: #047857; background: #ecfdf5; }
.ch-bildirishnoma { border-color: #ddd6fe; color: #6d28d9; background: #f5f3ff; }
.cabinet-body .lp-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700;
  padding: .55rem 1rem; color: #fff;
  background: linear-gradient(100deg, #2c86e0 0%, #12b3a1 55%, #3fd07a 100%);
  box-shadow: 0 8px 18px -10px rgba(18,179,161,.5);
}

.cabinet-sales { display: grid; gap: 1rem; }
.sales-panel { padding: 1rem 1.1rem 1.2rem; }
.sales-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  align-items: center; margin-bottom: .9rem;
}
.sales-toolbar-left, .sales-toolbar-right {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
}
.sales-toolbar-left { flex: 1 1 auto; min-width: min(280px, 100%); }
.sales-title {
  margin: 0; color: #002048; font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 1.15rem; margin-right: .25rem;
}
.sales-date-field {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid #e2e8f2; border-radius: 10px; background: #f8fafc;
  padding: .35rem .65rem; color: #5b6b85; font-size: .82rem; font-weight: 700;
}
.sales-date-field input[type="date"] {
  border: 0; background: transparent; font: inherit; color: #002048;
  font-weight: 700; outline: none;
}
.sales-search { flex: 1 1 220px; min-width: min(220px, 100%); }
.btn-export {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid #c7d2fe; border-radius: 10px; background: #eef2ff;
  color: #3730a3; font: inherit; font-weight: 700; font-size: .86rem;
  padding: .5rem .9rem; text-decoration: none;
}
.btn-export:hover { background: #e0e7ff; }
.sales-kpis {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem;
  margin-bottom: 1rem;
}
.sales-kpi {
  border: 1px solid #e8edf5; border-radius: 12px; background: #f8fafc;
  padding: .7rem .8rem; display: grid; gap: .2rem;
}
.sales-kpi span { color: #8b97ab; font-size: .75rem; font-weight: 600; }
.sales-kpi strong {
  color: #002048; font-size: 1.05rem; font-variant-numeric: tabular-nums;
  font-family: "Space Grotesk", Manrope, sans-serif;
}
.sales-kpi strong em {
  font-style: normal; font-size: .72rem; color: #94a3b8; font-weight: 700; margin-left: .15rem;
}
.sales-kpi .is-profit, .sales-mgmt-table .is-profit { color: #16a34a !important; }

.shifts-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  margin: .35rem 0 1rem;
}
.shifts-list {
  display: grid;
  gap: .9rem;
}
.shift-card {
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  background: #fff;
  padding: 1rem 1.05rem;
}
.shift-card.is-open {
  border-color: #86efac;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.08);
}
.shift-card-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .75rem;
}
.shift-card-head h4 {
  margin: 0;
  color: #002048;
  font-size: 1rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
}
.shift-card-head p {
  margin: .25rem 0 0;
  color: #8b97ab;
  font-size: .8rem;
  font-weight: 600;
}
.shift-status {
  color: #0f766e;
}
.shift-card.is-closed .shift-status { color: #64748b; }
.shift-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .85rem;
}
.shift-metrics div {
  background: #f8fafc;
  border-radius: 12px;
  padding: .65rem .75rem;
}
.shift-metrics span {
  display: block;
  color: #8b97ab;
  font-size: .72rem;
  font-weight: 600;
}
.shift-metrics strong {
  color: #002048;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.shifts-pl-grid { margin-top: .25rem; }

@media (max-width: 900px) {
  .shifts-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shift-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shifts-kpis, .shift-metrics { grid-template-columns: 1fr; }
  .shift-card-head { flex-direction: column; }
}
.sales-table-wrap {
  border: 1px solid #e8edf5; border-radius: 12px; overflow: hidden;
}
.sales-mgmt-table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff !important;
}
.sales-mgmt-table th, .sales-mgmt-table td {
  text-align: left; padding: .75rem .7rem; border-bottom: 1px solid #eef2f8 !important;
  background: #fff !important; color: #002048 !important; font-size: .86rem;
  vertical-align: middle; white-space: nowrap;
}
.sales-mgmt-table thead th {
  color: #002048 !important; font-weight: 700; font-size: .82rem;
  background: #fff !important; border-bottom: 1px solid #e2e8f2 !important;
}
.sales-mgmt-table tbody tr:nth-child(even) td { background: #f6f8fb !important; }
.sales-mgmt-table tbody tr.is-clickable { cursor: pointer; }
.sales-mgmt-table tbody tr:hover td { background: #eef5ff !important; }
.sales-mgmt-table .col-num {
  font-variant-numeric: tabular-nums; font-weight: 650; font-weight: 600;
}
.sales-mgmt-table tfoot td {
  background: #f1f5f9 !important; font-weight: 800; border-bottom: 0 !important;
}
.badge-ok {
  display: inline-flex; align-items: center; padding: .2rem .55rem;
  border-radius: 999px; background: #16a34a; color: #fff; font-size: .72rem; font-weight: 700;
}
.pay-chip {
  display: inline-flex; padding: .2rem .5rem; border-radius: 8px;
  background: #fef9c3; color: #854d0e; font-size: .75rem; font-weight: 700;
}
.pay-card, .pay-click, .pay-payme { background: #e0f2fe; color: #075985; }

.receipt-drawer[hidden] { display: none !important; }
.receipt-drawer {
  position: fixed; inset: 0; z-index: 90; display: grid;
  justify-content: end;
}
.receipt-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(6,20,45,.35);
  backdrop-filter: blur(2px);
}
.receipt-panel {
  position: relative; z-index: 1; width: min(420px, 100vw);
  height: 100%; background: #fff; border-left: 1px solid #e2e8f2;
  box-shadow: -20px 0 50px -24px rgba(6,20,45,.35);
  display: flex; flex-direction: column; overflow: hidden;
  animation: receipt-in .22s ease-out;
}
@keyframes receipt-in {
  from { transform: translateX(18px); opacity: .6; }
  to { transform: translateX(0); opacity: 1; }
}
.receipt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border-bottom: 1px solid #eef2f8; flex-shrink: 0;
}
.receipt-head h3 {
  margin: 0; width: 100%; text-align: center; color: #002048;
  font-family: "Space Grotesk", Manrope, sans-serif; font-size: 1.05rem;
}
.receipt-head .modal-close { position: absolute; right: .75rem; }
.receipt-body {
  flex: 1; overflow: auto; padding: .85rem 1rem 1.4rem;
}
.receipt-meta, .receipt-items, .receipt-summary, .receipt-pays {
  display: grid; gap: 0;
}
.receipt-row {
  display: flex; justify-content: space-between; gap: .75rem; align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px dashed #dbe3ef;
  color: #002048; font-size: .9rem;
}
.receipt-row dt { font-weight: 700; color: #334155; }
.receipt-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.receipt-section-title {
  text-align: center; margin: 1rem 0 .35rem; color: #002048;
  font-weight: 800; font-size: .95rem;
}
.receipt-item { padding: .55rem 0; border-bottom: 1px dashed #dbe3ef; }
.receipt-item-name {
  font-weight: 700; color: #002048; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .01em; margin-bottom: .25rem;
}
.receipt-item-line {
  display: flex; justify-content: space-between; gap: .5rem;
  color: #64748b; font-size: .86rem; font-variant-numeric: tabular-nums;
}
.receipt-item-line strong { color: #002048; font-weight: 700; }
.badge-soft {
  display: inline-flex; padding: .15rem .5rem; border-radius: 999px;
  background: #f1f5f9; color: #475569; font-size: .75rem; font-weight: 700;
}

@media (max-width: 1100px) {
  .sales-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cabinet-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .lp-hero, .lp-faq-grid, .cabinet-charts, .cabinet-split { grid-template-columns: 1fr; }
  .lp-feature-grid, .lp-pricing-grid, .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-footer { grid-template-columns: 1fr 1fr; }
  .cabinet-signals-preview { grid-template-columns: 1fr; }
  .abc-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-toggle { flex-wrap: wrap; }

  .cabinet-menu-btn { display: inline-flex; }
  .cabinet-side-close { display: inline-grid; }
  .cabinet-sidebar {
    transform: translateX(-105%);
    box-shadow: 16px 0 40px -20px rgba(6,20,45,.35);
  }
  .cabinet-app.is-nav-open .cabinet-sidebar { transform: translateX(0); }
  .cabinet-app.is-nav-open { overflow: hidden; }
  .cabinet-main { margin-left: 0; padding: 1rem .9rem 2rem; }
  .cabinet-nav { display: grid; }
  .cabinet-side-foot {
    margin-top: auto; display: grid; gap: .45rem;
    border-top: 1px solid #e2e8f2; padding-top: .9rem; width: auto;
  }

  .products-toolbar, .sales-toolbar {
    flex-direction: column; align-items: stretch;
  }
  .products-toolbar-left, .products-toolbar-right,
  .sales-toolbar-left, .sales-toolbar-right {
    width: 100%;
  }
  .products-search, .sales-search { max-width: none; width: 100%; }
  .btn-soft, .btn-export { width: 100%; justify-content: center; }
  .products-table-wrap, .sales-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .products-mgmt-table, .sales-mgmt-table { min-width: 720px; }
  .receipt-panel { width: min(100vw, 420px); }
  .period-toggle--wrap { max-width: 100%; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .lp-feature-grid, .lp-pricing-grid, .lp-stats, .cabinet-kpi, .lp-footer,
  .sales-kpis { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .abc-matrix { grid-template-columns: 1fr; }
  .signal-card { flex-direction: column; align-items: flex-start; }
  .cabinet-topbar { gap: .65rem; }
  .cabinet-link-btn { padding: .45rem .75rem; font-size: .8rem; }
  .cabinet-card { padding: .85rem; }
  .products-mgmt-table, .sales-mgmt-table { min-width: 640px; font-size: .82rem; }
  .product-modal { padding: 0; }
  .product-modal-dialog {
    width: 100vw; max-height: 100vh; border-radius: 0; border: 0;
  }
  .receipt-panel { width: 100vw; }
  .auth-wrap { width: min(440px, 94vw); padding: 1rem 0; }
  .auth-card { padding: 1.25rem 1.1rem; }
}

@media (max-width: 400px) {
  .cabinet-main { padding: .75rem .65rem 1.5rem; }
  .cabinet-user { display: none; }
  .sales-title { font-size: 1rem; }
}

/* ---------- Narx belgilari / cennik designer ---------- */
.label-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 1rem;
  margin-bottom: 1.25rem;
  justify-content: start;
}
.label-hub-card {
  display: grid;
  place-items: center;
  gap: .65rem;
  min-height: 140px;
  border: 0;
  border-radius: 18px;
  background: #2c86e0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44, 134, 224, 0.28);
  padding: 1.2rem 1rem;
  text-align: center;
}
.label-hub-card:hover { filter: brightness(1.05); }
.label-hub-card svg { display: block; }
.label-designer, .label-print-view { display: grid; gap: 1rem; margin-bottom: 1rem; }
.label-designer[hidden], .label-print-view[hidden], .label-hub[hidden] { display: none !important; }
.label-designer-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem;
  background: #fff; border: 1px solid #e2e8f2; border-radius: 16px;
  padding: .9rem 1rem; box-shadow: 0 1px 2px rgba(6,20,45,.04);
}
.ld-print-title { margin: 0; color: #002048; font-size: 1.05rem; flex: 1; }
.ld-field { display: grid; gap: .28rem; min-width: 140px; }
.ld-field span {
  font-size: .72rem; font-weight: 700; color: #8b97ab;
  text-transform: uppercase; letter-spacing: .04em;
}
.ld-field input, .ld-field select {
  border: 1px solid #e2e8f2; border-radius: 10px; background: #f8fafc;
  color: #002048; font: inherit; font-weight: 600; padding: .55rem .7rem;
}
.ld-field--num { position: relative; min-width: 110px; }
.ld-field--num em {
  position: absolute; right: .7rem; bottom: .62rem;
  font-style: normal; color: #8b97ab; font-size: .8rem; font-weight: 700;
  pointer-events: none;
}
.ld-field--num input { padding-right: 2.2rem; }
.ld-toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.label-designer-body {
  display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 1rem;
  align-items: start;
}
.label-print-layout {
  display: grid; grid-template-columns: minmax(240px, 280px) 1fr; gap: 1rem;
  align-items: start;
}
.label-designer-side { display: grid; gap: .75rem; }
.ld-panel {
  background: #fff; border: 1px solid #e2e8f2; border-radius: 16px;
  padding: .9rem 1rem; box-shadow: 0 1px 2px rgba(6,20,45,.04);
}
.ld-panel h4 {
  margin: 0 0 .75rem; color: #002048; font-size: .95rem;
  font-family: "Space Grotesk", Manrope, sans-serif;
}
.ld-hint { margin: 0 0 .65rem; color: #8b97ab; font-size: .78rem; }
.ld-check {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .55rem .15rem; border-bottom: 1px solid #eef2f8;
  color: #06305e; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.ld-check:last-child { border-bottom: 0; }
.ld-check.is-active-el { color: #2c86e0; }
.ld-check input { width: 1.05rem; height: 1.05rem; accent-color: #2c86e0; cursor: pointer; }
.ld-elements { max-height: 280px; overflow: auto; }
.label-designer-canvas {
  background: #fff; border: 1px solid #e2e8f2; border-radius: 16px;
  padding: 1rem; min-height: 420px;
  box-shadow: 0 1px 2px rgba(6,20,45,.04);
}
.ld-canvas-stage {
  display: grid; place-items: center;
  min-height: 360px; background: #e8edf5; border-radius: 14px;
  padding: 2.5rem 1.5rem; overflow: visible;
}
.ld-preview-card {
  background: #fff; border: 1px solid #cfd8e6; border-radius: 4px;
  box-shadow: 0 12px 28px rgba(6,20,45,.12);
  position: relative; overflow: visible;
}
.ld-preview-inner {
  position: absolute; inset: 0;
  box-sizing: border-box;
  overflow: visible;
  touch-action: none; user-select: none;
  background: #fff;
  border-radius: inherit;
  z-index: 1;
}
.ld-preview-chrome {
  position: absolute; inset: 0;
  overflow: visible; /* ko?k chiziq / doira tashqariga chiqishi mumkin */
  pointer-events: none;
  z-index: 2;
}
.ld-el-wrap {
  position: absolute; box-sizing: border-box;
  background: transparent;
  cursor: move; border-radius: 2px;
  overflow: visible; z-index: 1;
  transform-origin: center center;
  border: 0;
}
.ld-el-chrome {
  position: absolute; box-sizing: border-box;
  border: 1.5px dashed #2c86e0;
  box-shadow: 0 0 0 1px rgba(44,134,224,.25);
  border-radius: 2px;
  transform-origin: center center;
  pointer-events: none;
  z-index: 2;
}
.ld-el-body {
  width: 100%; height: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; line-height: 1.15; word-break: break-word;
  padding: 2px; color: #002048; font-family: inherit;
}
.ld-el-text { width: 100%; pointer-events: none; user-select: none; }
.ld-handle {
  position: absolute; width: 12px; height: 12px; background: #2c86e0;
  border: 1px solid #fff; border-radius: 2px; z-index: 8;
  pointer-events: auto;
}
.ld-handle--nw { left: -6px; top: -6px; cursor: nwse-resize; }
.ld-handle--ne { right: -6px; top: -6px; cursor: nesw-resize; }
.ld-handle--sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.ld-handle--se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.ld-handle--n { left: 50%; top: -6px; margin-left: -6px; cursor: ns-resize; }
.ld-handle--s { left: 50%; bottom: -6px; margin-left: -6px; cursor: ns-resize; }
.ld-handle--w { left: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
.ld-handle--e { right: -6px; top: 50%; margin-top: -6px; cursor: ew-resize; }
/* Yon o?rta nuqtalar ? osonroq ushlash */
.ld-handle--w,
.ld-handle--e {
  width: 14px;
  height: 14px;
  margin-top: -7px;
}
.ld-handle--w { left: -7px; }
.ld-handle--e { right: -7px; }
.ld-rotate-stem {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 16px;
  height: 26px;
  margin-left: -8px;
  background: linear-gradient(#2c86e0, #2c86e0) center/2px 100% no-repeat;
  pointer-events: auto;
  cursor: grab;
  z-index: 7;
}
.ld-handle--rotate {
  left: 50%;
  top: -40px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 999px;
  cursor: grab;
  background: #fff;
  border: 2px solid #2c86e0;
  box-shadow: 0 1px 4px rgba(6,20,45,.25);
  z-index: 9;
}
.ld-handle--rotate:active { cursor: grabbing; }
.ld-rotate-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: .35rem;
  align-items: center;
}
.ld-rot-btn {
  border: 1px solid #e2e8f2;
  background: #f0f4fa;
  border-radius: 10px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #06305e;
}
.ld-rot-btn:hover { background: #e2e8f2; }
.ld-rot-hint {
  display: block;
  margin-top: .35rem;
  font-style: normal;
  font-size: .72rem;
  color: #8b97ab;
  font-weight: 600;
}
.ld-el-body.ld-strike .ld-el-text { text-decoration: line-through; opacity: .75; }
.ld-el--price { letter-spacing: -0.02em; }
.ld-el--logo { text-transform: uppercase; letter-spacing: .06em; color: #12b3a1; }
.ld-empty { color: #8b97ab; font-size: .85rem; text-align: center; position: absolute; inset: 0; display: grid; place-items: center; }
.ld-canvas-hint { margin: .85rem 0 0; }
.ld-products-card { margin: 0; }
.ld-products-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.ld-product-row { cursor: pointer; }
.ld-product-row.is-preview td { background: #eef6ff !important; }
.ld-product-row:hover td { background: #f4f8fc !important; }
.ld-print-search { margin: 0 0 .75rem; max-width: 360px; }
.ld-mini-preview {
  margin-top: .75rem; background: #e8edf5; border-radius: 12px;
  padding: .85rem; min-height: 120px; display: grid; place-items: center;
}
.ld-mini-card {
  position: relative; width: 100%; max-width: 200px; background: #fff;
  border: 1px solid #cfd8e6; overflow: hidden; min-height: 90px;
}
.ld-mini-card .ld-el-wrap { pointer-events: none; border: 0 !important; box-shadow: none !important; }
.ld-mini-card .ld-handle, .ld-mini-card .ld-rotate-stem { display: none; }

@media (max-width: 1024px) {
  .label-designer-body, .label-print-layout { grid-template-columns: 1fr; }
  .ld-toolbar-actions { margin-left: 0; width: 100%; }
  .label-hub { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .label-hub { grid-template-columns: 1fr; }
}


.bot-settings-panel .cabinet-hint { margin: .25rem 0 0; }
.bot-status-pill {
  display: inline-flex; align-items: center; padding: .28rem .7rem;
  border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.bot-status-pill.is-on { background: #dcfce7; color: #166534; }
.bot-status-pill.is-off { background: #f1f5f9; color: #64748b; }
.bot-settings-form { display: grid; gap: 1rem; margin-top: .85rem; }
.bot-field { display: grid; gap: .35rem; }
.bot-field .field-label { font-size: .82rem; font-weight: 700; color: #5b6b85; }
.bot-field input[type="password"],
.bot-field input[type="text"],
.bot-field textarea {
  width: 100%; border: 1px solid #dbe3ef; border-radius: 12px;
  padding: .7rem .85rem; font: inherit; color: #06305e; background: #fff;
}
.bot-field textarea { resize: vertical; min-height: 110px; line-height: 1.4; }
.bot-field small { color: #8b97ab; font-size: .78rem; line-height: 1.35; }
.bot-field code { background: #f1f5f9; padding: .05rem .3rem; border-radius: 4px; }
.bot-switch {
  display: flex !important; align-items: center; gap: .55rem;
}
.bot-switch input { width: 18px; height: 18px; accent-color: #12b3a1; }
.bot-checks { display: grid; gap: .55rem; }
.bot-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.bot-form-status {
  margin: 0; padding: .75rem .9rem; border-radius: 12px;
  background: #f0f9ff; color: #0c4a6e; font-size: .88rem;
}
.bot-form-status.is-error { background: #fef2f2; color: #991b1b; }
.bot-form-status.is-ok { background: #ecfdf5; color: #065f46; }
.bot-help {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e2e8f2;
}
.bot-help h4 { margin: 0 0 .5rem; color: #06305e; }
.bot-help ol { margin: 0; padding-left: 1.2rem; color: #5b6b85; font-size: .88rem; line-height: 1.55; }

.bot-chats-box {
  border: 1px solid #e2e8f2; border-radius: 12px; background: #f8fafc;
  padding: .65rem .75rem;
}
.bot-chats-head {
  font-size: .78rem; font-weight: 700; color: #5b6b85; margin-bottom: .45rem;
}
.bot-chats-list { display: grid; gap: .35rem; max-height: 220px; overflow: auto; }
.bot-chat-item {
  text-align: left; border: 1px solid #dbe3ef; background: #fff; color: #06305e;
  border-radius: 10px; padding: .55rem .7rem; cursor: pointer; font-size: .84rem;
}
.bot-chat-item:hover { border-color: #2c86e0; background: #eff6ff; }

/* ?? Qarzdorlar ?? */
.debtors-toolbar { display: flex; gap: .5rem; align-items: center; }
.debtors-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem; margin-bottom: 1rem;
}
.debtors-kpi {
  border: 1px solid #e2e8f2; border-radius: 14px; background: #f8fafc;
  padding: .75rem .9rem; display: grid; gap: .2rem;
}
.debtors-kpi span { color: #8b97ab; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.debtors-kpi strong { color: #002048; font-size: 1.15rem; font-family: "Space Grotesk", Manrope, sans-serif; }
.debtors-kpi strong.is-debt { color: #c2410c; }
.debtors-search { margin-bottom: .85rem; max-width: 420px; }

/* Ombor qiymati */
.stock-value-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-bottom: .9rem;
}
.stock-value-toolbar .products-search { flex: 1; min-width: 200px; max-width: 420px; margin: 0; }
.sv-filter {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #5b6b85; font-size: .85rem; font-weight: 600;
}
.sv-filter select {
  border: 1px solid #e2e8f2; border-radius: 10px; background: #fff;
  padding: .45rem .65rem; font: inherit; color: #002048;
}
.stock-value-table-wrap { max-height: min(70vh, 720px); overflow: auto; }
.stock-value-panel .products-table tfoot th,
.stock-value-panel .products-table tfoot td {
  position: sticky; bottom: 0; background: #f1f5f9; border-top: 2px solid #cbd5e1;
  font-weight: 700; color: #002048; padding: .65rem .55rem;
}
.stock-value-panel .sv-barcode {
  display: block; color: #8b97ab; font-size: .75rem; font-weight: 500; margin-top: .15rem;
}
.debtors-kpi strong.is-profit { color: #16a34a; }
.debtors-list { display: grid; gap: .75rem; }
.debtor-card {
  border: 1px solid #e2e8f2; border-radius: 16px; background: #fff;
  padding: 1rem 1.05rem; display: grid; gap: .75rem;
}
.debtor-card-head {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
}
.debtor-who { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.debtor-avatar {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2c86e0, #12b3a1); color: #fff;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.debtor-who h4 { margin: 0; color: #002048; font-size: 1rem; line-height: 1.25; word-break: break-word; }
.debtor-who p { margin: .15rem 0 0; color: #8b97ab; font-size: .82rem; }
.debtor-balance { color: #c2410c; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.debtor-pay-label {
  margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #8b97ab;
}
.debtor-pay-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.debtor-pay-row input[type="text"] {
  flex: 1 1 160px; min-width: 140px; border: 1px solid #dbe3ef; border-radius: 10px;
  padding: .6rem .75rem; font: inherit; color: #06305e; background: #f8fafc;
}
.debtor-pay-row select {
  border: 1px solid #dbe3ef; border-radius: 10px; padding: .55rem .65rem;
  font: inherit; font-weight: 700; color: #06305e; background: #f8fafc;
}
.debtor-pay-row .btn-save { white-space: nowrap; }
.debtor-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.debtor-preset {
  border: 1px solid #dbe3ef; background: #f8fafc; color: #06305e;
  border-radius: 999px; padding: .35rem .7rem; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.debtor-preset:hover { border-color: #2c86e0; background: #eff6ff; }
.debtor-hint { margin: 0; color: #94a3b8; font-size: .78rem; line-height: 1.4; }
.debtor-msg { margin: 0; font-size: .84rem; border-radius: 10px; padding: .55rem .7rem; }
.debtor-msg.is-ok { background: #ecfdf5; color: #065f46; }
.debtor-msg.is-error { background: #fef2f2; color: #991b1b; }
.debtor-card.is-paid-off { opacity: .72; border-color: #a7f3d0; background: #f0fdf4; }
.debtor-check-link { font-size: .82rem; color: #2c86e0; font-weight: 700; }
