:root {
  --bg: #f7f3f8;
  --panel: #fff9fd;
  --panel-strong: #ffffff;
  --text: #17111f;
  --muted: #6f6575;
  --line: #eadde8;
  --purple: #4c1d95;
  --purple-dark: #2a0d42;
  --purple-soft: #7c3aed;
  --rose: #ec4899;
  --rose-soft: #fce7f3;
  --champagne: #d9a36f;
  --ivory: #fffaf6;
  --green: #4a176d;
  --green-dark: #2a0d42;
  --gold: #d9a36f;
  --danger: #c8325c;
  --shadow: 0 28px 80px rgba(45, 17, 65, 0.15);
  --soft-shadow: 0 16px 42px rgba(45, 17, 65, 0.08);
  --glow: 0 0 0 1px rgba(194, 59, 134, 0.08), 0 18px 60px rgba(194, 59, 134, 0.14);
  --crm-surface: rgba(255, 255, 255, 0.86);
  --crm-border: rgba(76, 29, 149, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 5%, rgba(252, 231, 243, 0.75), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(124, 58, 237, 0.1), transparent 26%),
    radial-gradient(circle at 84% 92%, rgba(217, 163, 111, 0.12), transparent 30%),
    linear-gradient(135deg, #fffafd 0%, #f8f2fb 46%, #fff9f5 100%);
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 7, 33, 0.28), rgba(42, 13, 66, 0.02) 42%, rgba(42, 13, 66, 0.12)),
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 18% 18%, rgba(252, 231, 243, 0.2), transparent 31%),
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.16), transparent 29%),
    radial-gradient(circle at 62% 78%, rgba(124, 58, 237, 0.14), transparent 30%),
    linear-gradient(128deg, #2a0d42 0%, #4c1d95 50%, #a9277e 100%);
  padding: clamp(20px, 4vw, 54px);
  position: relative;
  overflow: hidden;
}

.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.auth-screen::before {
  width: 460px;
  height: 460px;
  right: -160px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(252, 231, 243, 0.22), transparent 66%);
}

.auth-screen::after {
  width: 260px;
  height: 260px;
  left: 42%;
  top: 12%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-left-color: rgba(217, 163, 111, 0.7);
  border-bottom-color: rgba(236, 72, 153, 0.5);
}

.auth-hero {
  color: white;
  min-height: auto;
  padding: clamp(24px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 11% 8% auto auto;
  width: 170px;
  height: 170px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(circle at 45% 36%, rgba(252, 231, 243, 0.22), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38% 62% 44% 56%;
  pointer-events: none;
  filter: blur(0.1px);
}

.auth-hero::after {
  content: "✦";
  position: absolute;
  right: 16%;
  top: 26%;
  color: #ffd9ef;
  font-size: 32px;
  text-shadow: 42px 32px 0 rgba(255, 226, 245, 0.62), -28px 58px 0 rgba(217, 163, 111, 0.42);
}

.auth-brand span {
  color: #f7dce9;
}

.auth-brand {
  margin-bottom: 20px;
  border-bottom: 0;
}

.auth-brand .brand-logo-image {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  padding: 4px;
}

.auth-kicker {
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.auth-hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 4.65vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
  font-family: "Playfair Display", Georgia, serif;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(42, 13, 66, 0.38), 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-brand,
.auth-kicker,
.auth-hero h1,
.auth-hero p,
.auth-metrics,
.auth-cta-row,
.auth-sales-points,
.auth-proof {
  position: relative;
  z-index: 2;
}

.auth-hero p {
  color: rgba(255, 248, 253, 0.78);
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.auth-subtitle {
  color: #ffffff !important;
  font-weight: 700;
  max-width: 720px !important;
  margin-bottom: 14px !important;
  text-shadow: 0 2px 14px rgba(42, 13, 66, 0.28);
}

.auth-subtitle + p {
  margin-bottom: 16px;
}

.auth-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 6px 0 22px;
}

.auth-cta-row .primary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #fce7f3);
  color: var(--purple);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.38) inset;
}

.auth-cta-row .primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(17, 24, 39, 0.24), 0 0 22px rgba(252, 231, 243, 0.2);
}

.auth-cta-row span {
  color: rgba(255, 248, 253, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 18px;
}

.auth-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 13px;
}

.auth-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 2px 0 18px;
}

.auth-pricing div {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(17, 24, 39, 0.09);
  backdrop-filter: blur(12px);
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}

.auth-benefits article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 28px rgba(17, 24, 39, 0.09);
  backdrop-filter: blur(12px);
}

.auth-benefits article span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(252, 231, 243, 0.18);
  color: #f9b6db;
  font-size: 11px;
  font-weight: 800;
}

.auth-benefits article strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
}

.auth-benefits article small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 248, 253, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.auth-pricing div.featured {
  border-color: rgba(249, 182, 219, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(236, 72, 153, 0.2));
  position: relative;
}

.auth-pricing div.featured::after {
  content: "Mais escolhido";
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--rose);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
}

.auth-pricing span {
  display: block;
  color: rgba(255, 248, 253, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-pricing strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.auth-pricing small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 248, 253, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.auth-sales-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin: 0 0 6px;
}

.auth-sales-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 248, 253, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.auth-sales-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f9b6db;
  box-shadow: 0 0 16px rgba(249, 182, 219, 0.65);
}

.auth-proof-card {
  display: grid;
  gap: 5px;
  max-width: 680px;
  margin: 10px 0 0;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(236, 72, 153, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 16px 36px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

.auth-proof-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.auth-proof-card span {
  color: rgba(255, 248, 253, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.auth-conversion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 12px 0 0;
  position: relative;
  z-index: 2;
}

.auth-conversion-grid article {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(249, 182, 219, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 14px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

.auth-conversion-grid strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

.auth-conversion-grid span {
  color: rgba(255, 248, 253, 0.72);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.auth-proof {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px !important;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff8fd !important;
  font-size: 14px !important;
  font-weight: 700;
}

.auth-proof::before {
  content: "♥";
  color: #f9b6db;
  margin-right: 8px;
}

.auth-card {
  margin: auto clamp(18px, 4vw, 56px) auto auto;
  width: min(488px, calc(100vw - 36px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 252, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.16), 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 0 0 1px rgba(252, 231, 243, 0.22);
  backdrop-filter: blur(28px) saturate(130%);
  position: relative;
  z-index: 1;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 12px 18px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.35), transparent);
}

.auth-card-badge {
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(252, 231, 243, 0.62);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  padding: 6px;
  margin-bottom: 24px;
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
}

.auth-tab.active {
  background: white;
  color: var(--purple);
  box-shadow: 0 12px 28px rgba(76, 29, 149, 0.11);
}

.auth-form {
  display: none;
  gap: 16px;
}

.auth-form.active {
  display: grid;
}

.auth-form h2 {
  font-size: 30px;
  color: var(--purple);
  margin-bottom: 4px;
}

.auth-form p {
  margin-bottom: 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-form input,
.auth-form select {
  min-height: 50px;
  border-color: #ead2e5;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.auth-form input::placeholder,
.auth-form select::placeholder {
  color: #b8a5b5;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(124, 58, 237, 0.72);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.13), 0 10px 22px rgba(76, 29, 149, 0.08);
  transform: translateY(-1px);
  background: #ffffff;
}

.password-input-wrap {
  position: relative;
  display: grid;
}

.password-input-wrap input {
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(252, 231, 243, 0.92);
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.16);
}

.password-toggle:hover {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.12), inset 0 0 0 1px rgba(236, 72, 153, 0.24);
}

.auth-form .primary-button,
.auth-form .ghost-button {
  min-height: 50px;
  font-size: 15px;
}

.auth-form .primary-button {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 48%, #ec4899 100%);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-form .primary-button:hover {
  box-shadow: 0 20px 44px rgba(236, 72, 153, 0.36), 0 0 22px rgba(236, 72, 153, 0.18);
  transform: translateY(-2px) scale(1.012);
  filter: brightness(1.05);
}

.auth-form .ghost-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple);
  border: 1px solid rgba(234, 210, 229, 0.95);
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-form .ghost-button:hover {
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 14px 28px rgba(76, 29, 149, 0.09);
  transform: translateY(-1px);
}

.auth-card-note {
  text-align: center;
  color: var(--purple) !important;
  font-weight: 700;
}

.auth-inline-link {
  justify-self: center;
  min-height: auto;
  padding: 2px 8px;
  font-size: 13px;
}

.auth-product-mockup {
  position: absolute;
  right: clamp(18px, 8vw, 180px);
  bottom: clamp(8px, 3vw, 38px);
  width: min(280px, 24vw);
  min-height: 176px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(252, 231, 243, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0.18;
  transform: rotate(-2deg) translateY(12px);
  z-index: 0;
  pointer-events: none;
}

.mockup-topbar {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.mockup-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.mockup-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.mockup-stat {
  grid-column: 1 / -1;
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mockup-stat strong,
.mockup-stat span {
  display: block;
}

.mockup-stat strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 24px;
}

.mockup-stat span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.mockup-chart,
.mockup-list {
  min-height: 86px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px;
}

.mockup-chart {
  display: flex;
  align-items: end;
  gap: 9px;
}

.mockup-chart span {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 72, 153, 0.32));
}

.mockup-chart span:nth-child(1) {
  height: 42%;
}

.mockup-chart span:nth-child(2) {
  height: 70%;
}

.mockup-chart span:nth-child(3) {
  height: 54%;
}

.mockup-chart span:nth-child(4) {
  height: 88%;
}

.mockup-list {
  display: grid;
  align-content: center;
  gap: 12px;
}

.mockup-list span {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.mockup-list span:nth-child(2) {
  width: 76%;
}

.mockup-list span:nth-child(3) {
  width: 58%;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background:
    radial-gradient(circle at 42% -8%, rgba(236, 72, 153, 0.24), transparent 30%),
    radial-gradient(circle at 0% 84%, rgba(217, 163, 111, 0.13), transparent 28%),
    linear-gradient(180deg, #241033 0%, #35104f 48%, #180722 100%);
  color: #fff8fd;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 48px rgba(42, 13, 66, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 2px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff0f9 0%, #f5b7da 42%, #d9a36f 100%);
  color: var(--purple-dark);
  font-weight: 800;
  font-size: 24px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(194, 59, 134, 0.22);
}

.brand-logo-image {
  display: block;
  object-fit: contain;
  padding: 3px;
  background:
    linear-gradient(135deg, rgba(255, 240, 249, 0.96), rgba(245, 183, 218, 0.82)),
    #fff8fd;
}

.sidebar .brand-logo-image {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.auth-brand .brand-logo-image {
  width: 70px;
  height: 70px;
  border-radius: 22px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-card small {
  color: rgba(255, 235, 248, 0.72);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  border: 1px solid transparent;
  color: rgba(255, 244, 251, 0.8);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 12px;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.nav-item:hover,
.nav-item.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(252, 231, 243, 0.08));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14), inset 3px 0 0 rgba(244, 114, 182, 0.95);
  transform: translateX(2px);
}

.icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffe0f1;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.08);
}

.sidebar-card span {
  color: #ffd5ec;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.main {
  padding: 24px 28px 34px;
  min-width: 0;
}

.main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(194, 59, 134, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(194, 59, 134, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 55%);
}

.main > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(255, 249, 253, 0.82));
  border: 1px solid var(--crm-border);
  border-radius: 22px;
  padding: 15px 18px;
  box-shadow: 0 18px 48px rgba(45, 17, 65, 0.08);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.eyebrow {
  color: var(--rose);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 6px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 32px;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--purple);
}

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

.topbar-actions,
.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-chip {
  min-height: 42px;
  display: grid;
  align-content: center;
  justify-items: end;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 12px;
  background: #fffafd;
}

.account-chip strong {
  font-size: 13px;
}

.account-chip span {
  color: var(--muted);
  font-size: 12px;
}

.admin-store-switcher {
  display: grid;
  gap: 4px;
  min-width: 230px;
}

.admin-store-switcher span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-store-switcher select {
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(76, 29, 149, 0.07);
}

.primary-button,
.ghost-button,
.text-button,
.icon-button {
  border: 0;
  border-radius: 13px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 46%, #ec4899 100%);
  color: white;
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.2), 0 8px 24px rgba(236, 72, 153, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.24), 0 12px 30px rgba(236, 72, 153, 0.22);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.86);
  color: #251331;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(74, 23, 109, 0.05);
}

.ghost-button:hover,
.text-button:hover,
.icon-button:hover {
  border-color: rgba(124, 58, 237, 0.2);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(45, 17, 65, 0.08);
}

.text-button {
  color: var(--rose);
  background: transparent;
  padding: 0;
}

.icon-button {
  width: 38px;
  padding: 0;
  background: #fbedf6;
  font-size: 24px;
}

.hero-strip {
  min-height: 118px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(124, 58, 237, 0.13), transparent 28%),
    radial-gradient(circle at 52% 8%, rgba(236, 72, 153, 0.09), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 251, 0.94) 58%, rgba(249, 237, 255, 0.88) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 18px 48px rgba(45, 17, 65, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.11);
  position: relative;
}

.hero-strip::after {
  content: "✦";
  position: absolute;
  right: 22px;
  top: 16px;
  color: rgba(194, 59, 134, 0.5);
  font-size: 28px;
}

.hero-copy {
  display: grid;
  gap: 8px;
}

.hero-copy span {
  color: var(--rose);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-copy strong {
  font-size: 23px;
  line-height: 1.32;
  color: #241331;
  max-width: 680px;
}

.hero-products {
  display: flex;
  align-items: end;
  gap: 18px;
  min-width: 260px;
  justify-content: flex-end;
}

.hero-logo {
  min-width: 250px;
  height: 126px;
  align-items: center;
  filter: drop-shadow(0 18px 24px rgba(74, 23, 109, 0.12));
}

.hero-logo img {
  width: min(260px, 25vw);
  height: 130px;
  object-fit: contain;
  display: block;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 253, 0.88));
  border: 1px solid var(--crm-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(45, 17, 65, 0.07);
}

.metric-card {
  padding: 18px 18px 17px;
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
  min-height: 122px;
}

.metric-card.premium {
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.13), transparent 38%),
    linear-gradient(145deg, #ffffff, #fff7fb);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--rose), rgba(217, 163, 111, 0.8));
}

.metric-card span,
label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.05;
  color: var(--purple);
}

.metric-card small {
  color: var(--muted);
  font-weight: 700;
}

.metric-card.alert strong {
  color: var(--danger);
}

.content-grid,
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.dashboard-smart-kpis,
.dashboard-insight,
.dashboard-actions,
.dashboard-chart-panel {
  margin-bottom: 18px;
}

.dashboard-smart-kpis .metric-card,
#dashboard-view > .metric-grid:first-child .metric-card {
  border-color: rgba(124, 58, 237, 0.11);
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff, #fffafd);
  box-shadow: 0 14px 34px rgba(45, 17, 65, 0.07);
}

.dashboard-insight {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(76, 29, 149, 0.09);
}

.dashboard-insight::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -52px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 999px;
}

.dashboard-actions {
  border-radius: 26px;
}

.dashboard-onboarding-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(236, 72, 153, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 231, 243, 0.48));
  box-shadow: 0 18px 42px rgba(76, 29, 149, 0.09);
}

.dashboard-onboarding-card[hidden] {
  display: none;
}

.dashboard-onboarding-card h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 22px;
}

.dashboard-onboarding-card p {
  margin: 0;
  color: var(--muted);
}

.dashboard-onboarding-progress {
  display: grid;
  gap: 8px;
}

.dashboard-onboarding-progress strong {
  color: var(--purple);
  font-size: 13px;
}

.dashboard-actions .primary-button {
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.24);
}

.dashboard-chart-panel {
  min-height: 350px;
  border-radius: 28px;
}

.dashboard-chart-box {
  position: relative;
  height: 292px;
}

#dashboard-sales-chart[hidden],
#sales-chart[hidden],
#report-sales-chart[hidden] {
  display: none !important;
}

.dashboard-sales-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 100%;
  padding: 24px;
  border: 1px dashed rgba(236, 72, 153, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.12), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(236, 72, 153, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.8));
}

.dashboard-sales-summary[hidden] {
  display: none;
}

.dashboard-sales-summary-main {
  display: grid;
  gap: 8px;
}

.dashboard-sales-summary-main span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-sales-summary-main strong {
  color: var(--purple);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.dashboard-sales-summary-main small,
.dashboard-sales-summary-actions p {
  color: #6f6476;
  font-weight: 700;
}

.dashboard-sales-summary-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.dashboard-product-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(76, 29, 149, 0.09);
  border-radius: 17px;
  background:
    radial-gradient(circle at 94% 12%, rgba(244, 114, 182, 0.05), transparent 24%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(45, 17, 65, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-product-row:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 16px 34px rgba(45, 17, 65, 0.08);
}

.dashboard-product-rank {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.rank-badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-soft), var(--rose));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.16);
}

.dashboard-product-rank small {
  color: var(--rose);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-product-value {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.dashboard-product-value strong {
  color: var(--purple);
  font-size: 17px;
  white-space: nowrap;
}

.dashboard-product-value span {
  color: var(--muted);
  font-size: 12px;
}

.top-product {
  border-color: rgba(236, 72, 153, 0.18);
  background:
    radial-gradient(circle at 94% 14%, rgba(244, 114, 182, 0.14), transparent 24%),
    linear-gradient(135deg, #fff7fb, #ffffff);
  box-shadow: 0 14px 32px rgba(45, 17, 65, 0.07);
}

.critical-alert {
  border-color: rgba(200, 50, 92, 0.24);
  background:
    radial-gradient(circle at 94% 14%, rgba(200, 50, 92, 0.1), transparent 24%),
    #fff5f7;
  box-shadow: 0 12px 26px rgba(200, 50, 92, 0.08);
}

.report-kpis {
  margin-bottom: 18px;
}

.insight-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.12);
  background:
    radial-gradient(circle at 92% 12%, rgba(236, 72, 153, 0.09), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(252, 231, 243, 0.32));
}

.insight-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--purple-soft), var(--rose));
}

.insight-panel span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.insight-panel strong {
  color: var(--purple-dark);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
  padding-left: 4px;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.chart-panel {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.1);
  background:
    radial-gradient(circle at 86% 8%, rgba(244, 114, 182, 0.1), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 251, 0.92));
}

.chart-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.chart-panel .panel-header {
  position: relative;
  z-index: 1;
}

.chart-box {
  position: relative;
  height: 280px;
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.06), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(244, 114, 182, 0.1), transparent 26%),
    linear-gradient(135deg, #ffffff, #fff7fb);
  padding: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(45, 17, 65, 0.05);
}

.chart-box::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.donut-box {
  height: 280px;
}

.report-details-grid {
  align-items: start;
}

.sales-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(124, 58, 237, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 18%, rgba(244, 114, 182, 0.18), transparent 24%),
    radial-gradient(circle at 18% 10%, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(252, 231, 243, 0.62));
  box-shadow: 0 18px 42px rgba(45, 17, 65, 0.08);
}

.sales-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.sales-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sales-hero h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
}

.sales-primary-button {
  min-height: 48px;
  padding-inline: 22px;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.26);
}

.sales-kpis .metric-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff, #fff8fc);
}

.sales-kpis .metric-card strong {
  font-size: 28px;
}

.sales-kpis,
.sales-insight,
.sales-chart-panel,
.sales-filters {
  margin-bottom: 18px;
}

.sales-chart-panel {
  min-height: 350px;
  border-radius: 26px;
}

.sales-chart-box {
  position: relative;
  height: 286px;
}

.sales-chart-summary {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 100%;
  padding: 26px;
  text-align: center;
  border: 1px dashed rgba(236, 72, 153, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.78));
}

.sales-chart-summary[hidden] {
  display: none;
}

.sales-chart-summary span {
  display: block;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-chart-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--purple);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.sales-chart-summary small,
.sales-chart-summary p {
  color: #6f6476;
  font-weight: 700;
}

.sales-filters {
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 16%, rgba(244, 114, 182, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 251, 0.78));
  box-shadow: 0 14px 32px rgba(76, 29, 149, 0.07);
}

.sales-total-cell {
  color: var(--rose);
  font-size: 17px;
  white-space: nowrap;
}

.sale-status {
  width: fit-content;
}

.sale-status.paid {
  color: #166534;
  background: #dcfce7;
}

.sale-status.pending {
  color: #92400e;
  background: #fef3c7;
}

.sales-row {
  transition: background 0.18s ease;
}

.sales-row:hover {
  background: #fff7fb;
}

.sales-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.sales-empty-state strong {
  color: var(--purple-dark);
  font-size: 18px;
}

.sales-empty-state span {
  max-width: 520px;
  color: var(--muted);
}

.client-crm-kpis,
.clients-insight,
.client-ranking-panel {
  margin-bottom: 18px;
}

.clients-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(124, 58, 237, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 18%, rgba(244, 114, 182, 0.16), transparent 24%),
    radial-gradient(circle at 14% 14%, rgba(124, 58, 237, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(252, 231, 243, 0.58));
  box-shadow: 0 18px 42px rgba(45, 17, 65, 0.08);
}

.clients-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.clients-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -58px;
  width: 178px;
  height: 178px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
}

.clients-hero h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
}

.clients-primary-button {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding-inline: 22px;
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.24);
}

.client-crm-kpis .metric-card,
#clients-view > .metric-grid:first-of-type .metric-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.09), transparent 26%),
    linear-gradient(180deg, #ffffff, #fff8fc);
}

.client-ranking-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(236, 72, 153, 0.13);
  background:
    radial-gradient(circle at 92% 8%, rgba(244, 114, 182, 0.09), transparent 24%),
    linear-gradient(180deg, #ffffff, #fff8fc);
}

.client-ranking-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.client-ranking-list {
  display: grid;
  gap: 10px;
}

.client-ranking-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 12%, rgba(244, 114, 182, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.client-ranking-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(76, 29, 149, 0.09);
}

.client-ranking-row > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-soft), var(--rose));
  color: white;
  font-weight: 800;
}

.client-ranking-row > strong {
  color: var(--rose);
}

.client-status {
  width: fit-content;
  margin-top: 4px;
}

.client-status.vip {
  color: white;
  background: linear-gradient(135deg, var(--purple-soft), var(--rose));
}

.client-status.frequent {
  color: #7e22ce;
  background: #f3e8ff;
}

.client-status.lead {
  color: #86198f;
  background: #fae8ff;
}

.client-status.recent,
.client-status.active {
  color: #166534;
  background: #dcfce7;
}

.client-status.reactivation {
  color: #9f1239;
  background: #ffe4e6;
}

.client-status.inactive {
  color: #6b7280;
  background: #f3f4f6;
}

.follow-up-status {
  width: fit-content;
  margin-top: 4px;
}

.follow-up-status.warning {
  color: #92400e;
  background: #fef3c7;
}

.follow-up-status.danger {
  color: #be123c;
  background: #ffe4e6;
}

.follow-up-status.muted {
  color: #6b7280;
  background: #f7f2f7;
}

.vip-client-row {
  background: #fff7fb;
}

.marketing-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(236, 72, 153, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(236, 72, 153, 0.18), transparent 26%),
    radial-gradient(circle at 14% 18%, rgba(124, 58, 237, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 231, 243, 0.68));
  box-shadow: 0 20px 48px rgba(76, 29, 149, 0.09);
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.marketing-hero h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
}

.marketing-kpis,
.marketing-insight,
.marketing-layout,
.marketing-history-panel {
  margin-bottom: 18px;
}

.marketing-kpis .metric-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff, #fff8fc);
}

.marketing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.marketing-builder,
.marketing-audience-panel,
.marketing-history-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(236, 72, 153, 0.13);
  background:
    radial-gradient(circle at 94% 8%, rgba(244, 114, 182, 0.09), transparent 24%),
    linear-gradient(180deg, #ffffff, #fff8fc);
}

.marketing-builder::before,
.marketing-audience-panel::before,
.marketing-history-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.marketing-builder textarea {
  min-height: 220px;
  line-height: 1.65;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.marketing-audience-list,
.marketing-history-list {
  display: grid;
  gap: 10px;
}

.marketing-audience-row,
.marketing-history-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.05);
}

.marketing-history-row {
  grid-template-columns: 1fr auto;
}

.marketing-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.settings-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 114, 182, 0.24), transparent 26%),
    radial-gradient(circle at 10% 12%, rgba(124, 58, 237, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 231, 243, 0.72));
}

.settings-layout {
  display: grid;
  gap: 18px;
}

.settings-panel {
  overflow: hidden;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-logo-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(244, 114, 182, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff, #fff7fc);
  box-shadow: 0 16px 36px rgba(76, 29, 149, 0.07);
}

.settings-logo-preview {
  aspect-ratio: 1.15;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0f9, #f7e8ff);
  border: 1px dashed rgba(194, 59, 134, 0.22);
}

.settings-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.settings-fields {
  display: grid;
  gap: 12px;
}

.settings-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.settings-summary div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  background: rgba(255, 247, 252, 0.9);
}

.settings-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--purple);
}

.settings-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.billing-hero {
  background:
    radial-gradient(circle at 84% 14%, rgba(244, 114, 182, 0.26), transparent 26%),
    radial-gradient(circle at 10% 18%, rgba(124, 58, 237, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(252, 231, 243, 0.74));
}

.billing-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--rose));
  box-shadow: 0 18px 36px rgba(194, 59, 134, 0.2);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.billing-status-badge.trial {
  background: linear-gradient(135deg, #7c3aed, #c23b86);
}

.billing-status-badge.pending {
  color: #7a3b06;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.12);
}

.billing-status-badge.blocked {
  color: #9f1239;
  background: linear-gradient(135deg, #fff1f2, #fecdd3);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.12);
}

.billing-status-badge.active {
  color: #065f46;
  background: linear-gradient(135deg, #ecfdf5, #a7f3d0);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.12);
}

.billing-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-color: rgba(236, 72, 153, 0.13);
  background:
    radial-gradient(circle at 94% 0%, rgba(244, 114, 182, 0.1), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.82));
}

.billing-journey-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.billing-journey-step span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  color: var(--purple);
  background: #fce7f3;
  font-weight: 900;
}

.billing-journey-step strong {
  color: var(--ink);
  font-size: 14px;
}

.billing-journey-step small {
  color: var(--muted);
  font-size: 12px;
}

.billing-journey-step.done span,
.billing-journey-step.active span {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--rose));
}

.billing-journey-step.active {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 18px 36px rgba(76, 29, 149, 0.09);
}

.billing-status-grid {
  margin-bottom: 18px;
}

.billing-expired-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 114, 182, 0.28), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(124, 58, 237, 0.16), transparent 26%),
    linear-gradient(135deg, #ffffff, #fff1f8 58%, #f7edff);
  box-shadow: 0 24px 70px rgba(76, 29, 149, 0.13);
}

.billing-expired-panel::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 24px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.26);
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.44);
  pointer-events: none;
}

.billing-expired-content,
.billing-expired-summary {
  position: relative;
  z-index: 1;
}

.billing-expired-content h3 {
  margin: 4px 0 8px;
  color: var(--purple);
  font-family: "Playfair Display", serif;
  font-size: 34px;
  line-height: 1;
}

.billing-expired-content p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.billing-expired-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.billing-expired-summary {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.billing-expired-summary strong {
  color: var(--purple);
}

.billing-expired-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.billing-expired-summary span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--rose));
  font-size: 11px;
}

.billing-payment-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(236, 72, 153, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(236, 72, 153, 0.2), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(124, 58, 237, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff, #fff7fb 52%, #f7f0ff);
  box-shadow: 0 22px 64px rgba(76, 29, 149, 0.13);
}

.billing-payment-panel h3 {
  margin: 4px 0 6px;
  color: var(--purple);
  font-size: 22px;
}

.billing-payment-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.billing-payment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.billing-pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #047857 0%, #10b981 48%, #34d399 100%);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

.billing-pay-button:hover {
  box-shadow: 0 22px 48px rgba(16, 185, 129, 0.36), 0 0 22px rgba(52, 211, 153, 0.18);
  transform: translateY(-2px);
}

.billing-success-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0%, rgba(34, 197, 94, 0.16), transparent 28%),
    radial-gradient(circle at 18% 0%, rgba(236, 72, 153, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7fff9);
  box-shadow: 0 20px 58px rgba(34, 197, 94, 0.1);
}

.billing-success-panel h3 {
  margin: 4px 0 6px;
  color: #166534;
  font-size: 24px;
}

.billing-success-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.billing-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.billing-insight {
  margin-bottom: 18px;
}

.billing-conversion-panel {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 4%, rgba(236, 72, 153, 0.12), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(124, 58, 237, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 252, 0.93));
}

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

.billing-conversion-grid div {
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 16px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 14%, rgba(244, 114, 182, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(45, 17, 65, 0.06);
}

.billing-conversion-grid span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-soft), var(--rose));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
}

.billing-conversion-grid strong {
  color: var(--purple);
  font-size: 16px;
  line-height: 1.25;
}

.billing-conversion-grid small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.billing-plan-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  align-content: space-between;
  padding: 18px;
  border: 1px solid rgba(76, 29, 149, 0.1);
  border-radius: 21px;
  background:
    radial-gradient(circle at 88% 8%, rgba(244, 114, 182, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff, #fff8fc);
  box-shadow: 0 14px 34px rgba(45, 17, 65, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.billing-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.2);
  box-shadow: 0 20px 46px rgba(45, 17, 65, 0.1);
}

.billing-plan-card.featured {
  border-color: rgba(236, 72, 153, 0.34);
  box-shadow: 0 20px 58px rgba(194, 59, 134, 0.14);
}

.billing-plan-card.active {
  outline: 3px solid rgba(236, 72, 153, 0.16);
}

.billing-plan-card span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-plan-card h3 {
  margin: 6px 0 4px;
  color: var(--purple);
  font-size: 20px;
}

.billing-plan-card strong {
  display: block;
  color: #221229;
  font-size: 24px;
}

.billing-plan-limit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  padding: 12px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.billing-plan-limit b {
  color: var(--purple);
  font-size: 18px;
}

.billing-plan-limit small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-plan-card p,
.billing-plan-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.billing-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.billing-plan-card li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--rose);
  font-weight: 800;
}

.billing-access-panel {
  overflow: hidden;
}

.team-limit-pill {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--purple);
  background: rgba(252, 231, 243, 0.88);
  border: 1px solid rgba(236, 72, 153, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.team-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(252, 231, 243, 0.62)),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.1), transparent 35%);
  border: 1px solid rgba(236, 72, 153, 0.14);
}

.team-form.disabled {
  opacity: 0.62;
}

.team-list {
  display: grid;
  gap: 10px;
}

.team-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 18px;
  background: rgba(255, 250, 253, 0.86);
}

.team-role {
  color: var(--purple);
  background: #fce7f3;
}

.access-list {
  display: grid;
  gap: 10px;
}

.access-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 18px;
  background: rgba(255, 250, 253, 0.86);
}

.access-list strong {
  color: var(--purple);
}

.access-list span {
  color: var(--muted);
  font-size: 13px;
}

.admin-events-panel {
  margin-bottom: 18px;
}

.admin-system-panel {
  margin-bottom: 18px;
}

.admin-users-panel {
  margin-top: 18px;
  border-color: rgba(236, 72, 153, 0.18);
  background:
    radial-gradient(circle at 92% 0%, rgba(236, 72, 153, 0.11), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 251, 0.9));
}

.admin-users-panel.disabled {
  opacity: 0.78;
}

.admin-user-form {
  margin-bottom: 18px;
}

.admin-user-row {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(253, 242, 248, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.08), transparent 26%);
}

.admin-subscription-panel {
  margin-bottom: 18px;
  border-color: rgba(124, 58, 237, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(252, 231, 243, 0.64));
}

.admin-subscription-panel.disabled {
  opacity: 0.78;
}

.admin-subscription-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, auto);
  gap: 12px;
  align-items: end;
}

.admin-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-system-item {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(244, 114, 182, 0.09), transparent 24%),
    rgba(255, 255, 255, 0.88);
}

.admin-system-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-system-item strong {
  color: var(--purple);
  font-size: 18px;
}

.admin-system-item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-events-list {
  display: grid;
  gap: 10px;
}

.admin-event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(244, 114, 182, 0.08), transparent 22%),
    rgba(255, 250, 253, 0.86);
}

.admin-event-empty {
  min-height: 76px;
  background:
    radial-gradient(circle at 96% 0%, rgba(124, 58, 237, 0.08), transparent 22%),
    rgba(255, 255, 255, 0.9);
}

.admin-event-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--rose));
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.18);
  font-weight: 900;
}

.admin-event-copy {
  display: grid;
  gap: 3px;
}

.admin-event-copy strong {
  color: var(--ink);
}

.admin-event-copy span,
.admin-event-date {
  color: var(--muted);
  font-size: 12px;
}

.admin-event-date {
  font-weight: 800;
  text-align: right;
}

.client-actions {
  flex-wrap: wrap;
}

.client-actions .small-button {
  min-width: 74px;
}

.history-button {
  color: var(--purple);
  border-color: rgba(124, 58, 237, 0.22);
  background:
    radial-gradient(circle at 88% 16%, rgba(244, 114, 182, 0.12), transparent 24%),
    #fbf7ff;
}

.history-button:hover {
  border-color: rgba(236, 72, 153, 0.34);
  background: #f7edff;
}

.nowrap-cell,
.nowrap-text {
  white-space: nowrap;
}

.clients-toolbar {
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 16%, rgba(244, 114, 182, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 251, 0.78));
  box-shadow: 0 14px 32px rgba(76, 29, 149, 0.07);
}

.client-row {
  transition: background 0.18s ease;
}

.client-row:hover {
  background: #fff7fb;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(76, 29, 149, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 16%, rgba(244, 114, 182, 0.08), transparent 26%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(45, 17, 65, 0.055);
}

.quick-actions button {
  min-height: 46px;
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(45, 17, 65, 0.06);
}

.stock-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.stock-list-panel,
.low-stock-panel,
.stock-control-form,
.stock-movements-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(236, 72, 153, 0.13);
  background:
    radial-gradient(circle at 92% 8%, rgba(244, 114, 182, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 252, 0.95));
}

.stock-list-panel::before,
.low-stock-panel::before,
.stock-control-form::before,
.stock-movements-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.stock-product-list,
.stock-alert-list {
  display: grid;
  gap: 10px;
}

.stock-product-row,
.stock-alert-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 12%, rgba(244, 114, 182, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stock-product-row:hover,
.stock-alert-row:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.24);
  box-shadow: 0 16px 34px rgba(76, 29, 149, 0.09);
}

.stock-product-row.low,
.stock-alert-row {
  border-color: rgba(200, 50, 92, 0.18);
  background: #fff5f7;
}

.stock-status {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.stock-status strong {
  color: var(--purple);
  font-size: 18px;
  white-space: nowrap;
}

.stock-level i {
  background: linear-gradient(90deg, var(--purple-soft), var(--rose));
}

.stock-product-row.low .stock-level i {
  background: linear-gradient(90deg, var(--danger), var(--rose));
}

.quantity-field {
  display: grid;
  gap: 8px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 20%, rgba(244, 114, 182, 0.08), transparent 28%),
    #fffafd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.quantity-stepper input {
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  background: transparent;
}

.quantity-stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 22px;
  font-weight: 800;
}

.quantity-stepper button:hover {
  background: linear-gradient(135deg, var(--rose-soft), #f3e8ff);
  color: var(--rose);
}

.panel {
  padding: 18px;
}

.panel-header,
.page-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.page-panel-header {
  padding: 20px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 4%, rgba(236, 72, 153, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 253, 0.86));
  border: 1px solid var(--crm-border);
  box-shadow: 0 14px 34px rgba(45, 17, 65, 0.07);
}

.panel-header p {
  margin-bottom: 0;
  font-size: 13px;
}

.product-list,
.alert-list,
.movement-list,
.report-list {
  display: grid;
  gap: 10px;
}

.product-row,
.alert-row,
.movement-row,
.report-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.report-row {
  grid-template-columns: auto 1fr minmax(92px, auto);
}

.movement-row {
  border-color: rgba(74, 23, 109, 0.1);
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.05);
}

.movement-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(76, 29, 149, 0.12);
}

.movement-in .movement-icon {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.movement-out .movement-icon {
  background: linear-gradient(135deg, #be123c, #f43f5e);
}

.movement-in {
  background:
    radial-gradient(circle at 94% 18%, rgba(34, 197, 94, 0.08), transparent 28%),
    #f7fef9;
}

.movement-out {
  background:
    radial-gradient(circle at 94% 18%, rgba(244, 63, 94, 0.08), transparent 28%),
    #fff6f7;
}

.mini-bar {
  width: 100%;
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4e8f6;
  box-shadow: inset 0 1px 2px rgba(76, 29, 149, 0.06);
}

.mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose));
}

.ranking-bar i {
  background: linear-gradient(90deg, var(--rose), var(--champagne));
}

.catalog-print-cover,
.catalog-print-header {
  display: none;
  position: relative;
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 12%, rgba(244, 114, 182, 0.22), transparent 28%),
    radial-gradient(circle at 12% 24%, rgba(124, 58, 237, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(252, 231, 243, 0.7));
  box-shadow: var(--soft-shadow);
}

.catalog-hero::after {
  content: "✦";
  position: absolute;
  right: 28px;
  bottom: 10px;
  color: rgba(236, 72, 153, 0.28);
  font-size: 28px;
}

.catalog-hero h2 {
  margin-top: 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.catalog-share-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  border-color: rgba(236, 72, 153, 0.2);
  background:
    radial-gradient(circle at 92% 10%, rgba(244, 114, 182, 0.2), transparent 27%),
    radial-gradient(circle at 8% 16%, rgba(124, 58, 237, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(252, 231, 243, 0.76));
}

.catalog-share-panel::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.2), transparent);
}

.catalog-share-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.catalog-share-panel h2 {
  margin-top: 4px;
  font-size: 24px;
  font-family: "Playfair Display", Georgia, serif;
}

.catalog-reset-button {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(236, 72, 153, 0.24);
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 114, 182, 0.14), transparent 24%),
    #fffafd;
  color: var(--rose);
  box-shadow: 0 10px 24px rgba(194, 59, 134, 0.08);
}

.catalog-reset-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  color: var(--purple);
}

.catalog-reset-button:hover {
  border-color: rgba(236, 72, 153, 0.44);
  background: #fff3fa;
  color: var(--purple);
}

.catalog-share-preview {
  min-height: 170px;
  max-height: 250px;
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #41214f;
  font-size: 13px;
  line-height: 1.55;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 38px rgba(76, 29, 149, 0.07);
  resize: vertical;
  white-space: pre-wrap;
  min-width: 0;
}

.catalog-grid {
  display: grid;
  gap: 16px;
}

.catalog-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.catalog-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(244, 114, 182, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 252, 0.96)),
    var(--panel-strong);
  display: grid;
  box-shadow: 0 18px 48px rgba(76, 29, 149, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-card.featured {
  grid-column: 1 / -1;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
  border-color: rgba(236, 72, 153, 0.28);
}

.catalog-card.unavailable {
  opacity: 0.7;
}

.catalog-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(135deg, #fff0f7, #f3e8ff 55%, #fff8f1);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.catalog-media small {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.08);
}

.catalog-featured-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-soft), var(--rose));
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
}

.catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-media span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 34px;
  background-image: linear-gradient(135deg, var(--purple), var(--rose)) !important;
}

.catalog-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.catalog-title {
  display: grid;
  gap: 4px;
}

.catalog-title strong {
  line-height: 1.25;
  color: #221229;
  font-size: 15px;
}

.catalog-title span,
.catalog-meta {
  color: var(--muted);
  font-size: 12px;
}

.catalog-meta {
  flex-wrap: wrap;
}

.catalog-meta,
.catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-price-wrap {
  display: grid;
  gap: 2px;
}

.catalog-price-wrap span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-price,
.catalog-footer strong {
  font-size: 20px;
  color: var(--rose);
}

.catalog-status {
  gap: 5px;
}

.catalog-status.unavailable {
  color: #7f1d1d;
  background: #fee2e2;
}

.catalog-status.low {
  color: #be123c;
  background: #ffe4e6;
}

.badge.ok {
  color: #166534;
  background: #dcfce7;
}

.badge.warning {
  color: #9f4b12;
  background: #fff7ed;
  border-color: #fed7aa;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 24px;
  color: var(--muted);
  background: var(--panel);
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple), var(--rose));
  box-shadow: 0 10px 24px rgba(45, 17, 65, 0.08);
}

.thumb img,
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.row-title {
  display: grid;
  gap: 3px;
}

.row-title strong {
  line-height: 1.25;
  color: #21142c;
  font-weight: 800;
}

.row-title span,
.muted,
.muted-line {
  color: var(--muted);
  font-size: 12px;
}

.muted-line {
  display: block;
  margin-top: 4px;
}

.admin-hero {
  margin-bottom: 18px;
}

.admin-kpis {
  margin-bottom: 18px;
}

.admin-insight {
  margin-bottom: 18px;
}

.admin-action-panel {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(236, 72, 153, 0.1), transparent 28%),
    radial-gradient(circle at 5% 100%, rgba(124, 58, 237, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 252, 0.92));
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.admin-action-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 114, 182, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(45, 17, 65, 0.07);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-action-card:hover {
  border-color: rgba(236, 72, 153, 0.34);
  box-shadow: 0 22px 46px rgba(45, 17, 65, 0.12);
  transform: translateY(-2px);
}

.admin-action-card span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-action-card strong {
  color: var(--purple);
  font-size: 34px;
  line-height: 1;
}

.admin-action-card small {
  max-width: 230px;
  color: #74677d;
  font-weight: 700;
  line-height: 1.4;
}

.admin-action-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--purple);
  font-size: 12px;
  background: rgba(252, 231, 243, 0.78);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.admin-action-card.danger {
  border-color: rgba(244, 63, 94, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.15), transparent 34%),
    rgba(255, 255, 255, 0.9);
}

.admin-action-card.warning {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.15), transparent 34%),
    rgba(255, 255, 255, 0.9);
}

.admin-action-card.premium {
  border-color: rgba(124, 58, 237, 0.2);
}

.admin-funnel-panel {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(124, 58, 237, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 252, 0.9));
}

.admin-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.admin-funnel-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 168px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 12%, rgba(244, 114, 182, 0.11), transparent 26%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(45, 17, 65, 0.06);
}

.admin-funnel-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-soft), var(--rose));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.22);
}

.admin-funnel-card b {
  color: var(--purple);
  font-size: 30px;
  line-height: 1;
}

.admin-funnel-card small {
  color: #7c7285;
  font-weight: 700;
}

.admin-funnel-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.08);
}

.admin-funnel-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-soft), var(--rose), var(--champagne));
}

.admin-store-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.admin-whatsapp-cell {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.admin-whatsapp-cell strong {
  color: var(--purple);
  font-size: 13px;
  white-space: nowrap;
}

.admin-whatsapp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-whatsapp-actions .small-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.whatsapp-action {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.18), transparent 32%),
    linear-gradient(135deg, #ecfdf5, #ffffff);
}

.whatsapp-action:hover {
  border-color: rgba(16, 185, 129, 0.52);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.16);
}

.admin-table-wrap table th,
.admin-table-wrap table td {
  vertical-align: middle;
}

.admin-leads-panel {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(236, 72, 153, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.9));
}

.admin-leads-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-leads-tools select {
  min-width: 190px;
}

.admin-lead-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 160px minmax(260px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 12%, rgba(124, 58, 237, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.76);
}

.admin-lead-form-title {
  display: grid;
  gap: 5px;
  align-self: center;
}

.admin-lead-form-title span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-lead-form-title strong {
  color: var(--purple);
  line-height: 1.2;
}

.admin-leads-list {
  display: grid;
  gap: 10px;
}

.admin-lead-card {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 20%, rgba(244, 114, 182, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(45, 17, 65, 0.06);
}

.admin-lead-card small {
  color: #7c7285;
  font-weight: 700;
}

.admin-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(252, 231, 243, 0.82);
  color: var(--purple);
  border: 1px solid rgba(236, 72, 153, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.badge.low {
  background: #fde7e9;
  color: var(--danger);
}

tr.expiry-warning td {
  background: #fff2f3;
}

tr.expiry-warning td:first-child {
  box-shadow: inset 4px 0 0 var(--danger);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--crm-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(45, 17, 65, 0.06);
}

.clients-toolbar {
  grid-template-columns: minmax(240px, 1fr);
}

label {
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(76, 29, 149, 0.12);
  border-radius: 13px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f1428;
}

textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.11);
  outline: none;
}

input[readonly] {
  background: #fff7fb;
  color: var(--purple);
  font-weight: 800;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.input-action .ghost-button {
  min-height: 42px;
  white-space: nowrap;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--crm-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(45, 17, 65, 0.07);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(76, 29, 149, 0.08);
  vertical-align: middle;
}

th {
  color: #7b6d82;
  font-size: 12px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff8fd, #fff2fa);
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 2;
}

tbody tr:hover td {
  background: rgba(252, 231, 243, 0.34);
}

td .actions {
  display: flex;
  gap: 8px;
}

.small-button {
  border: 1px solid rgba(76, 29, 149, 0.11);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  min-height: 34px;
  padding: 0 10px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.small-button:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 20px rgba(45, 17, 65, 0.07);
}

.danger-button {
  color: var(--danger);
  border-color: #f0bcc2;
  background: #fff7f8;
}

.danger-button:hover {
  background: #fde7e9;
}

.stock-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.form-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

dialog {
  border: 0;
  padding: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(28, 9, 44, 0.24);
  width: min(680px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  overflow: hidden;
  box-sizing: border-box;
}

dialog::backdrop {
  background: rgba(42, 13, 66, 0.5);
  backdrop-filter: blur(5px);
}

#onboarding-modal {
  width: min(760px, calc(100vw - 28px));
}

.modal-card {
  padding: 22px;
  display: grid;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff, #fffafd);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.modal-header h2 {
  margin: 0;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.client-history-card {
  gap: 18px;
}

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

.client-history-stats div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 14%, rgba(244, 114, 182, 0.1), transparent 24%),
    #fff7fb;
}

.client-history-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-history-stats strong {
  color: var(--purple);
  font-size: 20px;
}

.client-history-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.onboarding-card {
  width: 100%;
  gap: 18px;
  background:
    radial-gradient(circle at 86% 4%, rgba(236, 72, 153, 0.14), transparent 28%),
    radial-gradient(circle at 8% 16%, rgba(124, 58, 237, 0.1), transparent 26%),
    linear-gradient(180deg, #fff, #fff7fb);
}

.onboarding-header h2 {
  font-size: 28px;
  color: var(--ink);
}

.onboarding-progress-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(76, 29, 149, 0.06);
}

.onboarding-progress-wrap strong {
  display: block;
  color: var(--purple);
  font-size: 18px;
}

.onboarding-progress-wrap span {
  color: var(--muted);
  font-size: 13px;
}

.onboarding-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f4e5f2;
}

.onboarding-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.32);
  transition: width 0.28s ease;
}

.onboarding-steps {
  display: grid;
  gap: 12px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(128px, auto);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(252, 231, 243, 0.42));
}

.onboarding-step.done {
  border-color: rgba(34, 197, 94, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.72));
}

.onboarding-step-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
}

.onboarding-step.done .onboarding-step-index {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.onboarding-step strong {
  color: var(--ink);
  font-size: 15px;
}

.onboarding-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.onboarding-step button {
  min-width: 150px;
}

.onboarding-actions {
  justify-content: space-between;
}

.client-history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(236, 72, 153, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.client-history-row > strong {
  color: var(--rose);
  white-space: nowrap;
}

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

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.photo-field {
  grid-row: span 4;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  display: grid;
  gap: 12px;
  align-content: start;
  background: #fff7fb;
}

.photo-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(135deg, #fbedf6, #eee0ff);
  color: var(--purple);
  font-weight: 800;
  border: 1px dashed #b8c9bd;
}

.file-picker {
  display: grid;
  gap: 8px;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-picker strong {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--rose));
  color: #fff;
  cursor: pointer;
}

.file-picker strong:hover {
  background: linear-gradient(135deg, var(--purple-dark), #a92c74);
}

.file-picker small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.sale-preview {
  background: #fff4fb;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.sale-preview span,
.sale-preview strong {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.sale-preview strong {
  color: var(--purple);
  font-size: 20px;
}

#sale-modal {
  width: min(900px, calc(100vw - 32px));
}

.sale-modal-card {
  width: 100%;
}

.sale-product-builder {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(170px, 1.5fr) minmax(92px, 0.7fr) minmax(110px, 0.8fr) minmax(190px, auto);
  gap: 12px;
  align-items: end;
  padding: 14px;
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(244, 114, 182, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(252, 231, 243, 0.58));
  box-shadow: 0 18px 46px rgba(76, 29, 149, 0.08);
}

.sale-add-item {
  min-height: 44px;
  white-space: nowrap;
}

.sale-cart {
  display: grid;
  gap: 10px;
}

.sale-cart-item,
.sale-cart-empty {
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.07);
}

.sale-cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.sale-cart-item > strong {
  color: var(--purple);
  font-size: 17px;
}

.sale-cart-item .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: rgba(236, 72, 153, 0.18);
  color: #be185d;
}

.sale-cart-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.assistant-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.assistant-chat-toggle,
.assistant-chat-panel {
  pointer-events: auto;
}

.assistant-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: white;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, var(--purple), var(--rose));
  box-shadow: 0 22px 54px rgba(126, 34, 206, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.assistant-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 68px rgba(236, 72, 153, 0.34);
}

.assistant-chat-toggle span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.assistant-chat-panel {
  width: min(420px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 8%, rgba(244, 114, 182, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 252, 0.96));
  box-shadow: 0 34px 100px rgba(45, 17, 65, 0.22);
  backdrop-filter: blur(14px);
}

.assistant-chat-panel[hidden] {
  display: none;
}

.assistant-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

.assistant-chat-header strong {
  display: block;
  color: var(--purple-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.assistant-chat-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.assistant-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.assistant-message {
  max-width: 88%;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(76, 29, 149, 0.06);
}

.assistant-message.user {
  justify-self: end;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--rose));
}

.assistant-message span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.76;
}

.assistant-message p {
  margin: 0;
  color: inherit;
  line-height: 1.5;
}

.assistant-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  background: rgba(252, 231, 243, 0.36);
}

.assistant-chat-actions button {
  min-height: 34px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  cursor: pointer;
}

.assistant-chat-actions button:hover {
  border-color: rgba(236, 72, 153, 0.36);
  color: var(--rose);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.1);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, var(--purple-dark), var(--rose));
  color: white;
  border-radius: 18px;
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 40px));
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .auth-screen {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
    padding: 28px 18px;
  }

  .auth-card {
    margin: 0 auto 28px;
    width: min(560px, 100%);
  }

  .auth-hero {
    min-height: auto;
    padding: 26px 18px 0;
    text-align: center;
    align-items: center;
  }

  .auth-hero h1,
  .auth-hero p {
    max-width: 720px;
  }

  .auth-metrics {
    justify-content: center;
  }

  .auth-cta-row,
  .auth-sales-points {
    justify-content: center;
  }

  .auth-benefits {
    width: min(100%, 720px);
  }

  .auth-conversion-grid {
    width: min(100%, 720px);
  }

  .auth-proof-card {
    text-align: left;
    width: min(100%, 680px);
  }

  .auth-pricing {
    width: min(100%, 720px);
  }

  .auth-proof {
    width: auto;
  }

  .auth-product-mockup {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    top: auto;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .nav-item {
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
  }

  .nav-item:hover,
  .nav-item.active {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  }

  .sidebar-card {
    display: none;
  }

  .nav-item span:last-child {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .metric-grid,
  .content-grid,
  .report-grid,
  .report-chart-grid,
  .stock-dashboard-grid,
  .stock-layout,
  .catalog-share-panel,
  .sales-filters,
  .clients-toolbar,
  .marketing-layout,
  .admin-action-grid,
  .admin-funnel,
  .admin-lead-form,
  .dashboard-sales-summary,
  .billing-journey,
  .billing-conversion-grid,
  .team-form,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .marketing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .assistant-chat {
    right: 14px;
    bottom: 14px;
  }

  .assistant-chat-toggle strong {
    display: none;
  }

  .assistant-chat-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
    border-radius: 24px;
  }

  .marketing-audience-row,
  .marketing-history-row,
  .admin-lead-card {
    grid-template-columns: auto 1fr;
  }

  .marketing-row-actions,
  .marketing-history-row .badge,
  .admin-lead-actions,
  .admin-lead-card .badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .team-row {
    grid-template-columns: auto 1fr;
  }

  .team-row .actions {
    grid-column: 1 / -1;
  }

  .chart-panel {
    min-height: auto;
  }

  .chart-box,
  .donut-box {
    height: 260px;
  }

  .quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sale-product-builder {
    grid-template-columns: 1fr;
  }

  .sale-cart-item {
    grid-template-columns: auto 1fr auto;
  }

  .sale-cart-item > strong {
    grid-column: 2 / 3;
  }

  .settings-grid,
  .settings-summary,
  .billing-expired-panel,
  .admin-subscription-actions,
  .admin-system-grid,
  .billing-plans {
    grid-template-columns: 1fr;
  }

  .billing-payment-panel,
  .billing-success-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-share-panel::before,
  .catalog-hero::after {
    display: none;
  }

  .catalog-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .sale-product-builder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-add-item {
    grid-column: 1 / -1;
  }

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

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

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

  .billing-expired-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-screen {
    padding: 18px 14px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  .auth-hero {
    width: 100%;
    max-width: 390px;
    padding: 18px 6px 0;
    gap: 14px;
  }

  .auth-hero::before,
  .auth-hero::after,
  .auth-screen::after,
  .auth-kicker {
    display: none;
  }

  .auth-brand {
    justify-content: center;
    margin-bottom: 6px;
  }

  .auth-brand .brand-logo-image {
    width: 62px;
    height: 62px;
  }

  .auth-hero h1 {
    width: min(100%, 300px);
    font-size: clamp(30px, 9.4vw, 36px);
    line-height: 1.06;
  }

  .auth-hero p {
    width: min(100%, 300px);
    font-size: 14px;
    line-height: 1.55;
  }

  .auth-metrics {
    width: min(100%, 300px);
    gap: 8px;
  }

  .auth-metrics span {
    font-size: 12px;
    padding: 8px 10px;
  }

  .auth-cta-row {
    width: min(100%, 300px);
    justify-content: center;
    margin-bottom: 6px;
  }

  .auth-cta-row .primary-button {
    width: 100%;
  }

  .auth-cta-row span {
    text-align: center;
    font-size: 12px;
  }

  .auth-pricing {
    grid-template-columns: 1fr;
    width: min(100%, 300px);
  }

  .auth-benefits {
    grid-template-columns: 1fr;
    width: min(100%, 300px);
  }

  .auth-conversion-grid {
    grid-template-columns: 1fr;
    width: min(100%, 300px);
  }

  .auth-benefits article {
    padding: 12px;
    text-align: left;
  }

  .auth-conversion-grid article {
    min-height: auto;
    padding: 12px;
    text-align: left;
  }

  .auth-pricing div {
    padding: 10px 12px;
  }

  .auth-pricing strong {
    font-size: 16px;
  }

  .auth-sales-points {
    width: min(100%, 300px);
    justify-content: center;
    gap: 8px 12px;
  }

  .auth-sales-points span {
    font-size: 12px;
  }

  .auth-proof-card {
    width: min(100%, 300px);
    text-align: left;
  }

  .auth-proof {
    width: min(100%, 300px);
    max-width: 100%;
    border-radius: 18px;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }

  .auth-card {
    width: min(100%, 330px);
    border-radius: 20px;
    padding: 18px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 16px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-onboarding-card {
    grid-template-columns: 1fr;
  }

  .dashboard-onboarding-card .primary-button {
    width: 100%;
  }

  .account-chip {
    justify-items: start;
  }

  .admin-store-switcher {
    min-width: 100%;
  }

  .hero-strip {
    padding: 18px;
  }

  .hero-products {
    display: none;
  }

  dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .modal-card {
    padding: 18px;
    max-height: calc(100vh - 20px);
  }

  .modal-header {
    align-items: flex-start;
  }

  .form-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .billing-expired-panel {
    padding: 18px;
  }

  .billing-expired-content h3 {
    font-size: 28px;
  }

  .billing-expired-actions {
    display: grid;
  }

  .billing-payment-actions {
    display: grid;
    justify-content: stretch;
  }

  .billing-payment-actions .primary-button,
  .billing-payment-actions .billing-pay-button,
  .billing-success-actions .primary-button,
  .billing-success-actions .ghost-button {
    width: 100%;
  }

  .admin-event-item {
    grid-template-columns: auto 1fr;
  }

  .admin-event-date {
    grid-column: 2;
    text-align: left;
  }

  .onboarding-progress-wrap,
  .onboarding-step {
    grid-template-columns: 1fr;
  }

  .onboarding-header h2 {
    font-size: 24px;
  }

  .onboarding-step-index {
    width: 38px;
    height: 38px;
  }

  .onboarding-step {
    align-items: stretch;
  }

  .onboarding-step button {
    width: 100%;
    min-width: 0;
  }

  .onboarding-actions {
    display: grid;
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .panel,
  .metric-card {
    border-radius: 18px;
  }

  .panel {
    padding: 14px;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric-card {
    min-height: auto;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .page-panel-header,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .page-panel-header {
    padding: 18px;
    border-radius: 20px;
  }

  .page-panel-header h2 {
    font-size: 30px;
    line-height: 1.05;
  }

  .panel-header h2 {
    font-size: 17px;
  }

  .topbar-actions > *,
  .topbar-actions button,
  .topbar-actions .primary-button,
  .topbar-actions .ghost-button,
  .account-chip,
  .admin-store-switcher,
  .admin-store-switcher select {
    width: 100%;
  }

  .account-chip {
    justify-items: start;
  }

  .catalog-actions,
  .billing-success-actions,
  .admin-leads-tools,
  .admin-whatsapp-actions,
  .admin-lead-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .catalog-actions .primary-button,
  .catalog-actions .ghost-button,
  .marketing-actions .primary-button,
  .marketing-actions .ghost-button,
  .admin-lead-actions .small-button,
  .admin-whatsapp-actions .small-button {
    width: 100%;
  }

  .small-button {
    min-height: 40px;
  }

  .table-wrap {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(45, 17, 65, 0.06);
  }

  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .catalog-share-panel,
  .marketing-builder,
  .marketing-audience-panel,
  .marketing-history-panel,
  .admin-action-panel,
  .admin-funnel-panel,
  .admin-leads-panel,
  .billing-conversion-panel {
    border-radius: 20px;
  }

  .catalog-share-preview {
    min-height: 220px;
  }

  .admin-action-card,
  .admin-funnel-card,
  .admin-lead-card,
  .billing-conversion-grid div {
    min-height: auto;
    border-radius: 18px;
  }

  .admin-action-card strong {
    font-size: 28px;
  }

  .admin-leads-tools select {
    width: 100%;
    min-width: 0;
  }
}

@page {
  size: A4;
  margin: 12mm 10mm 16mm;
}

@media print {
  .auth-screen,
  .sidebar,
  .topbar,
  .hero-strip,
  .toolbar,
  .page-panel-header,
  .view:not(#catalog-view) {
    display: none !important;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body,
  .main,
  .app-shell {
    background: #faf7fb;
    display: block;
    padding: 0;
  }

  body::before {
    content: "Mais organização, mais vendas.";
    position: fixed;
    left: 10mm;
    bottom: 6mm;
    z-index: 10;
    color: #7a607e;
    font-size: 10px;
    font-weight: 600;
  }

  body::after {
    content: "Página " counter(page);
    position: fixed;
    right: 10mm;
    bottom: 6mm;
    z-index: 10;
    color: #7a607e;
    font-size: 10px;
    font-weight: 600;
  }

  #catalog-view {
    display: block !important;
    position: relative;
    min-height: 100vh;
    padding: 0;
    background:
      radial-gradient(circle at 92% 2%, rgba(236, 72, 153, 0.12), transparent 22%),
      radial-gradient(circle at 4% 18%, rgba(124, 58, 237, 0.09), transparent 24%),
      linear-gradient(135deg, #fffdfd 0%, #fbf7fb 46%, #fff8f3 100%);
  }

  #catalog-view::before {
    content: "✦";
    position: fixed;
    top: 20mm;
    right: 16mm;
    color: rgba(236, 72, 153, 0.34);
    font-size: 24px;
  }

  .catalog-print-cover {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: calc(100vh - 28mm);
    padding: 15mm 12mm;
    overflow: hidden;
    text-align: center;
    border-radius: 28px;
    background:
      radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.32), transparent 21%),
      radial-gradient(circle at 80% 18%, rgba(244, 114, 182, 0.3), transparent 24%),
      radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.22), transparent 28%),
      linear-gradient(135deg, #3b0f68 0%, #7c3aed 42%, #f472b6 100%);
    color: white;
    box-shadow: 0 18px 50px rgba(76, 29, 149, 0.18);
    break-after: page;
    page-break-after: always;
  }

  .catalog-print-cover::before,
  .catalog-print-cover::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
  }

  .catalog-print-cover::before {
    width: 78mm;
    height: 78mm;
    right: -18mm;
    top: 12mm;
  }

  .catalog-print-cover::after {
    width: 108mm;
    height: 108mm;
    left: -32mm;
    bottom: -28mm;
  }

  .catalog-cover-mark {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38mm;
    height: 38mm;
    margin-bottom: 13mm;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(42, 13, 66, 0.24);
  }

  .catalog-cover-mark img {
    width: 29mm;
    height: 29mm;
    object-fit: contain;
  }

  .catalog-cover-copy,
  .catalog-cover-meta {
    position: relative;
    z-index: 1;
  }

  .catalog-cover-copy span {
    display: inline-block;
    padding: 2.5mm 6mm;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .catalog-cover-copy h2 {
    margin: 6mm 0 4mm;
    max-width: 132mm;
    color: white;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 48px;
    line-height: 0.92;
    text-shadow: 0 10px 26px rgba(42, 13, 66, 0.26);
  }

  .catalog-cover-copy p {
    margin: 0 auto;
    max-width: 116mm;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
  }

  .catalog-cover-meta {
    display: grid;
    gap: 2mm;
    margin-top: 16mm;
    padding: 4mm 9mm;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
  }

  .catalog-cover-meta strong {
    color: white;
    font-size: 14px;
  }

  .catalog-cover-meta span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    font-weight: 700;
  }

  .catalog-print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 7mm;
    padding: 5mm 7mm;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 18px;
    background:
      radial-gradient(circle at 88% 18%, rgba(236, 72, 153, 0.14), transparent 20%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(252, 231, 243, 0.62)),
      #ffffff;
    box-shadow: 0 14px 34px rgba(76, 29, 149, 0.1);
    break-inside: avoid;
  }

  .catalog-share-panel {
    display: none !important;
  }

  .catalog-print-header::after {
    content: "";
    width: 58px;
    height: 1px;
    position: absolute;
    right: 14mm;
    top: 23mm;
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
  }

  .catalog-print-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .catalog-print-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff5fb;
    box-shadow: 0 8px 18px rgba(76, 29, 149, 0.12);
  }

  .catalog-print-brand div,
  .catalog-print-info {
    display: grid;
    gap: 2px;
  }

  .catalog-print-brand span,
  .catalog-print-brand small,
  .catalog-print-info span,
  .catalog-print-info small {
    color: #7a607e;
    font-size: 10px;
    font-weight: 600;
  }

  .catalog-print-brand small {
    color: #b91b75;
    font-size: 8px;
  }

  .catalog-print-brand strong {
    color: #35104f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    line-height: 1;
  }

  .catalog-print-info {
    text-align: right;
  }

  .catalog-print-info strong {
    color: #4c1d95;
    font-size: 14px;
  }

  .catalog-print-info small {
    color: #ec4899;
  }

  .catalog-grid {
    display: block;
  }

  .catalog-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: 11px;
    min-height: 224mm;
    padding-top: 2mm;
    break-after: page;
    page-break-after: always;
  }

  .catalog-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .catalog-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    border: 1px solid rgba(236, 72, 153, 0.13);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 253, 0.96)),
      #ffffff;
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.09);
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .catalog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 50% 1fr;
    align-items: stretch;
    min-height: 102mm;
  }

  .catalog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(185, 27, 117, 0.62), rgba(217, 163, 111, 0.48), transparent);
  }

  .catalog-card::after {
    content: "✧";
    position: absolute;
    right: 10px;
    top: 8px;
    color: rgba(236, 72, 153, 0.28);
    font-size: 10px;
  }

  .catalog-card:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.09);
  }

  .catalog-card.unavailable {
    opacity: 0.82;
  }

  .catalog-media {
    aspect-ratio: 1.04 / 1;
    margin: 10px 10px 0;
    border-radius: 17px;
    background:
      radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.98), transparent 35%),
      radial-gradient(circle at 84% 14%, rgba(236, 72, 153, 0.13), transparent 22%),
      linear-gradient(145deg, #fff8fb, #f5ecff 54%, #fff5ed);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  }

  .catalog-card.featured .catalog-media {
    aspect-ratio: auto;
    min-height: 94mm;
    margin: 10px 0 10px 10px;
  }

  .catalog-media small {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 22px);
    padding: 3px 6px;
    color: #4c1d95;
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(236, 72, 153, 0.18);
    font-size: 6.5px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .catalog-featured-badge {
    right: 7px;
    top: 6px;
    padding: 4px 8px;
    font-size: 7px;
    background: linear-gradient(135deg, #7c3aed, #f472b6);
  }

  .catalog-media img {
    width: 94%;
    height: 94%;
    margin: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(76, 29, 149, 0.16));
  }

  .catalog-media span {
    border-radius: 14px;
    font-size: 26px;
  }

  .catalog-body {
    padding: 9px 10px 10px;
    gap: 7px;
  }

  .catalog-card.featured .catalog-body {
    align-content: center;
    padding: 16px 18px;
    gap: 12px;
  }

  .catalog-title strong {
    color: #221229;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
  }

  .catalog-card.featured .catalog-title strong {
    color: #2a0d42;
    font-size: 25px;
    line-height: 1.05;
  }

  .catalog-card.featured .catalog-title span {
    font-size: 9px;
  }

  .catalog-editorial-copy {
    margin: 0;
    color: #7a607e;
    font-size: 10px;
    line-height: 1.55;
  }

  .catalog-title span {
    color: #9a718f;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .catalog-meta {
    justify-content: flex-start;
    gap: 4px;
  }

  .catalog-meta span {
    color: #8b7a90;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 999px;
    background: #fff7fb;
    padding: 3px 5px;
    font-size: 7px;
    font-weight: 600;
  }

  .catalog-footer {
    align-items: end;
    gap: 6px;
    padding-top: 2px;
  }

  .catalog-card.featured .catalog-footer {
    align-items: center;
  }

  .catalog-price-wrap {
    display: grid;
    gap: 1px;
  }

  .catalog-card.featured .catalog-price-wrap {
    width: fit-content;
    padding: 7px 11px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 18px;
    background:
      radial-gradient(circle at 86% 18%, rgba(244, 114, 182, 0.18), transparent 32%),
      linear-gradient(135deg, #fff7fb, #f7ecff);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.11);
  }

  .catalog-price-wrap span {
    color: #9a718f;
    font-size: 6.5px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .catalog-price,
  .catalog-footer strong {
    color: #ad146b;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
  }

  .catalog-card.featured .catalog-price,
  .catalog-card.featured .catalog-footer strong {
    color: #9d1464;
    font-size: 38px;
  }

  .catalog-card.featured .catalog-price-wrap span {
    font-size: 8px;
  }

  .catalog-card.featured .catalog-meta span {
    font-size: 8px;
    padding: 4px 7px;
  }

  .badge.catalog-status {
    border-radius: 999px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    padding: 4px 6px;
    font-size: 7px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  .badge.catalog-status.low {
    color: #be123c;
    background: #ffe4e6;
  }

  .badge.catalog-status.unavailable {
    color: #7f1d1d;
    background: #fee2e2;
  }

  .empty-state {
    border-color: rgba(236, 72, 153, 0.24);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(76, 29, 149, 0.08);
  }
}
